.daiichisei {
  --bg: #f0f3f5;
  --surface: #ffffff;
  --ink: #000000;
  --ink-soft: #555a61;
  --line: #dde1e5;
  --accent: #bf0a2e;
  --accent-ink: #ffffff;
  --mark: #fff1b8;
  --g-pol: #2464b8; --g-tax: #c4501f; --g-city: #13865c; --g-kids: #a36a00; --g-intl: #c2457a; --g-cult: #7b4bb3; --g-greet: #0b8fa3;
  --pos-n: #0b63e5; --pos-ns: #d81b7a; --pos-v: #e05000; --pos-a: #0a8f45;
  --font-display: Meiryo, メイリオ, "Hiragino Serif", "ヒラギノ角ゴ ProN W3", sans-serif;
  --font-body: Meiryo, メイリオ, "Hiragino Serif", "ヒラギノ角ゴ ProN W3", sans-serif;
}

.daiichisei *, .daiichisei *::before, .daiichisei *::after { box-sizing: border-box; }
.daiichisei [hidden] { display: none !important; }
.daiichisei { color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.8; }
.daiichisei .wrap { max-width: 1040px; margin: 0 auto; padding-block: 32px 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; gap: 56px; }
.daiichisei h1, .daiichisei h2, .daiichisei h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.35; margin: 0; }
.daiichisei h1 { font-size: clamp(30.4px, 5vw, 44.8px); font-weight: 900; }
.daiichisei h2 { font-size: 24.8px; font-weight: 900; }
.daiichisei h3 { font-size: 20px; font-weight: 700; }
.daiichisei p { margin: 0; }
.daiichisei .eyebrow { font-size: 12.8px; letter-spacing: .12em; color: var(--ink-soft); font-weight: 700; }
.daiichisei .lead { max-width: 40em; }
.daiichisei .note { font-size: 14.4px; color: var(--ink-soft); max-width: 46em; }
.daiichisei .head { display: grid; gap: 14px; }
.daiichisei section { display: grid; gap: 18px; }
.daiichisei .howto { font-size: 14.72px; color: var(--ink-soft); border-left: 3px solid var(--line); padding-left: 12px; max-width: 52em; }
.daiichisei .label { font-size: 12.8px; font-weight: 700; letter-spacing: .08em; color: var(--ink-soft); }
.daiichisei .badge { display: inline-block; font-size: 11.2px; padding: 0 6px; border-radius: 3px; border: 1px solid var(--ink-soft); color: var(--ink-soft); margin-left: 6px; vertical-align: 2px; font-weight: 400; }
.daiichisei .empty { color: var(--ink-soft); font-size: 15.2px; }
.daiichisei .full { grid-column: 1 / -1; }
.daiichisei button:focus-visible, .daiichisei input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 分野のまとまりの色見本 */
.daiichisei .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.8px; color: var(--ink-soft); }
.daiichisei .legend span { display: inline-flex; align-items: center; gap: 6px; }
.daiichisei .legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.daiichisei .gc-pol { --g: var(--g-pol); } .daiichisei .gc-tax { --g: var(--g-tax); } .daiichisei .gc-city { --g: var(--g-city); } .daiichisei .gc-kids { --g: var(--g-kids); }
.daiichisei .gc-intl { --g: var(--g-intl); } .daiichisei .gc-cult { --g: var(--g-cult); } .daiichisei .gc-greet { --g: var(--g-greet); }
.daiichisei .legend i, .daiichisei .dot { background: var(--g); }
.daiichisei .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }

