:root {
  --sky: #0a1628;
  --sky2: #0d2045;
  --ocean: #0e3f6e;
  --ocean2: #1a5fa0;
  --accent: #f0a500;
  --accent2: #e06030;
  --teal: #00c9a0;
  --red: #e03030;
  --white: #f5f8ff;
  --gray: #a0b0c8;
  --card: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--sky);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  min-height: 100vh;
}

/* 背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(14,63,110,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 80% 100%, rgba(0,100,160,0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ヘッダー */
header {
  padding: 48px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 8px;
}
.header-badge {
  display: inline-block;
  background: var(--accent);
  color: #1a0a00;
  font-size: 15px;
  font-weight: 900;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
header h1 span { color: var(--accent); }
header p { color: var(--gray); font-size: 16px; }

/* セクション */
section { padding: 36px 0 20px; }
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 23px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}

/* カード */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--teal);
}
.calc-card { margin-top: 16px; }

.lead-text { font-size: 16px; color: var(--gray); }
.lead-text strong { color: var(--white); }

.note {
  font-size: 15px;
  color: var(--gray);
  margin-top: 8px;
}

/* グリッド */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media(max-width:680px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  header h1 { font-size: 28px; }
}

/* テーブル */
.table-wrap { overflow-x: auto; overscroll-behavior-x: none; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th {
  background: rgba(240,165,0,0.18);
  color: var(--accent);
  font-weight: 900;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.04); }

/* SVG共通 */
svg text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
}
.cross-section { display: block; margin-bottom: 12px; }

/* 沈下タイムライン図 */
.timeline-wrap {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 26px 22px;
  margin-bottom: 16px;
  overflow-x: auto;
  overscroll-behavior-x: none;
}
.timeline-chart { min-width: 560px; display: block; }

/* 高さ比較バー */
.bar-section { margin-bottom: 16px; }
.bar-section:last-child { margin-bottom: 0; }
.bar-label { font-size: 16px; font-weight: 900; margin-bottom: 5px; }
.bar-track { background: rgba(255,255,255,0.08); border-radius: 6px; height: 38px; position: relative; overflow: visible; }
.bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  transition: width 1s ease;
}
.bar-note { font-size: 15px; color: var(--gray); margin-top: 4px; }

/* 対策カード */
.method-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.method-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}
.method-card.blue::before { background: var(--ocean2); }
.method-card.teal::before { background: var(--teal); }
.method-card.amber::before { background: var(--accent); }
.method-icon { font-size: 30px; margin-bottom: 8px; }
.method-title { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.method-sub { font-size: 15px; color: var(--gray); line-height: 1.7; }
.tags { margin-top: 12px; }

/* 数字ハイライト */
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 16px; }
@media(max-width:580px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}
.stat-num { font-size: 34px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.stat-unit { font-size: 16px; font-weight: 900; }
.stat-desc { font-size: 15px; color: var(--gray); margin-top: 6px; line-height: 1.5; }
.c-amber { color: var(--accent); }
.c-teal { color: var(--teal); }
.c-red { color: var(--red); }
.c-blue { color: #58b4ff; }

/* 限界テーブル */
.limit-card {
  background: rgba(224,48,48,0.08);
  border: 1px solid rgba(224,48,48,0.3);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.limit-title { font-size: 18px; font-weight: 900; color: #ff7070; margin-bottom: 6px; }
.limit-desc { font-size: 15px; color: var(--gray); line-height: 1.7; }

/* まとめの強調ボックス */
.highlight-box {
  background: rgba(240,165,0,0.1);
  border: 1px solid rgba(240,165,0,0.3);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 16px;
}
.highlight-title { font-size: 17px; font-weight: 900; color: var(--accent); margin-bottom: 8px; }
.highlight-body { font-size: 16px; color: var(--gray); }

/* フッター */
footer {
  text-align: center;
  padding: 32px 0 40px;
  color: var(--gray);
  font-size: 15px;
  border-top: 1px solid var(--card-border);
  margin-top: 20px;
}

/* 区切り線 */
hr { border: none; border-top: 1px solid var(--card-border); margin: 8px 0 24px; }

.tag {
  display: inline-block;
  background: rgba(0,201,160,0.15);
  color: var(--teal);
  border: 1px solid rgba(0,201,160,0.3);
  font-size: 14px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-right: 6px;
  margin-bottom: 4px;
}
.tag.amber {
  background: rgba(240,165,0,0.15);
  color: var(--accent);
  border-color: rgba(240,165,0,0.3);
}
.tag.red {
  background: rgba(224,48,48,0.15);
  color: #ff7070;
  border-color: rgba(224,48,48,0.3);
}
