:root {
  --ink: #1f2328;
  --muted: #5c6670;
  --line: #e3e7ea;
  --bg: #f7f8f9;
  --card: #ffffff;
  --accent: #0e8c8c;
  --accent-soft: #e4f5f4;
  --max: 860px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.brand-main { font-weight: 700; font-size: 18px; }
.brand-sub { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--ink); text-decoration: underline; }
main.wrap { padding-top: 28px; padding-bottom: 48px; }
h1 { font-size: 28px; line-height: 1.45; margin: 8px 0 12px; }
h2 { font-size: 21px; line-height: 1.5; margin: 36px 0 10px; }
h3 { font-size: 18px; line-height: 1.5; margin: 24px 0 8px; }
.lead { font-size: 17px; color: #333b42; }
.muted { color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.badge { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 10px; font-weight: 600; }
.byline { color: var(--muted); font-size: 14px; margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose.small { font-size: 14px; line-height: 1.75; }
.figure { margin: 24px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.chart + .chart { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.chart-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 4px 8px 0; }
svg.epoch-chart { display: block; width: 100%; height: auto; }
.chart-missing { padding: 24px; margin: 0; color: var(--muted); text-align: center; }
.downloads ul, .related ul { padding-left: 1.2em; }
.attribution { margin-top: 40px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; font-size: 14px; line-height: 1.75; }
.attribution h2 { font-size: 16px; margin: 0 0 8px; }
.attribution p { margin: 0 0 8px; }
.attribution code { font-size: 12px; word-break: break-all; }
.back { margin-top: 28px; }
.insight-list { list-style: none; padding: 0; margin: 0; }
.insight-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.insight-list li a { font-weight: 600; text-decoration: none; color: var(--ink); flex: 1 1 420px; }
.insight-list li a:hover { color: var(--accent); text-decoration: underline; }
.insight-list li p { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--muted); }
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 28px 0; }
.home-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.home-card:hover { border-color: var(--accent); }
.home-card h2 { margin: 0 0 6px; font-size: 19px; color: var(--accent); }
.home-card p { margin: 0; font-size: 14px; color: var(--muted); }
.more { font-weight: 600; }
.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-size: 14px; }
.trend-section { margin-top: 36px; }
.featured { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.featured h3 { margin-top: 4px; }
.trend-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.trend-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.trend-name { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.trend-value { margin: 2px 0 0; font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1.3; }
.trend-alt { margin: 2px 0 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.trend-desc { margin: 4px 0; font-weight: 600; }
.trend-ci { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.note { background: var(--accent-soft); border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--muted); line-height: 1.8; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 28px; }
@media (max-width: 600px) {
  h1 { font-size: 23px; }
  h2 { font-size: 19px; }
  .figure { padding: 2px; margin-left: -8px; margin-right: -8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  svg.epoch-chart { min-width: 620px; }
  .figure::after { content: '← 横にスクロールできます →'; display: block; text-align: center; font-size: 11px; color: var(--muted); padding: 2px 0; }
  /* 操作できるグラフは幅に合わせて描き直すので、横スクロールの案内を出さない */
  .figure-live { overflow-x: visible; }
  .figure-live::after { content: none; }
  .trend-value { font-size: 26px; }
}
.unofficial-banner { background: #fff8e1; border-bottom: 1px solid #f0e0a8; font-size: 13px; line-height: 1.6; color: #5a4a14; }
.unofficial-banner .wrap { padding-top: 8px; padding-bottom: 8px; }
.trend-grid > *, .featured, .trend-card { min-width: 0; }
.sum-section { margin-top: 36px; }
.sum-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sum-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; min-width: 0; }
.sum-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.sum-metric { margin: 0; font-weight: 700; font-size: 15px; flex: 1 1 260px; }
.sum-value { margin: 0; font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1.3; }
.sum-alt { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.sum-desc { margin: 6px 0 4px; font-size: 15px; line-height: 1.7; }
.sum-meta { margin: 0; font-size: 12.5px; color: var(--muted); }
.sum-meta .sep { margin: 0 6px; color: var(--line); }
.sum-links { margin: 6px 0 0; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sum-chart summary { cursor: pointer; font-size: 13.5px; color: var(--accent); margin-top: 6px; }
.sum-chart .figure { margin: 8px 0 0; }

/* 公式ページへの常時表示リンク (Epoch AI の許可条件: 非公式訳の明示と、公式ページへのはっきり見えるリンク) */
body { padding-bottom: 56px; }
.official-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #1f2328; color: #fff; font-size: 13px; line-height: 1.5; box-shadow: 0 -2px 8px rgba(0,0,0,.15); }
.official-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding-top: 8px; padding-bottom: 8px; }
.official-bar-label { font-weight: 700; background: #f5c542; color: #1f2328; border-radius: 4px; padding: 0 8px; }
.official-bar a { color: #8fe3dc; word-break: break-all; }

/* 記事 (論文・レポート / Gradient Updates / お知らせ) */
.article .prose h2 { margin-top: 2em; font-size: 22px; }
.article .prose h3 { margin-top: 1.6em; font-size: 18px; }
.article .prose h4, .article .prose h5 { margin-top: 1.4em; font-size: 16px; }
.article .prose table { border-collapse: collapse; margin: 16px 0; font-size: 14px; display: block; overflow-x: auto; max-width: 100%; }
.article .prose th, .article .prose td { border: 1px solid var(--line); padding: 4px 8px; vertical-align: top; }
.article .prose th { background: #f0f3f4; }
.article .prose pre { background: #f0f3f4; padding: 12px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.article .prose blockquote { margin: 16px 0; padding: 4px 16px; border-left: 4px solid var(--line); color: #3a4148; }
.figure-image img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.figure-image figcaption, .figure figcaption { font-size: 14px; color: var(--muted); padding: 8px 4px 0; }
.figure-note { font-size: 12px; color: var(--muted); margin: 6px 4px 0; }
.footnotes ol { font-size: 14px; padding-left: 1.6em; }
.footnotes li p { margin: 0 0 6px; }
.fn-back { text-decoration: none; margin-left: 4px; }
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.kind { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; margin-right: 6px; white-space: nowrap; }
.untranslated a { font-weight: 400 !important; color: var(--muted) !important; }
.lang-en { font-size: 12px; color: var(--muted); }
.authors { font-size: 13px; color: var(--muted); }

/* データの解説 */
.doc-nav { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; margin: 12px 0 20px; font-size: 14px; }
.doc-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.doc-nav a[aria-current="page"] { font-weight: 700; color: var(--ink); text-decoration: none; }
.doc-nav p { margin: 6px 0 0; }
.dataset { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.doc-pages { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; }
.subscribe-cta { background: var(--accent-soft); border-radius: 8px; padding: 8px 14px; font-size: 14px; }

/* 操作できるグラフ (scripts/charts/) */
.figure-live { padding: 10px 10px 6px; }
.ichart-svg svg { display: block; width: 100%; height: auto; }
.ichart-svg [data-tip] { cursor: crosshair; }
.ichart-svg .ichart-hot { stroke: #1f2328; stroke-width: 1.6; filter: brightness(1.05); }
.ichart-svg .legend-item:hover text { text-decoration: underline; }
/* 地図 (グラフ定義の map: true): 輪郭は白のまま太く、注記の文字には線を付けない */
.ichart-svg .map-shape[data-tip] { cursor: pointer; }
.ichart-svg .map-shape.ichart-hot { stroke: #fff; stroke-width: 5; fill-opacity: .28; filter: none; }
.ichart-svg .map-label[data-tip] { cursor: pointer; }
.ichart-svg .map-label.ichart-hot { stroke: none; filter: none; }
.ichart-svg .map-label.ichart-hot rect { fill: #2b3137; }
/* AGI Hub が追加した図 (Epoch AI の原文には無い) */
.agihub-addition { margin: 28px 0; padding: 14px 16px 10px; border: 1px solid var(--line); border-left: 4px solid #eda100; border-radius: 6px; background: #fffdf7; }
.agihub-addition h2 { margin-top: 0; }
.agihub-addition .addition-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #7a5400; background: #fff1cc; border-radius: 999px; padding: 1px 10px; margin-bottom: 6px; }
.agihub-addition .figure { background: #fff; }
.figure-note.agihub-note { color: #7a5400; }
/* スクリプトが動かない環境では、タブの図を縦に並べて全部見せる */
.chart-tabs.tabs-stack:not(.tabs-live) .tab-list { display: none; }
.chart-tabs.tabs-stack:not(.tabs-live) [data-pane][hidden] { display: block; }
.chart-tabs.tabs-stack:not(.tabs-live) [data-pane] + [data-pane] { margin-top: 14px; }
.ichart-tip { position: fixed; z-index: 60; display: none; max-width: 340px; background: #fff; border: 1px solid #cfd6da; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.14); padding: 8px 10px; font-size: 12.5px; line-height: 1.5; color: #1f2328; pointer-events: none; }
.ichart-tip table { border-collapse: collapse; }
.ichart-tip th { text-align: left; font-weight: 400; color: #5c6670; padding: 1px 10px 1px 0; vertical-align: top; white-space: nowrap; }
.ichart-tip td { font-weight: 600; padding: 1px 0; }
.ichart-tip-head { font-weight: 700; margin-bottom: 4px; }
.ichart-tip .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.chart-tabs .tab-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 2px 10px; }
.chart-tabs .tab-list button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 12px; cursor: pointer; color: var(--ink); }
.chart-tabs .tab-list button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chart [data-title], .chart circle, .chart rect { cursor: default; }

/* トップページ (グラフとトレンドの数値が主役) */
main.wrap.wide { max-width: 1440px; }
.home-hero { padding: 18px 0 8px; }
.home-eyebrow { margin: 0; font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.home-hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.3; margin: 6px 0 8px; }
.home-lead { margin: 0; color: var(--muted); font-size: 15px; max-width: 760px; }
.home-block { margin: 30px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.block-head h2 { margin: 0 0 6px; font-size: 19px; }
.block-head a { font-size: 13px; text-decoration: none; white-space: nowrap; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.num-tile { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.num-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.num-cat { font-size: 11.5px; color: var(--muted); }
.num-val { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.25; }
.num-name { font-size: 13px; line-height: 1.45; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 8px; min-width: 0; }
.chart-card-title { display: block; font-weight: 700; font-size: 15px; line-height: 1.5; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.chart-card-title:hover { color: var(--accent); text-decoration: underline; }
.chart-card-meta { margin: 0; font-size: 12px; color: var(--muted); }
.chart-card .chart svg { width: 100%; height: auto; display: block; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.insight-list.compact li { padding: 8px 0; }
.insight-list.compact li a { font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-size: 14px; }
.chip span { font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 860px) {
  .chart-grid, .chart-grid.three, .two-col { grid-template-columns: 1fr; }
}
.chart-card .chart svg { min-width: 0 !important; max-width: 100%; }

/* 一覧の縮小画像 */
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 10px 0 24px; }
.thumb-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.thumb-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.thumb-card .thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; object-position: top; background: #fff; border-radius: 6px; }
.thumb-card-date { font-size: 12px; color: var(--muted); }
.thumb-card-title { font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.insight-list li.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: start; }
.insight-list li .row-text { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; min-width: 0; }
.insight-list li .row-text p { flex-basis: 100%; }
.row-thumb { display: block; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.row-thumb .thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
@media (max-width: 640px) {
  .insight-list li.has-thumb { grid-template-columns: 1fr; }
  .row-thumb { max-width: 320px; }
}
/* データの閲覧ツール (data/<explorer>/) */
.ex-link a { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.ex-link a:hover { filter: brightness(1.1); }
.ex-link .muted a { display: inline; padding: 0; background: none; color: var(--accent); font-weight: 400; font-size: 13px; text-decoration: underline; }
.ex-tabs > .tab-list { margin: 16px 0 4px; }
.ex-controls { display: grid; gap: 10px; margin: 12px 0; }
.ex-group { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 12px 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.ex-group legend { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.ex-group label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.ex-group label.ex-check { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); padding-bottom: 4px; }
.ex-group select, .ex-group input[type="search"], .ex-group input[type="number"] { font: inherit; font-size: 13px; color: var(--ink); border: 1px solid #cfd6da; border-radius: 6px; padding: 4px 6px; background: #fff; max-width: 15em; }
.ex-group input[type="number"] { width: 5.5em; }
.ex-range { display: flex; align-items: center; gap: 4px; color: var(--ink); }
.ex-reset { font: inherit; font-size: 13px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; color: var(--muted); }
.ex-reset:hover { border-color: var(--accent); color: var(--accent); }
.explorer .figure { margin: 8px 0; }
.ex-count { font-size: 13px; color: var(--muted); margin: 6px 0; }
.ex-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.ex-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.ex-table th, .ex-table td { padding: 5px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ex-table thead th { position: sticky; top: 0; background: #f6f8f9; white-space: nowrap; }
.ex-table thead th button { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.ex-table thead th button:hover { color: var(--accent); }
.ex-table .ex-unit { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.ex-table tbody th { font-weight: 600; min-width: 10em; }
.ex-table td.date { white-space: nowrap; }
.ex-table td.num, .ex-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ex-table tbody tr:hover { background: #f8fbfb; }
.ex-more { text-align: center; margin: 8px 0; }
.ex-more button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 16px; cursor: pointer; }
.ex-cols { margin: 24px 0; font-size: 14px; }
.ex-cols summary { cursor: pointer; color: var(--accent); }
.ex-cols-table { border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.ex-cols-table th, .ex-cols-table td { border-bottom: 1px solid var(--line); padding: 3px 12px 3px 0; text-align: left; }
@media (max-width: 640px) {
  .ex-group select, .ex-group input[type="search"] { max-width: 100%; width: 100%; }
  .ex-group label { flex: 1 1 40%; min-width: 0; }
  .ex-group label.ex-check { flex-basis: 100%; }
}

/* ===== 見た目の調整 (2026-10-01): 白地・広い余白・控えめな見出しとメニュー・細い枠のカード =====
   Epoch AI のサイトの「グラフが主役で文字が少ない」雰囲気に寄せる。CSS・ロゴ・図柄は独自 (原文のものは使わない)。 */
:root { --bg: #ffffff; --line: #dde2e5; --ink: #16191c; }
body { line-height: 1.8; }
h1, h2, h3 { font-weight: 600; letter-spacing: .01em; }
h1 { font-size: 32px; line-height: 1.35; }
/* サイト内メニュー: 配信時に AGI Hub 共通ヘッダーの下の .translation-local-nav に組み替えられる (lib/site-chrome.js) */
body .translation-local-nav { align-items: center; flex-wrap: nowrap; overflow-x: auto; gap: 15px; padding: 12px max(24px, calc((100% - 1408px) / 2)); background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; scrollbar-width: thin; }
body .translation-local-nav.overflow-checked { overflow-x: hidden; }
body .translation-local-nav.is-overflowing { overflow-x: auto; scrollbar-width: thin; }
body .translation-local-nav > a { flex: none; white-space: nowrap; }
body .translation-local-nav a, body .translation-local-nav a:visited { color: var(--ink); text-decoration: none; }
body .translation-local-nav a:hover { color: var(--accent); text-decoration: none; }
body .translation-local-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
body .translation-local-nav a.brand { margin-right: 12px; }
.brand-main { font-weight: 600; letter-spacing: .02em; }
/* 種類のラベル: 枠線だけの小さな四角 */
.badge, .kind { background: #fff; color: var(--ink); border: 1px solid var(--accent); border-radius: 3px; padding: 0 7px; font-weight: 400; font-size: 12.5px; }
.dot-label { display: inline-flex; align-items: center; gap: 6px; }
.dot-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
/* カード: 角を小さく、影なし */
.figure, .chart-card, .thumb-card, .home-card, .trend-card, .doc-nav, .ex-group, .ex-table-wrap, .featured, .data-explorers a { border-radius: 4px; border-color: var(--line); }
.thumb-card, .chart-card { transition: border-color .15s; }
.thumb-card:hover, .num-tile:hover { transform: none; }
.thumb-card-title, .chart-card-title { font-weight: 600; font-size: 16px; line-height: 1.5; }
.thumb-card-date, .chart-card-meta { display: inline-flex; align-items: center; gap: 6px; }
.thumb-card-date::before, .chart-card-meta::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.insight-list li a { font-weight: 600; }
.attribution { border-left-width: 1px; border-radius: 4px; background: #fafbfb; }
/* 丸いボタン (主な導線) */
.btn-pill { display: inline-block; background: var(--accent-soft); color: #0a5f5f; border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.btn-pill:hover { background: #cdeeed; }
.chip { border-radius: 999px; }
/* トップ: 見出しは大きく細め、区切りの太線は使わない */
.home-hero { padding: 36px 0 12px; }
.home-hero h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 600; line-height: 1.3; max-width: 820px; }
.home-lead { font-size: 15.5px; }
.home-block { margin: 44px 0; }
.block-head { border-bottom: 0; margin-bottom: 16px; }
.block-head h2 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 600; margin: 0; }
.block-head a { font-size: 14px; color: var(--ink); }
.block-head a:hover { color: var(--accent); }
/* 主要なトレンド: 横にスライドするカード */
.home-trends { margin-top: 24px; }
.slider { position: relative; margin: 0 -16px; }
.slider-track { display: flex; align-items: flex-start; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 2px 16px 10px; scrollbar-width: thin; }
.slider-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .slider-track.is-draggable { cursor: grab; scroll-snap-type: none; }
  .slider-track.is-draggable:not(.is-selecting) { user-select: none; }
  .slider-track.is-selecting { user-select: text; }
  .slider-track.is-selecting :is(.trend-slide-name, .trend-slide-val, .trend-slide-desc, .trend-slide-foot) { cursor: text; }
  .slider-track.is-pointer-down { scroll-behavior: auto; }
  .slider-track.is-dragging, .slider-track.is-dragging * { cursor: grabbing !important; }
  .slider-track .trend-overlay { user-select: text; cursor: auto; }
}
.trend-slide { position: relative; flex: 0 0 calc((100% - 48px) / 3); min-width: 360px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 16px; color: var(--ink); transition: border-color .15s; }
.trend-slide:hover { border-color: var(--accent); }
.trend-slide-name { min-height: 3em; padding-right: 36px; font-weight: 500; font-size: 15px; line-height: 1.5; color: var(--ink); text-decoration: none; }
.trend-slide-name:hover { color: var(--accent); }
.trend-slide-val { margin: 0; font-size: 40px; font-weight: 500; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric-unit { font-size: 22px; }
.metric-number { margin: 0 2px; }
.trend-slide-desc { margin: 0; min-height: 4.8em; font-size: 15px; line-height: 1.6; color: #3b434a; }
.trend-slide-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.trend-slide-ci { font-size: 11.5px; }
.trend-slide-foot .dot-label { color: var(--accent); font-weight: 600; }
.slider-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.slider-buttons { display: none; gap: 4px; }
.slider-live .slider-buttons { display: inline-flex; }
.slider-buttons button { font: inherit; font-size: 20px; line-height: 1; width: 40px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--ink); border-radius: 4px; }
.slider-buttons button:hover:not(:disabled) { background: var(--accent-soft); }
.slider-buttons button:disabled { color: #b8bec4; cursor: default; }
@media (max-width: 640px) {
  h1 { font-size: 25px; }
  body .translation-local-nav { flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding: 10px 16px; }
  body .translation-local-nav a { white-space: nowrap; }
  .trend-slide { flex-basis: 86%; min-width: 0; }
  .trend-slide-val { font-size: 36px; }
  .metric-unit { font-size: 20px; }
}
/* ネイティブ Popover はスクリプトなしでも開閉し、周囲のレイアウトを動かさない。 */
.trend-toggle { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; cursor: pointer; border-radius: 50%; color: #fff; background: var(--ink); }
.trend-toggle:hover { background: var(--accent); }
.trend-toggle:focus-visible, .trend-overlay-close:focus-visible, .trend-slide-name:focus-visible, .trend-detail-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.trend-toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trend-toggle-icon { position: relative; width: 14px; height: 14px; }
.trend-toggle-icon::before, .trend-toggle-icon::after { content: ''; position: absolute; background: currentColor; }
.trend-toggle-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.trend-toggle-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.trend-toggle:has(+ .trend-overlay:popover-open) .trend-toggle-icon::after { display: none; }
.trend-overlay { position: fixed; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 48px rgba(22, 25, 28, .18); }
.trend-overlay.is-positioned { top: var(--overlay-top); left: var(--overlay-left); transform: none; max-height: var(--overlay-max-height); }
.trend-overlay-title { margin: 0; padding-right: 36px; font-size: 18px; line-height: 1.5; }
.trend-overlay-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f4f4; color: var(--ink); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.trend-overlay-close:hover { background: var(--accent-soft); }
.trend-slide-chart { display: block; margin: 16px 0; }
.trend-slide-chart .thumb { display: block; width: 100%; height: auto; }
.trend-slide-cap { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.trend-ci-detail { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.trend-detail-link { font-size: 14px; font-weight: 500; text-decoration: none; }

/* ===== 2026-10-02: フォントを IBM Plex Sans JP に。トップをデータと研究のグリッド・最新記事の一覧に (CSS は独自) ===== */
:root { --mint: #7ae3c8; --mint-ink: #0b3d33; }
body { font-family: 'IBM Plex Sans JP', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, system-ui, sans-serif; }
h1, h2, h3, .block-head h2, .home-hero h1 { font-weight: 500; }
.btn-pill { background: var(--mint); color: var(--mint-ink); font-weight: 500; }
.btn-pill:hover { background: #64d8b9; }
main.wrap.wide { padding-top: 36px; }
.home-hero { padding: 0 0 32px; }
.home-hero h1 { margin: 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.4; letter-spacing: .01em; }
.hero-phrase { display: inline-block; }
.home-h2 { font-size: clamp(23px, 2.4vw, 32px); font-weight: 500; margin: 0 0 24px; }
.home-block { margin: 56px 0; }
.home-block.home-trends { margin: 0 0 64px; }
.trend-slide-name { font-weight: 500; }
.dot-label::before { background: var(--dot, var(--accent)); }
.trend-slide-foot .dot-label { color: var(--dot, var(--accent)); font-weight: 500; }
/* 種類のラベルと日付 */
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.card-meta .badge { border-color: var(--accent); }
.date-dot { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.date-dot:empty { display: none; }
.date-dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #333a40; }
/* データと研究のグリッド: 左に大きな1枚、右に4枚 */
.feature-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px 24px; align-items: start; }
.feature-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.feature-card .card-meta { min-height: 24px; }
.feature-card .badge, .feature-card .date-dot { display: inline-flex; align-items: center; min-height: 24px; }
.feature-card.feature-big { grid-row: span 2; }
.feature-thumb { display: block; border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; transition: border-color .15s; }
.feature-thumb .thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; object-position: center; background: #fff; }
.feature-big .feature-thumb .thumb { aspect-ratio: 16 / 10; }
.feature-card:hover .feature-thumb { border-color: var(--accent); }
.feature-title { font-size: 18px; font-weight: 500; line-height: 1.6; }
.feature-big .feature-title { font-size: 24px; }
.feature-desc { font-size: 15px; color: #3b434a; line-height: 1.7; }
.feature-card:hover .feature-title { color: var(--accent); }
.data-explorers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin: 40px 0 0; padding: 0; }
.data-explorers > .feature-card { display: flex; background: none; border: 0; padding: 0; }
.data-explorers .feature-title { font-size: 18px; }
/* 最新の記事: 左に種類・日付・題名、右に縮小画像 */
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { border-bottom: 1px solid var(--line); }
.latest-list a { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: center; padding: 18px 0; text-decoration: none; color: var(--ink); }
.latest-text { display: flex; flex-direction: column; gap: 8px; }
.latest-title { font-size: 18px; font-weight: 500; line-height: 1.5; }
.latest-list a:hover .latest-title { color: var(--accent); }
.latest-thumb { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.latest-thumb .thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
/* 出典欄は控えめに */
.attribution { margin-top: 48px; padding: 14px 0 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.attribution p { margin: 0 0 6px; }
.site-footer p { margin: 6px 0; }
@media (max-width: 860px) {
  .data-explorers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.feature-big { grid-column: 1 / -1; grid-row: auto; }
}
@media (min-width: 561px) and (max-width: 1200px) {
  .feature-grid .feature-card:not(.feature-big) .card-meta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .data-explorers { grid-template-columns: 1fr; }
  .trend-overlay { padding: 20px; }
  .hero-break { display: none; }
  main.wrap.wide { padding-top: 28px; }
  .home-hero { padding-bottom: 24px; }
  .home-block { margin: 40px 0; }
  .home-block.home-trends { margin-bottom: 44px; }
  .slider-track { gap: 16px; }
  .trend-slide { padding: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .latest-list a { grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; }
  .latest-title { font-size: 16px; }
}
@media (max-width: 360px) {
  .trend-slide-name { min-height: 4.5em; }
}