/* ① 表 */
.daiichisei .scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.daiichisei table.matrix { border-collapse: collapse; width: 100%; min-width: 820px; font-variant-numeric: tabular-nums; }
.daiichisei .matrix th, .daiichisei .matrix td { border-bottom: 1px solid var(--line); padding: 0; text-align: center; }
.daiichisei .matrix thead th { vertical-align: bottom; padding: 10px 2px 8px; font-size: 13.6px; font-weight: 700; }
.daiichisei .matrix thead th .vh, .daiichisei .matrix tfoot th .vh { display: inline-block; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .05em; padding: 4px 2px; min-height: 9.5em; }
.daiichisei .matrix thead th .dot { display: block; margin: 6px auto 0; width: 16px; height: 16px; border-radius: 0; }
.daiichisei .matrix th.name { text-align: left; padding: 8px 12px; white-space: nowrap; position: sticky; left: 0; background: var(--surface); z-index: 1; font-weight: 700; }
/* 表は枠で切らずに13人全員を並べる。広い画面では、ページを下へ動かしても分野の見出しが画面の上に残る */
@media (min-width: 880px) { .daiichisei .scroll.tall { overflow: visible; } }
.daiichisei .matrix thead th { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; background: var(--surface); box-shadow: inset 0 -1px 0 var(--line); }
/* 表の下にも同じ見出しを置く（スマホなど、見出しが上に残らない画面のため） */
.daiichisei .matrix tfoot th { vertical-align: top; padding: 8px 2px 10px; font-size: 13.6px; font-weight: 700; border-bottom: 0; box-shadow: inset 0 1px 0 var(--line); }
.daiichisei .matrix tfoot th .dot { display: block; margin: 0 auto 6px; width: 16px; height: 16px; border-radius: 0; }
.daiichisei .matrix thead th.name { z-index: 3; left: 0; }
.daiichisei .matrix th.name small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.daiichisei .who { display: flex; align-items: center; gap: 10px; }
.daiichisei .who img { width: 52px; height: 52px; border-radius: 3px; object-fit: cover; flex: none; background: var(--line); }
.daiichisei .matrix tr.pending .who img { opacity: .55; }
.daiichisei .matrix td .cell { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 46px; font-size: 15.2px; }
.daiichisei .matrix td .cell.zero { color: var(--line); }
.daiichisei .matrix td.pending { color: var(--ink-soft); font-size: 13.6px; text-align: left; padding-left: 16px; }
.daiichisei .matrix tr.pending th.name { color: var(--ink-soft); font-weight: 400; }

