/* ============================================
   ヒーローセクション（案2：和風ダーク）
   縦書きキャッチコピー + 金アクセント
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- 背景写真 --- */
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../../images/hero/tobi-geri.jpg') center 30% / cover no-repeat;
  /* フォールバック：写真読み込み前の背景色 */
  background-color: #0a0a0a;
  animation: hero-zoom 20s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* --- 和紙テクスチャ風オーバーレイ --- */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 上下をより暗くして視線をコンテンツへ誘導 */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* --- 縦書きコンテンツエリア --- */
.hero__content {
  position: relative;
  z-index: 2;
  /* 縦書きレイアウト：右から左に流れる */
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: var(--space-3xl);
  padding: 0 var(--page-padding);
}

/* 縦書きメインキャッチコピー */
.hero__title {
  /* writing-mode: 縦書きモード（日本語伝統の組版） */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  /* 縦書き9文字（万流の粋を集めて）が100vh内に収まるサイズ */
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: #f0ece4;
  margin: 0;
  word-break: keep-all;
  max-height: 75vh;
}

/* アクセントカラー（金）のテキスト強調 */
.hero__title .accent {
  color: #c9a84c;
}

/* 縦書きサブキャッチコピー（元サイズの1.25倍） */
.hero__subtitle {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.09rem;
  color: rgba(240, 236, 228, 0.6);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 2.0;
  margin: 0;
}

/* CTAボタンエリア — 縦書きエリアの下に横並び */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

/* ヒーロー内のプライマリボタン：金色に */
.hero .btn--primary {
  background-color: #c9a84c;
  color: #0a0a0a;
  letter-spacing: 0.1em;
}

.hero .btn--primary:hover {
  background-color: #e0c070;
}

/* ヒーロー内のアウトラインボタン：金枠に */
.hero .btn--outline {
  color: #f0ece4;
  border-color: rgba(201, 168, 76, 0.5);
}

.hero .btn--outline:hover {
  border-color: #c9a84c;
  color: #c9a84c;
}

/* --- 金の縦線デコレーション --- */
.hero__divider {
  width: 1px;
  height: 80px;
  /* 縦書きエリアと横書きエリアを金の縦線で区切る */
  background: linear-gradient(to bottom, transparent, #c9a84c, transparent);
  flex-shrink: 0;
}

/* --- スクロール誘導（下向き矢印） --- */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  /* 金色で統一 */
  color: rgba(201, 168, 76, 0.6);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201, 168, 76, 0.6), transparent);
}

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

/* --- レスポンシブ：スマートフォンでは横書きに切り替え --- */
@media (max-width: 768px) {
  .hero {
    min-height: 500px;
  }

  .hero__content {
    /* モバイルでは縦書きから横書きに変更 */
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .hero__title {
    writing-mode: horizontal-tb;
    /* スマホでは文字サイズをビューポート幅に連動させ見切れを防止 */
    font-size: clamp(1.5rem, 7vw, var(--text-4xl));
    line-height: 1.5;
    letter-spacing: 0.05em;
    max-height: none;
  }

  .hero__subtitle {
    writing-mode: horizontal-tb;
    font-size: 1.09rem;
    text-align: center;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__divider {
    display: none;
  }

  .hero__scroll-indicator {
    bottom: 20px;
  }
}
