/* コフンラボ 公式サイト */
@font-face {
  font-family: "KofunRounded";
  src: url("/assets/fonts/kofun-rounded-black.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3e7d1;
  --paper-2: #e8d8b9;
  --paper-3: #fbf6ec;
  --ink: #273827;
  --ink-2: #4b5a47;
  --rule: #b7a785;
  --rule-strong: #8f8366;
  --shu: #b13f22;
  --err: #9b2412;
  --cream-on-ink: #f3e7d1;
  --cream-on-ink-2: #d6ccb4;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: 20px;
  --max: 1180px;

  --f-head: "KofunRounded", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --f-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1280px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.movie :focus-visible, .site-footer :focus-visible, .notice :focus-visible { outline-color: var(--cream-on-ink); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 900; letter-spacing: 0.02em; }

/* 見出しは <wbr> の位置だけで折る(文節の途中で折れないように)。本文は auto-phrase が使えるブラウザで文節折り */
h1, h2, h3, .notice a, .facility-to, .tabs [role="tab"] {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
h1, h2, h3 { text-wrap: balance; }
.hero-lead, .scene-text p, .facility p, .kofun-text p, .contact-head p, .panel-lead, .done p, .download-note, .movie-note, .count-sub { line-break: strict; }
p, li, dd, summary { text-wrap: pretty; }
@supports (word-break: auto-phrase) {
  .aim-list li, .flow-list li, .field-hint, .faq-item p, .faq-item summary, .privacy-note, .faq-more,
  .hero-lead, .scene-text p, .facility p, .kofun-text p, .contact-head p, .panel-lead, .done p, .download-note, .movie-note, .count-sub { word-break: auto-phrase; }
}

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: -100px; z-index: 10;
  background: var(--ink); color: var(--cream-on-ink); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- 告知帯 ---------- */
.notice { background: var(--ink); color: var(--cream-on-ink); font-size: 13px; line-height: 1.6; letter-spacing: 0.06em; }
.notice p { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.notice a { display: flex; flex-wrap: wrap; column-gap: 0.8em; align-items: center; min-height: 44px; padding: 8px 0; text-decoration: none; }
.notice a:hover span:not(.notice-date) { text-decoration: underline; text-underline-offset: 0.22em; }
.notice-date { font-weight: 700; }

/* ---------- ヘッダー ---------- */
.site-header {
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; width: clamp(260px, 30vw, 420px); min-height: 48px; flex: none; }
.brand picture { display: block; width: 100%; }
.brand img { width: 100%; height: auto; filter: drop-shadow(0 8px 6px #60402318); }
.site-header { border-bottom: 1px solid var(--rule); }
.site-nav a[href="/#download"] { background: var(--ink); color: var(--paper-3); padding-inline: 20px; border-radius: 3px; }
@media (max-width: 639px) {
  .site-header { flex-direction: column; gap: 12px; padding-top: 12px; padding-bottom: 14px; }
  .brand { width: min(100%, 340px); }
  .site-nav { width: 100%; justify-content: center; gap: 12px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .brand { width: 280px; }
}
.site-nav { display: flex; gap: 4px; font-size: 14px; letter-spacing: 0.08em; }
.site-nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }


/* ---------- 端末の枠 ---------- */
.device {
  --dw: 240px;
  width: var(--dw);
  padding: calc(var(--dw) * 0.032);
  border-radius: calc(var(--dw) * 0.15);
  background: #1e261e;
  box-shadow: 0 30px 50px -30px rgba(30, 42, 30, 0.55);
  flex: none;
}
.device img { width: 100%; border-radius: calc(var(--dw) * 0.12); background: var(--paper-3); }

/* ---------- ヒーロー ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: var(--s5) var(--gutter) var(--s8);
  display: grid; gap: var(--s7);
}
.hero-kicker {
  font-family: var(--f-serif); font-size: 14px; letter-spacing: 0.12em; color: var(--ink-2);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); margin-bottom: var(--s5);
}
.hero-kicker::before { content: ""; width: 8px; height: 8px; background: var(--shu); align-self: center; }
.hero-os { font-family: var(--f-body); font-size: 12px; letter-spacing: 0.1em; }
.hero-title { font-size: clamp(29px, 8.1vw, 60px); line-height: 1.32; letter-spacing: 0.01em; }
.hero-title .ln { display: block; }
.hero-title .ln + .ln { margin-top: 0.12em; }
.hero-lead { margin-top: var(--s5); font-size: 16px; line-height: 1.9; max-width: 30em; }
.badges { list-style: none; margin: var(--s6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.badge { display: block; border-radius: 9px; }
.badge img { height: 48px; width: auto; }

.hero-visual { position: relative; padding-bottom: var(--s5); isolation: isolate; }
/* 芝の色と周濠の輪郭で、端末と埴輪をひとつの展示にまとめる。 */
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero-visual::before { inset: 9% -2% 5% 6%; border-radius: 48% 48% 42% 42%; background: #dce0c6; border: 1px solid #b7bd98; }
.hero-visual::after { inset: 5% 2% 1% 1%; border-radius: 48% 48% 42% 42%; border: 1px solid #acb38d; }
.device--hero { transform: rotate(3deg); box-shadow: 0 34px 45px -28px #27382770, 0 0 0 1px #fbf6ec80; }
.device--hero { --dw: min(56vw, 280px); margin-left: auto; }
.haniwa3d {
  position: absolute; left: -6px; bottom: -6px; z-index: 1; margin: 0;
  width: min(52vw, 300px);
  display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 4px;
}
.haniwa3d-stage { position: relative; flex: 1; aspect-ratio: 3 / 4; touch-action: pan-y; }
.haniwa3d-still img, .haniwa3d-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.haniwa3d-stage canvas { cursor: grab; opacity: 0; transition: opacity 0.6s ease; outline: none; }
.haniwa3d-stage canvas:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.haniwa3d-stage canvas:active { cursor: grabbing; }
.haniwa3d.is-live canvas { opacity: 1; }
.haniwa3d.is-live .haniwa3d-still { visibility: hidden; transition: visibility 0s linear 0.6s; }
.haniwa3d-cap {
  writing-mode: vertical-rl; font-family: var(--f-serif); font-size: 14px; letter-spacing: 0.18em;
  line-height: 1.7; color: var(--ink); padding-bottom: 18px; white-space: nowrap; flex: none;
}
.haniwa3d-hint { display: block; font-size: 12px; color: var(--ink-2); letter-spacing: 0.12em; }

@media (min-width: 600px) {
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; padding-right: 6vw; }
  .device--hero { --dw: 280px; }
  .haniwa3d { width: 280px; left: 4vw; }
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center; gap: var(--s6);
    padding-top: var(--s5); padding-bottom: var(--s8);
  }
  .hero-text { padding-bottom: var(--s6); }
  .device--hero { --dw: 280px; }
  .hero-visual { padding-right: 0; margin: 0; max-width: none; }
  .haniwa3d { width: 270px; left: -24px; bottom: -10px; }
}

/* ---------- 体験 ---------- */
.play { padding: 0 0 var(--s9); position: relative; border-top: 1px solid var(--rule); }
.play-head {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: flex-end; position: relative; z-index: 2;
  margin-bottom: -150px; pointer-events: none;
}
.vhead {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: clamp(26px, 7vw, 44px); line-height: 1.45; letter-spacing: 0.14em;
  text-wrap: nowrap;
}
.play-head .vhead { background: var(--paper); padding: var(--s5) var(--s4) var(--s5) var(--s3); margin-right: calc(-1 * var(--s3)); }

.scene { position: relative; }
.scene-body { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.scene-lede { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s4); }
.scene-mark { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.scene-no { font-family: var(--f-serif); font-size: 15px; color: var(--shu); line-height: 1; }
.scene-verb {
  writing-mode: vertical-rl; font-family: var(--f-head); font-weight: 900; font-size: 28px; letter-spacing: 0.16em; line-height: 1;
  border-top: 1px solid var(--rule-strong); padding-top: 12px;
}
.scene-text h3 { font-size: clamp(21px, 5.6vw, 30px); line-height: 1.5; }
.scene-text p { margin-top: var(--s4); font-size: 15px; line-height: 1.95; max-width: 27em; }
.scene-art { display: flex; justify-content: center; margin-top: var(--s6); }

/* 一 歩く: 景色を裁ち落としで敷き、文を紙の上に食い込ませる */
.scene-bleed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 46% 50%; }
.scene--walk .scene-lede {
  position: relative; background: var(--paper);
  margin: -56px calc(-1 * var(--gutter)) 0; padding: var(--s6) var(--gutter) 0;
  margin-right: 10%;
}
.device--walk { --dw: min(56vw, 260px); }

/* 二 出会う: 2 台をずらして重ねる */
.scene--meet { margin-top: var(--s10); }
.scene-art--pair { position: relative; justify-content: flex-start; padding-left: 4vw; }
.device--meet-a { --dw: min(54vw, 260px); position: relative; z-index: 1; }
.device--meet-b { --dw: min(40vw, 200px); margin-left: -10vw; margin-top: var(--s9); }

/* 三 のこる */
.scene--keep { margin-top: var(--s10); }
.scene--keep .scene-art--pair { justify-content: flex-end; padding: 0 2vw 0 0; align-items: flex-start; }
.device--keep-a { --dw: min(50vw, 240px); margin-top: var(--s8); }
.device--keep-b { --dw: min(42vw, 210px); margin-left: -6vw; }

@media (min-width: 768px) {
  .scene-lede { grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--s5); }
  .scene-verb { font-size: 36px; }
  .scene-bleed img { aspect-ratio: 1920 / 820; }
  .scene--walk .scene-lede { margin-top: -96px; margin-right: 30%; padding-top: var(--s7); }
  .play-head { margin-bottom: -210px; }
}
@media (min-width: 1024px) {
  .play-head .vhead { padding: var(--s6) var(--s5) var(--s6) var(--s4); }
  .scene-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; column-gap: var(--s7); }
  .scene-art { margin-top: 0; }
  .scene-lede { grid-template-columns: 72px minmax(0, 1fr); }
  .scene--walk .scene-lede { margin: -200px 0 0 calc(-1 * var(--gutter)); padding: var(--s7) var(--s6) var(--s5) var(--gutter); }
  .scene--walk .scene-art { margin-top: -140px; }
  .scene-bleed img { aspect-ratio: auto; height: min(50vw, 640px); }
  .device--walk { --dw: 270px; }

  .scene--meet .scene-body { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .scene--meet .scene-lede { grid-column: 2; grid-row: 1; padding-top: var(--s9); }
  .scene--meet .scene-art { grid-column: 1; grid-row: 1; }
  .scene-art--pair { padding-left: 0; }
  .device--meet-a { --dw: 280px; }
  .device--meet-b { --dw: 214px; margin-left: -64px; margin-top: 140px; }

  .scene--keep .scene-body { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .scene--keep .scene-art--pair { padding-right: 6%; }
  .device--keep-a { --dw: 260px; margin-top: 120px; }
  .device--keep-b { --dw: 224px; margin-left: -40px; }
  .scene-text h3 { font-size: 30px; }
  .scene-text p { font-size: 16px; }
}

/* ---------- 動画 ---------- */
.movie { background: var(--ink); color: var(--cream-on-ink); padding: var(--s8) 0; }
.movie-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.movie-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: var(--s5); }
.movie-title { font-size: clamp(22px, 5.6vw, 30px); }
.movie-len { font-family: var(--f-serif); font-size: 14px; letter-spacing: 0.12em; color: var(--cream-on-ink-2); }
.movie-note { flex-basis: 100%; font-size: 13px; color: var(--cream-on-ink-2); }
.movie-frame { margin: 0 calc(-1 * var(--gutter)); }
.movie-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #1b261b; }
@media (min-width: 1024px) {
  .movie { padding: var(--s9) 0; }
  .movie-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s6); align-items: start; }
  .movie-head { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 12px; margin: 0; border-right: 1px solid #4d5d4b; padding-right: var(--s5); align-self: stretch; }
  .movie-title { writing-mode: vertical-rl; font-size: 34px; letter-spacing: 0.18em; }
  .movie-len, .movie-note { writing-mode: vertical-rl; flex-basis: auto; }
  .movie-frame { margin: 0; }
}

/* ---------- 全国の古墳 ---------- */
.kofun { padding: var(--s9) 0 0; }
.kofun-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s5);
  grid-template-areas: "count vhead" "text text" "plan plan" "plates plates";
}
.kofun-vhead { grid-area: vhead; border-left: 1px solid var(--rule); padding-left: var(--s3); }
.kofun-count { grid-area: count; align-self: end; }
.count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; line-height: 1; }
.count-num { font-family: var(--f-head); font-weight: 900; font-size: clamp(68px, 21vw, 168px); letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.count-unit { font-family: var(--f-head); font-weight: 900; font-size: clamp(20px, 5.4vw, 34px); letter-spacing: 0.06em; }
.count-sub { margin-top: var(--s4); font-family: var(--f-serif); font-size: 14px; letter-spacing: 0.1em; color: var(--ink-2); }
.kofun-text { grid-area: text; margin-top: var(--s7); border-top: 1px solid var(--rule); padding-top: var(--s5); }
.kofun-text p { font-size: 16px; line-height: 2; max-width: 32em; }
.kofun-text .kofun-note { margin-top: var(--s4); font-size: 13px; line-height: 1.8; color: var(--ink-2); }

.kofun-plan { grid-area: plan; margin: var(--s8) 0 0; display: grid; justify-items: center; }
.plan { width: min(100%, 360px); height: auto; overflow: visible; }
.plan .t-base, .plan .t-step, .plate .t-base, .plate .t-step { fill: none; stroke-linejoin: round; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.plan .t-base, .plate .t-base { fill: #e3d3ad; }
.plan .t-step, .plate .t-step { stroke-width: 0.9; }
.plan .moat { fill: #d7dfcf; stroke: var(--ink); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.plan .moat-in { fill: var(--paper); stroke: var(--ink); stroke-width: 0.8; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.plan .lbl path { fill: none; stroke: var(--ink); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.plan text { font-family: var(--f-serif); font-size: 11px; fill: var(--ink); letter-spacing: 0.08em; }
.kofun-plan figcaption, .plate figcaption { font-family: var(--f-serif); font-size: 13px; letter-spacing: 0.1em; margin-top: var(--s4); }
.fig-no { margin-right: 0.8em; color: var(--ink-2); }

.plates {
  grid-area: plates; margin-top: var(--s8);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s6);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: var(--s5) 0 var(--s5);
}
.plate { margin: 0; display: grid; grid-template-rows: 1fr auto; justify-items: start; }
.plate svg { width: auto; height: 110px; max-width: 100%; align-self: end; }
.plate:nth-child(1) svg { height: 72px; }
.plate:nth-child(2) svg { height: 64px; }
.plate:nth-child(3) svg { height: 120px; }
.plate:nth-child(4) svg { height: 92px; }
.plate figcaption { margin-top: var(--s3); font-size: 13px; text-align: left; padding-top: var(--s2); border-top: 1px solid var(--rule); width: 100%; }
.kofun-bleed { margin-top: var(--s8); }
.kofun-bleed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 48% 50%; }

@media (min-width: 768px) {
  .plates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kofun-bleed img { aspect-ratio: 1920 / 820; }
}
@media (min-width: 1024px) {
  .kofun { padding-top: var(--s10); position: relative; }
  .kofun-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
    grid-template-areas: "count count vhead" "plan text vhead" "plates plates plates";
    column-gap: var(--s7);
  }
  .kofun-plan { margin-top: var(--s7); justify-items: start; }
  .kofun-text { margin-top: var(--s7); align-self: start; }
  .plan { width: 400px; }
  .plates { margin-top: var(--s9); padding: var(--s6) 0; }
  .plate:nth-child(1) svg { height: 100px; }
  .plate:nth-child(2) svg { height: 90px; }
  .plate:nth-child(3) svg { height: 168px; }
  .plate:nth-child(4) svg { height: 128px; }
  .kofun-vhead { padding-left: var(--s5); }
  .kofun-bleed { margin-top: var(--s9); }
}

/* ---------- 施設の方へ ---------- */
.facility { background: var(--paper-2); }
.facility-inner { max-width: var(--max); margin: 0 auto; padding: var(--s8) var(--gutter) var(--s8); }
.facility-to { font-family: var(--f-serif); font-size: 14px; line-height: 1.8; letter-spacing: 0.1em; padding-bottom: var(--s3); border-bottom: 1px solid var(--rule-strong); }
.facility h2 { margin-top: var(--s5); font-size: clamp(25px, 6.6vw, 40px); line-height: 1.45; }
.facility h2 + p { margin-top: var(--s5); font-size: 16px; line-height: 2; max-width: 30em; }
.facility-act { margin-top: var(--s6); }
@media (min-width: 1024px) {
  .facility-inner { padding: var(--s9) var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s8); }
  .facility-to { grid-column: 1; grid-row: 1 / span 3; writing-mode: vertical-rl; border-bottom: 0; border-right: 1px solid var(--rule-strong); padding: 0 var(--s4) 0 0; justify-self: end; font-size: 16px; height: max-content; max-height: 22em; }
  .facility h2, .facility h2 + p, .facility-act { grid-column: 2; }
  .facility h2 { margin-top: 0; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 12px 26px; font: inherit; font-weight: 700; font-size: 15px; letter-spacing: 0.1em;
  text-decoration: none; border-radius: 3px; cursor: pointer;
}
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn--line::after { content: ""; width: 22px; height: 1.5px; background: currentColor; box-shadow: none; position: relative; }
.btn--line:hover { background: var(--ink); color: var(--cream-on-ink); }
.btn--solid { border: 0; background: var(--ink); color: var(--cream-on-ink); }
.btn--solid:hover { background: #1b281b; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

/* ---------- ダウンロード ---------- */
.download { position: relative; padding-bottom: var(--s8); }
.download-bleed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.download-card {
  position: relative; margin: calc(-1 * var(--s8)) var(--gutter) 0; background: var(--paper);
  padding: var(--s6) var(--s5) var(--s6);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s4);
}
.download-card > * { grid-column: 1; }
.download-card .download-tag { grid-column: 2; grid-row: 1 / span 4; writing-mode: vertical-rl; margin: 0; padding-left: var(--s3); border-left: 1px solid var(--rule); font-size: 15px; }
.download-icon img { width: 72px; height: 72px; border-radius: 16px; }
.download-card h2 { margin-top: var(--s4); font-size: 30px; }
.download-tag { font-family: var(--f-serif); letter-spacing: 0.2em; }
.badges--download { margin-top: var(--s5); }
.download-note { margin-top: var(--s4); font-size: 13px; color: var(--ink-2); }
@media (min-width: 768px) {
  .download-bleed img { aspect-ratio: 1920 / 820; }
  .download-card { max-width: 520px; margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); margin-top: -160px; padding: var(--s7) var(--s7) var(--s6); }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--cream-on-ink); font-size: 14px; line-height: 1.8; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: var(--s7) var(--gutter) var(--s6); display: grid; gap: var(--s5); }
.footer-name { font-family: var(--f-head); font-weight: 900; font-size: 20px; letter-spacing: 0.08em; }
.footer-org { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; margin: 0; }
.footer-org dt { color: var(--cream-on-ink-2); }
.footer-org dd { margin: 0; }
.footer-org a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.footer-links { list-style: none; margin: 0; padding: var(--s4) 0 0; border-top: 1px solid #4d5d4b; display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-copy { color: var(--cream-on-ink-2); font-size: 12px; }
.footer-copy small { font-size: inherit; }
.nb { white-space: nowrap; }
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: start; column-gap: var(--s8); }
  .footer-links { grid-column: 1 / -1; }
}

