:root {
  --space: #0a0e1a;
  --deep: #0d1530;
  --panel: #111827;
  --border: #1e2d50;
  --accent1: #38bdf8;
  --accent2: #f59e0b;
  --accent3: #34d399;
  --accent4: #f472b6;
  --accent5: #a78bfa;
  --text: #e2e8f0;
  --muted: #94a3b8;
}

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

body {
  background: var(--space);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 星背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 10%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 70%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 35%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 45%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 5%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 60%, rgba(255,255,255,0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  position: relative;
  z-index: 1;
}

/* ヘッダー */
header {
  text-align: center;
  padding: 24px 0 16px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
header .logo {
  font-family: 'Orbitron', monospace;
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent1), var(--accent2), var(--accent4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
header .subtitle {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* セクション */
.section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.section-title .icon { font-size: 24px; }

/* タイムライン */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl-item {
  display: grid;
  grid-template-columns: 100px 16px 1fr;
  gap: 0 10px;
  align-items: start;
}
.tl-year {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  color: var(--accent2);
  text-align: right;
  padding-top: 2px;
  font-weight: 900;
}
.tl-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.tl-line {
  width: 2px;
  background: var(--border);
  flex: 1;
  min-height: 20px;
}
.tl-body {
  padding-bottom: 4px;
}
.tl-label {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 2px;
}
.tl-desc {
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
}

/* 比較テーブル */
.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
th {
  background: var(--deep);
  padding: 8px 10px;
  text-align: left;
  font-size: 16px;
  font-weight: 900;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.note {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 700;
}

/* 発見カード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent1);
}
.card-title {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 4px;
}
.card-body {
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

/* 円グラフ */
.charts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 250px;
}
.chart-wrap h4 {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  text-align: center;
}
svg.pie { overflow: visible; }
svg.pie text { font-weight: 900; }
.legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
}
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ロケット失敗バナー */
.alert {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.4);
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 16px;
}
.alert strong { color: #f87171; }

/* MMX強調 */
.mmx-box {
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(167,139,250,0.08));
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mmx-icon { font-size: 2.2rem; flex-shrink: 0; }
.mmx-text h4 { font-size: 18px; font-weight: 900; color: var(--accent1); margin-bottom: 4px; }
.mmx-text p { font-size: 15px; color: var(--muted); font-weight: 700; line-height: 1.6; }

/* カプセル説明 */
.capsule-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  counter-reset: step;
}
.step {
  flex: 1;
  min-width: 140px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -9px; left: 10px;
  background: var(--accent2);
  color: #000;
  font-size: 14px;
  font-weight: 900;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 1.6rem; margin-bottom: 4px; }
.step-title { font-size: 16px; font-weight: 900; margin-bottom: 2px; }
.step-desc { font-size: 15px; color: var(--muted); font-weight: 700; }

/* バッジ */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 900;
  margin-left: 6px;
}
.badge-blue { background: rgba(56,189,248,0.2); color: var(--accent1); border: 1px solid rgba(56,189,248,0.4); }
.badge-green { background: rgba(52,211,153,0.2); color: var(--accent3); border: 1px solid rgba(52,211,153,0.4); }
.badge-red { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.4); }
.badge-yellow { background: rgba(245,158,11,0.2); color: var(--accent2); border: 1px solid rgba(245,158,11,0.4); }
.badge-purple { background: rgba(167,139,250,0.2); color: var(--accent5); border: 1px solid rgba(167,139,250,0.4); }

footer {
  text-align: center;
  padding: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

/* 2カラムレイアウト */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
  header .logo { font-size: 1.5rem; }
}
