/* bar-mama.gaip.jp — 銀座 倶楽部 宵蝶　鳳 紗夜子（制作見本）
   漆黒・紫紺・金・紅。明朝体。背景は Three.js の舞台（stage3d.js）で、文はその上に重ねる。
   html のクラス：js（JavaScript が動く）、fx（演出を使う）、rm（視差効果を減らす）、
                 is-ready（準備ができた）、is-open（幕が開く）、is-opened（幕を片づけた）、has-stage（3D が描けている）。
   fx のない状態（JavaScript なし・視差効果を減らす）では、留めずに並べ、すべて見せる。 */

@font-face {
  font-family: "Shippori Mincho";
  src: url("/assets/ShipporiMincho-600-subset.woff2?v=20261202a") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shippori Mincho";
  src: url("/assets/ShipporiMincho-500-subset.woff2?v=20261202a") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/CormorantGaramond-subset.woff2?v=20261202a") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/CormorantGaramond-Italic-subset.woff2?v=20261202a") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #08060d;
  --night: #0c0915;
  --murasaki: #1c1130;
  --edo: #4d3582;
  --fuji: #a48ad6;
  --gold: #cfa95f;
  --gold-hi: #f1dba3;
  --gold-lo: #8f6c30;
  --beni: #b3283c;
  --kinari: #f1e9dc;
  --mute: #baad9c;
  --paper: #f0e7d5;
  --sumi: #1b1030;
  --line: rgba(207, 169, 95, .36);
  --line-soft: rgba(207, 169, 95, .18);
  --foil: linear-gradient(150deg, #f7e7b8 0%, #d9b66c 38%, #f1dba3 58%, #a37d3a 100%);
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --latin: "Cormorant Garamond", "Shippori Mincho", "Times New Roman", serif;
  --bar: 58px;
  --pad: clamp(20px, 5.4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --scroll: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}
html.rm { scroll-behavior: auto; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--kinari);
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .05em;
  /* 3D が描けないときの背景 */
  background:
    radial-gradient(90% 60% at 72% 8%, rgba(96, 62, 150, .5) 0%, rgba(96, 62, 150, 0) 70%),
    radial-gradient(120% 70% at 20% 100%, rgba(150, 62, 96, .28) 0%, rgba(150, 62, 96, 0) 70%),
    linear-gradient(180deg, #100a1c 0%, #08060d 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: inherit; }
[lang="en"] { font-family: var(--latin); letter-spacing: .06em; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 6px; background: var(--paper); color: var(--sumi); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 金の文字。1文字ずつに分けた要素では、文字（.ch）のほうに付ける */
.chap-title, .profile-lead .ch, .contact-copy .ch, .contact-name, .vow-no, .scene-line-in, .hero-ch, .meishi-name, .path-when {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
[data-disp] { font-weight: 500; }

/* ---------- 背景 ---------- */

.stage {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh;
  display: block; opacity: 0; transition: opacity .9s ease;
}
.has-stage .stage { opacity: 1; }
.veil {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 6, 13, .55) 0%, rgba(8, 6, 13, 0) 16%, rgba(8, 6, 13, 0) 72%, rgba(8, 6, 13, .6) 100%);
}
main, .foot, .band { position: relative; z-index: 1; }

/* ---------- 読み込みの幕：金の襖 ---------- */

.fusuma { display: none; }
.fx .fusuma { display: block; position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.fx.is-opened .fusuma { display: none; }
.fusuma-door {
  position: absolute; top: 0; bottom: 0; width: 50.3%;
  background:
    linear-gradient(180deg, rgba(40, 20, 70, 0) 58%, rgba(40, 20, 70, .5) 80%, rgba(22, 11, 40, .92) 100%),
    url("/assets/kinpaku.webp?v=20261202a") center / 420px 420px,
    #cfa95f;
  box-shadow: inset 0 0 0 6px #130d0b, inset 0 0 0 7px rgba(246, 226, 170, .55), inset 0 0 90px rgba(60, 36, 6, .45);
  transition: transform 1.6s var(--ease-io);
  will-change: transform;
}
.fusuma-door--l { left: 0; }
.fusuma-door--r { right: 0; }
.is-open .fusuma-door--l { transform: translate3d(-101%, 0, 0); }
.is-open .fusuma-door--r { transform: translate3d(101%, 0, 0); }
.fusuma-pull {
  position: absolute; top: 50%; width: 42px; height: 42px; margin-top: 104px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a2a2a 0%, #100b0b 70%);
  box-shadow: 0 0 0 2px rgba(246, 226, 170, .8), 0 0 0 5px #130d0b, inset 0 2px 6px rgba(0, 0, 0, .8);
}
.fusuma-door--l .fusuma-pull { right: 30px; }
.fusuma-door--r .fusuma-pull { left: 30px; }
.fusuma-crest {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%);
  display: grid; justify-items: center; gap: 14px;
  color: #24123f;
  transition: opacity .5s ease;
}
.is-open .fusuma-crest { opacity: 0; }
.fusuma-cho {
  width: clamp(92px, 24vw, 140px); height: auto;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: crest-draw 1.5s .1s var(--ease) forwards;
}
.fusuma-name {
  font-size: clamp(22px, 6vw, 30px); letter-spacing: .5em; text-indent: .5em; line-height: 1;
  opacity: 0; animation: crest-name .9s .55s var(--ease) forwards;
}
@keyframes crest-draw { to { stroke-dashoffset: 0; } }
@keyframes crest-name { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 上の帯 ---------- */

.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 30;
  height: calc(var(--bar) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background-color .4s ease;
}
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s ease;
  background: linear-gradient(180deg, rgba(8, 6, 13, .92) 0%, rgba(8, 6, 13, .7) 62%, rgba(8, 6, 13, 0) 100%);
}
.topbar.is-scrolled::before { opacity: 1; }
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--foil); transform-origin: left center; transform: scaleX(var(--scroll)); opacity: .85;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--gold-hi); text-decoration: none; }
.brand-mark { width: 32px; height: 27px; color: var(--gold); flex: none; }
.brand-name { font-size: 19px; letter-spacing: .32em; line-height: 1; white-space: nowrap; }
.brand-tag {
  font-size: 10px; letter-spacing: .22em; text-indent: .22em; line-height: 1; padding: 4px 7px;
  border: 1px solid var(--line); border-radius: 99px; color: var(--mute); white-space: nowrap;
}
.top-cta {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 99px; background: rgba(12, 9, 21, .55);
  color: var(--gold-hi); font-size: 12.5px; letter-spacing: .12em; text-decoration: none; white-space: nowrap;
  transition: background-color .3s ease, border-color .3s ease;
}
.top-cta:hover { background: rgba(77, 53, 130, .4); border-color: var(--gold); }
@media (max-width: 359px) {
  .brand { gap: 7px; }
  .brand-mark { width: 28px; height: 24px; }
  .brand-name { font-size: 17px; letter-spacing: .22em; }
  .top-cta { padding: 0 12px; font-size: 12px; letter-spacing: .06em; }
  .top-cta svg { display: none; }
}

