/* =========================================================
   汐風建工（架空）制作サンプル
   創業五十年を一冊の冊子のように読ませる構成
   色：藍・墨・生成り・木・朱
   ========================================================= */
:root {
  --ai: #1f3550;        /* 藍 */
  --ai-deep: #14243a;
  --sumi: #1a1f26;      /* 墨 */
  --kinari: #f3efe6;    /* 生成り */
  --paper: #fbf9f4;
  --ki: #a8743a;        /* 木 */
  --ki-light: #d2aa76;
  --shu: #b9472b;       /* 朱：行動ボタン */
  --shu-dark: #973519;
  --umi: #3f7f8c;
  --text: #2a2f36;
  --text-2: #5a616b;
  --text-3: #8a9099;
  --line: #ddd6c8;
  --mincho: "Shippori Mincho B1", "Shippori Mincho", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--kinari); line-height: 1.95; letter-spacing: .04em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
figure { margin: 0; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.kari { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 700; color: #8a5a00; background: #fff4d6; border: 1px dashed #d9b45c; border-radius: 5px; padding: 0 7px; line-height: 1.8; vertical-align: middle; letter-spacing: .04em; }
.img-note { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: #fff; background: rgba(0,0,0,.45); border-radius: 4px; padding: 1px 8px; pointer-events: none; z-index: 3; }

/* 紙の質感 */
.paper-tex { background-color: var(--paper); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .42  0 0 0 0 .3  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- 見本のお知らせ ---------- */
.notice { position: relative; z-index: 60; background: #000; color: #e9e3d6; font-size: 12.5px; text-align: center; padding: 6px 16px; }
.notice b { color: #fff; }

/* ---------- ヘッダー ---------- */
.header { position: fixed; left: 0; right: 0; top: 0; z-index: 50; transition: background .4s, box-shadow .4s, top .3s; }
.has-notice .header { top: 32px; }
.header.is-solid { background: rgba(251,249,244,.94); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.06); top: 0; }
.header__in { display: flex; align-items: center; gap: 20px; height: 72px; width: min(1240px, 100% - 40px); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; transition: color .4s; }
.header.is-solid .brand { color: var(--sumi); }
.brand__mark { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-family: var(--mincho); font-weight: 800; font-size: 21px; }
.brand__name { font-family: var(--mincho); font-weight: 800; font-size: 20px; letter-spacing: .18em; line-height: 1.2; }
.brand__name small { display: block; font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: .2em; opacity: .75; }
.header__tel { margin-left: auto; color: #fff; text-decoration: none; font-family: var(--mincho); font-weight: 700; font-size: 18px; letter-spacing: .08em; transition: color .4s; }
.header.is-solid .header__tel { color: var(--ai); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 2px; padding: 15px 30px; font-weight: 700; text-decoration: none; letter-spacing: .14em; white-space: nowrap; transition: background .25s, transform .25s, color .25s; }
.btn--shu { background: var(--shu); color: #fff; }
.btn--shu:hover { background: var(--shu-dark); transform: translateY(-2px); }
.btn--line { border: 1px solid currentColor; background: transparent; }
.btn--sm { padding: 10px 20px; font-size: 13.5px; }
.toc-btn { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; border-radius: 50%; font-family: var(--mincho); font-weight: 700; font-size: 13px; transition: .4s; }
.header.is-solid .toc-btn { color: var(--sumi); border-color: var(--line); }

/* 目次のひらく画面 */
.toc { position: fixed; inset: 0; z-index: 80; background: var(--ai-deep); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .4s; }
.toc.is-open { opacity: 1; pointer-events: auto; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toc a { text-decoration: none; display: grid; grid-template-columns: 4.5em 1fr; gap: 16px; align-items: baseline; font-family: var(--mincho); font-size: clamp(18px, 2.4vw, 26px); letter-spacing: .14em; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.toc a span { color: var(--ki-light); font-size: .7em; letter-spacing: .3em; }
.toc a:hover { color: var(--ki-light); }
.toc__close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 22px; }

/* 右端の章しるし */
.chapters { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 6px; }
.chapters a { width: 30px; height: 30px; display: grid; place-items: center; text-decoration: none; font-family: var(--mincho); font-weight: 700; font-size: 12px; color: var(--text-3); border-radius: 50%; background: rgba(251,249,244,.75); backdrop-filter: blur(4px); transition: .3s; }
.chapters a.is-active { background: var(--ai); color: #fff; transform: scale(1.12); }
.chapters.on-dark a { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
.chapters.on-dark a.is-active { background: #fff; color: var(--ai); }

/* ---------- 表紙（50） ---------- */
.cover { position: relative; min-height: 100svh; background: var(--ai-deep); color: #fff; overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; padding: 120px max(24px, calc((100vw - 1240px) / 2)) 80px; gap: 40px; }
.cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 60%, rgba(63,127,140,.35), transparent 60%); }
.cover__fifty { position: relative; font-family: var(--mincho); font-weight: 800; font-size: clamp(220px, 34vw, 520px); line-height: .82; letter-spacing: -.04em; margin: 0; background-image: url("images/hero.jpg"); background-size: cover; background-position: 60% 55%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); animation: fiftyIn 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fiftyIn { from { opacity: 0; transform: translateY(30px) scale(.97); letter-spacing: .02em; } }
.cover__years { position: relative; display: flex; align-items: center; gap: 14px; font-family: var(--mincho); letter-spacing: .3em; color: var(--ki-light); font-size: 14px; margin-top: 18px; }
.cover__years::before, .cover__years::after { content: ""; height: 1px; width: 40px; background: currentColor; opacity: .6; }
.cover__right { position: relative; display: flex; gap: 40px; align-items: flex-start; justify-content: flex-end; }
.cover__copy { writing-mode: vertical-rl; font-family: var(--mincho); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: .28em; line-height: 1.9; margin: 0; }
.cover__copy span { display: block; animation: rise 1.2s both; }
.cover__copy span:nth-child(2) { padding-top: 3em; animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(-16px); } }
.cover__lead { writing-mode: vertical-rl; font-size: 14px; letter-spacing: .2em; line-height: 2.2; color: #cfd8e2; margin: 0; height: fit-content; animation: rise 1.2s 1s both; }
.cover__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 11px; letter-spacing: .4em; color: #cfd8e2; }
.cover__scroll::after { content: ""; display: block; width: 1px; height: 40px; margin: 8px auto 0; background: linear-gradient(#cfd8e2, transparent); animation: drop 2s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 章の共通 ---------- */
.chapter { position: relative; padding: 140px 0; }
.ch-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; margin-bottom: 64px; }
.ch-no { font-family: var(--mincho); font-weight: 800; color: var(--ki); font-size: 15px; letter-spacing: .4em; writing-mode: vertical-rl; border-left: 1px solid var(--ki); padding-left: 10px; height: fit-content; }
.ch-title { font-family: var(--mincho); font-weight: 800; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.45; letter-spacing: .12em; margin: 0; }
.ch-sub { color: var(--text-2); margin: 14px 0 0; max-width: 640px; }
.dark { background: var(--sumi); color: #e9e6df; }
.dark .ch-sub { color: #b9bdc4; }
.ai { background: var(--ai); color: #eef2f7; }
.ai .ch-sub { color: #c6d1de; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 序章（手紙） ---------- */
.prologue { padding: 160px 0 140px; }
.letter { max-width: 760px; margin: 0 auto; text-align: center; }
.letter__mark { font-family: var(--mincho); color: var(--ki); letter-spacing: .5em; font-size: 13px; }
.letter__lead { font-family: var(--mincho); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.9; letter-spacing: .14em; margin: 28px 0 40px; }
.letter p { font-family: var(--mincho); font-size: 17px; line-height: 2.4; color: var(--text); margin: 0 0 1.4em; text-align: left; }
.letter__sign { margin-top: 36px; text-align: right; font-family: var(--mincho); font-size: 15px; color: var(--text-2); }
.letter__sign b { font-size: 22px; color: var(--text); letter-spacing: .2em; margin-left: 10px; }

/* ---------- 第一章：はじまり＋年表 ---------- */
.origin { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.origin__photo { position: relative; }
.origin__photo img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.origin__photo figcaption { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }
.origin__text p { margin: 0 0 1.3em; font-size: 16px; }
.big-quote { font-family: var(--mincho); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.8; letter-spacing: .1em; color: var(--ai); border-left: 3px solid var(--ki); padding-left: 22px; margin: 0 0 28px; }
.timeline { margin-top: 96px; }
.timeline__track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; }
.tl { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; position: relative; padding: 34px 28px 10px 0; border-top: 2px solid var(--line); }
.tl::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--kinari); border: 3px solid var(--ki); }
.tl:last-child::before { background: var(--shu); border-color: var(--shu); }
.tl b { font-family: var(--mincho); font-weight: 800; font-size: 40px; color: var(--ai); display: block; line-height: 1.1; letter-spacing: .04em; }
.tl small { display: block; color: var(--ki); font-size: 12px; letter-spacing: .2em; margin-bottom: 8px; }
.tl p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.timeline__hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ---------- 第二章：写真集（横に流れる） ---------- */
.album { position: relative; }
.album__track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(24px, calc((100vw - var(--max)) / 2)) 24px; scrollbar-width: none; }
.album__track::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(560px, 82vw); scroll-snap-align: center; margin: 0; }
.shot__img { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #222; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.shot:hover .shot__img img { transform: scale(1.04); }
.shot figcaption { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; padding: 16px 2px 0; }
.shot__no { font-family: var(--mincho); font-weight: 800; color: var(--ki-light); font-size: 26px; }
.shot__title { font-family: var(--mincho); font-weight: 700; font-size: 19px; letter-spacing: .08em; color: #fff; }
.shot__meta { grid-column: 2; font-size: 13px; color: #9ea6b0; margin-top: -10px; }
.album__nav { display: flex; gap: 10px; justify-content: flex-end; width: min(var(--max), 100% - 48px); margin: 22px auto 0; align-items: center; }
.album__nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 18px; transition: .3s; }
.album__nav button:hover { background: #fff; color: var(--sumi); }
.album__count { margin-right: auto; font-family: var(--mincho); color: #9ea6b0; letter-spacing: .2em; font-size: 14px; }
.album__count b { color: #fff; font-size: 22px; }

/* ---------- 第三章：まちの地図 ---------- */
.town { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.townmap { position: relative; background: #e8eef1; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 20px 50px rgba(20,36,58,.18); }
.townmap svg { width: 100%; height: 100%; display: block; }
.pin { position: absolute; transform: translate(-50%, -100%); border: 0; background: none; padding: 0; z-index: 2; }
.pin i { display: block; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ai); box-shadow: 0 4px 10px rgba(0,0,0,.25); transition: transform .3s, background .3s; }
.pin i::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.pin:hover i, .pin.is-active i { background: var(--shu); transform: rotate(-45deg) scale(1.18); }
.pin span { position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%); white-space: nowrap; background: var(--sumi); color: #fff; font-size: 11.5px; padding: 2px 10px; border-radius: 99px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.pin:hover span, .pin.is-active span { opacity: 1; }
.pin--home i { background: var(--ki); }
.townmap__note { position: absolute; left: 12px; bottom: 10px; font-size: 11px; color: var(--text-3); }
.towncard { background: var(--paper); border-top: 3px solid var(--ai); padding: 30px 30px 26px; box-shadow: 0 10px 30px rgba(0,0,0,.06); min-height: 250px; }
.towncard small { color: var(--ki); letter-spacing: .3em; font-size: 12px; }
.towncard h3 { font-family: var(--mincho); font-weight: 800; font-size: 24px; letter-spacing: .1em; margin: 6px 0 12px; line-height: 1.6; }
.towncard p { margin: 0; color: var(--text-2); font-size: 15px; }
.towncard .hint { margin-top: 18px; font-size: 12.5px; color: var(--text-3); }
.town-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.town-list button { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 3px 13px; font-size: 13px; color: var(--text-2); transition: .2s; }
.town-list button.is-active, .town-list button:hover { background: var(--ai); color: #fff; border-color: var(--ai); }

/* ---------- 第四章：直して住み継ぐ（大きな見比べ） ---------- */
.ba { position: relative; overflow: hidden; aspect-ratio: 16/9; touch-action: pan-y; background: #222; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,.4); }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #fff; color: var(--ai); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); font-family: var(--mincho); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.ba__tag { position: absolute; top: 18px; font-family: var(--mincho); font-weight: 700; font-size: 14px; letter-spacing: .3em; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); pointer-events: none; }
.ba__tag--b { left: 22px; } .ba__tag--a { right: 22px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba .img-note { bottom: 14px; right: 14px; }
.ba-cap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; margin-top: 44px; align-items: start; }
.ba-cap h3 { font-family: var(--mincho); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .1em; line-height: 1.7; margin: 0; }
.ba-cap p { margin: 0 0 1em; color: var(--text-2); }
.kominka-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 64px; }
.kominka-row figure { position: relative; }
.kominka-row img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.kominka-row figcaption { font-family: var(--mincho); font-weight: 700; font-size: 16px; letter-spacing: .08em; margin-top: 12px; }
.kominka-row figcaption small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--text-2); letter-spacing: .04em; }

/* ---------- 第五章：次の五十年をつくる人へ ---------- */
.next { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.next__photo { position: relative; }
.next__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.next__body { padding: 100px max(24px, calc((100vw - var(--max)) / 2)) 100px 72px; display: flex; gap: 48px; align-items: flex-start; }
.next__v { writing-mode: vertical-rl; font-family: var(--mincho); font-weight: 800; font-size: clamp(26px, 3vw, 40px); letter-spacing: .24em; line-height: 1.8; margin: 0; color: #fff; }
.next__v span { display: block; }
.next__v span:nth-child(2) { padding-top: 2em; }
.next__text p { color: #c6d1de; margin: 0 0 1.2em; }
.next__voice { border-left: 2px solid var(--ki-light); padding: 4px 0 4px 18px; margin: 26px 0; font-family: var(--mincho); font-size: 16px; line-height: 2; color: #fff; }
.next__voice small { display: block; font-family: var(--sans); font-size: 12px; color: var(--ki-light); margin-top: 6px; }
.next__list { list-style: none; padding: 0; margin: 0 0 30px; font-size: 14.5px; }
.next__list li { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.next__list b { color: var(--ki-light); font-weight: 500; }

/* ---------- 結び：便箋のお問い合わせ ---------- */
.close { padding: 140px 0 120px; }
.close__in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.close__title { font-family: var(--mincho); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: .12em; line-height: 1.6; margin: 0 0 20px; }
.close__tel { margin: 30px 0 0; padding: 0; list-style: none; }
.close__tel li { padding: 16px 0; border-top: 1px solid var(--line); }
.close__tel small { display: block; color: var(--text-3); font-size: 12px; letter-spacing: .2em; }
.close__tel a { font-family: var(--mincho); font-weight: 800; font-size: 28px; color: var(--ai); text-decoration: none; letter-spacing: .06em; }
.binsen { background: #fffdf6; box-shadow: 0 20px 50px rgba(60,40,20,.12); padding: 44px 46px 40px; position: relative; background-image: repeating-linear-gradient(transparent 0 43px, #e7dfcd 43px 44px); background-position: 0 30px; }
.binsen::before { content: ""; position: absolute; top: -10px; left: 50%; width: 120px; height: 22px; transform: translateX(-50%) rotate(-1.5deg); background: rgba(210,170,118,.45); }
.binsen h3 { font-family: var(--mincho); font-weight: 700; font-size: 20px; letter-spacing: .14em; margin: 0 0 22px; text-align: center; }
.binsen label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-2); margin-bottom: 18px; }
.binsen input, .binsen textarea, .binsen select { display: block; width: 100%; margin-top: 4px; border: 0; border-bottom: 1.5px solid #cbbfa6; background: transparent; padding: 8px 2px; font: inherit; font-weight: 400; font-size: 16px; color: var(--text); }
.binsen textarea { min-height: 132px; resize: vertical; line-height: 44px; padding-top: 6px; }
.binsen input:focus, .binsen textarea:focus { outline: none; border-color: var(--shu); }
.binsen .kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 22px; }
.binsen .kinds label { margin: 0; }
.binsen .kinds input { position: absolute; opacity: 0; width: auto; }
.binsen .kinds span { display: inline-block; border: 1px solid #cbbfa6; padding: 4px 14px; font-weight: 500; border-radius: 99px; cursor: pointer; background: #fffdf6; }
.binsen .kinds input:checked + span { background: var(--ai); color: #fff; border-color: var(--ai); }
.binsen .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.binsen .send { text-align: center; margin-top: 10px; }
.binsen .note { text-align: center; font-size: 12px; color: var(--text-3); margin: 12px 0 0; }
.binsen__done { display: none; text-align: center; padding: 60px 0; font-family: var(--mincho); font-size: 20px; }

/* ---------- 会社の覚え書き（フッター） ---------- */
.colophon { background: var(--sumi); color: #b9bdc4; padding: 80px 0 110px; font-size: 13.5px; }
.colophon__in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.colophon .brand { color: #fff; margin-bottom: 18px; }
.colophon dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px 18px; margin: 0; }
.colophon dt { color: #7f868f; }
.colophon dd { margin: 0; color: #d9dce0; }
.colophon small { display: block; margin-top: 52px; text-align: center; color: #7f868f; font-size: 11.5px; }


/* スマホ下部 */
.fixed-cta { display: none; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 960px) {
  .header__tel, .header .btn--sm { display: none; }
  .toc-btn { margin-left: auto; }
  .cover { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .cover__right { justify-content: flex-start; order: -1; }
  .cover__fifty { font-size: 52vw; }
  .origin, .town, .ba-cap, .close__in, .colophon__in { grid-template-columns: 1fr; gap: 40px; }
  .next { grid-template-columns: 1fr; }
  .next__photo { min-height: 320px; }
  .next__body { padding: 60px 24px; }
  .kominka-row { grid-template-columns: 1fr; }
  .chapters { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 32px); }
  .chapter { padding: 96px 0; }
  .ch-head { gap: 16px; margin-bottom: 40px; }
  .cover { padding: 96px 16px 70px; gap: 10px; }
  .cover__right { gap: 22px; }
  .cover__copy { font-size: 26px; }
  .cover__lead { font-size: 12.5px; }
  .letter p { font-size: 15.5px; line-height: 2.2; }
  .binsen { padding: 34px 20px 30px; }
  .binsen .row2 { grid-template-columns: 1fr; gap: 0; }
  .next__body { flex-direction: column; gap: 24px; }
  .ba { aspect-ratio: 4/3; }
  .fixed-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); box-shadow: 0 -6px 20px rgba(0,0,0,.1); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
  .fixed-cta a { text-align: center; text-decoration: none; padding: 11px 4px; font-weight: 700; font-size: 13.5px; letter-spacing: .1em; }
  .fixed-cta .tel { border: 1px solid var(--ai); color: var(--ai); }
  .fixed-cta .form { background: var(--shu); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
/* 表紙の高さは画面いっぱい（ただし縦長の画面では伸びすぎない） */
.cover { min-height: min(100svh, 960px); }
/* 章しるしは表紙を過ぎてから出す */
.chapters { opacity: 0; pointer-events: none; transition: opacity .4s; }
.chapters.is-show { opacity: 1; pointer-events: auto; }
.header__back { margin-left: auto; color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .1em; opacity: .85; transition: color .4s; }
.header.is-solid .header__back { color: var(--text-2); }
.header__back + .header__tel { margin-left: 24px; }
@media (max-width: 960px) { .header__back { display: none; } }


/* 物語ページの道案内（トップの各章へ） */
.more-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.more-links a { display: block; text-decoration: none; border: 1px solid rgba(255,255,255,.2); padding: 26px 22px; transition: background .3s, border-color .3s; }
.more-links a:hover { background: rgba(255,255,255,.06); border-color: var(--ki-light); }
.more-links b { display: block; font-family: var(--mincho); font-weight: 800; font-size: 18px; letter-spacing: .08em; color: #fff; margin-bottom: 6px; }
.more-links span { font-size: 13px; color: #9ea6b0; }
.more-links span::after { content: " →"; color: var(--ki-light); }
@media (max-width: 960px) { .more-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .more-links { grid-template-columns: 1fr; } }
