@charset "utf-8";
/* =========================================================================
   特定非営利活動法人やとみ放課後アカデミー 公式サイト
   正本: workspaces/yatomi-academy/DESIGN.md（昭和レトロ印刷ポップ）
   値はDESIGN.md §12 の :root をそのまま使う。新しい色・角丸・影を足さない。
   ========================================================================= */

:root {
  /* ---- Color ---- */
  --ink:            #1A1714;
  --ink-deep:       #141210;
  --ink-60:         #5B554C;
  --yellow:         #E8B02D;
  --yellow-flat:    #D9A32B;
  --vermilion:      #D6452A;
  --vermilion-tint: #EE7A5A;
  --vermilion-ink:  #A32F17;
  --cream:          #F2EBDA;
  --cream-dim:      #B9B0A0;
  --paper:          #F7F2E6;
  --rule:           #D8CFBB;
  --rule-dark:      rgba(242,235,218,.18);
  --marker-ink:     rgba(232,176,45,.28);
  --marker-paper:   rgba(232,176,45,.55);

  /* ---- Type ---- */
  --font-display: "Dela Gothic One", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-body:    "Zen Kaku Gothic New", system-ui, -apple-system,
                  "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --fs-h1:     clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  --fs-h2:     clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  --fs-h3:     clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-lead:   clamp(1.0625rem, 1rem + 0.55vw, 1.25rem);
  --fs-body:   clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-dense:  clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
  --fs-small:  clamp(0.8125rem, 0.8rem + 0.1vw, 0.84375rem);
  --fs-label:  clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
  --fs-chip:   clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);

  --lh-body: 1.8; --lh-heading: 1.45; --lh-component: 1;
  --ls-body: .02em; --ls-heading: 0; --ls-label: .04em;

  /* ---- Space / Shape ---- */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px;
  --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px; --s-10:128px;
  --section-y:       clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --section-y-tight: clamp(2.5rem, 2rem + 2.2vw, 4rem);
  --container: min(100% - 2.5rem, 1120px);
  --measure: 34em; --measure-dense: 32em;
  --r-sm:6px; --r-md:12px; --r-lg:20px;
  --bw-hair:1px; --bw:2px; --bw-thick:3px;
  --shadow-print:    4px 4px 0 var(--ink);
  --shadow-print-sm: 2px 2px 0 var(--ink);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2,.7,.3,1);
  --ease-in: cubic-bezier(.16,1,.3,1);
  --dur-fast: 140ms; --dur-mid: 220ms; --dur-reveal: 520ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  background: var(--ink);
  color: var(--cream);
}
img, svg, picture { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; }

/* ---------- surfaces ---------- */
[data-surface="ink"]    { background: var(--ink);         color: var(--cream); }
[data-surface="paper"]  { background: var(--paper);       color: var(--ink); }
[data-surface="yellow"] { background: var(--yellow-flat); color: var(--ink); }

/* ---------- type ---------- */
h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-feature-settings: "palt";
  text-wrap: pretty;
  word-break: auto-phrase;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.5;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  text-wrap: pretty;
}
p, li, td, th { font-feature-settings: normal; }
.lead {
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.75;
  font-feature-settings: "palt";
  text-wrap: pretty;
  word-break: auto-phrase;
}
.dense { font-size: var(--fs-dense); line-height: 1.75; }
.small { font-size: var(--fs-small); line-height: 1.7; }
.num, table td, time { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.prose { max-width: var(--measure); }
.prose-dense { max-width: var(--measure-dense); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 強調は黄マーカー1種類だけ */
[data-surface="ink"] strong {
  color: var(--cream); font-weight: 700;
  background: linear-gradient(transparent 62%, var(--marker-ink) 62%);
}
[data-surface="paper"] strong, [data-surface="yellow"] strong {
  color: var(--ink); font-weight: 700;
  background: linear-gradient(transparent 62%, var(--marker-paper) 62%);
}

/* ---------- links ---------- */
a { color: inherit; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 2px; }
[data-surface="ink"] a:hover { color: var(--yellow); }
[data-surface="paper"] a:hover, [data-surface="yellow"] a:hover { color: var(--vermilion-ink); }

.arrow-link { font-weight: 700; display: inline-flex; align-items: baseline; gap: var(--s-1); }
.arrow-link .arw { transition: transform var(--dur-fast) var(--ease); }
.arrow-link:hover .arw { transform: translateX(4px); }

/* ---------- focus ---------- */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: var(--r-sm); }
[data-surface="paper"] :focus-visible,
[data-surface="yellow"] :focus-visible,
.cta-bar :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 6px rgba(232,176,45,.5); }

