/* ══════════════════════════════════════════════════════════════════════════
   Modernist — フラットで建築的。角丸ゼロ・2pxの強い罫線・左揃え。
   影は使わず、構造はすべて罫線で示す。
   トークンはデザイン受け渡し(design_handoff_togikai_tracker/styles.css)の値。
   ══════════════════════════════════════════════════════════════════════ */
:root {
  color-scheme: light;
  --bg:        #f3f2f2;
  --surface:   #eae9e9;
  --text:      #201e1d;
  /* 赤は役割で3つに分ける。要求されるコントラストが違うため。
     accent      罫線・進捗バー・ドットなど文字を載せない面（3:1）
     accent-fill 白文字を載せる面。バッジ・ボタン・セル（4.5:1 → 4.74）
     accent-tx   地の上に置く赤い文字。リンク・ラベル（4.5:1 → 6.41） */
  --accent:      #ec3013;
  --accent-fill: #dd2b0f;   /* ランプの 600 */
  --accent-tx:   #ae1800;   /* ランプの 700 */
  --accent-hi:   #ae1800;   /* 赤い面の hover / pressed はさらに一段濃く */
  --accent-800:  #7c1405;   /* 赤い文字の hover。700 が既定なので一段濃い側へ */
  --accent-100:  #fff2ef;   /* 実現セル・注目枠の地 */
  --accent-300:  #ffc4b8;   /* 面が広い所（ことば）の段階4 */

  --n100: #f8f4f4;
  --n200: #eae7e7;
  --n300: #d7d3d3;
  --n400: #bab6b6;
  --n500: #9b9797;
  --n600: #7d7979;   /* 面の区切り用。本文サイズの文字には n700 を使う（AA確保） */
  --n700: #605d5d;
  --n800: #444141;
  --n900: #2d2b2b;

  --divider: color-mix(in srgb, var(--text) 40%, transparent);
  --rule:    2px solid var(--text);
  --rule-soft: 2px solid var(--divider);

  /* 踏み込みの5段階。赤=都が動いた ↔ 墨=動いていない、明るい中間は検討中。
     デザインの語彙（動いた=赤・止まった=墨）をそのまま尺度に伸ばしている。 */
  --st5: #dd2b0f; --st5-ink: #ffffff;
  --st4: #ff9783; --st4-ink: #4d170e;
  --st3: #d7d3d3; --st3-ink: #2d2b2b;
  --st2: #605d5d; --st2-ink: #ffffff;
  --st1: #2d2b2b; --st1-ink: #f8f4f4;
  --st0: #eae7e7;

  --page: 1080px;
  --pad: 40px;
}

/* 端末の設定によらず、常に明るい紙面で出す。
   このデザインは明るい地・墨の文字・赤ひとつで成り立っており、
   反転させると赤の意味（動いた）と墨の意味（止まった）が入れ替わってしまう。
   :root の color-scheme: light が、入力欄・スクロールバー・
   フォームの既定色まで含めてダークへの自動反転を止める。 */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Archivo", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  font-size: 15px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 800; line-height: 1.3; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: var(--accent-tx); text-underline-offset: 3px; }
