/* Hero FV - スライド（非フルスクリーン） */

/* ============================================
   HERO FV SECTION
   ============================================ */

.p-hero-fv {
  position: relative;
  width: 100%;
  padding-top: var(--header-height);
  background: var(--color-off-white);
}

.p-hero-fv--slide .p-hero-fv__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: clamp(280px, 42vw, 560px);
  min-height: 240px;
  overflow: hidden;
  background: var(--color-cream);
}

/* 1枚目：リッチなフレーム＋奥行き */
.p-hero-fv--slide.is-blank-slide .p-hero-fv__slider {
  background: #faf6f0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 2px 24px rgba(255, 255, 255, 0.65),
    inset 0 -32px 64px rgba(166, 124, 82, 0.14),
    0 8px 32px rgba(44, 28, 12, 0.06);
}

.p-hero-fv--slide.is-blank-slide .p-hero-fv__slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(201, 169, 110, 0.45),
    inset 0 0 0 6px rgba(255, 253, 247, 0.35),
    inset 0 0 120px 40px rgba(201, 169, 110, 0.18);
}

.p-hero-fv--slide.is-blank-slide .p-hero-fv__slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(201, 169, 110, 0.2) 0%, transparent 22%),
    linear-gradient(225deg, rgba(201, 169, 110, 0.16) 0%, transparent 20%),
    linear-gradient(315deg, rgba(166, 124, 82, 0.14) 0%, transparent 22%),
    linear-gradient(45deg, rgba(232, 213, 176, 0.18) 0%, transparent 20%);
  opacity: 0.9;
}

/* Image Container */
.p-hero-fv__images {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.p-hero-fv__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.65s ease-in-out;
}

.p-hero-fv__image--active {
  opacity: 1;
}

.p-hero-fv__image--blank {
  background-color: #fffcf7;
  background-image:
    radial-gradient(ellipse 45% 38% at 78% 22%, rgba(232, 213, 176, 0.65) 0%, transparent 58%),
    radial-gradient(ellipse 40% 36% at 15% 78%, rgba(201, 169, 110, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 92% 68%, rgba(166, 124, 82, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 100% 85% at 5% 8%, rgba(201, 169, 110, 0.42) 0%, transparent 58%),
    radial-gradient(ellipse 120% 95% at 50% 115%, rgba(140, 100, 60, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255, 252, 245, 1) 0%, transparent 68%),
    linear-gradient(
      155deg,
      #fffef9 0%,
      #f9f2e8 18%,
      #f0e4d4 42%,
      #e6d4bc 68%,
      #d4bc98 88%,
      #c9ad86 100%
    );
}

/* 光の筋・シャンバー・ボケ */
.p-hero-fv__image--blank::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      112deg,
      transparent 22%,
      rgba(255, 255, 255, 0.75) 44%,
      rgba(255, 236, 200, 0.35) 49%,
      rgba(255, 255, 255, 0.2) 52%,
      transparent 64%
    ),
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(255, 255, 255, 0.95) 0%, transparent 62%),
    radial-gradient(circle at 88% 12%, rgba(232, 213, 176, 0.55) 0%, transparent 38%),
    radial-gradient(circle at 10% 88%, rgba(201, 169, 110, 0.35) 0%, transparent 32%);
  opacity: 0.92;
  animation: heroFvShimmer 14s ease-in-out infinite;
}

.p-hero-fv__image--blank::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background-image:
    radial-gradient(ellipse 95% 85% at 50% 50%, transparent 35%, rgba(60, 38, 20, 0.18) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(80, 50, 28, 0.06) 0,
      rgba(80, 50, 28, 0.06) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(80, 50, 28, 0.05) 0,
      rgba(80, 50, 28, 0.05) 1px,
      transparent 1px,
      transparent 4px
    );
}

@keyframes heroFvShimmer {
  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-2%) skewX(-2deg);
  }

  50% {
    opacity: 1;
    transform: translateX(2%) skewX(-2deg);
  }
}

/* コピー背面のゴールドグロー */
.p-hero-fv--slide.is-blank-slide .p-hero-fv__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(120%, 28rem);
  height: 140%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 169, 110, 0.2) 0%,
    rgba(232, 213, 176, 0.08) 45%,
    transparent 72%
  );
  filter: blur(8px);
}

/* Overlay（画像スライド時のみ表示） */
.p-hero-fv__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 28, 12, 0.28);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.p-hero-fv--slide:not(.is-blank-slide) .p-hero-fv__overlay {
  opacity: 1;
}