/* ---------- お問い合わせ ---------- */
.contact { max-width: 880px; margin: 0 auto; padding: var(--s6) var(--gutter) var(--s9); }
.contact-head { padding-bottom: var(--s5); border-bottom: 1px solid var(--rule); }
.contact-head h1 { font-size: clamp(28px, 7.4vw, 40px); }
.contact-head p { margin-top: var(--s3); font-size: 15px; }

.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s6); border-bottom: 1px solid var(--ink); }
.tabs[hidden] { display: none; }
.tabs [role="tab"] {
  appearance: none; background: transparent; border: 0; border-bottom: 4px solid transparent; margin-bottom: -1px;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.04em; line-height: 1.5;
  min-height: 60px; padding: 10px 6px; cursor: pointer; word-break: keep-all; overflow-wrap: anywhere;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs [role="tab"]:hover { color: var(--ink); }
@media (min-width: 600px) { .tabs [role="tab"] { font-size: 15px; } }

.panel { padding-top: var(--s6); }
.panel + .panel { margin-top: var(--s8); border-top: 1px solid var(--rule); }
.has-tabs .panel + .panel { margin-top: 0; border-top: 0; }
.panel-title { font-size: 24px; line-height: 1.5; }
.has-tabs .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.panel-lead { margin-top: var(--s3); font-size: 15px; }
.has-tabs .panel-lead { margin-top: 0; }

.listing-about { margin-top: var(--s6); display: grid; gap: var(--s6); }
.about-block h3 { font-size: 18px; padding-bottom: var(--s3); border-bottom: 1px solid var(--ink); }
.aim-list, .flow-list { list-style: none; margin: 0; padding: 0; }
.aim-list li { padding: var(--s3) 0 var(--s3) 1.4em; border-bottom: 1px solid var(--rule); position: relative; font-size: 15px; line-height: 1.8; }
.aim-list li::before { content: ""; position: absolute; left: 0.2em; top: calc(var(--s3) + 0.75em); width: 0.55em; height: 1px; background: var(--ink); }
.flow-list li { display: grid; grid-template-columns: 2.2em 1fr; gap: 6px; padding: var(--s3) 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.8; }
.flow-no { font-family: var(--f-serif); font-size: 18px; line-height: 1.5; }
@media (min-width: 768px) { .listing-about { grid-template-columns: 1fr 1fr; gap: var(--s7); } }

.form-wrap { margin-top: var(--s7); }
.cform { background: var(--paper-3); border: 1px solid var(--rule); padding: var(--s6) var(--s5) var(--s5); }
.cform-title { font-size: 20px; line-height: 1.5; margin-bottom: var(--s5); }
.field { margin-top: var(--s5); }
.field label { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 15px; line-height: 1.6; }
.req, .opt { font-weight: 400; font-size: 12px; letter-spacing: 0.08em; }
.req { color: var(--err); }
.opt { color: var(--ink-2); }
.field-hint { margin-top: 2px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 8px;
  font: inherit; font-size: 16px; letter-spacing: 0.02em; color: var(--ink);
  background: #fff; border: 1px solid var(--rule-strong); border-radius: 3px;
  min-height: 50px; padding: 11px 12px; line-height: 1.6;
}
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23273827' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--err); border-width: 2px; padding: 10px 11px; }
.field-err { margin-top: 6px; color: var(--err); font-size: 14px; font-weight: 700; line-height: 1.6; }
.field-row { display: grid; gap: 0 var(--s4); }
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .cform { padding: var(--s7) var(--s7) var(--s6); }
}
.form-alert { border: 2px solid var(--err); background: #fff; padding: var(--s4); font-size: 15px; line-height: 1.8; }
.form-alert p + p, .form-alert p + ul, .form-alert ul + p { margin-top: 8px; }
.form-alert strong { color: var(--err); }
.form-alert ul { margin: 0; padding-left: 1.2em; }
.form-alert a { color: var(--ink); }
.form-alert .btn { margin-top: var(--s3); }
.cform-submit { margin-top: var(--s6); }
.cform-submit .btn { width: 100%; min-height: 56px; font-size: 16px; }
@media (min-width: 600px) { .cform-submit .btn { width: auto; min-width: 260px; } }
.privacy-note { margin-top: var(--s4); font-size: 13px; line-height: 1.8; color: var(--ink-2); }

.faq { margin-top: var(--s5); border-top: 1px solid var(--ink); }
.faq-title { font-size: 18px; padding: var(--s4) 0 var(--s2); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer; min-height: 52px; padding: 14px 40px 14px 0; position: relative;
  font-weight: 700; font-size: 15px; line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); }
