/* Hindsight Lab */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f0ea;
  --text: #1d2229;
  --muted: #5d6673;
  --line: #e2ded4;
  --accent: #0f5c4d;
  --accent-soft: #e3f0ec;
  --accent-ink: #ffffff;
  --gold: #a0721b;
  --warn-bg: #fff6e0;
  --warn-line: #e3b85a;
  --err: #b42318;
  --fact: #1f6f43;      --fact-bg: #e3f3e8;
  --outlook: #1d4f91;   --outlook-bg: #e2ecf9;
  --hypo: #7a4a00;      --hypo-bg: #fbeed6;
  --unconf: #6b6f76;    --unconf-bg: #ececec;
  --radius: 10px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b; --surface: #1a2027; --surface-2: #222a33; --text: #e7eaee; --muted: #9aa4b1; --line: #2e3742;
    --accent: #5cc2a8; --accent-soft: #173a33; --accent-ink: #0c1512; --gold: #d9a94a;
    --warn-bg: #2f2713; --warn-line: #8a6a24; --err: #ff8a80;
    --fact: #7fd3a1; --fact-bg: #173325; --outlook: #8db8f0; --outlook-bg: #182a44;
    --hypo: #f0c06a; --hypo-bg: #3a2d12; --unconf: #b5bac2; --unconf-bg: #2c3138;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.85; letter-spacing: .02em; }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.article-wrap { max-width: 780px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }

