@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  --ivory: #f4f0e8;
  --paper: #fbf9f5;
  --ink: #18222e;
  --ink-soft: #2c3845;
  --gold: #a4804a;
  --gold-soft: #e6dac6;
  --orange: #ff7b00;
  --red: #c62828;
  --text: #2b2926;
  --muted: #7b746a;
  --line: rgba(24, 34, 46, 0.14);

  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --ease: cubic-bezier(0.19, 0.8, 0.22, 1);
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;
}

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

html { background: var(--ivory); }
body {
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- 仮原稿の目印（公開前に消す） ---------- */
.draft {
  border: 1px dashed #c9772f;
  background: rgba(255, 246, 236, 0.8);
  color: #6b4a2b;
  padding: 1em 1.2em;
  font-size: 0.9rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.draft::before {
  content: "仮の文章";
  display: inline-block;
  background: #c9772f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 0.6em;
  margin-right: 0.6em;
  letter-spacing: 0.1em;
}

/* ---------- 最初のシーン（紺地に白字で「今こそ、福岡市民ファースト」） ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  overflow: hidden;
  display: grid;
  place-items: center;
  animation: introUp 0.9s 2.7s cubic-bezier(0.7, 0, 0.2, 1) forwards; /* 文字の「ドン」と同時に幕を開ける */
}
.intro.is-skipped { animation: introUp 0.6s var(--ease) forwards; }
.intro-stage {
  text-align: center;
  color: #fff;
  padding-inline: var(--gutter);
  animation: stagePunch 0.5s 2.55s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.intro-copy { font-family: var(--font-body); font-weight: 700; line-height: 1.3; color: #fff; }
.c1 {
  font-size: clamp(1.9rem, 7.2vw, 4.4rem);
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  opacity: 0;
  animation: slamIn 0.6s 0.3s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
.intro-line {
  display: block;
  width: min(78vw, 720px);
  height: 3px;
  margin: clamp(1rem, 3vw, 1.8rem) auto;
  background: var(--orange);
  transform: scaleX(0);
  animation: lineStrike 0.45s 1.05s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
.c2 {
  font-size: clamp(1.8rem, 7.9vw, 6rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  padding-block: 0.08em;
}
.c2 span {
  display: inline-block;
  transform: translateY(110%);
  animation: charUp 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  animation-delay: calc(1.45s + var(--i) * 0.07s);
}
.intro-skip {
  position: absolute;
  right: var(--gutter);
  bottom: 1.8rem;
  padding: 0.5em 1.2em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  cursor: pointer;
}
.intro-skip:hover { background: rgba(255, 255, 255, 0.12); }
@keyframes slamIn {
  from { opacity: 0; transform: scale(1.35); filter: blur(8px); letter-spacing: 0.6em; }
  to { opacity: 1; transform: none; filter: none; letter-spacing: 0.3em; }
}
@keyframes lineStrike { to { transform: scaleX(1); } }
@keyframes charUp { to { transform: none; } }
@keyframes stagePunch { 0% { transform: none; } 40% { transform: scale(1.045); } 100% { transform: none; } }
@keyframes introUp { to { transform: translateY(-100%); visibility: hidden; } }
html:not(.js) .intro, html.intro-seen .intro { display: none; }

/* 下層ページは幕なし・ふわっと切り替え */
.page-fade { animation: pageIn 0.8s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.is-leaving body { opacity: 0; transition: opacity 0.35s ease; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.5s ease, height 0.5s var(--ease), box-shadow 0.5s ease;
}
.site-header.is-scrolled {
  background: rgba(244, 240, 232, 0.97);
  height: 60px;
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap {
  max-width: none;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: baseline; gap: 1em; text-decoration: none; }
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.22em;
}
.logo-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.2em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2.6rem; }

.header-sns {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin-left: 2.4rem;
  padding-left: 2.4rem;
  border-left: 1px solid var(--line);
}
.header-sns a { display: block; padding: 4px; color: var(--ink); transition: color 0.3s; }
.header-sns a:hover { color: var(--gold); }
.header-sns svg { display: block; width: 17px; height: 17px; }
.nav a {
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  padding-block: 0.4em;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  right: 8px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease), background 0.3s;
}
.nav-toggle::before { top: 16px; width: 28px; }
.nav-toggle span { top: 22px; width: 20px; }
.nav-toggle::after { top: 28px; width: 12px; }
.nav-open .nav-toggle span { width: 0; }
.nav-open .nav-toggle::before { width: 28px; transform: translateY(6px) rotate(35deg); background: var(--gold-soft); }
.nav-open .nav-toggle::after { width: 28px; transform: translateY(-6px) rotate(-35deg); background: var(--gold-soft); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 46%;
  background: var(--gold-soft);
}
.hero .wrap {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: auto minmax(340px, 1fr) clamp(280px, 36vw, 500px);
  align-items: end;
  gap: 0 clamp(1.5rem, 4vw, 4rem);
}
.hero-copy {
  align-self: center;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.7;
  letter-spacing: 0.2em;
  color: var(--ink);
  padding-block: 2rem;
}
.hero-copy .l { display: block; overflow: hidden; }
.hero-copy .l > span { display: block; }
.hero-meta { align-self: end; padding-bottom: clamp(3rem, 9vh, 6rem); white-space: nowrap; }
.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  letter-spacing: 0.14em;
}
.hero-rule { display: block; width: 3.5rem; height: 1px; background: var(--gold); margin-block: 2rem; }
.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.2em;
  color: var(--ink);
}
.hero-sub { margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.2em; }
.hero-photo { align-self: end; position: relative; z-index: 1; }
.hero-photo img { width: 100%; max-height: calc(100svh - var(--header-h) - 3rem); object-fit: contain; object-position: bottom; will-change: transform; }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--ink) 50%, transparent 50%) 0 0 / 1px 200% no-repeat, var(--line);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { from { background-position: 0 -64px, 0 0; } to { background-position: 0 64px, 0 0; } }

/* ---------- セクション共通 ---------- */
.section { padding-block: clamp(5rem, 12vw, 9.5rem); position: relative; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--ink); color: #d9dde2; }

.sec-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: var(--ink);
}
.dark .sec-head h2 { color: #fff; }
.sec-head .rule { display: block; width: 100%; height: 1px; background: var(--line); margin-top: 1.4rem; }
.dark .sec-head .rule { background: rgba(255, 255, 255, 0.16); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 3rem;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--ink);
}
.dark .more { color: #fff; }
.more::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
  transition: width 0.6s var(--ease);
}
.more:hover::after { width: 4.5rem; }

