/* おおさか選挙ナビ 全ページ共通（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 作り直し）。
   本人の指示：「洗練さ、新しさ、若々しさがない。フォントも古臭い。現在のトレンドをふんだんに」→ 評価「良いじゃあないか！Good」
   構成（見出しの順番と中身）は選挙ドットコムの統一地方選挙の特設サイトのまま。
   色・書体・土台・ヘッドライン・ヘッダー・フッター・動きは core.css（全ページ共通）。 */

/* ---------- ヒーロー ---------- */
.tp-hero { position: relative; isolation: isolate; overflow: hidden; background: #fff; }
.tp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(13, 20, 36, .10) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 28% 42%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 70% 65% at 28% 42%, #000 15%, transparent 72%); }
.tp-aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.tp-aurora i { position: absolute; border-radius: 50%; }
.tp-hero .tp-aurora i:nth-child(1) { width: 640px; height: 640px; left: -240px; top: -280px; background: radial-gradient(closest-side, rgba(34, 199, 169, .40), transparent); }
.tp-hero .tp-aurora i:nth-child(2) { width: 780px; height: 780px; right: -280px; top: -240px; background: radial-gradient(closest-side, rgba(61, 155, 255, .34), transparent); }
.tp-hero .tp-aurora i:nth-child(3) { width: 660px; height: 660px; right: 16%; bottom: -420px; background: radial-gradient(closest-side, rgba(123, 92, 255, .30), transparent); }
.tp-hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 92px; }
.tp-quick { display: none; }
.tp-chip { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 16px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.tp-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #13b38e; box-shadow: 0 0 0 4px rgba(19, 179, 142, .18); }
.tp-h1 { margin: 26px 0 0; line-height: 1; }
.tp-h1 > span { display: block; }
.tp-h1 .en { font-family: "Outfit", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .26em; color: var(--mute); }
.tp-h1 .jp { margin-top: 18px; font-size: clamp(46px, 7vw, 92px); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; color: var(--ink); }
.tp-h1 .yr { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.tp-h1 .num { font-family: "Outfit", sans-serif; font-size: clamp(76px, 11vw, 150px); font-weight: 800; letter-spacing: -.045em; line-height: .95; padding-right: .05em; background: var(--t-big); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-h1 .pf { padding: 8px 8px 8px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; letter-spacing: .32em; line-height: 1.2; }
.tp-lead { max-width: 30em; margin: 26px 0 0; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.9; }
.tp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s; }
.tp-btn svg { width: 18px; height: 18px; transition: transform .15s var(--ease); }
.tp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(13, 20, 36, .7); }
.tp-btn:hover svg { transform: translateX(3px); }
.tp-btn.ghost { background: rgba(255, 255, 255, .75); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.tp-btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* 投票日のカード（枠をグラデーションに） */
.tp-dates { display: grid; gap: 18px; }
.tp-date { position: relative; padding: 24px 26px 22px; 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-2); }
.tp-date.d2 { background: linear-gradient(#fff, #fff) padding-box, var(--g-warm) border-box; }
.tp-date .lb { display: flex; align-items: center; gap: 10px; margin: 0; }
.tag { padding: 3px 14px; border-radius: 999px; background: var(--tag-1); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.d2 .tag, .h2 .tag { background: var(--tag-2); }
.tp-date .en { font-family: "Outfit", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--mute); }
.tp-date .mi { margin-left: auto; padding: 2px 10px; border: 1px solid #f0d49b; border-radius: 999px; background: #fff4dc; color: #6f4700; font-size: 11px; font-weight: 700; }
.tp-date .dt { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 0; font-family: "Outfit", sans-serif; font-weight: 800; line-height: 1; }
.tp-date .dt time { font-size: clamp(60px, 6.4vw, 84px); letter-spacing: -.045em; }
.tp-date .wd { color: var(--mute); font-size: 18px; font-weight: 700; letter-spacing: .14em; }
.tp-date .ds { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.tp-date .ds .c { flex: none; margin-left: auto; color: var(--mute); font-size: 13px; }
.tp-date .ds .c b { margin-right: 2px; font-family: "Outfit", sans-serif; font-size: 20px; color: var(--ink); }
.tp-date .cd { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 14px; font-weight: 700; }
.tp-date .cd[hidden] { display: none; }
.tp-date .cd b { font-family: "Outfit", sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

/* ---------- 見出し ---------- */
.tp-sec { padding: 104px 0; }
.tp-sec.alt { background: var(--bg-2); }
.tp-sh { max-width: 760px; margin: 0 0 44px; }
.tp-sh .en { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-family: "Outfit", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .26em; color: var(--mute); }
.tp-sh .en::before { content: ""; width: 32px; height: 3px; border-radius: 3px; background: var(--g-cool); }
.tp-sh h2 { margin: 14px 0 0; font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.tp-sh .sub { margin: 16px 0 0; color: var(--ink-2); font-size: 16px; }
.tp-sh.inv .en { color: #a3b3ca; }
.tp-sh.inv h2 { color: #fff; }
.tp-sh.inv .sub { color: #c6d1e1; }
.tp-note { margin: 18px 0 0; color: var(--mute); font-size: 13px; }
/* このサイトの目的（2026-10-05）。左に見出し、右にグラデーションの縦線と文章 */
.tp-mission { padding: 88px 0; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); }
.tp-ms { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 56px; }
.tp-ms .tp-sh { margin: 0; }
.tp-ms .ms-b { margin: 0; padding: 4px 0 4px 32px; border-left: 3px solid; border-image: var(--g-cool) 1; color: var(--ink-2); font-size: 18px; line-height: 2.1; word-break: normal; }

/* ---------- 日程（タイムライン） ---------- */
.tp-tl { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.tp-tl::before { content: ""; position: absolute; left: 8px; right: 8px; top: 63px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #22c7a9, #3d9bff 50%, #7b5cff 58%, #ff5d9e); }
.tp-tl li { position: relative; padding-right: 12px; }
.tp-tl li::before { content: ""; position: absolute; left: 0; top: 56px; width: 17px; height: 17px; border: 3px solid var(--sky); border-radius: 50%; background: #fff; }
.tp-tl li.g2::before { border-color: var(--violet); }
.tp-tl time { display: flex; align-items: flex-end; gap: 4px; height: 50px; font-family: "Outfit", sans-serif; line-height: 1; }
.tp-tl time b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.tp-tl time span { padding-bottom: 3px; font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--mute); }
.tp-tl p { margin: 34px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 700; line-height: 1.6; }
.tp-tl li.vote time b { font-size: 46px; background: var(--t-big); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-tl li.vote::before { left: -4px; top: 52px; width: 25px; height: 25px; border: 4px solid #fff; background: var(--g-cool); box-shadow: 0 0 0 2px var(--sky), 0 6px 16px -4px rgba(61, 155, 255, .7); }
.tp-tl li.g2.vote::before { background: var(--g-warm); box-shadow: 0 0 0 2px var(--violet), 0 6px 16px -4px rgba(123, 92, 255, .7); }
.tp-tl li.vote strong { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--ink); color: #fff; }

/* ---------- 府内で行われる選挙（ベントーグリッド） ---------- */
.tp-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "first second"; align-items: start; gap: 18px; }   /* 前半・後半を横並び（2026-10-05 本人） */
.tp-half { padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
.tp-half.h1 { grid-area: first; }
.tp-half.h2 { grid-area: second; }
.tp-half .hd { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.tp-half .hd time { font-family: "Outfit", sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.tp-half .hd time small { margin-left: 6px; color: var(--mute); font-size: 13px; letter-spacing: .14em; }
.tp-half .hd .c { margin-left: auto; color: var(--mute); font-size: 13px; font-weight: 700; }
.kc { margin-top: 18px; }
.kh { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.kh .kt { padding: 0 8px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink-2); color: var(--ink-2); font-family: var(--body); font-size: 11px; font-weight: 800; line-height: 1.8; }
.kh .n { margin-left: auto; font-family: "Outfit", sans-serif; font-size: 15px; font-weight: 700; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s var(--ease); }
.chips a small { font-family: "Outfit", var(--body); font-size: 12px; font-weight: 600; color: var(--mute); }

/* ---------- 地域から探す（夜の帯） ---------- */
.tp-find { position: relative; isolation: isolate; overflow: hidden; padding: 104px 0; background: var(--night); color: #fff; }
.tp-find::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.tp-find .tp-aurora i:nth-child(1) { width: 720px; height: 720px; left: -280px; top: -320px; background: radial-gradient(closest-side, rgba(34, 199, 169, .32), transparent); }
.tp-find .tp-aurora i:nth-child(2) { width: 820px; height: 820px; right: -320px; top: 12%; background: radial-gradient(closest-side, rgba(123, 92, 255, .34), transparent); }
.tp-find .tp-aurora i:nth-child(3) { width: 620px; height: 620px; left: 28%; bottom: -400px; background: radial-gradient(closest-side, rgba(61, 155, 255, .26), transparent); }
.tp-search { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.tp-field { margin: 0; padding: 22px 22px 24px; border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); }
.tp-field label { display: block; margin-bottom: 12px; color: #dbe3ef; font-size: 14px; font-weight: 800; }
.tp-zipbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 22px; border-radius: 999px; background: #fff; }
.tp-zipbox:focus-within { box-shadow: 0 0 0 4px #7cc0ff; }
.tp-zipbox > span { color: var(--mute); font-size: 18px; font-weight: 800; }
.tp-zipbox input { flex: 1; min-width: 0; height: 52px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: "Outfit", var(--body); font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.tp-zipbox input::placeholder { color: #697386; font-family: var(--body); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.tp-zipbox button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--tag-1); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; transition: filter .15s; }
.tp-zipbox button svg { width: 18px; height: 18px; }
.tp-zipbox button:hover { filter: brightness(1.12); }
.tp-field select { width: 100%; height: 64px; padding: 0 52px 0 24px; border: 0; border-radius: 999px; -webkit-appearance: none; appearance: none; cursor: pointer; color: var(--ink); font-family: var(--body); font-size: 16px; 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 22px center / 18px; }
.tp-field select:focus-visible { outline: 0; box-shadow: 0 0 0 4px #7cc0ff; }

/* 結果 */
.tp-result { margin-top: 18px; padding: 24px 26px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-2); color: var(--ink); transition: opacity .3s var(--ease), translate .3s var(--ease); }
@starting-style { .tp-result { opacity: 0; translate: 0 10px; } }
.tp-result h3 { margin: 0 0 14px; font-family: var(--body); font-size: 18px; font-weight: 800; line-height: 1.5; }
.tp-result ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tp-result li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.tp-result li.off { background: #fff; }
.tp-result li a { color: var(--ink); font-weight: 800; }
.tp-result li .w { color: var(--mute); font-family: "Outfit", var(--body); font-size: 14px; font-weight: 700; }
.tp-result li .note { color: var(--mute); font-size: 12px; }
.tp-result p { margin: 14px 0 0; }
.tp-result p a { color: #1b5bc9; font-weight: 800; }
.tp-result .choices { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-result .choices button { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--body); font-size: 15px; font-weight: 700; cursor: pointer; }
.tp-result .choices button:hover { border-color: var(--ink); }

/* 地図（タイル） */
.tp-map { margin-top: 44px; padding: 36px 32px 30px; border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--r-xl); background: rgba(255, 255, 255, .04); }
.tp-map h3 { margin: 0 0 24px; text-align: center; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.tmap { display: grid; grid-template-columns: repeat(7, minmax(0, 88px)); grid-auto-rows: 46px; justify-content: center; gap: 6px; }
.tl { display: flex; align-items: center; justify-content: center; padding: 2px; border-radius: 11px; text-align: center; text-decoration: none; font-size: 12.5px; font-weight: 800; line-height: 1.2; transition: transform .15s var(--ease), box-shadow .15s, filter .15s; }
.t-both { background: #2ed3b7; color: #03241e; }
.t-g { background: #8fc4ff; color: #071a33; }
.t-h { background: #c3b2ff; color: #170c3d; }
.t-none { background: rgba(255, 255, 255, .04); color: #c9d3e1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.tlegend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: #dbe3ef; font-size: 13px; }
.tlegend i { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border-radius: 4px; vertical-align: -2px; }
.tp-mapbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.tp-mapbtns a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.tp-mapbtns a small { color: var(--mute); font-weight: 600; }
.tp-map .note { margin: 16px 0 0; text-align: center; color: #b8c4d6; font-size: 13px; }

/* ---------- 選挙区別 候補者一覧（タブ） ---------- */
.tab-in { position: absolute; opacity: 0; pointer-events: none; }
.dtabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; padding: 5px; border-radius: 22px; background: #e7ebf2; }
.dtabs label { padding: 10px 20px; border-radius: 18px; cursor: pointer; color: var(--ink-2); font-family: var(--num); font-size: 15px; font-weight: 800; line-height: 1.35; transition: background .15s, box-shadow .15s, color .15s; }
.dtabs label small { display: block; color: var(--mute); font-family: var(--body); font-size: 12px; font-weight: 600; }
#dt1:checked ~ .dtabs label[for="dt1"], #dt2:checked ~ .dtabs label[for="dt2"], #dt3:checked ~ .dtabs label[for="dt3"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(13, 20, 36, .08), 0 8px 18px -10px rgba(13, 20, 36, .35); }
#dt1:focus-visible ~ .dtabs label[for="dt1"], #dt2:focus-visible ~ .dtabs label[for="dt2"], #dt3:focus-visible ~ .dtabs label[for="dt3"] { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.dpanel { display: none; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
#dt1:checked ~ .dp1, #dt2:checked ~ .dp2, #dt3:checked ~ .dp3 { display: block; }
.dgrp { margin: 24px 0 10px; color: var(--mute); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.dgrp:first-child { margin-top: 0; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }
.dtile { display: flex; flex-direction: column; gap: 4px; min-height: 86px; padding: 12px 13px; border: 1px solid transparent; border-radius: 16px; background: var(--bg-2); color: var(--ink); text-decoration: none; transition: transform .15s var(--ease), background .15s, border-color .15s, box-shadow .15s; }
.dtile .dn { font-size: 14px; font-weight: 800; line-height: 1.35; word-break: auto-phrase; }
.dtile .dc { color: var(--mute); font-size: 12px; font-weight: 700; }
.dtile .dc b { margin-left: 3px; color: var(--ink); font-family: "Outfit", var(--body); font-size: 15px; }
.dtile .dc small { margin-left: 6px; color: #6f4700; font-size: 11px; }
.dtile .sq { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.dtile .sq i, .sqk { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: transparent; box-shadow: inset 0 0 0 1.5px #b9c3d2; }   /* 候補者が0のあいだは空き枠（灰色の線だけ） */
.dtile .soon { align-self: flex-start; padding: 0 8px; font-size: 11px; line-height: 1.8; }
.sqk { margin-right: 4px; vertical-align: -1px; }

/* ---------- 初めての選挙 ---------- */
.tp-qa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.qa { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 236px; overflow: hidden; padding: 28px 26px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.qa::before { content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(61, 155, 255, .16), transparent); }
.qa .no { align-self: flex-start; font-family: "Outfit", sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .16em; background: var(--t-small); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qa .q { font-size: 21px; font-weight: 800; line-height: 1.45; }
.qa .a { color: var(--ink-2); font-size: 15px; line-height: 1.75; word-break: auto-phrase; }
.qa .go { display: grid; place-items: center; align-self: flex-end; width: 46px; height: 46px; margin-top: auto; border-radius: 50%; background: var(--bg-2); color: var(--ink); transition: background .2s, color .2s; }
.qa .go svg { width: 18px; height: 18px; }

/* ---------- ホバー（マウスのある端末だけ） ---------- */
@media (hover: hover) {
  .chips a:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
  .chips a:hover small { color: #c6d1e1; }
  .tl:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .8); filter: brightness(1.06); }
  .dtile:hover { background: #fff; border-color: var(--line); box-shadow: var(--sh-1); transform: translateY(-2px); }
  .qa:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
  .qa:hover .go { background: var(--ink); color: #fff; }
}

/* ---------- 画面の幅ごと ---------- */
@media (max-width: 1000px) {
  .tp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 28px; padding-bottom: 64px; }
  .tp-quick { display: flex; gap: 8px; margin: 0 -24px 22px; padding: 0 24px 4px; overflow-x: auto; scrollbar-width: none; }
  .tp-quick a { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink-2); font-size: 13px; font-weight: 700; text-decoration: none; }
  .tp-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-tl { grid-template-columns: minmax(0, 1fr); }
  .tp-tl::before { left: 9px; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; background: linear-gradient(180deg, #22c7a9, #3d9bff 50%, #7b5cff 58%, #ff5d9e); }
  .tp-tl li { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 0 20px 40px; }
  .tp-tl li::before { top: 9px; }
  .tp-tl li.vote::before { top: 13px; left: -2px; }
  .tp-tl time { height: auto; }
  .tp-tl p { margin: 0; }
  .tp-bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "first" "second"; }
  .tp-ms { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tp-search { grid-template-columns: minmax(0, 1fr); }
  .tp-qa { grid-template-columns: minmax(0, 1fr); }
  .qa { min-height: 0; }
}
@media (max-width: 640px) {
  .tp-quick { margin: 0 -16px 20px; padding: 0 16px 4px; }
  .tp-dates { grid-template-columns: minmax(0, 1fr); }
  .tp-date { padding: 20px 20px 18px; }
  .tp-ctas .tp-btn { flex: 1 1 auto; }
  .tp-sec, .tp-find { padding: 72px 0; }
  .tp-sh { margin-bottom: 30px; }
  .tp-tl li { grid-template-columns: 96px minmax(0, 1fr); }
  .tp-tl time b { font-size: 26px; }
  .tp-tl li.vote time b { font-size: 34px; }
  .tp-half { padding: 22px 20px 20px; }
  .tp-mission { padding: 64px 0; }
  .tp-ms .ms-b { padding-left: 20px; font-size: 16px; line-height: 2; }
  .tp-field { padding: 18px 16px 20px; }
  .tp-zipbox { padding-left: 16px; }
  .tp-zipbox button { padding: 0 18px; }
  .tp-map { padding: 26px 10px 22px; border-radius: 24px; }
  .tmap { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 40px; gap: 4px; }
  .tl { border-radius: 8px; font-size: 10.5px; }
  .dtabs { display: flex; width: 100%; }
  .dtabs label { flex: 1 1 auto; padding: 9px 12px; font-size: 14px; }
  .dpanel { padding: 18px 14px; }
  .dgrid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
}