a:hover { color: var(--accent-800); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
button { font: inherit; color: inherit; }
/* 画面内の移動は <a href> にしている（検索エンジンと「新しいタブで開く」のため）。
   見た目は以前のボタンのままにしたいので、リンクの色と下線をここで外す。
   :where で詳細度を a と同じに抑え、各部品のクラス指定が勝つようにする。 */
a:where([data-detail], [data-nav]),
a:where([data-detail], [data-nav]):hover { color: inherit; text-decoration: none; }
a.btn-primary, a.btn-primary:hover { color: #fff; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: var(--page); width: 100%; margin: 0 auto; padding: 0 var(--pad); }

/* ── ヘッダー ─────────────────────────────────────────────────────── */
header.top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 20px var(--pad); border-bottom: var(--rule);
  background: var(--bg); position: sticky; top: 0; z-index: 10;
}
.brand {
  font-weight: 800; font-size: 18px; letter-spacing: 0.02em;
  cursor: pointer; white-space: nowrap; background: none; border: 0; padding: 0;
}
.brand:hover { color: var(--accent-800); }
/* サイト名だけでは何のサイトか分からないので、どの画面でも一行添える */
.brand-wrap { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.tagline { font-size: 13px; font-weight: 600; color: var(--n700); white-space: nowrap;
           padding-left: 14px; border-left: 2px solid var(--divider); line-height: 1.2; }
/* ナビと並べて窮屈になる幅では、サイト名の下へ回す */
@media (max-width: 900px) {
  .brand-wrap { flex-direction: column; gap: 2px; }
  .tagline { padding-left: 0; border-left: 0; font-size: 12px; }
}
footer b { font-weight: 700; color: var(--n800); }
nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
nav a {
  background: none; border: 0; cursor: pointer; padding: 0 0 2px;
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--accent-800); }
nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ── バッジ（サイト全体の共通語彙） ──────────────────────────────── */
.st { font-size: 12px; font-weight: 700; padding: 1px 8px; white-space: nowrap;
      border: 2px solid var(--text); display: inline-block; }
.st-moved   { background: var(--accent-fill); color: #fff; border-color: var(--accent-fill); }
.st-stopped { background: var(--n800); color: var(--bg); border-color: var(--n800); }
.st-think   { background: transparent; color: var(--text); }
.tag { font-size: 12px; font-weight: 600; padding: 1px 8px; border: 2px solid var(--divider);
       display: inline-block; white-space: nowrap; }
.tag-plain { border: 0; padding: 3px 0; color: var(--n700); }

/* 踏み込み度。面を持てるのは状態バッジだけなので、こちらは
   凡例と同じ「色チップ + 数字 + 語」に統一する。
   これで赤い面はサイト全体で「動いた（状態）」だけを指す。 */
.lv { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
      font-size: 11px; font-weight: 700; }
.lv .sw { flex: none; }
.lv-k { font-size: 11px; font-weight: 700; color: var(--n700); margin-right: 4px; }
.sw { width: 10px; height: 10px; display: inline-block; background: var(--st0); }
.sw.s1 { background: var(--st1); } .sw.s2 { background: var(--st2); }
.sw.s3 { background: var(--st3); } .sw.s4 { background: var(--st4); }
.sw.s5 { background: var(--st5); }

/* ── ボタン・入力 ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-weight: 800; font-size: 14px; line-height: 1.2;
  padding: 10px 16px; border: 2px solid transparent; background: transparent;
}
.btn-primary { background: var(--accent-fill); color: #fff; justify-content: flex-start; }
.btn-primary:hover { background: var(--accent-hi); }
.btn-secondary { border-color: var(--divider); }
.btn-secondary:hover { border-color: var(--text); }
.input {
  width: 100%; padding: 9px 12px; font: inherit; font-size: 14px;
  color: var(--text); caret-color: var(--accent);
  background: var(--surface); border: 2px solid var(--divider);
}
.input:hover { border-color: color-mix(in srgb, var(--text) 60%, transparent); }
.input:focus-visible { border-color: var(--accent); outline-offset: 0; }
select.input { max-width: 320px; }

/* 絞り込みチップ */
.chip { cursor: pointer; font-size: 13px; font-weight: 600; padding: 1px 10px;
        border: 2px solid var(--divider); background: transparent; color: var(--text); }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── トップ ───────────────────────────────────────────────────────── */
/* トップの冒頭。初めて来た人に、何の記録かを一文で伝える */
.home-intro { padding: 24px 0 20px; border-bottom: var(--rule-soft);
              font-size: 15px; font-weight: 600; line-height: 1.8; letter-spacing: 0; }
.home-intro b { font-weight: 800; }
.feat-head { padding: 32px 0 12px; }
.feat-kick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feat-kick .sub { font-size: 12px; color: var(--n700); }
.feat-title {
  font-size: 32px; font-weight: 800; line-height: 1.5; margin-top: 12px;
  cursor: pointer; width: fit-content; background: none; border: 0; padding: 0;
  text-align: left; display: block;
}
.feat-title:hover { color: var(--accent-800); }

.story { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 24px 0 8px; }
.panel { border: var(--rule-soft); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
/* 隣り合うコマは罫線を共有する。③だけは赤枠を閉じたいので、
   手前のコマの右辺を落として、③自身の左辺を赤で引き直す。 */
.panel + .panel { border-left: 0; }
.panel:has(+ .panel-out) { border-right: 0; }
.panel + .panel.panel-out { border-left: 2px solid var(--accent); }
.panel .lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--n700); }
.panel .txt { font-size: 14px; line-height: 1.8; }
.panel .foot { font-size: 12px; color: var(--n700); margin-top: auto; }
/* 答弁の核になる末尾の一文は、塗りではなくウェイトで示す。
   この体系は元々ウェイトで強弱を付けており、塗りを1箇所だけ足すと
   そこだけ別の作法になる。罫線にすると3行に下線が渡って読みにくい。 */
.panel .key { font-weight: 700; }
.panel-out { border: 2px solid var(--accent); background: var(--accent-100); }
.panel-out .lbl { color: var(--accent-tx); }
.panel-out .txt { font-weight: 700; }
.panel-out .foot { color: var(--accent-tx); font-weight: 700; cursor: pointer;
                   background: none; border: 0; padding: 0; text-align: left; }

.others { border-top: var(--rule); margin-top: 24px; }
.others h2 { padding: 16px 0 12px; font-size: 13px; font-weight: 700;
             letter-spacing: 0.06em; color: var(--n700); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-card {
  border: var(--rule-soft); padding: 16px 20px; display: flex; gap: 10px;
  align-items: center; cursor: pointer; background: none; text-align: left; width: 100%;
}
.row-card:hover { border-color: var(--text); }
.row-card .t { font-size: 13px; font-weight: 600; }
.home-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0 48px; margin-top: 24px; border-top: var(--rule-soft); flex-wrap: wrap;
}
.home-foot .n { font-size: 14px; color: var(--n700); }
.home-foot .n b { font-weight: 800; }

/* ── 一覧 ─────────────────────────────────────────────────────────── */
.list-head { padding: 36px 0 24px; display: flex; flex-direction: column; gap: 16px;
             border-bottom: var(--rule); }
.list-head h1 { font-size: 24px; }
.list-head h1 span { font-size: 14px; font-weight: 600; color: var(--n700); }
.filters { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.fgroup { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fgroup > .k { color: var(--n700); font-weight: 600; }
.fgroup .chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* 広い画面ではテーマを全部見せる。畳むのは狭い画面だけ。 */
.more-chips { display: none; cursor: pointer; font-size: 13px; font-weight: 700;
              background: none; border: 0; padding: 1px 0; color: var(--accent-tx); }
.more-chips:hover { color: var(--accent-800); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 0 24px; }
.card-topic {
  border: var(--rule-soft); padding: 20px 24px; display: flex; flex-direction: column;
  gap: 10px; cursor: pointer; background: none; text-align: left; width: 100%;
}
.card-topic:hover { border-color: var(--text); }
.card-topic .hd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-topic .t { display: block; font-size: 16px; font-weight: 700; line-height: 1.5; }
.card-topic .d { display: block; font-size: 12px; color: var(--n700); }
.empty { padding: 48px 0; font-size: 14px; color: var(--n700); }
.more-wrap { padding: 0 0 48px; }

/* ── 詳細 ─────────────────────────────────────────────────────────── */
.crumb { font-size: 12px; color: var(--n700); font-weight: 600; cursor: pointer;
         background: none; border: 0; padding: 0; width: fit-content; display: inline-block; }
.crumb:hover { color: var(--accent-800); }
.detail-head { padding: 28px 0 24px; border-bottom: var(--rule); }
/* 見出しの上の出どころ。どの議会の、どの会期の話かを先に示す */
.origin { font-size: 12px; font-weight: 700; color: var(--n700); letter-spacing: 0.04em;
          margin-top: 16px; }
.origin .sep { color: var(--n500); margin: 0 6px; font-weight: 400; }
.detail-head .hd { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.origin + .hd { margin-top: 10px; }
.detail-head .formal { font-size: 13px; font-weight: 600; color: var(--n700); margin-top: 6px; }
.detail-head .hd a.tag { color: inherit; text-decoration: none; }
.detail-head .hd a.tag:hover { border-color: var(--text); }
/* 人・部局・会派の名前から分類ページへ。文字の色は変えず、指したときだけ示す */
a.hub-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
a.hub-link:hover { color: var(--accent-800); border-bottom-color: currentColor; }
.browse-link { font-size: 13px; font-weight: 700; width: fit-content; text-decoration: none; }
.detail-head h1 { font-size: 30px; line-height: 1.5; margin-top: 12px; max-width: 640px; }
.detail-head .lede { font-size: 15px; line-height: 1.8; color: var(--n700);
                     margin-top: 8px; max-width: 640px; }
.detail { display: grid; grid-template-columns: 1fr 280px; padding-bottom: 48px; }
.detail .main { padding: 28px 32px 28px 0; border-right: var(--rule-soft); min-width: 0; }
.detail .side { display: flex; flex-direction: column; }
.side-box { padding: 24px; border-bottom: var(--rule-soft); }
.side-box:last-child { border-bottom: 0; }
.side-lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--n700); }
.steps { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.steps i { flex: 1; height: 8px; background: var(--n300); display: block; }
.steps i.on { background: var(--accent); }
.steps i.stop { background: var(--n800); }
.step-lbls { display: flex; justify-content: space-between; font-size: 11px;
             font-weight: 600; color: var(--n700); margin-top: 6px; }
.side-note { font-size: 11px; line-height: 1.7; color: var(--n700); margin-top: 10px; }
.meta-list { display: flex; flex-direction: column; gap: 10px; font-size: 13px; margin-top: 12px; }
.meta-list .k { color: var(--n700); }
.meta-list b { font-weight: 700; }
/* 都が進めている取組。論点ごとにアクションプランと突き合わせた結果 */
.act-name { font-size: 14px; font-weight: 700; line-height: 1.6; margin-top: 12px; }
.act-proj { font-size: 12px; color: var(--n700); margin-top: 4px; }
.act-row { font-size: 12px; line-height: 1.7; color: var(--n700); margin-top: 10px; }
.act-row .k { display: block; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; }

.rel { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.rel a { font-size: 13px; font-weight: 700; line-height: 1.6; cursor: pointer;
         background: none; border: 0; padding: 0; text-align: left; }
.rel a:hover { color: var(--accent-800); }

.tl-lbl { font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
          color: var(--n700); margin-bottom: 20px; }
.tl-sum { font-size: 13px; line-height: 1.8; color: var(--n700);
          border-left: 2px solid var(--divider); padding: 2px 0 2px 12px; margin-bottom: 20px; }
.tl-sum b { font-weight: 800; color: var(--text); }
.tl { display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 96px 20px minmax(0, 1fr); }
.ev .when { font-size: 12px; font-weight: 700; color: var(--n700); padding-top: 2px; }
.ev.accent .when, .ev.accent .ttl { color: var(--accent-tx); }
.ev .rail { display: flex; flex-direction: column; align-items: center; }
.ev .dot { width: 12px; height: 12px; border: 2px solid var(--text); background: var(--bg);
           flex: none; display: block; }
.ev .dot.filled { background: var(--text); }
.ev .dot.accent { background: var(--accent); border-color: var(--accent); }
.ev .dot.stopped { background: var(--n800); border-color: var(--n800); }
.ev .line { width: 2px; flex: 1; background: var(--divider); }
.ev .content { padding: 0 0 24px 14px; min-width: 0; }
.ev .ttl { font-size: 14px; font-weight: 700; }
.ev .ttl .lvl { margin-left: 6px; }
.ev .body { font-size: 13px; line-height: 1.8; color: var(--n700); margin-top: 4px; }
.ev .toggle { font-size: 12px; font-weight: 700; color: var(--accent-tx); margin-top: 6px;
              cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.ev .toggle:hover { color: var(--accent-800); }
.ev a.toggle { display: block; text-decoration: none; }
/* 引用の開閉は <details>。三角の印は消し、文言だけを入れ替える */
.ev .src-d > summary { display: block; width: fit-content; list-style: none; }
.ev .src-d > summary::-webkit-details-marker { display: none; }
.ev .src-d[open] > summary .c, .ev .src-d:not([open]) > summary .o { display: none; }
/* 中間の反復。行は残したまま密度だけ落とす */
.ev.compact .ttl { font-size: 13px; }
.ev.compact .body { font-size: 12px; line-height: 1.7; }
.ev.compact .content { padding-bottom: 14px; }
.ev.compact .when { font-size: 11px; }
.ev .src { font-size: 13px; line-height: 1.9; color: var(--n700); margin-top: 8px;
           border-left: 2px solid var(--accent); padding: 8px 0 8px 12px; background: var(--n100); }
.ev .src .from { display: block; margin-top: 6px; font-size: 12px; color: var(--n700); }
.sl-y { display: block; font-weight: 600; color: var(--n500); font-size: 11px; }
.sl-n { display: block; }

/* ── データで見る（分析ビュー） ─────────────────────────────────── */
.sec-head { padding: 36px 0 20px; border-bottom: var(--rule); }
.sec-head h1 { font-size: 24px; }
.sec-head .note { font-size: 14px; line-height: 1.8; color: var(--n700);
                  margin-top: 10px; max-width: 720px; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0 0; }
h2.blk { font-size: 18px; margin: 40px 0 6px; }
p.note { font-size: 13.5px; line-height: 1.8; color: var(--n700);
         margin: 0 0 16px; max-width: 74ch; }
p.note b { font-weight: 700; color: var(--text); }
.box { border: var(--rule-soft); padding: 20px; background: var(--surface); }
.scroll { overflow-x: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0;
         border: var(--rule-soft); }
.tile { padding: 16px 18px; border-right: var(--rule-soft); }
.tile:last-child { border-right: 0; }
.tile .n { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile .k { font-size: 12px; color: var(--n700); font-weight: 600; }

.grid-tbl { border-collapse: collapse; font-size: 12px; width: 100%; }
.grid-tbl th { font-weight: 700; text-align: left; white-space: nowrap;
               padding: 4px 10px 4px 0; font-size: 12px; }
.grid-tbl thead th { text-align: center; padding: 0 4px 8px; line-height: 1.35; }
.grid-tbl td { padding: 0; border: 2px solid var(--bg); }
.cell {
  width: 100%; min-width: 92px; height: 42px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--st0); color: var(--n700);
}
.cell.s1 { background: var(--st1); color: var(--st1-ink); }
.cell.s2 { background: var(--st2); color: var(--st2-ink); }
.cell.s3 { background: var(--st3); color: var(--st3-ink); }
.cell.s4 { background: var(--st4); color: var(--st4-ink); }
.cell.s5 { background: var(--st5); color: var(--st5-ink); }
.cell:hover { outline: 2px solid var(--text); outline-offset: -2px; }
.cell .mean { font-weight: 400; opacity: .8; font-size: 11px; }

.legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
          margin-top: 14px; font-size: 12px; color: var(--n700); }
.legend .row { display: flex; align-items: center; gap: 6px; }
.legend .sw { width: 14px; height: 14px; }

.dirs { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.dir { border: var(--rule-soft); padding: 18px 20px; }
/* 方向は「前進が目立つ」チップ（ラベル）と帯（データ）で示す。
   上罫線の色は装飾でしかなく、赤の総量を押し上げるので置かない。 */
.dir .hd { display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; flex-wrap: wrap; }
.dir .name { font-weight: 800; font-size: 16px; }
.dir .cnt { font-size: 12px; color: var(--n700); font-variant-numeric: tabular-nums; margin-left: auto; }
.dir .flag { font-size: 11px; font-weight: 700; padding: 1px 8px; white-space: nowrap; }
.dir .flag.up { background: var(--accent-fill); color: #fff; }
.dir .flag.down { background: var(--n800); color: var(--bg); }
.dir .mixnote { font-size: 13px; color: var(--n700); margin-bottom: 8px; }
.dir .mixnote b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
/* 5段階の帯。平常時は8px。指した段だけ伸ばし、兄弟を薄くして
   「いまどこを見ているか」を帯の上で完結させる。
   容器の高さを固定しているので、伸びても周りの行は動かない。 */
/* 容器は8pxのまま。中央揃えにしてあるので、指した段が14pxに伸びても
   上下へ3pxずつはみ出すだけで、平常時の位置も周りの行も1pxも動かない。 */
.mix { display: flex; align-items: center; height: 8px; gap: 2px; margin-bottom: 12px; }
.mix i { display: block; height: 8px; position: relative;
         transition: height 90ms ease; }
/* 当たり判定だけ上下に広げる。見た目は変えない */
.mix i::after { content: ''; position: absolute; inset: -7px 0; }
.mix i:hover { height: 14px; }
/* 動きを避ける設定でも、伸びること自体は残す。無いと手がかりが消える */
@media (prefers-reduced-motion: reduce) { .mix i { transition: none; } }

/* 帯のツールチップ。地を反転させ、罫線はこの体系のまま2px・角丸なし */
.mixtip {
  position: fixed; z-index: 50; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 11px; background: var(--text); color: var(--bg);
  border: 2px solid var(--text); font-size: 12.5px; line-height: 1.3;
  white-space: nowrap;
}
.mixtip[hidden] { display: none; }
/* st1・st2 は地の色に近いので、細い縁を入れないと消える */
.mixtip .sw { width: 11px; height: 11px; flex: none;
              box-shadow: 0 0 0 1px rgba(243, 242, 242, .55); }
.mixtip b { font-weight: 800; }
.mixtip .v { font-variant-numeric: tabular-nums; opacity: .8; }
.ex { font-size: 12.5px; line-height: 1.65; display: flex; gap: 8px;
      padding: 7px 0; border-top: var(--rule-soft); }
.ex .k { color: var(--n700); white-space: nowrap; font-size: 11px; font-weight: 700; padding-top: 2px; }
.ex .t { color: var(--n700); }
.ex .lv { white-space: nowrap; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
/* 目標の一覧（データで見る > 都の目標）。
   目標を1行、実績と中間地点をその下に置く。
   実績には「※〜に基づいて2026年度に実績を把握」のような長い注記が入るので、
   .tgt の nowrap をここだけ解いて折り返させる。 */
.goal { padding: 10px 0; border-top: var(--rule-soft); }
.goal .g { font-size: 12.5px; line-height: 1.65; }
.goal .v { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; margin-top: 6px; }
.tgts .tgt { white-space: normal; line-height: 1.6; }
.goal-mid { font-size: 11px; color: var(--n600); line-height: 1.6; }

/* 都の目標に添える実績。数値なので等幅の数字にする */
.tgt { font-size: 11px; font-weight: 700; background: var(--n200);
       padding: 2px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.src-note { font-size: 12px; line-height: 1.8; color: var(--n700); margin-top: 14px; }

.linklike { display: inline-block; background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
            color: inherit; text-align: left; font-weight: 700;
            border-bottom: 2px solid transparent; }
.linklike:hover { color: var(--accent-800); border-bottom-color: currentColor; }

.data-tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.data-tbl th { text-align: left; font-size: 11px; letter-spacing: 0.08em; font-weight: 700;
               color: var(--n700); padding: 8px 12px 8px 0; border-bottom: var(--rule-soft); }
.data-tbl td { padding: 9px 12px 9px 0; border-bottom: 2px solid var(--n200); vertical-align: top; }
.data-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 18px; }
.bar { height: 8px; display: flex; gap: 2px; min-width: 110px; }
.bar i { display: block; height: 100%; }

.kwfield { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.kw { border: 0; cursor: pointer; font-family: inherit; font-weight: 700; line-height: 1.25;
      padding: 3px 9px; display: inline-flex; align-items: baseline; gap: 5px; }
.kw:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.kw .kn { font-size: 10px; font-weight: 400; opacity: .75; font-variant-numeric: tabular-nums; }
/* ことばは語が140個並ぶので、面積が最大になる。中間を淡くして
   赤は「実施まで行った語」だけに残す。段階4は指定の accent-200 だと
   段階3と CVD ΔE 1.9 で見分けられないため、accent-300 を使う。 */
.sw.k1 { background: #2d2b2b; } .sw.k2 { background: #605d5d; }
.sw.k3 { background: #eae7e7; outline: 1px solid var(--n400); outline-offset: -1px; }
.sw.k4 { background: var(--accent-300); } .sw.k5 { background: var(--accent-fill); }
.kw.k1 { background: #2d2b2b; color: #f8f4f4; }
.kw.k2 { background: #605d5d; color: #ffffff; }
.kw.k3 { background: #eae7e7; color: #2d2b2b; }
.kw.k4 { background: var(--accent-300); color: #7c1405; }
.kw.k5 { background: var(--accent-fill); color: #ffffff; }

.trend { display: flex; gap: 16px; align-items: flex-end; min-width: 420px; padding: 8px 4px 0; }
.tcol { flex: 1; text-align: center; min-width: 92px; }
.tbar { height: 130px; display: flex; align-items: flex-end; }
/* 赤は「いま」だけに置く。過去の会期は無彩色にして、視線が最新に落ちるようにする */
.tbar i { display: block; width: 100%; background: var(--n400); min-height: 3px; }
.tcol.now .tbar i { background: var(--accent); }
.tcol.now .tval { color: var(--accent-tx); }
.tval { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; padding-top: 8px; }
.tlab { font-size: 11px; color: var(--n700); line-height: 1.4; }

.scale { display: flex; flex-wrap: wrap; margin: 14px 0 4px; }
.scale div { flex: 1 1 130px; padding: 12px 14px; font-size: 12px; line-height: 1.6; }
.scale div .n { font-weight: 800; font-size: 13px; display: block; margin-bottom: 2px; }
.scale .s1 { background: var(--st1); color: var(--st1-ink); }
.scale .s2 { background: var(--st2); color: var(--st2-ink); }
.scale .s3 { background: var(--st3); color: var(--st3-ink); }
.scale .s4 { background: var(--st4); color: var(--st4-ink); }
.scale .s5 { background: var(--st5); color: var(--st5-ink); }

.faq { border-top: var(--rule-soft); padding: 16px 0; }
.faq:last-child { border-bottom: var(--rule-soft); }
.faq .q { font-weight: 800; margin-bottom: 6px; }
.faq .a { color: var(--n700); font-size: 14px; line-height: 1.8; max-width: 74ch; }

.steps-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0;
           border: var(--rule-soft); }
.steps-3 .s { padding: 18px 20px; border-right: var(--rule-soft); font-size: 13.5px; line-height: 1.75; }
.steps-3 .s:last-child { border-right: 0; }
.steps-3 .s .t { font-weight: 800; display: block; margin-bottom: 4px; }
.steps-3 .s .d { color: var(--n700); }

/* ── フッター ─────────────────────────────────────────────────────── */
footer {
  margin-top: auto; border-top: var(--rule); padding: 20px var(--pad);
  font-size: 12px; line-height: 1.8; color: var(--n700);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
footer .r { text-align: right; }

/* ── 640px ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --pad: 20px; }
  header.top { flex-direction: column; align-items: flex-start; padding: 12px 20px 10px; }
  .brand { font-size: 17px; }
  nav { gap: 16px; font-size: 13px; }
  .feat-title { font-size: 23px; }
  .detail-head h1 { font-size: 23px; }
  .story { grid-template-columns: 1fr; }
  .panel + .panel { border-left: var(--rule-soft); border-top: 0; }
  .panel:has(+ .panel-out) { border-right: var(--rule-soft); border-bottom: 0; }
  .panel + .panel.panel-out { border: 2px solid var(--accent); }
  .two, .cards { grid-template-columns: 1fr; }
  /* テーマは1行だけ見せて、残りは「すべてのテーマ」で開く。
     選択肢そのものは消さず、畳むだけにする。 */
  .more-chips { display: inline-block; }
  .fgroup.collapsible .chips { overflow: hidden; max-height: 26px; }
  .fgroup.collapsible.open .chips { overflow: visible; max-height: none; }
  .detail { grid-template-columns: 1fr; }
  .detail .main { padding: 28px 0; border-right: 0; }
  .ev { grid-template-columns: 72px 20px minmax(0, 1fr); }
  .tiles, .steps-3 { grid-template-columns: 1fr; }
  .tile, .steps-3 .s { border-right: 0; border-bottom: var(--rule-soft); }
  .tile:last-child, .steps-3 .s:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── 書き出し済みの下書き（pipeline/pages.py） ───────────────────────
   データが届くまでの短い間と、検索エンジンにだけ見える。読める最低限の形にする。 */
.static-list { margin: 12px 0 0; padding-left: 1.4em; display: flex; flex-direction: column;
               gap: 10px; font-size: 14px; line-height: 1.8; }
.static-list .ttl { font-weight: 700; }
.static-list .src { margin: 6px 0 0; padding-left: 12px; border-left: 2px solid var(--divider);
                    color: var(--n700); }

/* ── 分類ページ（pipeline/pages.py が書き出す静的ページ） ─────────────── */
a.card-topic, a.row-card { color: inherit; text-decoration: none; }
/* パンくずは <nav> なので、ヘッダーの nav の指定（横並び・太字）を打ち消す */
.crumbs { display: block; font-size: 12px; font-weight: 400; color: var(--n700); margin-bottom: 12px; }
.crumbs a { color: inherit; }
.hub-sub { font-size: 13px; font-weight: 600; color: var(--n700); margin-top: 6px; }
.sec-head .note + .note { margin-top: 6px; }
.hub-lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--n700); margin-top: 16px; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-top: 8px; }
/* 数が多いので赤い下線の列にせず、文字の色のまま並べて指したときだけ示す */
.hub-chips a { font-weight: 600; color: inherit; text-decoration: none; border-bottom: 1px solid var(--divider); }
.hub-chips a:hover { color: var(--accent-800); border-bottom-color: currentColor; }
.hub-chips a span { margin-left: 4px; font-size: 11px; color: var(--n700); font-weight: 400; }
.hub-list { margin: 8px 0 0; padding-left: 1.2em; font-size: 13px; line-height: 1.9; }
footer .r a { color: inherit; font-weight: 700; }