/* 進み具合（広い画面）：線の上を蝶が降りる */
.rail { display: none; }
@media (min-width: 900px) {
  .js .rail { display: block; position: fixed; right: 18px; top: 24vh; bottom: 24vh; width: 22px; z-index: 20; pointer-events: none; }
  .rail-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
  .rail-fill { position: absolute; inset: 0; background: var(--gold); transform-origin: center top; transform: scaleY(var(--scroll)); }
  .rail-cho { position: absolute; left: 50%; top: calc(var(--scroll) * 100%); width: 22px; height: 19px; margin: -9px 0 0 -11px; color: var(--gold-hi); }
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 24px; border-radius: 99px; border: 1px solid var(--line);
  background: rgba(12, 9, 21, .6); color: var(--gold-hi);
  font: inherit; font-size: 14px; letter-spacing: .16em; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.btn:hover { border-color: var(--gold); background: rgba(77, 53, 130, .42); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--gold {
  position: relative; overflow: hidden; border-color: transparent; color: #1c1305;
  background: linear-gradient(135deg, #f8e9bd 0%, #d5b168 44%, #a27c38 100%);
  box-shadow: 0 10px 30px rgba(207, 169, 95, .26), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn--gold:hover { background: linear-gradient(135deg, #fff3cf 0%, #dfbd76 44%, #ae873f 100%); box-shadow: 0 14px 38px rgba(207, 169, 95, .38), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
}
.fx .btn--gold::after { animation: sheen 5.5s 2.4s ease-in-out infinite; }
@keyframes sheen { 0% { left: -60%; } 22%, 100% { left: 130%; } }

/* ---------- 最初の画面 ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--bar) + env(safe-area-inset-top, 0px) + 4px) var(--pad) 54px;
  display: flex; flex-direction: column;
}
.hero-inner {
  flex: 1; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(8px, 2.6vw, 18px);
}
.fx .hero-inner {
  transform: translate3d(0, calc(var(--hy, 0) * -7vh), 0);
  opacity: calc(1 - var(--hy, 0) * 1.2);
}
.hero-portrait {
  grid-column: 2; grid-row: 1; position: relative;
  width: min(58vw, 38vh, 400px); width: min(58vw, 38svh, 400px);
  aspect-ratio: 1;
}
.hero-photo {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; background: #1a1126;
}
.hero-halo {
  position: absolute; inset: -34%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241, 219, 163, .3) 0%, rgba(241, 219, 163, .1) 52%, rgba(241, 219, 163, 0) 74%);
}
.has-stage .hero-halo { opacity: .3; }
.hero-ring {
  position: absolute; inset: -8px; z-index: 2; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(241, 219, 163, .8);
  box-shadow: inset 0 0 30px rgba(8, 6, 13, .6);
}
.hero-ring::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(207, 169, 95, .3);
}
.hero-ring::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 244, 208, 0) 0 58%, rgba(255, 244, 208, .95) 76%, rgba(255, 244, 208, 0) 90%);
  -webkit-mask: radial-gradient(farthest-side, rgba(0, 0, 0, 0) calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, rgba(0, 0, 0, 0) calc(100% - 3px), #000 calc(100% - 2px));
}
.fx .hero-ring::after { animation: spin 13s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 肖像にとまる蝶（羽は CSS の 3D で羽ばたく） */
.fly { position: absolute; z-index: 3; pointer-events: none; perspective: 420px; aspect-ratio: 200 / 168; }
.fly--a { width: 25%; right: -6%; top: 1%; transform: rotate(26deg); }
.fly--b { width: 16%; left: -5%; bottom: 13%; transform: rotate(-40deg); }
.fly-body { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
.fly-wing { position: absolute; top: 0; width: 50%; height: 100%; overflow: visible; }
.fly-wing--r { left: 50%; transform-origin: 0 50%; transform: rotateY(-24deg); }
.fly-wing--l { left: 0; transform-origin: 100% 50%; transform: rotateY(24deg); }
.fx .fly-body { animation: fly-bob 5s ease-in-out infinite; }
.fx .fly-wing--r { animation: flap-r 2.8s ease-in-out infinite; }
.fx .fly-wing--l { animation: flap-l 2.8s ease-in-out infinite; }
.fx .fly--b .fly-wing { animation-duration: 2.1s; animation-delay: -.8s; }
.fx.is-still .fly-wing, .fx.is-still .fly-body { animation-play-state: paused; }
@keyframes flap-r { 0%, 100% { transform: rotateY(-12deg); } 50% { transform: rotateY(-66deg); } }
@keyframes flap-l { 0%, 100% { transform: rotateY(12deg); } 50% { transform: rotateY(66deg); } }
@keyframes fly-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }

.hero-name {
  grid-column: 3; grid-row: 1; justify-self: start; align-self: center; margin: 0;
  writing-mode: vertical-rl; -webkit-writing-mode: vertical-rl;
  font-size: clamp(34px, 11.4vw, 58px); line-height: 1.12; letter-spacing: .1em; white-space: nowrap;
  filter: drop-shadow(0 4px 18px rgba(8, 6, 13, .8));
}
.hero-ch { display: inline-block; }
.hero-gap { display: inline-block; height: .42em; }
.hero-copy {
  grid-column: 1; grid-row: 1; justify-self: end; align-self: end; margin: 0 0 4%;
  writing-mode: vertical-rl; -webkit-writing-mode: vertical-rl;
  font-size: clamp(13px, 3.7vw, 17px); letter-spacing: .46em; line-height: 1.5; white-space: nowrap;
  color: var(--gold-hi); text-shadow: 0 2px 14px rgba(8, 6, 13, .9);
}
.hero-copy-in { display: inline-block; }
.hero-copy::before {
  content: ""; display: inline-block; inline-size: 30px; block-size: 1px; margin-inline-end: 12px;
  background: var(--gold); vertical-align: middle;
}
.hero-foot { grid-column: 1 / -1; grid-row: 2; text-align: center; padding-top: clamp(16px, 3.4vh, 34px); }
.hero-org { margin: 0; font-size: 13px; letter-spacing: .36em; color: var(--gold-hi); line-height: 1.6; }
.hero-sep { display: inline-block; width: 22px; height: 1px; margin: 0 12px 0 8px; background: var(--line); vertical-align: middle; }
.hero-role { margin: 2px 0 0; font-size: 12px; letter-spacing: .56em; text-indent: .56em; color: var(--mute); line-height: 1.6; }
.hero-roman { margin: 6px 0 0; font-style: italic; font-weight: 500; font-size: clamp(21px, 5.8vw, 28px); line-height: 1.2; letter-spacing: .08em; color: var(--kinari); }
.hero-actions { margin-top: clamp(14px, 2.8vh, 26px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 4px; min-width: 44px; min-height: 40px; align-content: end;
  color: var(--mute); text-decoration: none;
}
.scroll-cue-text { font-style: italic; font-size: 12px; letter-spacing: .24em; line-height: 1; }
.scroll-cue-line { position: relative; width: 1px; height: 22px; background: var(--line-soft); overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--gold-hi); }
.fx .scroll-cue-line::after { animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { top: -100%; } 60%, 100% { top: 100%; } }
@media (max-height: 620px) { .scroll-cue { display: none; } .hero { padding-bottom: 20px; } }

/* 幕が開いたら、順に現れる */
.fx [data-rise] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1.2s var(--ease), transform 1.5s var(--ease); }
.fx [data-rise="1"] { transform: scale(.86); transition-duration: 1.6s, 2.2s; transition-delay: .5s; }
.fx [data-rise="2"] { transition-delay: 1.35s; }
.fx [data-rise="3"] { transition-delay: 1.5s; }
.fx [data-rise="4"] { transition-delay: 1.75s; }
.fx [data-rise="5"] { transition-delay: 1.9s; }
.fx.is-open [data-rise] { opacity: 1; transform: none; }
.fx .hero-ch { opacity: 0; transform: translate3d(0, -.4em, 0); transition: opacity 1.3s var(--ease), transform 1.6s var(--ease); }
.fx .hero-ch[data-ch="1"] { transition-delay: .85s; }
.fx .hero-ch[data-ch="2"] { transition-delay: 1.03s; }
.fx .hero-ch[data-ch="3"] { transition-delay: 1.16s; }
.fx .hero-ch[data-ch="4"] { transition-delay: 1.29s; }
.fx.is-open .hero-ch { opacity: 1; transform: none; }
.fx .fly { opacity: 0; transition: opacity 1.4s ease 2.3s; }
.fx.is-open .fly { opacity: 1; }

@media (max-height: 739px) and (max-aspect-ratio: 1/1) {
  .hero-inner { grid-template-rows: minmax(0, 1fr) auto auto; }
  .hero-copy {
    grid-column: 1 / -1; grid-row: 2; justify-self: center; align-self: center; margin: clamp(14px, 3vh, 24px) 0 0;
    writing-mode: horizontal-tb; -webkit-writing-mode: horizontal-tb; letter-spacing: .34em;
  }
  .hero-foot { grid-row: 3; padding-top: clamp(8px, 1.6vh, 16px); }
  .hero-roman { margin-top: 2px; }
}

@media (min-aspect-ratio: 1/1) {
  .hero { padding-bottom: 40px; }
  .hero-inner {
    width: 100%; max-width: 1240px; margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, .12fr);
    grid-template-rows: minmax(0, 1fr);
    column-gap: clamp(22px, 3.2vw, 52px);
  }
  .hero-foot { grid-column: 1; grid-row: 1; align-self: end; text-align: left; padding: 0 0 7vh; }
  .hero-actions { justify-content: flex-start; }
  .hero-roman { font-size: clamp(22px, min(2.6vw, 6.2vh), 40px); }
  .hero-org { font-size: clamp(12px, 2vh, 15px); }
  .hero-role { font-size: clamp(11px, 1.7vh, 13px); text-indent: 0; }
  .hero-copy { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 8vh; font-size: clamp(13px, min(1.25vw, 2.4vh), 20px); }
  .hero-name { grid-column: 3; grid-row: 1; font-size: clamp(34px, 10.4vh, 108px); }
  .hero-portrait { grid-column: 4; grid-row: 1; width: min(54vh, 36vw, 540px); }
}

/* ---------- 章の見出し ---------- */

.chap { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(24px, 6vw, 44px); }
.chap-no {
  flex: none; margin: 0; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--gold-hi);
  font-size: 19px; line-height: 1; letter-spacing: 0; writing-mode: horizontal-tb;
}
.chap-title { margin: 0; font-size: clamp(22px, 6.8vw, 40px); line-height: 1.3; letter-spacing: .22em; white-space: nowrap; filter: drop-shadow(0 2px 12px rgba(8, 6, 13, .9)); }
.chap-en { margin: 0; margin-inline-start: auto; font-style: italic; font-size: 15px; color: var(--mute); letter-spacing: .1em; white-space: nowrap; line-height: 1; }
.chap-en::before {
  content: ""; display: inline-block; inline-size: clamp(20px, 8vw, 72px); block-size: 1px; margin-inline-end: 12px;
  background: var(--line); vertical-align: middle;
}
@media (max-width: 359px) { .chap-en { display: none; } }
.chap--center { justify-content: center; }
.chap--center .chap-en { margin-inline-start: 6px; }
/* 画面に留まる場面では、上に置く */
.chap--scene { position: relative; z-index: 2; margin: 0; }
.fx .chap--scene { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--bar) + env(safe-area-inset-top, 0px) + 8px); }
.chap--scene .chap-title, .chap--scene .chap-en { filter: drop-shadow(0 2px 12px rgba(8, 6, 13, .9)); }