/* ---------- ごあいさつ ---------- */
.message-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.photo-frame { position: relative; background: var(--gold-soft); overflow: hidden; }
.photo-frame img { padding-top: 12%; width: 86%; margin: 0 auto; }
.message-quote {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.9;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 2rem;
}
.message-body p + p { margin-top: 1.2em; }
.message-body .draft { margin-top: 1.5em; }
.signature {
  margin-top: 2.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-align: right;
}

/* ---------- 政策 ---------- */
.policy-list { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.policy-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1.2rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.policy-item h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.7;
  letter-spacing: 0.14em;
  color: #fff;
}
.policy-item h3 small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.policy-page .policy-list { border-top-color: var(--line); }
.policy-page .policy-item { border-bottom-color: var(--line); }
.policy-page .policy-item h3 { color: var(--ink); }
.policy-note { margin-top: 3rem; max-width: 760px; }

/* ---------- 下層ページ見出し ---------- */
.page-head {
  padding-top: calc(var(--header-h) + clamp(3rem, 9vw, 7rem));
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.22em;
  line-height: 1.4;
  color: var(--ink);
}
.page-head .rule { display: block; height: 1px; background: var(--line); margin-top: 2rem; }
.page-head + .section { padding-top: clamp(2rem, 5vw, 4rem); }

/* ---------- プロフィール ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.profile-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  letter-spacing: 0.26em;
  line-height: 1.3;
  color: var(--ink);
}
.profile-kana { margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.3em; }
.data-list { display: grid; grid-template-columns: 8.5em 1fr; border-top: 1px solid var(--line); }
.data-list dt, .data-list dd { padding: 1.1em 0; border-bottom: 1px solid var(--line); }
.data-list dt { font-size: 0.85rem; color: var(--gold); letter-spacing: 0.18em; padding-top: 1.25em; }
.data-list dd small { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.9; margin-top: 0.3em; }

.history { border-top: 1px solid var(--line); }
.history li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem 2rem;
  padding: 1.3em 0;
  border-bottom: 1px solid var(--line);
}
.history .year {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
}
.history .year small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.15em; }
.history p small { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.9; margin-top: 0.3em; }

/* ---------- お問い合わせ ---------- */
.contact-lead { max-width: 760px; }
.contact-lead .draft { margin-top: 2rem; }
.form-cta { margin-top: 2.5rem; }
.form-cta small { display: block; margin-top: 0.9em; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; }
.form-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.15em 2em;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.4s var(--ease);
}
.form-btn::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold-soft);
  transition: width 0.5s var(--ease);
}
.form-btn:hover { background: var(--ink-soft); }
.form-btn:hover::after { width: 3.2rem; }
.sns-list { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.sns-list li { flex: 1 1 200px; border-bottom: 1px solid var(--line); }
.sns-list a, .sns-soon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4em 0.2em;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-right: 2rem;
}
.sns-list a::after {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}
.sns-list a:hover::after { width: 3rem; }
.sns-name { display: inline-flex; align-items: center; gap: 0.8em; }
.sns-icon { width: 1.25em; height: 1.25em; flex: none; }
.sns-soon { color: var(--muted); }
.sns-soon small { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.15em; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--ink);
  color: #a9b2bc;
  padding-block: clamp(4rem, 9vw, 6.5rem) 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.footer-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3em;
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.8rem 2.2rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--gold-soft); }
.copyright {
  width: 100%;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  color: #6f7a86;
}

