/* ============================================================
   IKUSAGAMI story.css
   ============================================================ */

/* ============================================================
   ページ基盤
   ============================================================ */
.story-page {
  background: #090909;
  color: #fff;
  overflow-x: hidden;
}

/* ============================================================
   固定背景動画
   ============================================================ */
.story-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.story-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* 動画そのものを少し透過（0.7=30%透過）して暗い印象に */
  opacity: 0.7;
  transition: opacity 1.2s ease;
}
.story-bg__video.is-hidden { opacity: 0; }

/* フォールバック: 動画未設定時のグラデーション */
.story-bg__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 140% 90% at 55% 45%, #1a1410 0%, #0c0c0b 45%, #000 100%);
  opacity: 1;
  transition: opacity 1s ease;
}
.story-bg__fallback.is-hidden { opacity: 0; }

/* 常時オーバーレイ: 動画を暗くして可読性を確保 */
.story-bg__overlay {
  position: absolute;
  inset: 0;
  /* 上下に濃いグラデ、中央は薄め → 動画の映像が残りやすい */
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.72) 0%,
      rgba(0,0,0,0.42) 25%,
      rgba(0,0,0,0.38) 60%,
      rgba(0,0,0,0.75) 100%
    );
}

/* ============================================================
   NAV $2014 常に透過（白文字）
   ============================================================ */
.story-page .nav {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.story-page .nav .nav__logo-en   { color: #fff; }
.story-page .nav .nav__logo-ja   { color: rgba(255,255,255,0.42); }
.story-page .nav .hamburger__bar { background: rgba(255,255,255,0.82); }
.story-page .nav .lang-switcher  { border-color: rgba(255,255,255,0.25); }
.story-page .nav .lang-switcher__btn        { color: rgba(255,255,255,0.5); }
.story-page .nav .lang-switcher__btn.is-active {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.story-page .nav .lang-switcher__sep { background: rgba(255,255,255,0.2); }

/* ============================================================
   スクロールコンテンツ（動画の上を流れる）
   ============================================================ */
.story-scroll {
  position: relative;
  z-index: 1;
}

/* ============================================================
   共通ブロック
   ============================================================ */
.st-block {
  position: relative;
  padding-left:  var(--gutter);
  padding-right: var(--gutter);
}
.st-block__inner {
  max-width: 800px;
  margin: 0 auto;
}
.st-block__inner--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* セクションに半透明黒帯を重ねてテキスト可読性アップ */
.st-block--textband {
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.st-block--textband-heavy {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── 共通テキスト要素 ── */
.st-eyebrow {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(0.56rem, 1vw, 0.66rem);
  letter-spacing: 0.65em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1.35rem;
  display: block;
}
.st-rule {
  width: 44px;
  height: 1px;
  background: rgba(255,255,255,0.28);
  margin-bottom: 2rem;
  flex-shrink: 0;
text-align: center;
}
.st-block__inner--center .st-rule { margin-left: auto; margin-right: auto; }

.st-chapter-no {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  letter-spacing: 0.45em;
  color: rgba(255,255,255,0.32);
  margin-bottom: 0.85rem;
  display: block;
}
.st-heading-large {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  letter-spacing: 0.18em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 0.2em;
text-align: center;
}
.st-heading-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(0.78rem, 1.8vw, 1rem);
  letter-spacing: 0.48em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 2rem;
  display: block;
text-align: center;
}
.st-heading-mid {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  letter-spacing: 0.18em;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 1.75rem;
}
.st-body {
  font-family: var(--font-ja);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 2.6;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.st-body:last-of-type { margin-bottom: 0; }

/* ============================================================
   (A) OPENING $2014 全画面ファーストビュー
   ============================================================ */
.st-block--opening {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top:    calc(var(--nav-h) + clamp(2rem, 4vw, 4rem));
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
.st-opening__lead {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin-bottom: 0;
}
.st-opening__lead span {
  display: block;
  font-size: 0.8em;
  color: rgba(255,255,255,0.32);
  margin-top: 0.65rem;
  font-style: normal;
  letter-spacing: 0.08em;
}
/* スクロールインジケーター */
.st-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  opacity: 0;
  animation: stFadeIn 1s ease 1.8s forwards;
}
.st-scroll-hint__text {
  font-family: var(--font-en);
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.28);
  writing-mode: vertical-rl;
}
.st-scroll-hint__line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: stPulse 2.4s ease-in-out 2.5s infinite;
}
@keyframes stFadeIn { to { opacity: 1; } }
@keyframes stPulse  { 0%,100%{opacity:.28} 50%{opacity:.9} }

/* オープニング全体フェードイン */
.st-block--opening .st-block__inner {
  opacity: 0;
  animation: stSlideUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
@keyframes stSlideUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ============================================================
   (B) テキスト中央セクション（Chapter 01 / 02 / Values など）
   ============================================================ */
.st-block--chapter {
  padding-top:    clamp(6rem, 13vw, 11rem);
  padding-bottom: clamp(6rem, 13vw, 11rem);
}

/* ============================================================
   (C) SPLIT $2014 写真＋テキスト 左右レイアウト
   ============================================================ */
.st-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(480px, 62vh, 720px);
  overflow: hidden;
}
/* 写真右パターン: .st-split--img-right */
.st-split--img-right { grid-template-columns: 1fr 1fr; }
.st-split--img-right .st-split__img  { order: 2; }
.st-split--img-right .st-split__text { order: 1; }

/* 写真 */
.st-split__img {
  position: relative;
  overflow: hidden;
}
.st-split__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
}
.st-split__img:hover img { transform: scale(1.04); }

/* 写真内ラベル */
.st-split__img-label {
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  text-align: right;
  z-index: 2;
}
.st-split__img-label-num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,0.18);
  display: block;
}
.st-split__img-label-en {
  font-family: var(--font-en);
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  color: rgba(255,255,255,0.3);
  display: block;
  margin-top: 2px;
}