.fx .chap[data-reveal] > *, .fx .chap--scene > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.fx .chap > :nth-child(2) { transition-delay: .12s; }
.fx .chap > :nth-child(3) { transition-delay: .26s; }
.fx .chap.is-in > *, .fx .scene.is-on .chap--scene > * { opacity: 1; transform: none; }

/* ---------- 場面（画面に留まる区画） ---------- */

.scene { position: relative; }
.scene-pin { position: relative; padding: calc(var(--bar) + 16px) var(--pad) 48px; }
.fx .scene-pin { position: sticky; top: 0; height: 100vh; padding: 0; overflow: hidden; }
.fx .scene--greeting { height: 300vh; height: 300svh; }
.fx .scene--faces { height: 260vh; height: 260svh; }
.fx .scene--club { height: 230vh; height: 230svh; }

/* 壱 ごあいさつ */
.letter {
  margin: 0 auto; width: fit-content; max-width: 100%;
  writing-mode: vertical-rl; -webkit-writing-mode: vertical-rl;
  font-size: clamp(15px, 4.2vw, 19px); line-height: 2.3; letter-spacing: .18em;
  height: 25.5em; margin-top: 44px;
  text-shadow: 0 2px 16px rgba(8, 6, 13, .95);
}
.letter-line { margin: 0; }
.letter-sign { margin: 0; margin-block-start: 1.1em; display: flex; align-items: center; justify-content: flex-end; gap: .7em; color: var(--gold-hi); letter-spacing: .3em; }
.letter-sign-name { font-size: 1.12em; }
.seal {
  flex: none; display: grid; place-items: center; inline-size: 2em; block-size: 2em;
  background: var(--beni); color: #f8ecd8; border-radius: 4px;
  font-size: .82em; line-height: 1; letter-spacing: 0; writing-mode: horizontal-tb; text-shadow: none;
  box-shadow: inset 0 0 0 1.5px rgba(248, 236, 216, .55), 0 4px 14px rgba(179, 40, 60, .4);
}
.fx .scene--greeting .letter {
  position: absolute; left: 50%; top: 46vh; top: 46svh; transform: translateX(-50%);
  height: min(50vh, 26em); height: min(50svh, 26em); margin-top: 0;
  font-size: clamp(12.5px, min(4.2vw, 2vh), 20px); font-size: clamp(12.5px, min(4.2vw, 2svh), 20px);
}
.fx .lt { opacity: .13; transition: opacity .55s ease, text-shadow .55s ease; }
.fx .lt.is-on { opacity: 1; text-shadow: 0 0 18px rgba(241, 219, 163, .42), 0 2px 16px rgba(8, 6, 13, .95); }
.fx .letter-sign { opacity: 0; transform: translate3d(0, -12px, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.fx .is-signed .letter-sign { opacity: 1; transform: none; }
.fx .seal { transform: scale(1.5) rotate(-8deg); opacity: 0; transition: transform .5s var(--ease) .45s, opacity .3s ease .45s; }
.fx .is-signed .seal { transform: none; opacity: 1; }

/* 参 昼と夜 */
.faces { display: grid; gap: 22px; max-width: 520px; margin: 64px auto 0; }
.faces-frame { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.face { margin: 0; overflow: hidden; border-radius: 999px 999px 10px 10px; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.faces-edge { display: none; }
.faces-text { display: grid; gap: 18px; }
.faces-kicker { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .34em; color: var(--gold-hi); }
.faces-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.faces-dot--day { background: radial-gradient(circle at 40% 40%, #ffe9b0, #f0a04a); box-shadow: 0 0 12px rgba(240, 160, 74, .7); }
.faces-dot--night { background: radial-gradient(circle at 30% 35%, #fff6da 0 48%, #cfa95f 100%); box-shadow: 0 0 12px rgba(241, 219, 163, .7), inset -4px -2px 0 rgba(77, 53, 130, .55); }
.faces-title { margin: 4px 0 6px; font-size: clamp(26px, 7.2vw, 40px); line-height: 1.35; letter-spacing: .18em; color: var(--kinari); }
.faces-body { margin: 0; font-size: 15px; line-height: 2; color: var(--kinari); }

.fx .faces {
  position: absolute; left: var(--pad); right: var(--pad); margin: 0; max-width: none;
  top: calc(var(--bar) + 62px); bottom: 3vh; bottom: 3svh;
  align-content: center; justify-items: center; gap: clamp(14px, 2.6vh, 26px);
  height: auto; max-height: calc(100svh - var(--bar) - 62px - 3svh);
}
.fx .faces-frame {
  display: block; width: min(100%, 37vh); width: min(100%, 37svh); aspect-ratio: 4 / 5;
  border-radius: 999px 999px 10px 10px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.fx .face { position: absolute; inset: 0; border: 0; border-radius: 0; aspect-ratio: auto; }
.fx .face--day img { transform: scale(calc(1.08 - var(--w, 0) * .08)); }
.fx .face--night { clip-path: inset(0 0 0 calc((1 - var(--w, 0)) * 100%)); }
.fx .face--night img { transform: scale(calc(1 + (1 - var(--w, 0)) * .08)); }
.fx .faces-edge {
  display: block; position: absolute; top: 0; bottom: 0; left: calc((1 - var(--w, 0)) * 100%); width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, rgba(255, 244, 208, 0), #fff4d0 20%, #fff4d0 80%, rgba(255, 244, 208, 0));
  box-shadow: 0 0 22px 3px rgba(241, 219, 163, .7);
  opacity: calc(4 * var(--w, 0) * (1 - var(--w, 0)));
}
.fx .faces-text { width: 100%; min-height: 9.5em; }
.fx .faces-cap { grid-area: 1 / 1; transition: opacity .7s var(--ease), transform .9s var(--ease); text-shadow: 0 2px 14px rgba(8, 6, 13, .9); }
.fx .faces-cap--night { opacity: 0; transform: translate3d(0, 14px, 0); }
.fx .is-night .faces-cap--night { opacity: 1; transform: none; }
.fx .is-night .faces-cap--day { opacity: 0; transform: translate3d(0, -14px, 0); }

/* 肆 倶楽部 宵蝶 */
.scene-line { margin: 64px 0 0; font-size: clamp(18px, 5.4vw, 30px); line-height: 1.8; letter-spacing: .18em; text-align: center; }
.scene-line-in { display: block; white-space: nowrap; filter: drop-shadow(0 2px 14px rgba(8, 6, 13, .9)); }
.fx .scene-line { position: absolute; left: var(--pad); right: var(--pad); top: 60vh; top: 60svh; margin: 0; }
.fx .scene-line-in { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity 1.2s var(--ease), transform 1.5s var(--ease); }
.fx .scene-line-in + .scene-line-in { transition-delay: .35s; }
.fx .is-said .scene-line-in { opacity: 1; transform: none; }

@media (min-aspect-ratio: 1/1) {
  .fx .chap--scene { left: clamp(40px, 8vw, 140px); right: clamp(40px, 8vw, 140px); top: calc(var(--bar) + 4vh); }
  .chap--scene .chap-en { margin-inline-start: 14px; }
  .fx .scene--greeting .letter {
    left: clamp(40px, 8vw, 140px); top: calc(var(--bar) + 4vh + 62px); transform: none;
    height: min(72vh, 27em, 100vh - var(--bar) - 4vh - 80px); font-size: clamp(11px, min(1.5vw, 2.5vh), 23px);
  }
  .fx .faces {
    left: clamp(40px, 8vw, 140px); right: clamp(40px, 8vw, 140px); top: calc(var(--bar) + 12vh); bottom: 6vh;
    grid-template-columns: auto minmax(0, 30em); justify-content: center; align-items: center; gap: clamp(36px, 5vw, 84px);
  }
  .fx .faces-frame { width: min(52vh, 32vw); }
  .faces-title { font-size: clamp(22px, min(3vw, 7vh), 40px); }
  .faces-body { font-size: clamp(13px, min(1.2vw, 2.8vh), 17px); }
  .scene-line { font-size: clamp(15px, min(2.5vw, 6vh), 44px); }
  .fx .scene-line { left: 50%; right: clamp(40px, 8vw, 140px); top: 50%; transform: translateY(-50%); text-align: left; }
}

@media (min-aspect-ratio: 1/1) and (max-height: 480px) {
  .fx .chap--scene { top: calc(var(--bar) + 2px); }
  .chap--scene .chap-title { font-size: 22px; }
  .chap--scene .chap-no { width: 36px; height: 36px; font-size: 16px; }
  .fx .scene--greeting .letter { top: calc(var(--bar) + 50px); height: calc(100vh - var(--bar) - 60px); }
  .fx .faces { top: calc(var(--bar) + 48px); bottom: 3vh; }
  .fx .faces-frame { width: min(46vh, 30vw); }
}

/* ---------- 流れる帯 ---------- */

.band { overflow: hidden; padding: 16px 0; border-block: 1px solid var(--line-soft); background: rgba(8, 6, 13, .62); }
.band-track { display: flex; width: max-content; transform: translate3d(var(--bx, 0px), 0, 0); will-change: transform; }
.band-set {
  display: flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap;
  font-size: clamp(20px, 5.2vw, 34px); line-height: 1.3; letter-spacing: .22em;
  color: rgba(241, 219, 163, .9);
}
.band-set span[lang="en"] { font-style: italic; font-size: 1.12em; letter-spacing: .1em; color: var(--gold); }
.band-set i { flex: none; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); opacity: .75; }

/* ---------- 本文の区画 ---------- */

.sec { position: relative; max-width: 1120px; margin: 0 auto; padding: clamp(70px, 15vw, 130px) var(--pad); }
.sec::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(8, 6, 13, 0) 0%, rgba(8, 6, 13, .74) 9%, rgba(8, 6, 13, .74) 91%, rgba(8, 6, 13, 0) 100%);
}
/* 紙や枠の上に文がある区画は、背景をあまり暗くしない */
.sec--heart::before, .sec--card::before { background: linear-gradient(180deg, rgba(8, 6, 13, 0) 0%, rgba(8, 6, 13, .46) 12%, rgba(8, 6, 13, .46) 88%, rgba(8, 6, 13, 0) 100%); }
.sec--contact::before { background: linear-gradient(180deg, rgba(8, 6, 13, 0) 0%, rgba(8, 6, 13, .3) 22%, rgba(8, 6, 13, .62) 100%); }
.sec-lead { margin: 0 0 clamp(26px, 6vw, 46px); font-size: clamp(15px, 4vw, 18px); line-height: 2; }

/* 値のない data-reveal：下から現れる（arch・doors・card は、それぞれの現れ方） */
.fx [data-reveal=""]:not(.chap) { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.fx [data-reveal=""].is-in:not(.chap) { opacity: 1; transform: none; }
.split { display: inline; }
.ch { display: inline-block; }
.fx [data-split] .ch { opacity: 0; transform: translate3d(0, .55em, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.fx [data-split].is-in .ch { opacity: 1; transform: none; }
.fx [data-stagger] > * { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms + 120ms); }
.fx [data-stagger].is-in > * { opacity: 1; transform: none; }

/* 弐 人となり */
.profile { display: grid; gap: clamp(28px, 7vw, 60px); }
.profile-photo { margin: 0 auto; width: 100%; max-width: 420px; }
.profile-frame {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 12px 12px; background: #150e22;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px rgba(0, 0, 0, .55);
}
.profile-frame::after {
  content: ""; position: absolute; inset: 9px; border-radius: 999px 999px 6px 6px; pointer-events: none;
  border: 1px solid rgba(241, 219, 163, .34);
}
.profile-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx [data-reveal="arch"] .profile-frame { clip-path: inset(100% 0 0 0 round 999px 999px 12px 12px); transition: clip-path 1.7s var(--ease-io); }
.fx [data-reveal="arch"].is-in .profile-frame { clip-path: inset(0 0 0 0 round 999px 999px 12px 12px); }
.fx [data-reveal="arch"] img { transform: scale(1.18); transition: transform 2.4s var(--ease); }
.fx [data-reveal="arch"].is-in img { transform: none; }
.fx [data-reveal="arch"] .profile-cap { opacity: 0; transition: opacity 1s ease 1.2s; }
.fx [data-reveal="arch"].is-in .profile-cap { opacity: 1; }
.profile-cap { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .16em; color: var(--mute); }
.profile-cap [lang="en"] { font-style: italic; font-size: 15px; letter-spacing: .1em; }
.profile-lead { margin: 0 0 clamp(18px, 4.6vw, 32px); font-size: clamp(27px, 7.6vw, 46px); line-height: 1.55; letter-spacing: .16em; }
.facts { margin: 0; border-bottom: 1px solid var(--line-soft); }
.fact { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 0 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.fact dt { font-size: 13px; letter-spacing: .22em; color: var(--gold); }
.fact dd { margin: 0; font-size: 15.5px; line-height: 1.8; }
.fact-kana { display: block; font-size: 11.5px; letter-spacing: .34em; color: var(--mute); line-height: 1.5; }

.path { position: relative; list-style: none; margin: clamp(44px, 10vw, 80px) 0 0; padding: 0 0 0 30px; }
.path::before, .path::after { content: ""; position: absolute; left: 6px; top: 12px; bottom: 30px; width: 1px; }
.path::before { background: var(--line-soft); }
.path::after { background: var(--gold); transform-origin: center top; transform: scaleY(var(--p, 1)); }
.path-item { position: relative; padding: 0 0 28px; display: grid; gap: 2px; }
.path-item:last-child { padding-bottom: 0; }
.path-item::before {
  content: ""; position: absolute; left: -30px; top: 9px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--gold); box-shadow: 0 0 0 4px rgba(8, 6, 13, .9), 0 0 14px rgba(241, 219, 163, .5);
}
.path-when { font-size: 19px; letter-spacing: .22em; line-height: 1.6; }
.path-what { font-size: 15px; line-height: 1.9; }
.fx .path-item { opacity: 0; transform: translate3d(14px, 0, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i) * 260ms + 200ms); }
.fx .path.is-in .path-item { opacity: 1; transform: none; }

@media (min-width: 820px) {
  .profile { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: center; }
  .profile-photo { margin: 0; justify-self: center; }
  .fact dd { font-size: 17px; }
  .path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; padding: 34px 0 0; }
  .path::before, .path::after { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .path::after { transform-origin: left center; transform: scaleX(var(--p, 1)); }
  .path-item { padding: 0; }
  .path-item::before { left: 0; top: -34px; }
  .fx .path-item { transform: translate3d(0, 14px, 0); }
}

/* 肆 店内とご案内 */
.sec--club { padding-top: clamp(20px, 5vw, 40px); }
.lounge { margin: 0 calc(var(--pad) * -1); }
.lounge-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #130c1c; }
.lounge-frame img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, calc(var(--ly, 0) * -11%), 0); }
.lounge-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line), inset 0 -80px 90px -40px rgba(8, 6, 13, .7); }
.lounge-door { display: none; }
.fx .lounge-door {
  display: block; position: absolute; z-index: 2; top: 0; bottom: 0; width: 50.4%;
  background: linear-gradient(180deg, rgba(40, 20, 70, 0) 55%, rgba(30, 15, 54, .85) 100%), url("/assets/kinpaku.webp?v=20261202a") center / 360px 360px, #cfa95f;
  box-shadow: inset 0 0 0 6px #130d0b, inset 0 0 0 7px rgba(246, 226, 170, .5), inset 0 0 60px rgba(60, 36, 6, .4);
  transition: transform 1.9s var(--ease-io) .15s;
}
.fx .lounge-door--l { left: 0; }
.fx .lounge-door--r { right: 0; }
.fx .lounge.is-in .lounge-door--l { transform: translate3d(-101%, 0, 0); }
.fx .lounge.is-in .lounge-door--r { transform: translate3d(101%, 0, 0); }
.info { margin: clamp(28px, 7vw, 54px) 0 0; border-bottom: 1px solid var(--line-soft); }
.info-row { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 0 16px; padding: 15px 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.info-row dt { font-size: 13px; letter-spacing: .22em; color: var(--gold); }
.info-row dd { margin: 0; font-size: 15.5px; line-height: 1.8; }
.info-row dd [lang="en"] { font-size: 23px; letter-spacing: .08em; line-height: 1.2; }
.info-note { display: block; font-size: 12px; color: var(--mute); letter-spacing: .08em; }
@media (min-width: 820px) {
  .lounge { margin: 0; }
  .lounge-frame { aspect-ratio: 16 / 9; border-radius: 4px; }
  .info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-bottom: 0; }
  .info-row { border-top: 0; border-bottom: 1px solid var(--line-soft); }
  .info-row dd { font-size: 17px; }
}

/* 伍 おもてなし：三枚の短冊 */
.vows {
  list-style: none; margin: clamp(46px, 11vw, 80px) auto 0; padding: 0; max-width: 720px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 3vw, 30px);
}
.vow {
  position: relative; height: clamp(340px, 60vh, 460px); padding: 62px 6px 22px;
  writing-mode: vertical-rl; -webkit-writing-mode: vertical-rl;
  display: grid; grid-template-rows: auto auto; align-content: center; row-gap: clamp(8px, 2.4vw, 16px);
  color: var(--sumi);
  background:
    linear-gradient(180deg, rgba(120, 84, 160, 0) 62%, rgba(120, 84, 160, .2) 100%),
    radial-gradient(circle at 22% 36%, rgba(207, 169, 95, .5) 0 1px, rgba(207, 169, 95, 0) 1.6px) 0 0 / 23px 31px,
    radial-gradient(circle at 70% 78%, rgba(207, 169, 95, .4) 0 1px, rgba(207, 169, 95, 0) 1.6px) 0 0 / 37px 29px,
    linear-gradient(180deg, #f6eedc 0%, #eadfc6 100%);
  border-radius: 2px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(143, 108, 48, .35);
  transform-origin: 50% -34px;
}
/* 上の金箔と、吊るす紐 */
.vow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px;
  background: url("/assets/kinpaku.webp?v=20261202a") center / 240px 240px, #cfa95f;
  box-shadow: inset 0 -1px 0 rgba(90, 60, 14, .5);
}
.vow::after {
  content: ""; position: absolute; left: 50%; top: -34px; width: 1px; height: 46px; margin-left: -.5px;
  background: linear-gradient(180deg, rgba(207, 169, 95, 0), var(--gold) 60%);
}
.vow-no {
  position: absolute; left: 50%; top: 10px; z-index: 1; width: 26px; height: 26px; margin-left: -13px;
  display: grid; place-items: center; border-radius: 50%;
  writing-mode: horizontal-tb; font-size: 15px; line-height: 1; letter-spacing: 0;
  background: var(--beni); -webkit-background-clip: border-box; background-clip: border-box;
  color: #f8ecd8; -webkit-text-fill-color: #f8ecd8;
  box-shadow: inset 0 0 0 1px rgba(248, 236, 216, .5);
}
.vow-title { grid-row: 1; margin: 0; font-size: clamp(16px, 4.5vw, 24px); line-height: 1.5; letter-spacing: .2em; }
.vow-text { grid-row: 2; margin: 0; font-size: clamp(12px, 3.2vw, 15px); line-height: 1.95; letter-spacing: .12em; color: #3a2a55; }
.fx .vow { opacity: 0; transform: translate3d(0, -34px, 0) rotate(-1.2deg); transition: opacity 1.1s var(--ease), transform 1.6s var(--ease); transition-delay: calc(var(--i) * 190ms + 100ms); }
.fx .vows.is-in .vow { opacity: 1; transform: none; animation: sway 7s ease-in-out calc(var(--i) * -2.1s + 2s) infinite; }
.fx.is-still .vows.is-in .vow { animation: none; }
@keyframes sway { 0%, 100% { transform: rotate(-.9deg); } 50% { transform: rotate(.9deg); } }

@media (min-width: 820px) {
  .vow { padding-top: 72px; row-gap: 22px; }
  .vow-title { font-size: 29px; }
  .vow-text { font-size: 17px; line-height: 2.1; }
}

/* 陸 名刺 */
.meishi-wrap { display: grid; justify-items: center; gap: 18px; margin-top: clamp(10px, 3vw, 24px); perspective: 1300px; }
.meishi {
  display: block; width: min(100%, 430px); aspect-ratio: 85 / 49; padding: 0; border: 0; border-radius: 16px;
  background: none; color: inherit; font: inherit; font-size: min(3.3vw, 16px); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.meishi-tilt {
  display: block; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease);
}
.meishi.is-held .meishi-tilt { transition-duration: .1s; }
.meishi-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.05s var(--ease-io); }
.meishi[aria-pressed="true"] .meishi-inner { transform: rotateY(180deg); }
.meishi-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 1em;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 1.8em 4em rgba(0, 0, 0, .6), 0 0 0 1px rgba(207, 169, 95, .4);
}
.meishi-face--front {
  display: grid; justify-items: center; align-content: center; text-align: center; gap: .1em;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(120, 84, 190, .5) 0%, rgba(120, 84, 190, 0) 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(179, 40, 60, .22) 0%, rgba(179, 40, 60, 0) 60%),
    linear-gradient(160deg, #1f1236 0%, #0c0816 100%);
  color: var(--gold-hi);
}
.meishi-face--front::before { content: ""; position: absolute; inset: .55em; border: 1px solid rgba(207, 169, 95, .45); border-radius: .6em; pointer-events: none; }
.meishi-cho { width: 3.2em; height: 2.7em; color: var(--gold); margin-bottom: .3em; }
.meishi-org { font-size: .78em; letter-spacing: .42em; text-indent: .42em; color: var(--gold-hi); line-height: 1.6; }
.meishi-name { font-size: 2.15em; letter-spacing: .3em; text-indent: .3em; line-height: 1.4; }
.meishi-roman { font-style: italic; font-size: 1.05em; letter-spacing: .12em; color: var(--mute); line-height: 1.3; }
.meishi-face--back {
  transform: rotateY(180deg);
  display: grid; grid-template-columns: minmax(0, 1fr) 27%; grid-template-rows: auto 1fr; gap: .5em 1em;
  padding: 1.35em 1.5em 1.2em; align-items: center;
  color: var(--sumi);
  background:
    radial-gradient(circle at 22% 36%, rgba(207, 169, 95, .45) 0 1px, rgba(207, 169, 95, 0) 1.6px) 0 0 / 23px 31px,
    linear-gradient(160deg, #f7efdd 0%, #e9dec5 100%);
}
.meishi-back-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .8em; padding-bottom: .5em; border-bottom: 1px solid rgba(143, 108, 48, .5); }
.meishi-back-org { font-size: 1.2em; letter-spacing: .3em; line-height: 1.3; }
.meishi-back-en { font-style: italic; font-size: .9em; color: #6c5a3c; line-height: 1.3; }
.meishi-back-list { display: grid; gap: .12em; font-family: var(--latin); font-size: 1em; line-height: 1.45; letter-spacing: .04em; white-space: nowrap; }
.meishi-back-list span { display: block; }
.meishi-back-list i { display: inline-block; width: 3.6em; font-size: .82em; color: #8a6a2e; letter-spacing: .08em; }
.meishi-qr { display: block; width: 100%; height: auto; justify-self: end; padding: .3em; background: #fffaf0; border-radius: .3em; }
.meishi-foil {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 240, 200, .5) 0%, rgba(255, 240, 200, 0) 46%);
}
.meishi.is-held .meishi-foil { opacity: 1; }
.meishi-cap { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--mute); letter-spacing: .14em; }
.meishi-side { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-hi); font-size: 14px; line-height: 1; letter-spacing: 0; }
.meishi-hint { display: inline-flex; align-items: center; gap: 6px; }
.fx [data-reveal="card"] .meishi { opacity: 0; transform: rotateY(-64deg) translate3d(0, 30px, 0); transition: opacity 1.1s var(--ease), transform 1.7s var(--ease); }
.fx [data-reveal="card"].is-in .meishi { opacity: 1; transform: none; }
.fx [data-reveal="card"] .meishi-cap { opacity: 0; transition: opacity 1s ease .9s; }
.fx [data-reveal="card"].is-in .meishi-cap { opacity: 1; }