/* ================================================
   スクロール演出（JS が有効なときだけ隠しておく）
   ================================================ */
.js [data-reveal] { --d: 0s; }

/* 下からせり上がる文字（行ごとにマスク） */
.js [data-reveal="mask"] .l { display: block; overflow: hidden; }
.js [data-reveal="mask"] .l > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.3s var(--ease);
  transition-delay: calc(var(--d) + var(--i, 0) * 0.12s);
}
.js .hero-copy[data-reveal="mask"] .l > span { transform: translateY(-105%); }
.js [data-reveal="mask"].is-in .l > span { transform: none; }

/* 静かに浮かび上がる */
.js [data-reveal="up"] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--d);
}
.js [data-reveal="up"].is-in { opacity: 1; transform: none; }

/* 写真が幕を開けるように現れる */
.js [data-reveal="image"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.6s var(--ease);
  transition-delay: var(--d);
}
.js [data-reveal="image"] img { transform: scale(1.15); transition: transform 2.4s var(--ease); transition-delay: var(--d); }
.js [data-reveal="image"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="image"].is-in img { transform: none; }

/* 横線がすっと引かれる */
.js [data-reveal="line"] {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease);
  transition-delay: var(--d);
}
.js [data-reveal="line"].is-in { transform: none; }

/* リスト項目を順番に */
.js [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d) + var(--i, 0) * 0.08s);
}
.js [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }

/* ヒーローの金色パネルが右から伸びる */
.js .hero-panel { transform: scaleX(0); transform-origin: right; transition: transform 1.8s var(--ease); }
.js .is-in.hero-panel { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal] *, .js .hero-panel { transition: none !important; transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .intro { display: none !important; }
  .page-fade { animation: none; }
  .scroll-cue::after { animation: none; }
}

/* ---------- メニューを ≡ ボタンにしまう幅 ----------
   メニュー6つ・ロゴ・SNS 5つが1行に入るのはおよそ 1480px 以上。それより狭いと ≡ にする */
.nav a, .logo-name, .logo-sub { white-space: nowrap; }
@media (max-width: 1479px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 1.8rem; text-align: center; }
  .nav a { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; }
  .logo { position: relative; z-index: 60; }
  .nav-open .logo-name { color: #fff; }
  .nav-open .logo-sub { color: rgba(255, 255, 255, 0.6); }
  .nav-open .site-header { background: transparent; box-shadow: none; }
  .header-sns { order: 1; margin-left: auto; padding-left: 0; border-left: 0; gap: 0.5rem; position: relative; z-index: 60; }
  .nav-toggle { order: 2; margin-left: 0.4rem; }
  .nav-open .header-sns a { color: #fff; }
  .logo-name { white-space: nowrap; }
}

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .logo-sub { display: none; }

  .hero-panel { width: 62%; top: 30%; }
  .hero .wrap {
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    gap: 0 1rem;
  }
  .hero-copy { grid-row: 1; grid-column: 1; align-self: start; padding-block: 3.5rem 0; font-size: clamp(1.6rem, 7.4vw, 2.2rem); }
  .hero-photo { grid-row: 1; grid-column: 2; align-self: end; max-width: 300px; justify-self: end; }
  .hero-meta { grid-row: 2; grid-column: 1 / -1; padding-block: 2rem 4.5rem; white-space: normal; }
  .hero-rule { margin-block: 1.4rem; }
  .scroll-cue { display: none; }

  .message-grid, .profile-grid, .policy-item { grid-template-columns: 1fr; }
  .page-head h1 { font-size: clamp(1.5rem, 6.6vw, 2rem); letter-spacing: 0.12em; }
  .message-grid .photo-frame { max-width: 320px; }
  .data-list { grid-template-columns: 6.5em 1fr; }
  .history li { grid-template-columns: 1fr; gap: 0.2rem; }
  .history .year { display: flex; align-items: baseline; gap: 0.8em; }
}

