:root {
  color-scheme: light;
  --ink: #18242e;
  --ink-soft: #53616b;
  --navy: #102c3f;
  --navy-deep: #071c29;
  --teal: #17666b;
  --gold: #c7922b;
  --gold-soft: #f1dfb6;
  --paper: #fbfaf7;
  --canvas: #f1eee8;
  --panel: #ffffff;
  --line: #dcd8cf;
  --line-strong: #c7c1b5;
  --shadow: 0 18px 48px rgba(16, 44, 63, .08);
  --header-height: 68px;
  --content-width: 780px;
  --font-sans: "IBM Plex Sans", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Iowan Old Style", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8edf0;
  --ink-soft: #aeb9c0;
  --navy: #173f56;
  --navy-deep: #071722;
  --teal: #58a9a9;
  --gold: #e5b754;
  --gold-soft: #4a3b20;
  --paper: #101a21;
  --canvas: #091219;
  --panel: #142129;
  --line: #2d3a42;
  --line-strong: #45535c;
  --shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.85; text-rendering: optimizeLegibility; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.skip-link { position: fixed; z-index: 200; top: 8px; left: 12px; transform: translateY(-150%); padding: 9px 14px; background: var(--paper); color: var(--ink); border: 2px solid var(--gold); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; z-index: 120; inset: 0 0 auto; height: 3px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--gold); }