/* ---------- layout ---------- */
.container { width: var(--container); margin-inline: auto; }
.section { position: relative; overflow: hidden; padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section__head { margin-bottom: var(--s-6); }

/* ---------- texture ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}
@media (max-width: 767px) { body::after { opacity: .035; } }

.sun {
  position: absolute; aspect-ratio: 1; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, var(--yellow-flat) 0 44%, transparent 45%),
    radial-gradient(var(--yellow-flat) 1.5px, transparent 1.6px) 0 0 / 5px 5px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 44%, rgba(0,0,0,.85) 62%, transparent 84%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0 44%, rgba(0,0,0,.85) 62%, transparent 84%);
  filter: url(#press);
}

.h-misprint { color: var(--cream); text-shadow: 2px 2px 0 var(--vermilion); }
[data-surface="paper"] .h-misprint,
[data-surface="yellow"] .h-misprint { color: var(--ink); text-shadow: 2px 2px 0 var(--vermilion); }
@media (max-width: 479px) { .h-misprint { text-shadow: 1px 1px 0 var(--vermilion); } }

.rule-print { height: 3px; background: var(--ink); filter: url(#press); border: 0; margin: 0; }
[data-surface="ink"] .rule-print { background: var(--yellow-flat); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 16px 28px; min-height: 52px;
  border: 2px solid transparent; border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-label);
  letter-spacing: var(--ls-label); line-height: var(--lh-component);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
[data-surface="ink"] .btn--primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
[data-surface="ink"] .btn--ghost   { background: transparent;   border-color: var(--yellow); color: var(--yellow); }
[data-surface="paper"] .btn--primary, [data-surface="yellow"] .btn--primary {
  background: var(--ink); border-color: var(--ink); color: var(--yellow); box-shadow: var(--shadow-print);
}
[data-surface="paper"] .btn--ghost, [data-surface="yellow"] .btn--ghost {
  background: transparent; border-color: var(--ink); color: var(--ink);
}
[data-surface="ink"] .btn:hover { transform: translate(0,-2px); }
[data-surface="paper"] .btn:hover, [data-surface="yellow"] .btn:hover { transform: translate(2px,2px); }
[data-surface="paper"] .btn--primary:hover, [data-surface="yellow"] .btn--primary:hover { box-shadow: var(--shadow-print-sm); }
.btn:active { transform: translate(3px,3px); box-shadow: none; }

/* ---------- badge（種目表・状態欄） ---------- */
.badge {
  display: inline-block; background: transparent; border: 1.5px solid currentColor;
  border-radius: var(--r-md); padding: 6px 12px;
  font-size: var(--fs-label); font-weight: 700; line-height: var(--lh-component);
}
[data-surface="ink"] .badge { color: var(--vermilion-tint); }
[data-surface="paper"] .badge, [data-surface="yellow"] .badge { color: var(--vermilion-ink); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--yellow);
  padding: 12px 20px; border: 2px solid var(--yellow); border-radius: var(--r-md);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: var(--s-3); top: var(--s-3); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); border-bottom: 3px solid var(--yellow-flat);
}
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--vermilion);
}
.header__inner {
  display: flex; align-items: center; gap: var(--s-5);
  height: 60px;
}
@media (min-width: 1024px) { .header__inner { height: 76px; } }

