/* ツクヨミ先生 公式サイト v2
   勝負どころ: 絵。モチーフ: 夜のビロードと金糸（設計書 site/docs/redesign_spec.md）
   色は 紫・金・生成り の3系統。濃い紫と明るい金は、基の色から混ぜて作る（同系の段） */

:root {
  --night: #26305A;
  --gold: #B08A2E;
  --cream: #F3EBDD;
  --night-deep: color-mix(in srgb, var(--night) 79%, black);
  --gold-light: color-mix(in srgb, var(--gold) 60%, white);
  --ink: #1B1A2E;
  --mist: color-mix(in srgb, var(--ink) 62%, var(--cream));

  --f-min: "Shippori Mincho", serif;
  --f-go: "Zen Kaku Gothic New", sans-serif;
  --f-en: "Cormorant Garamond", serif;
  --f-manga: "Shippori Antique B1", sans-serif;

  --hh: clamp(720px, 100vh, 1080px);
  --arc: 5.5vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--f-go);
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
summary, figcaption { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cream); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 16px; }

.wrap { width: min(1200px, 100% - 8vw); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 8vw); }
.night { background: var(--night); color: var(--cream); }
.deep { background: var(--night-deep); color: var(--cream); }
.sheet { background: var(--cream); color: var(--ink); }

/* ---------- 文字 ---------- */
.label { font-family: var(--f-en); font-weight: 500; font-size: 15px; letter-spacing: 0.2em; color: var(--gold); margin: 0 0 6px; line-height: 1.4; }
.night .label, .deep .label { color: var(--gold-light); }
.h2 { font-family: var(--f-min); font-weight: 500; font-size: 40px; line-height: 1.45; letter-spacing: 0.04em; margin: 0 0 14px; }
.h2--s { font-size: 32px; }
.h2--promise { font-size: 36px; }
.h2--about { font-size: clamp(32px, 3vw, 44px); }
.h3 { font-family: var(--f-min); font-weight: 500; font-size: 28px; line-height: 1.5; letter-spacing: 0.04em; margin: 0 0 14px; }
.sub { font-size: 17px; margin: 0; }
.small { font-size: 15px; color: var(--mist); margin: 18px 0 0; }
.small--cream { color: rgba(243, 235, 221, 0.75); }

/* 金の1px下線が伸びるリンク */
.ul {
  text-decoration: none;
  background: linear-gradient(var(--gold-light), var(--gold-light)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.2s;
}
.ul:hover, .ul:focus-visible { background-size: 100% 1px; }

/* ---------- ボタン（金の楕円だけ） ---------- */
.btn {
  --knock: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  background: var(--gold); color: var(--night);
  border: 1px solid var(--gold); border-radius: 999px;
  font-family: var(--f-go); font-weight: 500; letter-spacing: 0.04em; line-height: 1.3;
  text-decoration: none; text-align: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { --knock: var(--gold-light); background: var(--gold-light); border-color: var(--gold-light); }
.btn--s { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--l { height: 64px; width: 100%; max-width: 360px; padding: 0 24px; font-size: 20px; }
.btn--m { height: 60px; padding: 0 36px; font-size: 18px; }
.btn--full { width: 100%; height: 54px; padding: 0 16px; font-size: 16px; }
.btn--line { --knock: var(--night-deep); background: transparent; color: var(--gold-light); border-color: var(--gold-light); }
.btn--line:hover { --knock: var(--night-deep); background: transparent; color: var(--cream); border-color: var(--cream); }
.lm { width: 1.35em; height: 1.35em; flex: none; }

/* ---------- ヘッダー ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 72px; padding: 0 4vw;
  display: flex; align-items: center; gap: 32px;
  transition: background-color 0.4s;
}
.hdr.is-scrolled { background: rgba(38, 48, 90, 0.92); }
.hdr__logo { font-family: var(--f-min); font-weight: 500; font-size: 22px; letter-spacing: 0.08em; text-decoration: none; margin-right: auto; }
.hdr__nav { display: flex; gap: 28px; font-size: 15px; }
.hdr__nav a { text-decoration: none; }

/* ---------- 1. ファーストビュー ---------- */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; min-height: 720px; max-height: 1080px;
  background: var(--night-deep);
}
.hero picture { display: contents; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.candle {
  position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: soft-light; opacity: 0.12;
  background: radial-gradient(55% 50% at 62% 60%, rgba(217, 188, 106, 1), rgba(217, 188, 106, 0) 72%);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.08; } 50% { opacity: 0.16; } }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(30, 37, 72, 0.5) 0, rgba(30, 37, 72, 0) 150px),
    linear-gradient(90deg, rgba(30, 37, 72, 0.62) 0%, rgba(30, 37, 72, 0.55) 24%, rgba(30, 37, 72, 0) 44%);
}
.hero__title {
  position: absolute; left: 6vw; top: calc(72px + var(--hh) * 0.04); margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--f-min); font-weight: 500;
  font-size: clamp(44px, min(5.2vw, calc((var(--hh) * 0.935 - 300px - var(--arc)) / 7.42)), 104px);
  line-height: 1.15; letter-spacing: 0.06em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__title .sp-only { display: none; }
