/* まくらもと文庫（架空の見本）。スマホ390pxを基準に組み、PCは中央560pxの縦1列＋左右に止まる帯 */
:root {
  --ground: #FEF4E0;
  --ink: #3F1E08;
  --ink-soft: #5a3a22;
  --accent: #245E67;
  --yamabuki: #FDE39F;
  --peach: #FDE1B6;
  --brick: #CC6832;
  --green-ground: #DCEDE6;
  --shadow: drop-shadow(0 6px 10px rgba(120, 72, 30, .16)) drop-shadow(0 2px 3px rgba(120, 72, 30, .12));
  --gutter: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 15px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: 0 auto;
  container-type: inline-size;
  overflow-x: clip;
}

/* ---------- 節と背景 ---------- */
.sec { position: relative; }
.sec-bg {
  position: absolute; inset: 0; z-index: 0;
  background-color: var(--ground);
  background-image: url(../img/g1.webp);
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: 0 var(--bgy, 0);
}
.in { position: relative; z-index: 2; padding: 64px var(--gutter) 72px; }
.deco { position: absolute; z-index: 1; height: auto; filter: var(--shadow); }

/* ---------- 文字 ---------- */
.label { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 14px; }
h2 { font-size: 27px; line-height: 1.38; font-weight: 700; letter-spacing: .01em; margin-bottom: 24px; word-break: keep-all; overflow-wrap: anywhere; }
.h2-big { font-size: 31px; line-height: 1.32; }
h3 { font-size: 18.5px; line-height: 1.5; font-weight: 700; margin-bottom: 6px; word-break: keep-all; overflow-wrap: anywhere; }
p + p { margin-top: 10px; }
.lead-body { margin-bottom: 30px; }
.mark { display: inline; background: linear-gradient(transparent 52%, rgba(253, 227, 159, .9) 52%, rgba(253, 227, 159, .9) 92%, transparent 92%); padding: 0 .15em; }
.mark + * { margin-top: 8px; }

/* 数字と単位（別々の要素） */
.stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .3em; margin: 6px 0 4px; }
.stat .num { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.stat .unit { font-size: 15px; font-weight: 500; }
.stat-icon { width: 34px; align-self: center; filter: var(--shadow); }

/* 札（ちぎった紙・しるし付き） */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(253, 227, 159, .55); font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.pill-icon { width: 26px; flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

/* 写真の窓（形のことば：角を大きく丸めた、ゆるい窓／はがきの形） */
.pic { margin: 0 0 26px; filter: var(--shadow); }
.pic img { width: 100%; border-radius: 64px 22px 22px 22px / 48px 22px 22px 22px; }
.pic-wide { margin-left: calc(var(--gutter) * -.5); margin-right: calc(var(--gutter) * -.5); }
.pic-card img { border-radius: 14px; }

/* 紙の台（文字をのせる台紙） */
.paper-block { position: relative; margin-top: 40px; padding: 34px 30px 36px; filter: var(--shadow); }
.paper-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: 0; }
.paper-in { position: relative; z-index: 1; }

/* ---------- S01 最初の画面（採用した絵と同じ縦横比で固定。中の物は % と cqw で置く） ---------- */
.s01 .fv { position: relative; z-index: 2; aspect-ratio: 1024 / 1792; }
.fv > * { position: absolute; margin: 0; }
.fv-corner { right: -14%; top: -3%; width: 46%; z-index: 1; opacity: .9; }
.fv-logo { left: 3.9%; top: 1.4%; width: 26%; }
.fv-logo img { width: 100%; }
.fv-lead { left: 3.9%; top: 6.9%; font-size: 3.3cqw; font-weight: 500; line-height: 1.4; letter-spacing: .02em; }
.fv-hero { left: 3.9%; top: 10.2%; font-size: 7.35cqw; font-weight: 700; line-height: 1.24; letter-spacing: .01em; white-space: nowrap; }
.fv-pic { left: 1.4%; top: 20.8%; width: 97.3%; height: 52.4%; filter: var(--shadow); }
.fv-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 36% 7% 7% 7% / 20% 4% 4% 4%; }
.fv-chip { left: .6%; top: 25.0%; width: 52.5%; height: 6.6%; display: flex; align-items: center; gap: 2.2cqw; padding-left: 3cqw; filter: var(--shadow); z-index: 3; }
.chip-paper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: -1; }
.fv-chip .chip-icon { width: 10cqw; }
.fv-chip .chip-text { font-size: 3.05cqw; font-weight: 700; white-space: nowrap; }
.fv-price { left: 4.2%; top: 77.4%; width: 92%; display: flex; align-items: center; gap: 2.4cqw; }
.fv-price-icon { width: 14cqw; filter: var(--shadow); }
.fv-prefix { font-size: 2.65cqw; font-weight: 700; background: var(--peach); border-radius: 999px; padding: .35cqw 2.2cqw; white-space: nowrap; }
.fv-num { font-size: 10.6cqw; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.fv-unit { font-size: 2.95cqw; font-weight: 700; white-space: nowrap; align-self: flex-end; margin-bottom: 1.6cqw; margin-left: -1cqw; }
.fv-note { left: 0; right: 0; top: 84.0%; text-align: center; font-size: 2.7cqw; font-weight: 500; letter-spacing: .02em; }
.fv-btn { left: 9.3%; top: 88.5%; width: 81.5%; height: 5.9%; display: flex; align-items: center; justify-content: center; text-decoration: none; filter: var(--shadow); }
.btn-paper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: -1; }
.fv-btn .btn-text { font-size: 4.3cqw; font-weight: 500; color: var(--ground); letter-spacing: .06em; }

