/* =========================================================
   瀬古航也 公式サイト — スタイルシート
   配色: 紺 × 白（アクセント: ゴールド）
   紺はパンフレットの青に合わせています。
   ========================================================= */

:root {
  --navy-900: #0b1454;
  --navy-800: #16217a;
  --navy-700: #1e2b8f;
  --navy-600: #2b3aad;
  --blue-400: #5468d6;
  --gold: #c9a227;
  --gold-light: #e0bf55;

  --ink: #16202e;
  --ink-sub: #56637a;
  --line: #dfe5ee;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;

  --max: 1120px;
  --pad: 24px;
  --radius: 10px;
  --shadow: 0 2px 4px rgba(10, 31, 68, .05), 0 12px 32px rgba(10, 31, 68, .07);
  --header-h: 72px;

  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic",
          "Noto Sans JP", Meiryo, system-ui, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border: 2px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--navy-800); color: #fff; box-shadow: 0 8px 20px rgba(10, 31, 68, .22); }
.btn--primary:hover { background: var(--navy-600); transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, .8); color: var(--navy-800); border-color: var(--navy-800); }
.btn--ghost:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--wide { width: 100%; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.is-scrolled { box-shadow: 0 2px 16px rgba(10, 31, 68, .1); border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand__name { font-size: 23px; font-weight: 700; letter-spacing: .1em; color: var(--navy-800); font-family: var(--font-serif); }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list a {
  display: block; padding: 10px 14px; font-size: 14px; font-weight: 600;
  text-decoration: none; color: var(--ink); border-radius: 6px;
  transition: color .2s ease, background-color .2s ease;
}
.nav__list a:hover { color: var(--navy-600); background: var(--bg-alt); }
.nav__list a.is-active { color: var(--navy-700); }
.nav__list a.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--gold); border-radius: 2px;
}

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--navy-800); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding-top: var(--header-h); overflow: hidden; background: var(--navy-800); }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(61, 120, 196, .45), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(201, 162, 39, .18), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600));
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 100% 6px; opacity: .5;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-block: 88px 96px;
}
.hero__text { color: #fff; }
.hero__catch {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.6vw, 60px); line-height: 1.28; letter-spacing: .02em;
  margin-bottom: 24px;
}
.hero__catch span { display: block; }
.hero__catch span:last-child { color: var(--gold-light); }
.hero__lead { max-width: 32em; color: rgba(255, 255, 255, .9); font-size: 17px; }
.hero__name {
  margin-top: 32px; font-family: var(--font-serif);
  font-size: 38px; font-weight: 700; letter-spacing: .14em; line-height: 1.2;
}
.hero__ruby {
  display: block; margin-bottom: 6px;
  font-family: var(--font); font-size: 13px; font-weight: 400;
  letter-spacing: .3em; color: rgba(255, 255, 255, .65);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__photo { position: relative; }
.hero__photo img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .18);
}
.hero__photo::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 96px; height: 96px;
  border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  border-radius: 0 0 0 8px;
}

/* ---------- お知らせ ---------- */
.news { background: #fff; border-bottom: 1px solid var(--line); }
.news__inner { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding-block: 32px; align-items: start; }
.news__title {
  font-size: 14px; letter-spacing: .16em; color: var(--navy-700);
  padding-top: 6px; border-left: 3px solid var(--gold); padding-left: 12px;
}
.news__list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px;
}
.news__list li:last-child { border-bottom: 0; }
.news__list time { font-size: 13px; color: var(--ink-sub); font-variant-numeric: tabular-nums; }
.news__list a { text-decoration: none; }
.news__list a:hover { color: var(--navy-600); text-decoration: underline; }

.tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-alt); color: var(--navy-700); border: 1px solid var(--line);
}

/* ---------- セクション共通 ---------- */
.section { padding-block: 96px; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-800); color: #fff; }

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__en { font-size: 12px; letter-spacing: .28em; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.6vw, 38px); letter-spacing: .04em; margin-bottom: 16px;
}
.section__desc { color: var(--ink-sub); font-size: 15px; }
.section__head--light .section__desc { color: rgba(255, 255, 255, .78); }

/* ---------- 4つの約束（政策サイトへの誘導） ---------- */
.promise-cta {
  position: relative; overflow: hidden;
  text-align: center; padding: 64px 32px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--bg-alt));
}
.promise-cta::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--gold));
}
.promise-cta .section__en { margin-bottom: 14px; }
.promise-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(25px, 3.6vw, 38px); letter-spacing: .04em;
  color: var(--navy-800); margin-bottom: 16px;
}
.promise-cta__lead { font-size: 15px; color: var(--ink-sub); margin-bottom: 32px; }

.btn--lg { min-height: 60px; padding: 0 40px; font-size: 16px; }
.ext-icon { width: 15px; height: 15px; flex: none; }
.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;
}
.br-sp { display: none; }

