/**
 * ====================================
 * バスサウナ LP カスタムスタイル
 * ネイビー/オレンジテーマ
 * ====================================
 */

/* ====================================
   ベーススタイル
===================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

#hero h1 {
  line-height: 1.5;
}

/* SP専用改行（768px以上で非表示） */
.br-sp {
  display: inline;
}

@media (min-width: 768px) {
  .br-sp {
    display: none;
  }
}

/* ====================================
   装飾スタイル
===================================== */

/* パターン背景 */
.showa-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(30, 58, 95, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(249, 115, 22, 0.03) 20px,
      rgba(249, 115, 22, 0.03) 40px
    );
}

/* フレーム（ヒーロー用） */
.retro-frame {
  position: relative;
  background: rgba(15, 23, 42, 0.95);
  border: 3px solid #1e3a5f;
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.3),
    0 0 0 5px rgba(15, 23, 42, 0.8),
    0 0 0 6px #1e3a5f,
    8px 8px 0 rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.retro-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  pointer-events: none;
}

/* 角の装飾（エンブレム） */
.retro-frame::after {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 145px;
    height: 145px;
    background: url('img/logo_emblem.svg') center/contain no-repeat;
    background-color: #e8e1d1;
    padding: 4px;
    border-radius: 50%;
    border: 5px solid #1e3a5f;
}

/* ヒーローロゴの影 */
.hero-logo-shadow {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* ヒーロー背景のオーバーレイ */
.hero-retro-overlay {
  background:
    /* ノイズテクスチャ */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.015) 2px,
      rgba(0, 0, 0, 0.015) 4px
    ),
    /* ビネット効果 */
    radial-gradient(
      ellipse at center,
      transparent 40%,
      rgba(0, 0, 0, 0.2) 100%
    );
  mix-blend-mode: multiply;
}

/* ====================================
   FAQアコーディオン
===================================== */
.faq-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.faq-trigger {
  cursor: pointer;
}

.faq-trigger:focus {
  outline: 2px solid rgba(249, 115, 22, 0.5);
  outline-offset: -2px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-content {
  display: block;
  max-height: 500px;
}

/* ====================================
   スマホ追従CTA
===================================== */
#mobile-cta.visible {
  transform: translateY(0);
}

/* ====================================
   アニメーション
===================================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* フェードイン用 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ====================================
   スクロールインジケーター
===================================== */
.writing-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@keyframes scrollDown {
  0% {
    top: 0;
    opacity: 1;
  }
  80% {
    top: calc(100% - 6px);
    opacity: 1;
  }
  100% {
    top: calc(100% - 6px);
    opacity: 0;
  }
}

.scroll-dot {
  animation: scrollDown 1.8s ease-in-out infinite;
}

.scroll-line {
  overflow: hidden;
}

/* ====================================
   プレースホルダー画像スタイル
===================================== */
[data-field*="image"] {
  position: relative;
}

[data-field*="image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* ====================================
   スクロールバー（Chrome/Safari）
===================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* ====================================
   フォーカス状態（アクセシビリティ）
===================================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* ====================================
   料金カード ホバーエフェクト
===================================== */
#pricing .grid > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pricing .grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}


/* ====================================
   セクションタイトル装飾
===================================== */
section h2 {
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f97316, transparent);
  margin: 16px auto 0;
}

/* ====================================
   レスポンシブ調整
===================================== */
@media (max-width: 768px) {
  /* スマホでのヒーローテキスト調整 */
  #hero h1 {
    font-size: 2.25rem;
    line-height: 1.5;
  }

  /* フレームのモバイル調整 */
  .retro-frame {
    margin: 0 8px;
    box-shadow:
      0 0 0 1px rgba(249, 115, 22, 0.3),
      0 0 0 3px rgba(15, 23, 42, 0.8),
      0 0 0 4px #1e3a5f,
      4px 4px 0 rgba(0, 0, 0, 0.3);
  }

  /* スマホではボトムパディングを追従CTAの分だけ増やす */
  footer {
    padding-bottom: 100px;
  }
}

/* ====================================
   印刷スタイル
===================================== */
@media print {
  header,
  #mobile-cta,
  .animate-bounce {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ====================================
   プリファレンス対応
===================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ====================================
   追加装飾
===================================== */

/* 特徴カードのホバー */
#features .grid > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#features .grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

/* ボタンスタイル */
a[href="#booking"] {
  position: relative;
}

/* ヘッダーの影 */
header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* フッターのグラデーション */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent,
    #f97316 20%,
    #f97316 80%,
    transparent
  );
}