/* ---------- プライバシーポリシー ---------- */
.privacy { max-width: 820px; }
.privacy-lead { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.article { padding-block: 2.2rem; border-top: 1px solid var(--line); }
.article:last-of-type { border-bottom: 1px solid var(--line); }
.article h2 {
  display: flex;
  align-items: baseline;
  gap: 1.2em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.article h2 .no { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.2em; flex-shrink: 0; }
.article p + p, .article p + ul, .article p + ol, .article .draft { margin-top: 0.9em; }
.article .dots li, .article .nums li { position: relative; padding-left: 1.6em; }
.article .dots li::before { content: ""; position: absolute; left: 0.4em; top: 0.95em; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.article .nums { counter-reset: n; }
.article .nums li { counter-increment: n; }
.article .nums li::before { content: "(" counter(n) ")"; position: absolute; left: 0; color: var(--muted); font-size: 0.9em; }
.article .data-list { margin-top: 0.5rem; }
.article a, .contact-note a { text-underline-offset: 0.25em; }
.privacy-date { margin-top: 2.5rem; text-align: right; color: var(--muted); font-size: 0.9rem; }
.fill { border-bottom: 1px dashed #c9772f; }
.contact-note { margin-top: 1.2rem; font-size: 0.88rem; color: var(--muted); }

/* ---------- ホーム：決意 ---------- */
.hero-jump { margin-top: 0; }
.ketsui {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.ketsui-photo { position: sticky; top: calc(var(--header-h) + 2rem); }
/* 見出しも写真と一緒に固定する（ヘッダーは縮んで 60px になる）。写真は見出しの下に来るようずらす */
@media (min-width: 901px) {
  .ketsui-head { position: sticky; top: 60px; z-index: 5; background: var(--paper); padding-top: 1.2rem; margin-top: -1.2rem; }
  .ketsui-photo { top: calc(60px + 1.2rem + clamp(1.6rem, 3vw, 2.2rem) * 1.5 + 1.4rem + 1px + 2rem); }
}
.ketsui-body { max-width: 40em; font-size: 1.05rem; }
.ketsui-body p + p { margin-top: 1.2em; }
.ketsui-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 2.8em 0 1em;
  padding-left: 1em;
  position: relative;
  overflow: hidden;
}
.ketsui-body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}
.ketsui-body h3 .h-in { display: block; }
/* 小見出し：金の線が伸びてから、文字が下からせり上がる */
.story-on .ketsui-body h3::before { transform: scaleY(0); transform-origin: top; transition: transform 0.7s var(--ease); }
.story-on .ketsui-body h3 .h-in {
  opacity: 0;
  transform: translateY(105%);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease) 0.25s, transform 1s var(--ease) 0.25s, filter 1s var(--ease) 0.25s;
}
.story-on .ketsui-body h3.is-shown::before { transform: none; }
.story-on .ketsui-body h3.is-shown .h-in { opacity: 1; transform: none; filter: none; }

/* ---------- ホーム：八つの約束カード ---------- */
.promise-lead { max-width: 760px; margin-top: -1.5rem; margin-bottom: 2.5rem; }
.carousel { position: relative; }
.promise-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0.5rem var(--gutter) 1.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1232px) {
  .promise-track { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); }
}
.promise-track::-webkit-scrollbar { display: none; }
.promise-card { flex: 0 0 min(80vw, 340px); scroll-snap-align: start; }
.promise-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.5s var(--ease);
}
.promise-card a:hover { transform: translateY(-4px); }
.promise-card a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.card-img { display: block; aspect-ratio: 4 / 3; background: var(--gold-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-ph {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--gold);
}
.card-body { display: block; padding: 1.3rem 1.4rem 1.6rem; }
.card-no { display: block; font-size: 0.8rem; font-weight: 700; color: var(--gold); letter-spacing: 0.2em; }
.card-title {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.75;
  letter-spacing: 0.06em;
}
.carousel-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.carousel-count { font-family: var(--font-serif); font-size: 1.1rem; color: #fff; letter-spacing: 0.15em; }
.carousel-count .cur { color: var(--gold-soft); font-size: 1.4rem; }
.carousel-hint { display: none; font-family: var(--font-body); font-size: 0.78rem; color: #a9b2bc; letter-spacing: 0.1em; }
.carousel-btns { display: flex; gap: 0.8rem; }
.carousel-btn {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, border-color 0.3s, opacity 0.3s;
}
.carousel-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.carousel-btn.prev::before { transform: translateX(2px) rotate(-135deg); }
.carousel-btn.next::before { transform: translateX(-2px) rotate(45deg); }
.carousel-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

/* ---------- 八つの約束ページ ---------- */
.toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--line); }
.toc a {
  position: relative;
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.4em 2.2em 1.4em 0.4em;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.4s var(--ease);
}
.toc a::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}
.toc a::after {
  content: "";
  position: absolute;
  right: 0.8em; top: 50%;
  width: 0.5em; height: 0.5em;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
  transition: right 0.4s var(--ease);
}
.toc-no {
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.toc-no b {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0;
}
.toc-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.75;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
  text-wrap: pretty;
}
.toc a:hover { background: var(--paper); }
.toc a:hover::before { width: 100%; }
.toc a:hover::after { right: 0.5em; }