/* ---------- プロフィール ---------- */
.profile { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.profile__name { font-family: var(--font-serif); font-size: 34px; letter-spacing: .1em; color: var(--navy-800); margin-bottom: 24px; }
.profile__name span { display: block; font-family: var(--font); font-size: 12px; font-weight: 400; letter-spacing: .3em; color: var(--ink-sub); margin-bottom: 8px; }
.profile__facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.profile__facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.profile__facts dt { font-weight: 700; color: var(--navy-700); }

.timeline__title { font-size: 16px; letter-spacing: .12em; color: var(--navy-700); margin-bottom: 20px; padding-left: 12px; border-left: 3px solid var(--gold); }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 10px 0; font-size: 15px; color: var(--ink-sub); }
.timeline li::before {
  content: ""; position: absolute; left: -24px; top: 18px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--navy-600);
}
.timeline li strong { color: var(--navy-800); }
/* 「（現・〇〇）」のような補足。本体より控えめに見せる */
.timeline__note { font-size: 13px; color: #7c879b; }

/* ---------- カード ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 22px 22px 26px; }
.card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; color: var(--ink-sub); }
.card__title { font-size: 17px; color: var(--navy-800); margin-bottom: 10px; }
.card__text { font-size: 14px; color: var(--ink-sub); }

/* ---------- 後援会 ---------- */
.support { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.support__item {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); padding: 32px 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.support__item h3 { font-size: 20px; letter-spacing: .04em; }
.support__item p { font-size: 15px; color: rgba(255, 255, 255, .82); }
.support__item .btn { align-self: flex-start; }
.support__privacy { font-size: 12px !important; color: rgba(255, 255, 255, .58) !important; }

.officers { display: grid; gap: 0; }
.officers li {
  display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.officers li:last-child { border-bottom: 0; }
.officers__role { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold-light); }
.officers__name { font-size: 16px; letter-spacing: .06em; }

/* ---------- お問い合わせ ---------- */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy-800); }
.req { display: inline-block; margin-left: 8px; padding: 2px 8px; font-size: 11px; background: #b3241f; color: #fff; border-radius: 3px; letter-spacing: .06em; }
/* font-size は 16px 未満にしないこと。iOS Safari が入力時に自動ズームします */
.field input, .field select, .field textarea {
  width: 100%; padding: 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(28, 68, 133, .12); outline: none;
}
.field textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--navy-700); }
.error { font-size: 13px; color: #b3241f; min-height: 0; }
.error:empty { display: none; }
.is-invalid { border-color: #b3241f !important; }
.form__status { font-size: 14px; font-weight: 700; color: var(--navy-700); }
.form__status:empty { display: none; }
.form__note { font-size: 12px; color: var(--ink-sub); }

.office { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 36px; }
.office h3 { font-size: 18px; letter-spacing: .1em; margin-bottom: 20px; padding-left: 12px; border-left: 3px solid var(--gold); }
.office dl > div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 15px; }
.office dt { font-weight: 700; color: var(--gold-light); }
.office dd { color: rgba(255, 255, 255, .9); }
/* 電話番号はスマホからそのまま発信するので、指で押せる大きさを確保する。
   負のマージンで見た目の行の高さは変えずにタップ領域だけ広げている */
.office a { display: inline-block; padding: 14px 0; margin: -14px 0; color: #fff; }
.office__note { margin-top: 20px; font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ---------- 404ページ ---------- */
.notfound { padding-top: var(--header-h); background: var(--bg-alt); }
.notfound__inner { min-height: 64vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 80px; }
.notfound__code {
  font-family: var(--font-serif); font-size: clamp(64px, 14vw, 120px);
  line-height: 1; letter-spacing: .06em; color: var(--navy-800); opacity: .16; margin-bottom: 8px;
}
.notfound__title { font-family: var(--font-serif); font-size: clamp(24px, 4vw, 34px); letter-spacing: .04em; color: var(--navy-800); margin-bottom: 20px; }
.notfound__text { font-size: 15px; color: var(--ink-sub); margin-bottom: 36px; }

/* ---------- フッター ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .82); padding-block: 48px 32px; }
.footer__inner { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; align-items: start; }
.footer__name { font-family: var(--font-serif); font-size: 22px; letter-spacing: .12em; color: #fff; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer__nav a { display: inline-block; padding: 15px 0; font-size: 14px; text-decoration: none; }
.footer__nav a:hover { color: var(--gold-light); }
.footer__meta { font-size: 14px; text-align: right; }
.footer__copy { margin-top: 8px; color: rgba(255, 255, 255, .55); font-size: 12px; }

/* ---------- ページトップ ---------- */
.to-top {
  position: fixed; z-index: 90;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-800); color: #fff; font-size: 18px;
  box-shadow: 0 8px 20px rgba(10, 31, 68, .3);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background-color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-600); }

/* ---------- スクロール演出 ----------
   JS が有効なときだけ隠す。JS 無効環境では最初から表示される。 */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-block: 64px 72px; }
  .hero__photo { max-width: 340px; }
  .profile, .contact, .support { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
}

@media (max-width: 780px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(10, 31, 68, .12);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility .3s ease;
  }
  .nav.is-open { max-height: 70vh; visibility: visible; overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 20px; }
  .nav__list a { padding: 15px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15px; }
  .nav__list a.is-active::after { display: none; }
  .nav-toggle { display: block; }

  .section { padding-block: 64px; }
  .section__head { margin-bottom: 36px; }
  .news__inner { grid-template-columns: 1fr; gap: 12px; padding-block: 24px; }
  .cards { grid-template-columns: 1fr; }
  .promise-cta { padding: 44px 22px; }
  .br-sp { display: block; }
  .form, .office { padding: 24px; }
  .profile__facts > div { grid-template-columns: 92px 1fr; }
}

@media (max-width: 420px) {
  :root { --pad: 18px; }
  .hero__actions .btn { width: 100%; }
  .officers li { grid-template-columns: 64px 1fr; }
}

/* ---------- モーションを控えめに ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 印刷 ---------- */
@media print {
  .header, .nav-toggle, .to-top, .hero__bg, .form { display: none !important; }
  body { color: #000; }
  .section { padding-block: 24px; }
  .reveal { opacity: 1; transform: none; }
}