.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 56px); color: #fff; background: rgba(7, 28, 41, .96); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 13px; letter-spacing: .04em; }
.brand small { margin-top: 4px; color: rgba(255,255,255,.58); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-button { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; color: rgba(255,255,255,.82); background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.icon-button:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.icon-button svg { width: 19px; height: 19px; }
.theme-icon--dark { display: none; }
html[data-theme="dark"] .theme-icon--light { display: none; }
html[data-theme="dark"] .theme-icon--dark { display: block; }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-deep); }
.hero::after { content: ""; position: absolute; right: -10vw; bottom: -280px; width: 560px; height: 560px; border: 1px solid rgba(199,146,43,.36); border-radius: 50%; box-shadow: 0 0 0 90px rgba(199,146,43,.025), 0 0 0 180px rgba(199,146,43,.02); }
.hero-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to right, #000, transparent 82%); }
.hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: clamp(68px, 9vw, 120px) clamp(22px, 5vw, 68px) clamp(60px, 8vw, 100px); }
.eyebrow { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.eyebrow span + span { color: rgba(255,255,255,.48); }
.hero h1 { max-width: 860px; margin: 0; font-size: clamp(42px, 7vw, 86px); line-height: 1.06; letter-spacing: -.045em; font-weight: 650; }
.hero h1 span { color: rgba(255,255,255,.44); font-weight: 400; }
.hero-lead { max-width: 780px; margin: 30px 0 26px; color: rgba(255,255,255,.72); font-size: clamp(16px, 2vw, 20px); line-height: 1.85; }
.verdict { width: fit-content; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.05); font-size: 11px; letter-spacing: .05em; }
.verdict strong { color: rgba(255,255,255,.48); font-weight: 500; text-transform: uppercase; }
.verdict span:last-child { color: #fff; font-weight: 700; }
.verdict-dot { width: 8px; height: 8px; background: #73b9a4; border-radius: 50%; box-shadow: 0 0 0 4px rgba(115,185,164,.15); }
.hero-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 54px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); list-style: none; }
.hero-cards li { min-height: 154px; padding: 26px 30px 24px 0; }
.hero-cards li + li { padding-left: 30px; border-left: 1px solid rgba(255,255,255,.16); }
.hero-cards small { display: block; margin-bottom: 9px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.hero-cards strong { display: block; font-family: var(--font-serif); font-size: 24px; font-weight: 500; }
.hero-cards p { margin: 8px 0 0; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.65; }

.thesis-strip { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 28px clamp(22px, 5vw, 68px); border-bottom: 1px solid var(--line); }
.thesis-strip span { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.thesis-strip p { margin: 0; font-family: var(--font-serif); font-size: clamp(17px, 2vw, 22px); line-height: 1.6; }

.report-shell { max-width: 1240px; display: grid; grid-template-columns: 270px minmax(0, var(--content-width)); justify-content: center; gap: clamp(40px, 6vw, 88px); margin: 0 auto; padding: 72px clamp(22px, 4vw, 48px) 120px; }
.toc-panel { position: sticky; top: calc(var(--header-height) + 28px); align-self: start; max-height: calc(100vh - var(--header-height) - 56px); display: flex; flex-direction: column; }
.toc-heading { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.toc-heading span { font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.toc-heading small { color: var(--ink-soft); font-size: 10px; }
.toc-nav { overflow-y: auto; padding: 15px 6px 15px 0; scrollbar-width: thin; }
.toc-link { position: relative; display: block; padding: 7px 10px 7px 15px; color: var(--ink-soft); border-left: 1px solid var(--line); text-decoration: none; font-size: 12px; line-height: 1.45; transition: color .2s, border-color .2s, background-color .2s; }
.toc-link:hover { color: var(--ink); background: color-mix(in srgb, var(--panel) 72%, transparent); }
.toc-link.is-active { color: var(--teal); border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold-soft) 32%, transparent); font-weight: 700; }
.toc-link--sub { padding-left: 26px; font-size: 11px; }
.toc-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; }
.toc-meta span, .toc-meta strong { display: block; }
.toc-meta strong { margin: 3px 0 9px; color: var(--ink); }
.toc-meta a { font-weight: 700; }

.report { min-width: 0; }
.report-intro { margin: 0 0 54px; padding: 24px 28px; background: var(--navy); color: #fff; border-left: 5px solid var(--gold); box-shadow: var(--shadow); }
.report-intro span { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.report-intro p { margin: 8px 0 0; color: rgba(255,255,255,.74); font-size: 14px; line-height: 1.8; }
.report > p:first-of-type, .report > p:nth-of-type(2) { color: var(--ink-soft); }
.report h2 { position: relative; margin: 86px 0 30px; padding: 0 0 16px; border-bottom: 1px solid var(--line-strong); font-size: clamp(27px, 4vw, 38px); line-height: 1.28; letter-spacing: -.025em; }
.report h2::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; background: var(--gold); }
.report h3 { margin: 52px 0 18px; color: var(--navy); font-size: clamp(19px, 2.5vw, 25px); line-height: 1.45; letter-spacing: -.015em; }
html[data-theme="dark"] .report h3 { color: #8bc4cc; }
.report h2, .report h3 { scroll-margin-top: calc(var(--header-height) + 24px); }
.heading-anchor { position: absolute; transform: translateX(-1.2em); color: var(--gold); opacity: 0; text-decoration: none; font-weight: 400; transition: opacity .2s; }
h2:hover .heading-anchor, h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.report p { margin: 0 0 1.25em; }
.report strong { color: color-mix(in srgb, var(--ink) 90%, var(--navy)); }
.report blockquote { margin: 32px 0; padding: 22px 28px; background: color-mix(in srgb, var(--gold-soft) 45%, var(--paper)); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 2px; font-family: var(--font-serif); font-size: 19px; line-height: 1.8; }
.report blockquote p { margin: 0; }
.report ul, .report ol { margin: 0 0 1.45em; padding-left: 1.45em; }
.report li { margin: .42em 0; padding-left: .2em; }
.report li::marker { color: var(--gold); font-weight: 700; }
.report hr { height: 1px; margin: 64px 0; border: 0; background: var(--line); }
.report code { padding: .14em .36em; color: var(--teal); background: color-mix(in srgb, var(--teal) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line)); border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; }
.report pre { overflow-x: auto; margin: 28px 0; padding: 24px; color: #d8e3e8; background: var(--navy-deep); border-radius: 4px; box-shadow: var(--shadow); }
.report pre code { padding: 0; color: inherit; background: transparent; border: 0; overflow-wrap: normal; }
.report a[target="_blank"]::after { content: "↗"; margin-left: .18em; font-size: .72em; text-decoration: none; }
.report table { width: 100%; margin: 28px 0 36px; border-collapse: collapse; background: var(--panel); box-shadow: 0 0 0 1px var(--line); font-size: 13px; line-height: 1.6; }
.report .align-left { text-align: left; }
.report .align-center { text-align: center; }
.report .align-right { text-align: right; }
.report thead { color: #fff; background: var(--navy); text-align: left; }
.report th { padding: 13px 14px; font-size: 11px; letter-spacing: .02em; vertical-align: bottom; }
.report td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.report tbody tr:nth-child(even) { background: color-mix(in srgb, var(--canvas) 50%, var(--panel)); }
.table-scroll { overflow-x: auto; margin: 28px 0 36px; padding: 1px; scrollbar-width: thin; }
.table-scroll table { min-width: 640px; margin: 0; }
.report-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 92px; padding-top: 24px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.toc-drawer { position: fixed; z-index: 180; inset: 0; }
.toc-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(4, 15, 23, .66); cursor: pointer; }
.toc-sheet { position: absolute; inset: 0 0 0 auto; width: min(88vw, 380px); display: flex; flex-direction: column; background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.28); }
.toc-sheet-header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.toc-sheet-header strong { font-size: 13px; letter-spacing: .12em; }
.toc-sheet-header button { width: 40px; height: 40px; color: var(--ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer; font-size: 28px; }
.toc-sheet .toc-nav { padding: 18px; }
body.toc-is-open { overflow: hidden; }
.back-to-top { position: fixed; z-index: 90; right: 22px; bottom: 22px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--navy); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s, background-color .2s; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--teal); }
.back-to-top svg { width: 20px; height: 20px; }
.mobile-only { display: none; }

@media (max-width: 980px) {
  .desktop-toc { display: none; }
  .report-shell { grid-template-columns: minmax(0, var(--content-width)); }
  .mobile-only { display: inline-flex; }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-cards li { min-height: auto; padding: 22px 0; }
  .hero-cards li + li { padding-left: 0; border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }
  .thesis-strip { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 680px) {
  :root { --header-height: 60px; }
  body { font-size: 15px; line-height: 1.78; }
  .site-header { padding: 0 14px; }
  .brand small { display: none; }
  .desktop-only { display: none; }
  .hero::after { right: -280px; }
  .hero-inner { padding-top: 58px; }
  .eyebrow { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .hero h1 br { display: none; }
  .hero-lead { margin-top: 24px; }
  .hero-cards { margin-top: 38px; }
  .thesis-strip { padding-top: 22px; padding-bottom: 22px; }
  .report-shell { padding-top: 44px; padding-bottom: 72px; }
  .report-intro { margin-bottom: 42px; padding: 20px; }
  .report h2 { margin-top: 66px; }
  .report h3 { margin-top: 42px; }
  .heading-anchor { position: static; display: inline-block; margin-right: .25em; transform: none; opacity: .7; }
  .report blockquote { padding: 18px 20px; font-size: 17px; }
  .report-footer { flex-direction: column; gap: 4px; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  :root { --ink: #000; --ink-soft: #333; --paper: #fff; --canvas: #fff; --panel: #fff; --line: #aaa; --line-strong: #777; }
  @page { size: A4; margin: 16mm 15mm 18mm; }
  body { background: #fff; font-size: 10pt; line-height: 1.55; }
  .site-header, .reading-progress, .desktop-toc, .toc-drawer, .back-to-top, .thesis-strip { display: none !important; }
  .hero { color: #000; background: #fff; border-bottom: 2px solid #000; }
  .hero-grid, .hero::after, .hero-cards { display: none; }
  .hero-inner { padding: 0 0 14mm; }
  .hero h1 { max-width: none; color: #000; font-size: 28pt; }
  .hero h1 span, .hero-lead { color: #333; }
  .eyebrow, .verdict { color: #000; }
  .verdict { border-color: #999; }
  .verdict span:last-child { color: #000; }
  .report-shell { display: block; max-width: none; padding: 12mm 0 0; }
  .report-intro { color: #000; background: #f2f2f2; box-shadow: none; }
  .report-intro p { color: #222; }
  .report h2 { break-before: page; margin-top: 0; font-size: 20pt; }
  .report h2:first-of-type { break-before: auto; }
  .report h3 { color: #000; font-size: 14pt; break-after: avoid; }
  .report table { font-size: 8pt; box-shadow: 0 0 0 1px #999; break-inside: auto; }
  .report tr { break-inside: avoid; }
  .report thead { color: #000; background: #ddd; }
  .table-scroll { overflow: visible; }
  .table-scroll table { min-width: 0; }
  .report a { color: #000; text-decoration: underline; }
  .report a[target="_blank"]::after { content: ""; }
  .heading-anchor { display: none; }
}
