/* =========================================================
   movie.css — 映画「カンタ！ティモール」詳細ページ
   ========================================================= */

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

:root {
  --bg:      #08080f;
  --text:    #e8e0d0;
  --gold:    #c8a96e;
  --font-jp: 'Shippori Mincho B1', serif;
  --font-en: 'Cinzel', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  line-height: 1.9;
  overflow-x: hidden;
}

/* ----- BACK NAV ----- */
.back-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 28px;
  background: linear-gradient(to bottom, rgba(8,8,15,0.85), transparent);
  pointer-events: none;
}
.back-link {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 1; }

/* ----- PARALLAX ----- */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}
@media (max-width: 768px) {
  .parallax { background-attachment: scroll; }
}

/* ----- OVERLAYS ----- */
.overlay         { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.overlay--55     { background: rgba(0,0,0,0.55); }
.overlay--60     { background: rgba(0,0,0,0.60); }
.overlay--65     { background: rgba(0,0,0,0.65); }
.overlay--70     { background: rgba(0,0,0,0.70); }
.overlay--75     { background: rgba(8,8,15,0.78); }

/* ----- SECTION INNER ----- */
.section-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 40px;
}
.section-inner--narrow {
  max-width: 520px;
  padding: 120px 40px;
  text-align: center;
}
.section-inner--cta {
  max-width: 560px;
  text-align: center;
  padding: 100px 40px;
}

/* ----- SECTION LABEL ----- */
.section-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 36px;
  opacity: 0.75;
}

/* ----- SCROLL REVEAL ----- */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.sr.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   1. HERO
   ========================================================= */
#hero {
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 64px 120px;
  max-width: 860px;
  animation: heroIn 1.4s ease 0.2s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero-logo {
  display: block;
  width: clamp(100px, 14vw, 160px);
  margin-bottom: 28px;
  opacity: 0.85;
}

.hero-movie-logo {
  display: block;
  width: clamp(360px, 58vw, 720px);
  margin-bottom: 10px;
  mix-blend-mode: multiply;
}

.hero-movie-title {
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  letter-spacing: 0.15em;
  color: var(--text);
  opacity: 0.65;
  margin-bottom: 20px;
}

.hero-catch {
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 2;
  opacity: 0.72;
  margin-bottom: 28px;
}

.hero-date {
  font-family: var(--font-en);
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.8;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: heroIn 1.4s ease 1s both;
}
.scroll-text {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  opacity: 0.4;
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   2. QUESTION
   ========================================================= */
#question {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.question-text {
  display: flex;
  flex-direction: column;
  gap: 2.2em;
}
.question-text p {
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 2.1;
}
.question-why {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* =========================================================
   3. YOU = ME
   ========================================================= */
#you-me {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.you-me-lines {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.8em;
  text-align: center;
  padding: 100px 40px;
  max-width: 680px;
  margin: 0 auto;
}

.line {
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 2;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: calc(var(--i) * 0.35s);
}
.line.visible {
  opacity: 1;
  transform: none;
}
.line--em {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem) !important;
  font-weight: 700;
}
.line--dim {
  font-size: clamp(0.85rem, 1.5vw, 1rem) !important;
  opacity: 0;
  color: rgba(232,224,208,0.6);
}
.line--dim.visible { opacity: 1; }
.line--key {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* =========================================================
   4. JAPAN
   ========================================================= */
#japan {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.japan-text {
  display: flex;
  flex-direction: column;
  gap: 2.2em;
}
.japan-text p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 2.1;
}
.japan-lead {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem) !important;
  font-weight: 700;
  line-height: 1.7;
}
.japan-close {
  color: var(--gold);
  font-size: clamp(0.95rem, 1.7vw, 1.1rem) !important;
}

/* =========================================================
   5. WHY
   ========================================================= */
#why {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.why-text {
  display: flex;
  flex-direction: column;
  gap: 2.2em;
}
.why-text p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 2.1;
}
.why-lead {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem) !important;
  font-weight: 700;
}
.why-close {
  color: var(--gold);
  font-size: clamp(0.88rem, 1.5vw, 1rem) !important;
  letter-spacing: 0.06em;
}

/* =========================================================
   6. YEAR 2012
   ========================================================= */
#year2012 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.year-text {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.1em;
  line-height: 2;
  margin-bottom: 1.8em;
}
.year-sub {
  font-size: clamp(0.82rem, 1.4vw, 0.96rem);
  letter-spacing: 0.08em;
  opacity: 0.55;
  line-height: 2;
}

/* =========================================================
   7. FILM INFO
   ========================================================= */
#filminfo {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.info-table th,
.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(200,169,110,0.18);
  text-align: left;
  vertical-align: middle;
}
.info-table th {
  color: var(--gold);
  font-weight: 500;
  width: 110px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.info-table td {
  font-size: 1rem;
}

/* =========================================================
   8. CTA
   ========================================================= */
#cta {
  padding: 80px 0;
  background: var(--bg);
}

.cta-title {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.cta-price {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.cta-note {
  font-size: 0.82rem;
  opacity: 0.55;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.cta-remain {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 40px;
  letter-spacing: 0.12em;
  min-height: 1.6em;
}
.cta-remain.low-stock { color: #FFB347; }
.cta-remain.sold-out  { color: #ff7070; }

.btn-cta {
  display: inline-block;
  padding: 18px 64px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-jp);
  font-size: 1rem;
  letter-spacing: 0.18em;
  transition: background 0.3s, color 0.3s;
  margin-bottom: 8px;
}
.btn-cta:hover {
  background: var(--gold);
  color: var(--bg);
}
.btn-cta[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.btn-back-lp {
  display: block;
  margin-top: 36px;
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.38;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
}
.btn-back-lp:hover { opacity: 0.75; }

/* =========================================================
   FOOTER
   ========================================================= */
.movie-footer {
  text-align: center;
  padding: 56px 24px;
  border-top: 1px solid rgba(200,169,110,0.12);
  font-size: 0.78rem;
  opacity: 0.38;
  line-height: 2.4;
  letter-spacing: 0.1em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero-content       { padding: 0 28px 100px; }
  .section-inner      { padding: 80px 28px; }
  .section-inner--narrow { padding: 80px 28px; }
  .section-inner--cta { padding: 80px 28px; }
  .you-me-lines       { padding: 80px 28px; }
  .info-table th      { width: 80px; }
}
@media (max-width: 480px) {
  .hero-content       { padding: 0 20px 80px; }
  .section-inner      { padding: 64px 20px; }
  .you-me-lines       { padding: 64px 20px; }
}
