/* =========================================================
   RESTLUXE MEDICAL — Design System v2.0
   Concept: Porcelain & Champagne(女性目線・清潔感・誠実性)
   v1の情報設計を維持したまま、寄り添い型トンマナへ全面改修
   ========================================================= */
:root {
  --ivory: #fcfbf8;        /* 磁器白 */
  --paper: #ffffff;
  --shell: #f4efe8;        /* シェルベージュ */
  --ink: #463f36;          /* ウォームグレー(黒を使わない) */
  --ink-soft: #6b6357;
  --muted: #a39a8a;
  --gold: #c1a26a;         /* シャンパンゴールド */
  --gold-deep: #9a7d4a;
  --gold-pale: #f6efe2;
  --rose: #c69a92;         /* スモーキーローズ */
  --rose-pale: #f9f1ef;
  --line: #ece5d8;
  --green: #3e6b4f;
  --alert-bg: #fbf4f1;
  --alert-line: #e3c3b8;
  --serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
  --maxw: 1080px;
  --radius: 14px;
  --pill: 999px;
  --shadow: 0 10px 40px rgba(70, 63, 54, .07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 2.0;
  letter-spacing: .05em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { opacity: .8; }
::selection { background: var(--rose-pale); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
section.tight { padding: 60px 0; }
section.alt { background: var(--paper); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.7; letter-spacing: .08em; }
h1 { font-size: clamp(1.4rem, 3.4vw, 2.05rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.12rem; margin-bottom: .8rem; color: var(--ink); }
p { margin-bottom: 1.3rem; color: var(--ink-soft); }
.lead { font-size: 1.05rem; color: var(--ink-soft); }
.en { font-family: var(--serif); color: var(--gold); font-size: .74rem; letter-spacing: .38em; text-transform: uppercase; display: block; margin-bottom: .8rem; }
.center { text-align: center; }
.note { font-size: .82rem; color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }

h2.sec-title { position: relative; padding-bottom: .9rem; }
h2.sec-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--rose)); }
.center h2.sec-title::after, h2.sec-title.center::after { left: 50%; transform: translateX(-50%); }
/* センター揃えセクション見出し(v2推奨) */
.sec-head { text-align: center; margin-bottom: 2.6rem; }
.sec-head h2 { margin-bottom: .6rem; }
.sec-head h2::after { left: 50%; transform: translateX(-50%); }
.sec-head p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 251, 248, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; flex-direction: column; line-height: 1.25; flex-shrink: 0; }
.brand a { color: var(--ink); }
.brand .brand-name { font-family: var(--serif); font-size: 1.02rem; letter-spacing: .2em; font-weight: 600; }
.brand .brand-name em { color: var(--gold); font-style: normal; }
.brand .brand-sub { display: block; font-size: .6rem; color: var(--muted); letter-spacing: .14em; }
.gnav ul { display: flex; gap: 1.25rem; list-style: none; align-items: center; flex-wrap: nowrap; }
.gnav a { color: var(--ink-soft); font-size: .84rem; letter-spacing: .05em; white-space: nowrap; }
.gnav a:hover { color: var(--gold-deep); opacity: 1; }
.gnav .nav-cta { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; padding: .55rem 1.3rem; border-radius: var(--pill); font-size: .82rem; box-shadow: 0 4px 14px rgba(154, 125, 74, .25); }
.gnav .nav-cta:hover { opacity: .9; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; border-radius: 2px; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .gnav { position: fixed; inset: 72px 0 auto 0; background: var(--ivory); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: .35s ease; max-height: calc(100vh - 72px); overflow-y: auto; box-shadow: var(--shadow); }
  .gnav.open { transform: translateY(0); }
  .gnav ul { flex-direction: column; gap: 0; padding: 1rem 0; }
  .gnav li { width: 100%; text-align: center; }
  .gnav a { display: block; padding: .8rem 0; }
  .gnav .nav-cta { margin: .6rem 2rem; }
}

