:root {
  color-scheme: dark;
  --ink: #eef7f5;
  --muted: #9fb2b2;
  --panel: #15222b;
  --panel-2: #1b2c35;
  --line: #34505c;
  --mint: #66f5cf;
  --amber: #f5b942;
  --bg: #091116;
  --max: 1180px;
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 82% 0%, #17313a 0, transparent 30rem), var(--bg); color: var(--ink); line-height: 1.75; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
img, svg { max-width: 100%; height: auto; }
button, select { font: inherit; }

.site-header { border-bottom: 1px solid var(--line); background: rgb(9 17 22 / .9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.header-inner, main, .site-footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.brand-mark { width: 28px; height: 28px; border: 2px solid var(--mint); border-radius: 8px 14px 8px 8px; position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); right: -5px; bottom: -5px; }
nav { display: flex; gap: 20px; font-size: .9rem; color: var(--muted); }

.prototype-flag { margin: 20px 0 0; display: inline-flex; gap: 8px; align-items: center; color: var(--amber); font: 700 .75rem/1.2 ui-monospace, monospace; letter-spacing: .08em; }
.prototype-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero { padding: clamp(44px, 8vw, 90px) 0 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: clamp(32px, 7vw, 88px); align-items: start; }
.eyebrow { margin: 0 0 14px; color: var(--mint); font: 700 .78rem/1.2 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.25rem, 5.8vw, 5.8rem); letter-spacing: -.055em; max-width: 10ch; }
h2 { font-size: clamp(1.65rem, 3vw, 2.8rem); letter-spacing: -.035em; }
h3 { margin-top: 0; }
.lede { color: #c4d4d2; font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 38rem; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-notes span { border: 1px solid var(--line); padding: 7px 10px; color: var(--muted); font-size: .78rem; }

.finder { background: linear-gradient(145deg, #1d323b, #101c23); border: 1px solid #3f626d; padding: clamp(20px, 3vw, 34px); box-shadow: 0 28px 80px rgb(0 0 0 / .3); }
.finder h2 { margin-top: 0; font-size: 1.35rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { color: var(--muted); font-size: .8rem; font-weight: 700; }
select { width: 100%; margin-top: 6px; min-height: 44px; padding: 8px 34px 8px 10px; color: var(--ink); background: #0c171d; border: 1px solid var(--line); border-radius: 4px; }
.finder button { width: 100%; margin-top: 14px; min-height: 46px; border: 0; background: var(--mint); color: #062019; font-weight: 900; cursor: pointer; }
.result { margin-top: 16px; border-left: 2px solid var(--amber); padding-left: 14px; min-height: 96px; }
.result strong { display: block; margin: 5px 0; }
.result p { margin: 0; color: #c7d5d4; font-size: .9rem; }
.result ul { margin: 10px 0 0; padding-left: 1.25rem; color: #dbe7e5; font-size: .86rem; }
.result .candidate-note { margin-top: 10px; color: var(--amber); }
.result-kicker { color: var(--amber); font: 700 .68rem/1.2 ui-monospace, monospace; letter-spacing: .08em; }

.section { padding: 54px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .55fr 1fr; gap: 30px; align-items: end; margin-bottom: 28px; }
.section-head h2, .section-head p { margin: 0; }
.section-head p { color: var(--muted); max-width: 48rem; }
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.path-step { background: var(--bg); padding: 24px; min-height: 170px; }
.path-step span { color: var(--mint); font: 700 .75rem/1 ui-monospace, monospace; }
.path-step p { color: var(--muted); font-size: .9rem; }

.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.article-card { border: 1px solid var(--line); background: var(--panel); padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px; text-decoration: none; min-height: 170px; transition: border-color .2s ease, transform .2s ease; }
.article-card:hover { border-color: var(--mint); transform: translateY(-2px); }
.article-card p { color: var(--muted); font-size: .9rem; }
.article-card .arrow { color: var(--mint); font-size: 1.5rem; }
.article-card.featured { grid-column: span 2; background: linear-gradient(120deg, #17333b, var(--panel)); }

.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.evidence-card { padding: 22px; background: var(--panel-2); border-top: 3px solid var(--mint); }
.evidence-card small { color: var(--amber); }
.evidence-card p { color: var(--muted); font-size: .9rem; }
.source-link { color: var(--mint); font-weight: 800; }

.article-shell { width: min(calc(100% - 40px), 860px); margin: 0 auto; padding: 54px 0 80px; }
.article-shell h1 { max-width: 14ch; font-size: clamp(2rem, 6vw, 4.5rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 38px; color: var(--muted); font-size: .83rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; color: var(--muted); font-size: .82rem; }
.breadcrumb span::before { content: "/"; margin-right: 7px; color: var(--line); }
.answer-box { border: 1px solid #4f6e76; padding: 22px; background: linear-gradient(120deg, #162b33, #101b22); margin: 28px 0; }
.answer-box strong { color: var(--mint); }
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 34px 0; }
.toc a { padding: 12px 14px; background: var(--bg); text-decoration: none; }
.check-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .92rem; }
.check-table th, .check-table td { padding: 13px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.check-table th { color: var(--mint); }
.callout { padding: 18px; border-left: 3px solid var(--amber); background: #1a2428; }
.research-note { padding: 12px 14px; border: 1px solid var(--line); color: var(--muted); background: #0d181e; font-size: .88rem; }
.commercial-slot { margin: 26px 0; padding: 20px; border: 1px dashed #607883; background: #0c171d; }
.commercial-slot strong { display: block; margin-bottom: 6px; color: var(--mint); }
.commercial-slot p { margin: 0 0 12px; color: var(--muted); }
.commercial-slot button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); color: var(--muted); background: #152027; cursor: not-allowed; }
.faq-list details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { color: var(--muted); }
.sources { color: var(--muted); font-size: .88rem; }
.sources li { margin: 8px 0; overflow-wrap: anywhere; }
.site-footer { padding: 34px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

@media (max-width: 820px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
  .section-head { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .header-inner, main, .site-footer, .article-shell { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 58px; }
  .hero { padding-top: 34px; }
  .article-shell h1 { font-size: clamp(1.75rem, 9vw, 2.2rem); word-break: auto-phrase; }
  .field-grid, .article-grid, .path-grid, .toc { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: auto; }
  .finder, .article-card, .path-step { padding: 18px; }
  .check-table { display: block; overflow-x: auto; white-space: normal; }
  .check-table thead, .check-table tbody { display: table; width: 100%; min-width: 620px; table-layout: fixed; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.commercial-slot li { margin-block: 12px; overflow-wrap: anywhere; }
.finder > p { color: var(--muted); font-size: .88rem; }
.article-shell h1 { max-width: none; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.35; word-break: auto-phrase; }
@media (max-width: 820px) { .breadcrumb { display: flex; } .toc { display: grid; } .hero h1 { max-width: none; word-break: auto-phrase; } }
@media (max-width: 520px) { .hero h1 { font-size: clamp(1.9rem, 8vw, 2.2rem); line-height: 1.35; } }
