/* ==========================================================
   Studio TOJI — 「墨と湯けむり」
   ソース: DESIGN.md（Apple構造×和モダン・承認済み）
   ========================================================== */

:root {
  --sumi: #161310;
  --sumi-soft: #221d17;
  --paper: #f3eee2;
  --washi: #faf6ec;
  --paper-deep: #e8dfcb;
  --shu: #a63d2a;
  --ink: #241f18;
  --muted: #71685a;
  --hairline: rgba(36, 31, 24, 0.14);
  --on-photo: #f6f1e6;
  --on-dark: #efe9da;
  --on-dark-soft: rgba(239, 233, 218, 0.62);

  --mincho: "Zen Old Mincho", serif;
  --gothic: "Zen Kaku Gothic New", sans-serif;
  --serif-en: "Cormorant Garamond", serif;

  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- 湯けむり背景（WebGL・全ページ共通） ---------- */
/* コンテンツ（z-index:1）の下に敷く。写真・ボックス・文字の上には乗らない */
.steam-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#smooth-wrapper { position: relative; z-index: 1; }
/* サブページ（規約等）はラッパーがないため、main/footerを湯気より上に */
body > main, body > footer { position: relative; z-index: 1; }

/* セクション内の湯気レイヤー: 写真(z-auto)の上・テキスト(z:2)の下 */
.steam-local {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.shoji__words { position: relative; z-index: 2; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
/* 装飾要素の横はみ出しでモバイルのレイアウト幅が拡張されるのを防ぐ
   （RIPLINKで実機のフォーム見切れの根本原因になった前例あり） */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--gothic);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; }
em, i { font-style: normal; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 48px);
}

::selection { background: var(--shu); color: var(--washi); }

/* ==========================================================
   ローダー: 落款
   ========================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--sumi);
  display: grid;
  place-items: center;
}

.loader__inner { text-align: center; }

.loader__name {
  display: block;
  height: 15px;
  width: auto;
  margin: 0 auto;
  opacity: 0.88;
}

/* ==========================================================
   カーソル
   ========================================================== */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }

  .cursor__dot, .cursor__ring {
    position: fixed;
    top: 0; left: 0;
    z-index: 190;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-100px, -100px);
  }

  .cursor__dot { width: 6px; height: 6px; background: var(--shu); }

  .cursor__ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(166, 61, 42, 0.55);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.4s;
  }

  .cursor--hover .cursor__ring {
    width: 52px;
    height: 52px;
    background: rgba(166, 61, 42, 0.1);
  }
}

/* ==========================================================
   共通
   ========================================================== */
.eyebrow {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.34em;
  color: var(--shu);
  margin-bottom: 20px;
}

.eyebrow--on-dark { color: #c96a52; }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); }

.section-title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-wrap: balance; /* 1〜2文字だけの孤立折り返しを防ぐ */
}

.section-title--on-dark { color: var(--on-dark); }

.section-lead {
  margin-top: 22px;
  color: var(--muted);
  max-width: 40em;
  font-size: 14px;
}

/* ==========================================================
   ナビゲーション
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.5s;
}

.nav.is-scrolled { background: rgba(22, 19, 16, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 48px);
  height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--on-photo);
}

.nav__logo { display: flex; flex-direction: column; gap: 6px; }

.nav__logo-img {
  height: 17px;
  width: auto;
  align-self: flex-start;
  display: block;
}

.nav__logo-jp {
  font-size: 10px;
  letter-spacing: 0.24em;
  opacity: 0.72;
}

.nav__links { display: flex; gap: 30px; margin-left: auto; }

.nav__links a {
  font-family: var(--mincho);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.nav__links a:hover { opacity: 1; }

.nav__cta {
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--washi);
  background: var(--shu);
  padding: 12px 26px;
  border-radius: 2px;
  transition: background-color 0.35s;
}

.nav__cta:hover { background: #8d3221; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}

.nav__burger span { width: 24px; height: 1px; background: var(--on-photo); transition: transform 0.35s; }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: rgba(22, 19, 16, 0.96);
  padding: 10px clamp(20px, 4.5vw, 48px) 26px;
}

.nav__mobile a {
  font-family: var(--mincho);
  color: var(--on-dark);
  font-size: 16px;
  letter-spacing: 0.14em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(239, 233, 218, 0.12);
}

.nav.is-open .nav__mobile { display: flex; }
.nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================
   ヒーロー
   ========================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  color: var(--on-photo);
}

.hero__bg { position: absolute; inset: 0; will-change: transform; }

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 湯気レイヤーを際立たせるためのコントラスト強化 */
  filter: contrast(1.15) brightness(0.93) saturate(1.06);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(22, 19, 16, 0.42), transparent 32%, transparent 55%, rgba(22, 19, 16, 0.62)),
    linear-gradient(100deg, rgba(22, 19, 16, 0.45) 0%, transparent 55%);
}

