/* =========================================================
   聖恋 クリスマスストーリー(仮) 特設サイト
   -----------------------------------------------------------
   目次 (Table of contents)
     1. Reset / base styles
     2. Opening splash (オープニングロゴ)
     3. Hero (ヘッダー画像)
     4. In-page nav
     5. Section common (見出し・余白)
     6. NEWS / STORY (split layout)
     7. MOVIE
     8. CAST
     9. MUSIC
    10. STAFF
    11. LINKS
    12. Footer
    13. Responsive — Tablet / Mobile
   ========================================================= */

/* ---------------------------------------------------------
   1. Reset / base styles
   --------------------------------------------------------- */
:root{
  /* Colors */
  --wine: #d81e5b;
  --wine-deep: #6e0f36;
  --wine-light: #ff6fa0;
  --gold: #d9a65c;
  --gold-soft: #f7dba3;
  --pink-pop: #ff6f9c;
  --pink-soft: #ffe1ec;
  --pink-accent: #e3a1b1;
  --pink-accent-deep: #c97b90;
  --pink-accent-soft: #f6dce2;
  --lavender: #c9a8e8;
  --cream: #fffaf6;
  --cream-2: #fdeee9;
  --blush: #fff0f4;
  --blush-deep: rgba(216, 30, 91, .16);
  --ink: #3a1c28;
  --text-sub: #8a5a66;

  /* Typography */
  --font-display: "Cormorant Garamond", "Shippori Mincho B1", "Noto Serif CJK JP", serif;

  /* Shape / shadow */
  --radius-md: 18px;
  --radius-lg: 32px;
  --shadow-photo: 0 24px 40px -18px rgba(110,15,54,.38), 0 8px 16px -8px rgba(110,15,54,.16);
  --shadow-photo-hover: 0 30px 48px -16px rgba(110,15,54,.42), 0 10px 20px -8px rgba(110,15,54,.2);

  /* Layout */
  --max-width: 1100px;
  --nav-h: 56px;
  font-size: 16px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  font-family: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(20,6,12,.4) 0%, rgba(20,6,12,.14) 35%, rgba(20,6,12,.4) 100%),
    url("../images/bg-main.jpg") center / cover no-repeat fixed,
    var(--wine-deep);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