/* Content */
.p-hero-fv__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  pointer-events: none;
}

.p-hero-fv__inner {
  text-align: center;
  color: #fff;
  max-width: min(34rem, 92%);
  animation: fadeInUp 1s ease-out 0.3s both;
  pointer-events: auto;
  transition: color 0.8s ease;
}

/* 1枚目（画像なし）：明るい背景用の文字色 */
.p-hero-fv--slide.is-blank-slide .p-hero-fv__inner {
  position: relative;
  color: var(--color-text-primary);
}

.p-hero-fv--slide.is-blank-slide .p-hero-fv__title {
  text-shadow: 0 2px 48px rgba(201, 169, 110, 0.28);
}

.p-hero-fv--slide.is-blank-slide .p-hero-fv__eyebrow {
  color: var(--color-gold-deep);
  text-shadow: 0 2px 24px rgba(201, 169, 110, 0.35);
}

.p-hero-fv--slide.is-blank-slide .p-hero-fv__rule {
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold) 20%,
    var(--color-gold) 80%,
    transparent
  );
}

.p-hero-fv--slide.is-blank-slide .p-hero-fv__rule::after {
  background: var(--color-gold);
}

.p-hero-fv--slide.is-blank-slide .p-hero-fv__subtitle {
  color: var(--color-text-secondary);
  text-shadow: none;
}

.p-hero-fv--slide.is-blank-slide .p-hero-fv__description {
  color: var(--color-text-secondary);
  text-shadow: none;
}

/* 英字キャッチ — セクション見出しと同系統 */
.p-hero-fv__eyebrow {
  margin: 0;
  font-family: var(--font-serif-en);
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
  -webkit-font-smoothing: antialiased;
}

.p-hero-fv__eyebrow::first-letter {
  text-transform: uppercase;
}

.p-hero-fv__eyebrow-line {
  display: block;
}

.p-hero-fv__eyebrow-line + .p-hero-fv__eyebrow-line {
  margin-top: 0.12em;
}

.p-hero-fv__rule {
  display: block;
  width: min(7rem, 36%);
  height: 1px;
  margin: clamp(0.65rem, 2vw, 0.9rem) auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.65) 20%,
    rgba(255, 255, 255, 0.65) 80%,
    transparent
  );
  position: relative;
}

.p-hero-fv__rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.9);
}

.p-hero-fv__title {
  font-family: var(--font-serif-jp, "Noto Serif JP", serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
}

.p-hero-fv__subtitle {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif-jp);
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.p-hero-fv__description {
  margin: clamp(0.5rem, 1.5vw, 0.75rem) 0 0;
  font-family: var(--font-serif-jp);
  font-size: clamp(0.75rem, 1.65vw, 0.875rem);
  font-weight: 300;
  line-height: 2.15;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25);
}

.p-hero-fv__cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.p-hero-fv__cta .c-button {
  font-family: var(--font-soft-jp);
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.p-hero-fv__scroll-indicator {
  position: absolute;
  bottom: -55px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  animation: slideUp 1s ease-out 1s both;
  width: 100px;
  height: 100px;
}

.p-hero-fv__scroll-indicator:hover {
  opacity: 1;
}

.p-hero-fv__scroll-circle {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  animation: rotateSVG 12s linear infinite;
  overflow: visible;
}

.p-hero-fv__scroll-text {
  fill: white;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.15em;
  dominant-baseline: middle;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 0.8;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes rotateSVG {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .p-hero-fv--slide .p-hero-fv__slider {
    aspect-ratio: 4 / 3;
    max-height: min(72vw, 420px);
    min-height: 220px;
  }

  .p-hero-fv__title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .p-hero-fv__subtitle {
    font-size: 1rem;
  }

  .p-hero-fv__description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .p-hero-fv__cta {
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .p-hero-fv__cta .c-button {
    width: 100%;
  }

  .p-hero-fv__scroll-indicator {
    bottom: 20px;
  }

  .p-hero-fv__scroll-circle {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .p-hero-fv {
    padding-top: 4.75rem;
  }

  .p-hero-fv--slide .p-hero-fv__slider {
    max-height: 360px;
    min-height: 200px;
  }

  .p-hero-fv__eyebrow {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    letter-spacing: 0.14em;
  }

  .p-hero-fv__description {
    font-size: 0.75rem;
    line-height: 2;
    letter-spacing: 0.08em;
  }

  .p-hero-fv__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-hero-fv__image--blank::before {
    animation: none;
    transform: none;
    opacity: 0.85;
  }
}