.faq-item summary::after { transform: rotate(90deg); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item p { padding: 0 0 var(--s4); font-size: 15px; line-height: 1.9; }
.faq-more { margin-top: var(--s4); font-size: 14px; }

.done { padding: var(--s8) 0 var(--s6); }
.done:focus { outline: none; }
.done h2, .done h1 { font-size: clamp(26px, 6.6vw, 36px); }
.done p { margin-top: var(--s4); }
.done-id { font-family: var(--f-serif); letter-spacing: 0.08em; }
.done-small { font-size: 14px; color: var(--ink-2); }
.done .btn { margin-top: var(--s4); }

/* 管理・結果ページ */
.plain-main { max-width: 860px; margin: 0 auto; padding: var(--s7) var(--gutter); }
.plain-title { font-size: 26px; margin-bottom: var(--s5); }
.plain-list { padding-left: 1.2em; }
.adm-item { border-top: 1px solid var(--rule); padding: var(--s4) 0; }
.adm-item header { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.adm-type { font-weight: 700; }
.adm-item dl { display: grid; grid-template-columns: 11em 1fr; gap: 4px 16px; margin: 8px 0 0; font-size: 14px; }
.adm-item dd { margin: 0; overflow-wrap: anywhere; }

/* 出現(JS が動く時だけ・控えめに) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transition: opacity 0.9s ease; }
  html.js .reveal.is-in { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
