:root {
  --paper: #f4f1ea;
  --ink: #142027;
  --muted: #58636a;
  --line: #c7cbc8;
  --panel: #fbfaf6;
  --accent: #0d6f73;
  --accent-soft: #dfeeee;
  --signal: #b74d32;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 17px; line-height: 1.8; background: var(--paper); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.frame { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.masthead { border-bottom: 1px solid var(--line); background: rgba(244,241,234,.96); }
.masthead-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { font-weight: 900; text-decoration: none; letter-spacing: -.03em; font-size: 1.15rem; }
.build-badge { font-size: 14px; letter-spacing: .12em; font-weight: 800; color: var(--muted); }

.hero, .article-hero { border-bottom: 1px solid var(--line); }
.hero { padding: clamp(72px, 9vw, 124px) 0 86px; }
.article-hero { padding: clamp(64px, 8vw, 106px) 0 72px; }
.hero-grid, .article-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr); gap: clamp(40px, 7vw, 96px); align-items: end; }
.article-grid > * { min-width: 0; }
.eyebrow, .note-label { font-size: 14px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; line-break: strict; overflow-wrap: normal; word-break: auto-phrase; }
h1 { font-size: clamp(2.85rem, 5.6vw, 5.6rem); max-width: none; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(2.1rem, 4vw, 3.9rem); max-width: 16ch; }
h3 { font-size: 1.28rem; }
.headline-lock { display: inline-block; white-space: nowrap; max-width: 100%; }
.article-grid h1 .headline-lock { white-space: normal; }
.lede { max-width: 700px; margin: 28px 0 0; color: #304048; font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.72; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 28px; padding: .8rem 1.15rem; background: var(--ink); color: white; text-decoration: none; font-weight: 800; border: 1px solid var(--ink); }
.button:hover, .button:focus-visible { background: var(--accent); border-color: var(--accent); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover, .button-secondary:focus-visible { color: white; }

.hero-note, .quick-answer { border-top: 4px solid var(--accent); background: var(--panel); padding: 24px; box-shadow: 14px 14px 0 var(--accent-soft); }
.hero-note strong { display: block; font-size: 1.4rem; margin: 8px 0 10px; }
.hero-note p { margin: 0; color: var(--muted); }
.quick-answer dl { margin: 18px 0 0; }
.quick-answer dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.quick-answer dt { font-weight: 900; }
.quick-answer dd { margin: 0; color: #304048; }

.decision-strip { border-bottom: 1px solid var(--line); background: var(--ink); color: white; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-grid > div { padding: 22px 24px; border-left: 1px solid rgba(255,255,255,.18); }
.strip-grid > div:first-child { border-left: 0; }
.strip-grid span { display: block; font-size: 14px; opacity: .65; }
.strip-grid strong { display: block; margin: 2px 0; font-size: 1.08rem; }
.strip-grid small { display: block; font-size: 15px; opacity: .78; }

.section { padding: clamp(72px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
.section-muted { background: #ece9e2; }
.section-sources { background: #e6ebe9; }
.split-heading { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: clamp(44px, 8vw, 112px); }
.section-copy { max-width: 720px; font-size: 1.08rem; }
.text-link { font-weight: 900; color: var(--accent); text-underline-offset: 4px; }
.roadmap { margin-top: 44px; border-top: 1px solid var(--line); }
.roadmap > div { display: grid; grid-template-columns: 70px minmax(220px,.5fr) 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.roadmap span { font-size: 14px; color: var(--accent); font-weight: 850; }
.roadmap p { margin: 0; color: var(--muted); }

.table-hint { display: none; margin: 20px 0 -20px; font-size: 15px; color: var(--muted); }
.table-wrap { margin-top: 42px; width: 100%; max-width: 100%; overflow-x: auto; contain: paint; border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 16px; }
thead th { background: var(--ink); color: white; font-size: 15px; }
tbody th { width: 190px; }
td small { font-size: 15px; color: var(--muted); }
.source-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); max-width: 900px; }
.article-body { max-width: 850px; }
.article-body h2 { margin-bottom: 34px; }
.article-body p { margin: 0 0 20px; }
.decision-list { margin: 28px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.decision-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sources { margin: 38px 0 0; padding-left: 1.4rem; }
.sources li { margin: 0 0 18px; }
.sources a { font-weight: 850; color: var(--accent); }
.sources span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.footer { padding: 36px 0 44px; background: var(--ink); color: white; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer p { margin: 0; font-size: 15px; opacity: .76; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

@media (max-width: 820px) {
  .frame { width: min(100% - 28px, 1180px); }
  .masthead-inner { min-height: 66px; }
  .build-badge { font-size: 14px; }
  .hero-grid, .article-grid, .split-heading { grid-template-columns: 1fr; }
  .hero-grid, .article-grid { gap: 48px; }
  h1 { font-size: clamp(2.45rem, 10.5vw, 3.4rem); max-width: none; }
  h2 { font-size: clamp(2rem, 8.8vw, 3.2rem); max-width: 100%; }
  .headline-lock { display: inline; white-space: normal; }
  .hero-note, .quick-answer { box-shadow: 8px 8px 0 var(--accent-soft); }
  .quick-answer dl > div { grid-template-columns: 78px 1fr; gap: 12px; }
  .table-hint { display: block; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .strip-grid > div:first-child { border-top: 0; }
  .roadmap > div { grid-template-columns: 54px 1fr; }
  .roadmap p { grid-column: 2; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