/* While the opening splash is up, the page beneath must not scroll */
body:has(.splash:not(.is-hidden)){ overflow: hidden; height: 100vh; }

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, dl{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p,dt,dd{ margin: 0; }

/* Site-wide falling snow + twinkling sparkle — fixed to the viewport so
   it reads continuously behind every section as the page scrolls, not
   just inside the hero. Sits just above the body's own background and
   below all normal page content (negative z-index on a position:fixed
   element paints below in-flow content, but above the painted root
   background). Purely decorative. */
.site-snow{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.placeholder-copy{
  color: var(--text-sub);
}

/* =========================================================
   2. Opening splash (オープニングロゴ)
   -----------------------------------------------------------
   A full-screen title card that plays the logo reveal BEFORE the
   hero/page is shown, then fades away. Reuses the same hero-kicker /
   hero-logo-group / hero-tagline markup+styling so the splash and the
   hero that appears behind it read as one continuous moment.
   ========================================================= */
.splash{
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: #bf1927;              /* ← グラデーションをやめて単色に統一 */
  transition: opacity .7s ease, visibility .7s;
  cursor: pointer;
}
.splash.is-hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
/* The staggered reveal sequence lives here, scoped to the splash —
   the same elements inside the hero below render statically (no
   replay) once the splash has done its job. */
.splash .hero-kicker{
  color: var(--gold-soft);          /* ← var(--wine-deep) から変更 */
  opacity: 0;
  transform: translateY(10px);
  animation: text-up-in .8s .3s cubic-bezier(.22,.68,.32,1) forwards;
}
.splash .hero-logo{
  clip-path: inset(0 100% 0 0);
  transform: scale(1.04);
  /* The reveal wipes left-to-right via clip-path, whose left edge is
     pinned at the box's local x=0. The scale(1.04 -> 1) shrink needs to
     share that same anchor -- otherwise, with the default center origin,
     the whole box (including that "fixed" left edge) creeps inward as it
     shrinks, so the logo visibly drifts sideways while it's revealing
     instead of staying put. transform-origin: left keeps the left edge
     truly static and lets only the reveal itself move. */
  transform-origin: left center;
  filter: drop-shadow(0 2px 6px rgba(110,15,54,.16));
  animation: logo-reveal 1s .6s cubic-bezier(.65,0,.35,1) forwards;
}
.splash .hero-logo-rule{
  width: 0;
  background: var(--gold-soft);   /* ← linear-gradient(90deg, var(--gold-soft), #fff) から変更 */
  animation: rule-draw .6s 1.5s cubic-bezier(.65,0,.35,1) forwards;
}

.splash .hero-tagline{
  color: var(--gold-soft);          /* ← var(--wine-deep) から変更 */
  text-shadow: 0 1px 4px rgba(0,0,0,.35);   /* ← 影も濃い赤に合わせて黒系に変更 */
  opacity: 0;
  transform: translateY(10px);
  animation: text-up-in .8s 1.75s cubic-bezier(.22,.68,.32,1) forwards;
}
@media (prefers-reduced-motion: reduce){
  .splash .hero-logo{ clip-path: none; }
}

/* =========================================================
   3. Hero (ヘッダー画像)
   ========================================================= */
.hero{
  position: relative;
  line-height: 0;
  background: var(--wine-deep);
  overflow: hidden;
}
.hero-bg{
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 0;
  transform: translateY(0);
  will-change: transform;
}
/* Diagonal ribbon sweep — a soft light-sweep behind the hero text */
.hero-ribbon{
  position: absolute;
  z-index: 1;
  left: -10%;
  top: 38%;
  width: 130%;
  height: 46%;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 0%,
    rgba(255,214,150,.14) 30%,
    rgba(201,123,144,.12) 55%,
    rgba(255,255,255,0) 85%);
  transform: rotate(-6deg);
  pointer-events: none;
}
.hero-snow{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none; /* the poster artwork already carries its own title
    treatment — re-enable (display:flex) if a plain/untitled header
    photo is used instead and the HTML logo lockup is needed again */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.hero-ribbon{ display: none; } /* same reasoning as .hero-overlay above */

/* Small tilted ornaments scattered near the hero text.
   Hidden on all screen sizes now (previously mobile-only via the
   max-width:720px rule below) so the hero stays to just the snow
   animation on PC too, per request -- the gold/pink circles were
   competing visually with the snow. Kept in the markup/CSS (rather than
   removed) in case they're wanted back later; the old mobile-only and
   reduced-motion display:none rules are now redundant but left in place. */
.hero-ornament{
  display: none;
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: ornament-in 1s cubic-bezier(.22,.68,.32,1) forwards, ornament-float 5s ease-in-out infinite;
}
.hero-ornament--1{
  top: 20%; left: 14%;
  width: 54px; height: 54px;
  border: 1.5px solid var(--gold-soft);
  transform: rotate(-12deg);
  animation-delay: 2.4s, 2.9s;
}
.hero-ornament--2{
  bottom: 16%; right: 12%;
  width: 34px; height: 34px;
  background: var(--pink-pop);
  opacity: 0;
  animation-delay: 2.6s, 3.1s;
}
.hero-ornament--3{
  top: 32%; right: 16%;
  font-size: 1.4rem;
  color: var(--gold-soft);
  animation-delay: 2.8s, 3.3s;
}
@keyframes ornament-in{
  from{ opacity: 0; transform: scale(.4) rotate(0deg); }
  to{ opacity: .8; transform: scale(1) rotate(var(--rot, 0deg)); }
}
@keyframes ornament-float{
  0%, 100%{ margin-top: 0; }
  50%{ margin-top: -10px; }
}

/* Hero copy — static by default (the splash already played the
   entrance); see section 2 for the splash-scoped animated versions */
.hero-kicker{
  font-family: var(--font-display);
  font-size: 1.3rem;        /* ← 0.9rem から変更 */
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.32em;
  color: var(--gold-soft);
  text-indent: 0.32em;
}
.hero-logo-group{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo{
  width: min(480px, 70%);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.22));
}
.hero-logo-rule{
  width: 72px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--pink-pop), var(--gold-soft));
}
.hero-tagline{
  font-family: "Shippori Mincho B1", "Noto Serif CJK JP", serif;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 500;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
@keyframes text-up-in{
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes logo-reveal{
  to{ clip-path: inset(0 0 0 0); transform: scale(1); }
}
@keyframes rule-draw{
  to{ width: 72px; }
}

@media (prefers-reduced-motion: reduce){
  .hero-ornament{ display: none; }
}

/* =========================================================
   4. In-page nav
   ========================================================= */
.page-nav{
  background: var(--wine-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .25s ease, background-color .25s ease;
}
.page-nav.is-scrolled{
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

/* Scroll progress bar */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--pink-pop), var(--gold-soft));
  z-index: 200;
}

/* Back-to-top button */
.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink-pop), var(--gold));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(173, 42, 77, .3);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
  z-index: 150;
}
.back-to-top.is-visible{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover{ box-shadow: 0 14px 30px rgba(173, 42, 77, .4); transform: translateY(-2px) scale(1.04); }
.page-nav-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.page-nav-inner a{
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  position: relative;
}
.page-nav-inner a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.page-nav-inner a:hover::after{ transform: scaleX(1); }

.nav-toggle{
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
}
.nav-toggle-label{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--pink-accent-soft);
}
.nav-toggle-icon{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 22px;
  height: 22px;
}
.nav-toggle-icon span{
  width: 22px;
  height: 2px;
  background: var(--pink-accent-soft);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Dedicated close button for the full-screen mobile menu — lives at the
   body level (not nested in the sticky nav bar); see the mobile
   breakpoint for when it's shown. */
.nav-close-fixed{
  display: none;
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 120;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--pink-accent-soft);
  cursor: pointer;
}

