/* 「ありがとう」確認用サイト v3 — 写真が主役・大きく軽い文字・章ごとに構図を変える（design/21-critique-v2.md を反映） */

:root {
  --ground: #f7f5f0;        /* 温かい白（純白にしない） */
  --tint: #efebe3;          /* 一段落とした地（授業・講師の章） */
  --ink: #1f1b18;           /* 本文（地に 15:1） */
  --muted: #6f675f;         /* 補助（地に 5.3:1） */
  --hair: rgba(31, 27, 24, 0.14);
  --dark: #241f1b;          /* 末尾の章の地（暖かい黒） */
  --on-dark: #f3efe8;
  --on-dark-muted: #c4bbb0;
  --line: #06c755;          /* LINE の印だけ */

  --font: "Murecho", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --num: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --gut: 24px;
  --fs-s: 14px;
  --fs-b: 18px;
  --fs-m: 20px;
  --fs-h2: 30px;
  --fs-h1: clamp(29px, 9vw, 34px);   /* 「行きづらいときも、」が 1 行に収まる大きさ */
  --fs-st: clamp(20px, 5.9vw, 24px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-b);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
  text-autospace: normal;
  -webkit-font-smoothing: antialiased;
}
p, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-feature-settings: "palt"; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.nw { white-space: nowrap; }
.muted { color: var(--muted); }
.fig { font-family: var(--num); font-weight: 400; }

/* ---------- 仮の印・確認用の一行 ---------- */
.kari {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: var(--fs-s);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  opacity: 0.55;
  vertical-align: 0.12em;
}
html.clean .kari, html.clean .preview, html.clean .kari-note { display: none; }   /* ?clean でデザインだけを見る */
.preview {
  padding: 9px var(--gut);
  border-bottom: 1px solid var(--hair);
  color: var(--muted);
  font-size: var(--fs-s);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview .kari { margin: 0 2px; }

/* ---------- 文字の型 ---------- */
h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.4; letter-spacing: 0.04em; }
h3 { font-size: var(--fs-m); font-weight: 500; line-height: 1.55; }
.num { font-family: var(--num); font-weight: 300; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- ロゴ（活字 2 段。本命は手書きの一語） ---------- */
.head { padding: 16px var(--gut) 12px; }
.brand { display: inline-block; text-decoration: none; font-feature-settings: "palt"; }
.brand-name { display: block; font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: 0.3em; }
.brand-sub { display: block; margin-top: 3px; font-size: var(--fs-s); font-weight: 400; line-height: 1.4; letter-spacing: 0.22em; color: var(--muted); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-b);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  font-feature-settings: "palt";
  transition: background-color 240ms var(--ease), transform 240ms var(--ease);
}
.btn:hover { background: #3a332d; transform: translateY(-1px); }
.btn-icon { width: 22px; height: 22px; flex: none; }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* ---------- 1 ヒーロー: 写真は直線で終わり、文字は地の上 ---------- */
.hero { position: relative; }
.hero-photo { height: 46svh; min-height: 300px; max-height: 520px; overflow: hidden; }
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 0%; }
.hero-text { padding: 26px var(--gut) 8px; }
h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.42; letter-spacing: 0.03em; }
h1 .l { display: block; }
.hero .btn { margin-top: 20px; }
.hero-lead { margin-top: 20px; max-width: 30em; }
.hero-note { margin-top: 8px; color: var(--muted); font-size: var(--fs-s); line-height: 1.7; }

/* ---------- 2 ひとこと ---------- */
.statement { padding: 84px var(--gut) 76px; }
.statement-text { font-size: var(--fs-st); font-weight: 300; line-height: 1.75; letter-spacing: 0.01em; max-width: 24em; font-feature-settings: "palt"; }
.statement-text .l { display: block; }

