:root {
  --text: #1a1a1a;
  --text-sub: #4d4d4d;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-sub: #f5f5f5;
  --line: #d6d6d6;
  --line-strong: #1a1a1a;
  --accent: #0b57d0;
  --link: #0b57d0;
  --link-visited: #6b2fb3;
  --focus: #ffd43d;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-head: var(--font);
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.8;
  font-feature-settings: "palt" 0;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.4; margin: 0; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
table { border-collapse: collapse; }

a { color: var(--link); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--text); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.note { font-size: 14px; color: var(--text-sub); margin-top: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 0; background: var(--focus); color: #000; padding: 8px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; margin-right: 0.4em; stroke-width: 1.75; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-height: 56px; padding-top: 14px; }
.brand { font-weight: 700; color: var(--text) !important; text-decoration: none; }
.brand-sub { font-size: 13px; color: var(--muted); }
.site-footer { margin-top: 80px; padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-sub); }

.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 12px; }

.kana { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }


.photo { width: 100%; }
.photo__frame { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-sub); }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption { font-size: 11px; color: var(--muted); padding-top: 4px; line-height: 1.5; }
.provisional { display: block; font-weight: 700; color: #a3290f; }
.photo--none { aspect-ratio: 3 / 4; background: var(--bg-sub); display: grid; place-items: center; border: 1px solid var(--line); }
.photo--none span { font-size: 12px; color: var(--muted); }

.src {
  font-size: 12px; padding: 0 5px; margin-left: 4px; border: 1px solid currentColor; border-radius: 3px;
  text-decoration: none; vertical-align: 1px; white-space: nowrap;
}
.fn { font-size: 0.72em; line-height: 0; margin-left: 1px; }
.fn a { text-decoration: none; }

.stance.is-unknown, .is-unknown { color: var(--muted); font-weight: 500; }


.steps { list-style: none; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 0 0 28px 52px; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--text);
  display: grid; place-items: center; font-weight: 700; background: var(--bg);
}
.step::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step__title { font-size: 18px; margin: 3px 0 8px; }
.bullets { padding-left: 1.3em; }
.bullets li + li { margin-top: 4px; }
.kv { width: 100%; font-size: 15px; margin-top: 12px; }
.kv th, .kv td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv thead th { font-size: 13px; color: var(--text-sub); border-bottom: 2px solid var(--line-strong); }
.kv tbody th { font-weight: 500; }

.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 32px; }
.glossary div { padding: 14px 0; border-top: 1px solid var(--line); }
.glossary dt { font-weight: 700; }
.glossary dd { font-size: 15px; color: var(--text-sub); }

.sources, .footnotes { padding-left: 1.4em; font-size: 14px; }
.sources li + li, .footnotes li + li { margin-top: 6px; }
.disclaimer { font-size: 14px; color: var(--text-sub); margin: 12px 0 20px; max-width: 46em; }

.notice { display: flex; gap: 4px; border-left: 4px solid var(--accent); background: var(--bg-sub); padding: 14px 18px; margin: 16px 0; }
.notice .icon { margin-top: 0.35em; color: var(--accent); }
.notice__title { font-weight: 700; }

.home h1 { font-size: 32px; margin: 40px 0 12px; }
.home h2 { font-size: 20px; margin: 40px 0 8px; }
.home-list { list-style: none; border-top: 1px solid var(--line); }
.home-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.lead { font-size: 17px; max-width: 46em; }


