/* =========================================================
   葉桜花音 Official Site — style.css
   桜 × 和モダン × プレミアム
========================================================= */

:root {
  --cream: #fdf8f4;
  --white: #ffffff;
  --ink: #3c2f35;
  --ink-soft: #7a6a70;
  --pink: #f2a7c3;
  --pink-soft: #fbe3ec;
  --pink-deep: #e2618f;
  --rose: #d81f6a;
  --green: #8fc98a;
  --green-deep: #4c8b4a;
  --emerald: #2fae87;
  --dark: #221419;
  --dark-2: #2d1b22;
  --gold: #c9a86a;
  --font-mincho: "Shippori Mincho B1", serif;
  --font-gothic: "Zen Kaku Gothic New", sans-serif;
  --font-serif-en: "Cormorant Garamond", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font-gothic);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.sp-only { display: none; }

/* =========================================================
   OPENING INTRO（初回のみのオープニング動画）
========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 10000;
  background: #0d0709;
  transition: opacity 1s var(--ease-out), visibility 1s;
}
.intro[hidden] { display: none; }
.intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* 動画ラストの「桜と白い光」から繋ぐフラッシュ */
.intro__flash {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 46%, #ffffff 0%, #fdeef4 48%, #f4a7c3 100%);
  transition: opacity 0.4s ease-out;
}
.intro.is-flash .intro__flash { opacity: 1; }
.intro__skip {
  position: absolute; right: clamp(18px, 3vw, 40px); bottom: clamp(20px, 4vh, 38px);
  z-index: 2;
  background: rgba(13, 7, 9, 0.35);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font-serif-en);
  font-size: 12px; letter-spacing: 0.26em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.intro__skip:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark);
  border-color: transparent;
}
/* 縦画面：16:9動画は幅フィット（contain）にして、ちび花音を必ず画面内に収める。
   上下の余白は白〜桜色のやわらかいグラデ地 */
@media (max-aspect-ratio: 1/1) {
  .intro {
    background: linear-gradient(180deg, #ffffff 0%, #fdf2f6 42%, #fbe3ec 100%);
  }
  .intro__video { object-fit: contain; }
  .intro__skip {
    background: rgba(60, 47, 53, 0.55);
    border-color: rgba(255, 255, 255, 0.5);
  }
}
/* タッチしやすいSKIPサイズ（44px以上） */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .intro__skip {
    min-height: 44px; min-width: 44px;
    padding: 11px 24px;
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

/* =========================================================
   LOADER
========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__logo {
  width: min(60vw, 340px); margin: 0 auto 28px;
  opacity: 0; transform: translateY(16px) scale(0.96);
  animation: loaderLogo 1.4s var(--ease-out) 0.15s forwards;
}
@keyframes loaderLogo {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.loader__bar {
  width: min(46vw, 220px); height: 2px; margin: 0 auto;
  background: var(--pink-soft); border-radius: 2px; overflow: hidden;
}
.loader__bar-fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--green));
  transform: translateX(-100%);
  animation: loaderBar 1.6s var(--ease-out) 0.3s forwards;
}
@keyframes loaderBar { to { transform: translateX(0); } }

/* =========================================================
   CUSTOM CURSOR
========================================================= */
.cursor, .cursor-follower {
  position: fixed; top: 0; left: 0; z-index: 9000;
  pointer-events: none;
}
.cursor {
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  color: var(--pink-deep);
  transition: transform 0.25s var(--ease-out), color 0.25s;
}
.cursor__petal { width: 100%; height: 100%; filter: drop-shadow(0 1px 3px rgba(216, 31, 106, 0.35)); animation: petalSway 2.6s ease-in-out infinite; }
@keyframes petalSway {
  0%, 100% { transform: rotate(-14deg); }
  50% { transform: rotate(18deg); }
}
.cursor-follower {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1.5px solid rgba(226, 97, 143, 0.45);
  border-radius: 50%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              margin 0.35s var(--ease-out), background 0.35s, border-color 0.35s;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif-en); font-size: 11px; letter-spacing: 0.12em;
  color: var(--white); text-transform: uppercase;
}
.cursor-follower::after { content: ""; }
body.cursor-hover .cursor { transform: scale(1.5); color: var(--emerald); }
body.cursor-hover .cursor-follower {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: rgba(226, 97, 143, 0.12); border-color: rgba(47, 174, 135, 0.55);
}
body.cursor-view .cursor { transform: scale(0); }
body.cursor-view .cursor-follower {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: rgba(34, 20, 25, 0.55); border-color: var(--pink);
  backdrop-filter: blur(2px);
}
body.cursor-view .cursor-follower::after { content: "VIEW"; }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-follower { display: none !important; }
}