/* ---------- Hero (トップFV・イメージPV型) ---------- */
.hero { position: relative; padding: 84px 0 88px; background: linear-gradient(160deg, #fdfcfa 0%, var(--shell) 58%, var(--rose-pale) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .deco { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.hero .deco-1 { width: 420px; height: 420px; background: var(--gold-pale); top: -140px; right: -80px; }
.hero .deco-2 { width: 340px; height: 340px; background: var(--rose-pale); bottom: -160px; left: -100px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; } }
.hero h1 { margin-bottom: 1.2rem; font-size: .82rem; font-family: var(--sans); font-weight: 500; color: var(--muted); letter-spacing: .1em; }
.hero .hero-copy { font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2.15rem); line-height: 2; color: var(--ink); margin-bottom: 1.6rem; font-weight: 500; }
.hero .hero-copy em { font-style: normal; color: var(--gold-deep); }
.hero .hero-note { font-size: .92rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.badge { font-size: .76rem; background: rgba(255, 255, 255, .8); color: var(--gold-deep); border: 1px solid var(--gold); border-radius: var(--pill); padding: .28rem 1rem; letter-spacing: .08em; }
.badge.badge-rose { color: #a5746b; border-color: var(--rose); }

/* メインビジュアル(写真確定までのイメージPV枠) */
.hero-visual { position: relative; }
.hero-visual .pv-main { aspect-ratio: 4 / 5; border-radius: 24px 120px 24px 24px; overflow: hidden; box-shadow: var(--shadow); }
.hero-visual .pv-sub { position: absolute; left: -28px; bottom: -28px; width: 44%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--ivory); box-shadow: var(--shadow); }
@media (max-width: 900px) { .hero-visual .pv-main { aspect-ratio: 16 / 11; border-radius: 20px 80px 20px 20px; } .hero-visual .pv-sub { display: none; } }

/* 写真スロット(実写撮影までのプレースホルダー) */
.photo-slot { width: 100%; height: 100%; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; background: linear-gradient(150deg, #f2ece1 0%, #fdf9f3 45%, #f7eae6 100%); color: var(--muted); font-size: .75rem; letter-spacing: .12em; }
.photo-slot::before { content: "❀"; font-size: 1.3rem; color: var(--rose); }
.photo-slot span { border-bottom: 1px dashed var(--gold); padding-bottom: 2px; }

/* ---------- Page hero (下層) ---------- */
.page-hero { position: relative; padding: 60px 0 48px; background: linear-gradient(160deg, var(--paper) 0%, var(--shell) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: var(--gold-pale); filter: blur(50px); opacity: .55; pointer-events: none; }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .9rem; }
.page-hero .answer-first { background: rgba(255, 255, 255, .75); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.4rem; font-size: .94rem; margin-top: 1.2rem; }
.page-hero .answer-first p { margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 12px 0; font-size: .76rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }

/* ---------- Buttons / CTA ---------- */
.btn { display: inline-block; text-align: center; padding: 1rem 2.2rem; border-radius: var(--pill); font-size: .94rem; letter-spacing: .08em; transition: .3s; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; box-shadow: 0 6px 18px rgba(154, 125, 74, .28); }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; box-shadow: 0 6px 18px rgba(154, 125, 74, .28); }
.btn-gold:hover { opacity: .88; transform: translateY(-1px); }
.btn-line { background: #06c755; color: #fff; box-shadow: 0 6px 18px rgba(6, 199, 85, .22); }
.btn-line:hover { background: #05a648; opacity: 1; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold-pale); opacity: 1; }
.btn-block { display: block; width: 100%; }

.cta-band { background: linear-gradient(150deg, var(--gold-pale) 0%, #fdfbf7 45%, var(--rose-pale) 100%); border-top: 1px solid var(--line); padding: 76px 0; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--ink-soft); }
.cta-band .en { color: var(--gold-deep); }
.cta-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: 1.8rem; }
.cta-tel { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); letter-spacing: .1em; }
.cta-tel small { display: block; font-family: var(--sans); font-size: .74rem; color: var(--muted); letter-spacing: .06em; }

/* inline CTA (ページ中部) */
.cta-inline { background: var(--rose-pale); border: 1px solid var(--rose); border-radius: var(--radius); padding: 1.8rem; text-align: center; margin: 2.6rem 0; }
.cta-inline p { margin-bottom: 1rem; font-family: var(--serif); color: var(--ink); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .3s; }
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 1.04rem; }
.card p { font-size: .88rem; margin-bottom: .8rem; flex: 1; }
.card .card-link { font-size: .84rem; color: var(--gold-deep); margin-top: auto; }
.card .card-link::after { content: " →"; }
.card .tag { font-size: .68rem; color: var(--gold); letter-spacing: .24em; display: block; margin-bottom: .5rem; font-family: var(--serif); }
.card .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card .icon svg { width: 26px; height: 26px; stroke: var(--gold-deep); fill: none; stroke-width: 1.4; }

/* 悩みから探す */
.worry-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .7rem; }
.worry-list a { background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: .85rem 1.4rem; font-size: .86rem; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; transition: .25s; box-shadow: 0 3px 12px rgba(70, 63, 54, .04); }
.worry-list a::after { content: "→"; color: var(--rose); }
.worry-list a:hover { border-color: var(--rose); opacity: 1; transform: translateY(-1px); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin-bottom: 1.2rem; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .9rem; min-width: 560px; }
caption { text-align: left; font-size: .82rem; color: var(--muted); margin-bottom: .5rem; caption-side: top; }
th, td { border: 1px solid var(--line); padding: .8rem 1rem; text-align: left; vertical-align: top; }
thead th { background: var(--shell); color: var(--ink); font-weight: 500; letter-spacing: .08em; }
tbody th { background: #faf7f0; font-weight: 500; width: 32%; color: var(--ink-soft); }
.price { font-family: var(--serif); white-space: nowrap; color: var(--ink); }

/* ---------- Flow steps ---------- */
.flow { counter-reset: step; list-style: none; }
.flow li { position: relative; padding: 0 0 2rem 3.6rem; counter-increment: step; }
.flow li::before { content: "0" counter(step); position: absolute; left: 0; top: 0; font-family: var(--serif); color: var(--gold); font-size: 1.05rem; background: var(--gold-pale); width: 2.3rem; height: 2.3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.flow li::after { content: ""; position: absolute; left: 1.15rem; top: 2.6rem; bottom: .4rem; width: 1px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: 1rem; margin-bottom: .3rem; padding-top: .3rem; }
.flow p { font-size: .88rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .7rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 500; list-style: none; position: relative; padding-right: 2.8rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); color: var(--rose); font-size: 1.2rem; transition: .25s; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 1.3rem 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.faq .faq-a p { margin-bottom: .6rem; }

/* ---------- Risk / Disclosure ---------- */
.risk-box { background: var(--alert-bg); border: 1px solid var(--alert-line); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin: 1.4rem 0; }
.risk-box h3 { font-size: .96rem; color: #96604f; }
.risk-box ul { padding-left: 1.2rem; font-size: .88rem; color: var(--ink-soft); }
.risk-box li { margin-bottom: .3rem; }

.disclosure { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; font-size: .8rem; color: var(--muted); }
.disclosure dt { font-weight: 600; color: var(--ink-soft); margin-top: .6rem; }
.disclosure dd { margin-left: 0; }

/* 監修表記 */
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 2rem 0; font-size: .85rem; box-shadow: var(--shadow); }
.author-box .author-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-pale), var(--rose-pale)); border: 1px solid var(--gold); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--gold-deep); }
.author-box p { margin: 0; color: var(--ink-soft); }
.meta-dates { font-size: .76rem; color: var(--muted); margin-top: .6rem; }