/* ---------- S02 悩み・共感 ---------- */
.s02 .in { padding-top: 40px; }
.s02-corner { right: -18%; top: -70px; width: 44%; transform: rotate(160deg); opacity: .75; }
.worries { display: grid; gap: 22px; margin: 6px 0 8px; }
.worry { display: grid; grid-template-columns: 36% 1fr; gap: 16px; align-items: center; }
.worry-pic { filter: var(--shadow); }
.worry h3 { font-size: 17.5px; }
.s02 .paper-in p { font-weight: 500; }

/* ---------- S03 かぶらない仕組み ---------- */
.s03-corner { right: -6%; top: -48px; width: 30%; transform: rotate(8deg); }
.steps { display: grid; gap: 36px; margin-top: 8px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.step-1 .step-pic { order: -1; }
.step-0 .step-pic, .step-2 .step-pic { order: 2; }
.step-pic { position: relative; filter: var(--shadow); }
.step-no { position: absolute; left: 8px; top: -6px; font-size: 46px; font-weight: 700; line-height: 1; color: var(--ink); text-shadow: 0 0 10px rgba(254, 244, 224, .9); }
.step h3 { font-size: 19px; }
.deadline { position: relative; display: inline-flex; align-items: baseline; gap: 0 .25em; padding: 8px 16px 8px 14px; margin: 8px 0 4px; filter: var(--shadow); flex-wrap: wrap; }
.deadline .chip-icon { width: 26px; align-self: center; }
.deadline .unit { font-size: 13.5px; font-weight: 500; }
.deadline .num { font-size: 30px; font-weight: 700; line-height: 1; }
.paper-wide { margin-left: calc(var(--gutter) * -.4); margin-right: calc(var(--gutter) * -.4); }
.paper-wide h3 { font-size: 20px; }
.stat-inline .num { font-size: 40px; }

/* ---------- S04 選ぶ基準と年齢のコース ---------- */
.rules { display: grid; gap: 22px; margin: 6px 0 34px; }
.rule { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.rule-icon { width: 52px; filter: var(--shadow); }
.rule .stat .num { font-size: 40px; }
.notfor { padding: 20px 0 22px; border-top: 1px solid rgba(63, 30, 8, .18); border-bottom: 1px solid rgba(63, 30, 8, .18); margin-bottom: 38px; }
.notfor p { font-size: 14.5px; }
.ages-h { font-size: 21px; margin-bottom: 16px; }
.ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.age { display: flex; flex-direction: column; align-items: center; text-align: center; }
.age-kid { width: 70%; height: 86px; object-fit: contain; filter: var(--shadow); }
.age .stat { justify-content: center; margin: 4px 0 8px; }
.age .num { font-size: 27px; }
.age .unit { font-size: 13px; }
.age .pill { flex-direction: column; border-radius: 18px; padding: 10px 6px; font-size: 12.5px; gap: 4px; width: 100%; min-height: 104px; justify-content: center; }
.age .pill-icon { width: 34px; }

/* ---------- S09 まくらもとカードの見本（うすい青緑の地） ---------- */
.s09 .sec-bg { background-color: var(--green-ground); background-image: url(../img/g2.webp); background-position: 0 0; }
.s09 .in { padding-top: 92px; padding-bottom: 104px; }
.edge { position: absolute; left: 0; width: 100%; z-index: 1; pointer-events: auto; }
.edge-top { top: -2px; transform: scaleY(-1); filter: drop-shadow(0 -4px 6px rgba(70, 90, 80, .12)); }
.edge-bottom { bottom: -2px; filter: drop-shadow(0 -4px 6px rgba(70, 90, 80, .12)); }
.fields { display: grid; gap: 20px; margin: 8px 0 30px; }
.field { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.badge { width: 40px; height: 40px; border-radius: 50% 46% 52% 48%; background: var(--yamabuki); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; box-shadow: 0 3px 6px rgba(120, 90, 30, .18); margin-top: 2px; }
.field .stat { gap: 0 .35em; }
.field .stat .num { font-size: 38px; }
.notes p { font-size: 13px; line-height: 1.75; color: var(--ink-soft); }
.notes p + p { margin-top: 4px; }

/* ---------- S06 コースと料金 ---------- */
.s06 .in { padding-top: 36px; }
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.course { background: rgba(255, 249, 235, .75); border-radius: 22px; padding: 12px 12px 16px; box-shadow: 0 6px 14px rgba(120, 72, 30, .1); }
.course-pic { margin-bottom: 10px; filter: var(--shadow); }
.course h3 { font-size: 18px; margin-bottom: 2px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .2em; }
.price .prefix { font-size: 12px; font-weight: 700; background: var(--yamabuki); border-radius: 999px; padding: 0 8px; align-self: center; }
.price .num { font-size: 33px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.price .unit { font-size: 11.5px; font-weight: 500; flex-basis: 100%; }
.course .pills { display: grid; gap: 6px; margin: 10px 0; }
.course .pill { font-size: 12.5px; }
.course > p:last-child { font-size: 13.5px; line-height: 1.7; }
.diff { text-align: center; font-weight: 700; font-size: 15.5px; margin: 8px 0 34px; }
.terms { display: grid; gap: 30px; }
.term { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: start; }
.term-icon { width: 58px; filter: var(--shadow); }
.term .stat .num { font-size: 40px; }
.term .stat .stat-icon { width: 28px; }

/* ---------- S07 想定の質問 ---------- */
.s07-corner { right: -7%; top: -36px; width: 26%; transform: rotate(-12deg); }
.qas { margin-top: 8px; }
.qa { padding: 22px 0; border-top: 1px solid rgba(63, 30, 8, .2); }
.qa:last-child { border-bottom: 1px solid rgba(63, 30, 8, .2); }
.qa h3 { font-size: 18.5px; margin-bottom: 8px; }

/* ---------- S08 締め（淡いやまぶきの地。上の端は、布団のふちのような波） ---------- */
.s08 .sec-bg {
  background-color: #FBE9A9;
  background-image: url(../img/g3.webp), url(../img/g1.webp);
  background-repeat: no-repeat, repeat-y;
  background-size: 100% auto, 100% auto;
  background-position: 0 0, 0 var(--bgy, 0);
}
.s08 .in { padding-top: 84px; padding-bottom: 64px; }
.pic-night img { border-radius: 46% 46% 22px 22px / 18% 18% 22px 22px; }
.close-body { font-size: 16.5px; font-weight: 500; line-height: 1.8; }
.demo-note { margin-top: 28px !important; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- PC：中央560pxの縦1列＋左右に止まる帯 ---------- */
.band { display: none; }
@media (min-width: 561px) {
  .band {
    display: block; position: fixed; top: 0; bottom: 0; z-index: 0;
    width: calc((100vw - 560px) / 2);
    background-color: var(--ground); background-size: cover;
  }
  .band-l { left: 0; background-image: url(../img/band-l.webp); background-position: right center; }
  .band-r { right: 0; background-image: url(../img/band-r.webp); background-position: left center; }
  .page { box-shadow: 0 0 40px rgba(120, 72, 30, .14); }
  body { font-size: 16px; }
  :root { --gutter: 34px; }
  h2 { font-size: 32px; }
  .h2-big { font-size: 36px; }
  h3 { font-size: 20px; }
  .worry h3 { font-size: 19px; }
  .stat .num { font-size: 50px; }
  .price .num { font-size: 42px; }
  .price .unit { font-size: 13px; }
  .course .pill, .age .pill { font-size: 14px; }
  .age .num { font-size: 34px; }
  .age-kid { height: 110px; }
  .step-no { font-size: 56px; }
  .close-body { font-size: 18px; }
}

/* ===== メリハリ（2026-11-19 かおりさん「全体の緩急、抑揚、世界観がちょっと単調」） ===== */
/* 見出し：原稿の改行で1行ずつ。1行の字数から、列に収まる大きさに（言葉の途中で折らない） */
.hl { --fs: 27px; font-size: min(var(--fs), calc((100cqw - 2 * var(--gutter)) / var(--n) * .98)); }
.hl .ln { display: block; white-space: nowrap; }
.h2-mid { --fs: 28px; }
.h2-big { --fs: 33px; }
.h2-xl { --fs: 40px; line-height: 1.28; }
.center { text-align: center; }
h3, .rule-text, .step-text, .worry div { word-break: auto-phrase; }
/* ラベル：ちぎった紙の札 */
.label { position: relative; display: inline-flex; align-items: center; padding: 3px 16px; margin-bottom: 18px; color: var(--ink); font-weight: 700; }
.label-paper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: -1; filter: var(--shadow); }
.center + * , .s04 .label, .s06 .label, .s07 .label { }
.s04 .in, .s06 .in, .s07 .in { text-align: center; }
.s04 .in > *, .s06 .in > *, .s07 .in > * { text-align: left; }
.s04 .in > .label, .s06 .in > .label, .s07 .in > .label, .s04 .in > .hl, .s06 .in > .hl, .s07 .in > .hl, .s04 .in > .center { text-align: center; }
.s04 .in > .label, .s06 .in > .label, .s07 .in > .label { margin-left: auto; margin-right: auto; }
/* 端まで出す絵（引き）と、半分だけ端へ出す絵 */
.bleed { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.bleed img { border-radius: 0; }
.bleed-curve img { border-radius: 0 0 50% 50% / 0 0 14% 14%; }
.bleed-half { margin-right: calc(var(--gutter) * -1); }
.bleed-half img { border-radius: 18px 0 0 18px; }
/* S02：絵を端まで、見出しを大きく */
.s02 .in { padding-top: 34px; }
.s02 .hl { margin-top: 6px; }
/* S03：大きな番号 */
.step-no { font-size: 64px; color: var(--brick); left: -6px; top: -26px; text-shadow: 0 0 14px rgba(254, 244, 224, .95), 0 0 2px rgba(254, 244, 224, .95); }
.s03 .lead-body { font-size: 16px; font-weight: 500; }
/* S04：「5分」を見せ場に。年齢のコースを、やまぶきの帯に */
.feature { position: relative; margin: 8px 0 34px; padding: 26px 20px 24px; text-align: center; background: rgba(255, 250, 238, .8); border-radius: 26px; box-shadow: 0 8px 22px rgba(120, 72, 30, .12); }
.feature-icon { width: 64px; margin: -56px auto 6px; filter: var(--shadow); }
.feature h3 { font-size: 20px; }
.stat-hero { justify-content: center; margin: 2px 0 8px; }
.stat-hero .num { font-size: 92px; line-height: .95; color: var(--brick); }
.stat-hero .unit { font-size: 18px; font-weight: 700; }
.feature p { font-size: 14.5px; text-align: left; }
.band-y { position: relative; margin-top: 46px; padding: 74px var(--gutter) 46px; }
.band-y-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 0; }
.band-y-in { position: relative; z-index: 1; }
.band-y .ages-h { text-align: center; font-size: 24px; }
.age .pill { background: rgba(255, 252, 240, .82); }
.s04 .in { padding-bottom: 0; }
/* S09：山場1。カードの絵を大きく、声のコツを引用に */
.s09 .hl { margin-top: 4px; }
.voice-q { display: block; font-size: 21px; font-weight: 700; line-height: 1.55; color: var(--accent); margin: 2px 0 4px; }
.voice-rest { display: block; }
/* S06：山場2。価格を大きく */
.s06 .in { padding-top: 44px; }
.price .num { font-size: 38px; color: var(--ink); }
.course { background: rgba(255, 252, 242, .92); border-radius: 24px 24px 24px 24px; }
.course:first-child { transform: rotate(-.6deg); }
.course:last-child { transform: rotate(.6deg); }
.diff { font-size: 16.5px; }
.terms { text-align: left; }
/* S07：息をつく。地を大きく残す */
.s07 .in { padding-top: 92px; padding-bottom: 96px; }
.qa h3 { font-size: 17.5px; }
/* S08：夜の寝室を端まで、締めの言葉を大きく */
.s08 .in { text-align: center; padding-top: 96px; }
.s08 .pic { margin-bottom: 30px; }
.pic-night.bleed img { border-radius: 50% 50% 0 0 / 12% 12% 0 0; }
.close-body { text-align: center; }

/* 動き：読む所まで来たら、ふわっと出る（見る人が動きを減らす設定のときは、出さない） */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

@media (min-width: 561px) {
  .hl { --fs: 32px; }
  .h2-big { --fs: 40px; }
  .h2-xl { --fs: 48px; }
  .stat-hero .num { font-size: 120px; }
  .voice-q { font-size: 24px; }
  .price .num { font-size: 48px; }
  .band-y .ages-h { font-size: 28px; }
}
/* 直し（2回目） */
p, h3 { text-wrap: pretty; }
.voice-q { word-break: auto-phrase; font-size: 19px; }
.deadline { flex-wrap: nowrap; white-space: nowrap; }
.s07-corner { left: -16%; right: auto; top: 10px; width: 40%; transform: rotate(-24deg); opacity: .7; }
.band-y { background: none; }
.step-2 { grid-template-columns: 1fr 42%; }
.step-2 .step-pic { min-width: 0; }
.deadline .unit { font-size: 12.5px; }
.close-body, .lead-body, .s04 .lead-body { word-break: auto-phrase; }
.step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.step-2 { grid-template-columns: minmax(0, 1fr) 40%; }
.step-text { min-width: 0; }
.worry { grid-template-columns: 30% minmax(0, 1fr); gap: 14px; }
.step, .step-2 { grid-template-columns: minmax(0, 1fr) 37%; gap: 14px; }
.step-1 { grid-template-columns: 37% minmax(0, 1fr); }
.step-pic { min-width: 0; }
.step-no { font-size: 52px; top: -22px; }
.step-text p { font-size: 14.5px; }
.deadline { flex-wrap: wrap; white-space: normal; max-width: 100%; }
/* 最初の画面の価格の行：採用した絵と同じく、単位の右端を画面の内側（約95%）に収める */
.fv-price { gap: 1.7cqw; width: 91.5%; }
.fv-num { font-size: 10.2cqw; }
.fv-unit { font-size: 2.85cqw; margin-left: -.6cqw; }
/* 境目のちぎった紙：帯の半分を隣の節へ出し、溶けた側を隣の地に重ねる（まっすぐな端を出さない） */
.edge-top { top: 0; transform: translateY(-46%) scaleY(-1); }
.edge-bottom { bottom: 0; transform: translateY(46%); }
.edge, .edge-top, .edge-bottom { filter: none; }
/* 締めのボタン（最初の画面と同じ紙のボタン） */
.close-btn { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 320px); aspect-ratio: 6 / 1; margin: 30px auto 0; text-decoration: none; filter: drop-shadow(0 8px 16px rgba(0, 0, 20, .4)); }
.close-btn .btn-text { font-size: 17px; font-weight: 500; color: var(--ground); letter-spacing: .06em; }