/* =========================================================
   PROGRESS BAR
========================================================= */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 8000; background: transparent;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--pink-deep), var(--green), var(--emerald));
}

/* =========================================================
   SAKURA CANVAS
========================================================= */
#sakuraCanvas {
  position: fixed; inset: 0; z-index: 5;
  pointer-events: none;
}

/* =========================================================
   HEADER
========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background 0.5s, box-shadow 0.5s, padding 0.5s, opacity 0.45s, visibility 0.45s;
}
/* ヒーロー滞在中はヒーロー専用トップバーが担当。PCでは白背景ヘッダーを隠す */
@media (min-width: 901px) {
  .header:not(.is-scrolled) { opacity: 0; visibility: hidden; pointer-events: none; }
}
.header.is-scrolled {
  background: rgba(253, 248, 244, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(60, 47, 53, 0.08);
  padding-top: 8px; padding-bottom: 8px;
}
.header__logo img { height: 44px; width: auto; transition: transform 0.4s var(--ease-out); }
.header__logo:hover img { transform: scale(1.06) rotate(-2deg); }
.header__nav ul { display: flex; gap: clamp(12px, 2.2vw, 30px); }
.header__nav a {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  font-weight: 700; font-size: 13px; letter-spacing: 0.1em; padding: 4px 2px;
}
.header__nav .nav-en { font-family: var(--font-serif-en); font-size: 15px; letter-spacing: 0.18em; }
.header__nav .nav-ja { font-size: 10px; color: var(--ink-soft); transition: color 0.3s; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pink-deep), var(--green));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__nav a:hover .nav-ja { color: var(--pink-deep); }
.header__burger { display: none; }

/* =========================================================
   SECTION COMMON
========================================================= */
.section { position: relative; padding: clamp(90px, 14vh, 160px) clamp(20px, 6vw, 80px); }
.section__head { margin-bottom: clamp(40px, 7vh, 80px); position: relative; z-index: 2; }
.section__en {
  font-family: var(--font-serif-en);
  font-size: clamp(44px, 8vw, 96px);
  letter-spacing: 0.08em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 97, 143, 0.6);
}
.section__en--light { -webkit-text-stroke-color: rgba(242, 167, 195, 0.7); }
.section__ja {
  font-family: var(--font-mincho); font-weight: 700;
  font-size: clamp(20px, 3vw, 30px);
  margin-top: 6px; letter-spacing: 0.14em;
}
.section__ja::before {
  content: "✿"; color: var(--green-deep); margin-right: 10px; font-size: 0.8em;
}
.section__ja--light { color: var(--pink-soft); }
.section__ja--light::before { color: var(--green); }

/* split text spans（JSが生成） */
.split-chars .char, .split-lines .line { display: inline-block; }

/* clip reveal 初期状態はJS側で付与（CDN失敗時も見えるように） */
.reveal-clip { position: relative; }

.float-soft { animation: floatSoft 5s ease-in-out infinite; }
@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