.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; margin-right: auto; }
.brand__mark {
  flex: none; font-family: var(--font-display); font-weight: 400;
  font-size: 24px; line-height: 1; color: var(--cream); letter-spacing: .02em;
}
@media (min-width: 1024px) { .brand__mark { font-size: 28px; } }
.brand__name { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--cream); letter-spacing: .02em; }
@media (max-width: 400px) { .brand__name { font-size: 13.5px; } }

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: block; }
  .nav__list { display: flex; align-items: center; gap: var(--s-5); }
  .nav__link {
    display: inline-block; padding: 6px 0;
    font-weight: 700; font-size: 16px; letter-spacing: .04em;
    color: var(--cream); text-decoration: none;
    border-bottom: 3px solid transparent;
  }
  .nav__link:hover, .nav__link:focus-visible { color: var(--yellow); border-bottom-color: var(--yellow); }
  .nav__link[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }
}
.header__cta { display: none; }
@media (min-width: 1024px) {
  .header__cta { display: inline-flex; padding: 12px 20px; min-height: 44px; flex: none; }
}

.hamburger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; flex: none; cursor: pointer; padding: 0 10px;
}
.hamburger span[aria-hidden="true"] { display: block; height: 3px; background: var(--cream); border-radius: 2px; }
@media (min-width: 1024px) { .hamburger { display: none; } }

/* ---------- SP menu ---------- */
.spmenu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink-deep); color: var(--cream);
  overflow-y: auto; padding: var(--s-4) 0 var(--s-8);
}
.spmenu[hidden] { display: none; }
.spmenu__top { display: flex; align-items: center; justify-content: flex-end; height: 44px; }
.spmenu__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.spmenu__close svg { width: 22px; height: 22px; }
.spmenu__list { margin-top: var(--s-4); border-top: 1px solid var(--rule-dark); }
.spmenu__list li { border-bottom: 1px solid var(--rule-dark); }
.spmenu__link {
  display: flex; align-items: center; min-height: 56px;
  font-size: 22px; font-weight: 700; color: var(--cream); text-decoration: none;
  letter-spacing: .02em; line-height: 1.4; padding: var(--s-3) 0;
}
.spmenu__link:hover { color: var(--yellow); }
.spmenu__foot { margin-top: var(--s-6); }
.spmenu__foot .btn { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0 38% 0 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 32%; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(26,23,20,0) 0%, rgba(26,23,20,0) 46%, rgba(26,23,20,.88) 60%, var(--ink) 70%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 34em; }
.hero__note { margin-top: var(--s-4); font-size: var(--fs-dense); line-height: 1.8; color: var(--cream-dim); max-width: 30em; }
.hero .lead { margin-top: var(--s-4); color: var(--cream); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

@media (min-width: 1024px) {
  .hero { min-height: clamp(560px, 62svh, 700px); display: flex; align-items: center; }
  .hero__inner { display: grid; grid-template-columns: 58% 42%; width: var(--container); margin-inline: auto; padding-block: var(--s-8); }
  .hero__copy { grid-column: 2; }
}
@media (max-width: 1023px) {
  .hero__media { position: static; }
  .hero__media img { height: auto; aspect-ratio: 16 / 9; }
  .hero__scrim { display: none; }
  .hero__inner { padding: var(--s-6) 0 var(--s-7); }
}
@media (max-width: 767px) {
  .hero__media img { aspect-ratio: 4 / 3; }
  .hero__cta { flex-direction: column; gap: var(--s-3); }
  .hero__cta .btn { width: 100%; min-height: 56px; }
}

/* ---------- S2 入口カード ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--cream); border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-print);
  padding: clamp(20px, 2vw, 28px);
  padding-top: calc(clamp(20px, 2vw, 28px) + 8px);
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.card__band { position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--card-accent, var(--ink)); }
.card h3 { font-size: 22px; color: var(--ink); }
.card__body { margin-top: var(--s-3); font-size: var(--fs-dense); line-height: 1.75; color: var(--ink); }
.card__link { margin-top: auto; padding-top: var(--s-5); font-weight: 700; color: var(--ink); }
.card__link a { text-decoration: underline; text-underline-offset: .22em; }
.card__link a::after { content: ""; position: absolute; inset: 0; }
.card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }

@media (min-width: 768px) and (max-width: 1023px) {
  .card { padding-top: clamp(20px, 2vw, 28px); padding-left: calc(48px + clamp(20px, 2vw, 28px)); }
  .card__band { right: auto; bottom: 0; width: 48px; height: auto; }
}

/* ---------- S3 制度背景 ---------- */
.s3__grid { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .s3__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; } }
.s3__body { position: relative; z-index: 1; max-width: var(--measure); }
/* 黄丸は「右下に半分見切れる」。出典・本文の帯には重ねない（DESIGN §4-1 の絶対線）ため、
   見え幅を自身の直径から逆算し、最終行より下にだけ出す */
