/* おおさか選挙ナビ 全ページ共通（2026-10-04）。色・書体・土台・ヘッドライン・ヘッダー・フッター・動き。
   assets/top.css＝core.css＋top.css、assets/style.css＝core.css＋inner.css としてつなげて出す（tools/build.pl）。 */

:root {
  color-scheme: light;
  --ink: #0d1424;
  --ink-2: #2f3a52;
  --mute: #566176;
  --line: #e3e8f0;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-2: #f4f6fa;
  --night: #0a1020;
  --mint: #22c7a9;
  --sky: #3d9bff;
  --violet: #7b5cff;
  --pink: #ff5d9e;
  --g-cool: linear-gradient(115deg, #22c7a9 0%, #3d9bff 50%, #7b5cff 100%);
  --g-warm: linear-gradient(115deg, #7b5cff 0%, #ff5d9e 60%, #ffae4a 100%);
  --g-line: linear-gradient(90deg, #22c7a9, #3d9bff 35%, #7b5cff 70%, #ff5d9e);
  --t-big: linear-gradient(100deg, #0a8a78 0%, #1f6fe0 50%, #5b3ff0 100%);    /* 大きな文字用。白地で 3:1 以上 */
  --t-small: linear-gradient(100deg, #08725f 0%, #1a5cc8 50%, #4f33dc 100%);  /* 小さな文字用。白地で 4.5:1 以上 */
  --tag-1: linear-gradient(120deg, #0a7364, #1b5bc9);                         /* 白文字が 4.5:1 以上 */
  --tag-2: linear-gradient(120deg, #5638d8, #a92b72);
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --jp: "LINE Seed JP", var(--body);
  --num: "Outfit", var(--jp);
  --r-xl: 32px;
  --r-lg: 24px;
  --sh-1: 0 1px 2px rgba(13, 20, 36, .05), 0 10px 28px -14px rgba(13, 20, 36, .22);
  --sh-2: 0 2px 6px rgba(13, 20, 36, .06), 0 28px 56px -24px rgba(13, 20, 36, .35);
  --ease: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: 124px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@view-transition { navigation: auto; }   /* ページ間は短いクロスフェード（位置は動かないので設定にかかわらず） */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.8; line-break: strict; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 3px; }
h1, h2, h3, .d { font-family: var(--num); font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
p { text-wrap: pretty; word-break: auto-phrase; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 300; background: var(--ink); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 0 0 12px 12px; text-decoration: none; }
.skip:focus { top: 0; }
.tp-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッドライン（画面上部。tomokazu.org のタグラインと同じ要領で、右からスライドインして左へ抜ける） ---------- */
.tp-tick { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.tp-tick::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .10) 50%, transparent 65%); background-size: 220% 100%; animation: tk-shine 6s ease-in-out infinite; }
.tp-tick::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--g-line); }
@keyframes tk-shine { 0%, 100% { background-position: 200% 0; } 50% { background-position: -100% 0; } }
.tp-tick-in { position: relative; max-width: 1200px; height: 42px; margin: 0 auto; padding: 0 16px 0 24px; display: flex; align-items: center; gap: 14px; }
.tp-tick .lab { flex: none; display: inline-flex; align-items: center; gap: 9px; font-family: "Outfit", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .24em; color: #8fe9d8; }
.tp-tick .lab i { width: 8px; height: 8px; border-radius: 50%; background: #2ee6c5; animation: tk-pulse 2s ease-out infinite; }
@keyframes tk-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 197, .55); } 100% { box-shadow: 0 0 0 10px rgba(46, 230, 197, 0); } }
.tk { position: relative; flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.tk li { position: absolute; inset: 0; display: flex; align-items: center; animation: tk-slide calc(var(--n) * 4s) cubic-bezier(.65, 0, .35, 1) calc(var(--i) * 4s) infinite both; }
.tk a { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.tk time { flex: none; font-family: "Outfit", sans-serif; font-weight: 700; letter-spacing: .04em; color: #8fe9d8; }
.tk .tg { flex: none; padding: 1px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #e6ecf5; font-size: 11px; }
.tk .tx { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk a:hover .tx { text-decoration: underline; text-underline-offset: 3px; }
.tk-btn { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255, 255, 255, .26); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.tk-btn svg { width: 13px; height: 13px; }
.tk-btn .play, .tp-tick.is-paused .tk-btn .pause { display: none; }
.tp-tick.is-paused .tk-btn .play { display: block; }
.tk-all { flex: none; padding: 3px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: #d6deea; font-size: 12px; font-weight: 700; text-decoration: none; }
.tk-all:hover { color: #fff; border-color: #fff; }
/* お問い合わせ：右上に常に出す（2026-10-05 本人「問い合わせを画面上部右上に常駐させる」）。夜の帯の上で目立つよう白地 */
.tk-contact { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tk-contact svg { width: 14px; height: 14px; }
.tk-contact:hover { background: #dff7f1; }
.tp-tick :focus-visible { outline-color: #fff; outline-offset: 2px; }
/* 止める：ボタン・マウスを載せたとき・キーボードで来たとき */
.tp-tick.is-paused li, .tp-tick.is-paused::before, .tp-tick:hover li, .tp-tick:focus-within li { animation-play-state: paused; }

/* ---------- ヘッダー（すりガラス。固定） ---------- */
.tp-hd { position: sticky; top: 0; z-index: 100; }
.tp-bar { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(13, 20, 36, .07); }
.tp-hd-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.tp-logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.tp-logo .mk { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--g-cool); color: #fff; box-shadow: 0 8px 18px -8px rgba(61, 155, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tp-logo .mk svg { width: 22px; height: 22px; }
.tp-logo .l1 { display: block; white-space: nowrap; font-family: "Outfit", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .22em; line-height: 1.3; color: var(--mute); }
.tp-logo .l2 { display: block; white-space: nowrap; font-size: 20px; font-weight: 800; letter-spacing: .01em; line-height: 1.25; }
.tp-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.tp-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.tp-nav a:hover { background: var(--bg-2); color: var(--ink); }
.tp-cta { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s; }
.tp-cta svg { width: 18px; height: 18px; }
.tp-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(13, 20, 36, .6); }
.tp-progress { height: 3px; background: var(--g-cool); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- フッター ---------- */
.ft { position: relative; padding: 64px 0 44px; background: var(--night); color: #c6d1e1; }
.ft::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--g-line); }
.ft-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ft nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 20px; }
.ft nav a { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.ft nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ft p { margin: 0 0 8px; font-size: 13px; }
.ft .cp { margin-top: 22px; color: #97a4b8; font-family: "Outfit", var(--body); letter-spacing: .04em; }
.ft :focus-visible { outline-color: #fff; }

/* ---------- 「準備中」の札（候補者が0のところ。2026-10-05 本人「これからここに候補者が入るよ！という事を期待させるギミック」） ----------
   点の明滅は3回で止める（5秒未満なので止めるボタンは要らない。WCAG 2.2.2）。本人が求めた動きなので reduce でも動かす */
.soon { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; background: #e9edf3; color: #566176; font-size: 12px; font-weight: 800; line-height: 1.9; white-space: nowrap; vertical-align: 1px; }
.soon i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #22c7a9; animation: soon-pulse 1.4s ease-in-out 3; }
@keyframes soon-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 199, 169, .55); } 60% { box-shadow: 0 0 0 7px rgba(34, 199, 169, 0); } }

/* ---------- 動き ----------
   本人の PC は Windows の「アニメーション効果」がオフ（ブラウザには prefers-reduced-motion: reduce と伝わる）。
   tomokazu.org と同じく、本人が求めた動き（ヘッドラインのスライドイン）は設定にかかわらず動かし、止めるボタンを付ける（WCAG 2.2.2）。
   浮かび上がる飾りの動きは、reduce の人には位置を動かさず、薄く現れるだけにする。 */
.ani { animation: tp-up .8s var(--ease) both; }
.tp-h1 .en { animation-delay: .06s; }
.tp-h1 .jp { animation-delay: .12s; }
.tp-h1 .yr { animation-delay: .2s; }
.tp-lead { animation-delay: .28s; }
.tp-ctas { animation-delay: .36s; }
@supports (animation-timeline: view()) {
  .rv { animation: tp-rv linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
}
@supports (animation-timeline: scroll()) {
  .tp-progress { animation: tp-progress linear both; animation-timeline: scroll(root); }
}
@media (prefers-reduced-motion: reduce) {
  .ani, .rv { animation-name: tp-fade; }
}
@keyframes tp-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes tp-rv { from { opacity: 0; transform: translateY(32px) scale(.985); } }
@keyframes tp-fade { from { opacity: 0; } }
@keyframes tp-progress { to { transform: scaleX(1); } }


/* ---------- ヘッダーの続き：今いるページ、狭い画面のメニュー（details なので JS なし・どのブラウザでも動く） ---------- */
.tp-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.tp-cta .t { white-space: nowrap; }
.tp-menu { display: none; position: relative; }
.tp-menu > summary { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; list-style: none; cursor: pointer; }
.tp-menu > summary::-webkit-details-marker { display: none; }
.tp-menu > summary svg { width: 18px; height: 18px; }
.tp-menu[open] > summary { border-color: var(--ink); }
.tp-menu-p { position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; display: grid; width: min(300px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--sh-2); }
.tp-menu-p a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.tp-menu-p a::after { content: "›"; color: var(--mute); font-weight: 800; }
.tp-menu-p a:hover, .tp-menu-p a[aria-current="page"] { background: var(--bg-2); }

/* ---------- 画面の幅ごと（共通部分） ---------- */
@media (max-width: 1100px) {
  .tp-nav { display: none; }
  .tp-menu { display: block; margin-left: auto; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 112px; }
  .tp-in, .ft-in { padding: 0 16px; }
  .tp-tick-in { height: 38px; padding: 0 8px 0 16px; gap: 10px; }
  .tp-tick .lab span, .tk .tg, .tk-all { display: none; }
  .tk a { font-size: 13px; }
  .tk-contact { padding: 0 10px; }
  .tp-hd-in { padding: 10px 16px; gap: 10px; }
  .tp-logo { gap: 10px; }
  .tp-logo .mk { width: 34px; height: 34px; border-radius: 11px; }
  .tp-logo .mk svg { width: 19px; height: 19px; }
  .tp-logo .l1 { font-size: 9px; letter-spacing: .18em; }
  .tp-logo .l2 { font-size: 17px; }
  .tp-cta { min-height: 42px; padding: 0 12px; font-size: 14px; }
  .tp-cta .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }  /* 狭い画面では虫めがねだけ（読み上げには名前が残る） */
  .tp-menu > summary { padding: 0 12px; }
}
/* もっと狭い画面：メニューも絵だけにする（読み上げには「メニュー」の名前が残る） */
@media (max-width: 420px) {
  .tp-menu > summary { width: 42px; padding: 0; justify-content: center; }
  .tp-menu > summary .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tp-logo .l2 { font-size: 16px; }
}
@media (max-width: 360px) {
  .tp-logo .l1 { display: none; }   /* 英字の小さな行は飾りなので、とても狭い画面では出さない */
}
@media print { .tp-tick, .tp-progress, .tp-menu, .tp-cta, .side, .ft { display: none; } .tp-hd { position: static; } body { background: #fff; } }

/* おおさか選挙ナビ 中のページ（地域・選挙・選挙区・議員・選挙スケジュール・議員定数・ニュース・議員データ・案内）
   2026-10-04、本人の指示「一気にすべてこれで仕上げよう」で、トップと同じ見た目（core.css）にそろえた。
   部品の並び・中身（選挙ドットコムの構成）は変えていない。クラス名は tools/build.pl が出すものをそのまま使う。 */

body { background: var(--bg-2); }

/* ---------- 枠 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 28px 24px 88px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.crumbs { margin: 0 0 16px; color: var(--mute); font-size: 13px; }
.crumbs a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.box { margin-bottom: 22px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
.box > :first-child { margin-top: 0; }
.box p a, .doc a, .src a, .tnote a { color: #1b5bc9; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 12px; }

/* ---------- ページの見出し ---------- */
/* 地域・案内などのページ：夜の色のカードにオーロラ */
.tbar { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 24px; padding: 34px 34px 32px; border-radius: var(--r-lg); background: var(--night); color: #fff; box-shadow: var(--sh-1);
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.005em; line-height: 1.25; }
.tbar::before, .tbar::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.tbar::before { right: -120px; top: -200px; width: 480px; height: 480px; background: radial-gradient(closest-side, rgba(123, 92, 255, .55), transparent); }
.tbar::after { left: -110px; bottom: -240px; width: 440px; height: 440px; background: radial-gradient(closest-side, rgba(34, 199, 169, .42), transparent); }
/* 選挙・選挙区・議員のページ：枠がグラデーションの白いカード */
.ttl { position: relative; margin: 0 0 18px; padding: 26px 30px 24px; border: 1.5px solid transparent; border-radius: var(--r-lg); background: linear-gradient(#fff, #fff) padding-box, var(--g-cool) border-box; box-shadow: var(--sh-1); }
.ttl .pref { margin: 0 0 6px; color: var(--mute); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.ttl h1 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.3; }
.ttl .h1s { font-size: .74em; background: var(--t-big); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ttl .date { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.ttl .kn { margin: 4px 0 8px; color: var(--mute); font-size: 13px; letter-spacing: .18em; }
.ttl .tlink { position: absolute; right: 22px; top: 22px; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; transition: box-shadow .15s; }
.ttl .tlink:hover { box-shadow: 0 8px 18px -8px rgba(13, 20, 36, .6); }
.ttl.pf { display: flex; align-items: center; gap: 24px; }

/* 写真の枠（写真は本人提供のものだけ。無いときは人形）。輪をグラデーションに */
.ph { background: #eef1f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 104'%3E%3Ccircle cx='46' cy='40' r='18' fill='%23c6cfdc'/%3E%3Cpath d='M12 104c3-24 18-36 34-36s31 12 34 36z' fill='%23c6cfdc'/%3E%3C/svg%3E") center 70% / 80% no-repeat; }
.ph.big, .mc .ph { border: 3px solid transparent; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 104'%3E%3Ccircle cx='46' cy='40' r='18' fill='%23c6cfdc'/%3E%3Cpath d='M12 104c3-24 18-36 34-36s31 12 34 36z' fill='%23c6cfdc'/%3E%3C/svg%3E") center 70% / 80% no-repeat,
    linear-gradient(#eef1f6, #eef1f6) padding-box, var(--g-cool) border-box; }
.ph.big { flex: none; width: 112px; height: 112px; border-width: 4px; }

/* 節の見出し：短いグラデーションの線＋太い見出し（トップと同じ） */
.sbar { margin: 46px 0 16px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.35; }
.sbar::before { content: ""; display: block; width: 32px; height: 4px; margin-bottom: 12px; border-radius: 4px; background: var(--g-cool); }

/* ---------- 基本情報（項目と値の格子） ---------- */
.ig { display: grid; grid-template-columns: 132px minmax(0, 1fr) 132px minmax(0, 1fr); margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--sh-1); font-size: 15px; }
.ig .k { display: flex; flex-direction: column; justify-content: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: #f6f8fb; color: var(--mute); font-size: 13px; font-weight: 800; line-height: 1.45; word-break: auto-phrase; }
.ig .k .kx { font-size: 11px; font-weight: 600; }
.ig .v { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.ig .v.full { grid-column: span 3; }

/* ---------- 表 ---------- */
.tbl-scroll { overflow-x: auto; }
.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.dt th { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f6f8fb; color: var(--mute); font-size: 13px; font-weight: 800; text-align: center; white-space: nowrap; }
.dt th:first-child { border-top-left-radius: 14px; }
.dt th:last-child { border-top-right-radius: 14px; }
.dt td { padding: 14px; border-bottom: 1px solid var(--line-2); text-align: center; vertical-align: middle; word-break: auto-phrase; }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt td.nm { text-align: left; font-weight: 800; }
.dt td.nm a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(13, 20, 36, .25); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .15s; }
.dt td.nm a:hover { text-decoration-color: currentColor; }
.dt .num { font-family: "Outfit", var(--body); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tnote { margin: 12px 0 0; color: var(--mute); font-size: 13px; text-align: right; }
/* 前回の選挙の結果（2026-10-05）。当選は文字の印。政党で色分けしない */
.sbar-s { margin-left: 6px; color: var(--mute); font-size: .6em; font-weight: 700; white-space: nowrap; }
.rs td.wl { width: 5em; }
.rs td.num { text-align: right; white-space: nowrap; }
.won { display: inline-block; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.8; white-space: nowrap; }
.sub { color: var(--mute); font-size: 12px; font-weight: 500; }
.mi { display: inline-block; margin-left: 6px; padding: 0 9px; border: 1px solid #f0d49b; border-radius: 999px; background: #fff4dc; color: #6f4700; font-size: 11px; font-weight: 800; line-height: 1.7; vertical-align: 2px; white-space: nowrap; }
.rb { display: inline-block; min-width: 52px; padding: 2px 10px; border-radius: 999px; background: #eef1f6; color: var(--ink-2); font-size: 11px; font-weight: 800; text-align: center; }
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; background: #eef1f6; color: var(--ink-2); font-size: 12px; font-weight: 700; line-height: 1.7; }
.pill.lite { background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.sp-kind { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-family: var(--num); font-size: 17px; font-weight: 800; }
.sp-date { font-weight: 800; }

/* ---------- 並べ替え（ピル型の切り替え） ---------- */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #eef1f6; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s, color .15s; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tabs button:disabled { opacity: .5; cursor: default; }
.tabs .help { margin-left: auto; color: var(--mute); font-size: 13px; }

/* ---------- 人の一覧（候補者一覧の形） ---------- */
.mc-list { margin: 0; padding: 8px; list-style: none; }
.mc-list > li.grp { margin: 12px 6px 4px; padding: 6px 14px; border-radius: 10px; background: #f6f8fb; color: var(--ink-2); font-size: 14px; font-weight: 800; }
.mc + .mc { border-top: 1px solid var(--line-2); }
.mc a { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) 112px; align-items: center; gap: 6px; padding: 14px 14px; border-radius: 18px; color: var(--ink); text-decoration: none; transition: background .15s; }
.mc .mark { position: absolute; left: 14px; top: 10px; z-index: 1; padding: 0 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1.9; }
.mc .ph { width: 74px; height: 74px; }
.mc .bd { min-width: 0; padding: 0 8px 0 2px; }
.mc .nm { display: block; font-family: var(--num); font-feature-settings: "palt"; font-size: 22px; font-weight: 800; letter-spacing: .04em; line-height: 1.35; }
#qresult .nm { font-family: var(--body); }   /* 議員データの検索結果は後から描くので、見出しの書体の字が無い。端末の書体にする */
.mc .kn { display: block; margin-top: 2px; color: var(--mute); font-size: 12px; letter-spacing: .16em; }
.mc .meta { display: block; margin-top: 4px; color: var(--ink-2); font-size: 13px; }
.mc .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mc .rt { display: flex; align-items: baseline; justify-content: center; gap: 3px; padding: 10px 6px; border-left: 1px solid var(--line-2); color: var(--mute); font-size: 12px; font-weight: 700; }
.mc .rt b { margin: 0 1px; color: var(--ink); font-family: "Outfit", var(--body); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.empty { margin: 0; padding: 36px 20px; border: 1.5px dashed var(--line); border-radius: 18px; background: #fafbfd; color: var(--mute); text-align: center; text-wrap: pretty; word-break: auto-phrase; }
.box .empty { margin: 14px; }
/* 候補者が0のあいだの空の札（定数の数だけ。灰色。光が3回だけ流れる） */
.soon-box { padding: 20px 18px 18px; }
.soon-lb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; color: var(--ink-2); font-size: 15px; font-weight: 800; }
.ghosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ghost { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 8px 12px; min-height: 76px; padding: 14px; border: 1.5px dashed #d3dae5; border-radius: 16px; background: #fafbfd; }
.ghost .gh-ph { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  background: #e9edf3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c3ccd9'%3E%3Ccircle cx='12' cy='9' r='4'/%3E%3Cpath d='M4.5 20a7.5 7.5 0 0115 0z'/%3E%3C/svg%3E") center / 28px no-repeat; }
.ghost .gh-l1, .ghost .gh-l2 { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, #e9edf3 0%, #f7f9fc 50%, #e9edf3 100%) 0 0 / 200% 100%; animation: gh-shine 1.8s ease-in-out 3; }
.ghost .gh-l1 { width: 82%; align-self: end; }
.ghost .gh-l2 { width: 52%; height: 9px; align-self: start; }
.ghost.more { display: flex; justify-content: center; color: var(--mute); font-size: 14px; font-weight: 800; }
@keyframes gh-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.soon-t { margin: 14px 0 0; color: var(--mute); font-size: 13px; }
.soon-t .cd { margin-left: 8px; color: var(--ink-2); font-weight: 800; }
.soon-t .cd b { margin: 0 2px; font-family: "Outfit", var(--body); font-size: 16px; }

/* ---------- 数字のタイル ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 0 0 18px; }
.fact { position: relative; overflow: hidden; padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--sh-1); }
.fact::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--g-cool); }
.fact.hot::before { background: var(--g-warm); }
.fact .k { color: var(--mute); font-size: 13px; font-weight: 800; }
.fact .v { margin-top: 4px; color: var(--ink); font-family: var(--num); font-size: clamp(28px, 2.8vw, 36px); white-space: nowrap; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fact.hot .v { color: #9a3412; }
.fact .v small { margin-left: 3px; color: var(--ink-2); font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.fact .s { margin-top: 2px; color: var(--ink-2); font-size: 13px; }

/* ---------- グラフ（会派ごとの人数：一色の横棒・数字をそのまま書く） ---------- */
figure.chart { margin: 0 0 8px; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
figure.chart figcaption { margin-bottom: 14px; font-family: var(--num); font-size: 17px; font-weight: 800; }
figure.chart figcaption small { margin-left: 8px; color: var(--mute); font-family: var(--body); font-size: 13px; font-weight: 600; }
.hbars { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 3em; align-items: center; gap: 8px 12px; font-size: 13px; }
.hbars .lb { color: var(--ink-2); text-align: right; line-height: 1.35; }
.hbars .tr { position: relative; height: 18px; border-radius: 6px; background: #f1f4f8; }
.hbars .br { position: absolute; left: 0; top: 0; bottom: 0; min-width: 6px; border-radius: 6px; background: #1f6fe0; }
.hbars .br.vac { background: repeating-linear-gradient(135deg, #fff 0 4px, #cfd6e2 4px 6px); box-shadow: inset 0 0 0 1px #c3ccda; }
.hbars .vv { font-family: "Outfit", var(--body); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chart-note { margin: 12px 0 0; color: var(--mute); font-size: 12px; }

/* ---------- 右のサイド ---------- */
.side > * { margin-bottom: 18px; }
.mybox { display: grid; grid-template-columns: 76px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--sh-1); }
.mybox .lb { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; background: var(--tag-1); color: #fff; font-family: "Outfit", var(--body); font-size: 18px; font-weight: 800; line-height: 1.15; text-align: center; }
.mybox .lb small { font-family: var(--body); font-size: 11px; font-weight: 700; }
.mybox .bd { padding: 14px 16px; }
.mybox .bd p { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.mybox select { width: 100%; height: 44px; padding: 0 36px 0 14px; border: 1.5px solid var(--line); border-radius: 12px; -webkit-appearance: none; appearance: none; cursor: pointer; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1424' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; }
.banner { display: block; padding: 20px 20px 18px; border: 1.5px solid transparent; border-radius: 20px; background: linear-gradient(#fff, #fff) padding-box, var(--g-warm) border-box; box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; }
.banner .b1 { font-family: var(--num); font-size: 19px; font-weight: 800; line-height: 1.4; }
.banner .b2 { margin-top: 6px; color: var(--ink-2); font-size: 13px; }
.banner .b3 { display: inline-block; margin-top: 12px; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.kw, .rank { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--sh-1); }
.kw .h, .rank .h { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-family: var(--num); font-size: 15px; font-weight: 800; }
.kw .h svg, .rank .h svg { width: 20px; height: 20px; color: #1f6fe0; }
.kw .b { padding: 12px 18px 16px; }
.kw .rg { margin: 12px 0 2px; color: var(--mute); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.kw .rg:first-child { margin-top: 0; }
.kw a { display: inline-block; margin: 0 12px 0 0; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 2; text-decoration: none; white-space: nowrap; }
.kw a:hover { color: #1b5bc9; text-decoration: underline; }
.rank ol { margin: 0; padding: 6px; list-style: none; }
.rank li a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink); font-size: 14px; text-decoration: none; }
.rank li .no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eef1f6; color: var(--ink); font-family: "Outfit", var(--body); font-size: 13px; font-weight: 800; }
.rank li:nth-child(1) .no { background: #ffe7a3; }
.rank li:nth-child(2) .no { background: #e2e8f0; }
.rank li:nth-child(3) .no { background: #f5d0b0; }
.rank li .v { color: var(--ink-2); font-family: "Outfit", var(--body); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 文章のページ（案内・はじめての方へ） ---------- */
.doc { padding: 34px 38px; }
.doc h2 { margin: 38px 0 12px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; line-height: 1.45; }
.doc h2::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: 12px; border-radius: 4px; background: var(--g-cool); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 16px; line-height: 1.95; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: #1f6fe0; }

/* 規約・ポリシーのページ（元は法務担当の小泉が管理する文書） */
.draft-note { margin: 0 0 22px; padding: 14px 18px; border: 1px solid #f0d49b; border-radius: 14px; background: #fff8e8; color: #6f4700; font-size: 14px; font-weight: 700; }
.doc h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 800; line-height: 1.5; }
.doc h4 { margin: 20px 0 6px; font-size: 16px; font-weight: 800; }
.doc ol { padding-left: 1.5em; }
.doc li > ul, .doc li > ol { margin: 4px 0; }
.doc hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line-2); }
.doc .tbl-scroll { margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.doc .dt th, .doc .dt td { text-align: left; vertical-align: top; word-break: normal; }
.doc blockquote { margin: 12px 0; padding: 12px 16px; border-left: 4px solid #1f6fe0; border-radius: 0 12px 12px 0; background: #f6f8fb; }
.doc blockquote p { margin: 0; }
.doc code { padding: 0 4px; border-radius: 4px; background: #f1f4f8; font-family: Consolas, monospace; font-size: .9em; }
.doc .fill { padding: 0 4px; border-radius: 4px; background: #fff1c2; }
.doc .tbl-scroll .dt { min-width: 640px; }   /* 狭い画面では列を縮めずに、箱の中で横に動かして読む */
.doc p, .doc li, .doc td { word-break: normal; }   /* 長い文章は文節で折らない（右端がでこぼこになるため）。見出しは文節で折る */

/* お問い合わせフォーム（2026-10-05）。入力欄の枠は白地で 3:1 以上（#7a8599 = 3.72） */
.cform { margin-top: 24px; }
.cf { margin: 0 0 22px; }
.cf label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; font-weight: 800; }
.req { display: inline-block; margin: 0 2px; padding: 0 8px; border-radius: 999px; background: #c0262d; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.7; vertical-align: 1px; }
.cf input, .cf select, .cf textarea { display: block; width: 100%; max-width: 560px; border: 1.5px solid #7a8599; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.cf input { height: 50px; padding: 0 14px; }
.cf select { height: 50px; padding: 0 40px 0 14px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1424' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; }
.cf textarea { max-width: none; min-height: 220px; padding: 12px 14px; line-height: 1.8; resize: vertical; }
.cf input:focus-visible, .cf select:focus-visible, .cf textarea:focus-visible { outline: 0; border-color: #1b5bc9; box-shadow: 0 0 0 4px rgba(61, 155, 255, .28); }
.doc .hint { margin: 6px 0 0; color: var(--mute); font-size: 14px; line-height: 1.7; }
.cform > .hint { margin: 0 0 18px; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* 機械の書き込みよけ。人には見えない */
.cf-send { min-width: 200px; height: 52px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--tag-1); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: filter .15s; }
.cf-send:hover { filter: brightness(1.12); }
.cf-send:focus-visible { outline: 3px solid #1b5bc9; outline-offset: 3px; }

/* ---------- 議員データ（検索）・ニュース・出典 ---------- */
.qform { display: flex; align-items: center; gap: 8px; max-width: 680px; margin: 0 0 14px; padding: 6px 6px 6px 22px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qform:focus-within { border-color: #1b5bc9; box-shadow: 0 0 0 4px rgba(61, 155, 255, .28); }
.qform input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; }
.qform button { flex: none; height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--tag-1); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.qcount { color: var(--mute); font-size: 14px; }
.news ul { margin: 0; padding: 4px 22px; list-style: none; }
.news li { display: grid; grid-template-columns: 96px 84px minmax(0, 1fr); gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.news li:last-child { border-bottom: 0; }
.news li > span:first-child { color: var(--ink-2); font-family: "Outfit", var(--body); font-weight: 700; }
.news li > span:nth-child(2) { color: #1b5bc9; font-size: 13px; font-weight: 800; }
.news li a { color: var(--ink); font-weight: 700; text-decoration: none; }
.news li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news li .src a { font-weight: 400; }
.src { margin: 12px 0 0; color: var(--mute); font-size: 12px; word-break: break-all; }

/* ---------- 選挙区の一覧（府議選などの選挙ページ） ---------- */
.dlist { padding: 8px; }
.dlist ul { margin: 0; padding: 0; list-style: none; }
.dlist li + li { border-top: 1px solid var(--line-2); }
.dlist a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 104px; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.dlist .dl-n { font-size: 16px; font-weight: 800; }
.dlist .dl-n::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 3px; background: var(--g-cool); vertical-align: 2px; }
.dlist .dl-a { color: var(--mute); font-size: 13px; }
.dlist .dl-s { font-family: "Outfit", var(--body); font-size: 15px; font-weight: 700; text-align: right; }
.dlist .dl-s small { color: #9a3412; font-family: var(--body); }

/* ---------- ホバー（マウスのある端末だけ） ---------- */
@media (hover: hover) {
  .dt tbody tr:hover td { background: #f8fafd; }
  .tabs button:hover:not(:disabled):not([aria-pressed="true"]) { background: #e2e7ef; }
  .mc a:hover { background: #f6f8fb; }
  .rank li a:hover, .dlist a:hover { background: #f6f8fb; }
  .banner:hover { box-shadow: var(--sh-2); }
}

/* ---------- 画面の幅ごと ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 18px 16px 56px; }
  .box { padding: 20px 18px; border-radius: 20px; }
  .tbar { padding: 24px 22px; border-radius: 20px; font-size: 26px; }
  .ttl { padding: 20px 20px 18px; border-radius: 20px; }
  .ttl h1 { font-size: 24px; }
  .ttl .tlink { position: static; display: inline-block; margin-top: 12px; }
  .ttl.pf { gap: 16px; }
  .ph.big { width: 80px; height: 80px; }
  .ig { grid-template-columns: 100px minmax(0, 1fr); }
  .ig .v.full { grid-column: auto; }
  .tabs { padding: 12px; }
  .tabs button { flex: 1 1 auto; padding: 0 12px; }
  .tabs .help { display: none; }
  .mc a { grid-template-columns: 68px minmax(0, 1fr); padding: 12px 10px; }
  .mc .mark { left: 10px; top: 6px; }
  .mc .ph { width: 58px; height: 58px; }
  .mc .nm { font-size: 19px; }
  .mc .rt { display: none; }
  .dt { font-size: 14px; }
  .dt td { padding: 10px 6px; }
  .dt .hide-sm { display: none; }
  /* 選挙の表は1行を1枚のカードにする（列を並べたままだと選挙名が1〜3文字ずつ折り返す） */
  .dt-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dt-stack, .dt-stack tbody { display: block; }
  .dt-stack tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 2px; border-bottom: 1px solid var(--line-2); }
  .dt-stack tr:last-child { border-bottom: 0; }
  .dt-stack td, .dt-stack td.hide-sm { display: block; padding: 0; border: 0; text-align: left; }
  .dt-stack td[data-l]::before { content: attr(data-l); margin-right: 6px; color: var(--mute); font-family: var(--body); font-size: 11px; font-weight: 800; }
  .dt-stack td.nm { order: -1; flex: 1 1 100%; font-size: 17px; }
  .dt-stack td .sub { display: inline; margin-left: 4px; }
  .dt-stack tbody tr:hover td { background: none; }
  .sbar-s { display: block; margin: 6px 0 0; font-size: 14px; }
  .hbars { grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 2.6em; gap: 6px 8px; font-size: 12px; }
  .news ul { padding: 4px 16px; }
  .news li { grid-template-columns: auto auto; justify-content: start; gap: 2px 10px; }
  .news li > span:nth-child(3) { grid-column: 1 / -1; }
  .dlist a { grid-template-columns: minmax(0, 1fr) auto; }
  .dlist .dl-a { grid-column: 1 / -1; grid-row: 2; }
  .doc { padding: 22px 18px; }
}