/* 縦書きの肩書き */
.hero__tate {
  position: absolute;
  top: 50%;
  right: clamp(18px, 4vw, 46px);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 0.42em;
  color: rgba(246, 241, 230, 0.88);
  z-index: 2;
}

.hero__inner {
  position: absolute;
  left: clamp(20px, 4.5vw, 48px);
  right: clamp(80px, 12vw, 160px);
  bottom: clamp(96px, 15vh, 160px);
  z-index: 2;
  max-width: var(--container);
}

.hero__en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 19px);
  letter-spacing: 0.22em;
  opacity: 0.85;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.hero__title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(34px, 6.2vw, 76px);
  line-height: 1.55;
  letter-spacing: 0.12em;
}

.hero__title-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title-line span { display: inline-block; will-change: transform; }

.hero__lead {
  margin-top: clamp(20px, 3vw, 32px);
  font-family: var(--mincho);
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: 0.2em;
  line-height: 2.4;
  opacity: 0.86;
}

.hero__foot {
  position: absolute;
  left: clamp(20px, 4.5vw, 48px);
  right: clamp(20px, 4.5vw, 48px);
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--serif-en);
  font-size: 10px;
  letter-spacing: 0.34em;
  opacity: 0.75;
}

.hero__scroll i {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--on-photo));
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ==========================================================
   フィロソフィ
   ========================================================== */
.philosophy { padding: clamp(100px, 13vw, 190px) 0; }

.phi__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}

.phi__heading {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.7;
  letter-spacing: 0.12em;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.phi__body {
  color: var(--muted);
  font-size: 14px;
  max-width: 36em;
  margin-bottom: 1.8em;
}

.phi__seasons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 30px;
}

.phi__seasons li {
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: 0.16em;
  position: relative;
  padding-left: 18px;
}

.phi__seasons li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--shu);
}

.phi__photo { position: relative; overflow: hidden; }

.phi__photo img { width: 100%; height: auto; }

/* 写真ブロック共通 */
[data-photo] { position: relative; overflow: hidden; }

/* パララックス対象は少し大きめに */
[data-para] { will-change: transform; }

/* ==========================================================
   章扉（ピン）
   ========================================================== */
.shoji { background: var(--sumi); }

.shoji__pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.shoji__bg { position: absolute; inset: -6% 0; will-change: transform; }

.shoji__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62; /* 湯けむり写真の立体感を見せつつ、白文字の可読性を保つ */
}

.shoji__words {
  position: relative;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 54px);
  line-height: 2;
  letter-spacing: 0.18em;
  color: var(--on-photo);
  text-align: center;
  will-change: transform;
}

/* ==========================================================
   撮影領域（6章）
   ========================================================== */
.field { padding: clamp(100px, 13vw, 190px) 0 0; }

.chap { padding-bottom: clamp(90px, 12vw, 170px); }

.chap__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}

.chap__head {
  grid-column: 1 / 4;
  position: relative;
  padding-top: 8px;
}

.chap--rev .chap__head { grid-column: 10 / 13; order: 3; }

.chap__num {
  font-family: var(--mincho);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 64px);
  color: var(--shu);
  line-height: 1;
  margin-bottom: 20px;
}

.chap__tate {
  position: absolute;
  top: 10px;
  right: 0;
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--muted);
}


.chap__name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.9;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  max-width: 8em;
}

.chap__desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 17em;
}

