/* ======================
   VARIABLES & RESET
   ====================== */
:root {
  --pink:        #F0857A;
  --pink-light:  #FDCDC9;
  --pink-deep:   #E06060;
  --pink-poster: #EFA8A5;   /* visual_front.png のピンク */
  --green:       #8BAD6B;
  --green-poster: #8DAD6B;  /* visual_front.png のグリーン */
  --green-light: #C8DFB5;
  --green-deep:  #5E7E46;
  --cream:       #FFFAF4;
  --cream-alt:   #FFF5EC;
  --text:        #2C2C2C;
  --text-muted:  #888888;
  --white:       #FFFFFF;

  --font: 'Noto Sans JP', sans-serif;
  --nav-h: 64px;
  --max-w: 1200px;
  --radius: 16px;
  --radius-sm: 10px;

  /* ポスターの縦分割ライン（上からの割合） */
  --hero-split: 47%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* ======================
   TRAILER SPLASH
   ====================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
.splash.hidden { opacity: 0; pointer-events: none; }

.splash-video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.splash-close {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
  z-index: 10000;
}
.splash-close:hover { background: rgba(255,255,255,0.28); }
.splash-close-icon { font-size: 0.9rem; }
.splash-close-label { font-weight: 500; }

.splash-sound {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
  line-height: 1;
  z-index: 10000;
}
.splash-sound:hover { background: rgba(255,255,255,0.28); }

/* ======================
   NAV
   ====================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 250, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--pink-light);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--pink-deep);
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 1.25rem; list-style: none; }

.nav-links a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text);
  transition: color 0.2s;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--pink-deep); }

#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
#hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  #hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,250,244,0.98);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--pink-light);
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.85rem 1.5rem; }
}

/* ============================================================
   HERO — ポスター全画面版（絶対配置構成）
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  padding-top: var(--nav-h);

  background: var(--pink-poster);
}

/* 全要素の共通ベース */
.hero-el {
  position: absolute;
  pointer-events: none;
}

/* ---- 放射線バースト 右上（asset_rays.png・ピンクゾーン装飾） ---- */
.hero-rays-tr {
  top: -4%;
  right: -3%;
  width: 24%;
  opacity: 0.25;
  z-index: 0;
}

/* ---- 散らし装飾テキスト（左上ピンクゾーン） ---- */
.hero-deco-text {
  top: 10%;
  left: 15%;
  right: auto;
  width: 15%;
  opacity: 0.8;
  z-index: 5;
}

/* ---- フラミンゴ遊具＋ブロブ（asset_char31.png・中央・境界またぎ） ---- */
.hero-rays-center {
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  z-index: 3;
  pointer-events: none;
}

/* ---- キャスト3人（左下グリーンゾーン・大きく目立つ） ---- */
.hero-cast {
  bottom: 3%;
  left: 0;
  height: 72%;
  width: auto;
  z-index: 4;
  pointer-events: auto;
}

/* ---- タイトル（右側グリーンゾーン） ---- */
.hero-title {
  bottom: 40%;
  right: 3%;
  width: 28%;
  z-index: 4;
  pointer-events: auto;
}
.hero-title img { width: 100%; height: auto; }

/* ---- 公開日（タイトル下） ---- */
.hero-date {
  bottom: 22%;
  right: 4%;
  width: 18%;
  z-index: 4;
}

/* ---- キャスト名一覧 ---- */
.hero-cast-names {
  bottom: 9%;
  right: 18%;
  width: 15%;
  z-index: 4;
}

/* ---- X（旧Twitter）SNSアイコン ---- */
.hero-sns {
  top: calc(var(--nav-h) + 1rem);
  right: 1.5rem;
  z-index: 7;
  pointer-events: auto;
}

.hero-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.hero-sns-link:hover { background: #000; transform: scale(1.08); }

.hero-sns-icon { width: 18px; height: 18px; }

/* ---- 予告編ボタン ---- */
.hero-cta {
  bottom: 10%;
  right: 4%;
  z-index: 7;
  pointer-events: auto;
}

.btn-primary {
  background: var(--text);
  color: var(--white);
  border: none;
  padding: 0.85rem 2rem;
  font-size: 0.88rem;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

/* ---- クレジット帯（wave内・最前面・見切れない幅に調整） ---- */
.hero-credits {
  bottom: 0;
  left: 0;
  width: 40%;
  z-index: 8;
  opacity: 1;
}

/* ---- 波形区切り（コンテンツより背面） ---- */
.wave-divider {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ---- レスポンシブ: タブレット ---- */
@media (max-width: 1100px) {
  .hero-rays-center { width: 48%; }
  .hero-cast        { height: 68%; }
  .hero-title       { width: 34%; bottom: 38%; }
  .hero-date        { width: 20%; bottom: 26%; }
  .hero-cast-names  { width: 14%; bottom: 15%; }
  .hero-cta         { bottom: 8%; }
  .hero-credits     { width: 48%; }
}

@media (max-width: 900px) {
  .hero-rays-center { width: 54%; }
  .hero-cast        { height: 60%; }
  .hero-title       { width: 38%; right: 2%; bottom: 36%; }
  .hero-date        { width: 22%; right: 3%; bottom: 24%; }
  .hero-cast-names  { width: 16%; right: 2%; bottom: 14%; }
  .hero-cta         { bottom: 7%; }
  .hero-credits     { width: 55%; }
}

/* ---- レスポンシブ: モバイル（縦積みに切り替え） ---- */
@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--nav-h);
    padding-bottom: 3rem;
    background: var(--pink-poster);
  }

  /* 絶対配置を解除して縦積みフロー */
  .hero-el {
    position: static;
    pointer-events: auto;
  }

  /* 不要な装飾を非表示 */
  .hero-deco-text,
  .hero-cast-names, .hero-credits {
    display: none;
  }

  /* フラミンゴ遊具（モバイル縦積み） */
  .hero-rays-center {
    width: 80%;
    max-width: 320px;
    margin: 1.5rem auto 0;
    transform: none;
  }

  /* キャスト3人 */
  .hero-cast {
    height: auto;
    width: 88%;
    max-width: 380px;
    margin: 0 auto;
  }

  /* タイトル */
  .hero-title {
    width: 82%;
    max-width: 360px;
    margin: 1.2rem auto;
  }

  /* 公開日 */
  .hero-date {
    width: 52%;
    max-width: 220px;
    margin: 0 auto 0.5rem;
  }

  /* ボタン */
  .hero-cta {
    margin: 1.5rem auto 0;
    text-align: center;
  }

  /* 波形 */
  .wave-divider { position: static; margin-top: 2rem; }
}

/* ======================
   SECTION COMMON
   ====================== */
.section { padding: 5.5rem 1.5rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}
.section-title span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  display: inline-block;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, var(--pink-light), transparent);
  border-radius: 999px;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ======================
   INTRODUCTION
   ====================== */
