/* 見える国会 — デザインの考え方（付箋ノート）
   ・ノートに貼った付箋のように、太いふちどりと影で「ここを見て」が分かる
   ・政党に色を付けない。色はテーマ（暮らしの分野）と、賛成＝白票・反対＝青票・いまここ・成立にだけ使う
   ・見出しは丸ゴシック（M PLUS Rounded 1c）、本文はUDゴシック（誰でも読める）
   ・法案の進み具合は、路線図のように「駅」で示す */

:root {
  --paper: #fffdf7;
  --dot: #ebe5d4;
  --card: #ffffff;
  --soft: #f3f1ff;
  --ink: #1e1b4b;
  --ink-2: #4b4870;
  --ink-3: #66628a;
  --line: #1e1b4b;      /* ふちどり */
  --rule: #e4e0f2;      /* うすい区切り */
  --shadow: #1e1b4b;    /* ずらした影 */
  --on-pop: #1e1b4b;    /* 色の上の文字 */
  --yellow: #ffe14d;
  --pink: #ff7aa8;
  --sky: #6ccbff;
  --mint: #7be0b5;
  --lilac: #c4b5ff;
  --peach: #ffb38a;
  --blue: #3157e0;      /* 青票（反対） */
  --on-blue: #ffffff;
  --white-vote: #ffffff;/* 白票（賛成） */
  --track: #d8d4e8;
  --focus: #3157e0;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
  --sans: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --serif: var(--round); /* 以前の明朝の指定は、丸ゴシックに置きかえる */
  --measure: 42rem;
  --wide: 70rem;
  --r: 14px;
  --b: 2.5px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15133a;
    --dot: #23205a;
    --card: #211e50;
    --soft: #2b2763;
    --ink: #f4f2ff;
    --ink-2: #cfcae8;
    --ink-3: #a9a3cf;
    --line: #b9b2ea;
    --rule: #34306e;
    --shadow: #05040f;
    --blue: #6f8dff;
    --on-blue: #0f0d2e;
    --white-vote: #f4f2ff;
    --track: #4a4590;
    --focus: #ffe14d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--pink); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 4.8rem; } /* 固定した見出しの下に隠れないように */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

h1, h2, h3 { font-family: var(--round); font-weight: 800; line-height: 1.4; letter-spacing: .01em; margin: 0; }
h1 { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); }
h3 { font-size: 1.1rem; }
h1, h2 { text-wrap: balance; word-break: auto-phrase; }
h1.long { font-size: clamp(1.35rem, 1.05rem + 1.4vw, 1.95rem); line-height: 1.5; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; line-height: 1.75; }
.tiny { font-size: .78rem; line-height: 1.65; color: var(--ink-3); }
.hl { background: linear-gradient(transparent 58%, var(--pink) 58%); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.wrap { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }
.read { width: min(100% - 2rem, var(--measure)); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-head { background: var(--yellow); border-bottom: 3px solid #1e1b4b; position: sticky; top: 0; z-index: 5; color: var(--on-pop); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 3.6rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark { width: 44px; height: 14px; color: var(--on-pop); }
.brand-mark circle:last-child { fill: #fff; stroke: #e0457a; }
.brand-name { font-family: var(--round); font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; }
.nav { display: flex; gap: .35rem; }
.nav a { text-decoration: none; padding: .25rem .75rem; border-radius: 99px; font-size: .9rem; font-weight: 700; border: 2px solid var(--on-pop); background: #fff; color: var(--on-pop); white-space: nowrap; }
.nav a[aria-current="page"] { background: var(--on-pop); color: #fff; }
.nav a:hover { background: var(--pink); text-decoration: none; }
.nav a[aria-current="page"]:hover { background: var(--on-pop); }

/* ---------- 路線図（法案の進み具合） ---------- */
.route { --n: 6; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); margin: .25rem 0 0; padding: 0; list-style: none; }
.route li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.route li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 5px; background: var(--track); z-index: 0; }
.route li:first-child::before { display: none; }
.route li.done::before, .route li.here::before { background: var(--line); }
.route .dot { position: relative; z-index: 1; width: 23px; height: 23px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); }
.route li:not(.done):not(.here) .dot { border-color: var(--track); }
.route li.done .dot { background: var(--ink); border-color: var(--line); }
.route li.here .dot { background: var(--pink); border-color: var(--line); }
.route li.here .dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2.5px solid var(--pink); opacity: 0; animation: here 2.4s ease-out infinite; }
@keyframes here { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .route li.here .dot::after { animation: none; opacity: .5; transform: none; } }
.route li.law .dot { border-radius: 6px; }
.route li.law.done .dot { background: var(--mint); }
.route .lab { margin-top: .35rem; font-size: .72rem; line-height: 1.35; color: var(--ink-2); word-break: keep-all; }
.route li.here .lab { color: var(--ink); font-weight: 700; }
.route .date { font-size: .68rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.route.mini { max-width: 22rem; padding-bottom: 1.2rem; margin-top: .3rem; }
.route.mini li::before { top: 6px; height: 4px; }
.route.mini .dot { width: 16px; height: 16px; border-width: 2.5px; }
.route.mini li.here .dot::after { inset: -6px; }
.route.mini .lab { position: absolute; top: 19px; white-space: nowrap; font-size: .68rem; margin: 0; }
.route.mini li:last-child .lab { right: 0; }
.route.mini li.law.done .lab { color: var(--ink); font-weight: 700; }
.route.stopped li::before, .route.stopped .dot { opacity: .45; }

/* ---------- 成立の判子・状態 ---------- */
.stamp {
  display: inline-grid; place-items: center; font-family: var(--round); font-weight: 800; color: var(--on-pop); background: var(--mint);
  border: 3px solid var(--line); border-radius: 50%; width: 3.6rem; height: 3.6rem; font-size: 1rem;
  transform: rotate(-10deg); line-height: 1; flex: none; box-shadow: 3px 3px 0 var(--shadow);
}
.stamp.sm { width: 2.6rem; height: 2.6rem; font-size: .78rem; border-width: 2px; }
.status { display: inline-block; font-size: .76rem; font-weight: 700; padding: .02rem .6rem; border-radius: 99px; border: 2px solid var(--line); background: var(--card); color: var(--ink); white-space: nowrap; }
.status.pending { background: var(--yellow); color: var(--on-pop); }
.status.passed { background: var(--mint); color: var(--on-pop); }
.status.withdrawn, .status.failed { color: var(--ink-3); border-color: var(--track); }

/* ---------- トップの見出し（会期） ---------- */
.hero { padding: clamp(1.8rem, 1rem + 4vw, 4rem) 0 1.8rem; }
.session-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; color: var(--ink-2); font-size: .9rem; }
.session-line strong { display: inline-block; background: var(--card); border: 2px solid var(--line); border-radius: 99px; padding: .05rem .8rem; color: var(--ink); transform: rotate(-1.5deg); }
.days { margin: 1.4rem 0 .45rem; display: grid; grid-template-columns: repeat(var(--total), 1fr); height: 26px; border: 3px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--card); box-shadow: 4px 4px 0 var(--shadow); }
.days span { background: transparent; }
.days span.past { background: var(--mint); }
.days span.today { background: var(--pink); }
.days-legend { position: relative; display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.days-legend .now { position: absolute; left: var(--pos); transform: translateX(-50%); color: var(--ink); font-weight: 700; white-space: nowrap; }
.days-legend [hidden] { visibility: hidden; display: inline; }
.hero h1 { margin-top: 1.4rem; max-width: 22em; font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); }
.hero h1 .big { font-size: 1.6em; line-height: 1; }
.hero .lead { font-size: 1.05rem; color: var(--ink-2); max-width: 36em; margin-top: .9rem; }

/* ---------- 区切り・見出し ---------- */
.section { padding: 2.2rem 0; }
.section + .section { border-top: 2px dashed var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.2rem; }
.section-head h2::before, .block > h2::before, .area-sec > h2::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 4px; background: var(--c, var(--yellow)); border: 2px solid var(--line); margin-right: .45em; vertical-align: .08em; transform: rotate(8deg); }
.section-head p { margin: .35rem 0 0; color: var(--ink-2); font-size: .95rem; max-width: 38em; }
.more { font-size: .9rem; font-weight: 700; white-space: nowrap; text-decoration: none; border: 2px solid var(--line); border-radius: 99px; padding: .2rem .9rem; background: var(--card); box-shadow: 3px 3px 0 var(--shadow); }
.more:hover { background: var(--yellow); color: var(--on-pop); text-decoration: none; }