.s3 .sun { --sun-d: clamp(180px, 22vw, 320px); right: -6%; width: var(--sun-d); bottom: calc(var(--sun-d) * -0.68); }
@media (min-width: 768px) and (max-width: 1023px) { .s3 .sun { --sun-d: 220px; } }

.source {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid var(--rule-dark);
  font-size: var(--fs-small); line-height: 1.7;
  color: var(--cream-dim); max-width: 38em;
}
.source a { color: var(--cream-dim); text-decoration: underline; text-underline-offset: .2em; }
.source a:hover { color: var(--yellow); }

/* ---------- S4 種目 ---------- */
.subjects { margin-top: var(--s-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.subject-chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display); font-size: var(--fs-chip); line-height: var(--lh-component);
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 12px 18px; box-shadow: var(--shadow-print-sm);
}
.subject-chip .icon { width: 24px; height: 24px; flex: none; }

.subjects table { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; }
.subjects th, .subjects td { text-align: left; padding: 14px 16px; font-size: var(--fs-dense); vertical-align: top; }
.subjects thead th { background: var(--yellow-flat); color: var(--ink); font-weight: 700; }
.subjects tbody tr + tr td { border-top: 1px solid var(--rule); }
@media (max-width: 767px) {
  .subjects table, .subjects thead, .subjects tbody, .subjects tr, .subjects td { display: block; width: 100%; }
  .subjects thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .subjects tbody tr { border-bottom: 1px solid var(--rule); padding: var(--s-3) 0; }
  .subjects tbody tr + tr td { border-top: 0; }
  .subjects td::before { content: attr(data-label) "："; font-weight: 700; }
}

/* ---------- S5 引用 ---------- */
.quote { position: relative; margin-top: var(--s-5); }
.quote__mark {
  position: absolute; left: -.1em; top: -.35em; z-index: 0;
  font-family: var(--font-display); font-size: clamp(80px, 10vw, 140px);
  line-height: 1; color: var(--yellow); opacity: .22; pointer-events: none;
}
.quote__body {
  position: relative; z-index: 1;
  font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.25rem);
  line-height: 1.95; color: var(--cream); max-width: 30em;
}
.quote__link { margin-top: var(--s-5); }
.quote__link a { color: var(--yellow); }

