/* ─────────────────────────────────────────
   flow.css — 体験の流れページ専用スタイル
───────────────────────────────────────── */

/* ── ページヒーロー ── */
.flow-hero {
  background: var(--color-black);
  color: var(--color-white);
  padding: 10rem 0 5rem;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.flow-hero__inner {
  max-width: 860px;
}

.flow-hero__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-red);
  margin-bottom: 1.5rem;
}

.flow-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 2rem;
}

.flow-hero__lead {
  font-size: 0.9375rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.75);
}

/* ── 横スクロールセクション（PC） ── */
.horizontal-scroll-trigger {
  height: 600vh;
  position: relative;
}

.horizontal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--color-black);
}

.cards-track {
  display: flex;
  width: calc(100vw * 6);
  height: 100%;
  will-change: transform;
}

/* ── STEPカード ── */
.step-card {
  width: 100vw;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
  border-left: 1px solid var(--color-border);
}

.step-card:first-child {
  border-left: none;
}

/* スプリットレイアウト：テキスト左・写真右 */
.step-card__body {
  display: flex;
  width: 100%;
  height: 100%;
}

.step-card__content {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem 4rem 5rem;
  position: relative;
}

.step-card__img-wrap {
  flex: 0 0 50%;
  overflow: hidden;
  position: relative;
}

.step-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.step-card__meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.step-card__num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  color: var(--color-red);
  letter-spacing: -0.02em;
}

.step-card__slash {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-border);
}

.step-card__total {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-border);
}

.step-card__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.step-card__text {
  font-size: 0.9375rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
}

.step-card__next {
  position: absolute;
  right: 2rem;
  bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  color: var(--color-red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-card--last .step-card__next {
  display: none;
}

.step-card__finish {
  position: absolute;
  right: 2rem;
  bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 0.25em 0.75em;
}

/* ── 進行インジケーター ── */
.step-indicator {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-indicator__bar {
  width: 120px;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.step-indicator__fill {
  height: 100%;
  background: var(--color-red);
  width: 0%;
  transition: width 0.1s linear;
}

.step-indicator__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  min-width: 3rem;
}

/* ── スマホ：縦並び（768px以下） ── */
@media (max-width: 48rem) {
  .horizontal-section-wrapper {
    /* 横スクロール演出をOFF — 通常の縦積みに変更 */
  }

  .horizontal-scroll-trigger {
    height: auto;
    position: static;
  }

  .horizontal-sticky {
    position: static;
    height: auto;
    overflow: visible;
    background: var(--color-black);
  }

  .step-indicator {
    display: none;
  }

  .cards-track {
    display: block;
    width: 100%;
  }

  .step-card {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .step-card:first-child {
    border-top: none;
  }

  .step-card__body {
    flex-direction: column;
  }

  .step-card__content {
    flex: none;
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .step-card__img-wrap {
    flex: none;
    height: 56vw;
  }

  .step-card__num {
    font-size: 4rem;
  }

  .step-card__next,
  .step-card__finish {
    position: static;
    margin-top: 1.5rem;
    display: inline-flex;
  }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .cards-track {
    will-change: auto;
  }
}

/* ── PCで横スクロール演出が無効な環境の fallback ── */
.no-horizontal .horizontal-scroll-trigger {
  height: auto;
  position: static;
}

.no-horizontal .horizontal-sticky {
  position: static;
  height: auto;
  overflow: visible;
}

.no-horizontal .cards-track {
  display: block;
  width: 100%;
}

.no-horizontal .step-card {
  width: 100%;
  height: auto;
  border-left: none;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}

.no-horizontal .step-indicator {
  display: none;
}