/* ---------- Lists ---------- */
.check-list { list-style: none; margin-bottom: 1.2rem; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; font-size: .92rem; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--rose); font-weight: 600; }
ul.plain { padding-left: 1.4rem; margin-bottom: 1.2rem; color: var(--ink-soft); font-size: .92rem; }
ul.plain li { margin-bottom: .4rem; }

/* ---------- Related links ---------- */
.related { border-top: 1px solid var(--line); padding-top: 2rem; }
.related-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.related-links a { font-size: .82rem; border: 1px solid var(--line); background: var(--paper); border-radius: var(--pill); padding: .4rem 1.2rem; color: var(--ink-soft); }
.related-links a:hover { border-color: var(--rose); color: var(--gold-deep); opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--shell); color: var(--ink-soft); font-size: .84rem; padding: 64px 0 96px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--gold-deep); opacity: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.4rem; }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); letter-spacing: .2em; display: block; margin-bottom: .6rem; }
.footer-brand .brand-name em { color: var(--gold); font-style: normal; }
.footer-brand .brand-division { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin: -.35em 0 .9em; }
.footer-legal small { opacity: .75; }
.site-footer h4 { color: var(--ink); font-size: .88rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .76rem; color: var(--muted); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.sticky-cta a { background: rgba(255, 255, 255, .97); text-align: center; padding: .7rem .2rem .6rem; font-size: .72rem; color: var(--ink); letter-spacing: .04em; }
.sticky-cta a span { display: block; font-size: 1rem; }
.sticky-cta .s-line { background: #06c755; color: #fff; }
.sticky-cta .s-reserve { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; }
@media (max-width: 800px) { .sticky-cta { display: grid; } }

/* ---------- Fade in ---------- */
.fade-in { opacity: 1; transform: none; transition: none; } /* A-01: 入場演出廃止(2026-08-14 コンサル指摘採用) */
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.placeholder { background: #fdf6e8; border-bottom: 1px dashed var(--gold); padding: 0 .2em; }
/* v11: 仮表記ページの暫定バナー */
.provisional-banner { background: #fdf3df; border: 1px solid #dfb46a; border-left: 6px solid #c9962f; border-radius: var(--radius); padding: .9rem 1.2rem; margin: 0 0 1.3rem; font-size: .88rem; line-height: 1.7; color: #7a5a1e; }
.provisional-banner strong { color: #8a5a10; }

/* =========================================================
   Motion Layer v2.1 — "PVを見ているような滞在"
   ========================================================= */

/* --- 環境光のドリフト(ヒーロー装飾円) --- */
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(34px, -22px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
.hero .deco-1 { animation: drift 16s ease-in-out infinite; }
.hero .deco-2 { animation: drift 21s ease-in-out infinite reverse; }

/* --- ケンバーンズ(写真枠がゆっくり寄る=映像感) --- */
@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.07) translate(-1.2%, .8%); }
  100% { transform: scale(1) translate(0, 0); }
}
.pv-main .photo-slot, .pv-sub .photo-slot { animation: kenburns 24s ease-in-out infinite; }
.kenburns .photo-slot, .photo-slot.kb { animation: kenburns 26s ease-in-out infinite; }
.gallery-item { margin: 0; }
.gallery-item .gallery-img { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.gallery-item .gallery-img img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 26s ease-in-out infinite; }
.gallery-item figcaption { margin-top: .7rem; font-size: .82rem; color: var(--muted); letter-spacing: .06em; }
.gallery-item figcaption strong { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .gallery-item .gallery-img img { animation: none; } }
.page-visual { margin: 0; padding: 0 24px; max-width: 1160px; margin-inline: auto; }
.page-visual img { width: 100%; height: clamp(180px, 30vw, 320px); object-fit: cover; display: block; border-radius: 14px; box-shadow: var(--shadow); }
.page-visual figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .6rem; font-size: .82rem; color: var(--muted); letter-spacing: .08em; }
.page-visual figcaption span { font-size: .7rem; opacity: .75; white-space: nowrap; }

/* --- ページロード時のシネマティック・エントランス --- */
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.hero .en, .hero h1, .hero .hero-copy, .hero .hero-note, .hero .badge-row, .hero .cta-buttons, .hero .note,
.page-hero .breadcrumb, .page-hero .en, .page-hero h1, .page-hero .answer-first, .page-hero .badge-row, .page-hero .cta-buttons {
  opacity: 0; transform: translateY(26px); animation: rise 1s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero .en, .page-hero .breadcrumb { animation-delay: .05s; }
.hero h1, .page-hero .en { animation-delay: .15s; }
.hero .hero-copy, .page-hero h1 { animation-delay: .3s; }
.hero .hero-note, .page-hero .answer-first { animation-delay: .5s; }
.hero .badge-row, .page-hero .badge-row { animation-delay: .65s; }
.hero .cta-buttons, .page-hero .cta-buttons { animation-delay: .8s; }
.hero .note { animation-delay: .95s; }
.hero-visual { opacity: 0; transform: translateY(20px) scale(.98); animation: rise 1.2s .35s cubic-bezier(.22,.61,.36,1) forwards; }

/* --- スクロール連動スタッガー(JSが .stagger を自動付与) --- */
.stagger > * { opacity: 1; transform: none; transition: none; } /* A-01 */
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: .05s; }
.stagger.visible > *:nth-child(2) { transition-delay: .15s; }
.stagger.visible > *:nth-child(3) { transition-delay: .25s; }
.stagger.visible > *:nth-child(4) { transition-delay: .35s; }
.stagger.visible > *:nth-child(5) { transition-delay: .45s; }
.stagger.visible > *:nth-child(6) { transition-delay: .55s; }
.stagger.visible > *:nth-child(7) { transition-delay: .65s; }
.stagger.visible > *:nth-child(8) { transition-delay: .75s; }
.stagger.visible > *:nth-child(n+9) { transition-delay: .85s; }

/* --- 見出しの罫線が伸びる演出 --- */
h2.sec-title::after { width: 0; transition: width 1s .3s cubic-bezier(.22,.61,.36,1); }
h2.sec-title.visible::after, .visible h2.sec-title::after { width: 40px; }

/* --- 金色の微粒子(ボケ光・JSが .hero / .cta-band に自動注入) --- */
.bokeh { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(193,162,106,.5) 0%, rgba(193,162,106,0) 70%); }
@keyframes bokehFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  15%  { opacity: .8; }
  85%  { opacity: .5; }
  100% { transform: translateY(-130px) translateX(24px); opacity: 0; }
}
.bokeh { animation: bokehFloat linear infinite; }
.hero, .cta-band { position: relative; overflow: hidden; }