/* ---------- 3 こんな方に ---------- */
.who { padding: 0 var(--gut) 88px; }
.who-intro { margin-top: 18px; max-width: 30em; }
.who-photo { margin: 40px calc(var(--gut) * -1) 8px; }
.who-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.who-list li { display: grid; grid-template-columns: 44px 1fr; padding: 26px 0; border-top: 1px solid var(--hair); }
.who-list li:last-child { border-bottom: 1px solid var(--hair); }
.who-list .num { font-size: var(--fs-m); line-height: 1.5; padding-top: 1px; }
.who-list p { margin-top: 6px; }

/* ---------- 4 授業のしくみ: 写真 2 枚をずらして重ね、説明は短く ---------- */
.lesson { padding: 88px 0 96px; background: var(--tint); }
.lesson-inner { padding: 0 var(--gut); }
.collage { position: relative; margin: 36px 0 0; padding-bottom: 44px; }
.collage-main { margin-right: calc(var(--gut) * -1); }
.collage-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collage-cap { margin-top: 10px; color: var(--muted); font-size: var(--fs-s); line-height: 1.6; text-align: right; }
.collage-sub { position: absolute; left: calc(var(--gut) * -1); bottom: 0; width: 46%; border: 6px solid var(--tint); border-left: 0; }
.collage-sub img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.how { margin-top: 36px; }
.how li { display: grid; grid-template-columns: 44px 1fr; padding: 12px 0; }
.how .num { font-size: var(--fs-s); line-height: 2.2; }
.how p { margin-top: 2px; }
.need { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hair); }
.need dt { font-size: var(--fs-s); font-weight: 500; color: var(--muted); letter-spacing: 0.08em; }
.need dd { margin-top: 2px; }
.aside { margin-top: 18px; color: var(--muted); }

/* ---------- 5 料金: 大きな数字を 1 回だけ ---------- */
.price { padding: 96px var(--gut) 96px; }
.fee { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-feature-settings: "palt"; }
.fee-label { font-size: var(--fs-m); font-weight: 500; }
.fee-amount { display: inline-flex; align-items: baseline; gap: 6px; }
.big { font-family: var(--num); font-weight: 300; font-size: clamp(72px, 20vw, 96px); line-height: 1; letter-spacing: -0.01em; }
.yen { font-size: 24px; font-weight: 400; }
.fee-note { margin-top: 20px; max-width: 28em; }
.terms { margin-top: 36px; max-width: 560px; }
.terms div { padding: 18px 0; border-top: 1px solid var(--hair); }
.terms div:last-child { border-bottom: 1px solid var(--hair); }
.terms dt { font-weight: 500; }
.terms dd { margin-top: 2px; }