/* =========================================================
   HERO（シネマティック：番傘と桜の一枚絵 × 白セリフ体タイポ）
========================================================= */
.hero {
  position: relative; min-height: 100svh;
  overflow: hidden;
  z-index: 1; /* Aboutの上端ブレンド用グラデが暗い動画に被らないように */
  background: #170e13; /* 動画・ポスター両方が無い場合の下地 */
  color: var(--white);
}
.hero__media {
  position: absolute; inset: -2%;
  z-index: 0;
}
.hero__video, .hero__media img.hero__poster {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 42%;
  animation: heroKenburns 28s ease-in-out infinite alternate;
}
@keyframes heroKenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
/* 縦画面：横長のhero.mp4/ポスターは顔（中央やや右上）が映る位置にずらす。
   縦型動画（hero-mobile.mp4）が読み込めたときは .is-vertical が付き中央表示に戻る */
@media (orientation: portrait) {
  .hero__video, .hero__media img.hero__poster { object-position: 66% 22%; }
  .hero__video.is-vertical { object-position: 50% 50%; }
}
/* 可読性オーバーレイ：左と下をやや暗く（全体は暗くしすぎない） */
.hero__media-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(12, 6, 9, 0.55) 0%, rgba(12, 6, 9, 0.28) 38%, rgba(12, 6, 9, 0) 68%),
    linear-gradient(0deg, rgba(12, 6, 9, 0.55) 0%, rgba(12, 6, 9, 0.2) 22%, rgba(12, 6, 9, 0) 46%),
    linear-gradient(180deg, rgba(12, 6, 9, 0.35) 0%, rgba(12, 6, 9, 0) 22%);
}

/* ---- ヒーロー専用トップバー ---- */
.hero__topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 3vh, 28px) clamp(20px, 4vw, 48px);
}
.hero__brand {
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.hero__brand-logo {
  height: clamp(40px, 6vh, 56px);
  width: auto; display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}
.hero__nav {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 10, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero__nav a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.35s, color 0.35s;
  white-space: nowrap;
}
.hero__nav a:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.hero__cta {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--white);
}
.hero__cta-text {
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em;
  white-space: nowrap;
}
.hero__cta-circle {
  width: 46px; height: 46px; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease-out);
}
.hero__cta:hover .hero__cta-circle {
  background: var(--white); color: var(--dark);
  transform: rotate(45deg);
}