/* ---------- S6 入会（黄面） ---------- */
.s6 { border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.s6__links { margin-top: var(--s-5); display: grid; gap: var(--s-3); justify-items: start; }
.s6__links a { font-size: var(--fs-dense); font-weight: 700; }
.s6 .btn { margin-top: var(--s-6); }
@media (max-width: 767px) { .s6 .btn { width: 100%; } }

/* ---------- S7 力を貸してください ---------- */
/* 〜1023pxでは本文が全幅になり見出し・本文と重なるので出さない（DESIGN §9-1 の375=非表示に合わせる） */
.s7 .sun { display: none; }
@media (min-width: 1024px) { .s7 .sun { display: block; right: 4%; top: -10%; width: clamp(140px, 16vw, 240px); } }
.s7__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); position: relative; z-index: 1; }
.fish {
  width: 44px; height: 28px; flex: none; color: var(--yellow-flat);
  animation: fish-float 4.5s ease-in-out infinite;
}
@keyframes fish-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 767px) { .s7 .fish { display: none; } .s7__cta .btn { width: 100%; } }

/* ---------- S8 賛助 ---------- */
.s8__grid { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .s8__grid { grid-template-columns: 1fr 380px; gap: var(--s-8); align-items: start; } }
.s8__card { border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 24px; }
.s8__card p { font-size: var(--fs-dense); line-height: 1.75; }
.s8__card > * + * { margin-top: var(--s-4); }
.s8__card .btn { display: flex; }
.s8__card .arrow-link { display: inline-flex; font-size: var(--fs-dense); }
@media (max-width: 767px) { .s8__card .btn { width: 100%; } }

/* ---------- S9 お知らせ ---------- */
.s9 { border-top: 3px solid var(--ink); }
.news { margin-top: var(--s-5); border-top: 1px solid var(--rule); }
.news li { border-bottom: 1px solid var(--rule); }
.news a, .news .news__row {
  display: flex; gap: var(--s-4); align-items: baseline;
  min-height: 56px; padding: 16px 0; text-decoration: none;
}
.news time { flex: none; font-size: 13.5px; color: var(--ink-60); }
.news .news__title { font-weight: 700; color: var(--ink); }
.news a:hover .news__title { text-decoration: underline; color: var(--vermilion-ink); }
@media (max-width: 767px) {
  .news a, .news .news__row { flex-direction: column; gap: var(--s-1); }
}

/* ---------- S10 団体概要ミニ ---------- */
.s10__grid { display: grid; gap: var(--s-4); }
@media (min-width: 1024px) {
  .s10__grid { grid-template-columns: 1fr auto; align-items: end; gap: var(--s-8); }
}
.s10 p { font-size: var(--fs-dense); line-height: 1.8; max-width: var(--measure); }

