/* 国際情勢・歴史研究所（IGAH）デザインシステム
   外部のフォント・CDN・解析タグは使わない（速さ・プライバシー・CSP のため）。端末の明朝・ゴシックを使い分ける。
   色はすべて :root のトークンで指定し、ダークモードはトークンの差し替えだけで切り替える。 */
:root {
  --paper: #f6f4ee; --surface: #fffefa; --sunk: #eeebe3;
  --ink: #191c20; --ink-2: #3a4048; --muted: #62676e; --faint: #72777e;
  --line: #e1ddd3; --line-2: #cbc6ba;
  --accent: #1c4f8a; --accent-ink: #12365f; --accent-soft: #e5ecf5;
  --seal: #a3322c; --seal-soft: #f6e7e3;
  --ok: #2c6a3b; --ok-soft: #e3f0e5; --warn: #8a5900; --warn-soft: #fbf0d9;
  --analysis: #f2eff8; --analysis-line: #5a4a8c;
  --shadow: 0 1px 2px rgb(25 28 32 / .05), 0 4px 16px rgb(25 28 32 / .06);
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, "BIZ UDPMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font: var(--sans);
  --measure: 40rem; --wide: 74rem; --gutter: clamp(1rem, 4vw, 2rem);
  --radius: .5rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121417; --surface: #181b1f; --sunk: #0e1012;
    --ink: #e9e7e2; --ink-2: #c9c7c1; --muted: #a7acb2; --faint: #969ba1;
    --line: #2a2f35; --line-2: #3a4047;
    --accent: #8fb9ec; --accent-ink: #b9d4f5; --accent-soft: #1a2a3e;
    --seal: #ee8a80; --seal-soft: #3a1f1c;
    --ok: #7fcb90; --ok-soft: #17301e; --warn: #e2b55a; --warn-soft: #3a2d10;
    --analysis: #1f1b2b; --analysis-line: #ab98e3;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121417; --surface: #181b1f; --sunk: #0e1012;
  --ink: #e9e7e2; --ink-2: #c9c7c1; --muted: #a7acb2; --faint: #969ba1;
  --line: #2a2f35; --line-2: #3a4047;
  --accent: #8fb9ec; --accent-ink: #b9d4f5; --accent-soft: #1a2a3e;
  --seal: #ee8a80; --seal-soft: #3a1f1c;
  --ok: #7fcb90; --ok-soft: #17301e; --warn: #e2b55a; --warn-soft: #3a2d10;
  --analysis: #1f1b2b; --analysis-line: #ab98e3;
  color-scheme: dark;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.9; letter-spacing: .02em;
  line-break: strict; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.wrap { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wide, body.page-home .wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); }
