/* ============================================
   綴 TSUZURI — Style
   Scroll Storytelling / Dark ↔ Light
   ============================================ */

:root {
  --dark:       #0F0F0E;
  --light:      #F2EDE4;
  --text-on-dark:  #E8E0D4;
  --text-on-light: #1A1A18;
  --text-dim:   #8A7E6E;
  --accent:     #9B6B4A;
  --line:       #3A3632;

  --ff-mincho:  'Zen Old Mincho', 'Yu Mincho', serif;
  --ff-serif:   'EB Garamond', 'Georgia', serif;
  --ff-sans:    'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
}


/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff-sans);
  font-weight: 300;
  background: var(--dark);
  color: var(--text-on-dark);
  line-height: 2;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
ul { list-style: none; }

::selection {
  background: var(--accent);
  color: #fff;
}


/* ----------------------------------------
   Scenes (共通)
   ---------------------------------------- */
.scene {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.scene--dark {
  background: var(--dark);
  color: var(--text-on-dark);
}

.scene--light {
  background: var(--light);
  color: var(--text-on-light);
}


/* ----------------------------------------
   Header
   ---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  mix-blend-mode: difference;
}

.header__logo {
  font-family: var(--ff-mincho);
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.1em;
}

.header__menu-btn {
  position: relative;
  width: 26px;
  height: 14px;
  z-index: 210;
}

.header__menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__menu-btn span:first-child { top: 0; }
.header__menu-btn span:last-child { bottom: 0; }

.header__menu-btn.is-active span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.header__menu-btn.is-active span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ----------------------------------------
   Chapter Navigation Overlay
   ---------------------------------------- */
.chapter-nav {
  position: fixed;
  inset: 0;
  z-index: 205;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s 0.6s;
}

.chapter-nav.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0s;
}

.chapter-nav__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.chapter-nav__list a {
  font-family: var(--ff-mincho);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
}

.chapter-nav__list a em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 0.875rem;
  margin-left: 0.5rem;
  opacity: 0.5;
}

.chapter-nav__list a:hover {
  color: var(--text-on-dark);
}

.chapter-nav__reserve {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.chapter-nav__reserve a {
  font-family: var(--ff-serif);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}


/* ----------------------------------------
   Chapter Indicator (right edge)
   ---------------------------------------- */
.chapter-indicator {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  mix-blend-mode: difference;
}

.chapter-indicator__track {
  width: 1px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
}

.chapter-indicator__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(255, 255, 255, 0.5);
  transition: height 0.3s ease;
}

.chapter-indicator__dot {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: top 0.3s ease;
}

.chapter-indicator__label {
  font-family: var(--ff-mincho);
  font-size: 0.5625rem;
  color: #fff;
  writing-mode: vertical-rl;
  letter-spacing: 0.15em;
  opacity: 0.6;
  white-space: nowrap;
}


/* ----------------------------------------
   序章 PROLOGUE
   ---------------------------------------- */