/* --- CTAボタンのシャインスイープ --- */
.btn-primary, .btn-gold, .btn-line { position: relative; overflow: hidden; }
.btn-primary::after, .btn-gold::after, .btn-line::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
.btn-gold::after, .btn-primary::after { animation-delay: 1.2s; }
@keyframes shine { 0%, 72% { left: -80%; } 88%, 100% { left: 130%; } }

/* --- 流れるキーワードリボン(映像のテロップ感) --- */
.ribbon { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 1rem 0; }
.ribbon .ribbon-track { display: inline-block; animation: marquee 36s linear infinite; }
.ribbon span { font-family: var(--serif); color: var(--gold); letter-spacing: .35em; font-size: .78rem; margin-right: 3.2rem; text-transform: uppercase; }
.ribbon span i { font-style: normal; color: var(--rose); margin-left: 3.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- カード・アイコンの呼吸 --- */
.card .icon { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.card:hover .icon { transform: translateY(-4px) rotate(-4deg); }
.card:hover { box-shadow: 0 18px 50px rgba(70,63,54,.12); }

/* --- ヘッダー: スクロールで影 --- */
.site-header { transition: box-shadow .4s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(70,63,54,.08); }

/* --- パララックス対象(JS制御) --- */
.parallax { will-change: transform; }

/* --- reduced-motion: 全モーション停止 --- */
@media (prefers-reduced-motion: reduce) {
  .hero .deco-1, .hero .deco-2, .photo-slot, .pv-main .photo-slot, .pv-sub .photo-slot,
  .bokeh, .btn-primary::after, .btn-gold::after, .btn-line::after, .ribbon .ribbon-track { animation: none !important; }
  .hero .en, .hero h1, .hero .hero-copy, .hero .hero-note, .hero .badge-row, .hero .cta-buttons, .hero .note,
  .page-hero .breadcrumb, .page-hero .en, .page-hero h1, .page-hero .answer-first, .page-hero .badge-row, .page-hero .cta-buttons, .hero-visual { opacity: 1; transform: none; animation: none; }
  .stagger > * { opacity: 1; transform: none; transition: none; }
  h2.sec-title::after { width: 40px; transition: none; }
}

/* =========================================================
   Refinement Layer v3 — RESTLUXE Signature(Apple-grade restraint)
   飾りを足すのではなく、削って大きく見せる
   ========================================================= */
:root { --ease: cubic-bezier(.32, .08, .24, 1); }

/* --- タイポグラフィスケール拡大 --- */
body { line-height: 1.9; }
section { padding: 120px 0; }
section.tight { padding: 72px 0; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); line-height: 1.55; letter-spacing: .04em; font-weight: 600; }
.en { font-family: var(--sans); font-weight: 600; font-size: .7rem; letter-spacing: .26em; color: var(--gold-deep); margin-bottom: 1rem; }
h2.sec-title { padding-bottom: 0; }
h2.sec-title::after { display: none; }   /* 罫線は使わず余白で語る */
.hero .hero-copy { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.6; letter-spacing: .03em; font-weight: 600; margin-bottom: 1.8rem; }
.hero { padding: 108px 0 108px; border-bottom: none; }
.page-hero h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }

/* --- 引き算(枠線・影の抑制) --- */
.badge { background: var(--shell); border: none; color: var(--ink-soft); padding: .34rem 1.05rem; }
.badge.badge-rose { background: var(--rose-pale); color: #a5746b; }
.card { border: none; box-shadow: none; border-radius: 20px; padding: 2.2rem 2rem; background: var(--ivory); }
section.alt .card, .page-hero ~ * .card { background: var(--paper); }
section:not(.alt) .card { background: var(--paper); }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(70, 63, 54, .08); }
.worry-list a { border: none; background: var(--shell); box-shadow: none; }
.worry-list a:hover { background: var(--gold-pale); }
section.alt .worry-list a { background: var(--ivory); }
th, td { border: none; border-bottom: 1px solid var(--line); }
thead th { background: transparent; border-bottom: 1.5px solid var(--ink); }
tbody th { background: transparent; }
table { min-width: 520px; }
.faq details { border: none; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; margin-bottom: 0; }
.faq summary { padding-left: 0; }
.faq .faq-a { padding-left: 0; }
.related-links a { border-color: transparent; background: var(--shell); }
.ribbon { border: none; background: transparent; padding: 2.4rem 0 0; }
.ribbon span { font-size: .7rem; letter-spacing: .4em; opacity: .75; }