.hero__block { position: absolute; left: 6vw; bottom: calc(var(--arc) + var(--hh) * 0.025); width: min(460px, 34vw); }
.hero__lead { font-size: 18px; line-height: 1.6; margin: 0 0 4px; }
.hero__lead span { display: inline-block; }
.hero__ai { font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.hero__note { font-size: 14px; margin: 10px 0 0; line-height: 1.6; }
.hero__en { position: absolute; right: 6vw; bottom: calc(var(--arc) + 14px); margin: 0; font-family: var(--f-en); font-style: italic; font-weight: 500; font-size: 15px; letter-spacing: 0.08em; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__img { object-position: 66% 50%; }
}

/* ---------- 2. 漫画（生成りの便箋・上端は三日月の弧） ---------- */
.sheet--arc {
  position: relative; z-index: 2;
  margin-top: calc(var(--arc) * -1);
  padding: calc(var(--arc) + 32px) 0 110px;
  -webkit-mask: url(/img/arc.svg) top / 100% var(--arc) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--arc) - 1px) / 100% 100% no-repeat;
  mask: url(/img/arc.svg) top / 100% var(--arc) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--arc) - 1px) / 100% 100% no-repeat;
}
.arcline { position: absolute; top: 0; left: 0; width: 100%; height: var(--arc); fill: none; stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; overflow: visible; }
.arcline path { vector-effect: non-scaling-stroke; }

.panels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px 16px; margin: 44px 0 40px; }
.pn { position: relative; margin: 0; }
.pn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pn1, .pn2, .pn5, .pn6 { border: 1.5px solid var(--night); }
.pn1 { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
.pn2 { grid-column: 8 / 13; aspect-ratio: 1; align-self: center; }
.pn3 { grid-column: 1 / 5; grid-row: 2; }
.pn4 { grid-column: 5 / 13; grid-row: 2; aspect-ratio: 4 / 3; margin-left: -48px; }
.pn5 { grid-column: 1 / 5; aspect-ratio: 1; align-self: start; }
.pn6 { grid-column: 5 / 13; aspect-ratio: 16 / 9; }
.slant { height: 100%; background: var(--night); padding: 1.5px; }
.slant-l .slant, .slant-l .slant img { clip-path: polygon(0 0, 100% 0, calc(100% - 48px) 100%, 0 100%); }
.slant-r .slant, .slant-r .slant img { clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%); }