/* ---------- 法案のカード ---------- */
.bill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 52rem) { .bill-list { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.bill-row { display: grid; grid-template-columns: 1fr; align-content: start; gap: .5rem; padding: 1rem 1.1rem .7rem; background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: 4px 4px 0 var(--shadow); }
.bill-row a.title { font-family: var(--round); font-weight: 800; font-size: 1.1rem; line-height: 1.5; text-decoration: none; }
.bill-row a.title:hover { text-decoration: underline; text-decoration-color: var(--pink); }
.bill-row .official { font-size: .78rem; color: var(--ink-3); line-height: 1.6; }
.bill-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; font-size: .78rem; color: var(--ink-2); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 0 .55rem; border-radius: 8px; background: var(--c, var(--soft)); color: var(--on-pop); border: 1.5px solid var(--line); text-decoration: none; white-space: nowrap; line-height: 1.7; }
.tag:not([data-c]) { color: var(--ink); }
a.tag:hover { box-shadow: 2px 2px 0 var(--shadow); }
[data-c="0"] { --c: var(--yellow); } [data-c="1"] { --c: var(--sky); } [data-c="2"] { --c: var(--pink); }
[data-c="3"] { --c: var(--mint); } [data-c="4"] { --c: var(--lilac); } [data-c="5"] { --c: var(--peach); }
.wallet { font-weight: 700; color: var(--on-pop); background: var(--peach); border-radius: 8px; padding: 0 .5rem; border: 1.5px solid var(--line); }

.mini-voice { display: grid; gap: .25rem; margin-top: .1rem; padding-top: .55rem; border-top: 2px dashed var(--rule); }
.mv-bar { display: flex; height: .8rem; border-radius: 99px; overflow: hidden; border: 2px solid var(--line); background: var(--soft); }
.mv-bar span { display: block; height: 100%; }
.mv-bar .y { background: var(--white-vote); } .mv-bar .n { background: var(--blue); } .mv-bar .u { background: var(--track); }
.mv-text { font-size: .75rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.voice-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
@media (min-width: 52rem) { .voice-rank { grid-template-columns: 1fr 1fr; } }
.vr-item { padding: .8rem 1rem; background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: 3px 3px 0 var(--shadow); }
.vr-title { font-family: var(--round); font-weight: 800; text-decoration: none; line-height: 1.5; }
.vr-item .mini-voice { border-top: 0; padding-top: .4rem; }

/* ---------- 暮らしのテーマ ---------- */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .8rem; }
.theme { display: flex; flex-direction: column; gap: .15rem; padding: 1.05rem 1rem .85rem; border: var(--b) solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--card); color: var(--ink); box-shadow: inset 0 8px 0 var(--c, var(--yellow)), 3px 3px 0 var(--shadow); transition: transform .12s, box-shadow .12s; }
.theme:hover { transform: translate(-2px, -2px); box-shadow: inset 0 8px 0 var(--c, var(--yellow)), 5px 5px 0 var(--shadow); text-decoration: none; }
.theme b { font-family: var(--round); font-weight: 800; font-size: 1.05rem; }
.theme span { font-size: .8rem; color: var(--ink-2); }
.themes.join { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.themes.join .theme:nth-child(1) { --c: var(--yellow); } .themes.join .theme:nth-child(2) { --c: var(--sky); } .themes.join .theme:nth-child(3) { --c: var(--pink); }

/* ---------- 絞り込み ---------- */
.filters { display: grid; gap: .8rem; margin: 1.2rem 0 1.4rem; padding: 1rem; background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: 4px 4px 0 var(--shadow); }
.filters .row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.filters .row > span { font-size: .8rem; font-weight: 700; color: var(--ink-2); min-width: 3.5em; }
.chip { font: inherit; font-size: .84rem; font-weight: 700; border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: .2rem .75rem; border-radius: 99px; cursor: pointer; }
.chip:hover { background: var(--soft); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sort { font: inherit; font-size: .85rem; font-weight: 700; padding: .3rem 2rem .3rem .8rem; border: 2px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); }
.search { width: 100%; font: inherit; font-size: 1rem; padding: .6rem .9rem; border: var(--b) solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.count { font-size: .85rem; font-weight: 700; color: var(--ink-2); margin: 0 0 .6rem; }
.empty { padding: 2rem 0; color: var(--ink-2); }

/* ---------- 記事（法案ページ・議員ページ） ---------- */
.crumbs { font-size: .8rem; color: var(--ink-3); padding-top: 1.2rem; }
.crumbs a { color: var(--ink-2); }
.page-head { padding: 1rem 0 1.6rem; }
.kicker { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; font-size: .85rem; color: var(--ink-2); margin-bottom: .7rem; }
.page-head .official-title { margin-top: .8rem; font-size: .85rem; color: var(--ink-2); line-height: 1.7; }
.title-row { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.block { padding: 1.8rem 0; border-top: 2px dashed var(--rule); }
.block h2 { margin-bottom: .9rem; }
.one-line { font-size: 1.12rem; line-height: 1.9; font-weight: 700; }
.points { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.points li { position: relative; padding: .55rem .9rem .55rem 2.3rem; background: var(--card); border: 2px solid var(--line); border-radius: 12px; }
.points li::before { content: ""; position: absolute; left: .85rem; top: 1.05rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--yellow); border: 2px solid var(--line); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; font-size: .95rem; }
.facts dt { color: var(--ink-3); font-size: .85rem; font-weight: 700; padding-top: .1rem; }
.facts dd { margin: 0; }
.callout { background: var(--card); color: var(--ink); border: var(--b) solid var(--line); border-radius: var(--r); padding: 1.05rem 1rem .85rem; margin: 1.2rem 0 0; box-shadow: inset 0 8px 0 var(--peach), 4px 4px 0 var(--shadow); }
.callout b { display: block; font-family: var(--round); font-size: .9rem; font-weight: 800; }
.note { font-size: .82rem; color: var(--ink-2); background: var(--soft); padding: .8rem 1rem; border-radius: 12px; margin-top: 1rem; line-height: 1.75; border: 1.5px dashed var(--track); }
.note p:last-child { margin-bottom: 0; }

/* かんたんに言うと */
.easy-lead { font-family: var(--round); font-weight: 800; font-size: 1.2rem; line-height: 1.7; margin: 0 0 1rem; }
.changes { display: grid; gap: .7rem; margin: 0 0 1rem; }
.change { display: grid; gap: .35rem; padding: .8rem 1rem; background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: 4px 4px 0 var(--shadow); }
.ch-what { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.ch-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: var(--round); font-weight: 800; }
.ch-before, .ch-after { display: inline-block; padding: .15rem .8rem; border-radius: 10px; border: 2px solid var(--line); font-size: 1.35rem; line-height: 1.4; }
.ch-before { background: var(--soft); color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(30, 27, 75, .45); }
.ch-after { background: var(--yellow); color: var(--on-pop); }
.ch-arrow { font-size: 1.4rem; color: var(--ink); }
.easy-points { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.easy-points li { position: relative; padding-left: 1.6rem; line-height: 1.8; }
.easy-points li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--pink); border: 2px solid var(--line); }
.more-detail { margin-top: 1.1rem; }
.more-detail summary { cursor: pointer; font-weight: 700; font-size: .92rem; display: inline-block; padding: .2rem .9rem; border: 2px solid var(--line); border-radius: 99px; background: var(--card); }
.more-detail[open] summary { margin-bottom: .8rem; }
.more-detail .one-line { font-size: 1rem; }

/* ---------- 白票・青票 ---------- */
.ballot-key { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .82rem; color: var(--ink-2); margin-bottom: .8rem; }
.ballot-key i { display: inline-block; width: .75rem; height: 1.15rem; border-radius: 3px; vertical-align: -.22rem; margin-right: .35rem; border: 2px solid var(--line); }
.ballot-key i.y { background: var(--white-vote); }
.ballot-key i.n { background: var(--blue); }
.ballot-key i.x { background: transparent; border-style: dashed; }
.ballot-key i.g { background: var(--track); }
.ballots { display: grid; gap: .55rem; }
.ballot { display: grid; grid-template-columns: 4.2em 1fr 6.4em; gap: .6rem; align-items: center; font-size: .85rem; font-weight: 700; }
.ballot .bar { display: flex; height: 1.2rem; border-radius: 99px; overflow: hidden; background: var(--soft); border: 2px solid var(--line); }
.ballot .bar .y { background: var(--white-vote); }
.ballot .bar .n { background: var(--blue); }
.ballot .bar .x { background: repeating-linear-gradient(90deg, transparent 0 3px, var(--track) 3px 4px); }
.ballot .c, .mx-c { display: flex; justify-content: flex-end; gap: .3rem; font-variant-numeric: tabular-nums; font-size: .78rem; }
.cy, .cn, .cx { min-width: 2.1em; text-align: center; border-radius: 6px; padding: 0 .3rem; line-height: 1.6; font-weight: 700; }
.cy { background: var(--white-vote); color: #1e1b4b; border: 1.5px solid var(--line); }
.cn { background: var(--blue); color: var(--on-blue); border: 1.5px solid var(--line); }
.cx { color: var(--ink-3); border: 1.5px dashed var(--track); }

/* ---------- 会派ごとの賛否（マトリクス） ---------- */
.matrix { display: grid; gap: .35rem; background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); padding: .9rem; box-shadow: 4px 4px 0 var(--shadow); }
.mx-row { display: grid; grid-template-columns: 3.4em 1fr 5.4em; gap: .6rem; align-items: center; font-size: .85rem; font-weight: 700; }
.mx-row svg { width: 100%; height: 18px; }
.mx-row rect.bg { fill: var(--white-vote); stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mx-row rect.n { fill: var(--blue); }
.mx-row rect.x { fill: var(--track); }
.mx-name { white-space: nowrap; }
.mx-axis { display: flex; justify-content: space-between; margin: .2rem 5.6em 0 4em; font-size: .72rem; color: var(--ink-3); }
.side-lists { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .side-lists { grid-template-columns: 1fr 1fr; } }
.side-list h3 { font-family: var(--round); font-size: .95rem; font-weight: 800; margin-bottom: .4rem; }
.side-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.side-list li { font-size: .85rem; font-weight: 700; padding: .1rem .6rem; border-radius: 8px; border: 2px solid var(--line); }
.side-list.yes li { background: var(--white-vote); color: #1e1b4b; }
.side-list.no li { background: var(--blue); color: var(--on-blue); }

/* ---------- あなたの声 ---------- */
.voice { background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); padding: 1.2rem; box-shadow: 5px 5px 0 var(--shadow); }
.voice-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .9rem 0; }
.voice-buttons button { font: inherit; font-family: var(--round); font-weight: 800; font-size: 1.02rem; padding: .8rem .4rem; border-radius: 12px; border: var(--b) solid var(--line); background: var(--soft); color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); transition: transform .08s, box-shadow .08s; }
.voice-buttons button[data-v="yes"] { background: var(--white-vote); color: #1e1b4b; }
.voice-buttons button[data-v="no"] { background: var(--blue); color: var(--on-blue); }
.voice-buttons button:active, .voice-buttons button[aria-pressed="true"] { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.voice-buttons button[aria-pressed="true"] { outline: 3px solid var(--pink); outline-offset: 3px; }
.voice-buttons button:disabled { cursor: default; }
.voice-result .bar { display: flex; height: 1.5rem; border-radius: 99px; overflow: hidden; background: var(--soft); margin: .5rem 0 .3rem; border: 2px solid var(--line); }
.voice-result .bar span { display: block; height: 100%; }
.voice-result .y { background: var(--white-vote); }
.voice-result .n { background: var(--blue); }
.voice-result .u { background: var(--track); }
.voice-result .legend { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .82rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.voice-msg { font-size: .85rem; color: var(--ink-2); min-height: 1.4em; }

/* display を指定した部品でも、hidden を付けたら必ず消す */
.share-btn[hidden], .talk[hidden], .field[hidden], .admin-login[hidden], .admin-unset[hidden], .confirm[hidden], .post-tools[hidden] { display: none; }

/* ---------- 共有 ---------- */
.share { margin-top: 1.3rem; }
.share-label { display: block; font-family: var(--round); font-weight: 800; font-size: .95rem; margin-bottom: .5rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn { font: inherit; font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; min-height: 2.6rem; padding: .3rem 1rem; border: 2px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); }
.share-btn:hover { background: var(--yellow); color: var(--on-pop); text-decoration: none; }
.share-msg { font-size: .8rem; color: var(--ink-2); min-height: 1.3em; margin: .5rem 0 0; }

/* ---------- ボタン・入力 ---------- */
.btn { font: inherit; font-family: var(--round); font-weight: 800; font-size: .98rem; min-height: 2.8rem; padding: .45rem 1.3rem; border-radius: 12px; border: var(--b) solid var(--line); background: var(--pink); color: var(--on-pop); cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--card); color: var(--ink); font-weight: 700; }
.btn.ghost:hover { background: var(--soft); }
.btn.small { min-height: 2.3rem; font-size: .85rem; padding: .2rem .85rem; box-shadow: 2px 2px 0 var(--shadow); }
.field { display: grid; gap: .25rem; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea, .talk-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: .55rem .75rem; width: 100%;
}
.talk-form textarea, .field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.75; }
.check { display: flex; align-items: center; gap: .45rem; font-size: .88rem; }
code { font-size: .9em; background: var(--soft); padding: 0 .3em; border-radius: 4px; }

/* ---------- 意見と疑問 ---------- */
.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.tabs [role="tab"] { font: inherit; font-family: var(--round); font-weight: 800; font-size: 1rem; background: var(--card); border: 2px solid var(--line); color: var(--ink); padding: .3rem 1.1rem; border-radius: 99px; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab-n { font-size: .8rem; margin-left: .35rem; font-variant-numeric: tabular-nums; opacity: .8; }
.talk-form { display: grid; gap: .7rem; background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); padding: 1rem; box-shadow: 4px 4px 0 var(--shadow); }
.talk-label { font-family: var(--round); font-weight: 800; font-size: 1rem; }
.talk-fields { display: flex; flex-wrap: wrap; gap: .7rem 1rem; }
.talk-fields .field { flex: 1 1 14rem; }
.talk-fields .field[data-only] { flex: 0 1 11rem; }
.talk-fields [hidden] { display: none; }
.talk-submit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.talk-count { font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.talk-count.over { color: #d6264f; font-weight: 700; }
.talk-msg { font-size: .88rem; font-weight: 700; color: var(--ink); margin: 0; }
.talk-form .talk-msg:empty { margin-top: -.7rem; }
.talk-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.3rem 0 .4rem; min-height: 2.2rem; }
.talk-bar .talk-loading { margin: 0; }
.talk-sort { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.post { padding: .85rem 1rem .75rem; background: var(--card); border: 2px solid var(--line); border-radius: 16px 16px 16px 4px; }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; font-size: .82rem; color: var(--ink-2); }
.post-name { color: var(--ink); font-weight: 700; }
.post-head time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.post-body { margin: .4rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.post-bill { display: inline-block; margin-top: .3rem; font-family: var(--round); font-weight: 800; font-size: .92rem; line-height: 1.5; }
/* 立場は木札（白票・青票）の形で。上の点は札を下げるひもの穴 */
.fuda { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; line-height: 1.6; padding: 0 .5rem; border-radius: 5px; border: 1.5px solid var(--line); }
.fuda::before { content: ""; width: .32rem; height: .32rem; border-radius: 50%; background: currentColor; opacity: .55; }
.fuda.yes { background: var(--white-vote); color: #1e1b4b; }
.fuda.no { background: var(--blue); color: var(--on-blue); }
.fuda.unsure { color: var(--ink-2); border-style: dashed; }
.kind { font-size: .75rem; font-weight: 700; color: var(--on-pop); background: var(--yellow); border: 1.5px solid var(--line); border-radius: 5px; padding: 0 .45rem; line-height: 1.6; }
.post.q .kind { background: var(--sky); }
.post-answer { margin: .7rem 0 0; padding: .6rem .9rem .65rem; background: var(--mint); color: var(--on-pop); border: 2px solid var(--line); border-radius: 12px; }
.post-answer b { display: block; font-family: var(--round); font-size: .82rem; font-weight: 800; }
.post-answer p { margin: .15rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.post-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin-top: .6rem; }
.like { font: inherit; font-size: .82rem; font-weight: 700; min-height: 2.3rem; padding: .15rem .85rem; border-radius: 99px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.like .num { font-variant-numeric: tabular-nums; }
.like[aria-pressed="true"] { background: var(--pink); color: var(--on-pop); }
.link-btn { font: inherit; font-size: .8rem; background: none; border: 0; padding: .4rem .1rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-btn:disabled { text-decoration: none; cursor: default; }
.tool-msg { font-size: .8rem; color: var(--ink-2); }
.confirm { margin-top: .6rem; padding: .7rem .9rem; border: 2px dashed var(--line); border-radius: 12px; background: var(--soft); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.confirm p { flex-basis: 100%; margin: 0 0 .2rem; font-size: .88rem; }
.posts-empty { color: var(--ink-2); font-size: .92rem; padding: 1.2rem 0; margin: 0; }
.feed .post-body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nextstep { margin: 0 0 1.8rem; padding: 1.15rem 1.1rem 1rem; border: var(--b) solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); font-size: .9rem; box-shadow: inset 0 8px 0 var(--sky), 4px 4px 0 var(--shadow); }
.nextstep p { margin: 0; }
.nextstep p + p { margin-top: .45rem; font-weight: 700; }
.nextstep b { display: block; font-family: var(--round); font-size: .95rem; font-weight: 800; }

/* ---------- 議員の主張 ---------- */
.say-box { --c: var(--pink); }
.h-sub { font-size: .65em; font-weight: 700; color: var(--ink-2); margin-left: .3em; }
.say-extra { margin-top: .4rem; }
.say-lead { font-family: var(--round); font-weight: 800; font-size: 1.15rem; line-height: 1.6; margin: 0 0 .7rem; }
.topic-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.topic { font-size: .8rem; font-weight: 700; padding: .05rem .7rem; border-radius: 99px; border: 2px solid var(--line); background: var(--yellow); color: var(--on-pop); text-decoration: none; }
.topic:nth-child(2) { background: var(--sky); } .topic:nth-child(3) { background: var(--mint); }
.say { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.say li { position: relative; background: var(--card); border: var(--b) solid var(--line); border-radius: 16px 16px 16px 4px; padding: .75rem 1rem .7rem; box-shadow: 3px 3px 0 var(--shadow); }
.say li p { margin: 0; font-weight: 700; line-height: 1.65; }
.say q { display: block; margin: .35rem 0 0; font-size: .82rem; color: var(--ink-2); quotes: "「" "」"; }
.say small { display: block; margin-top: .3rem; font-size: .75rem; color: var(--ink-3); }
.m-say { font-size: .8rem; color: var(--ink-2); line-height: 1.6; margin-top: .2rem; }
.law-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.law-list li { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: .5rem .9rem; font-size: .92rem; line-height: 1.6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem .8rem; }
.law-list a { font-weight: 700; }
.law-st { font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.fv-count { display: flex; gap: .5rem; margin: .2rem 0 1rem; }
.fv-count span { font-size: .9rem; padding: .1rem .7rem; }
.fv-h { font-size: 1rem; margin: 0 0 .5rem; }
.fv-more { margin-top: .9rem; }
.fv-more summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.fv-more .law-list { margin-top: .6rem; }

/* ---------- 政府の意見募集 ---------- */
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.pc-row { display: grid; gap: .4rem; padding: .9rem 1.1rem; background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: 3px 3px 0 var(--shadow); }
.pc-row a.title { font-family: var(--round); font-weight: 800; font-size: 1rem; line-height: 1.6; text-decoration: none; max-width: 46em; }
.pc-row a.title:hover { text-decoration: underline; text-decoration-color: var(--pink); }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pc-left:empty { display: none; }
.pc-left { font-weight: 700; color: var(--on-pop); background: var(--mint); border: 1.5px solid var(--line); border-radius: 99px; padding: 0 .6rem; }
.pc-left.soon { background: var(--pink); }
/* 手順は路線図と同じ「駅」で */
.howto { list-style: none; counter-reset: st; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 1rem; }
.howto li { counter-increment: st; position: relative; padding-left: 2.8rem; min-height: 2rem; }
.howto li::before { content: counter(st); position: absolute; left: 0; top: .05rem; width: 2rem; height: 2rem; border-radius: 50%; border: var(--b) solid var(--line); background: var(--yellow); color: var(--on-pop); display: grid; place-items: center; font-family: var(--round); font-size: .9rem; font-weight: 800; z-index: 1; }
.howto li:not(:last-child)::after { content: ""; position: absolute; left: .87rem; top: 2rem; bottom: -1.05rem; width: 4px; background: var(--line); }
.howto b { display: block; font-family: var(--round); font-weight: 800; }
.howto span { display: block; font-size: .88rem; color: var(--ink-2); line-height: 1.7; }
@media (min-width: 46rem) {
  .howto { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .howto li { padding: 2.7rem 1rem 0 0; }
  .howto li:not(:last-child)::after { left: 2rem; right: -1.2rem; top: .9rem; bottom: auto; width: auto; height: 4px; }
}

/* ---------- 賛成の理由・反対の理由 ---------- */
.why { display: grid; gap: 1rem; }
@media (min-width: 46rem) { .why { grid-template-columns: 1fr 1fr; } }
.why-col h3, .fv-h { font-family: var(--round); font-weight: 800; font-size: 1.02rem; margin: 0 0 .5rem; display: flex; align-items: center; gap: .45rem; }
.why-col h3 i, .ki { display: inline-block; width: .8rem; height: 1.2rem; border-radius: 3px; border: 2px solid var(--line); }
.why-col h3 i.y, .ki.y { background: var(--white-vote); } .why-col h3 i.n, .ki.n { background: var(--blue); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.why-list li { background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); padding: .75rem .95rem .7rem; box-shadow: 3px 3px 0 var(--shadow); }
.why-col.pro .why-list li { box-shadow: inset 6px 0 0 var(--white-vote), inset 8px 0 0 var(--line), 3px 3px 0 var(--shadow); padding-left: 1.2rem; }
.why-col.con .why-list li { box-shadow: inset 7px 0 0 var(--blue), 3px 3px 0 var(--shadow); padding-left: 1.2rem; }
.why-list p { margin: 0; font-weight: 700; line-height: 1.65; }
.why-list q { display: block; margin: .3rem 0 0; font-size: .82rem; color: var(--ink-2); quotes: "「" "」"; }
.why-list small { display: block; margin-top: .3rem; font-size: .75rem; color: var(--ink-3); }
.why-bill { display: inline-block; font-family: var(--round); font-weight: 800; font-size: .88rem; margin-bottom: .2rem; }

/* ---------- 会派 ---------- */
.kaiha-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.kaiha-card { display: grid; gap: .25rem; padding: .9rem 1.1rem 1rem; background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: 4px 4px 0 var(--shadow); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.kaiha-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); text-decoration: none; }
.kc-name { font-family: var(--round); font-weight: 800; font-size: 1.35rem; line-height: 1.3; }
.kc-full { font-size: .78rem; color: var(--ink-3); line-height: 1.5; }
.kc-meta { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.kc-vote { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .3rem; font-size: .85rem; }
.kc-vote .cy, .kc-vote .cn { padding: 0 .55rem; }
.kc-of { font-size: .72rem; color: var(--ink-3); }
.kc-themes { font-size: .82rem; color: var(--ink-2); margin-top: .2rem; }
.kaiha-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .6rem; margin-top: 1rem; }
.kaiha-stats .tile:nth-child(4n+1) { --c: var(--yellow); } .kaiha-stats .tile:nth-child(4n+2) { --c: var(--sky); } .kaiha-stats .tile:nth-child(4n+3) { --c: var(--mint); } .kaiha-stats .tile:nth-child(4n+4) { --c: var(--pink); }
.tbars { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .45rem; }
.tbars li { display: grid; grid-template-columns: 8.5em 1fr 3em; gap: .6rem; align-items: center; font-size: .85rem; font-weight: 700; }
.tb-bar { height: 1rem; border-radius: 99px; background: var(--soft); border: 2px solid var(--line); overflow: hidden; display: block; }
.tb-bar span { display: block; height: 100%; background: var(--c, var(--yellow)); border-right: 2px solid var(--line); }
.tb-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vote-pair { display: inline-flex; gap: .5rem; align-items: center; font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.vote-pair .cy, .vote-pair .cn, .vote-pair .cx { min-width: 2.8em; font-size: .72rem; }

/* ---------- 議員に出るお金 ---------- */
.okane { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (min-width: 46rem) { .okane { grid-template-columns: repeat(4, 1fr); } }
.okane .tile .ok-v { font-size: 1.35rem; line-height: 1.3; margin: .15rem 0; }
.okane .tile .cmp { font-size: .74rem; line-height: 1.5; opacity: .9; }

/* ---------- 地元の議員 ---------- */
.prefs { display: grid; gap: 1.1rem 1.8rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.pref-region h3 { font-family: var(--round); font-size: .85rem; font-weight: 800; color: var(--ink-2); margin-bottom: .4rem; }
.pref-region ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pref-region a { display: inline-block; min-width: 3.8em; text-align: center; padding: .4rem .6rem; border: 2px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; font-size: .92rem; font-weight: 700; line-height: 1.5; box-shadow: 2px 2px 0 var(--shadow); }
.pref-region a:hover { background: var(--yellow); color: var(--on-pop); }
.pref-region a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.area-sec { padding: 1.8rem 0; border-top: 2px dashed var(--rule); }
.area-sec h2 { margin-bottom: .4rem; }
.area-sec > p { max-width: 42em; }
.area-sec .member-list { margin-top: .7rem; }

/* ---------- 議員の一覧 ---------- */
.member-list { list-style: none; margin: 0; padding: .2rem 1rem; background: var(--card); border: var(--b) solid var(--line); border-radius: var(--r); box-shadow: 4px 4px 0 var(--shadow); }
.member-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; padding: .8rem 0 .6rem; border-bottom: 2px dashed var(--rule); align-items: center; }
.member-row:last-child { border-bottom: 0; }
.member-row a.name { font-family: var(--round); font-weight: 800; font-size: 1.08rem; text-decoration: none; }
.member-row a.name:hover { text-decoration: underline; text-decoration-color: var(--pink); }
.member-row .who { font-size: .8rem; color: var(--ink-2); }
.member-row .val { text-align: right; font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--ink-2); }
.member-row .val b { font-family: var(--round); font-size: 1.15rem; color: var(--ink); }
.flag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 0 .45rem; border-radius: 5px; border: 1.5px solid var(--line); background: var(--lilac); color: var(--on-pop); margin-left: .35rem; vertical-align: .12rem; white-space: nowrap; }
.member-row .strip { grid-column: 1 / -1; height: 18px; margin: .15rem 0 0; }
.member-row .strip .axis { top: 8px; }
.member-row .strip .med { top: 2px; height: 14px; }
.member-row .strip .me { top: 3px; width: 12px; height: 12px; margin-left: -6px; }
@media (min-width: 52rem) {
  .member-row { grid-template-columns: minmax(0, 1fr) 16rem 5.5rem; align-items: center; }
  .member-row .strip { grid-column: 2; grid-row: 1; }
  .member-row .val { grid-column: 3; grid-row: 1; }
}
.strip { position: relative; height: 22px; margin: .3rem 0 .1rem; }
.strip .axis { position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 2px; background: var(--track); }
.strip .med { position: absolute; top: 3px; width: 3px; height: 16px; border-radius: 2px; background: var(--ink-3); }
.strip .me { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--pink); border: 2px solid var(--line); }
.strip.off .me { background: var(--card); border-color: var(--ink-3); }
.strip-legend { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); }

/* ---------- 数字のタイル ---------- */
.stats { display: grid; gap: 1.4rem; }
.stat { display: grid; gap: .1rem; }
.stat .k { font-size: .85rem; color: var(--ink-2); }
.stat .v { font-family: var(--round); font-weight: 800; font-size: 2rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .v small { font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--ink-2); margin-left: .25rem; }
.stat .cmp { font-size: .8rem; color: var(--ink-3); }
@media (min-width: 40rem) { .stats.two { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 0 0 1.4rem; }
@media (min-width: 46rem) { .glance { grid-template-columns: repeat(4, 1fr); } }
.tile { display: grid; align-content: start; gap: .1rem; padding: 1rem .9rem .85rem; background: var(--card); color: var(--ink); border: var(--b) solid var(--line); border-radius: var(--r); text-decoration: none; box-shadow: inset 0 8px 0 var(--c, var(--yellow)), 3px 3px 0 var(--shadow); }
.glance .tile:nth-child(1) { --c: var(--yellow); } .glance .tile:nth-child(2) { --c: var(--sky); } .glance .tile:nth-child(3) { --c: var(--mint); } .glance .tile:nth-child(4) { --c: var(--pink); }
.tile:hover { transform: translate(-1px, -1px); box-shadow: inset 0 8px 0 var(--c, var(--yellow)), 4px 4px 0 var(--shadow); }
.tile .k { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.tile .v { font-family: var(--round); font-weight: 800; font-size: 1.9rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile .v small { font-family: var(--sans); font-size: .8rem; font-weight: 700; margin-left: .2rem; }
.tile .cmp { font-size: .72rem; color: var(--ink-3); }
.tile .strip { margin: .2rem 0 0; }

.tile .votebar { height: .8rem; margin: .45rem 0 .25rem; }

.committees { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: .55rem 0; border-bottom: 2px dashed var(--rule); font-size: .92rem; line-height: 1.65; }
.list-plain li .tiny { display: block; }
.votebar { display: flex; height: 1.2rem; border-radius: 99px; overflow: hidden; margin: .4rem 0; background: var(--soft); border: 2px solid var(--line); }
.votebar span { display: block; height: 100%; }
.votebar .y { background: var(--white-vote); }
.votebar .n { background: var(--blue); }
.votebar .x { background: repeating-linear-gradient(90deg, transparent 0 3px, var(--track) 3px 4px); }

/* ---------- 説明ページ ---------- */
.prose h2 { margin: 2.2rem 0 .8rem; }
.prose h3 { margin: 1.6rem 0 .5rem; font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35rem; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; margin: 1rem 0; background: var(--card); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: .5rem .6rem; border-bottom: 1.5px dashed var(--rule); vertical-align: top; }
.prose th { color: var(--on-pop); background: var(--yellow); font-weight: 700; }

/* ---------- 管理ページ ---------- */
.admin-login { display: grid; gap: .8rem; max-width: 24rem; }
.admin-unset h2 { margin-bottom: 1rem; }
.admin-unset .gen { max-width: 22rem; margin-top: .5rem; font-family: ui-monospace, monospace; }
.admin-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .5rem; }
.admin-counts .v { font-size: 1.6rem; }
.admin-post.off { opacity: .7; }
.state { font-size: .72rem; border: 1.5px solid var(--line); border-radius: 5px; padding: 0 .35rem; }
.state.hidden, .state.removed { background: var(--soft); }
.state.warn { background: var(--pink); color: var(--on-pop); }
.admin-answer { display: grid; gap: .5rem; margin-top: .7rem; }
.admin-foot { margin-top: 2rem; padding-top: 1rem; border-top: 2px dashed var(--rule); display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-foot .talk-msg { flex-basis: 100%; }

/* ---------- フッター ---------- */
.site-foot { margin-top: 3rem; border-top: 3px solid #1e1b4b; background: #1e1b4b; color: #e9e6ff; padding: 2.2rem 0 3rem; font-size: .85rem; }
.site-foot .cols { display: grid; gap: 1.4rem; }
@media (min-width: 46rem) { .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h2 { font-family: var(--round); font-size: .95rem; font-weight: 800; color: var(--yellow); margin-bottom: .4rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .3rem; }
.site-foot a { color: #fff; }
.site-foot .tiny { color: #c9c4ef; }

@media (max-width: 30rem) {
  .nav { gap: .25rem; }
  .nav a { padding: .2rem .55rem; font-size: .85rem; }
  .nav .nav-about { display: none; } /* 狭い画面では足もとのリンクから */
  .brand-name { font-size: 1.08rem; }
  .brand-mark { width: 32px; }
  .facts { gap: .4rem .9rem; font-size: .92rem; }
  .mx-row { grid-template-columns: 3.3em 1fr 5em; gap: .4rem; font-size: .78rem; }
  .mx-axis { margin: .2rem 5.4em 0 3.7em; }
}
@media (prefers-reduced-motion: reduce) { .theme, .tile, .btn, .voice-buttons button { transition: none; } }
@media print {
  .site-head, .voice, .filters, .site-foot, .share, .talk, .nextstep { display: none; }
  body { background: #fff; }
}