.cand-head { margin: 8px 0 24px; max-width: 46em; }
.cand-head h1 { font-size: clamp(30px, 6vw, 40px); }
.cand-head__meta { font-size: 14px; color: var(--muted); }
.cand-head .lede { font-size: 18px; margin-top: 12px; }
.cand-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.cand-layout > .infobox { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
.cand-main { grid-column: 1; grid-row: 1; min-width: 0; }
.cand-main section { margin-top: 40px; }
.cand-main section:first-child { margin-top: 0; }
.cand-main h2 { font-size: 22px; margin-bottom: 12px; }
.infobox table { width: 100%; font-size: 14px; margin-top: 12px; }
.infobox th, .infobox td { text-align: left; vertical-align: top; padding: 8px 0; border-bottom: 1px solid var(--line); }
.infobox th { width: 6.5em; font-weight: 500; color: var(--text-sub); padding-right: 8px; }
.plain { list-style: none; }
.small-note { font-size: 12px; margin-top: 4px; }
.positions .pos { padding: 14px 0; border-bottom: 1px solid var(--line); }
.positions dt { font-weight: 700; margin-bottom: 4px; }
.positions .stance { margin-right: 6px; }
.policy-group h3 { font-size: 17px; margin: 20px 0 8px; display: flex; align-items: center; }
.policy-list { list-style: none; }
.policy-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.career { list-style: none; }
.career li { display: grid; grid-template-columns: 4em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.year { font-weight: 700; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.inline-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 860px) {
  .cand-layout { grid-template-columns: 1fr; gap: 24px; }
  .cand-layout > .infobox { grid-column: 1; grid-row: auto; position: static; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
  .cand-layout > .infobox table { margin-top: 0; }
  .cand-main { grid-row: auto; }
}
@media (max-width: 420px) {
  .cand-layout > .infobox { grid-template-columns: 1fr; }
  .cand-layout > .infobox .photo { max-width: 160px; }
}

:root {
  --accent: #0017c1;
  --link: #0017c1;
  --link-visited: #5c10be;
  --text: #1a1a1a;
  --text-sub: #3d3d3d;
  --muted: #626262;
  --bg-sub: #f2f2f2;
  --line: #cccccc;
  --line-strong: #1a1a1a;
}

.hero { border-bottom: 1px solid var(--line); padding: 8px 0 32px; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 700; margin: 4px 0 20px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); }
.facts div { padding: 12px 16px 14px 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--text-sub); }
.facts dd { font-size: 22px; font-weight: 700; line-height: 1.4; }
.hero .lead { margin: 20px 0 8px; }

.toc { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 15px; }

.section { padding-top: 56px; scroll-margin-top: 8px; }
.section h2 { font-size: 26px; margin-bottom: 8px; }
.section h3 { font-size: 18px; margin: 24px 0 8px; }
.section-lead { color: var(--text-sub); font-size: 15px; margin-bottom: 20px; max-width: 52em; }

.label { font-size: 12px; font-weight: 700; color: var(--muted); display: block; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 32px; }
.card { padding: 20px 0 24px; border-top: 2px solid var(--text); display: flex; flex-direction: column; gap: 6px; }
.card .photo { max-width: 150px; margin-bottom: 8px; }
.card__name { font-size: 22px; line-height: 1.35; }
.card__name a { color: var(--text); text-decoration: none; }
.card__name a:hover { text-decoration: underline; }
.card__meta { font-size: 13px; color: var(--text-sub); }
.card__aff { font-size: 14px; font-weight: 700; }
.card__sns { font-size: 13px; color: var(--text-sub); overflow-wrap: anywhere; }
.slogan { font-size: 14px; color: var(--text-sub); margin-top: 4px; }
.card__desc { font-size: 15px; margin: 4px 0; }
.card .bullets { font-size: 14px; }
.scope { font-size: 12px; color: var(--muted); }
.card__more { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 500; }

.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 860px; font-size: 14px; border-top: 2px solid var(--text); }
.compare th, .compare td { padding: 14px 12px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 15px; background: var(--bg-sub); }
.compare tbody th { width: 170px; font-size: 15px; }
.compare td + td { border-left: 1px solid var(--line); }
.compare td p { margin-top: 4px; }
.compare .stance { font-size: 15px; }
.cell-name { display: none; }

.theme { border-top: 1px solid var(--line); }
.theme:last-of-type { border-bottom: 1px solid var(--line); }
.theme summary { cursor: pointer; list-style: none; display: flex; align-items: center; padding: 14px 0; font-size: 17px; font-weight: 700; }
.theme summary::-webkit-details-marker { display: none; }
.theme summary .icon:first-child { color: var(--accent); }
.theme summary .icon:last-child { margin: 0 0 0 auto; transition: transform 0.15s; }
.theme[open] summary .icon:last-child { transform: rotate(180deg); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 24px; padding-bottom: 16px; }
.theme-col { padding: 8px 0; }
.theme-col__name { font-size: 14px; font-weight: 700; color: var(--text-sub); border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 2px; }
.theme-col .bullets { font-size: 14px; }
.none { font-size: 13px; color: var(--muted); }

.vote-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.vote-grid h3:first-child { margin-top: 0; }
.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: 5px; }
.tl-item { position: relative; padding: 0 0 18px 20px; display: grid; }
.tl-item::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.tl-item.is-key::before { background: var(--text); border-color: var(--text); }
.tl-date { font-size: 13px; color: var(--text-sub); }
.tl-label { font-weight: 700; }
.tl-item.is-key .tl-label { font-size: 18px; }
.tl-detail { font-size: 13px; color: var(--text-sub); }
.callout { border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 8px; }
.callout__title { font-weight: 700; font-size: 18px; display: flex; align-items: center; }

@media (max-width: 800px) {
  .vote-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .card { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
  .card > * { grid-column: 2; }
  .card .photo { grid-column: 1; grid-row: 1 / span 4; max-width: none; }
  .table-scroll { overflow: visible; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; min-width: 0; width: auto; }
  .compare thead { display: none; }
  .compare { border-top: 0; }
  .compare tr { border-top: 2px solid var(--text); margin-bottom: 20px; }
  .compare tbody th { padding-left: 0; }
  .compare td { padding-left: 0; border-left: 0 !important; }
  .cell-name { display: block; font-size: 13px; font-weight: 700; color: var(--text-sub); }
}
