/* ========================================
   ヒーローセクション完全版 - les SALON
   センタリング＋スライダー対応
   ======================================== */

/* ヒーローセクション */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  /* padding は body::before で対応（header-sticky-fix.css） */
}

/* 背景スライダー */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  /* Ken Burnsエフェクト用 */
  will-change: transform, opacity;
  /* 位置固定 - 元に戻らないように */
  transform-origin: center center;
  /* クロスフェード最適化 */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  /* アクティブ時のみアニメーション（15秒＝切り替え後も動き続ける） */
  animation: kenBurnsDefault 15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* スライドごとに異なる動き */
.hero-slide:nth-child(1).active {
  animation: kenBurnsLeft 15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-slide:nth-child(2).active {
  animation: kenBurnsUp 15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-slide:nth-child(3).active {
  animation: kenBurnsRight 15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-slide:nth-child(4).active {
  animation: kenBurnsDown 15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* デフォルト：ズームイン＆ズームアウト */
@keyframes kenBurnsDefault {
  0%, 100% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.12);
  }
}

/* 1枚目：左から右へゆったり移動 */
@keyframes kenBurnsLeft {
  0%, 100% {
    transform: scale(1.08) translateX(0);
  }
  50% {
    transform: scale(1.12) translateX(-3%);
  }
}

/* 2枚目：下から上へゆったり移動 */
@keyframes kenBurnsUp {
  0%, 100% {
    transform: scale(1.08) translateY(0);
  }
  50% {
    transform: scale(1.12) translateY(-3%);
  }
}

/* 3枚目：右から左へゆったり移動 */
@keyframes kenBurnsRight {
  0%, 100% {
    transform: scale(1.08) translateX(0);
  }
  50% {
    transform: scale(1.12) translateX(3%);
  }
}

/* 4枚目：上から下へゆったり移動 */
@keyframes kenBurnsDown {
  0%, 100% {
    transform: scale(1.08) translateY(0);
  }
  50% {
    transform: scale(1.12) translateY(3%);
  }
}

/* 背景オーバーレイ - 黒網掛けフィルター */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* グラデーションオーバーレイ（さらに薄く） */
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.15) 100%
    );
  z-index: 3;
}

/* ファイル名表示 */
.slide-filename {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  z-index: 2;
}

/* コンテンツ */
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center; /* 完全センタリング */
}

.hero-small-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-serif);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  letter-spacing: 0.05em;
}

.hero-emphasis {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-accent-light);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  line-height: 2;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ボタン */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  z-index: 4;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* タブレット（768px-1023px） */
@media (max-width: 1023px) and (min-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-buttons {
    gap: 1rem;
  }
}

/* モバイル（768px以下） */
@media (max-width: 767px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-content {
    padding: 1rem;
    max-width: 100%;
  }
  
  .hero-small-subtitle {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-emphasis {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 3rem; /* ボタンの下にスペース */
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  /* スクロールインジケーターを最下部に配置 */
  .scroll-indicator {
    bottom: 1rem; /* ボタンに被らないよう最下部 */
    font-size: 0.65rem; /* 少し小さく */
  }
  
  .scroll-line {
    height: 30px; /* 少し短く */
  }
}

/* モバイル小（480px以下） - スクロールインジケーター非表示 */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-emphasis {
    font-size: 1rem;
  }
  
  .hero-subtitle {
    font-size: 0.8125rem;
  }
  
  /* 小さい画面では非表示 */
  .scroll-indicator {
    display: none;
  }
  
  /* ファイル名も非表示 */
  .slide-filename {
    display: none;
  }
}