/* ---- 左下テキストブロック ---- */
.hero__text {
  position: absolute; z-index: 3;
  left: clamp(20px, 5.5vw, 84px);
  bottom: clamp(64px, 13vh, 140px);
  max-width: min(84vw, 920px);
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(10px, 1.1vw, 12px); font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: clamp(14px, 2.4vh, 26px);
}
.hero__eyebrow-line {
  width: 44px; height: 1px; flex: none;
  background: rgba(255, 255, 255, 0.7);
}
.hero__headline {
  font-family: var(--font-mincho); font-weight: 800;
  color: var(--white);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.hero__headline .char { display: inline-block; }
.hero__hl-line { display: block; }
.hero__hl-line--sub {
  font-size: clamp(28px, 4.6vw, 56px);
  letter-spacing: 0.06em; line-height: 1.3;
}
.hero__hl-line--main {
  font-size: clamp(46px, 8.2vw, 102px);
  letter-spacing: 0.02em; line-height: 1.02;
  margin-top: 0.04em;
}
.char--hana {
  font-size: 1.6em; line-height: 1;
  color: #f4a7c3;
  margin-right: 0.03em;
  text-shadow: 0 8px 46px rgba(244, 167, 195, 0.4);
}
.hero__sub {
  margin-top: clamp(16px, 3vh, 30px);
  font-size: clamp(12px, 1.3vw, 15px); font-weight: 500;
  letter-spacing: 0.22em; line-height: 2.2;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

/* ---- 右端 縦書き ---- */
.hero__side {
  position: absolute; z-index: 4;
  right: clamp(16px, 2.6vw, 36px); top: 46%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-serif-en);
  font-size: 11px; letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

/* ---- 右下 スクロールインジケーター ---- */
.hero__scroll {
  position: absolute; z-index: 4;
  right: clamp(18px, 3vw, 40px); bottom: clamp(22px, 4.5vh, 42px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, 0.85);
}
.hero__scroll-text {
  font-family: var(--font-serif-en);
  letter-spacing: 0.3em; font-size: 11px;
}
.hero__scroll-ring {
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.4s;
}
.hero__scroll:hover .hero__scroll-ring { border-color: rgba(255, 255, 255, 0.95); }
.hero__scroll-line {
  width: 1px; height: 18px;
  background: rgba(255, 255, 255, 0.25);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--white);
  animation: scrollLine 1.8s var(--ease-out) infinite;
}
@keyframes scrollLine { to { top: 110%; } }

/* ---- 下中央 白バー ---- */
.hero__bottombar {
  position: absolute; z-index: 4;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  width: 46px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   ABOUT
========================================================= */
.about { background: var(--white); }
.about::before {
  content: ""; position: absolute; top: -80px; left: 0; right: 0; height: 80px;
  background: linear-gradient(180deg, transparent, var(--white));
  pointer-events: none;
}
.about__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(30px, 6vw, 90px); align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.about__visual { position: relative; border-radius: 18px; overflow: visible; }
.about__visual > img:first-child {
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(226, 97, 143, 0.25);
  transition: transform 0.6s var(--ease-out);
}
.about__visual:hover > img:first-child { transform: scale(1.02) rotate(-0.6deg); }
.about__sign {
  position: absolute; right: -8%; bottom: -10%;
  width: 42%; pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(216, 31, 106, 0.3));
}
.about__lead {
  font-family: var(--font-mincho); font-size: clamp(16px, 2vw, 21px);
  line-height: 2.3; letter-spacing: 0.06em;
}
.about__note { font-size: 11px; color: var(--ink-soft); margin-top: 10px; }
.about__profile { margin-top: 34px; border-top: 1px solid rgba(60, 47, 53, 0.12); }
.about__row {
  display: grid; grid-template-columns: 158px 1fr;
  padding: 14px 10px; border-bottom: 1px solid rgba(60, 47, 53, 0.12);
  transition: background 0.35s, padding-left 0.35s var(--ease-out);
  border-radius: 4px;
}
.about__row:hover { background: var(--pink-soft); padding-left: 20px; }
.about__row dt {
  font-weight: 700; color: var(--green-deep); letter-spacing: 0.1em;
  font-size: 14px;
}
.about__row dd { font-size: 15px; letter-spacing: 0.05em; }

/* ファンクラブ導線（ABOUT内） */
.about__fanclub {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--pink-deep);
  background: var(--white);
  color: var(--pink-deep);
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(216, 31, 106, 0.14);
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.about__fanclub:hover {
  background: var(--pink-deep); color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(216, 31, 106, 0.3);
}
.about__fanclub-icon { font-size: 0.9em; }
.about__fanclub-arrow { font-weight: 700; }

/* =========================================================
   GALLERY（横スクロールピン）
========================================================= */
.gallery { background: var(--cream); position: relative; }
.gallery__pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: clamp(80px, 10vh, 120px) 0 40px;
}
.gallery__head { padding: 0 clamp(20px, 6vw, 80px); }
.gallery__hint { font-size: 12px; color: var(--ink-soft); margin-top: 8px; letter-spacing: 0.1em; }
.gallery__track {
  display: flex; gap: clamp(20px, 3vw, 44px);
  padding: 10px clamp(20px, 6vw, 80px) 30px;
  width: max-content;
  will-change: transform;
}
.gallery__item {
  position: relative; flex: 0 0 auto;
  width: clamp(240px, 32vw, 420px);
  border-radius: 16px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(60, 47, 53, 0.16);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.gallery__item img {
  width: 100%; height: clamp(320px, 52vh, 540px);
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.gallery__item:hover { transform: translateY(-10px); box-shadow: 0 30px 70px rgba(216, 31, 106, 0.28); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(34, 20, 25, 0.72));
  color: var(--white);
  font-family: var(--font-mincho); letter-spacing: 0.18em; font-size: 15px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s, transform 0.45s var(--ease-out);
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }

/* 動く画廊：カード内ループ動画（読み込めた時だけ表示。無ければ静止画のまま） */
.gallery__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s, transform 0.8s var(--ease-out);
}
.gallery__item.has-motion .gallery__video { opacity: 1; }
.gallery__item:hover .gallery__video { transform: scale(1.07); }