/* 吹き出し（画像に描かず、HTMLで重ねる） */
.bb { position: absolute; max-width: 62%; font-family: var(--f-manga); font-size: 17px; line-height: 1.6; color: var(--ink); letter-spacing: 0.02em; }
.bb span { display: block; padding: 0.5em 0.9em; background: #fff; text-wrap: pretty; }
.bb--mono span { border: 1px solid var(--night); }
.bb--talk { background: var(--night); padding: 1px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.bb--talk span { clip-path: polygon(9.6px 0, calc(100% - 9.6px) 0, 100% 9.6px, 100% calc(100% - 9.6px), calc(100% - 9.6px) 100%, 9.6px 100%, 0 calc(100% - 9.6px), 0 9.6px); }
.bb--round { background: var(--night); padding: 1px; clip-path: ellipse(50% 50%); font-size: 15px; }
.bb--round span { clip-path: ellipse(50% 50%); padding: 1.1em 1.7em; }
.bb--small { font-size: 15px; }
.pn2 .bb, .pn5 .bb { max-width: 84%; }
.js .pn .bb { opacity: 0; transition: opacity 0.3s; }
.js .pn.is-on .bb { opacity: 1; }

.manga__end { font-size: 18px; margin: 0 0 22px; }

/* ---------- 3. 人物（絵が右端からはみ出す） ---------- */
.about { position: relative; overflow: hidden; padding: 120px 0 140px; min-height: calc(240px + min(90vh, 900px)); }
.about__pic { position: absolute; top: 120px; right: -8vw; width: 56vw; height: min(90vh, 900px); margin: 0; }
.about__pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.about__text { position: relative; margin-left: 8vw; padding-top: 120px; max-width: min(34em, 40vw); }
.about__honest { font-size: 16px; color: rgba(243, 235, 221, 0.8); }
.goldline { border: 0; height: 1px; width: 120px; background: var(--gold); margin: 32px 0; }

/* ---------- 4. 流れ（左右交互・段違い） ---------- */
.flow { padding: 24px 0 120px; }
.steps { list-style: none; margin: 72px 0 0; padding: 0 4vw; }
.step { display: grid; grid-template-columns: 46vw 30vw; column-gap: 6vw; align-items: center; margin: 0 0 96px; }
.step--r { grid-template-columns: 30vw 46vw; justify-content: end; margin-top: 192px; }
.step--r .step__pic { order: 2; }
.step__pic { position: relative; margin: 0; width: 46vw; height: 32vw; }
.step__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.step__no { position: absolute; z-index: 1; top: -0.62em; left: -0.18em; font-family: var(--f-en); font-weight: 500; font-size: 96px; line-height: 1; color: var(--gold-light); }
.step--r .step__no { left: auto; right: -0.12em; }
.step__text p { margin: 0; }

/* ---------- 5. 料金（金の額縁3枚・階段） ---------- */
.price { padding: 72px 0; }
.divider { display: block; width: min(640px, 80vw); height: auto; margin: 0 auto 48px; }
.divider--b { margin: 64px auto 0; }
.frames { --cw: clamp(280px, 27vw, 400px); display: flex; justify-content: center; align-items: flex-start; gap: 3vw; margin-top: 48px; padding: 0 4vw; }
.frame {
  width: var(--cw); display: flex; flex-direction: column;
  border-style: solid;
  border-width: calc(var(--cw) * 0.51) calc(var(--cw) * 0.09) calc(var(--cw) * 0.135);
  border-image: url(/img/ornament_frame.webp) 34% 9% 9% / calc(var(--cw) * 0.51) calc(var(--cw) * 0.09) calc(var(--cw) * 0.135) stretch;
  padding: 0 calc(var(--cw) * 0.035) calc(var(--cw) * 0.03);
}
.frame:nth-child(2) { margin-top: 48px; }
.frame:nth-child(3) { margin-top: 96px; }
.frame__no { margin: calc(var(--cw) * -0.34) 0 0; height: calc(var(--cw) * 0.12); line-height: calc(var(--cw) * 0.12); text-align: center; font-family: var(--f-en); font-weight: 500; font-size: 30px; letter-spacing: 0.1em; color: var(--gold-light); }
.frame__pic { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; margin-top: calc(var(--cw) * 0.07); }
.frame__name { font-family: var(--f-min); font-weight: 500; font-size: 24px; line-height: 1.45; margin: 20px 0 2px; }
.frame__price { font-family: var(--f-en), var(--f-min); font-weight: 500; font-size: 56px; line-height: 1.15; color: var(--gold-light); margin: 0; }
.yen { font-family: var(--f-min); font-size: 22px; margin: 0 0.1em; }
.frame__add { font-size: 14px; margin: 2px 0 0; color: rgba(243, 235, 221, 0.8); }
.frame__body { font-size: 16px; line-height: 1.8; margin: 14px 0 0; }
.frame__note { font-size: 14px; line-height: 1.75; margin: 12px 0 0; color: rgba(243, 235, 221, 0.7); }
.frame .btn { margin-top: 22px; }
.price__end { width: min(1200px, 100% - 8vw); margin: 56px auto 0; text-align: right; font-size: 15px; }

/* ---------- 6. カード ---------- */
.cards { padding: 100px 0 84px; }
.deck {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 4vw;
  padding: 24px 4vw 18px; margin-top: 16px;
  scrollbar-color: var(--gold) transparent;
}
.deck img { flex: 0 0 calc((100% - 6 * 16px) / 7); width: calc((100% - 6 * 16px) / 7); aspect-ratio: 600 / 1062; height: auto; object-fit: cover; border: 1px solid var(--gold); scroll-snap-align: start; }

/* ---------- 7. 曜日（アーチ窓） ---------- */
.days { padding: 100px 0; }
.week { list-style: none; margin: 48px 0 36px; padding: 0 4vw; display: flex; justify-content: space-between; gap: 1.6vw; }
.week li { flex: 0 0 11vw; }
.week figure { margin: 0; }
.arch { position: relative; width: 100%; aspect-ratio: 11 / 15; clip-path: inset(0 round 50% 50% 0 0 / 36.67% 36.67% 0 0); }
.arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.day { position: absolute; left: 0; bottom: 0; width: 40px; height: 40px; display: grid; place-items: center; background: var(--night-deep); color: var(--gold-light); font-family: var(--f-min); font-weight: 500; font-size: 20px; line-height: 1; }
.week figcaption { font-size: 14px; line-height: 1.55; margin-top: 10px; }
.days__hayami { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-size: 17px; margin: 0 0 32px; }
.sns { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; font-family: var(--f-en); font-weight: 500; font-size: 20px; letter-spacing: 0.06em; }
.sns a { color: var(--gold-light); background-size: 100% 1px; }
.sns a:hover { color: var(--cream); }

/* ---------- 8. 正直な約束 ---------- */
.promise { padding: 96px 0 48px; border-top: 1px solid var(--gold); }
.promise__face { display: block; width: 96px; height: 96px; clip-path: circle(50%); margin: 0 0 22px; }
.vows { margin-top: 26px; }
.vows p { font-size: 18px; line-height: 2; margin: 0; }
.vows p + p::before { content: "☾"; display: block; color: var(--gold); font-size: 22px; line-height: 1; margin: 16px 0; }

/* ---------- 9. よくある質問 ---------- */
.faq { padding: 48px 0 120px; }
.faq .h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid rgba(38, 48, 90, 0.1); }
.faq details:first-of-type { border-top: 1px solid rgba(38, 48, 90, 0.1); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-size: 18px; font-weight: 500; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 17px; line-height: 1.9; margin: 0 0 24px; }

/* ---------- 10. 締め ---------- */
.close { position: relative; overflow: hidden; height: 80vh; min-height: 600px; display: flex; align-items: center; justify-content: flex-start; }
.close picture { display: contents; }
.close__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.close__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(30, 37, 72, 0.86) 0, rgba(30, 37, 72, 0.7) 32%, rgba(30, 37, 72, 0) 52%); }
.close__text { position: relative; width: min(560px, 38vw); margin-left: 6vw; }
.close__h { font-family: var(--f-min); font-weight: 500; font-size: clamp(34px, 3.3vw, 48px); line-height: 1.4; letter-spacing: 0.04em; margin: 0 0 16px; }
.close__p { font-size: 18px; }
.close__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; margin-top: 28px; }
.qr { margin: 0; font-size: 14px; line-height: 1.4; text-align: center; }
.qr img { display: block; width: 160px; height: 160px; padding: 8px; background: #fff; margin-bottom: 6px; }

/* ---------- 11. フッター ---------- */
.ftr { padding: 64px 4vw 36px; border-top: 1px solid var(--gold); font-size: 15px; line-height: 1.9; }
.ftr__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.ftr p { margin: 0 0 6px; }
.ftr__logo { font-family: var(--f-min); font-weight: 500; font-size: 22px; letter-spacing: 0.08em; }
.ftr__h { color: var(--gold-light); letter-spacing: 0.1em; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 6px; }
.ftr a { text-decoration: none; }
.ftr__copy { max-width: 1200px; margin: 44px auto 0 !important; font-size: 13px; color: rgba(243, 235, 221, 0.6); }

/* 常時バー（スマホ） */
.bar { display: none; }

/* ---------- 出現（不透明度だけ。跳ねない） ---------- */
.js .reveal { opacity: 0; transition: opacity 0.6s; }
.js .reveal.is-in { opacity: 1; }
.js .hero__title { animation: fadein 1.2s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* =================================================== タブレット・スマホ */
@media (max-width: 1023px) {
  .hdr { height: 56px; padding: 0 16px; }
  .hdr__nav { display: none; }
  .hdr__logo { font-size: 20px; }
  .btn--s { height: 38px; padding: 0 14px; font-size: 14px; }

  .hero { height: 100svh; min-height: 640px; max-height: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 16px calc(var(--arc) + 16px + env(safe-area-inset-bottom)); }
  .hero__img { object-position: 50% 30%; }
  .hero__shade { background: linear-gradient(180deg, rgba(30, 37, 72, 0.5) 0, rgba(30, 37, 72, 0) 110px), linear-gradient(0deg, rgba(30, 37, 72, 0.95) 0, rgba(30, 37, 72, 0.88) 290px, rgba(30, 37, 72, 0) 450px); }
  .hero__title { position: relative; left: auto; top: auto; writing-mode: horizontal-tb; font-size: 32px; line-height: 1.45; letter-spacing: 0.04em; margin: 0 0 12px; }
  .hero__title .pc-only { display: none; }
  .hero__title .sp-only { display: block; }
  .hero__block { position: relative; left: auto; bottom: auto; width: 100%; }
  .hero__lead { font-size: 15px; }
  .hero__ai { font-size: 13px; margin-bottom: 16px; }
  .hero__note { font-size: 13px; text-align: center; }
  .btn--l { max-width: 520px; height: 56px; font-size: 18px; }
  .hero__note { max-width: 520px; }
  .hero__en { display: none; }

  .bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(60px + env(safe-area-inset-bottom));
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: var(--night); border-top: 1px solid rgba(176, 138, 46, 0.6);
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .bar.is-on { opacity: 1; visibility: visible; }
  .btn--bar { flex: 1; height: 44px; font-size: 16px; }
  .ftr { padding-bottom: calc(36px + 60px + env(safe-area-inset-bottom)); }
}

@media (max-width: 899px) {
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
  .h2 { font-size: 28px; }
  .h2--s { font-size: 26px; }
  .h2--promise { font-size: 28px; }
  .h2--about { font-size: 27px; }
  .btn--m { width: 100%; padding: 0 16px; font-size: 17px; }
  .h3 { font-size: 24px; }
  body { font-size: 17px; }

  :root { --arc: 10vw; }
  .sheet--arc { padding-bottom: 88px; }

  /* 漫画: 縦1列。吹き出しは絵の下に（顔を隠さない） */
  .panels { display: flex; flex-direction: column; gap: 28px; margin: 32px 0; }
  .pn { aspect-ratio: auto !important; margin-left: 0 !important; }
  .pn img { height: auto; }
  .pn1 img { aspect-ratio: 4 / 3; }
  .pn2 img, .pn5 img { aspect-ratio: 1; }
  .pn3 img { aspect-ratio: 3 / 4; }
  .pn4 img { aspect-ratio: 4 / 3; }
  .pn6 img { aspect-ratio: 16 / 9; }
  .pn2 { width: 72%; align-self: flex-end; }
  .pn5 { width: 72%; align-self: flex-start; }
  .pn3 { width: 86%; }
  .pn1, .pn2, .pn5, .pn6 { border: 0; }
  .pn > img, .slant { border: 1.5px solid var(--night); }
  .slant { padding: 0; }
  .slant-l .slant, .slant-l .slant img, .slant-r .slant, .slant-r .slant img { clip-path: none; }
  .pn { display: flex; flex-direction: column; align-items: flex-start; }
  .bb { position: relative; inset: auto !important; max-width: 92%; font-size: 15px; margin-top: 8px; }
  .pn > img + .bb, .slant + .bb { margin-top: -26px; margin-left: 10px; }
  .bb--talk { align-self: flex-end; margin-right: 10px; }
  .slant + .bb--talk, .pn > img + .bb--talk { margin-left: 0; }
  .bb--round { align-self: center; }

  .about { padding: 0 0 88px; min-height: 0; }
  .about__pic { position: static; width: 100%; height: auto; display: block; }
  .about__pic img { aspect-ratio: 4 / 5; height: auto; }
  .about__text { margin: 0 16px; padding-top: 36px; max-width: none; }

  .flow { padding: 8px 0 72px; }
  .steps { margin-top: 48px; padding: 0 16px; }
  .step, .step--r { grid-template-columns: 1fr; row-gap: 22px; margin: 0 0 72px; }
  .step--r .step__pic { order: 0; }
  .step__pic { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .step__no { font-size: 72px; left: -0.04em; }
  .step--r .step__no { right: -0.05em; }

  .frames { --cw: min(86vw, 440px); flex-direction: column; gap: 44px; padding: 0 16px; }
  .frame:nth-child(n) { margin-top: 0; }
  .frame:nth-child(n) { align-self: center; }   /* スマホは3枚とも中央（2026-10-18 川井さん） */
  .price__end { width: calc(100% - 32px); text-align: center; }

  .cards { padding: 80px 0 64px; }
  .deck { gap: 12px; padding: 18px 16px 16px; scroll-padding-left: 16px; }
  .deck img { flex-basis: calc((100% - 2 * 12px) / 2.4); width: calc((100% - 2 * 12px) / 2.4); }

  .days { padding: 80px 0; }
  .week { overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; gap: 12px; padding: 0 16px 12px; scroll-padding-left: 16px; scrollbar-color: var(--gold) transparent; }
  .week li { flex: 0 0 calc((100% - 2 * 12px) / 2.2); scroll-snap-align: start; }

  .promise { padding-top: 72px; }

  .close { height: 100svh; min-height: 620px; align-items: flex-end; justify-content: stretch; }
  .close__img { object-position: 50% 30%; }
  .close__shade { background: linear-gradient(0deg, rgba(30, 37, 72, 0.95) 0, rgba(30, 37, 72, 0.88) 280px, rgba(30, 37, 72, 0) 440px); }
  .close__text { width: 100%; margin: 0; padding: 0 16px 48px; }
  .close__h { font-size: 29px; }
  .close__p { font-size: 16px; }
  .qr { display: none; }

  .ftr__cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 389px) {
  .hero__title { font-size: 30px; }
}

/* ---------- 動きを減らす設定では、全部止める ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .candle { opacity: 0.1 !important; }
  .js .reveal, .js .pn .bb, .js .hero__title { opacity: 1 !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 9.5 毎日の占い（ブログ）: FAQ の下の静かな欄。線で区切るだけ ---------- */
.latest { padding: 0 0 120px; }
.latest .h2 { margin-bottom: 6px; }
.latest__lead { font-size: 16px; color: var(--mist); margin: 0 0 20px; }
.latest__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(38, 48, 90, 0.1); }
.latest__list li { border-bottom: 1px solid rgba(38, 48, 90, 0.1); }
.latest__list a { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; padding: 14px 0; text-decoration: none; }
.latest__list img { width: 54px; height: 72px; object-fit: cover; display: block; }
.latest__list time { display: block; font-size: 14px; color: var(--gold); letter-spacing: 0.04em; line-height: 1.5; }
.lt-t { display: block; font-family: var(--f-min); font-weight: 500; font-size: 17px; line-height: 1.6; }
.latest__list a:hover .lt-t, .latest__list a:focus-visible .lt-t { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.latest__more { margin: 18px 0 0; font-size: 16px; }
.latest__more a { color: var(--night); }

/* ---------- 絵の上に置く文字の色（必ず最後に置く・後ろの指定に負けないため） ---------- */
.hero__title, .hero__lead, .hero__note, .close__h, .close__p, .qr figcaption { color: var(--cream); }
.hero__ai { color: rgba(243, 235, 221, 0.78); }
.hero__en { color: var(--gold-light); }
.hdr__logo, .hdr__nav a { color: var(--cream); }