.promise { scroll-margin-top: 40px; }
.promise-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.promise-no { display: block; color: var(--gold); font-weight: 700; letter-spacing: 0.2em; font-size: 0.9rem; }
.promise-no b { font-family: var(--font-serif); font-size: 2.4rem; margin-left: 0.2em; }
.promise-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.promise-text { max-width: 820px; font-size: 1.05rem; }
.promise-sub {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.promise-item { padding-block: 1.6rem; border-top: 1px solid var(--line); }
.promise-item:last-child { border-bottom: 1px solid var(--line); }
.promise-item p + p { margin-top: 0.9em; }
.promise-intro { font-weight: 500; }
.item-no {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.to-toc { display: inline-block; margin-top: 2rem; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.12em; text-underline-offset: 0.3em; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.chart { background: #fff; padding: 0.8rem; border: 1px solid var(--line); }
.chart a { display: block; cursor: zoom-in; }
.chart figcaption { margin-top: 0.6rem; font-size: 0.88rem; line-height: 1.8; color: var(--text); }
.chart figcaption small { display: block; color: var(--muted); font-size: 0.8rem; }
.chart-ph { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--gold-soft); color: var(--muted); font-size: 0.85rem; letter-spacing: 0.15em; }
.chart-cap { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; line-height: 1.7; letter-spacing: 0.04em; color: var(--ink); }
.chart-rel { display: block; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.chart-rel-label { display: block; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.12em; }
.chart .chart-rel a { display: flex; gap: 0.7em; align-items: baseline; margin-top: 0.25rem; cursor: pointer; font-size: 0.88rem; color: var(--ink); text-decoration: none; }
.chart-rel a b { flex: none; color: var(--gold); font-weight: 700; }
.chart-rel a::after { content: "→"; margin-left: auto; padding-left: 0.6em; color: var(--gold); transition: transform 0.3s var(--ease); }
.chart-rel a:hover { color: var(--gold); }
.chart-rel a:hover::after { transform: translateX(3px); }
.data-charts { margin-bottom: 0; }
.data-charts .chart { scroll-margin-top: 84px; }
.data-charts .chart:target { outline: 2px solid var(--gold); outline-offset: 4px; }

/* 八つの約束ページ：関連するデータへのリンク */
.promise-data { max-width: 820px; margin-top: 2.4rem; padding: 1.2rem 1.4rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.promise-data-label { font-size: 0.78rem; font-weight: 700; color: var(--gold); letter-spacing: 0.18em; }
.promise-data ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.promise-data li + li { border-top: 1px solid var(--line); }
.promise-data a { display: flex; align-items: baseline; gap: 0.8em; padding-block: 0.6rem; font-size: 0.95rem; color: var(--ink); text-decoration: none; }
.promise-data a::after { content: "→"; margin-left: auto; color: var(--gold); transition: transform 0.3s var(--ease); }
.promise-data a:hover { color: var(--gold); }
.promise-data a:hover::after { transform: translateX(3px); }

/* グラフの拡大表示 */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vw, 48px); border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(24, 34, 46, 0.88); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn 0.3s ease; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.lightbox img { max-width: min(100%, 1600px); max-height: calc(100vh - 8rem); width: auto; height: auto; background: #fff; cursor: zoom-out; }
.lightbox figcaption { color: #fff; font-size: 0.9rem; letter-spacing: 0.06em; text-align: center; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 4px; background: transparent; cursor: pointer; }
.lightbox-close::before, .lightbox-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 1.5px; background: #fff; }
.lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@keyframes lbIn { from { opacity: 0; } }

@media (max-width: 900px) {
  .ketsui { grid-template-columns: 1fr; }
  .ketsui-photo { position: static; max-width: 260px; }
  .ketsui-body, .promise-text { font-size: 1rem; }
  .toc { grid-template-columns: 1fr; }
  .toc a { grid-template-columns: 4.2rem 1fr; gap: 0.9rem; }
  .toc-no b { font-size: 1.8rem; }
  .toc-title { font-size: 1rem; }
  .carousel-hint { display: block; font-size: 0.72rem; }
}

/* ---------- 決意文を一文字ずつ表示 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ch { opacity: 0; transition: opacity 0.45s ease; }
.ch.on { opacity: 1; }
.story-skip {
  display: none;
  margin-top: 1.5rem;
  padding: 0.5em 1.1em;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.story-skip:hover { color: var(--ink); border-color: var(--ink); }
.story-on .story-skip { display: inline-block; background: var(--paper); }
.story-on .story-skip[hidden] { display: none; }
/* 署名は全文が出終わってから */
.story-on .signature { opacity: 0; transform: translateY(12px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.story-on.story-done .signature { opacity: 1; transform: none; }
@media (max-width: 900px) {
  /* スマホは写真が見えなくなったらボタンを画面の下に浮かせる */
  .story-skip.is-floating {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 40;
    margin: 0;
    color: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 4px 16px rgba(24, 34, 46, 0.18);
  }
}

/* ---------- リンク・ボタンを丸い枠で囲む ---------- */
.more, .story-skip, .to-toc, .intro-skip {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85em 1.8em;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.more { color: var(--ink); }
.dark .more { color: #fff; }
.more::after { width: 1.6rem; }
.more:hover::after { width: 2.4rem; }
.more:hover { background: var(--ink); color: var(--paper); }
.dark .more:hover { background: #fff; color: var(--ink); }
.story-skip { color: var(--ink-soft); border-color: var(--ink-soft); padding: 0.7em 1.4em; }
.story-skip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.story-on .story-skip { background: var(--paper); }
.story-on .story-skip:hover { background: var(--ink); }
.to-toc { color: var(--muted); padding: 0.6em 1.4em; font-size: 0.85rem; }
.to-toc:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.intro-skip { padding: 0.5em 1.3em; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.intro-skip:hover { background: rgba(255, 255, 255, 0.15); }
.carousel-btn { border-radius: 50%; }

/* ---------- スマホではみ出さないための予防 ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; } /* hidden だとスクロールの仕組みが変わり、写真の追従が止まるため clip を使う */
.ketsui > *, .message-grid > *, .profile-grid > *, .policy-item > * { min-width: 0; }
.ketsui-body p, .promise-text p { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .ketsui-body { max-width: 100%; }
}
@media (max-width: 900px) {
  /* Safari が縦書きの列を広く計算してヒーローが画面より広がるのを防ぐ */
  .hero, .hero .wrap { max-width: 100vw; }
  .hero .wrap { grid-template-columns: auto minmax(0, 1fr); }
  .hero-copy { min-width: 0; }
  .hero-photo { min-width: 0; width: 100%; }
  .hero-photo img { max-width: 100%; }
}

/* ---------- フッター：紺地に橙色の線 ---------- */
.site-footer { background: var(--ink); color: #fff; border-top: 4px solid var(--orange); }
.footer-name { color: #fff; }
.footer-nav a { color: #e9ecef; letter-spacing: 0.1em; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--orange); }
.copyright { color: #b8c0c8; border-top-color: rgba(255, 255, 255, 0.18); font-size: 0.78rem; }
.footer-contact { width: 100%; color: #e9ecef; font-size: 0.85rem; letter-spacing: 0.08em; }
.footer-contact a { color: #fff; text-decoration: underline; text-underline-offset: 0.25em; }
.footer-contact a:hover { color: var(--orange); }

/* ---------- ホームの八つの約束：明るい地 ---------- */
.promises-band { background: var(--ivory); }
.promises-band .promise-card a { border: 1px solid var(--line); }
.promises-band .carousel-count { color: var(--ink); }
.promises-band .carousel-count .cur { color: var(--gold); }
.promises-band .carousel-hint { color: var(--muted); }
.promises-band .carousel-btn { border-color: var(--line); }
.promises-band .carousel-btn::before { border-color: var(--ink); }
.promises-band .carousel-btn:hover { background: var(--ink); border-color: var(--ink); }
.promises-band .carousel-btn:hover::before { border-color: #fff; }

/* ---------- カードの進み具合の線（見えている範囲だけ金色） ---------- */
.carousel-info { flex: 1; max-width: 560px; }
.carousel-progress { position: relative; height: 2px; background: var(--line); overflow: hidden; }
.carousel-progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: var(--gold);
  transition: left 0.25s ease-out, width 0.25s ease-out;
}
.carousel-hint { margin-top: 0.8rem; }

/* ---------- 小さいスマホのヘッダー ---------- */
@media (max-width: 400px) {
  .logo-name { font-size: 1.1rem; letter-spacing: 0.12em; }
  .header-sns { gap: 0.1rem; }
  .header-sns svg { width: 16px; height: 16px; }
  .nav-toggle { margin-left: 0; }
}

/* ---------- メールの案内（お問い合わせ・プライバシーポリシー） ---------- */
.mail-cta { margin-top: 2rem; font-size: 0.95rem; }
.mail-cta small { display: block; margin-top: 0.5em; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; }
.mail-link { color: var(--ink); text-underline-offset: 0.3em; text-decoration-color: var(--gold); word-break: break-all; }
.mail-link:hover { color: var(--gold); }

/* ---------- 今日のよしとみ景子ページ ---------- */
.today { max-width: 760px; }
.today-date {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1.6;
}
.today-rel {
  display: inline-block;
  margin-right: 0.9em;
  padding: 0.1em 0.7em;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  vertical-align: 0.25em;
  border-radius: 3px;
}
.today-rel.is-past { background: var(--muted); }
.today-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.today-list li {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.3em 0.2em;
  border-bottom: 1px solid var(--line);
}
.today-time { font-weight: 700; color: var(--gold); letter-spacing: 0.08em; white-space: nowrap; }
.today-list p { color: var(--ink); font-size: 1.05rem; overflow-wrap: anywhere; }
.today-list .is-cancelled .today-time,
.today-list .is-cancelled s { color: var(--muted); }
.today-cancel {
  display: inline-block;
  margin-right: 0.7em;
  padding: 0.1em 0.6em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--red);
  border-radius: 3px;
  vertical-align: 0.12em;
}
.today-word {
  margin-top: 2.2rem;
  padding-left: 1.2em;
  border-left: 3px solid var(--orange);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.today-note, .today-empty { margin-top: 1.6rem; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; }
.today-empty { font-size: 1rem; color: var(--ink); }
@media (max-width: 600px) {
  .today-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .today-time:empty { display: none; }
}

.sns-feeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.sns-feed { background: #fff; border: 1px solid var(--line); min-width: 0; }
.sns-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  color: var(--ink);
}
.sns-feed-head a { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); text-underline-offset: 0.3em; }
.sns-feed-head a:hover { color: var(--gold); }
.sns-feed-body { padding: 1rem 1.3rem 1.5rem; min-height: 240px; }
.sns-feed-body .instagram-media { margin: 0 auto 1.2rem !important; min-width: 0 !important; width: 100% !important; }
.sns-feed-body > .twitter-timeline { display: block; margin-bottom: 1.2rem; font-size: 0.85rem; color: var(--muted); }
.sns-feed-body .twitter-tweet { margin: 0 auto 1.2rem !important; }
.sns-feed-body { min-height: 0; }
.sns-feed-more { margin-top: 0.5rem; }
.sns-feed-more .form-btn { font-size: 0.92rem; padding: 1em 1.6em; }
@media (max-width: 900px) {
  .sns-feeds { grid-template-columns: 1fr; }
}

/* ---------- 今日のよしとみ景子バナー（トップページの右下についてくる） ---------- */
.today-banner {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  width: min(340px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), bottom 0.4s var(--ease);
}
.today-banner.is-on { opacity: 1; transform: none; pointer-events: auto; }
.today-banner.is-on a { animation: tbFloat 4s ease-in-out 0.8s infinite; }
.today-banner.is-closed { display: none; }
.today-banner a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 2.6rem 0.85rem 1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(24, 34, 46, 0.28);
  overflow: hidden;
}
/* 光がすっと横切る */
.today-banner a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: tbShine 3.6s ease-in-out 1.2s infinite;
}
.today-banner a:hover { background: var(--ink-soft); }
.tb-dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.tb-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange);
  animation: tbPulse 1.8s ease-out infinite;
}
.tb-text { flex: 1; min-width: 0; line-height: 1.4; }
.tb-label { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.3em; color: var(--orange); }
.tb-marquee { display: flex; width: max-content; font-family: var(--font-serif); font-weight: 600; font-size: 1rem; letter-spacing: 0.12em; white-space: nowrap; animation: tbMarquee 14s linear infinite; }
.tb-text { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tb-arrow { flex: none; width: 1.6rem; height: 1px; background: var(--gold-soft); transition: width 0.4s var(--ease); }
.today-banner a:hover .tb-arrow { width: 2.2rem; }
.tb-close {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}
.tb-close::before, .tb-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%) rotate(45deg);
}
.tb-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.tb-close:hover::before, .tb-close:hover::after { background: #fff; }
/* スマホで「文章をすぐに全部表示する」ボタンが下に浮いている間は、その上によける */
body:has(.story-skip.is-floating) .today-banner { bottom: calc(80px + env(safe-area-inset-bottom)); }
@keyframes tbMarquee { to { transform: translateX(-50%); } }
@keyframes tbPulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.8); opacity: 0; } }
@keyframes tbShine { 0% { left: -40%; } 45%, 100% { left: 130%; } }
@keyframes tbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .today-banner, .today-banner.is-on a, .today-banner a::after, .tb-dot::after { animation: none; transition: none; }
  .tb-marquee { animation: none; }
  .tb-marquee span + span { display: none; }
}
/* X の投稿 3 件は縦に長いので、枠の中でスクロールさせる */
.x-posts { max-height: 760px; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 1.2rem; }
.x-posts:empty, .insta-posts:empty { display: none; }
.insta-posts { max-height: 760px; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 1.2rem; }
/* Instagram 欄を隠しているあいだは X だけを 1 列で（読みやすい幅に） */
.sns-feeds.is-single { grid-template-columns: minmax(0, 640px); }

/* ---------- 今日のよしとみ景子：福岡市の地図（回る区がオレンジに光る） ---------- */
.ward-map { margin: 2.4rem auto 0; max-width: 520px; } /* 予定の枠の外に出して、ページの真ん中に置く */
.ward-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.ward {
  fill: #fff;
  stroke: rgba(24, 34, 46, 0.35);
  stroke-width: 1.2;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.6s ease calc(var(--i) * 0.08s), fill 0.8s ease 0.9s;
}
.ward-map.is-in .ward { opacity: 1; }
.ward.is-on { fill: var(--gold-soft); stroke: var(--orange); stroke-width: 2; }
.ward-map.is-in .ward.is-on { fill: var(--orange); animation: wardGlow 2.4s ease-in-out 1.6s infinite; }
.ward-ripple {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
}
.ward-map.is-in .ward-ripple { animation: wardRipple 2.4s ease-out 1.6s infinite; }
.ward-map.is-in .ward-ripple.r2 { animation-delay: 2.8s; }
.ward-label {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  fill: var(--muted);
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.6s ease 0.8s;
}
.ward-map.is-in .ward-label { opacity: 1; }
.ward-label.is-on { fill: var(--ink); font-size: 24px; font-weight: 700; stroke: none; }
.ward-pin path { fill: var(--ink); }
.ward-pin circle { fill: #fff; }
.ward-pin { opacity: 0; }
.ward-map.is-in .ward-pin { animation: wardPinDrop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 1.2s both, wardPinBob 2.4s ease-in-out 2s infinite; }
.ward-map figcaption { margin-top: 0.4rem; text-align: right; font-size: 0.62rem; line-height: 1.6; color: var(--muted); opacity: 0.75; letter-spacing: 0.02em; }
@keyframes wardGlow { 0%, 100% { fill: var(--orange); } 50% { fill: #ffa24d; } }
@keyframes wardRipple { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
@keyframes wardPinDrop { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
@keyframes wardPinBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) {
  .ward, .ward-label { opacity: 1; transition: none; }
  .ward.is-on { fill: var(--orange); }
  .ward-map .ward.is-on, .ward-map .ward-ripple, .ward-map .ward-pin { animation: none !important; }
  .ward-pin { opacity: 1; }
}

/* ---------- ご寄付のお願い ---------- */
.donate .donate-catch { font-family: var(--font-serif); font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 600; color: var(--ink); letter-spacing: 0.1em; margin-bottom: 1.2rem; }
.donate h2 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); letter-spacing: 0.12em; margin: 2.6rem 0 1rem; padding-left: 0.9em; border-left: 3px solid var(--gold); }
.donate .dots li, .donate .nums li { position: relative; padding-left: 1.6em; margin-top: 0.4em; }
.donate .dots li::before { content: ""; position: absolute; left: 0.4em; top: 0.95em; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.donate .nums { counter-reset: n; }
.donate .nums li { counter-increment: n; }
.donate .nums li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.donate .note, .donate-form .note, .donate-done .note { margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); line-height: 1.9; }
.donate-form { max-width: 760px; }
.donate-form .field { margin: 0 0 1.6rem; padding: 0; border: 0; }
.donate-form label[for], .donate-form legend { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.5rem; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; }
.donate-form em, .donate-form legend small, .donate-form label small {
  font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; padding: 0.15em 0.6em; border-radius: 3px;
}
.donate-form em { color: #fff; background: var(--red); }
.donate-form legend small, .donate-form label small { color: var(--muted); border: 1px solid var(--line); }
.donate-form input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%; padding: 0.85em 1em; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
}
.donate-form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.donate-form .field .note { margin-top: 0.4rem; }
.donate-form .radio, .donate-form .check { display: flex; align-items: flex-start; gap: 0.7em; margin: 0.55rem 0; cursor: pointer; line-height: 1.7; }
.donate-form .radio { display: inline-flex; margin-right: 2em; }
.donate-form .radio input, .donate-form .check input { flex: none; width: 1.15em; height: 1.15em; margin-top: 0.3em; accent-color: var(--ink); }
.donate-form .checks { padding: 1.4rem 1.4rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.donate-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.donate-form .cf-turnstile { margin: 1.6rem 0 0; min-height: 65px; }
.donate-form .form-error { margin-top: 1.2rem; padding: 0.9em 1.1em; color: var(--red); background: #fff; border: 1px solid var(--red); border-radius: 4px; }
.donate-form button.form-btn { border: 0; cursor: pointer; }
.donate-form button.form-btn:disabled { opacity: 0.6; cursor: wait; }
.donate-done { max-width: 760px; padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; outline: none; }
.donate-done .done-lead { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ink); line-height: 2; }
.donate-done .bank { margin: 1.4rem 0; padding: 1.2rem 1.4rem; font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; line-height: 2; background: var(--ivory); border-left: 3px solid var(--gold); }

/* 活動記録(選挙ドットコムの RSS から build.py で書き込む一覧) */
.go2senkyo-list a { color: var(--ink); text-decoration: none; text-underline-offset: 0.3em; }
.go2senkyo-list a:hover { color: var(--gold); text-decoration: underline; }
#katsudo .sns-feed-more { margin-top: 2rem; text-align: center; }

/* ---------- 動画広告のリンク先（voice.html） ---------- */
.voice-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); max-width: 760px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.voice-photos img { display: block; width: 100%; height: auto; }