.section-introduction { background: var(--white); }

.introduction-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--pink-light);
}
.introduction-label {
  font-size: 0.88rem;
  color: var(--green-deep);
  font-weight: 700;
  line-height: 1.9;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--green-light);
}
.introduction-text { font-size: 0.93rem; line-height: 2.1; }

/* ======================
   STORY
   ====================== */
.section-story { background: var(--cream-alt); }

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.story-body { display: flex; flex-direction: column; gap: 1.5rem; }
.story-text { font-size: 0.93rem; line-height: 2.2; }
.story-catchcopy {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--pink-deep);
  line-height: 1.8;
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--pink-light), #fff0);
  border-left: 4px solid var(--pink);
}
.story-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

@media (max-width: 767px) {
  .story-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ======================
   GALLERY
   ====================== */
.section-gallery { background: var(--white); padding-left: 0; padding-right: 0; }
.section-gallery .section-inner { padding: 0 1.5rem; }

.marquee-wrapper { overflow: hidden; margin-top: 2rem; }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item { flex-shrink: 0; width: 320px; height: 213px; overflow: hidden; border-radius: var(--radius-sm); }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.marquee-item:hover img { transform: scale(1.05); }

@media (max-width: 767px) {
  .marquee-item { width: 240px; height: 160px; }
}

/* ======================
   CAST — ポスターピンク背景で統一
   ====================== */
.section-cast { background: var(--cream-alt); }

.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
.cast-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(240,133,122,0.18);
}