.chap__main {
  grid-column: 4 / 10;
  margin: 0;
}

.chap--rev .chap__main { grid-column: 4 / 10; order: 2; }

.chap__main img { width: 100%; height: auto; }

.chap__sub { margin: 0; }
.chap__sub img { width: 100%; height: auto; }

.chap__sub--a { grid-column: 10 / 13; margin-top: clamp(40px, 6vw, 90px); }
.chap--rev .chap__sub--a { grid-column: 1 / 4; order: 1; }

.chap__sub--b { grid-column: 2 / 5; margin-top: clamp(-60px, -4vw, -30px); }
.chap--rev .chap__sub--b { grid-column: 9 / 12; order: 4; }

/* ==========================================================
   撮影事例（墨帯）
   ========================================================== */
.works {
  background: var(--sumi);
  color: var(--on-dark);
  padding: clamp(100px, 13vw, 180px) 0;
}

.works__list { display: flex; flex-direction: column; }

.works__more {
  margin-top: 34px;
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--on-dark-soft);
}

.workcase {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(34px, 4.4vw, 52px) 4px;
  border-top: 1px solid rgba(239, 233, 218, 0.14);
}

.workcase:last-child { border-bottom: 1px solid rgba(239, 233, 218, 0.14); }

.workcase__num {
  font-family: var(--serif-en);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: #c96a52;
  padding-top: 8px;
}

.workcase__name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.workcase__name span { font-size: 0.62em; margin-left: 8px; opacity: 0.7; }

.workcase__desc {
  font-size: 13.5px;
  color: var(--on-dark-soft);
  max-width: 46em;
}

/* ==========================================================
   料金
   ========================================================== */
.plan { padding: clamp(100px, 13vw, 190px) 0; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.pcard {
  background: var(--washi);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}

.pcard__name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
}

.pcard__name span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-top: 6px;
}

.pcard__price {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(30px, 3vw, 38px);
  color: var(--shu);
  letter-spacing: 0.02em;
  margin: 18px 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--shu); /* 意図的な朱の罫線1本 */
  line-height: 1.2;
}

.pcard__price i { font-size: 0.55em; margin-right: 2px; }
.pcard__price small { font-size: 12px; color: var(--muted); font-family: var(--gothic); font-weight: 400; margin-left: 8px; letter-spacing: 0.08em; }

.pcard__list { list-style: none; flex: 1; }

.pcard__list li {
  position: relative;
  font-size: 13px;
  padding: 5px 0 5px 20px;
  line-height: 1.9;
}

.pcard__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--paper-deep);
}

.pcard__note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}

.pcard--wari { background: var(--sumi-soft); color: var(--on-dark); }
.pcard--wari .pcard__name span { color: var(--on-dark-soft); }
.pcard--wari .pcard__price { color: #d0785f; border-bottom-color: #d0785f; }
.pcard--wari .pcard__note { color: var(--on-dark-soft); }
.pcard--wari .pcard__list li::before { background: rgba(239, 233, 218, 0.25); }

.plan__fine {
  margin: clamp(28px, 3.4vw, 40px) 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 2.1;
}

.scene__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(30px, 4vw, 48px);
}

.scene { background: var(--washi); padding: clamp(28px, 3vw, 40px); }

.scene__title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.scene__sub {
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--shu);
  margin: 22px 0 10px;
}

.scene__list { list-style: none; }

.scene__list li {
  position: relative;
  font-size: 13px;
  padding: 4px 0 4px 20px;
}

.scene__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 14px;
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--paper-deep);
}

.scene__list--inc li::before { background: var(--shu); opacity: 0.55; }

/* ==========================================================
   コンタクト（墨帯）
   ========================================================== */
.contact {
  background: var(--sumi);
  color: var(--on-dark);
  padding: clamp(100px, 13vw, 180px) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: start;
}

.contact__lead {
  margin-top: 24px;
  font-size: 14px;
  color: var(--on-dark-soft);
  line-height: 2.3;
}

.form { display: flex; flex-direction: column; gap: 26px; }

.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }

.form-field { display: flex; flex-direction: column; gap: 10px; }