/* ---------- footer ---------- */
.footer { background: var(--ink-deep); color: var(--cream); border-top: 3px solid var(--yellow-flat); padding-block: var(--section-y-tight); }
.footer__lead { margin-top: var(--s-4); font-size: var(--fs-dense); line-height: 1.8; max-width: var(--measure); }
.footer__note { margin-top: var(--s-4); font-size: 16px; line-height: 1.8; color: var(--cream); max-width: var(--measure); }
.footer__nav { margin-top: var(--s-7); display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 480px) { .footer__nav { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__nav { grid-template-columns: repeat(3, 1fr); } }
.footer__nav a { font-size: var(--fs-dense); font-weight: 700; }
.footer__support { margin-top: var(--s-6); }
.footer__support a { font-weight: 700; }
.footer__copy { margin-top: var(--s-6); font-size: 13.5px; color: var(--cream-dim); }
@media (max-width: 767px) { .footer { padding-bottom: calc(var(--s-7) + 76px); } }

/* ---------- SP 固定CTAバー ---------- */
.cta-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 3px solid var(--ink);
  transform: translateY(100%); transition: transform var(--dur-mid) var(--ease);
}
.cta-bar.is-shown { transform: translateY(0); }
.cta-bar a {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 8px 10px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700; line-height: var(--lh-component);
  letter-spacing: .04em; text-decoration: none; text-align: center;
}
.cta-bar__main { background: var(--ink); color: var(--yellow); border: 2px solid var(--ink); }
.cta-bar__sub { background: var(--paper); color: var(--ink); border: 2px solid var(--yellow); box-shadow: 0 0 0 1px var(--ink); }
@media (min-width: 768px) { .cta-bar { display: none; } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].is-revealed {
  opacity: 1; transform: none;
  transition: opacity var(--dur-reveal) var(--ease-in), transform var(--dur-reveal) var(--ease-in);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ---------- 404 ---------- */
.err { min-height: 70svh; display: flex; align-items: center; text-align: left; }
.err__inner { position: relative; padding-block: var(--section-y); }
.err__fish { width: min(420px, 72vw); height: auto; color: var(--vermilion); position: relative; z-index: 1; }
.err .sun { left: 6%; top: 4%; width: min(300px, 52vw); }
.err h1 { margin-top: var(--s-6); }
.err__link { margin-top: var(--s-6); }
.err__link a { color: var(--yellow); font-weight: 700; }

/* =========================================================================
   下層ページ共通部品（正本: DESIGN.md「下層ページ追補」）
   新しい色・角丸・影・書体は足していない。トークンのみで組む。
   ========================================================================= */

/* ---------- ページ先頭の見出し帯 .page-head（data-surface="ink"） ---------- */
.page-head { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 2rem + 2.2vw, 4rem); }
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { max-width: 22em; }
.page-head__lead { margin-top: var(--s-5); color: var(--cream); max-width: var(--measure); }
.page-head .rule-print { margin-top: clamp(2.5rem, 2rem + 2.2vw, 4rem); }
/* 網点の黄丸（signature）は見出し帯にだけ置く。本文の幅と重なる〜1023pxでは出さない */
.page-head .sun { display: none; }
@media (min-width: 1024px) {
  .page-head .sun { display: block; right: -4%; top: -18%; width: clamp(180px, 20vw, 300px); }
}

/* ---------- 読み物レイアウト .article（data-surface="paper"） ---------- */
.article { padding-block: var(--section-y); }
.article__body { max-width: var(--measure); }
.article--dense .article__body {
  max-width: var(--measure-dense);
  font-size: var(--fs-dense); line-height: 1.75;
}
.article__section + .article__section { margin-top: var(--section-y-tight); }
.article__section > * + * { margin-top: var(--s-4); }
.article__section > h2 + * { margin-top: var(--s-5); }
.article__section > h3 + * { margin-top: var(--s-3); }
.article__next { margin-top: var(--s-6); }
.article__meta { margin-top: var(--s-7); text-align: right; font-size: var(--fs-small); color: var(--ink-60); }
.signature { margin-top: var(--s-6); text-align: right; font-weight: 700; }

/* 出典ブロックの明るい面バージョン（DESIGN §6-3 は ink 面ぶんしか定義していない） */
[data-surface="paper"] .source,
[data-surface="yellow"] .source { color: var(--ink-60); border-top-color: var(--rule); }
[data-surface="paper"] .source a,
[data-surface="yellow"] .source a { color: var(--ink-60); }
[data-surface="paper"] .source a:hover,
[data-surface="yellow"] .source a:hover { color: var(--vermilion-ink); }

/* ---------- 箇条書き .list ---------- */
.list { padding-left: 1.4em; list-style: disc; }
.list > li + li { margin-top: var(--s-2); }
.list li::marker { color: var(--vermilion-ink); }
[data-surface="ink"] .list li::marker { color: var(--vermilion-tint); }