/* 動く作品バッジ（動画の再生に成功したカードだけに表示） */
.gallery__badge {
  position: absolute; top: 12px; left: 12px;
  display: none;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 20, 25, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-serif-en);
  font-size: 10px; letter-spacing: 0.22em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.gallery__item.has-motion .gallery__badge { display: inline-flex; }

/* =========================================================
   MOVIE（ダークセクション）
========================================================= */
.movie {
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(216, 31, 106, 0.18), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(47, 174, 135, 0.12), transparent 60%),
    linear-gradient(165deg, var(--dark) 0%, var(--dark-2) 60%, #1a1014 100%);
  color: var(--pink-soft);
  overflow: hidden;
}
.movie__deco {
  position: absolute; right: clamp(-40px, 1vw, 60px); top: 8%;
  width: clamp(180px, 22vw, 340px);
  opacity: 0.9; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(216, 31, 106, 0.35));
}
.movie__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 60px);
  max-width: 1200px; margin: 0 auto;
  align-items: start;
}
.movie__main video, .movie__main img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 167, 195, 0.18);
  background: #000;
}
.movie__yt-frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(143, 201, 138, 0.2);
}
.movie__yt-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.movie__label {
  margin-top: 14px; font-size: 12px; letter-spacing: 0.12em;
  color: rgba(251, 227, 236, 0.6);
}

/* =========================================================
   SD WORLD
========================================================= */
.sdworld {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(242, 167, 195, 0.2), transparent 60%),
    var(--cream);
  text-align: left;
}
.sdworld__stage {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  min-height: clamp(380px, 60vh, 560px);
}
.sd-chara {
  position: absolute;
  width: clamp(96px, 13vw, 170px);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out);
  animation: sdFloat 6s ease-in-out infinite;
}
.sd-chara img { filter: drop-shadow(0 10px 24px rgba(60, 47, 53, 0.2)); transition: transform 0.4s var(--ease-out); }
.sd-chara:hover { z-index: 5; }
.sd-chara:hover img { transform: scale(1.18) rotate(-6deg); }
.sd-chara::after {
  content: attr(data-say);
  position: absolute; left: 50%; top: -18px;
  transform: translate(-50%, 6px) scale(0.8);
  background: var(--white); color: var(--pink-deep);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--pink);
  box-shadow: 0 6px 18px rgba(216, 31, 106, 0.18);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.sd-chara:hover::after { opacity: 1; transform: translate(-50%, 0) scale(1); }
/* タッチ端末：タップで吹き出し（JSが .is-say を一時付与） */
.sd-chara.is-say { z-index: 5; }
.sd-chara.is-say img { transform: scale(1.18) rotate(-6deg); }
.sd-chara.is-say::after { opacity: 1; transform: translate(-50%, 0) scale(1); }
.sd-chara--1 { left: 4%;  top: 8%;  animation-delay: 0s; }
.sd-chara--2 { left: 24%; top: 52%; animation-delay: -1.2s; }
.sd-chara--3 { left: 43%; top: 12%; animation-delay: -2.4s; }
.sd-chara--4 { left: 60%; top: 55%; animation-delay: -3.1s; }
.sd-chara--5 { left: 76%; top: 14%; animation-delay: -4.2s; }
.sd-chara--6 { left: 88%; top: 48%; animation-delay: -5s; }
@keyframes sdFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2.5deg); }
}
.sdworld__hint {
  text-align: center; font-size: 12px; color: var(--ink-soft);
  letter-spacing: 0.14em; margin-top: 20px;
}