.form-field label {
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.req {
  font-size: 10px;
  color: #d0785f;
  margin-left: 10px;
  letter-spacing: 0.2em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--gothic);
  font-size: 15px;
  color: var(--on-dark);
  background: rgba(239, 233, 218, 0.06);
  border: 1px solid rgba(239, 233, 218, 0.22);
  border-radius: 2px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s, background-color 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #c96a52;
  background: rgba(239, 233, 218, 0.1);
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--on-dark-soft);
  cursor: pointer;
}

.form-consent input { width: 17px; height: 17px; accent-color: var(--shu); }
.form-consent a { color: #d0785f; text-decoration: underline; text-underline-offset: 3px; }

.btn-submit {
  align-self: flex-start;
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: var(--washi);
  background: var(--shu);
  border: 0;
  border-radius: 2px;
  padding: 18px 64px;
  cursor: pointer;
  transition: background-color 0.35s;
}

.btn-submit:hover { background: #8d3221; }
.btn-submit:disabled { opacity: 0.6; }

.form-note { font-size: 13px; color: #d0785f; min-height: 1.4em; }

/* ==========================================================
   フッター
   ========================================================== */
.footer {
  background: #100d0a;
  color: var(--on-dark);
  padding: clamp(48px, 6vw, 76px) 0 34px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__logo-img {
  height: 20px;
  width: auto;
  display: block;
}

.footer__jp { margin-top: 10px; font-size: 12px; color: var(--on-dark-soft); letter-spacing: 0.1em; }
.footer__jp a { text-decoration: underline; text-underline-offset: 3px; }

.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }

.footer__links a {
  font-family: var(--mincho);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--on-dark-soft);
  transition: color 0.3s;
}

.footer__links a:hover { color: var(--on-dark); }

.footer__copy {
  text-align: center;
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(239, 233, 218, 0.4);
  margin-top: 48px;
}

/* ==========================================================
   下層ページ（規約・プライバシー）
   ========================================================== */
.doc-head {
  background: var(--sumi);
  color: var(--on-dark);
  padding: clamp(140px, 18vw, 200px) 0 clamp(48px, 6vw, 72px);
}

.doc-head h1 {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: 0.14em;
}

.doc-body { padding: clamp(56px, 8vw, 100px) 0 clamp(90px, 12vw, 150px); }

.doc-body .container { max-width: 860px; }

.doc-body h2 {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.1em;
  margin: 44px 0 14px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}

.doc-body p, .doc-body li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 2.2;
  margin-bottom: 12px;
}

.doc-body ol { padding-left: 1.6em; }

.doc-body .doc-sign {
  margin-top: 40px;
  font-family: var(--mincho);
  color: var(--ink);
}

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .phi__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .chap__grid { grid-template-columns: repeat(6, 1fr); }
  .chap__head { grid-column: 1 / 7 !important; order: 0 !important; margin-bottom: 8px; }
  .chap__tate { position: static; writing-mode: horizontal-tb; margin-bottom: 8px; letter-spacing: 0.3em; }
  .chap__name { max-width: none; }
  .chap__main { grid-column: 1 / 7 !important; order: 1 !important; }
  .chap__sub--a { grid-column: 1 / 4 !important; order: 2 !important; margin-top: 0; }
  .chap__sub--b { grid-column: 4 / 7 !important; order: 3 !important; margin-top: 0; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
  /* backdrop-filter はモバイルGPUのスクロール負荷が大きいため不透過背景で代替 */
  .nav { background: rgba(22, 19, 16, 0.95); }
  .hero__tate { display: none; }
  /* 縦書き演出が消える分、右余白を戻して見出しを1行に収める */
  .hero__inner { right: clamp(20px, 4.5vw, 48px); }
  .hero__title { font-size: clamp(30px, 8.6vw, 34px); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .scene__grid { grid-template-columns: 1fr; }
  .workcase { grid-template-columns: 56px minmax(0, 1fr); }
  .btn-submit { width: 100%; }
}

/* ==========================================================
   reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .cursor { display: none !important; }
  .steam-canvas, .steam-local { display: none !important; }
  .loader { display: none; }
  body.is-loading { overflow: auto; }
}