/* ---------- 見出し＋説明の縦リスト .item-list ---------- */
.item-list { margin-top: var(--s-5); border-top: 1px solid var(--rule); }
.item-list > li { padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.item-list > li > * + * { margin-top: var(--s-3); }
.item-list p { font-size: var(--fs-dense); line-height: 1.8; }
[data-surface="ink"] .item-list { border-top-color: var(--rule-dark); }
[data-surface="ink"] .item-list > li { border-bottom-color: var(--rule-dark); }

/* ---------- 定義リスト表 .spec-table ---------- */
.spec-table {
  width: 100%; margin-top: var(--s-5);
  border-collapse: separate; border-spacing: 0;
  border: 2px solid var(--ink); border-radius: var(--r-sm); overflow: hidden;
  background: var(--paper);
}
.spec-table th, .spec-table td {
  text-align: left; padding: 14px 16px;
  font-size: var(--fs-dense); line-height: 1.75; vertical-align: top;
}
.spec-table thead th { background: var(--yellow-flat); color: var(--ink); font-weight: 700; }
.spec-table tbody th {
  width: 11em; background: var(--cream); color: var(--ink); font-weight: 700;
  border-right: 1px solid var(--rule);
}
.spec-table tbody tr + tr th, .spec-table tbody tr + tr td { border-top: 1px solid var(--rule); }
@media (max-width: 767px) {
  .spec-table, .spec-table thead, .spec-table tbody,
  .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec-table tr { padding: var(--s-3) var(--s-4); }
  .spec-table tr + tr { border-top: 1px solid var(--rule); }
  .spec-table th, .spec-table td { padding: 0; border: 0; }
  .spec-table tbody th {
    width: auto; background: transparent; border-right: 0;
    font-size: var(--fs-small); color: var(--ink-60);
  }
  .spec-table tbody tr + tr th, .spec-table tbody tr + tr td { border-top: 0; }
  .spec-table th + td, .spec-table td + td { margin-top: var(--s-1); }
  .spec-table td[data-label]::before { content: attr(data-label) "："; font-weight: 700; }
}

/* ---------- 費用表 .fee-table ---------- */
.fee-table {
  width: 100%; margin-top: var(--s-5);
  border-collapse: separate; border-spacing: 0;
  border: 2px solid var(--ink); border-radius: var(--r-sm); overflow: hidden;
  background: var(--paper);
}
.fee-table th, .fee-table td {
  text-align: left; padding: 14px 16px;
  font-size: var(--fs-dense); line-height: 1.75; vertical-align: top;
}
.fee-table thead th { background: var(--yellow-flat); color: var(--ink); font-weight: 700; }
.fee-table tbody th { font-weight: 700; }
.fee-table tbody tr + tr th, .fee-table tbody tr + tr td { border-top: 1px solid var(--rule); }
.fee-table__amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .fee-table, .fee-table thead, .fee-table tbody,
  .fee-table tr, .fee-table th, .fee-table td { display: block; width: 100%; }
  .fee-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fee-table tr { padding: var(--s-3) var(--s-4); }
  .fee-table tr + tr { border-top: 1px solid var(--rule); }
  .fee-table th, .fee-table td { padding: 0; border: 0; }
  .fee-table tbody tr + tr th, .fee-table tbody tr + tr td { border-top: 0; }
  .fee-table th + td, .fee-table td + td { margin-top: var(--s-1); }
  .fee-table td[data-label]::before { content: attr(data-label) "："; font-weight: 700; }
  .fee-table__amount { text-align: left; }
}

/* ---------- タイムライン .timeline（0件ならJSで section.remove()） ---------- */
.timeline { margin-top: var(--s-5); padding-left: var(--s-5); border-left: 2px solid var(--rule); }
.timeline__item { position: relative; padding-left: var(--s-5); padding-bottom: var(--s-5); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(var(--s-5) * -1 - 7px); top: 7px;
  width: 12px; height: 12px; border-radius: var(--r-sm); background: var(--vermilion-ink);
}
.timeline time { display: block; font-weight: 700; font-size: var(--fs-small); color: var(--ink-60); }
.timeline__text { margin-top: var(--s-1); font-size: var(--fs-dense); line-height: 1.75; }
[data-surface="ink"] .timeline { border-left-color: var(--rule-dark); }
[data-surface="ink"] .timeline__item::before { background: var(--vermilion-tint); }
[data-surface="ink"] .timeline time { color: var(--cream-dim); }