/* うごく ちび花音（ミニシアター）：動画が読み込めたカードだけ表示 */
.sdworld__theater {
  max-width: 1100px;
  margin: clamp(48px, 8vh, 84px) auto 0;
  text-align: center;
}
.sdworld__theater[hidden] { display: none; }
.sdworld__theater-title {
  font-family: var(--font-mincho);
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: 0.24em;
  color: var(--ink);
  margin-bottom: clamp(22px, 4vh, 36px);
}
.sdworld__theater-deco { color: var(--pink-deep); font-size: 0.8em; }
.sdworld__theater-row {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(18px, 3.5vw, 44px);
  flex-wrap: wrap;
  padding: 0 20px;
}
.sd-movie {
  display: none; /* 動画の読み込みに成功したら is-ready で表示 */
  position: relative;
  width: clamp(190px, 24vw, 280px);
  padding: 10px 10px 12px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(216, 31, 106, 0.14);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.sd-movie.is-ready { display: block; animation: sdMovieIn 0.7s var(--ease-out) both; }
/* ポラロイド風に少しずつ傾ける＋桜色のマスキングテープ */
.sd-movie:nth-child(1) { transform: rotate(-3deg); }
.sd-movie:nth-child(2) { transform: rotate(2deg) translateY(10px); }
.sd-movie:nth-child(3) { transform: rotate(-2deg); }
.sd-movie::before {
  content: "";
  position: absolute; top: -9px; left: 50%;
  width: 58px; height: 18px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(242, 167, 195, 0.75);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(60, 47, 53, 0.12);
}
.sd-movie:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04);
  box-shadow: 0 26px 56px rgba(216, 31, 106, 0.26);
  z-index: 3;
}
.sd-movie__video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  background: var(--pink-soft);
  pointer-events: none;
}
.sd-movie figcaption {
  margin-top: 10px;
  font-family: var(--font-mincho);
  font-size: 13px; letter-spacing: 0.12em;
  color: var(--ink);
}
.sd-movie figcaption::before {
  content: "▶ ";
  color: var(--pink-deep);
  font-size: 0.75em;
}
@keyframes sdMovieIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================
   NEWS
