/* ==========================================
   Wedding Reception Web Site - Custom Styles
   カラーパレット:
   - Base:   #FAF8F5 (温かみのあるオフホワイト)
   - Main:   #4A6B82 (くすみブルー)
   - Accent: #C5A059 (ゴールド)
=========================================== */

:root {
  --color-base: #FAF8F5;
  --color-main: #4A6B82;
  --color-main-dark: #365165;
  --color-accent: #C5A059;
  --color-ink: #2C3539;
}

/* スムーズスクロール設定 */
html {
  scroll-behavior: smooth;
}

/* iOSセーフエリア対応（ボトムナビゲーション下部余白） */
nav[aria-label="セクション移動ナビゲーション"] {
  padding-bottom: calc(0.375rem + env(safe-area-inset-bottom, 0px));
}

/* セクションタイトル下のゴールド飾りライン */
.section-divider {
  width: 44px;
  height: 1px;
  background-color: var(--color-accent);
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background-color: var(--color-accent);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ご挨拶カードの四隅のゴールドあしらい */
.corner-ornament {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--color-accent);
  pointer-events: none;
}

/* タイムラインの丸ドット */
.timeline-dot {
  position: absolute;
  left: -31px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background-color: var(--color-base);
  border: 2.5px solid var(--color-main);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

/* メニュー切り替えタブ（Food / Drink）のスタイル */
.menu-tab-btn {
  color: var(--color-main-dark);
  background-color: transparent;
}

.menu-tab-btn.active {
  background-color: var(--color-main);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(74, 107, 130, 0.25);
}

/* ボトムナビゲーションの現在地ハイライト */
.bottom-nav-item.active {
  color: var(--color-main);
  position: relative;
}

.bottom-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--color-accent);
}

/* ヒーロー画像のゆっくりとしたズームアニメーション */
@keyframes heroZoom {
  0% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.animate-hero-zoom {
  animation: heroZoom 10s ease-out forwards;
}

/* スクロールインジケーターの縦ラインアニメーション */
@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(200%);
  }
}

.animate-scroll-line {
  animation: scrollLine 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* スクロール時のふんわり表示（IntersectionObserver連携） */
.reveal-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 写真共有CTAボタンの微細な光沢・ホバー演出 */
.cta-button {
  box-shadow: 0 6px 20px rgba(74, 107, 130, 0.3);
}

.cta-button:active {
  transform: scale(0.98);
}

/* ダイアログ（モーダル）表示時のアニメーション */
dialog#map-modal[open] {
  animation: modalFadeIn 0.25s ease-out forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 視覚効果を減らす設定（アクセシビリティ配慮） */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-hero-zoom,
  .animate-scroll-line {
    animation: none;
  }
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