/* 演説の流れ */
.daiichisei .tl { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px 12px; display: grid; gap: 10px; }
.daiichisei .tl-row { display: grid; grid-template-columns: 9.5em 1fr 10.5em; gap: 12px; align-items: center; font-size: 14.4px; }
.daiichisei .tl-row .nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.daiichisei .tl-row .nm img { width: 36px; height: 36px; border-radius: 3px; object-fit: cover; }
.daiichisei .tl-row .len { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 12.8px; }
.daiichisei .tl-track { position: relative; height: 40px; }
.daiichisei .tl-track .start { position: absolute; top: 0; transform: translateX(-50%); font-size: 11.52px; line-height: 1; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.daiichisei .tl-track .start b { font-weight: 700; }
.daiichisei .tl-row .pol { font-size: 13.12px; color: var(--ink-soft); line-height: 1.4; font-variant-numeric: tabular-nums; }
.daiichisei .tl-row .pol b { color: var(--ink); font-size: 15.2px; }
.daiichisei .tl-track .vid { position: absolute; top: 25px; left: 0; height: 4px; background: var(--line); border-radius: 2px; }
.daiichisei .tl-track a { position: absolute; top: 18px; height: 18px; background: var(--g); border-radius: 2px; min-width: 2px; }
.daiichisei .tl-track a:hover, .daiichisei .tl-track a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 1; }
.daiichisei .tl-axis { position: relative; height: 18px; margin-left: calc(9.5em + 12px); margin-right: calc(10.5em + 12px); white-space: nowrap; font-size: 11.52px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.daiichisei .tl-axis span { position: absolute; transform: translateX(-50%); }
@media (max-width: 560px) { .daiichisei .tl-row { grid-template-columns: 6.5em 1fr; } .daiichisei .tl-row .pol { grid-column: 2; margin-top: -6px; } .daiichisei .tl-axis { margin-left: calc(6.5em + 12px); margin-right: 0; } .daiichisei .tl-row .nm img { display: none; } }

/* だれに向けて、どんな話をしたか（地図と表） */
.daiichisei .map { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.daiichisei .map svg { display: block; width: 100%; height: auto; }
.daiichisei .map .grid { stroke: var(--line); }
.daiichisei .map .axis { stroke: var(--ink-soft); stroke-opacity: .5; }
.daiichisei .map .axl { fill: var(--ink-soft); font-size: 13px; font-family: var(--font-body); }
.daiichisei .map .axl.strong { fill: var(--ink); font-weight: 700; }
.daiichisei .map .pt rect { fill: none; stroke: var(--surface); stroke-width: 2; }
.daiichisei .map .pt text { fill: var(--ink); font-size: 13px; font-weight: 700; font-family: var(--font-body); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.daiichisei table.xt { border-collapse: collapse; width: 100%; min-width: 680px; font-variant-numeric: tabular-nums; font-size: 14.4px; }
.daiichisei .xt th, .daiichisei .xt td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: center; }
.daiichisei .xt thead th { font-size: 12.8px; font-weight: 700; color: var(--ink-soft); vertical-align: bottom; }
.daiichisei .xt thead tr:first-child th { color: var(--ink); font-size: 13.6px; border-bottom: 0; padding-bottom: 0; }
.daiichisei .xt th.name { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--surface); }
.daiichisei .xt td.v { min-width: 4.2em; }
.daiichisei .xt td.zero { color: var(--line); }

/* ② 言葉で比べる */
.daiichisei .cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: grid; gap: 16px; }
.daiichisei .cmp-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.daiichisei .chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 3px 13px; font: inherit; font-size: 14.4px; cursor: pointer; }
.daiichisei .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.daiichisei .cmp-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.daiichisei .cmp-search input { font: inherit; font-size: 15.2px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); width: 12em; }
.daiichisei .cmp-rows { display: grid; gap: 8px; }
.daiichisei .cmp-row { display: grid; grid-template-columns: 9.5em 1fr 9em; gap: 12px; align-items: center; font-size: 14.72px; }
.daiichisei .cmp-row .nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.daiichisei .cmp-row .nm img { width: 36px; height: 36px; border-radius: 3px; object-fit: cover; }
.daiichisei .cmp-row .track { height: 14px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.daiichisei .cmp-row .fill { height: 100%; background: var(--ink-soft); border-radius: 0 4px 4px 0; }
.daiichisei .cmp-row .val { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 13.6px; }
.daiichisei .cmp-row .val b { color: var(--ink); font-size: 15.2px; }
.daiichisei .cmp-row.zero .val { color: var(--line); }
@media (max-width: 560px) { .daiichisei .cmp-row { grid-template-columns: 7em 1fr; } .daiichisei .cmp-row .val { grid-column: 2; margin-top: -6px; } }

/* ③ 候補者ごと */
.daiichisei .cards { display: grid; gap: 28px; }
.daiichisei .card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: grid; gap: 22px; }
.daiichisei .card-head { display: grid; grid-template-columns: 150px 1fr; gap: 4px 20px; align-items: start; }
.daiichisei .card-head > img { grid-row: span 6; width: 150px; height: 150px; border-radius: 4px; object-fit: cover; background: var(--line); }
.daiichisei .card-head > * { min-width: 0; }
.daiichisei .card-head > :not(img) { grid-column: 2; }
.daiichisei .card-head .kana { font-size: 13.6px; color: var(--ink-soft); }
.daiichisei .card-head .meta { font-size: 14.4px; color: var(--ink-soft); }
.daiichisei .name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.daiichisei .video { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 0; padding: 6px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14.4px; text-decoration: none; }
.daiichisei .video:hover { filter: brightness(1.08); }
.daiichisei .video:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.daiichisei .video svg { width: 14px; height: 14px; fill: currentColor; }
.daiichisei .video.off { background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); font-weight: 400; }
@media (max-width: 520px) { .daiichisei .card-head { grid-template-columns: 96px 1fr; gap: 4px 14px; } .daiichisei .card-head > img { width: 96px; height: 96px; } }
.daiichisei .card-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 32px; }
.daiichisei .card-grid > div { min-width: 0; display: grid; gap: 10px; align-content: start; }
@media (max-width: 760px) { .daiichisei .card-grid { grid-template-columns: 1fr; } }

