/* ============================================================
   大正浪漫街道 LP  —  style.css
   配色: 臙脂 / 常盤色 / レトロゴールド / セピア / 漆黒
   ============================================================ */

:root {
  --enji: #8b2d3b;        /* 臙脂 */
  --enji-dark: #5e1b26;
  --tokiwa: #1b4d3e;      /* 常盤色 */
  --tokiwa-dark: #0f2f26;
  --gold: #c8a45d;        /* レトロゴールド */
  --gold-light: #e2c98f;
  --sepia: #f5ecd9;       /* 生成りのセピア */
  --sepia-deep: #e8dcc0;
  --sumi: #1a1613;        /* 漆黒 */
  --ink: #3a2e26;         /* 本文の墨色 */

  --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-hand: "Yuji Syuku", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mincho);
  color: var(--ink);
  background: var(--sepia);
  overflow-x: hidden;
  line-height: 1.9;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* 和紙テクスチャを全体に薄く敷く */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/washi-texture.png") center / cover;
  opacity: .35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
main, .header, .footer { position: relative; z-index: 2; }

/* ============ 共通パーツ ============ */

.section-label {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  letter-spacing: .5em;
  color: var(--enji);
  margin-bottom: 1.2rem;
}
.section-label--light { color: var(--gold-light); }

.ornament-divider {
  width: min(400px, 70%);
  margin: 1.6rem auto;
  color: var(--gold);
}
.ornament-divider svg { width: 100%; height: auto; }

/* 文字バラし演出用（JSでspan化） */
.js-chars .char,
.scatter .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ============ 開幕（オープニング） ============ */

.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.opening__curtain {
  position: absolute;
  top: 0;
  width: 51%;
  height: 100%;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.18) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, var(--enji-dark), var(--enji) 40%, var(--enji-dark));
  box-shadow: 0 0 60px rgba(0,0,0,.6) inset;
}
.opening__curtain--left { left: 0; border-right: 6px double var(--gold); }
.opening__curtain--right { right: 0; border-left: 6px double var(--gold); }

.opening__crest {
  position: relative;
  color: var(--gold-light);
  text-align: center;
  filter: drop-shadow(0 0 18px rgba(226, 201, 143, .55));
}
.opening__crest svg { width: clamp(90px, 14vw, 140px); margin-inline: auto; }
.opening__word {
  font-family: var(--font-hand);
  letter-spacing: .6em;
  text-indent: .6em;
  margin-top: .8rem;
  font-size: 1.1rem;
}

/* ============ ヘッダー ============ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(26,22,19,.85), rgba(26,22,19,.55));
  border-bottom: 1px solid rgba(200,164,93,.4);
  color: var(--sepia);
  transform: translateY(-110%);
  transition: transform .5s ease;
}
.header.is-visible { transform: translateY(0); }

.header__logo {
  font-size: 1.15rem;
  letter-spacing: .25em;
  font-weight: 600;
}
.header__logo span { color: var(--gold-light); }

.header__nav {
  display: flex;
  gap: clamp(.8rem, 2.5vw, 1.8rem);
  font-size: .9rem;
  letter-spacing: .15em;
}
.header__nav a { position: relative; padding: .2em 0; }
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.header__nav a:hover::after { transform: scaleX(1); }
.header__cta {
  border: 1px solid var(--gold);
  padding: .2em .9em !important;
  color: var(--gold-light);
}

/* ============ ファーストビュー ============ */

.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--sumi);
}
.hero__media { position: absolute; inset: 0; }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
}
.hero__tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(59,38,23,.35), rgba(139,45,59,.18) 55%, rgba(26,22,19,.65));
  mix-blend-mode: multiply;
}
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 45%, rgba(26,22,19,.75) 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--sepia);
  padding: 0 1rem;
}
.hero__title-main {
  display: inline-block;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: .18em;
  text-shadow: 0 4px 30px rgba(0,0,0,.7);
}
.hero__sub {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: .3em;
  color: var(--gold-light);
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.hero__caption {
  margin-top: 2rem;
  font-size: .72rem;
  letter-spacing: .45em;
  color: rgba(245,236,217,.75);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--sepia);
  font-size: .75rem;
  letter-spacing: .3em;
  text-align: center;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 56px;
  background: var(--gold);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 舞う花びら */
.hero__petals { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.petal {
  position: absolute;
  top: -4%;
  width: 12px; height: 10px;
  background: radial-gradient(ellipse at 30% 30%, #f6cfd2, #e89aa4);
  border-radius: 80% 10% 60% 20%;
  opacity: .8;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0%   { transform: translate(0, -4vh) rotate(0deg); }
  100% { transform: translate(-16vw, 108vh) rotate(540deg); }
}

/* ============ 序章 ============ */

.prologue {
  position: relative;
  padding: clamp(6rem, 14vh, 10rem) 1.5rem;
  overflow: hidden;
  background: var(--sepia);
  text-align: center;
}
/* 矢絣模様（スクロールで回転・拡大） */
.prologue__pattern {
  position: absolute;
  inset: -35%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="120" viewBox="0 0 60 120"><g fill="%238b2d3b" fill-opacity="0.055"><path d="M2 0l13 22L28 0v44L15 66 2 44z"/><path d="M32 120l13-22 13 22V76L45 54 32 76z"/></g></svg>');
  background-size: 42px 84px;
  will-change: transform;
}
.prologue__inner { position: relative; max-width: 760px; margin-inline: auto; }
.prologue__heading {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--enji-dark);
  line-height: 1.7;
}
.prologue__text {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  letter-spacing: .12em;
  line-height: 2.4;
}

/* ============ 情景（横スクロール） ============ */

.scenes { position: relative; background: var(--tokiwa-dark); }
.scenes__sticky {
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}
/* 背景の大きな文字 */
.scenes__bg-word {
  position: absolute;
  top: 50%; left: 4%;
  transform: translateY(-50%);
  font-size: clamp(10rem, 34vw, 30rem);
  font-weight: 800;
  color: rgba(200,164,93,.07);
  letter-spacing: .1em;
  white-space: nowrap;
  user-select: none;
}
.scenes__track {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 0 max(6vw, 2rem);
  will-change: transform;
}
.scene-card {
  flex: 0 0 auto;
  width: min(72vw, 640px);
  color: var(--sepia);
}
.scene-card__frame {
  position: relative;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(200,164,93,.45);
  outline-offset: 6px;
  padding: 10px;
  background: rgba(26,22,19,.35);
}
.scene-card__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(.15);
}
.scene-card__body {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.1rem;
}
.scene-card__no {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--gold-light);
}
.scene-card__body h3 {
  font-size: 1.25rem;
  letter-spacing: .2em;
  font-weight: 600;
}
.scene-card__body p {
  font-size: .85rem;
  letter-spacing: .1em;
  color: rgba(245,236,217,.8);
}