/* ポスターピンクで透過PNGが映える */
.cast-photo {
  background: linear-gradient(180deg, #F5BEB9 0%, #FFF0EE 100%);
  overflow: hidden;
}
.cast-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}

.cast-info { padding: 0.75rem 1rem 1rem; }
.cast-role { font-size: 0.7rem; color: var(--pink-deep); letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.2rem; }
.cast-name { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: 0.06em; }

.cast-sub {
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: 2.5rem;
  letter-spacing: 0.06em;
}

.cast-comments { display: flex; flex-direction: column; gap: 2rem; }
.cast-comment-name { font-size: 0.82rem; font-weight: 700; color: var(--pink-deep); margin-bottom: 0.6rem; }
.cast-comment-text {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--text);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 4px solid var(--pink-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  font-style: normal;
}
.cast-comment-pending { color: var(--text-muted); font-style: italic; }

@media (max-width: 767px) {
  .cast-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ======================
   STAFF
   ====================== */
.section-staff { background: var(--white); }
.staff-grid { display: flex; flex-direction: column; }
.staff-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px dashed var(--pink-light);
  align-items: baseline;
}
.staff-label { font-size: 0.75rem; color: var(--text-muted); }
.staff-name  { font-size: 0.95rem; font-weight: 500; }

@media (max-width: 767px) {
  .staff-row { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.75rem 0; }
}

/* ======================
   TRAILER
   ====================== */
.section-trailer { background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1f 100%); }
.section-trailer .section-title span { background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%); }
.section-trailer .section-title::after { background: linear-gradient(to right, rgba(240,133,122,0.4), transparent); }

.trailer-thumbnail {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.trailer-thumbnail > img { width: 100%; display: block; opacity: 0.55; transition: opacity 0.3s; }
.trailer-thumbnail:hover > img { opacity: 0.4; }

.trailer-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  border: none;
  padding: 1rem 2.25rem;
  font-size: 0.95rem;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.trailer-thumbnail:hover .trailer-play-btn { background: var(--white); transform: translate(-50%, -52%); }

/* ======================
   THEATER
   ====================== */
.section-theater { background: var(--cream-alt); }
.theater-release { text-align: center; margin-bottom: 2.5rem; }
.theater-date {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--pink-deep);
  display: inline-block;
  padding: 1rem 2.25rem;
  border: 2.5px solid var(--pink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(240,133,122,0.12);
}
.theater-area { margin-bottom: 2rem; }
.theater-area-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px dashed var(--green-light);
}
.theater-venue-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.theater-venue-list li { font-size: 0.95rem; padding: 0.3rem 0; }
.theater-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 2.5rem; line-height: 1.9; }

/* ======================
   NEWS
   ====================== */
.section-news { background: var(--white); }
.news-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  padding: 3rem;
  border-radius: var(--radius);
  background: var(--cream);
}

/* ======================
   FOOTER
   ====================== */
.footer {
  background: linear-gradient(135deg, #2a1a1a 0%, #1a2a1a 100%);
  color: rgba(255,255,255,0.65);
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
}
.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.footer-title { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer-en { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pink); }
.footer-date { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-sns { display: flex; gap: 1.75rem; margin-top: 0.5rem; }
.footer-sns-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.footer-sns-link:hover { color: var(--pink); }
.footer-info { font-size: 0.75rem; line-height: 2; color: rgba(255,255,255,0.38); }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.26); margin-top: 0.5rem; }

/* ======================
   VIDEO MODAL
   ====================== */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.96);
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-content { width: 92vw; max-width: 960px; aspect-ratio: 16 / 9; }
.video-modal-content video,
.video-modal-content iframe { width: 100%; height: 100%; border-radius: var(--radius-sm); background: #000; }
.video-modal-close {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.video-modal-close:hover { background: rgba(255,255,255,0.25); }