/* 話の割合（1本の帯） */
.daiichisei .stack { display: flex; height: 22px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--surface); }
.daiichisei .stack span { background: var(--g); min-width: 2px; }
.daiichisei .bars { display: grid; gap: 5px; }
.daiichisei .bar { display: grid; grid-template-columns: 12.5em 1fr 2.8em; gap: 8px; align-items: center; font-size: 13.76px; }
.daiichisei .bar .nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.daiichisei .bar .track { height: 10px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.daiichisei .bar .fill { height: 100%; background: var(--g); border-radius: 0 3px 3px 0; }
.daiichisei .bar .pct { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .daiichisei .bar { grid-template-columns: 10.5em 1fr 2.6em; font-size: 12.8px; } }

/* よく出た言葉 */
.daiichisei .wc { background: var(--bg); border-radius: 4px; overflow: hidden; }
.daiichisei .wc svg { display: block; width: 100%; height: auto; }
.daiichisei .pos-n { --g: var(--pos-n); } .daiichisei .pos-ns { --g: var(--pos-ns); } .daiichisei .pos-v { --g: var(--pos-v); } .daiichisei .pos-a, .daiichisei .pos-na { --g: var(--pos-a); }
.daiichisei .wc text { font-family: var(--font-body); font-weight: 700; fill: var(--g); }
.daiichisei .top10 { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; counter-reset: r; font-size: 14.4px; }
.daiichisei .top10 li { display: grid; grid-template-columns: 1.6em 1fr auto; gap: 6px; align-items: baseline; border-bottom: 1px dashed var(--line); padding: 3px 0; counter-increment: r; }
.daiichisei .top10 li::before { content: counter(r); color: var(--ink-soft); font-size: 12.8px; font-variant-numeric: tabular-nums; }
.daiichisei .top10 .w { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 700; }
.daiichisei .top10 .n { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 13.12px; }
@media (max-width: 420px) { .daiichisei .top10 { grid-template-columns: 1fr; } }

/* 言葉の結びつきの図 */
.daiichisei .net { position: relative; background: var(--bg); border-radius: 4px; overflow: hidden; }
.daiichisei .net svg { display: block; width: 100%; height: auto; max-height: 520px; margin: 0 auto; }
.daiichisei .net .link { stroke: var(--ink-soft); stroke-opacity: .35; }
.daiichisei .net .node { cursor: pointer; }
.daiichisei .net .node circle.dot { fill: var(--g); stroke: var(--surface); stroke-width: 1.5; }
.daiichisei .net .node circle.halo { fill: var(--bg); stroke: none; }
.daiichisei .net .node text { fill: var(--ink); font-family: var(--font-body); font-weight: 700; paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.daiichisei .net .node:focus { outline: none; }
.daiichisei .net .node:focus-visible circle.dot { stroke: var(--ink); stroke-width: 2.5; }
.daiichisei .net.has-sel .link { stroke-opacity: .07; }
.daiichisei .net.has-sel .link.on { stroke: var(--ink); stroke-opacity: .7; }
.daiichisei .net.has-sel .node { opacity: .2; }
.daiichisei .net.has-sel .node.on { opacity: 1; }
.daiichisei .netinfo { min-height: 1.8em; font-size: 14.4px; }

/* ④ 方法 */
.daiichisei .method ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 46em; }
.daiichisei .method details { max-width: 46em; font-size: 14.4px; }
.daiichisei .method summary { cursor: pointer; color: var(--accent); }
.daiichisei .method dl { display: grid; grid-template-columns: 11em 1fr; gap: 6px 14px; margin: 10px 0 0; }
.daiichisei .method dt { font-weight: 700; } .daiichisei .method dd { margin: 0; color: var(--ink-soft); min-width: 0; }
@media (max-width: 720px) { .daiichisei .method dl { grid-template-columns: 1fr; } .daiichisei .method dd { margin-bottom: 8px; } }

.daiichisei .three { margin: 4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: t; }
.daiichisei .three li { counter-increment: t; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; display: grid; gap: 2px; }
.daiichisei .three li::before { content: counter(t); font-family: var(--font-display); font-weight: 900; font-size: 22.4px; color: var(--accent); line-height: 1; }
.daiichisei .three b { font-size: 16.8px; }
.daiichisei .three span { font-size: 14.08px; color: var(--ink-soft); }
@media (max-width: 720px) { .daiichisei .three { grid-template-columns: 1fr; } }
/* 候補者ごとのまとめ（作り直し）：要点を大きく、上から順に「何の話」「よく出た言葉」「言葉の結びつき」 */
.daiichisei .card { gap: 26px; padding: 26px; }
.daiichisei .card-head h3 { font-size: 25.6px; }
.daiichisei .card-head .meta { font-size: 15.2px; }
/* スマホでは「年齢・所属」と「経歴」を別の行にし、経歴は行の長さをそろえて折り返す */
.daiichisei .card-head .meta .seg { display: inline-block; max-width: 100%; }   /* 経歴の1項目（空白で区切られた単位）の途中では折り返さない */
@media (max-width: 560px) { .daiichisei .card-head .meta .msep { display: none; } .daiichisei .card-head .meta .career { display: block; } }
.daiichisei .facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 8px; }
.daiichisei .fact { display: grid; gap: 0; }
.daiichisei .fact .k { font-size: 12.8px; color: var(--ink-soft); font-weight: 700; letter-spacing: .04em; }
.daiichisei .fact .v { font-size: 21.6px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.4; }
.daiichisei .fact .v small { font-size: 14.4px; font-weight: 400; color: var(--ink-soft); margin-left: 4px; }
.daiichisei .block { display: grid; gap: 10px; }
.daiichisei .block > h4 { margin: 0; font-size: 16.8px; font-family: var(--font-display); }
.daiichisei .stack2 { display: flex; height: 40px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--surface); }
.daiichisei .stack2 span { background: var(--g); min-width: 3px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15.2px; font-variant-numeric: tabular-nums; overflow: hidden; }
.daiichisei .keys { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15.68px; }
.daiichisei .keys span { display: inline-flex; align-items: center; gap: 7px; }
.daiichisei .keys i { width: 12px; height: 12px; border-radius: 3px; background: var(--g); flex: none; }
.daiichisei .keys b { font-variant-numeric: tabular-nums; }
.daiichisei .keys .zero { color: var(--ink-soft); }
.daiichisei .words { display: grid; grid-template-columns: minmax(0, 1fr) 15em; gap: 20px; align-items: start; }   /* 図を広く、ベスト6の列は狭く */
.daiichisei .best { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: r; }
.daiichisei .best li { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); counter-increment: r; }
.daiichisei .best li::before { content: counter(r); font-size: 13.6px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.daiichisei .best .w { font-size: 20px; font-weight: 700; color: var(--ink); min-width: 0; }  /* 回数の一覧は色分けしない */
.daiichisei .best .n { font-size: 13.12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: right; line-height: 1.35; }
.daiichisei .best .n b { color: var(--ink); font-size: 16.8px; }
@media (max-width: 760px) { .daiichisei .words { grid-template-columns: 1fr; } }
.daiichisei .netinfo { font-size: 15.68px; }

/* 日本語の改行：文節（意味のまとまり）の切れ目で折り返す。区切りはページを作るときに phrase.py で入れている */
.daiichisei { line-break: strict; }
.daiichisei h1, .daiichisei h2, .daiichisei h3, .daiichisei h4, .daiichisei p, .daiichisei li, .daiichisei .fact .v, .daiichisei .keys, .daiichisei .netinfo, .daiichisei td.pending, .daiichisei .card-head .meta {
  word-break: keep-all; overflow-wrap: anywhere; }  /* 文中に入れた見えない区切り（文節の切れ目）の所でだけ折り返す。どのブラウザでも同じ */
.daiichisei h1, .daiichisei h2, .daiichisei h3, .daiichisei h4, .daiichisei .three b { text-wrap: balance; }
.daiichisei .lead, .daiichisei .howto, .daiichisei .note, .daiichisei .method li, .daiichisei .three span, .daiichisei .card-head .meta, .daiichisei .netinfo { text-wrap: pretty; }
.daiichisei .lead { max-width: 34em; }
.daiichisei .howto { max-width: 40em; }
.daiichisei .note { max-width: 42em; }
.daiichisei .method ul { max-width: 42em; }
.daiichisei .toppos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.daiichisei .toppos .tp { border-top: 4px solid var(--g); background: var(--bg); border-radius: 0 0 4px 4px; padding: 6px 10px 8px; display: grid; gap: 0; min-width: 0; }
.daiichisei .toppos .lb { display: flex; align-items: center; gap: 6px; font-size: 12.48px; color: var(--ink-soft); }
.daiichisei .toppos .lb i { width: 10px; height: 10px; border-radius: 2px; background: var(--g); flex: none; }
.daiichisei .toppos b { font-size: 18.4px; color: var(--g); line-height: 1.4; overflow-wrap: anywhere; }
.daiichisei .toppos .ct { font-size: 12.8px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .daiichisei .toppos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== KBC選挙サイトに合わせた見た目 ===== */
.daiichisei { font-size: 16px; line-height: 1.8; }
.daiichisei .wrap { max-width: none; gap: 64px; padding: 0; }   /* 外側の余白と幅はサイトの枠に任せる（アンケートのページと同じ） */
.daiichisei h1, .daiichisei h2, .daiichisei h3, .daiichisei h4 { font-family: var(--font-body); font-weight: 700; }
/* ページの題（中央、下に赤い短い線） */
.daiichisei .head { display: grid; gap: 0; }
.daiichisei .page-ttl { text-align: center; font-size: 34px; line-height: 1.3; margin-bottom: 40px; }
.daiichisei .page-ttl::after { content: ""; display: block; width: 60px; height: 2px; background: var(--accent); margin: 10px auto 0; }
.daiichisei .head-in { padding-bottom: 20px; display: grid; gap: 6px; justify-items: start; }
.daiichisei .kicker { font-size: 13px; font-weight: 700; color: var(--accent); line-height: 1.8; }
.daiichisei .title { font-size: 28px; line-height: 1.45; text-wrap: pretty; }
.daiichisei .prose { display: grid; gap: 16px; max-width: 736px; margin: 0 auto; width: 100%; }
/* 見出し：左に赤い太線 */
.daiichisei h3.sec { position: relative; font-size: 26px; line-height: 1.3; padding-left: 23px; margin-bottom: 6px; }
.daiichisei h3.sec::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 4px; width: 6px; background: var(--accent); }
/* 分析のポイント（白い箱を並べる） */
.daiichisei .points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.daiichisei .pt-box { background: var(--surface); padding: 32px; display: grid; gap: 8px; align-content: start; }
.daiichisei .pt-label { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.daiichisei .pt-big { font-size: 22px; font-weight: 700; line-height: 1.45; min-height: 2.9em; }   /* 見出しを2行分の高さにそろえ、下の説明文の始まりを3つの箱で同じ高さにする */
.daiichisei .pt-text { font-size: 14px; line-height: 1.7; }
.daiichisei .pt-box { display: flex; flex-direction: column; gap: 8px; }   /* 「くわしく見る」を箱の一番下にそろえる（3つの箱で同じ高さ） */
.daiichisei .pt-link { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; margin-top: auto; padding-top: 12px; }
.daiichisei .pt-link:hover { text-decoration: underline; }
@media (max-width: 760px) { .daiichisei .points { grid-template-columns: 1fr; } .daiichisei .pt-box { padding: 24px; } .daiichisei .pt-big { min-height: 0; } }
/* 説明・注意 */
.daiichisei .howto { border-left: 0; padding-left: 0; color: var(--ink); font-size: 16px; max-width: 736px; }
.daiichisei .note { color: var(--ink-soft); font-size: 14px; }
.daiichisei .callout { background: var(--surface); border-left: 4px solid var(--accent); padding: 16px 20px; font-size: 15px; }
/* 白い箱（角を丸めず、枠線なし） */
.daiichisei .scroll, .daiichisei .card { border: 0; border-radius: 0; }
.daiichisei .card { padding: 40px; }
@media (max-width: 760px) { .daiichisei .card { padding: 20px; } }
.daiichisei .card-head > img, .daiichisei .who img { border-radius: 0; }
.daiichisei .card-head h3 { font-size: 28px; }
.daiichisei .block > h4 { font-family: var(--font-body); font-size: 20px; line-height: 1.5; border-left: 4px solid var(--accent); padding-left: 12px; }
/* 動画のボタン：赤 */
.daiichisei .video { border-radius: 0; background: var(--accent); color: var(--accent-ink); }
/* 方法の説明：項目｜説明 */
.daiichisei .method dl.outline { display: grid; grid-template-columns: 9em 1fr; gap: 12px 20px; margin: 0; background: var(--surface); padding: 32px 40px; font-size: 14px; line-height: 1.7; }
.daiichisei .method dl.outline dt { font-weight: 700; }
.daiichisei .method dl.outline dd { margin: 0; color: var(--ink); min-width: 0; text-wrap: pretty; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 720px) { .daiichisei .method dl.outline { grid-template-columns: 1fr; padding: 20px; gap: 2px; } .daiichisei .method dl.outline dd { margin-bottom: 12px; } }
.daiichisei .wc, .daiichisei .net, .daiichisei .toppos .tp, .daiichisei .stack2 { border-radius: 0; }
.daiichisei .pt-big, .daiichisei .pt-text, .daiichisei .callout, .daiichisei .kicker, .daiichisei .title { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 560px) { .daiichisei .page-ttl { font-size: 26px; margin-bottom: 28px; } .daiichisei .title { font-size: 22px; } .daiichisei h3.sec { font-size: 21px; padding-left: 18px; } .daiichisei h3.sec::before { width: 5px; } .daiichisei .card-head h3 { font-size: 22px; } }
/* 改行の決まり（見直し）：
   長い説明文は、ふつうの日本語の組み方にする（1文字ずつ折り返して行の右端をそろえる。句読点やかっこ閉じで行が始まらない）。
   意味のまとまりで折り返すと、行の長さがでこぼこになり、「どんな」のような所で切れて読みにくいため。
   見出し・題・ボタン・短い名前（分野名や言葉）は、これまでどおり意味のまとまりで折り返す */
/* 見出し・題は、行の長さが近くなるように折り返す（「どんな言葉を何度も口に／したか」のように、最後の行だけ短くならないように） */
.daiichisei .pt-big, .daiichisei .title, .daiichisei h3.sec, .daiichisei .card-head h3, .daiichisei .block > h4 { text-wrap: balance; }
.daiichisei .prose p, .daiichisei .howto, .daiichisei .note, .daiichisei .callout, .daiichisei .method dl.outline dd, .daiichisei .netinfo {
  word-break: normal; overflow-wrap: normal; text-wrap: pretty; line-break: strict; }   /* pretty：最後の行が数文字だけにならないよう、前の行から文字を送る */
.daiichisei .nowrap { white-space: nowrap; }   /* かっこの中など、途中で切りたくない短いまとまり */
/* 分析のポイントの箱の説明（2行ほどの短い文）は、意味のまとまりで折り返し、行の長さをそろえる */
.daiichisei .pt-text { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; line-break: strict; }
/* カードの中の説明文は、下の箱や図と同じ幅いっぱいまで使う（途中の幅で改行しない） */
.daiichisei .card .note { max-width: none; }
/* 文の切れ目で改行する（広い画面だけ。スマホでは1行が短いので、決めた位置で改行すると短い行ができて読みにくくなるため、ふつうに流す） */
.daiichisei br.wide { display: none; }
.daiichisei .swipe-hint { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--accent); text-align: right; }   /* 表が画面に収まらないときだけ出す */
@media (min-width: 760px) { .daiichisei br.wide { display: inline; } .daiichisei .howto:has(br.wide) { max-width: none; } }
/* 「データで見る候補者」の切り替えタブ（今見ている方は赤い線と赤い文字） */
.daiichisei .dtabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 40px; }   /* 2つを別々の白い箱にして、すき間を空ける */
.daiichisei .dtabs a { display: block; background: var(--surface); text-align: center; padding: 16px 12px 13px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none;
  border-bottom: 3px solid var(--line); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.daiichisei .dtabs a:hover { color: var(--accent); }
.daiichisei .dtabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); cursor: default; }
@media (max-width: 560px) { .daiichisei .dtabs { margin: 0 0 28px; gap: 8px; } .daiichisei .dtabs a { font-size: 14px; padding: 12px 8px 10px; } }
/* ページの最後の、もう1つの分析への案内 */
.daiichisei .next { background: var(--surface); padding: 28px 40px; display: grid; gap: 4px; }
.daiichisei .next-label { font-size: 13px; font-weight: 700; color: var(--accent); }
.daiichisei .next-link { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.daiichisei .next-link::after { content: " →"; color: var(--accent); }
.daiichisei .next-link:hover { color: var(--accent); }
@media (max-width: 560px) { .daiichisei .next { padding: 20px; } .daiichisei .next-link { font-size: 17px; } }
/* 縦書きの分野名の高さをそろえる。上の見出しは下の端（色の四角の側）に、下の見出しは上の端（色の四角の側）にそろえる。
   （中央ぞろえだと、短い分野名ほど上下にずれて見えるため） */
.daiichisei .matrix thead th .vh { text-align: end; }
.daiichisei .matrix tfoot th .vh { text-align: start; }