/* =========================================================
   5. Section common (見出し・余白)
   ========================================================= */
.section{ padding: 128px 0; }
.eyebrow{
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.26em;
  color: var(--pink-pop);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after{
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--light{ color: var(--gold-soft); }
.section-title{
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  font-style: italic;
  color: var(--wine);
  background: linear-gradient(120deg, var(--wine) 15%, var(--pink-pop) 60%, var(--wine) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  padding-bottom: 18px;
}
.section-title .title-spark{
  display: block;
  font-size: 0.8rem;
  color: var(--pink-pop);
  letter-spacing: 0;
  margin-bottom: 8px;
}
.section-title::after{
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 56px;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}
.section-title--light{ color: var(--gold-soft); }
.section-title--light::after{ background: var(--gold-soft); }
.section-title--light .title-spark{ color: var(--pink-pop); }

/* Scroll reveal — visible by default; JS arms the hidden/animate-in state
   (progressive enhancement: works with no JS / reduced motion) */
.reveal{ opacity: 1; transform: none; }
body.reveal-armed .reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.68,.32,1), transform .7s cubic-bezier(.22,.68,.32,1);
}
body.reveal-armed .reveal.is-visible{ opacity: 1; transform: translateY(0); }

.cast-main-grid > .reveal:nth-child(2),
.link-banners > .reveal:nth-child(2){ transition-delay: .12s; }
.cast-sub-grid > .reveal:nth-child(4n+2){ transition-delay: .08s; }
.cast-sub-grid > .reveal:nth-child(4n+3){ transition-delay: .16s; }
.cast-sub-grid > .reveal:nth-child(4n){ transition-delay: .24s; }
.staff-row.reveal:nth-child(2){ transition-delay: .06s; }
.staff-row.reveal:nth-child(3){ transition-delay: .12s; }
.staff-row.reveal:nth-child(4){ transition-delay: .18s; }
.staff-row.reveal:nth-child(5){ transition-delay: .24s; }

/* Character/line scroll reveal — same progressive-enhancement idea as
   .reveal above (visible by default; JS arms the hidden/animate-in
   state), but splits the text itself into per-character or per-line
   spans so short headings (CAST's eyebrow + title) type on character
   by character, and longer copy (STORY's body paragraph) reveals
   line by line instead of fading in as one flat block. The script
   only adds body.text-reveal-armed once it has actually finished
   wrapping the text in spans, so there's never a flash of
   split/hidden text if JS runs late or IntersectionObserver isn't
   supported -- the text just renders normally in that case. */
.text-split-chars .char,
.text-split-lines .word{ display: inline-block; opacity: 1; transform: none; }
body.text-reveal-armed .text-split-chars .char,
body.text-reveal-armed .text-split-lines .word{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s cubic-bezier(.22,.68,.32,1), transform .5s cubic-bezier(.22,.68,.32,1);
}
body.text-reveal-armed .text-split-chars.is-split-visible .char,
body.text-reveal-armed .text-split-lines.is-split-visible .word{
  opacity: 1;
  transform: translateY(0);
}
/* letter-spacing doesn't carry over cleanly once each character is its
   own inline-block box -- browsers add it as trailing space on every
   box rather than only between glyphs, which quietly widened "CAST &
   CHARACTERS" enough to overflow on narrow screens even though the
   same text fit fine before the split. Cancel it on the split wrapper
   and reproduce the original spacing as margin-right per character
   instead (dropped on the last one so centering isn't thrown off). */
.eyebrow .text-split-chars{ letter-spacing: 0; }
.eyebrow .text-split-chars .char{ margin-right: 0.26em; }
.section-title .text-split-chars{ letter-spacing: 0; }
.section-title .text-split-chars .char{ margin-right: 0.06em; }
.text-split-chars .char:last-child{ margin-right: 0; }
/* .section-title paints its gradient text with background-clip:text, but
   that clip only picks up an element's OWN text -- it doesn't carry
   through to the now-separate .char boxes once the title is split, so
   the letters rendered with no fill at all (invisible). Repeat each
   section's gradient (or solid color) directly on the .char spans so
   every letter keeps its intended look after the split. */
.section-title .text-split-chars .char{
  background: linear-gradient(120deg, var(--wine) 15%, var(--pink-pop) 60%, var(--wine) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.story-section .section-title .text-split-chars .char{
  background: linear-gradient(120deg, var(--gold-soft) 15%, #fff 55%, var(--gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cast-section .section-title .text-split-chars .char{
  background: none;
  -webkit-text-fill-color: var(--wine-deep);
  color: var(--wine-deep);
}

/* Most sections sit on a pale cream/blush panel so text stays easy to
   read. STORY and CAST break that rhythm with a deep wine-red band —
   the same family as the opening splash — so the page has some real
   light/dark contrast instead of reading as one uniform soft tone. */
/* NEWS is the first section right after the hero's wave-divider, and the
   divider itself already tapers into a good amount of cream before the
   section's own 128px top padding even starts -- stacked together that
   read as a big empty gap before anything appears. Trimmed just this
   section's top padding so NEWS starts sooner; left-/bottom-padding
   (and every other section) unchanged. */
.news-section{ background: var(--cream); position: relative; overflow: hidden; padding-top: 72px; }
.music-section{ background: var(--cream); }
.staff-section{ background: var(--blush); }
.links-section{ background: var(--cream); position: relative; overflow: hidden; }

.story-section,
.cast-section{
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.story-section{
  background:
    linear-gradient(180deg, rgba(22,6,34,.65) 0%, rgba(22,6,34,.22) 16%, rgba(22,6,34,0) 32%),
    linear-gradient(to top, rgba(22,6,34,.65) 0%, rgba(22,6,34,.22) 16%, rgba(22,6,34,0) 32%),
    linear-gradient(to left, rgba(30,8,42,.32) 0%, rgba(30,8,42,.09) 42%, rgba(30,8,42,0) 60%),
    url("../images/story-bg-spiral.jpg") center 35% / cover no-repeat,
    #170a1f;
}
.cast-section{
  /* Pale cream wash over the banner so the busy ornament/snowflake pattern
     recedes a bit behind the cast cards and text, improving legibility
     without hiding the photo entirely. */
  background:
    linear-gradient(rgba(255,250,246,.4), rgba(255,250,246,.4)),
    url("../images/cast-banner-xmas-pink-notext.jpg") top center / 100% auto no-repeat,
    #f5acb7;
}
.story-snow,
.cast-sparkle{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.story-section .eyebrow{ color: var(--gold-soft); }
.cast-section .eyebrow{ color: var(--wine); }
.story-section .section-title{
  background: linear-gradient(120deg, var(--gold-soft) 15%, #fff 55%, var(--gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* CAST's banner background is now a light pink Christmas-ornament photo
   (previously a deep green texture), so its headings/text switched from
   white+gold to dark wine for legibility -- see the CAST-scoped rules
   below. STORY keeps the original gold-on-dark treatment untouched. */
.cast-section .section-title{
  background: none;
  -webkit-text-fill-color: var(--wine-deep);
  color: var(--wine-deep);
}
.story-section .split-text{
  background: rgba(16,3,8,.52);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  backdrop-filter: blur(3px);
}
.story-section .split-text p{ color: var(--cream); }
.cast-section .cast-name{ color: var(--wine-deep); }
.cast-section .cast-realname{ color: var(--wine); }
.cast-section .cast-role{ background: rgba(110,15,54,.12); color: var(--wine-deep); }
.cast-section .cast-desc{ color: rgba(60,15,30,.82); }
.cast-section .relationship-title{
  background: none;
  -webkit-text-fill-color: var(--wine-deep);
  color: var(--wine-deep);
}
.cast-section .relationship-title::after{ background: var(--wine-deep); }

/* Corner-bleed ornaments — decorative marks that break past the section
   edge */
.news-section::before{
  content: "❄";
  position: absolute;
  top: -48px; right: -24px;
  font-size: 200px;
  line-height: 1;
  color: var(--blush-deep);
  opacity: .5;
  transform: rotate(14deg);
  pointer-events: none;
  z-index: -1;
}
.links-section::before{
  content: "✦";
  position: absolute;
  bottom: -40px; left: -30px;
  font-size: 160px;
  line-height: 1;
  color: var(--pink-soft);
  opacity: .8;
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: -1;
}

/* =========================================================
   Wave seams — a curved handoff between sections instead of a flat
   color cut. One pronounced wave under the header/nav; a few quieter
   ones bracket the STORY/CAST dark band so the curve does double
   duty marking where the light/dark contrast happens.
   ========================================================= */
.wave-divider{ position: relative; width: 100%; line-height: 0; }
.wave-divider svg{ display: block; width: 100%; height: 100%; }
.wave-divider .wave-line{
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  opacity: .75;
}
.wave-divider--hero{ height: 110px; background: var(--wine-deep); margin-bottom: -1px;}
.wave-divider--hero .wave-fill{ fill: var(--cream); }
.wave-divider--soft{ height: 52px; }
.wave-divider--soft .wave-line{ stroke-width: 1.5; opacity: .6; }
.wave-divider--to-dark{ background: var(--cream); }
.wave-divider--to-dark .wave-fill{ fill: #44283e; }
.wave-divider--to-light{ background: #39182f; }
.wave-divider--to-light .wave-fill{ fill: var(--cream); }
/* Class names kept as --to-green/--from-green for historical reasons (CAST
   used to have a dark green background); the fill/background colors below
   now match CAST's actual pink banner top edge and flat pink fill instead,
   sampled from the rendered page the same way the STORY seams were. */
.wave-divider--to-green{ background: var(--cream); }
.wave-divider--to-green .wave-fill{ fill: #dba3a8; }
.wave-divider--to-green .wave-line{ opacity: 0; }
.wave-divider--from-green{ background: #e2aeb3; }
.wave-divider--from-green .wave-fill{ fill: var(--cream); }
.wave-divider--from-green .wave-line{ opacity: 0; }

/* =========================================================
   Photo frame — a soft, warm-toned ambient shadow (not a flat grey
   drop-shadow) does the lifting, with a thin gold hairline echoed
   just behind the corner for a touch of gilded depth — no solid
   offset block, no "sticker" look.
   ========================================================= */
.photo-frame{ position: relative; }
.photo-frame::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217,166,92,.6);
  transform: translate(9px, 9px);
  z-index: -1;
  pointer-events: none;
}

/* =========================================================
   6. NEWS / STORY (split layout)
   ========================================================= */
.split-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-layout--reverse{ direction: rtl; }
.split-layout--reverse > *{ direction: ltr; }
.split-image img{
  border-radius: var(--radius-md);
  border: 5px solid #fff;
  box-shadow: var(--shadow-photo);
  transition: transform .35s ease, box-shadow .35s ease;
}
.split-image img:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-photo-hover);
}
.split-text p{
  font-size: 0.85rem;
  line-height: 2;
}

/* NEWS list — a date + a couple of lines per item, repeatable */
.news-list{
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-item{
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--blush-deep);
}
.news-item:last-child{
  padding-bottom: 0;
  border-bottom: none;
}
.news-date{
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wine);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.news-text{
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink);
}
.news-more{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  /* Was var(--font-display) in italic -- that's the thin serif used for
     English display titles (MOVIE, CAST…), and Japanese text set in an
     italic serif at this size reads poorly (most CJK fonts fake the
     italic by just slanting the glyphs, and the serif strokes get thin
     and hard to pick out at 0.78rem). Switched to the site's plain
     sans-serif body font, upright, slightly larger and bolder instead. */
  font-family: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--wine-deep);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.news-more svg{ transition: transform .25s ease; }
.news-more:hover{ background: var(--gold); color: #fff; }
.news-more:hover svg{ transform: translateX(3px); }

/* =========================================================
   7. MOVIE
   ========================================================= */
.movie-section{
  background: var(--cream);
  text-align: center;
}
.movie-link{
  display: inline-block;
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(216,30,91,.2);
  transition: transform .2s ease;
}
.movie-link:hover{ transform: translateY(-4px); }
.movie-thumb{ display: block; aspect-ratio: 16/9; }
.movie-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.movie-caption{
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--text-sub);
  font-size: 0.9rem;
  text-align: center;
}

/* =========================================================
   8. CAST
   ========================================================= */
.cast-main-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
/* Slight, alternating tilt — a scattered-photo collage feel rather than
   a rigid grid (the "ずらし" staggering applied to the two leads) */
.cast-main-grid .cast-card:nth-child(1){ transform: rotate(-1.4deg); }
.cast-main-grid .cast-card:nth-child(2){ transform: rotate(1.4deg); }
.cast-sub-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.cast-card{ text-align: center; perspective: 900px; }
.cast-card--main{ max-width: 300px; margin: 0 auto; }
.cast-photo{
  border-radius: var(--radius-md);
  border: 5px solid #fff;
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  margin-bottom: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.cast-card--main .cast-photo{ box-shadow: var(--shadow-photo); }
.cast-photo:hover{ box-shadow: var(--shadow-photo-hover); }
.cast-photo img{ width: 100%; height: auto; }
.cast-name{
  font-family: "Shippori Mincho B1", "Noto Serif CJK JP", serif;
  font-weight: 700;
  color: var(--wine);
  font-size: 1.05rem;
}
.cast-card--main .cast-name{ font-size: 1.3rem; }
.cast-realname{
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 4px;
}
.cast-role{
  display: inline-block;
  margin-top: 10px;
  padding: 4px 16px;
  border: none;
  border-radius: 999px;
  background: var(--pink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--wine);
  letter-spacing: 0.04em;
  word-break: keep-all;        
  overflow-wrap: break-word;     
}
.cast-desc{
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.8;
  text-align: left;
}

.relationship-block{
  margin-top: 64px;
  text-align: center;
}
.relationship-title{
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  font-style: italic;
  color: var(--wine);
  background: linear-gradient(120deg, var(--wine) 15%, var(--pink-pop) 60%, var(--wine) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.06em;
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 18px;
}
.relationship-title::after{
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 56px;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}
.relationship-img-wrap{
  position: relative;
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.relationship-img-wrap img{
  border-radius: var(--radius-md);
  border: 5px solid #fff;
  box-shadow: var(--shadow-photo);
  margin: 0 auto;
  transition: filter .2s ease;
}
.relationship-img-wrap:hover img{ filter: brightness(.92); }
.zoom-hint{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20,5,10,.68);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  opacity: .92;
  pointer-events: none;
}

/* =========================================================
   Image lightbox (相関図などの拡大表示モーダル)
   ========================================================= */
.img-lightbox{
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10,2,5,.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.img-lightbox.is-open{ opacity: 1; visibility: visible; }
.img-lightbox-inner{
  max-width: min(94vw, 900px);
  max-height: 90vh;
}
.img-lightbox-inner img{
  width: 100%;
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.img-lightbox-close{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(217,166,92,.5);
  background: rgba(255,255,255,.06);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =========================================================
   9. MUSIC
   ========================================================= */
.music-list{
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.music-label{
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.music-card{
display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;   /* ← この1行を追加 */
}
.music-photo{
  aspect-ratio: 800 / 534;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 5px solid #fff;
  box-shadow: var(--shadow-photo);
}
.music-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .3s ease;
}
.music-photo img:hover{ transform: scale(1.04); }
.music-name{
  font-family: "Shippori Mincho B1", "Noto Serif CJK JP", serif;
  font-weight: 700;
  color: var(--wine);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.placeholder-copy + .music-label{ margin-top: 28px; }

/* =========================================================
   10. STAFF
   ========================================================= */
.staff-list{
  max-width: 560px;
  margin: 0 auto;
}
.staff-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--blush-deep);
}
.staff-row dt{
  font-family: "Shippori Mincho B1", "Noto Serif CJK JP", serif;
  font-weight: 700;
  color: var(--wine);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.staff-row dd{
  font-size: 0.95rem;
  color: var(--ink);
}

/* =========================================================
   11. LINKS
   ========================================================= */
.link-banners{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
/* Three banners side by side (聖恋1 → 聖恋2 → topo), per request.
   The source images have slightly different native ratios (640x250 and
   1600x600), so a shared aspect-ratio + object-fit:cover keeps the row
   reading as one even strip instead of three mismatched heights. */
.link-banners--3{ grid-template-columns: repeat(3, 1fr); }
.link-banner{
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(216,30,91,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.link-banner:hover{ transform: translateY(-4px); box-shadow: 0 14px 28px rgba(216,30,91,.18); }
.link-banners--3 .link-banner{ display: block; aspect-ratio: 2.55 / 1; }
.link-banners--3 .link-banner img{ width: 100%; height: 100%; object-fit: cover; }
.link-caption{
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(216,30,91,.35);
  transition: color .2s ease, text-decoration-color .2s ease;
}
.link-caption:hover{ color: var(--wine-deep); text-decoration-color: var(--wine-deep); }

/* =========================================================
   12. Footer
   ========================================================= */
.site-footer{
  background: var(--pink-accent-deep);
  color: var(--cream);
  text-align: center;
  font-size: 0.75rem;
  padding: 26px 24px;
}

/* =========================================================
   13. Responsive — Tablet (max-width: 960px)
   ========================================================= */
@media (max-width: 960px){
  .cast-sub-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* Narrower tablets / large phones: stack split layouts */
@media (max-width: 760px){
  .split-layout,
  .split-layout--reverse{
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .music-list{ gap: 40px; }
  .music-card{ grid-template-columns: 1fr; text-align: center; max-width: 360px; }
  .music-card .photo-frame{ max-width: 220px; margin: 0 auto; }
  .music-photo{ max-width: 220px; margin: 0 auto; }
  .music-card .music-text{ text-align: center; }
}

/* =========================================================
   Responsive — Mobile (max-width: 720px)
   ========================================================= */
@media (max-width: 720px){
  .section{ padding: 64px 0; }
  .news-section{ padding-top: 40px; }
  .wave-divider--hero{ height: 70px; }
  .wave-divider--soft{ height: 36px; }
  .story-section .split-text{ padding: 20px 20px; }
  /* Narrow viewports crop most of the photo's width under `cover`; the tree
     sits toward the right of the source image with sparkling bokeh to its
     left, so shift partway right (not all the way) to keep both the tree
     and a bit of the left-side sparkle in frame (desktop keeps center 32%). */
  .story-section{ background-position: 64% 35%; }
  .hero-logo{ width: min(320px, 72%); }
  .hero-tagline{ font-size: 0.85rem; }
  .hero-ornament{ display: none; }
  .zoom-hint{ display: flex; }

  .page-nav-inner{
    position: fixed;
    top: 0;
    left: 0; right: 0;
    bottom: 0;
    background: linear-gradient(165deg, #f3cdd8 0%, var(--pink-accent) 55%, var(--pink-accent-deep) 100%);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: calc(var(--nav-h) + 12px) 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 20px rgba(0,0,0,.3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 50;
  }
  .page-nav-inner.is-open{
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  }
  .page-nav-inner a{
    padding: 14px 4px;
    border-bottom: 1px solid rgba(110,15,54,.18);
    color: var(--wine-deep);
  }
  .page-nav-inner a::after{
    background: var(--wine-deep);
  }
  .nav-toggle{ display: flex; }

  /* While the full-screen menu is open, hide the hamburger/MENU button
     (it lives inside the sticky nav bar, which can sit lower down the
     page before the bar has stuck to the top) and show the dedicated
     .nav-close-fixed button instead, pinned to a fixed, predictable
     spot in the top-right corner regardless of scroll position. */
  body.nav-is-open .nav-toggle{ visibility: hidden; pointer-events: none; }
  body.nav-is-open .nav-close-fixed{ display: flex; }
  body.nav-is-open .back-to-top{ display: none; }

  .cast-main-grid{ grid-template-columns: 1fr; gap: 32px; max-width: 320px; margin-left: auto; margin-right: auto; margin-bottom: 44px; }
  .cast-main-grid .cast-card:nth-child(1),
  .cast-main-grid .cast-card:nth-child(2){ transform: none; }
  .cast-sub-grid{ grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .link-banners{ grid-template-columns: 1fr; }
}