/* ---------- FAQ .faq（details/summary・開閉は＋/−） ---------- */
.faq { margin-top: var(--s-5); border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding: var(--s-4) 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-body); line-height: 1.6;
  list-style: none;
}
.faq__q::marker { content: ""; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 24px; height: 24px; margin-top: 2px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 3px; background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding-bottom: var(--s-5); font-size: var(--fs-dense); line-height: 1.8; max-width: var(--measure-dense); }
.faq__a > * + * { margin-top: var(--s-3); }
.faq__item[open] .faq__a { animation: faq-open var(--dur-mid) var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
[data-surface="ink"] .faq { border-top-color: var(--rule-dark); }
[data-surface="ink"] .faq__item { border-bottom-color: var(--rule-dark); }

/* ---------- フォーム部品 .form ---------- */
.form { max-width: var(--measure-dense); margin-top: var(--s-5); }
.form__row + .form__row { margin-top: var(--s-5); }
.form__label { display: block; font-weight: 700; font-size: var(--fs-dense); line-height: 1.6; }
.form__req {
  display: inline-block; margin-left: var(--s-2); padding: 2px 8px;
  border: 1.5px solid currentColor; border-radius: var(--r-md);
  font-size: var(--fs-small); font-weight: 700; line-height: 1.4;
  color: var(--vermilion-ink);
}
[data-surface="ink"] .form__req { color: var(--vermilion-tint); }
.form__hint { margin-top: var(--s-1); font-size: var(--fs-small); line-height: 1.7; color: var(--ink-60); }
[data-surface="ink"] .form__hint { color: var(--cream-dim); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form select, .form textarea {
  display: block; width: 100%; margin-top: var(--s-2);
  padding: 14px 16px; min-height: 52px;
  font-family: var(--font-body); font-size: var(--fs-dense); line-height: 1.6; letter-spacing: var(--ls-body);
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r-sm);
}
.form textarea { min-height: 168px; resize: vertical; }
.form select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%231A1714' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form ::placeholder { color: var(--ink-60); opacity: 1; }
.form fieldset { margin: 0; padding: var(--s-4); border: 2px solid var(--ink); border-radius: var(--r-md); }
.form legend { padding-inline: var(--s-2); font-weight: 700; font-size: var(--fs-dense); }
.form__choice { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; font-size: var(--fs-dense); }
.form__choice input { flex: none; width: 22px; height: 22px; accent-color: var(--ink); }
.form__error {
  display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-2);
  font-size: var(--fs-small); font-weight: 700; line-height: 1.6; color: var(--vermilion-ink);
}
.form__error svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
[data-surface="ink"] .form__error { color: var(--vermilion-tint); }
.form [aria-invalid="true"] { border-color: var(--vermilion-ink); border-width: 3px; }
.form__submit { margin-top: var(--s-6); }
@media (max-width: 767px) { .form__submit .btn { width: 100%; min-height: 56px; } }
/* honeypot（人には見せない） */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- ページ末尾CTA帯 .page-cta（data-surface="ink"） ---------- */
.page-cta { padding-block: var(--section-y-tight); }
.page-cta__body { max-width: var(--measure); }
.page-cta__body > * + * { margin-top: var(--s-4); }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 767px) {
  .page-cta__actions { flex-direction: column; gap: var(--s-3); }
  .page-cta__actions .btn { width: 100%; min-height: 56px; }
}

/* ---------- print ---------- */
@media print {
  body::after { display: none; }
  [data-surface="ink"], [data-surface="yellow"] { background: #fff !important; color: #000 !important; }
  .sun, .cta-bar, .header, .spmenu { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cta-bar { transition: none !important; }
}

/* 設立の想い（トップS5）の出典表記 */
.quote__cite { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--cream-dim); letter-spacing: var(--ls-label); }