.preview-bar { background: var(--gold); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 6px 16px; }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { background: var(--accent); color: var(--accent-ink); font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; font-size: 14px; }
.brand-name { font-weight: 700; font-size: 15px; }
.site-nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* トップ */
.hero { background: linear-gradient(160deg, var(--accent-soft), var(--bg) 70%); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.hero-kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; margin: 0 0 8px; }
.hero h1 { font-size: clamp(22px, 4vw, 34px); line-height: 1.45; margin: 0 0 16px; max-width: 22em; }
.hero-text { max-width: 44em; color: var(--muted); }
.hero-text p { margin: 0 0 8px; }
.steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 28px 0 8px; font-size: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.step span { background: var(--accent); color: var(--accent-ink); width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; }
.arrow { color: var(--muted); }
.section-title { font-size: 20px; margin: 36px 0 16px; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.4; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.theme { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); }
.theme span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.theme em { font-style: normal; font-size: 12px; color: var(--accent); font-weight: 700; }
.theme:hover { border-color: var(--accent); }
.promo { margin: 40px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.promo h2 { margin: 0 0 6px; font-size: 19px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 8px; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { border-color: var(--accent); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media img, .card-cover { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.card-cover { display: grid; place-items: center; font-weight: 800; font-size: 22px; letter-spacing: .1em; color: #fff; background: linear-gradient(135deg, #0f5c4d, #2f8f7a); }
.cover-ai-semiconductor { background: linear-gradient(135deg, #1d3557, #3a6ea5); }
.cover-power-infra { background: linear-gradient(135deg, #7a4a00, #c98a1a); }
.cover-robotics { background: linear-gradient(135deg, #3b3b58, #6c6c9a); }
.cover-medical-bio { background: linear-gradient(135deg, #0f5c4d, #3aa186); }
.cover-space-defense-materials { background: linear-gradient(135deg, #1b1f2a, #4a5368); }
.card-body { padding: 14px 16px 16px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; }
.card h3 { font-size: 17px; line-height: 1.5; margin: 8px 0 6px; }
.card-summary { font-size: 14px; color: var(--muted); margin: 0 0 8px; line-height: 1.7; }
.card-company { font-size: 13px; margin: 0; font-weight: 600; }
.card-big .card-link { display: grid; grid-template-columns: 1.1fr 1fr; }
.card-big h3 { font-size: 22px; }
@media (max-width: 720px) { .card-big .card-link { grid-template-columns: 1fr; } }
.chip { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; border-radius: 4px; padding: 0 8px; font-size: 12px; line-height: 1.9; }
.chip-draft { background: var(--warn-bg); color: var(--gold); border: 1px solid var(--warn-line); }

/* 固定ページ */
.page-title { font-size: clamp(22px, 3.5vw, 30px); margin: 32px 0 16px; line-height: 1.4; }
.prose h2 { font-size: 20px; margin: 32px 0 10px; }
.theme-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.theme-jump a { font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; text-decoration: none; }
.theme-section { padding-top: 16px; }
.theme-section h2 { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; font-size: 13px; }
.stat-label { font-weight: 700; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1.4; font-variant-numeric: tabular-nums; }
.verdict { font-weight: 700; font-size: 13px; white-space: nowrap; }
.v-ok { color: var(--fact); } .v-part { color: var(--hypo); } .v-ng { color: var(--err); } .v-na { color: var(--muted); }

/* レポート */
.crumbs { font-size: 13px; color: var(--muted); margin: 20px 0 8px; }
.crumbs a { color: var(--muted); }
.report-head { margin-bottom: 20px; }
.report-kicker { color: var(--accent); font-weight: 700; font-size: 13px; margin: 0; }
.report-head h1 { font-size: clamp(23px, 4vw, 32px); line-height: 1.45; margin: 8px 0 16px; }
.eyecatch { border-radius: var(--radius); margin-bottom: 16px; }
.report-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; font-size: 14px; }
.report-facts div { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.report-facts dt { font-size: 12px; color: var(--muted); }
.report-facts dd { margin: 0; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; font-size: 13px; }
.tag { color: var(--muted); }
.disclaimer { background: var(--surface-2); border-radius: var(--radius); padding: 12px 16px; font-size: 13px; line-height: 1.7; color: var(--muted); margin: 20px 0; }
.disclaimer strong { display: block; color: var(--text); margin-bottom: 2px; }
.legend { font-size: 13px; margin: 0 0 16px; }
.legend summary { cursor: pointer; color: var(--muted); }
.legend p { margin: 6px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 28px; font-size: 14px; }
.toc-title { font-weight: 700; margin: 0 0 4px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 24px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.report-body h2, .after h2 { font-size: 21px; line-height: 1.5; margin: 44px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); scroll-margin-top: 40px; }
.report-body h3 { font-size: 17px; margin: 28px 0 8px; }
.report-body p { margin: 0 0 16px; }
.report-body ul, .report-body ol { padding-left: 1.4em; margin: 0 0 16px; }
.report-body li { margin: 4px 0; }
.report-body blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.report-body blockquote p:last-child { margin-bottom: 0; }
.report-body pre { background: var(--surface-2); padding: 14px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.report-body code { font-size: .92em; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
.report-body pre code { background: none; padding: 0; }
.report-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.6; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; min-width: 4.5em; }
.ledger td { min-width: 6em; }
.lbl { display: inline-block; font-size: 11.5px; font-weight: 700; line-height: 1.6; padding: 0 6px; border-radius: 4px; margin: 0 3px; vertical-align: 1px; white-space: nowrap; }
.lbl-fact { color: var(--fact); background: var(--fact-bg); }
.lbl-outlook { color: var(--outlook); background: var(--outlook-bg); }
.lbl-hypo { color: var(--hypo); background: var(--hypo-bg); }
.lbl-unconfirmed { color: var(--unconf); background: var(--unconf-bg); }
.corrections-box { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--radius); padding: 4px 18px 12px; margin: 32px 0; }
.corrections-box h2 { font-size: 18px; }
.corr { border-top: 1px solid var(--warn-line); padding-top: 8px; }
.corr p { margin: 4px 0; }
.after { margin: 8px 0 48px; }
.lint { border: 2px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--radius); padding: 4px 18px 8px; margin: 12px 0 20px; font-size: 14px; }
.lint h2 { font-size: 15px; margin: 10px 0 4px; }
.lint-title { font-weight: 700; margin: 8px 0 0; }
.lint-err { color: var(--err); }
.lint ul { margin: 4px 0; padding-left: 1.3em; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 36px; margin-top: 48px; font-size: 13px; color: var(--muted); }
.footer-disclaimer { margin: 0 0 12px; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.footer-nav a { color: var(--muted); }
.copyright { margin: 0; }