========================================================= */
.news { background: var(--white); }
.news__list { max-width: 900px; margin: 0 auto; }
.news__item {
  display: grid; grid-template-columns: 110px 90px 1fr 30px;
  align-items: center; gap: 16px;
  padding: 22px 14px;
  border-bottom: 1px solid rgba(60, 47, 53, 0.12);
  transition: background 0.35s, transform 0.35s var(--ease-out);
}
.news__item:first-child { border-top: 1px solid rgba(60, 47, 53, 0.12); }
.news__item:hover { background: var(--pink-soft); transform: translateX(6px); }
.news__item time {
  font-family: var(--font-serif-en); letter-spacing: 0.08em;
  color: var(--ink-soft); font-size: 14px;
}
.news__tag {
  font-size: 11px; font-weight: 700; text-align: center;
  color: var(--green-deep); border: 1px solid var(--green);
  border-radius: 999px; padding: 3px 10px; letter-spacing: 0.08em;
}
.news__item p { font-size: 14.5px; letter-spacing: 0.04em; }
.news__arrow {
  color: var(--pink-deep); font-weight: 700;
  transform: translateX(-6px); opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.news__item:hover .news__arrow { transform: translateX(0); opacity: 1; }
.news__note {
  max-width: 900px; margin: 14px auto 0;
  font-size: 11px; color: var(--ink-soft);
}

/* =========================================================
   FOLLOW
========================================================= */
.follow {
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(242, 167, 195, 0.35), transparent 65%),
    linear-gradient(180deg, var(--white), var(--cream));
  text-align: center;
}
.follow__inner { position: relative; max-width: 800px; margin: 0 auto; }
.follow__sign {
  position: absolute; left: 50%; top: -30px;
  transform: translateX(-50%);
  width: min(48vw, 300px); opacity: 0.35; pointer-events: none;
}
.follow .section__en { -webkit-text-stroke-color: rgba(226, 97, 143, 0.5); }
.follow__title {
  font-family: var(--font-mincho); font-weight: 700;
  font-size: clamp(24px, 4.4vw, 40px);
  letter-spacing: 0.12em; margin: 12px 0 40px;
  position: relative; z-index: 2;
}
.follow__buttons {
  display: flex; gap: clamp(14px, 3vw, 30px); justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 34px; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.08em; font-size: 15px;
  background: var(--white);
  border: 2px solid var(--ink);
  transition: color 0.4s, border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
  box-shadow: 0 10px 30px rgba(60, 47, 53, 0.12);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--pink-deep), var(--rose));
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn--yt::before { background: linear-gradient(120deg, var(--emerald), var(--green-deep)); }
.btn--fc::before { background: linear-gradient(120deg, var(--gold), var(--pink-deep)); }
.btn:hover { color: var(--white); border-color: transparent; box-shadow: 0 16px 40px rgba(216, 31, 106, 0.3); }
.btn:hover::before { transform: translateY(0); }
.btn__icon { font-size: 18px; }
.btn small { font-size: 10px; opacity: 0.65; font-weight: 400; }

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: var(--dark);
  color: rgba(251, 227, 236, 0.75);
  text-align: center;
  padding: 60px 20px 40px;
}
.footer__logo { width: min(48vw, 220px); margin: 0 auto 24px; opacity: 0.95; }
.footer__caution { font-size: 11.5px; line-height: 2; letter-spacing: 0.06em; }
.footer__copy {
  margin-top: 22px;
  font-family: var(--font-serif-en); letter-spacing: 0.2em; font-size: 13px;
  color: var(--pink);
}

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(26, 16, 20, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
  padding: 4vh 4vw;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure {
  max-width: min(92vw, 1100px); max-height: 90svh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.45s var(--ease-out);
}
.lightbox.is-open .lightbox__figure { transform: scale(1) translateY(0); }
.lightbox__figure img {
  max-width: 100%; max-height: 78svh; object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lightbox__figure figcaption {
  color: var(--pink-soft); font-family: var(--font-mincho);
  letter-spacing: 0.22em; font-size: 15px;
}
/* ライトボックス内の動画（動画付きカードのみ。静止画と同じ見た目で表示） */
.lightbox__video {
  max-width: 100%; max-height: 78svh; object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lightbox__video[hidden] { display: none; }
.lightbox__close {
  position: absolute; top: 20px; right: 26px;
  width: 52px; height: 52px; border-radius: 50%;
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background 0.35s, transform 0.35s var(--ease-out);
}
.lightbox__close:hover { background: var(--pink-deep); border-color: var(--pink-deep); transform: rotate(90deg); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .sp-only { display: inline; }

  .header__nav {
    position: fixed; inset: 0;
    background: rgba(253, 248, 244, 0.97);
    backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .header__nav.is-open { opacity: 1; visibility: visible; }
  .header__nav ul { flex-direction: column; text-align: center; gap: 26px; }
  .header__nav .nav-en { font-size: 26px; }
  .header__nav .nav-ja { font-size: 12px; }
  .header__burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 10px; cursor: pointer;
    position: relative; z-index: 10;
  }
  .header__burger span {
    width: 26px; height: 2px; background: var(--ink);
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
  }
  .header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__burger.is-open span:nth-child(2) { opacity: 0; }
  .header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ヒーロー滞在中（未スクロール）：ロゴは隠し、バーガーは白で動画上に */
  .header:not(.is-scrolled) .header__logo { opacity: 0; pointer-events: none; }
  .header:not(.is-scrolled) .header__burger:not(.is-open) span { background: var(--white); }

  /* ノッチ・ホームバー対応（safe-area） */
  .header {
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }
  .header__burger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

  /* ヒーロー：モバイル調整（ピルナビは既存バーガーメニューへ退避） */
  .hero__nav, .hero__cta { display: none; }
  .hero__topbar {
    padding: 20px calc(20px + env(safe-area-inset-right, 0px)) 20px calc(20px + env(safe-area-inset-left, 0px));
  }
  .hero__side { display: none; }
  .hero__text {
    left: calc(20px + env(safe-area-inset-left, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: 88px; max-width: none;
  }
  .hero__eyebrow { font-size: 10px; letter-spacing: 0.22em; }
  .hero__hl-line { white-space: nowrap; }
  .hero__hl-line--sub { font-size: clamp(22px, 6.6vw, 32px); }
  .hero__hl-line--main { font-size: clamp(32px, 10.2vw, 54px); }
  .hero__sub { letter-spacing: 0.14em; }
  .hero__scroll {
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .hero__scroll-ring { width: 44px; height: 44px; }
  .hero__bottombar { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

  /* モバイルは可読性オーバーレイを少し濃く（小画面での白文字対策） */
  .hero__media-veil {
    background:
      linear-gradient(115deg, rgba(12, 6, 9, 0.6) 0%, rgba(12, 6, 9, 0.34) 40%, rgba(12, 6, 9, 0.06) 70%),
      linear-gradient(0deg, rgba(12, 6, 9, 0.66) 0%, rgba(12, 6, 9, 0.3) 26%, rgba(12, 6, 9, 0) 52%),
      linear-gradient(180deg, rgba(12, 6, 9, 0.42) 0%, rgba(12, 6, 9, 0) 24%);
  }

  /* ギャラリー：モバイルはネイティブ横スワイプ＋スナップ */
  .gallery__track {
    width: auto; max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery__track::-webkit-scrollbar { display: none; }
  .gallery__item { scroll-snap-align: center; }

  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 480px; margin: 0 auto; }
  .about__row { grid-template-columns: 132px 1fr; column-gap: 12px; }
  .about__row dt { font-size: 12.5px; letter-spacing: 0.04em; line-height: 1.6; align-self: center; }

  .movie__grid { grid-template-columns: 1fr; }
  .movie__deco { top: auto; bottom: -20px; opacity: 0.4; }

  .news__item { grid-template-columns: 92px 1fr 24px; grid-template-rows: auto auto; }
  .news__item time { grid-column: 1; grid-row: 1; }
  .news__tag { grid-column: 2; grid-row: 1; justify-self: start; }
  .news__item p { grid-column: 1 / -1; grid-row: 2; }
  .news__arrow { grid-column: 3; grid-row: 1; }

  /* SD WORLD：見出し・浮遊キャラ・ミニシアターを中央に揃える */
  .sdworld .section__head { text-align: center; }

  /* 浮遊ちびキャラ：左右対称（左列=left 9%／右列=right 9%／中央列=正確なセンター） */
  .sd-chara { width: clamp(80px, 22vw, 120px); }
  .sd-chara--1 { left: 9%;  top: 4%; }
  .sd-chara--2 { left: auto; right: 9%; top: 2%; }
  .sd-chara--3 { left: 50%; margin-left: calc(-0.5 * clamp(80px, 22vw, 120px)); top: 30%; }
  .sd-chara--4 { left: 9%;  top: 60%; }
  .sd-chara--5 { left: auto; right: 9%; top: 56%; }
  .sd-chara--6 { left: 50%; margin-left: calc(-0.5 * clamp(80px, 22vw, 120px)); top: 74%; }
  .sdworld__stage { min-height: 480px; }

  /* ミニシアター：中央スナップの横スワイプ（1枚目から中央に揃う） */
  .sd-movie { width: clamp(210px, 62vw, 280px); }
  .sdworld__theater-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 20px;
    /* 左右パディングで先頭・末尾のカードも画面中央にスナップできるようにする */
    padding: 16px max(20px, calc(50% - 31vw)) 14px;
  }
  .sdworld__theater-row::-webkit-scrollbar { display: none; }
  .sd-movie { flex: 0 0 auto; scroll-snap-align: center; }
  .sd-movie:nth-child(2) { transform: rotate(2deg); } /* スワイプ列では縦ズレをなくす */
}

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  #sakuraCanvas { display: none; }
}