/* ---------- 6 流れ: 1 本の線に点を打つ ---------- */
.flow { padding: 88px 0 88px; }
.flow-inner { padding: 0 var(--gut); }
.flow-photo { width: 58%; margin: 28px 0 40px calc(var(--gut) * -1); }
.flow-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%; }
.steps { margin: 4px 0 0 4px; border-left: 1px solid rgba(31, 27, 24, 0.3); }
.steps li { position: relative; padding: 0 0 34px 26px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: -4.5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.steps .num { display: block; font-size: var(--fs-s); line-height: 1.6; letter-spacing: 0.08em; }
.steps h3 { margin-top: 2px; }
.steps p { margin-top: 4px; }
.steps p + p { margin-top: 2px; }

/* ---------- 息継ぎの写真 ---------- */
.band { position: relative; height: 58svh; min-height: 340px; overflow: hidden; }
.band img { width: 100%; height: 124%; object-fit: cover; margin-top: -12%; will-change: transform; }

/* ---------- 7 講師: 一段落とした地 ---------- */
.teachers { padding: 88px var(--gut) 96px; background: var(--tint); }
.teachers-lead { margin-top: 22px; font-size: var(--fs-st); font-weight: 300; line-height: 1.7; letter-spacing: 0.01em; max-width: 22em; font-feature-settings: "palt"; }
.teachers-cols { margin-top: 44px; display: grid; gap: 40px; }
.select { margin-top: 12px; }
.select li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--hair); font-size: var(--fs-m); font-weight: 400; }
.select li:last-child { border-bottom: 1px solid var(--hair); }
.select .num { font-size: var(--fs-s); }
.rules { margin-top: 12px; }
.rules li { position: relative; padding-left: 18px; }
.rules li + li { margin-top: 6px; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.86em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.report { margin-top: 18px; color: var(--muted); }

/* ---------- 8 ご相談: 夜の食卓の上、唯一の暗い章 ---------- */
.contact { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px var(--gut) 88px; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.contact-photo { position: absolute; inset: 0; z-index: 0; }
.contact-photo picture, .contact-photo img { width: 100%; height: 100%; }
.contact-photo img { object-fit: cover; object-position: 50% 50%; height: 120%; margin-top: -10%; will-change: transform; }
.contact-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(36, 31, 27, 0.78) 0, rgba(36, 31, 27, 0.5) 50%, rgba(36, 31, 27, 0.22) 100%); }
.contact-text { position: relative; z-index: 1; max-width: 560px; }
.contact h2 { font-size: var(--fs-h1); font-weight: 300; }
.contact-lead { margin-top: 16px; }
.example { margin-top: 32px; font-size: 24px; font-weight: 300; line-height: 1.6; letter-spacing: 0.03em; font-feature-settings: "palt"; }
.example-label { display: block; margin-bottom: 6px; font-size: var(--fs-s); font-weight: 400; color: var(--on-dark-muted); letter-spacing: 0.06em; }
.contact .btn { margin-top: 28px; }
.kari-note { margin-top: 10px; font-size: var(--fs-s); color: var(--on-dark-muted); line-height: 1.7; }
.notes { margin-top: 32px; }
.notes li { position: relative; padding-left: 18px; }
.notes li + li { margin-top: 4px; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.86em; width: 6px; height: 6px; border-radius: 50%; background: var(--on-dark-muted); }
.ig { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 24px; text-decoration: none; }
.ig-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.ig-icon .dot { fill: currentColor; stroke: none; }
.ig > span { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ig-account { margin-left: 10px; font-weight: 400; color: var(--on-dark-muted); }

/* ---------- フッター ---------- */
.foot { padding: 44px var(--gut) 48px; font-size: var(--fs-s); line-height: 1.8; }
.brand-foot { margin: 0; }
.foot-links { margin-top: 18px; color: var(--muted); }
.copy { margin-top: 16px; color: var(--muted); }
.copy small { font-size: inherit; }

/* ---------- 動き（JS がある時だけ。無くても全文が見える） ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js .hero-photo img { transform: scale(1.05); transition: transform 2600ms var(--ease); }
html.js .hero-text > * { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js .hero-text > :nth-child(1) { transition-delay: 150ms; }
html.js .hero-text > :nth-child(2) { transition-delay: 240ms; }
html.js .hero-text > :nth-child(3) { transition-delay: 320ms; }
html.js .hero-text > :nth-child(4) { transition-delay: 400ms; }
html.js.ready .hero-photo img { transform: none; }
html.js.ready .hero-text > * { opacity: 1; transform: none; }

html.js.no-anim [data-reveal], html.js.no-anim .hero-photo img, html.js.no-anim .hero-text > * { transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.js .hero-photo img, html.js .hero-text > * { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- 幅の広い画面 ---------- */
@media (min-width: 760px) {
  :root {
    --gut: 64px;
    --fs-h2: 44px;
    --fs-h1: clamp(40px, 4vw, 58px);
    --fs-st: clamp(28px, 2.5vw, 38px);
  }
  .head { padding: 22px var(--gut) 18px; }
  .brand-name { font-size: 26px; }

  /* ヒーロー: 写真全面。文字は写真の左の無地の壁に置く（霧は作らない） */
  .hero { min-height: calc(100vh - 44px - 92px); }
  .hero-photo { position: absolute; inset: 0; height: auto; max-height: none; }
  .hero-photo img { object-position: 60% 55%; }
  /* 文字は写真の左上の無地の壁に。本棚と机には重ねない */
  .hero-text { position: absolute; left: 0; top: 7%; max-width: 920px; padding: 0 var(--gut); }
  h1 { line-height: 1.3; }
  h1 .l { white-space: nowrap; }
  h1 .l:nth-child(1), h1 .l:nth-child(2) { display: inline; }
  .hero-text { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-lead { order: 1; margin-top: 22px; font-size: 19px; max-width: 26em; }
  .hero .btn { order: 2; }
  .hero-note { order: 3; }
  .hero .btn { width: auto; min-width: 280px; margin-top: 26px; }
  .hero-note { margin-top: 10px; }

  .statement { padding: 140px var(--gut) 120px; }
  .statement-text { font-size: var(--fs-st); letter-spacing: 0.03em; max-width: 24em; line-height: 1.7; margin-left: 16%; }
  .statement-text .l { display: inline; }

  .who { display: grid; grid-template-columns: 5fr 7fr; column-gap: 72px; padding: 0 var(--gut) 150px; }
  .who-head { position: sticky; top: 48px; align-self: start; }
  .who-photo { margin: 0 0 48px; }
  .who-list li { grid-template-columns: 56px 1fr; padding: 32px 0; }

  .lesson { padding: 120px 0 140px; }
  .lesson-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; padding: 0 var(--gut); }
  .lesson-inner > * { grid-column: 1 / -1; }
  .collage { grid-column: 1 / 11; grid-row: 2; display: grid; grid-template-columns: repeat(10, 1fr); column-gap: 32px; margin-top: 56px; padding-bottom: 0; }
  .collage-main { grid-column: 1 / 9; grid-row: 1; margin: 0; }
  .collage-main img { aspect-ratio: 3 / 2; }
  .collage-cap { grid-column: 1 / 11; grid-row: 3; text-align: left; margin-top: 12px; }
  .collage-sub { position: relative; left: auto; bottom: auto; grid-column: 8 / 11; grid-row: 1; align-self: end; width: auto; margin-bottom: -96px; border: 10px solid var(--tint); }
  .how { grid-column: 11 / -1; grid-row: 2 / 4; align-self: start; margin-top: 56px; }
  .how li { grid-template-columns: 1fr; padding: 0 0 22px; }
  .how .num { line-height: 1.8; }
  .need { grid-column: 1 / 8; margin-top: 150px; }
  .aside { grid-column: 1 / 8; }

  .price { padding: 150px var(--gut) 150px; text-align: center; }
  .fee { align-items: center; }
  .big { font-size: clamp(128px, 12vw, 184px); }
  .yen { font-size: 30px; }
  .fee-note { margin: 22px auto 0; text-align: left; }
  .terms { margin: 40px auto 0; text-align: left; }

  .flow { padding: 140px 0 150px; }
  .flow-inner { display: grid; grid-template-columns: 5fr 7fr; column-gap: 72px; padding: 0 var(--gut); }
  .flow-head { position: sticky; top: 48px; align-self: start; }
  .flow-photo { width: min(100%, 400px); margin: 40px 0 0; }
  .steps { margin: 8px 0 0; }
  .steps li { padding: 0 0 40px 36px; }
  .steps li::before { top: 14px; }

  .band { height: 72vh; min-height: 480px; }

  .teachers { padding: 140px var(--gut) 150px; }
  .teachers-inner { display: grid; grid-template-columns: 5fr 7fr; column-gap: 72px; max-width: 1312px; margin: 0 auto; }
  .teachers-head { position: sticky; top: 48px; align-self: start; }
  .teachers-cols { margin-top: 0; grid-template-columns: 1fr 1fr; column-gap: 48px; }

  .contact { min-height: 92vh; padding: 180px var(--gut) 120px; }
  .contact-text { max-width: 640px; }
  .contact h2 { font-size: clamp(44px, 4vw, 60px); }
  .example { font-size: 30px; }
  .contact .btn { width: auto; min-width: 300px; }

  .foot { display: grid; grid-template-columns: 1fr auto auto; column-gap: 48px; align-items: end; padding: 56px var(--gut) 64px; }
  .foot-links, .copy { margin-top: 0; }
}