/* ============ 活動写真 ============ */

.cinema { position: relative; background: var(--sumi); }
.cinema__sticky {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  padding: 1rem;
}
.cinema__screen {
  position: relative;
  width: min(88vw, 960px);
  border: 2px solid var(--gold);
  outline: 1px solid rgba(200,164,93,.4);
  outline-offset: 8px;
  padding: 12px;
  background: #000;
  box-shadow: 0 0 80px rgba(200,164,93,.15);
}
.cinema__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: sepia(.55) contrast(1.05);
}
/* 古いフィルムのちらつき */
.cinema__flicker {
  position: absolute; inset: 12px;
  background: rgba(255, 244, 214, .05);
  animation: flicker .18s steps(2) infinite;
  pointer-events: none;
}
@keyframes flicker {
  0% { opacity: .12; } 50% { opacity: 0; } 100% { opacity: .1; }
}
.cinema__caption {
  color: var(--gold-light);
  font-size: .85rem;
  letter-spacing: .3em;
}

/* ============ 追憶（ギャラリー） ============ */

.gallery {
  position: relative;
  padding: clamp(6rem, 14vh, 10rem) 1.5rem;
  background:
    repeating-conic-gradient(rgba(27,77,62,.06) 0% 25%, transparent 0% 50%)
    0 0 / 56px 56px,
    var(--sepia-deep);
}
.gallery__inner { max-width: 1100px; margin-inline: auto; text-align: center; }
.gallery__heading {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--tokiwa-dark);
  margin-bottom: 4rem;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.gallery__item {
  position: relative;
  will-change: transform;
}
.gallery__item:nth-child(even) { margin-top: clamp(2rem, 6vw, 5rem); }
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(139,45,59,.35);
  outline-offset: 5px;
  padding: 8px;
  background: var(--sepia);
  filter: sepia(.2);
  transition: filter .5s ease;
}
.gallery__item:hover img { filter: sepia(0); }
.gallery__item figcaption {
  margin-top: .9rem;
  font-family: var(--font-hand);
  letter-spacing: .3em;
  color: var(--enji-dark);
}

/* ============ 誘い（CTA） ============ */

.invitation {
  position: relative;
  padding: clamp(7rem, 18vh, 12rem) 1.5rem;
  background: var(--tokiwa-dark);
  color: var(--sepia);
  text-align: center;
  overflow: hidden;
}
/* ステンドグラス風の光 */
.invitation__glass {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 200deg at 15% 0%,
      rgba(139,45,59,.5), rgba(200,164,93,.35), rgba(27,77,62,.4),
      rgba(139,45,59,.5)),
    conic-gradient(from 20deg at 85% 100%,
      rgba(200,164,93,.4), rgba(139,45,59,.35), rgba(27,77,62,.5),
      rgba(200,164,93,.4));
  mix-blend-mode: screen;
  opacity: .5;
  filter: blur(2px);
}
.invitation__inner { position: relative; max-width: 720px; margin-inline: auto; }
.invitation__heading {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.8;
  color: var(--sepia);
}
.invitation__text {
  margin: 2rem 0 3rem;
  letter-spacing: .15em;
  color: rgba(245,236,217,.85);
}
.invitation__btn {
  display: inline-block;
  position: relative;
  padding: 1.1em 3.6em;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(200,164,93,.5);
  outline-offset: 5px;
  color: var(--gold-light);
  letter-spacing: .35em;
  text-indent: .35em;
  overflow: hidden;
  transition: color .4s ease;
}
.invitation__btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s ease;
  z-index: -1;
}
.invitation__btn:hover { color: var(--sumi); }
.invitation__btn:hover::before { transform: scaleX(1); transform-origin: left; }

/* ============ フッター ============ */

.footer {
  background: var(--sumi);
  color: rgba(245,236,217,.7);
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid rgba(200,164,93,.35);
}
.footer__logo {
  font-size: 1.1rem;
  letter-spacing: .35em;
  color: var(--gold-light);
  margin-bottom: .8rem;
}
.footer__copy { font-size: .72rem; letter-spacing: .12em; }

/* ============ セクションのワイプ表示 ============ */

.wipe { clip-path: inset(0 0 0 0); } /* JSで制御。無効時も見える初期値 */

/* ============ レスポンシブ ============ */

@media (max-width: 700px) {
  .header__nav { font-size: .78rem; gap: .7rem; }
  .header__nav a:not(.header__cta):nth-child(n+4) { display: none; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item:nth-child(even) { margin-top: 0; }
  .scene-card { width: 84vw; }
}

/* ============ 動きを控える設定の方へ ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening { display: none; }
  .petal, .cinema__flicker, .hero__scroll i { animation: none; }
}