/* 漆 ご連絡先 */
.sec--contact { padding-bottom: clamp(60px, 14vw, 120px); }
.contact-copy { margin: 0 0 clamp(30px, 8vw, 58px); text-align: center; font-size: clamp(17px, 5.1vw, 40px); line-height: 1.6; letter-spacing: .16em; white-space: nowrap; filter: drop-shadow(0 2px 12px rgba(8, 6, 13, .9)); }
.contact {
  position: relative; max-width: 580px; margin: 0 auto; padding: clamp(24px, 6.4vw, 44px);
  border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(180deg, rgba(34, 20, 58, .78) 0%, rgba(10, 8, 18, .9) 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
}
.contact::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line-soft); border-radius: 3px; pointer-events: none; }
.contact-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.contact-face { flex: none; width: 68px; height: 68px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px rgba(8, 6, 13, .6); }
.contact-org { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--mute); line-height: 1.7; }
.contact-name { margin: 0; font-size: clamp(24px, 6.6vw, 30px); letter-spacing: .26em; line-height: 1.4; }
.contact-list { margin: 0; }
.contact-row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 0 14px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line-soft); }
.contact-row dt { font-size: 12.5px; letter-spacing: .2em; color: var(--gold); }
.contact-row dt[lang="en"] { font-size: 15px; letter-spacing: .14em; }
.contact-row dd { margin: 0; font-size: 15.5px; overflow-wrap: anywhere; }
.contact-row dd [lang="en"] { font-size: 22px; letter-spacing: .06em; line-height: 1.2; }
.contact-row a { display: inline-flex; align-items: center; min-height: 46px; text-decoration: none; background: linear-gradient(var(--line), var(--line)) left bottom 9px / 100% 1px no-repeat; transition: color .3s ease; }
.contact-row a:hover { color: var(--gold-hi); }
.contact-note { margin: 14px 0 0; font-size: 12px; line-height: 1.8; color: var(--mute); letter-spacing: .06em; }
.contact-actions { margin-top: 22px; display: grid; gap: 12px; }
@media (min-width: 540px) { .contact-actions { grid-template-columns: 1fr 1fr; } }
.qr { margin: 28px auto 0; display: grid; justify-items: center; gap: 8px; }
.qr-box { display: block; width: 168px; padding: 12px; border-radius: 6px; background: #fbf5e6; box-shadow: 0 0 0 1px var(--gold); }
.qr-box img { display: block; width: 100%; height: auto; }
.qr-cap { font-size: 16px; letter-spacing: .16em; color: var(--mute); }

/* ---------- 下 ---------- */

.foot {
  padding: 44px var(--pad) calc(44px + env(safe-area-inset-bottom, 0px)); text-align: center;
  background: linear-gradient(180deg, rgba(8, 6, 13, 0) 0%, rgba(8, 6, 13, .92) 45%);
}
.foot-cho { width: 46px; height: 39px; color: var(--gold); opacity: .85; }
.foot-note { max-width: 34em; margin: 10px auto 6px; font-size: 12px; line-height: 1.9; color: var(--mute); letter-spacing: .06em; }
.foot-credit { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 8px; color: var(--gold-hi); text-decoration: none; font-size: 13px; letter-spacing: .2em; }
.foot-credit-url { font-style: italic; color: var(--mute); border-bottom: 1px solid var(--line); line-height: 1.4; }
.foot-credit:hover .foot-credit-url { color: var(--gold-hi); }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 70; margin: 0;
  max-width: calc(100vw - 40px); padding: 11px 20px; border-radius: 99px;
  background: var(--paper); color: var(--sumi); font-size: 13px; letter-spacing: .08em; line-height: 1.5;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate3d(-50%, 14px, 0); pointer-events: none;
  transition: opacity .35s ease, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate3d(-50%, 0, 0); }

/* ---------- 視差効果を減らす ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- 印刷 ---------- */

@media print {
  .stage, .veil, .fusuma, .topbar, .rail, .band, .scroll-cue, .toast { display: none !important; }
  body { background: #fff; color: #111; }
}
