*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #1a73e8;
  --accent-hover: #1558b0;
  --bg: #fff;
  --surface: #f8f9fa;
  --border: #e0e0e0;
  --text: #202124;
  --text-sub: #5f6368;
  --radius: 12px;
  --shadow: 0 1px 6px rgba(32,33,36,.12), 0 2px 12px rgba(32,33,36,.08);
}

html { font-size: 16px; }
body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.site-header {
  text-align: center;
  padding: 48px 24px 24px;
}
.header-inner { display: inline-flex; flex-direction: row; align-items: center; gap: 14px; }
.logo-img { height: 64px; width: auto; }
.site-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.5px;
  color: var(--text);
}

/* ── Main ── */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ── Description ── */
.description {
  text-align: center;
  margin-bottom: 32px;
}
.desc-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.desc-en {
  font-size: .85rem;
  line-height: 1.7;
  color: #9aa0a6;
}

/* ── Search ── */
.search-section { margin-bottom: 40px; }
.search-wrap { display: flex; justify-content: center; }
.search-box-container {
  position: relative;
  width: 100%;
  max-width: 580px;
}
.search-input {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 24px;
  outline: none;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
  color: var(--text);
}
.search-input:focus {
  box-shadow: 0 1px 10px rgba(32,33,36,.2), 0 4px 20px rgba(32,33,36,.12);
  border-color: transparent;
}

/* ── Suggest ── */
.suggest-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
  overflow: hidden;
  display: none;
}
.suggest-list.open { display: block; }
.suggest-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: .95rem;
  transition: background .15s;
}
.suggest-item:hover, .suggest-item.active { background: var(--surface); }

/* ── Site Meta ── */
.site-meta {
  text-align: center;
  font-size: .8rem;
  color: #9aa0a6;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ── Result ── */
.result-section { display: none; }
.result-section.visible { display: block; }

.aircraft-header { margin-bottom: 20px; }
.aircraft-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

/* ── 3-column grid ── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.sub-title {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Table ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.data-table th, .data-table td {
  padding: 7px 8px;
  text-align: left;
  vertical-align: middle;
}
.data-card:last-child .data-table td,
.data-card:last-child .data-table th { white-space: nowrap; }

.data-table thead th {
  font-weight: 500;
  color: var(--text-sub);
  font-size: .8rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.data-table tbody tr:not(:last-child) td,
.data-table tbody tr:not(:last-child) th {
  border-bottom: 1px solid var(--border);
}
.data-table tbody th {
  font-weight: 500;
  color: var(--text-sub);
  width: 45%;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 24px;
  font-size: .85rem;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-title { font-size: 1.5rem; }
  .data-grid { grid-template-columns: 1fr; }
  .main-content { padding: 0 16px 40px; }
  .search-input { font-size: .95rem; }
  .description { text-align: left; }
}