.prologue {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.prologue__text {
  text-align: center;
}

.prologue__line {
  font-family: var(--ff-mincho);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 2.5;
  opacity: 0;
  transform: translateY(15px);
}

.scene__scroll-hint {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}

.scene__scroll-hint span {
  font-family: var(--ff-serif);
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scene__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.scene__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}


/* ----------------------------------------
   第一章「鏡」— 円形reveal
   ---------------------------------------- */
.ch1 {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch1__photo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch1__photo {
  width: 100%;
  height: 100%;
  clip-path: circle(0% at 50% 50%);
}

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

.ch1__text {
  position: relative;
  z-index: 10;
  text-align: center;
  opacity: 0;
}

.ch1__text p {
  font-family: var(--ff-mincho);
  font-size: clamp(0.875rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 2.5;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}


/* ----------------------------------------
   第二章「街」— パララックス + 縦書き
   ---------------------------------------- */
.ch2 {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ch2__photo-wrap {
  position: absolute;
  inset: -10% 0;
  overflow: hidden;
  opacity: 0.25;
}

.ch2__photo {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
}

.ch2__texts {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 3rem;
  padding: 2rem;
}

.ch2__vertical-text {
  font-family: var(--ff-mincho);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 400;
  writing-mode: vertical-rl;
  letter-spacing: 0.25em;
  line-height: 2.5;
  color: var(--text-on-light);
  height: 50vh;
  opacity: 0;
  transform: translateY(20px);
}


/* ----------------------------------------
   第三章「扉」— ワイプreveal
   ---------------------------------------- */
.ch3 {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch3__photo-wrap {
  position: absolute;
  inset: 0;
}

.ch3__photo {
  width: 100%;
  height: 100%;
  clip-path: inset(100% 0 0 0);
}

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

.ch3__brand {
  position: relative;
  z-index: 10;
  text-align: center;
  opacity: 0;
}

.ch3__kanji {
  display: block;
  font-family: var(--ff-mincho);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.ch3__tagline {
  font-family: var(--ff-serif);
  font-size: clamp(0.75rem, 1.2vw, 0.9375rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.15em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


/* ----------------------------------------
   第四章「対話」— スプリットスクリーン
   ---------------------------------------- */
.ch4 {
  display: flex;
  min-height: 100vh;
}

.ch4__photo {
  width: 50%;
  min-height: 100vh;
}

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

.ch4__dialogue {
  width: 50%;
  padding: 20vh 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}

.ch4__line {
  opacity: 0;
  transform: translateY(20px);
}

.ch4__line p {
  font-family: var(--ff-mincho);
  font-size: clamp(0.875rem, 1.3vw, 1.0625rem);
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 0.1em;
}

.ch4__line--stylist p {
  color: var(--text-on-light);
}

.ch4__line--client p {
  color: var(--text-dim);
  padding-left: 1rem;
}

.ch4__stylist-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-top: 2rem;
  border-top: 1px solid var(--accent);
  opacity: 0;
  transform: translateY(10px);
}

.ch4__stylist-name {
  font-family: var(--ff-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-on-light);
}

.ch4__stylist-name-ja {
  font-family: var(--ff-mincho);
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
}

.ch4__stylist-role {
  font-family: var(--ff-serif);
  font-size: 0.6875rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.1em;
}


/* ----------------------------------------
   第五章「変容」— 巨大タイポ + ワイプ
   ---------------------------------------- */
.ch5 {
  height: 100vh;
  position: relative;
}

.ch5__phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ch5__phase:not(:first-child) {
  clip-path: inset(0 100% 0 0);
}

.ch5__phase .ch5__photo {
  position: absolute;
  inset: 0;
}

.ch5__phase .ch5__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.ch5__typo {
  position: relative;
  z-index: 10;
  font-family: var(--ff-mincho);
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.ch5__price {
  position: absolute;
  bottom: 6vh;
  right: 6vw;
  z-index: 10;
  font-family: var(--ff-serif);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
}


/* ----------------------------------------
   第六章「鏡、ふたたび」— 円形reveal（明）
   ---------------------------------------- */
.ch6 {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch6__photo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch6__photo {
  width: 100%;
  height: 100%;
  clip-path: circle(0% at 50% 50%);
}

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

.ch6__text {
  position: relative;
  z-index: 10;
  text-align: center;
  opacity: 0;
}

.ch6__text p {
  font-family: var(--ff-mincho);
  font-size: clamp(0.875rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 2.5;
  color: var(--text-on-light);
}


/* ----------------------------------------
   第七章「サロン」— 情報 (エンドロール風)
   ---------------------------------------- */
.ch7 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ch7__photo-wrap {
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.ch7__photo {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.ch7__info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 2rem;
}

.ch7__info-inner {
  max-width: 500px;
  text-align: center;
}

.ch7__brand {
  display: block;
  font-family: var(--ff-mincho);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--text-on-dark);
  margin-bottom: 3rem;
}

.ch7__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
  text-align: left;
}

.ch7__details > div {
  display: flex;
  gap: 2rem;
}

.ch7__details dt {
  flex-shrink: 0;
  width: 60px;
  font-family: var(--ff-serif);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.ch7__details dd {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.ch7__details dd a {
  color: var(--text-on-dark);
}

.ch7__reserve {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.ch7__reserve-lead {
  font-family: var(--ff-mincho);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
}

.ch7__reserve-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.ch7__reserve-links a {
  font-family: var(--ff-serif);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
}

.ch7__reserve-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.ch7__reserve-links a:hover::after {
  width: 100%;
}


/* ----------------------------------------
   終章 EPILOGUE
   ---------------------------------------- */
.epilogue {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

.epilogue__photo-wrap {
  width: 220px;
  height: 300px;
  margin-bottom: 4rem;
  overflow: hidden;
  opacity: 0;
}

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

.epilogue__text {
  text-align: center;
  margin-bottom: 6rem;
  opacity: 0;
}

.epilogue__text p {
  font-family: var(--ff-mincho);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 2.5;
  color: var(--text-dim);
}

.epilogue__footer {
  text-align: center;
  opacity: 0;
}

.epilogue__logo {
  display: block;
  font-family: var(--ff-mincho);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-on-dark);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.epilogue__logo-en {
  display: block;
  font-family: var(--ff-serif);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.epilogue__copy {
  font-size: 0.5625rem;
  color: rgba(232, 224, 212, 0.2);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.epilogue__back-to-top {
  font-family: var(--ff-serif);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  position: relative;
}

.epilogue__back-to-top::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
}


/* ----------------------------------------
   Sample Banner
   ---------------------------------------- */
.sample-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(15, 15, 14, 0.9);
  padding: 0.5rem 1rem;
  text-align: center;
}

.sample-banner p {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
}

.sample-banner a {
  color: var(--accent);
  text-decoration: underline;
}


/* ========================================
   Mobile (< 768px)
   ======================================== */
@media (max-width: 767px) {
  .chapter-indicator {
    display: none;
  }

  .header {
    padding: 1.25rem 1.5rem;
  }

  /* ch2: 縦書き → 横書き */
  .ch2__texts {
    flex-direction: column;
    gap: 1.5rem;
  }

  .ch2__vertical-text {
    writing-mode: horizontal-tb;
    height: auto;
    text-align: center;
  }

  /* ch4: スプリット → スタック */
  .ch4 {
    flex-direction: column;
  }

  .ch4__photo {
    width: 100%;
    min-height: 40vh;
    height: 40vh;
  }

  .ch4__dialogue {
    width: 100%;
    padding: 8vh 2rem;
  }

  /* ch5 */
  .ch5__typo {
    font-size: 15vw;
  }

  /* epilogue */
  .epilogue__photo-wrap {
    width: 160px;
    height: 220px;
  }
}


/* ========================================
   Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .header {
    padding: 2rem 3rem;
  }

  .chapter-indicator {
    right: 3rem;
  }
}