/* --- モーションの上品化(小さく・速く・正確に) --- */
.fade-in { transform: none; filter: none; transition: none; } /* A-01 */
.fade-in.visible { filter: blur(0); }
/* トップページ(ジャーニー)配下は下方セクションのフェード演出を行わない(院長指示 2026-07-31) */
body[data-jtheme] .fade-in, body[data-jtheme] .stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
.stagger > * { transform: none; filter: none; transition: none; } /* A-01 */
.stagger.visible > * { filter: blur(0); }
.hero .en, .hero h1, .hero .hero-copy, .hero .hero-note, .hero .badge-row, .hero .cta-buttons, .hero .note,
.page-hero .breadcrumb, .page-hero .en, .page-hero h1, .page-hero .answer-first, .page-hero .badge-row, .page-hero .cta-buttons { transform: translateY(18px); }
.card:hover .icon { transform: translateY(-2px); }

/* --- ダークチャプター(RESTLUXEシグネチャー: 黒×金の章) --- */
.chapter-wrap { height: 240vh; background: #171411; }
.chapter { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: #171411; color: #b3a996; }
.chapter .en { color: var(--gold); }
.chapter .line { font-family: var(--serif); font-size: clamp(1.7rem, 4.6vw, 3.1rem); line-height: 1.75; letter-spacing: .06em; font-weight: 600; color: #fff; opacity: .14; transition: opacity .5s var(--ease); display: block; }
.chapter .line.on { opacity: 1; }
.chapter .line em { font-style: normal; color: var(--gold); }
.chapter .chapter-note { margin-top: 2rem; font-size: .95rem; color: #8f8676; max-width: 560px; opacity: 0; transform: translateY(14px); transition: all .7s var(--ease); }
.chapter .chapter-note.on { opacity: 1; transform: none; }
.chapter .chapter-cta { margin-top: 2.2rem; opacity: 0; transform: translateY(14px); transition: all .7s var(--ease) .1s; }
.chapter .chapter-cta.on { opacity: 1; transform: none; }
.chapter .btn-ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.chapter .btn-ghost:hover { background: rgba(193, 162, 106, .12); }
.chapter .deco { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .18; background: var(--gold); width: 480px; height: 480px; right: -140px; top: -140px; animation: drift 20s ease-in-out infinite; pointer-events: none; }

/* --- 数字で語る(統計タイポグラフィ) --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2.4rem 1.6rem; text-align: center; }
.stats .num { font-family: var(--serif); font-size: clamp(2.1rem, 4.8vw, 3.2rem); line-height: 1.2; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.stats .num i { font-style: normal; font-size: .42em; color: var(--gold-deep); margin-left: .12em; }
.stats .cap { font-size: .8rem; color: var(--muted); margin-top: .4rem; letter-spacing: .1em; }

/* --- reduced-motion 追補 --- */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .stagger > * { filter: none; }
  .chapter .line, .chapter .chapter-note, .chapter .chapter-cta { opacity: 1; transform: none; transition: none; }
  .chapter .deco { animation: none; }
  .chapter-wrap { height: auto; }
  .chapter { position: static; min-height: 0; padding: 96px 0; }
}

/* =========================================================
   Video Ambient Layer v3.1 — セクション背景動画
   ========================================================= */
.video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.video-veil { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .video-veil { background: linear-gradient(160deg, rgba(252, 251, 248, .78) 0%, rgba(244, 239, 232, .7) 60%, rgba(249, 241, 239, .74) 100%); }
.cta-band .video-veil { background: linear-gradient(150deg, rgba(246, 239, 226, .82) 0%, rgba(253, 251, 247, .8) 50%, rgba(249, 241, 239, .82) 100%); }
.hero > .wrap, .cta-band > .wrap { position: relative; z-index: 1; }

/* --- チャプター: RESTLUXE DENTARIAの世界観(この章のみ) --- */
.chapter-wrap { background: #0f0f0f; }
.chapter { background: #0f0f0f; color: #8f8878; }
.chapter .video-veil { background: linear-gradient(90deg, rgba(15, 15, 15, .86) 0%, rgba(15, 15, 15, .55) 60%, rgba(15, 15, 15, .35) 100%); }
.chapter > .wrap { position: relative; z-index: 1; }
.chapter .en { color: #d4af37; font-family: var(--serif); font-weight: 500; letter-spacing: .42em; }
.chapter .line { font-weight: 500; letter-spacing: .1em; line-height: 2; }
.chapter .line em { color: #d4af37; }
.chapter .chapter-note { color: #9a917f; font-weight: 300; line-height: 2.2; }
.chapter .btn-ghost { color: #d4af37; border-color: #d4af37; border-radius: 2px; background: transparent; }
.chapter .btn-ghost:hover { background: rgba(212, 175, 55, .12); }
.chapter .deco { display: none; }  /* 動画があるため装飾円は不要 */

@media (prefers-reduced-motion: reduce) { .video-bg { display: none; } }

/* =========================================================
   Dignified Layer v3.2 — 厳かな上質(質・信頼ファースト)
   ========================================================= */
/* バッジ: 静かな枠のみ */
.badge, .badge.badge-rose { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); letter-spacing: .16em; font-size: .72rem; }
/* アクセントをローズ→金へ統一(可憐さより格調) */
.check-list li::before { color: var(--gold); }
.worry-list a::after { color: var(--gold); }
.worry-list a:hover { border-color: transparent; }
.faq summary::after { color: var(--gold); }
.cta-inline { background: var(--gold-pale); border-color: var(--gold); }
.photo-slot::before { content: "◇"; color: var(--gold); font-size: .9rem; }
/* スティッキーCTA: 絵文字を廃し、黒×金の帯へ */
.sticky-cta { background: #171411; border-top: 1px solid #2a251f; }
.sticky-cta a { background: #171411; color: #cfc8ba; font-size: .68rem; letter-spacing: .18em; padding: .8rem .2rem .7rem; }
.sticky-cta a svg { width: 17px; height: 17px; stroke: #c1a26a; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 0 auto 4px; }
.sticky-cta .s-line { background: #171411; color: #cfc8ba; }
.sticky-cta .s-line svg { stroke: #06c755; }
.sticky-cta .s-reserve { background: #171411; color: #d4af37; }
.sticky-cta .s-reserve svg { stroke: #d4af37; }

/* =========================================================
   Cinema Luxe Layer v4 — フルスクリーン映像FV(高級・会員制トーン)
   参考系統: 会員制クリニック/ラグジュアリーブランドの映像ファースト構成
   ========================================================= */
.hero.hero-cinema { min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 96px 0 72px; background: #0f0f0f; border-bottom: none; text-align: center; }
.hero.hero-cinema .video-veil { background: radial-gradient(ellipse at center, rgba(15, 15, 15, 0) 0%, rgba(10, 9, 8, .5) 100%); }
.hero.hero-cinema .hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 0 24px; }
.hero.hero-cinema .en { color: #d4af37; font-family: var(--serif); font-weight: 500; letter-spacing: .5em; font-size: .68rem; }
.hero.hero-cinema .brand-mark { font-family: var(--serif); color: #fff; letter-spacing: .4em; font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin-bottom: 2.2rem; font-weight: 500; }
.hero.hero-cinema .brand-mark em { color: #d4af37; font-style: normal; }
.hero.hero-cinema h1 { color: #6d675b; font-size: .72rem; letter-spacing: .18em; margin-bottom: 1.6rem; font-family: var(--sans); font-weight: 400; }
.hero.hero-cinema .hero-copy { color: #fff; font-size: clamp(1.9rem, 4.8vw, 3.3rem); line-height: 1.9; letter-spacing: .12em; font-weight: 500; margin-bottom: 1.6rem; }
.hero.hero-cinema .hero-note { color: #b3ab9b; font-size: .95rem; letter-spacing: .16em; margin-bottom: 2.8rem; }
.hero.hero-cinema .hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 0 0 3.4rem; }
.btn-cinema { display: inline-block; min-width: 240px; padding: 1.05rem 2.4rem; border: 1px solid #d4af37; color: #d4af37;
  background: transparent; border-radius: 2px; font-size: .92rem; letter-spacing: .22em; transition: .4s; }
.btn-cinema:hover { background: rgba(212, 175, 55, .14); opacity: 1; }
.btn-cinema.line::before { content: ""; display: inline-block; width: 8px; height: 8px; background: #06c755; border-radius: 50%; margin-right: .7em; vertical-align: middle; }
.scroll-cue { color: #8a8172; font-size: .62rem; letter-spacing: .5em; font-family: var(--serif); }
.scroll-cue span { display: block; width: 1px; height: 56px; margin: 0 auto 12px; background: linear-gradient(to bottom, #d4af37, transparent); overflow: hidden; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; opacity: .8; animation: cueDrop 2.4s ease-in-out infinite; }
@keyframes cueDrop { 0% { top: -40%; } 70%, 100% { top: 110%; } }
/* シネマFVのエントランス */
.hero.hero-cinema .brand-mark, .hero.hero-cinema .hero-cta, .hero.hero-cinema .scroll-cue {
  opacity: 0; transform: translateY(20px); animation: rise 1.1s cubic-bezier(.22, .61, .36, 1) forwards; }
.hero.hero-cinema .brand-mark { animation-delay: .1s; }
.hero.hero-cinema .hero-cta { animation-delay: .85s; }
.hero.hero-cinema .scroll-cue { animation-delay: 1.15s; }
/* シネマFV上のボケ粒子は不要(canvasが担う) */
.hero.hero-cinema .bokeh { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero.hero-cinema .brand-mark, .hero.hero-cinema .hero-cta, .hero.hero-cinema .scroll-cue { opacity: 1; transform: none; animation: none; }
  .scroll-cue span::after { animation: none; }
}
/* canvas版 video-bg */
canvas.video-bg { display: block; }

/* =========================================================
   Scroll Journey Layer v5 — 引き込まれる一体型スクロール構成
   参考: 全画面世界をスクロールで旅する構成(コピー左固定・渦転換・光の門)
   ========================================================= */
.journey { height: 500vh; background: #0f0f0f; position: relative; }
.journey-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jcopy { position: absolute; top: 0; bottom: 0; left: clamp(24px, 8vw, 120px); right: 24px; max-width: 600px;
  display: flex; flex-direction: column; justify-content: center; z-index: 2; opacity: 0; pointer-events: none; }
.jcopy .en { color: #d4af37; font-family: var(--serif); font-weight: 500; letter-spacing: .5em; font-size: .9rem; margin-bottom: 1.4rem; }
.jcopy h1 { color: #6d675b; font-size: .82rem; letter-spacing: .14em; margin: -.6rem 0 0; font-family: var(--sans); font-weight: 400; opacity: .85; }
.jcopy .jtitle { font-family: var(--serif); color: #fff; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.7; letter-spacing: .12em; font-weight: 600; margin-bottom: 1.2rem; text-shadow: 0 1px 3px rgba(247,243,234,.55); }
.jcopy .jtitle em { color: #d4af37; font-style: normal; }
.jcopy .jsub { color: #b3ab9b; font-size: 1.28rem; line-height: 2; letter-spacing: .1em; margin-bottom: 1.8rem; text-shadow: 0 1px 2px rgba(247,243,234,.5); }
.jcopy .jsub--meta { font-size: 1.05rem; color: #9a927f; margin-top: -1rem; opacity: 1; }
.jcopy .jlink { color: #d4af37; font-size: .95rem; letter-spacing: .2em; border-bottom: 1px solid rgba(212, 175, 55, .5); padding-bottom: 3px; align-self: flex-start; }
.jcopy .jlink:hover { border-color: #d4af37; opacity: 1; }
.jcopy .brand-mark { font-family: var(--serif); color: #fff; letter-spacing: .4em; font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin-bottom: 2rem; font-weight: 500; }
.jcopy .brand-mark em { color: #d4af37; font-style: normal; }
.jcopy-final { left: 24px; right: 24px; max-width: none; align-items: center; text-align: center; }
.jcopy-final .hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.journey .scroll-cue { position: absolute; left: 50%; transform: translateX(-50%); bottom: 40px; z-index: 2; transition: opacity .5s; }
/* reduced-motion: 静的スタックへ縮退 */
.journey-static { height: auto; }
.journey-static .journey-stage { position: static; height: auto; }
.journey-static canvas { display: none; }
.journey-static .jcopy { position: static; opacity: 1 !important; transform: none !important; pointer-events: auto;
  padding: 72px 24px; max-width: 720px; margin: 0 auto; }
.journey-static .scroll-cue { display: none; }

/* =========================================================
   Journey Theme Variants v5.1 — A: porcelain / B: sand / C: mauve
   ========================================================= */
/* A|Porcelain(磁器×シャンパン)・B|Sand(砂×真鍮): ライト地 */
body[data-jtheme="porcelain"] .journey { background: #fbf9f5; }
body[data-jtheme="sand"] .journey { background: #eee7d9; }
body[data-jtheme="porcelain"] .jcopy .jtitle, body[data-jtheme="sand"] .jcopy .jtitle { color: #3f382e; }
body[data-jtheme="porcelain"] .jcopy .jtitle em { color: #9a7d4a; }
body[data-jtheme="sand"] .jcopy .jtitle em { color: #7a5f33; }
body[data-jtheme="porcelain"] .jcopy .en, body[data-jtheme="porcelain"] .journey .scroll-cue { color: #9a7d4a; }
body[data-jtheme="sand"] .jcopy .en, body[data-jtheme="sand"] .journey .scroll-cue { color: #7a5f33; }
body[data-jtheme="porcelain"] .jcopy .jsub, body[data-jtheme="sand"] .jcopy .jsub { color: #4a4136; }
body[data-jtheme="porcelain"] .jcopy h1, body[data-jtheme="sand"] .jcopy h1 { color: #7d7360; }
body[data-jtheme="porcelain"] .jcopy .jsub--meta, body[data-jtheme="sand"] .jcopy .jsub--meta { color: #6b6250; }
body[data-jtheme="porcelain"] .jcopy .brand-mark, body[data-jtheme="sand"] .jcopy .brand-mark { color: #3f382e; }
body[data-jtheme="porcelain"] .jcopy .brand-mark em { color: #b08d55; }
body[data-jtheme="sand"] .jcopy .brand-mark em { color: #8c6738; }
body[data-jtheme="porcelain"] .btn-cinema { border-color: #b08d55; color: #8a6a3a; }
body[data-jtheme="porcelain"] .btn-cinema:hover { background: rgba(176, 141, 85, .1); }
body[data-jtheme="sand"] .btn-cinema { border-color: #8c6738; color: #6d5127; }
body[data-jtheme="sand"] .btn-cinema:hover { background: rgba(140, 103, 56, .1); }
body[data-jtheme="porcelain"] .jcopy .jlink { color: #9a7d4a; border-color: rgba(154, 125, 74, .5); }
body[data-jtheme="sand"] .jcopy .jlink { color: #7a5f33; border-color: rgba(122, 95, 51, .5); }
body[data-jtheme="porcelain"] .scroll-cue span { background: linear-gradient(to bottom, #b08d55, transparent); }
body[data-jtheme="sand"] .scroll-cue span { background: linear-gradient(to bottom, #8c6738, transparent); }

/* C|Mauve(薄暮×シャンパンローズ): ソフトダーク地 */
body[data-jtheme="mauve"] .journey { background: #413944; }
body[data-jtheme="mauve"] .jcopy .jtitle { color: #f7f2ea; }
body[data-jtheme="mauve"] .jcopy .jtitle em { color: #d8b67e; }
body[data-jtheme="mauve"] .jcopy .en, body[data-jtheme="mauve"] .journey .scroll-cue { color: #d8b67e; }
body[data-jtheme="mauve"] .jcopy .jsub { color: #c2b6b4; }
body[data-jtheme="mauve"] .jcopy h1 { color: #8d8290; }
body[data-jtheme="mauve"] .jcopy .brand-mark { color: #f7f2ea; }
body[data-jtheme="mauve"] .jcopy .brand-mark em { color: #d8b67e; }
body[data-jtheme="mauve"] .btn-cinema { border-color: #d8b67e; color: #ecd9b0; }
body[data-jtheme="mauve"] .btn-cinema:hover { background: rgba(216, 182, 126, .14); }
body[data-jtheme="mauve"] .jcopy .jlink { color: #d8b67e; border-color: rgba(216, 182, 126, .5); }
body[data-jtheme="mauve"] .scroll-cue span { background: linear-gradient(to bottom, #d8b67e, transparent); }

/* =========================================================
   Film Sequence Layer v6 — 実写絵コンテ(波紋→苔の森→木漏れ日→成長→朝靄)
   ========================================================= */
.journey-stage .jposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.journey-stage video.jfilm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; z-index: 1; pointer-events: none; transition: opacity .2s linear; will-change: opacity, transform; }
.journey-stage .jveil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(92deg, rgba(247, 243, 234, .92) 0%, rgba(247, 243, 234, .62) 40%, rgba(247, 243, 234, 0) 72%); }
.jcopy { z-index: 2; }
.jcopy-final::before { content: ""; position: absolute; top: 10%; bottom: 10%; left: 8%; right: 8%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(247, 243, 234, .82) 0%, rgba(247, 243, 234, 0) 72%); }
.journey-static video.jfilm, .journey-static .jveil, .journey-static .jposter { display: none; }

/* 序景: 三章のご案内(院長指示 2026-07-31) */
.j-chapters { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 2rem;
  font-family: var(--serif); color: #6b6250; font-size: 1rem; letter-spacing: .12em; }
.j-chapters .j-chapters-lead { flex-basis: 100%; font-size: .85rem; letter-spacing: .3em; color: #9a7d4a; }
.j-chapters span:not(.j-chapters-lead) { display: inline-flex; align-items: center; gap: .55rem; }
.j-chapters em { font-style: normal; color: #9a7d4a; font-size: 1.7rem; font-weight: 600; line-height: 1; }

/* スキップ(再訪問者向け・院長指示 2026-07-31) */
.journey-skip { position: fixed; right: 24px; bottom: 30px; z-index: 30;
  appearance: none; border: 1px solid rgba(154, 125, 74, .55); background: rgba(247, 243, 234, .85);
  color: #8a6a3a; font-family: var(--serif); font-size: .82rem; letter-spacing: .18em;
  padding: .6em 1.2em; border-radius: 999px; cursor: pointer; transition: opacity .4s, background .3s; }
.journey-skip:hover { background: rgba(176, 141, 85, .16); }
/* ---- モバイル: 序景を1画面に収める(見切れ・重なり対策 2026-07-31) ---- */
@media (max-width: 640px) {
  .jcopy .brand-mark { margin-bottom: 1.1rem; }
  .jcopy h1 { margin-bottom: .8rem; }
  .jcopy .jtitle { font-size: 2.1rem; line-height: 1.6; margin-bottom: .9rem; }
  .jcopy .jsub { font-size: 1.02rem; line-height: 1.9; margin-bottom: 1.1rem; }
  .jcopy .jsub--meta { font-size: .82rem; margin-top: -.5rem; }
  .j-chapters { margin-top: 1.1rem; gap: .9rem; font-size: .88rem; }
  .j-chapters .j-chapters-lead { font-size: .72rem; }
  .j-chapters em { font-size: 1.25rem; }
  .journey .scroll-cue { display: none; }  /* 章予告と重なるため非表示(スキップ導線は維持) */
  .journey-skip { right: 14px; bottom: 16px; font-size: .76rem; padding: .55em 1em; }
}
/* FT-03: reduced-motion 時はポスター静止画のみ表示 */
.journey-poster { display: block; width: 100%; height: auto; }

/* =========================================================
   Ryotei Layer v6.1 — 縦書き・間(ま)・料亭格のレイアウト文法
   参考系統: 高級和食・レストランサイト(全面映像×縦書き×余白)
   ========================================================= */
/* 章タイトルの縦書き(和の格) */
@media (min-width: 900px) {
  .jcopy.j-vertical { flex-direction: row; align-items: center; gap: 2.2rem; }
  .jcopy.j-vertical .j-vbody { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 2.2rem; }
  .jcopy.j-vertical .jtitle { writing-mode: vertical-rl; text-orientation: mixed; margin: 0;
    height: min(54svh, 440px); font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: .34em; line-height: 2.1; }
  .jcopy.j-vertical .j-vmeta { display: flex; flex-direction: column; gap: 1.4rem; max-width: 320px; padding-top: .6rem; }
  .jcopy.j-vertical .en { margin: 0; }
  .jcopy.j-vertical .jsub { margin: 0; font-size: 1.02rem; line-height: 2.2; }
}
/* 章番号の縦罫 */
.j-no { display: flex; flex-direction: column; align-items: center; gap: .8rem; font-family: var(--serif);
  color: #9a7d4a; font-size: 3rem; line-height: 1; letter-spacing: 0; font-weight: 600; }
.j-no::after { content: ""; width: 1px; height: 64px; background: linear-gradient(to bottom, #b08d55, transparent); }
@media (max-width: 640px) { .j-no { font-size: 2.2rem; } .j-no::after { height: 40px; } }
/* モバイルの表: 2列表を画面内に収める(表崩れ対応 2026-07-31) */
@media (max-width: 640px) {
  table { min-width: 0; font-size: .82rem; }
  th, td { padding: .6rem .55rem; }
  tbody th { width: 38%; }
  .price { white-space: normal; }
}
@media (max-width: 899px) { .jcopy.j-vertical .j-no { flex-direction: row; align-items: center; }
  .jcopy.j-vertical .j-no::after { width: 48px; height: 1px; background: linear-gradient(to right, #b08d55, transparent); } }
/* 間(ま)の縦罫ディバイダ */
.ma-divider { display: flex; justify-content: center; padding: 56px 0 8px; background: transparent; }
.ma-divider span { width: 1px; height: 72px; background: linear-gradient(to bottom, var(--gold), transparent); display: block; }
section.alt + .ma-divider, .ma-divider + section { padding-top: 40px; }
/* 余白の拡張(料亭の間) */
section { padding: 132px 0; }
section.tight { padding: 76px 0; }
.sec-head { margin-bottom: 3.2rem; }

/* ---------- B-06折衷: 治療ページ7項目サマリーカード「この治療の要点」 ---------- */
.summary-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.6rem 1.2rem; margin-top: 1.3rem; }
.summary-card h2.sec-title { font-size: 1.05rem; margin-bottom: 1rem; }
.summary-card dl { display: grid; grid-template-columns: auto 1fr; column-gap: 1.2rem; row-gap: .45rem; font-size: .88rem; line-height: 1.8; }
.summary-card dt { color: var(--gold-deep); font-weight: 600; }
.summary-card dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.summary-card dd a { color: var(--gold-deep); text-decoration: underline; }
.summary-card .note { margin: .9rem 0 0; }
@media (max-width: 640px) {
  .summary-card { padding: 1.2rem 1.1rem 1rem; }
  .summary-card dl { grid-template-columns: 1fr; row-gap: .1rem; }
  .summary-card dd { margin-bottom: .55rem; }
}

/* 医師写真(B-01) */
.author-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: top center; flex-shrink: 0; box-shadow: var(--shadow); }