body.page-article main.wrap { max-width: calc(var(--measure) + 21.5rem + 2 * var(--gutter)); }
.prose td { min-width: 7.5em; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: .5rem; background: var(--surface); padding: .5rem .75rem; z-index: 50; box-shadow: var(--shadow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: .03em; font-feature-settings: "palt" 1; }
h1 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.45; margin: .3rem 0 1rem; }
h2 { font-size: 1.36rem; line-height: 1.5; margin: 3rem 0 .9rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.12rem; line-height: 1.55; margin: 2.2rem 0 .6rem; }
h4 { font-size: 1rem; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin: .3em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
blockquote { margin: 1.25rem 0; padding: .5rem 1.1rem; border-left: 3px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: .82em; word-break: break-all; background: var(--sunk); padding: .05em .3em; border-radius: 3px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.eyebrow { color: var(--muted); font-size: .8rem; margin: 0; letter-spacing: .12em; font-family: var(--sans); }
mark { background: var(--warn-soft); color: inherit; padding: 0 .1em; }

/* ---------- 公開前の帯・ヘッダー ---------- */
.preview-banner { background: #191c20; color: #f6f4ee;text-align: center; font-size: .78rem; letter-spacing: .06em; padding: .35rem 1rem; }
.preview-banner strong { color: #f3c98b; font-weight: 600; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .bar { display: flex; align-items: center; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-mark rect { fill: var(--seal); }
.brand-mark path, .brand-mark circle { stroke: var(--surface); fill: none; }
.brand-mark circle { fill: var(--surface); stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-ja { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; letter-spacing: .14em; }
.brand-en { font-size: .6rem; letter-spacing: .38em; color: var(--muted); margin-top: .22rem; }
.header-search { margin-left: auto; display: flex; align-items: center; position: relative; flex: 0 1 19rem; min-width: 0; }
.header-search input[type="search"] { width: 100%; padding: .45rem .8rem .45rem 2.1rem; font-size: .9rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.header-search svg { position: absolute; left: .7rem; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.nav-toggle { display: none; }
.site-nav { border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; display: flex; gap: 0 1.6rem; overflow-x: auto; scrollbar-width: none; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav li { margin: 0; flex: 0 0 auto; }
.site-nav a { display: block; padding: .6rem 0 .55rem; color: var(--ink-2); text-decoration: none; font-size: .9rem; letter-spacing: .06em; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--seal); }
main { padding-top: 2rem; padding-bottom: 4rem; min-height: 60vh; }

/* ---------- フッター ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; padding: 3rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { color: var(--muted); margin: .9rem 0 0; line-height: 1.8; }
.footer-col h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; color: var(--muted); border: 0; margin: 0 0 .6rem; padding: 0; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .3rem 0; }
.footer-col a, .footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover, .footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer-legal p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .6rem; font-size: .85rem; }

/* ---------- 共通の部品 ---------- */
.kicker { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1.1rem; }
.kicker h2 { margin: 0; padding: 0; border: 0; font-size: 1.3rem; }
.kicker .num { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; color: var(--seal); font-weight: 700; }
.kicker .more { margin-left: auto; font-size: .86rem; white-space: nowrap; }
.section { padding: 2.6rem 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
.lead { font-size: 1.08rem; color: var(--ink-2); line-height: 1.95; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; line-height: 1.6; padding: .05rem .55rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; letter-spacing: .03em; }
.badge.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.badge.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.badge.seal { color: var(--seal); background: var(--seal-soft); border-color: transparent; }
.chips { list-style: none; padding: 0; margin: .6rem 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { margin: 0; }
.chips a { display: inline-flex; gap: .35rem; align-items: baseline; font-size: .8rem; text-decoration: none; padding: .12rem .65rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chip-kind { color: var(--faint); font-size: .7rem; }
.chip-plain { display: inline-flex; gap: .35rem; font-size: .8rem; padding: .1rem .6rem; border-radius: 999px; border: 1px dashed var(--line-2); }
.kind-tag { display: inline-block; font-size: .7rem; padding: .05rem .5rem; border-radius: .25rem; letter-spacing: .08em; vertical-align: middle; font-weight: 600; }
.kind-analysis { background: var(--analysis); color: var(--analysis-line); border: 1px solid var(--analysis-line); }
.kind-index { background: var(--sunk); color: var(--muted); border: 1px dashed var(--faint); }
.type-badge { display: inline-block; font-size: .7rem; padding: 0 .45rem; border-radius: .25rem; border: 1px solid var(--line-2); color: var(--muted); margin-right: .3rem; vertical-align: .1em; }
.type-article { color: var(--analysis-line); border-color: var(--analysis-line); }
.type-source { color: var(--seal); border-color: var(--seal); }
.type-document { border-style: dashed; }
.count { color: var(--muted); font-size: .76rem; margin-left: .35rem; font-variant-numeric: tabular-nums; }

/* ---------- カード ---------- */
.cards { list-style: none; padding: 0; margin: 0; }
.card { padding: 1.15rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.card:first-child { padding-top: .2rem; }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.6; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.card-title:hover { color: var(--accent); text-decoration: underline; }
.card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; color: var(--muted); font-size: .8rem; margin: .35rem 0; letter-spacing: .03em; }
.card-excerpt { margin: .2rem 0 0; color: var(--ink-2); font-size: .92rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards.analysis-cards .card { border-left: 3px solid var(--analysis-line); padding-left: .9rem; }
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.card-grid > li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.card-grid > li:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card-grid .card-title { font-size: 1.02rem; }
.card-grid .card-meta { margin: 0; }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%; background: var(--surface); }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
table { border-collapse: collapse; font-size: .86rem; line-height: 1.65; min-width: 100%; overflow-wrap: normal; word-break: normal; }
td { font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
td { min-width: 6em; }
thead th { background: var(--sunk); white-space: nowrap; position: sticky; top: 0; font-size: .8rem; letter-spacing: .04em; color: var(--ink-2); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }
table.kv td { overflow-wrap: anywhere; min-width: 12em; }
table.kv th { width: 10em; color: var(--muted); font-weight: 500; white-space: nowrap; background: var(--sunk); font-size: .82rem; }
.bib-table { font-size: .84rem; }
.bib-table td:first-child { min-width: 14em; }
.fc-table td, .fc-table th { font-size: .82rem; }
.fc-table td:nth-child(2) { min-width: 16em; }

/* ---------- 本文 ---------- */
.prose { font-size: 1.0625rem; }
.prose > h2 { scroll-margin-top: 6rem; }
.prose p.analysis { background: var(--analysis); border-left: 3px solid var(--analysis-line); padding: .75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.prose h2.is-limits { color: var(--warn); border-bottom-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.keypoints { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--seal); border-radius: 0 0 var(--radius) var(--radius); padding: 1.1rem 1.35rem .4rem; margin: 0 0 2.4rem; }
.keypoints h2 { font-size: .8rem; font-family: var(--sans); letter-spacing: .16em; color: var(--seal); margin: 0 0 .5rem; padding: 0; border: 0; }
.keypoints ul { padding-left: 1.1em; }
.keypoints li { margin: .45em 0 .7em; line-height: 1.85; }
.keypoints li::marker { color: var(--seal); }
sup.fn { font-size: .68em; line-height: 0; margin: 0 .05em; font-family: var(--sans); }
sup.fn a { text-decoration: none; display: inline-block; padding: 7px 3px; margin: -7px 0; border-radius: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
sup.fn a:hover, sup.fn a[aria-expanded="true"] { background: var(--accent); color: var(--surface); }

/* 脚注のポップオーバー（assets/site.js が作る） */
.fn-pop { position: absolute; z-index: 60; width: min(28rem, calc(100vw - 2rem)); background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 8px 30px rgb(0 0 0 / .18); padding: .9rem 1rem .8rem; font-size: .86rem; line-height: 1.75; }
.fn-pop .fn-pop-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: .74rem; letter-spacing: .1em; color: var(--muted); }
.fn-pop button.fn-close { background: transparent; color: var(--muted); border: 0; padding: .1rem .35rem; font-size: 1rem; line-height: 1; cursor: pointer; }
.fn-pop .backref { display: none; }
@media (max-width: 640px) {
  .fn-pop { position: fixed; left: .5rem !important; right: .5rem; bottom: .5rem; top: auto !important; width: auto; max-height: 60vh; overflow: auto; }
}

/* ---------- 記事のページ ---------- */
.breadcrumb { font-size: .8rem; color: var(--muted); margin: 0 0 1.2rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .2rem .4rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "／"; color: var(--faint); margin-right: .4rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.article-head { max-width: 52rem; margin-bottom: 2rem; }
.article-head h1 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.35rem); line-height: 1.42; margin: .55rem 0 .8rem; }
.article-head .subtitle { font-family: var(--serif); color: var(--ink-2); font-size: 1.02rem; line-height: 1.8; margin: 0 0 1rem; }
.article-head .article-meta { font-size: .82rem; gap: .35rem 1.1rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(14rem, 18rem); gap: 3.5rem; align-items: start; }
.article-main { min-width: 0; }
.article-rail { position: sticky; top: 7.5rem; display: flex; flex-direction: column; gap: 1.2rem; font-size: .84rem; max-height: calc(100vh - 9rem); overflow-y: auto; scrollbar-width: thin; }
.rail-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.rail-box h2 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; color: var(--muted); margin: 0 0 .6rem; padding: 0; border: 0; font-weight: 600; }
.rail-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; }
.rail-box dt { color: var(--muted); white-space: nowrap; }
.rail-box dd { margin: 0; color: var(--ink); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a { display: block; padding: .28rem 0 .28rem .7rem; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; line-height: 1.55; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.toc a.is-limits { color: var(--warn); }
.rail-details { display: none; }
.verify-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 2.8rem 0 0; }
.verify-panel h2 { margin-top: 0; font-size: 1.12rem; border: 0; padding: 0; }
.verify-steps { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .55rem; }
.verify-steps li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; margin: 0; font-size: .9rem; line-height: 1.7; }
.verify-steps .st { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; margin-top: .2rem; }
.verify-steps .st.ok { background: var(--ok-soft); color: var(--ok); }
.verify-steps .st.na { background: var(--sunk); color: var(--muted); }
.verify-steps .st.warn { background: var(--warn-soft); color: var(--warn); }
.not-peer-review { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }
.footnotes h2, .sources-used h2, .cite-box h2, .related h2, .history-mini h2 { font-size: 1.12rem; }
.footnotes ol { font-size: .86rem; line-height: 1.75; color: var(--ink); padding-left: 2.2em; }
.footnotes li { margin: .6em 0; padding: .15rem .3rem; border-radius: .25rem; }
.footnotes li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.footnotes li:target { background: var(--accent-soft); }
.verified { color: var(--ok); font-size: .72rem; white-space: nowrap; }
.verified::before { content: "✓ "; }
.backref { text-decoration: underline; padding: 0 .2em; }
.fn-entities { color: var(--muted); font-size: .78rem; }
.fn-entities a { color: inherit; }
.plain-list { padding-left: 1.2em; font-size: .92rem; }
.cite-box { margin-top: 2.8rem; }
.cite-text { font-size: .86rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; line-height: 1.8; }
.cite-actions { margin-top: .5rem; }
.report-box { margin-top: 2.8rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-left: 3px solid var(--seal); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); font-size: .9rem; }
.report-box p { margin: 0; }
.index-note { background: var(--sunk); border: 1px dashed var(--faint); border-radius: var(--radius); padding: .6rem .9rem; font-size: .88rem; color: var(--muted); }
/* AI の開示は残すが、記事の題名の下で目立ちすぎないように控えめな一行にする */
.index-note.ai-note { background: transparent; border: 0; border-left: 3px solid var(--line-2); border-radius: 0; padding: .1rem 0 .1rem .8rem; font-size: .8rem; line-height: 1.7; }
/* 本番の「この記事の検証について」（印やバッジを使わない、事実だけの説明） */
.verify-notes { display: grid; gap: .5rem; margin: .5rem 0 0; }
.verify-notes li { margin: 0; font-size: .9rem; line-height: 1.75; }
/* 要点は、1行を長くしすぎない（本文と同じ幅） */
.keypoints { max-width: var(--measure); }
.entity .note { border-left: 3px solid var(--line-2); padding-left: .8rem; color: var(--muted); }

/* ---------- トップページ ---------- */
.home-hero { padding: 2.2rem 0 2.6rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: end; border-bottom: 1px solid var(--line); }
.home-hero .tagline { font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); line-height: 1.32; letter-spacing: .06em; margin: .6rem 0 1.1rem; font-weight: 600; }
.home-hero .tagline em { font-style: normal; color: var(--seal); }
.home-hero .lead { max-width: 34rem; }
.hero-search { display: flex; gap: .5rem; margin: 1.4rem 0 0; max-width: 34rem; }
.hero-search input[type="search"] { padding: .75rem 1rem; font-size: 1rem; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-stats div { background: var(--surface); padding: 1rem 1.1rem; }
.hero-stats .v { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stats .l { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .05em; margin-top: .25rem; }
.feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; }
.feature-lead { border-top: 3px solid var(--ink); padding-top: 1rem; }
.feature-lead .card-title { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.5; display: block; margin: .5rem 0 .6rem; }
.feature-lead .card-excerpt { -webkit-line-clamp: 5; font-size: .98rem; }
.feature-side .card { padding: 1rem 0; }
.feature-side .card:first-child { border-top: 3px solid var(--line-2); padding-top: 1rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.panel h3 { margin-top: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; margin: 1rem 0; }
.stat-row div { border-left: 2px solid var(--line-2); padding-left: .8rem; }
.stat-row .v { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; display: block; }
.stat-row .l { font-size: .78rem; color: var(--muted); }
.pipeline { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; counter-reset: pl; }
.pipeline li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem .9rem 1rem; font-size: .84rem; line-height: 1.7; position: relative; counter-increment: pl; }
.pipeline li::before { content: counter(pl, decimal-leading-zero); display: block; font-size: .7rem; color: var(--seal); font-weight: 700; letter-spacing: .1em; margin-bottom: .3rem; }
.pipeline strong { display: block; font-family: var(--serif); font-size: .98rem; margin-bottom: .2rem; }
.entry-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .7rem; }
.entry-grid li { margin: 0; }
.entry-grid a { display: flex; flex-direction: column; height: 100%; gap: .2rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); line-height: 1.55; }
.entry-grid a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.entry-grid strong { font-family: var(--serif); font-size: 1rem; }
.entry-grid span { font-size: .8rem; color: var(--muted); }
.fc-mini { list-style: none; padding: 0; margin: 0; }
.fc-mini li { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .9rem; }
.empty-state { color: var(--muted); font-size: .92rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 1rem 1.1rem; }

/* ---------- 一覧・ハブ・検索 ---------- */
.term-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.term-list li { margin: 0; }
.term-list a { display: inline-block; padding: .2rem .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; background: var(--surface); color: var(--ink-2); }
.term-list a:hover { border-color: var(--accent); color: var(--accent); }
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; margin: 2.5rem 0; font-size: .9rem; }
.pager a { padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
.hero p { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; margin: 1rem 0 1.5rem; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: .65rem .85rem; background: var(--surface); line-height: 1.4; }
.tile-v { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile-l { font-size: .78rem; color: var(--muted); }
.hub-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .7rem; }
.hub-grid li { margin: 0; }
.hub-grid a { display: flex; flex-direction: column; gap: .15rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; text-decoration: none; background: var(--surface); line-height: 1.55; color: var(--ink); }
.hub-grid a:hover { border-color: var(--accent); }
.analysis-section { border-left: 3px solid var(--analysis-line); padding-left: 1rem; margin: 1.8rem 0; }
.analysis-section h2 { border-bottom-color: color-mix(in srgb, var(--analysis-line) 45%, var(--line)); }
.bib-section { border-left: 3px dashed var(--line-2); padding-left: 1rem; margin: 1.8rem 0; }
.bib-section h2 { color: var(--ink-2); border-bottom-style: dashed; }
.bib-list { list-style: none; padding: 0; font-size: .92rem; }
.bib-list li, li.bib { margin: .45rem 0; padding-left: .7rem; border-left: 2px dashed var(--line-2); line-height: 1.65; }
.prov-box { margin-top: 2.8rem; padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .86rem; }
.prov-box h2 { font-size: .9rem; margin: 0 0 .4rem; padding: 0; border: 0; font-family: var(--sans); letter-spacing: .08em; }
.prov-box p { margin: .25rem 0; }
.subnav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .6rem 0 1.2rem; font-size: .9rem; }
form[role="search"] { display: flex; gap: .5rem; margin: 1rem 0; }
input[type="search"], input[type="text"], select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: .45rem; }
input[type="search"] { flex: 1; min-width: 0; font-size: 1rem; padding: .6rem .85rem; -webkit-appearance: none; appearance: none; }
input[type="search"]:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
button, .button { font: inherit; font-size: .92rem; padding: .55rem 1.1rem; border: 1px solid var(--ink); border-radius: .45rem; background: var(--ink); color: var(--paper); cursor: pointer; letter-spacing: .06em; text-decoration: none; display: inline-block; line-height: 1.5; }
button:hover, .button:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
button.secondary, .button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
button.secondary:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.search-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.filters { display: flex; flex-direction: column; gap: .9rem; font-size: .86rem; position: sticky; top: 7.5rem; }
.filters label { display: flex; flex-direction: column; gap: .3rem; color: var(--muted); letter-spacing: .04em; }
.filters select { font-size: .88rem; max-width: 100%; padding: .4rem .5rem; }
.filters .range { display: grid; grid-template-columns: 1fr auto 1fr; gap: .3rem; align-items: center; }
.filters input[type="number"] { width: 100%; font: inherit; font-size: .88rem; padding: .35rem .45rem; border: 1px solid var(--line-2); border-radius: .4rem; background: var(--surface); color: var(--ink); }
.search-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.search-tabs button { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; letter-spacing: .03em; }
.search-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#search-status { font-size: .88rem; }
.result-src { font-size: .78rem; color: var(--muted); }
.search-hints { font-size: .84rem; color: var(--muted); }
.search-hints a { margin-right: .7rem; }
hr.thin { border: 0; border-top: 1px dotted var(--line-2); margin: .5rem 0; }
.page-text summary { cursor: pointer; }
.page-text p { font-size: .88rem; color: var(--muted); }
.verify { display: inline-block; font-size: .76rem; padding: .05rem .55rem; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.verify-tracking { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.verify-hit { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.verify-miss { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
figure { margin: 1.2rem 0 1.8rem; }
figcaption { font-size: .88rem; margin-bottom: .4rem; color: var(--ink-2); }
svg.chart { width: 100%; height: auto; max-width: 44rem; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { stroke: var(--muted); stroke-width: 1; }
.ch-tick { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.ch-s polyline { stroke: var(--accent); stroke-width: 2; }
.ch-s circle { fill: var(--accent); }
.ch-s1 polyline { stroke: var(--seal); } .ch-s1 circle { fill: var(--seal); }
.ch-s2 polyline { stroke: var(--ok); } .ch-s2 circle { fill: var(--ok); }
.ch-s3 polyline { stroke: var(--warn); } .ch-s3 circle { fill: var(--warn); }
.ch-legend { font-size: 11px; font-family: var(--sans); fill: var(--accent); }
.ch-legend.ch-s1 { fill: var(--seal); } .ch-legend.ch-s2 { fill: var(--ok); } .ch-legend.ch-s3 { fill: var(--warn); }
.ch-bar { fill: var(--accent); }
.tl-year h2 { font-size: 1.1rem; margin-top: 1.6rem; }
.tl-list { font-size: .94rem; }
.agg { margin: 1.5rem 0; }

/* 研究データベースの画面は広め */
body.page-reports .wrap, body.page-forecasts .wrap, body.page-stats .wrap, body.page-hub .wrap, body.page-institution .wrap, body.page-region .wrap, body.page-timeline .wrap, body.page-updates .wrap, body.page-document .wrap, body.page-source .wrap, body.page-search .wrap, body.page-entities .wrap, body.page-institutions .wrap, body.page-regions .wrap { max-width: calc(64rem + 2 * var(--gutter)); }
.site-header .wrap, .site-nav .wrap, .site-footer .wrap, .preview-wrap { max-width: calc(var(--wide) + 2 * var(--gutter)) !important; }

/* 固定ページ */
.static-page .prose { max-width: var(--measure); }
.placeholder { display: inline-block; background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); border-radius: .3rem; padding: 0 .45rem; font-size: .85em; }
.about-nav { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.about-nav li { margin: 0; }
.about-nav a { display: inline-block; padding: .2rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; text-decoration: none; color: var(--ink-2); background: var(--surface); }
.about-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.notfound { text-align: center; padding: 3rem 0; }
.notfound .code { font-family: var(--serif); font-size: 4rem; color: var(--seal); letter-spacing: .1em; margin: 0; }

/* ---------- 画面幅 ---------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-rail { display: none; }
  .rail-details { display: block; margin: 0 0 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .rail-details summary { padding: .7rem 1rem; cursor: pointer; font-size: .86rem; color: var(--ink-2); letter-spacing: .05em; }
  .rail-details .rail-box { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .home-hero, .feature, .two-col { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .search-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; }
  .filters label { flex: 1 1 9rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; line-height: 1.88; }
  .prose { font-size: 1rem; }
  h2 { font-size: 1.2rem; }
  .site-header .bar { gap: .6rem; }
  .brand-ja { font-size: 1.15rem; }
  .brand-mark { width: 28px; height: 28px; }
  .header-search { flex: 1 1 auto; }
  .header-search input[type="search"] { font-size: 16px; padding-top: .4rem; padding-bottom: .4rem; }
  .site-nav ul { gap: 0 1.15rem; }
  .site-nav a { font-size: .86rem; }
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .hero-search { flex-direction: column; }
  .hero-stats .v { font-size: 1.4rem; }
  .keypoints { padding: 1rem 1rem .3rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-section, .bib-section { padding-left: .7rem; }
  table { font-size: .8rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .preview-banner, .site-header, .site-nav, .site-footer, .article-rail, .rail-details, .report-box, .cite-actions, .fn-pop { display: none !important; }
  body { background: #fff; color: #000; }
  .article-layout { display: block; }
  .table-wrap { overflow: visible; border: 0; }
  a { color: inherit; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.about-nav.spaced { margin-top: 1.4rem; }
.notfound-search { max-width: 30rem; margin: 1.5rem auto; }

/* ---------- 主張と計算の根拠・監査の記録（2026-10-28 取り込み） ---------- */
sup.cref { font-size: .62em; line-height: 0; margin: 0 .12em; font-family: var(--sans); white-space: nowrap; }
sup.cref a { text-decoration: none; border: 1px solid var(--line-2); border-radius: .25rem; padding: 0 .25em; color: var(--muted); }
sup.cref a:hover { color: var(--accent); border-color: var(--accent); }
.claims { margin-top: 2.8rem; }
.claims h2 { font-size: 1.12rem; }
.claim-list { font-size: .86rem; line-height: 1.75; padding-left: 2.2em; }
.claim-list > li { margin: .8em 0 1.1em; padding: .2rem .4rem; border-radius: .25rem; }
.claim-list > li:target { background: var(--accent-soft); }
.claim-list p { margin: .25em 0; }
.claim-text { font-weight: 600; }
.claim-list .label { display: inline-block; font-size: .72rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: .25rem; padding: 0 .4em; margin-right: .35em; background: var(--surface); }
.claim-list .calc ul { margin: .25em 0; padding-left: 1.2em; }
.claim-list code { word-break: break-all; font-family: var(--mono); font-size: .92em; }
.fact-extra { color: var(--muted); }
.dref { color: var(--muted); }
.audit-round { margin: 1.2rem 0; }
.audit-round h3 { font-size: 1rem; margin-bottom: .2rem; }
.findings { font-size: .86rem; }
.findings li { margin: .35em 0; }
.badge.sev-critical, .badge.sev-high { color: var(--seal); background: var(--seal-soft); border-color: transparent; }
.badge.sev-medium { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.badge.sev-low, .badge.sev-info { color: var(--muted); background: var(--sunk); border-color: transparent; }
@media (max-width: 640px) { .claim-list { padding-left: 1.5em; } }
@media print { .claims { break-before: page; } }
