@charset "UTF-8";

/* =========================================
   Story Page Specific Styles
========================================= */

body, html, 
.story-text, 
.title-large, 
.no-border-title, 
.split-title, 
.split-text, 
.subtitle, 
.whisper-text, 
.hero-title,
.vertical-text,
p, h1, h2, h3, span {
  font-family: 'Shippori Mincho', serif !important;
}

/* =========================================
   Snap Scroll Container
========================================= */
.snap-container {
  width: 100%;
}

@media (max-width: 768px) {
  .snap-container {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout:none;
    }
}

section {
  min-height: 100dvh; /* 最低でも1画面分の高さを確保 */
  width: 100%;
  /* scroll-snap-align: start; を削除 */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 10vh 0; /* スクロール時に見やすいよう、上下に少し余白をとります */
  box-sizing: border-box;
}

/* =========================================
   Immersive Mask Layers (The "Blacklight")
========================================= */
.layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4vw;
  text-align: center;
}

/* 表面：美しい嘘（目に優しいオフホワイト＋大理石） */
.layer-front {
  background-color: var(--gray-50);
  background-image: url('https://www.transparenttextures.com/patterns/white-marble.png');
  z-index: 2;
  /* 修正: var(--mask-size, 100%) を 0px に変更 */
  mask-image: radial-gradient(circle var(--mask-size, 0px) at var(--mask-x, 50%) var(--mask-y, 50%), transparent 0%, black var(--mask-blur, 0px));
  -webkit-mask-image: radial-gradient(circle var(--mask-size, 0px) at var(--mask-x, 50%) var(--mask-y, 50%), transparent 0%, black var(--mask-blur, 0px));
  transition: mask-image 0.5s ease, -webkit-mask-image 0.5s ease;
}

/* 裏面：真実（チカチカしない深い暗色） */
.layer-back {
  background-color: #121216; 
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
  color: #9ea0a8;
  z-index: 1;
}

/* =========================================
   Content & Typography
========================================= */
.content {
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  
  /* スクロール仕様にするため、最初から表示させておきます */
  opacity: 1;
  transform: none;
}

.is-active .content {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Titles */
.hero-title {
  font-family: var(--font-en-serif);
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: 0.2em;
  color: var(--accent-silver);
  margin: 0;
  font-weight: 400;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.subtitle {
  letter-spacing: 0.5em;
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--text-sub);
}

/* Section Titles */
.title-large {
  width: 100%; max-width: 680px;
  font-size: 2.5rem;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--accent-gold);
  padding-bottom: 20px;
  display: inline-block;
  text-align: justify;
  color: var(--text-main);
}

/* 装飾なしタイトル */
.no-border-title {
  border: none;
  color: var(--accent-gold);
  padding-bottom: 0;
  font-size: 1.8rem; 
  margin-bottom: 40px;
}

/* Paragraphs */
.story-text {
  font-size: 1.1rem;
  line-height: 2;
  max-width: 680px;
  margin: 0 auto;
  text-align: justify;
  color: var(--text-main);
}

.layer-back .story-text {
  color: #9ea0a8;
}

.text-center {
  text-align: center;
}

/* Vertical Text Decor */
.vertical-text {
  writing-mode: vertical-rl;
  position: absolute;
  left: 5vw;
  top: 15vh;
  font-size: 1.2rem;
  color: var(--accent-gold);
  letter-spacing: 0.5em;
  opacity: 0.6;
}

/* Split Box (2カラム) */
.split-box {
  display: flex;
  gap: 80px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.split-left {
  flex: 1;
}

.split-right {
  flex: 1;
  border-left: 1px dashed var(--accent-gold);
  padding-left: 40px;
}

.split-title {
  font-size: 1.5rem;
  display: inline-block;
  color: var(--text-main);
}

.layer-back .split-title {
  color: #888;
}

.split-text {
  font-size: 1.1rem;
  line-height: 2;
  margin-top: 20px;
  color: var(--text-sub);
}

.layer-back .split-text {
  color: #777;
}

/* 念のため、画像フレームが完全に同サイズで切り抜かれる設定（再確認用） */
.img-frame {
  width: 60vw;
  max-width: 320px;
  aspect-ratio: 4/5; /* ここで比率を固定 */
  margin: 20px auto 30px;
  overflow: hidden;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.truth-border {
  border-color: #333;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.truth-img {
  filter: grayscale(1) brightness(0.4) contrast(1.2);
}

.truth-main-text {
  font-size: 1.4rem;
  line-height: 2.5;
  color: var(--text-main);
}

.truth-sub-text {
  opacity: 0.7;
  font-size: 1.1rem;
  margin-top: 60px;
  color: var(--text-sub);
  line-height: 2;
}

.whisper-text {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: rgba(142, 146, 179, 0.8);
}

/* =========================================
   Mobile Navigation
========================================= */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  gap: 40px;
  align-items: center;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-family: var(--font-en-serif);
  font-size: 16px;
  letter-spacing: 0.2em;
  cursor: pointer;
  opacity: 1;
  padding: 10px;
  transition: opacity 0.3s;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--accent-silver);
  opacity: 0.4;
}

/* =========================================
   Responsive Adjustments
========================================= */
@media (max-width: 768px) {
  .mobile-nav { 
    display: flex; 
  }
  
  .vertical-text { 
    display: none; 
  }
  
  .title-large {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .split-box {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  
  .split-right {
    border-left: none;
    padding-left: 0;
  }
  
  .split-title {
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 8px;
  }
}