/* ========================================
   フロント：FV全面スライド
   ======================================== */
.fv--slideshow {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* スライドをヘッダー含む FV 全体の背景に */
.fv--slideshow .hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1a2a28;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

/* 白文字用：左下のコピー周りだけ暗くして可読性を確保 */
.fv--slideshow .hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.22) 28%,
      transparent 48%
    ),
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.18) 30%,
      transparent 52%
    );
}

.fv--slideshow .site-header {
  position: relative;
  z-index: 4;
  background: transparent;
}

.fv--slideshow .site-header__inner {
  background: rgba(255, 255, 255, 0.55);
}

.hero--slideshow {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  margin-top: 0;
  overflow: visible;
}

/* About 直上。左はヘッダーバー（ロゴ）左端に揃える */
.hero--slideshow .hero__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-top: 0;
  /* wrap 51px + header__inner 左 24px */
  padding-left: 75px;
  padding-right: 51px;
  padding-bottom: calc(var(--radius-section) + 32px);
}

.hero--slideshow .hero__catch,
.hero--slideshow .hero__sub {
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* コピー下端とバナー下端を同じラインに */
.hero--slideshow .hero__badge {
  z-index: 3;
  top: auto;
  bottom: calc(var(--radius-section) + 32px);
  right: max(20px, calc((100% - var(--container-max)) / 2 + 75px));
}

.hero__slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 148px; /* About の重なり分より上 */
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero__slideshow-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hero__slideshow-dot.is-active {
  background: var(--color-primary);
}

/* About の角丸の内側に画像が残るよう、重なりを角丸分まで広げる */
.fv--slideshow ~ main .about {
  margin-top: calc(var(--radius-section) * -1);
  z-index: 5;
}

@media (max-width: 900px) {
  .fv--slideshow {
    min-height: 88vh;
    min-height: 88dvh;
  }

  /* 初期は非表示 → スクロールで表示 */
  .fv--slideshow .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-top: max(12px, env(safe-area-inset-top));
    transform: translate3d(0, calc(-100% - 12px), 0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .fv--slideshow .site-header.is-visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero--slideshow .hero__body {
    min-height: 0;
    /* wrap 20px + header__inner 左 24px 想定 */
    padding: 24px 20px 56px 44px;
  }

  /* スマホは About 内バナーに移す */
  .hero--slideshow .hero__badge {
    display: none;
  }

  .hero__slideshow-dots {
    bottom: 48px;
  }

  .fv--slideshow ~ main .about {
    margin-top: -32px;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .fv--slideshow .site-header {
    transition: none;
  }
}

@media (max-width: 600px) {
  .hero--slideshow .hero__body {
    /* wrap 20px + header__inner 左 20px */
    padding-left: 40px;
  }
}