/* テキストパネル $2014 半透明黒 */
.st-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem);
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============================================================
   (D) QUOTE $2014 全画面引用
   ============================================================ */
.st-block--quote {
  padding-top:    clamp(7rem, 16vw, 14rem);
  padding-bottom: clamp(7rem, 16vw, 14rem);
}
.st-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.st-quote__mark {
  font-family: var(--font-en);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.5;
  color: rgba(255,255,255,0.1);
  font-weight: 300;
  font-style: italic;
  user-select: none;
}
.st-quote__text {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  letter-spacing: 0.2em;
  line-height: 2;
  color: #fff;
  text-align: center;
}
.st-quote__caption {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   (E) VALUES $2014 3カラム
   ============================================================ */
.st-block--values {
  padding-top:    clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
.st-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 0.5rem;
}
.st-value-card {
  border: 1px solid rgba(255,255,255,0.1);
  padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.3s, background 0.3s;
}
.st-value-card:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.52);
}
.st-value-card__num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  margin-bottom: 1.1rem;
}
.st-value-card__heading {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.st-value-card__en {
  font-family: var(--font-en);
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.28);
  margin-bottom: 1.1rem;
  display: block;
}
.st-value-card__body {
  font-family: var(--font-ja);
  font-size: clamp(0.78rem, 1.3vw, 0.85rem);
  line-height: 2.15;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   (F) CLOSING CTA
   ============================================================ */
.st-block--cta {
  padding-top:    clamp(8rem, 18vw, 16rem);
  padding-bottom: clamp(8rem, 18vw, 16rem);
}
.st-cta-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  letter-spacing: 0.18em;
  line-height: 1.65;
  color: #fff;
  margin-bottom: 2.75rem;
}
.st-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.st-cta-btn {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  padding: 1rem 2.8rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.st-cta-btn--primary {
  background: #fff;
  color: #0a0a09;
  border: 1px solid #fff;
}
.st-cta-btn--primary:hover {
  background: transparent;
  color: #fff;
}
.st-cta-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.32);
}
.st-cta-btn--ghost:hover {
  border-color: rgba(255,255,255,0.75);
  color: #fff;
}

/* ============================================================
   FOOTER $2014 暗背景
   ============================================================ */
.story-page .footer {
  background: rgba(0,0,0,0.92) !important;
  border-top: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
}
.story-page .footer__col a { color: #fff; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-reveal-delay="100"] { transition-delay: 0.10s; }
[data-reveal][data-reveal-delay="200"] { transition-delay: 0.20s; }
[data-reveal][data-reveal-delay="300"] { transition-delay: 0.30s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  /* Split: 縦積みに */
  .st-split,
  .st-split--img-right {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .st-split--img-right .st-split__img  { order: 1; }
  .st-split--img-right .st-split__text { order: 2; }
  .st-split__img { min-height: 56vw; position: relative; }
  .st-split__img img { position: absolute; }

  /* Values: 2列に */
  .st-values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  /* Values: 1列に */
  .st-values-grid { grid-template-columns: 1fr; }

  .st-cta-actions { flex-direction: column; align-items: center; }
  .st-cta-btn { width: 100%; max-width: 280px; text-align: center; }
}
