/* ==========================================
   T Wonder Village | Nordic Christmas Style
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@600;700&family=Playfair+Display:wght@500&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --ink: #1C2E3D;
  --accent: #4BAAD1;
  --bg-light: #EAF5FC;
  --glow: #FFDFA7;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ------------------------------
   全体
------------------------------ */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(to bottom, #fafdff 0%, #fff 100%);
  color: var(--ink);
  font-family: "Noto Sans JP", "Quicksand", sans-serif;
  overflow-x: hidden;
  line-height: 1.8;
}
/* =========================================
   リンク装飾の統一（青色・下線をなくす）
========================================= */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: inherit; /* hoverでも青くならない */
  opacity: 0.9;   /* 少しだけトーンを落とす */
}

a:visited {
  color: inherit; /* visitedでも変化なし */
}

.card a,
.illum-item a {
  text-decoration: none;
  color: inherit;
}

/* ------------------------------
   Header
------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 40, 80, 0.45);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 40px;
}
.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
}
.logo-mark {
  color: var(--glow);
  animation: twinkle 3s ease-in-out infinite;
}

/* ================================
   ドロップダウンメニュー
================================ */
.main-nav {
  display: flex;
  gap: 32px;
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-item a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.3s ease;
}

/* 下線アニメーション（現状維持） */
.nav-item a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--glow), #fff);
  transform: translateX(-50%);
  transition: width 0.3s;
}
.nav-item:hover > a::after {
  width: 60%;
}
.nav-item:hover > a {
  color: var(--glow);
}
/* クリックで開く用 */
.nav-item.open .dropdown {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
}

/* ドロップダウン部分 */
.dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 40, 80, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  z-index: 999;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ドロップダウン内のリンク */
.dropdown a {
  color: #fff;
  padding: 8px 20px;
  font-size: 0.9rem;
  text-align: left;
  transition: background 0.3s ease, color 0.3s ease;
}
.dropdown a:hover {
  background: rgba(255,255,255,0.25);
backdrop-filter: blur(12px);
border: 1px solid rgba(255,255,255,0.4);
border-radius: 12px;

  color: var(--glow);
}

/* ====== ドロップダウン（閉じてしまう問題の完全解決版） ====== */

/* 表示位置：親メニュー直下ぴったり */
.dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;         /* ← 親と密着 */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;   /* わずかな余白 */
  
  background: rgba(0, 40, 80, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}

/* hoverの維持専用 */
.nav-item:hover .dropdown,
.dropdown:hover {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

/* ============================
   🌿 ハンバーガーメニュー
============================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  position: absolute;
  right: 40px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ============================
   🌙 ドロップダウン共通（PCは前のまま）
============================ */
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

/* ============================
   📱 スマホ表示対応
============================ */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: 60px;
    right: 0;
    background: rgba(0, 40, 80, 0.95);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
    height: 100%;
    padding: 30px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .main-nav.show {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .nav-item > a {
    display: block;
    width: 100%;
    font-size: 1.2rem;
    padding: 10px 0;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .dropdown {
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-top: 6px;
    padding: 6px 0;
  }

  .nav-item.active .dropdown {
    display: flex;
  }

  .dropdown a {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}
/* ============================
   ❄ 雪の結晶エフェクト
============================ */
@keyframes snow-fall {
  0% {
    transform: translateY(-10px) scale(0.8);
    opacity: 1;
  }
  80% {
    transform: translateY(25px) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translateY(45px) scale(0.8);
    opacity: 0;
  }
}

.snowflake {
  position: absolute;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.8);
  pointer-events: none;
  opacity: 0;
  animation: snow-fall 1.8s ease-out forwards;
}

/* ------------------------------
   Hero
------------------------------ */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.6);
  transform-origin: center bottom;
  opacity: 0.96;
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  top: 46%;
  transform: translateY(-50%);
  color: #fff;
  text-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.hero-inner h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  animation: fadeUp 1.4s ease both;
}
.hero-inner p {
  font-size: 1.3rem;
  opacity: 0.95;
    color: #fff;
  animation: fadeUp 2s ease both;
}
.hero-inner .btn {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 14px 34px;
  border-radius: 30px;
  background: linear-gradient(90deg, #FFF4E3, #FFDFA7);
  color: #02497A;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(255,255,255,0.3);
  transition: 0.3s;
}
.hero-inner .btn:hover { transform: translateY(-3px); background: #fff; }
#snow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.hero-inner {
  z-index: 5; /* ← テキストを雪より前面に */
}
#hero h1,
#hero h2,
#hero p,
#hero .hero-text {
  color: #fff !important;
}
#hero {
  min-height: 55vh;          /* ← 程よく短いヒーロー */
  display: flex;
  align-items: center;        /* テキストを縦中央に */
  justify-content: center;    /* 横中央 */
  text-align: center;
  padding: 80px 20px 60px;    /* 上は少し余白、下は少なめ */
  background-size: cover;
  background-position: center;
}


/* ===========================================
   🎄 オーナメント点滅アニメーション
   =========================================== */
@keyframes ornamentTwinkle {
  0% {
    opacity: 0.7;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.4));
  }
  25% {
    opacity: 1;
    filter: drop-shadow(0 0 4px #FFDFA7);
  }
  50% {
    opacity: 0.8;
    filter: drop-shadow(0 0 6px #F9CFCF);
  }
  75% {
    opacity: 1;
    filter: drop-shadow(0 0 5px #B7E0F2);
  }
  100% {
    opacity: 0.7;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.4));
  }
}

/* Hero内オーナメントを点滅させる */
.hero svg g circle {
  animation: ornamentTwinkle 4.5s ease-in-out infinite;
  transform-origin: center;
}

.hero-inner {
  position: relative;
  z-index: 3;
}


/* ------------------------------
   共通セクション
------------------------------ */
.panel {
  padding: 120px 20px;
  text-align: center;
}
.panel h2 {
  font-family: "Quicksand", sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent);
}
.panel p {
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1rem;
    margin-bottom: 40px;
}


/* ------------------------------
   グリッドカード
------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
}
.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.card .bd {
  padding: 18px;
}
.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--ink);
}
.card p {
  font-size: 0.95rem;
  color: #516879;
}

/* ------------------------------
   フェードイン
------------------------------ */
.fadein { opacity: 0; transform: translateY(40px); transition: opacity 1.4s ease, transform 1.4s ease; }
.fadein.show { opacity: 1; transform: translateY(0); }

/* =========================
   News / お知らせ専用
========================= */
.news-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.notice {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(20,40,60,0.08);
  padding: 28px 32px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.notice:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(20,40,60,0.12);
}
.notice time {
  display: block;
  color: #4BAAD1;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.notice h3 {
  font-size: 1.15rem;
  color: #1C2E3D;
  margin: 4px 0 8px;
  font-weight: 700;
}
.notice p {
  color: #516879;
  line-height: 1.7;
}
.noedic-note {
   color: #4BAAD1;
}
/* 横スクロールエリア */
.illum-scroll {
  overflow: hidden;
  position: relative;
  margin-top: 50px;
}

.illum-track {
  display: flex;
  gap: 28px;
  animation: scroll-horizontal 60s linear infinite; /* ゆっくり動く */
}

.illum-item {
  flex: 0 0 320px;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(120,150,180,0.15);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(8px);
}
.illum-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.illum-item h3 {
  margin: 12px 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f4055;
}
.illum-item p {
  font-size: 0.9rem;
  color: #4c6a7a;
  padding: 0 12px 16px;
}
.illum-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(100,120,150,0.25);
}

/* 自動スクロールのアニメーション */
@keyframes scroll-horizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 画像を繰り返す場合は2倍並べる */
}
.illumination-section {
  background: linear-gradient(180deg, #0c2b45 0%, #13496b 50%, #1c6fa3 100%);
}


/* =========================
   🎅 Event Section
========================= */

/* =========================
   🎄 Event Section（修正版）
========================= */
/* =========================
   🎄 EVENT：オーナメント（修正版）
========================= */
.events {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 120px;
  flex-wrap: wrap;
  margin-top: 80px;
}

/* オーナメント全体（包む） */
.event-wrap {
  position: relative;
  width: 220px;
  text-align: center;
}

/* 🎄 オーナメント丸 */
.event-card {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 30px auto 0; /* ← 紐のスペース確保 */
  background: radial-gradient(circle at 40% 30%, #ffffff 0%, #f1f6fa 80%);
  border-radius: 50%;
  border: 3px solid rgba(200, 210, 220, 0.8);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.6),
    inset 0 -3px 6px rgba(0,0,0,0.08),
    0 10px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 3;
}

/* 画像を丸にフィット */
.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 🪙 金具（上のパーツ） */
.event-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 20px;
  background: linear-gradient(180deg, #e5e7ea, #a8abad);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.6),
    0 2px 4px rgba(0,0,0,0.15);
  z-index: 10;
}

/* 🪢 紐 */
.event-wrap::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, rgba(180,180,180,0.9), rgba(220,220,220,0.5));
  z-index: 9;
}


/* =============================
   詳しく見るボタン（全カテゴリー共通）
============================= */
.btn-more {
  display: inline-block;
  margin-top: 2rem;
  padding: 14px 36px;
  border-radius: 32px;
  background: linear-gradient(90deg, #FFF4E3, #FFDFA7);
  color: #02497A;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255, 223, 167, 0.4);
  transition: all 0.3s ease;
}
.btn-more:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 223, 167, 0.5);
}


/* Hotel 背景トーン */
[data-theme="mint"] {
  background: linear-gradient(to bottom, #f9fcfb 0%, #e5f3ef 100%);
}

/* やわらかい灯りのゆらぎ */
.flicker {
  animation: floaty 6s ease-in-out infinite;
}
.flicker.delay1 {
  animation-delay: 1.5s;
}
.flicker.delay2 {
  animation-delay: 3s;
}

/* ゆらゆら浮くアニメーション */
@keyframes floaty {
  0%, 100% { transform: translateY(0); filter: brightness(1); }
  50% { transform: translateY(-8px); filter: brightness(1.08); }
}

/* =========================
   🏠 Hotel Section Card Design
   ========================= */
[data-theme="hotel"] {
  background: linear-gradient(180deg, #e8f8f2 0%, #f4fffa 100%);
  position: relative;
  overflow: hidden;
}
/* =====================
   Hotel カード配置
===================== */
/* 家カードグリッド */
.hotels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  justify-items: center;
  position: relative;
margin-top: 120px;
}

/* パララックスゆらぎ */
.hotels .house-card {
  position: relative;
  animation: parallaxFloat 12s ease-in-out infinite alternate;
}
@keyframes parallaxFloat {
  0%   { transform: translateY(0px) scale(1); }
  50%  { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}
.house-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   家（シンプルデザイン）
===================== */
.simple-house {
  position: relative;
  width: 240px;
  height: 200px;
  margin: 0 auto 20px;
  overflow: visible;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.simple-house:hover {
  transform: translateY(-6px);
}

/* 壁部分 */
.simple-house .body {
  position: relative;
  width: 100%;
  height: 180px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.simple-house .body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 12px 12px;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.simple-house:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* =====================
   屋根＋雪
===================== */
.simple-house .roof {
  position: absolute;
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 130px solid transparent;
  border-right: 130px solid transparent;
  border-bottom: 70px solid #4BAAD1; /* ベースの屋根色 */
  border-radius: 6px;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}


/* =====================
   テキスト・ボタン
===================== */
.house-card h3 {
  color: #204b41;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.house-card p {
  color: #3c6256;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 統一ボタン */
[data-theme="hotel"] .btn {
  background: linear-gradient(90deg, #FFDFA7, #FFF4E3);
  color: #023C6B;
  border-radius: 30px;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}
[data-theme="hotel"] .btn:hover { background: #fff; }


/* =====================
   restaurant セクション
===================== */

/* =========================
   🍪 Recipe Section（修正版）
========================= */
[data-theme="recipe"] {
  background: linear-gradient(180deg, #faf7f3 0%, #f4ece3 100%);
  text-align: center;
  padding: 100px 20px 120px;
  color: #3a2a1a;
}

[data-theme="recipe"] h2 {
  color: #b37a3d; /* 焼きクッキーのような色 */
  font-size: 2rem;
  font-family: "Quicksand", sans-serif;
  margin-bottom: 12px;
}

[data-theme="recipe"] p {
  font-size: 1rem;
  margin-bottom: 60px;
}

/* 🍪 レシピカードの全体バランス調整 */
.recipes {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 120px; /* ← 他セクションと揃える */
  flex-wrap: wrap;
  max-width: 900px; /* ← 横幅制限を追加 */
  margin: 0 auto;
}

/* 🍪 クッキー型カード */
.recipe-card {
  width: 200px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.recipe-card:hover {
  transform: translateY(-6px);
}

/* 🍪 クッキー画像 */
.recipe-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;

  /* 焼き色ふち（クッキー感） */
  border: 6px solid #d6a25d; /* ← 明るい焼きベージュ */
  box-shadow:
    inset 0 3px 6px rgba(255,255,255,0.6),
    0 8px 16px rgba(0,0,0,0.08);
  background: radial-gradient(circle at 40% 30%, #f7d8a5 0%, #d6a25d 90%);
}

/* タイトル・説明文 */
.recipe-card h3 {
  margin: 14px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #5a3e1d;
}

.recipe-card p {
  font-size: 0.9rem;
  color: #6a5035;
  line-height: 1.6;
}
/* ギザギザクッキーのフチ */
.cookie-edge {
  position: absolute;
  inset: 0;
  clip-path: 
    polygon(
      50% 0%, 60% 5%, 70% 0%, 80% 5%, 90% 0%, 100% 10%,
      95% 20%, 100% 30%, 95% 40%, 100% 50%,
      95% 60%, 100% 70%, 95% 80%, 100% 90%,
      90% 100%, 80% 95%, 70% 100%, 60% 95%,
      50% 100%, 40% 95%, 30% 100%, 20% 95%,
      10% 100%, 0% 90%, 5% 80%, 0% 70%,
      5% 60%, 0% 50%, 5% 40%, 0% 30%,
      5% 20%, 0% 10%, 10% 0%, 20% 5%, 30% 0%, 40% 5%
    );
  background: radial-gradient(circle at 50% 40%, #eac58a 0%, #d3a165 65%, #b07a2d 100%);
  z-index: 1;
}
.recipe-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

/* =====================
   Gift セクション グリッド（横並び）
===================== */
.gifts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: start;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* カード全体 */
.gift-card {
  width: 100%;
  max-width: 280px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gift-card:hover {
  transform: translateY(-6px);
}

/* ギフトボックス部分 */
.gift-box {
  position: relative;
  display: block;
  width: 100%;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gift-box:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}


/* ===============================
   🎀 リボンを画像の前面に固定表示
=============================== */

.ribbon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 30px;
  background: linear-gradient(90deg, #e63b3b 0%, #ff6f6f 100%);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  z-index: 3; /* ← 最前面 */
}

/* 🎀 結び目（中央） */
.ribbon::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 28px;
  background: #e63b3b;
  border-radius: 4px;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* 🎀 羽根部分 */
.ribbon::after {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background: radial-gradient(circle at 50% 40%, #ff6f6f, #e63b3b);
  border-radius: 50% 50% 0 0;
  z-index: 2;
  opacity: 0.9;
}

.gift-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1; /* ← リボンより下に行かない */
}

/* =========================
   📚 Book Section
   ========================= */

.t-books {
  padding: 60px 20px;
  background: #f8fafc; /* 北欧っぽい淡いブルーグレー */
  text-align: center;
}

.section-title {
  font-size: 28px;
  margin-bottom: 40px;
}

/* 本一覧 */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 120px;
  max-width: 1000px;
  margin: auto;
}

/* カード */
.book-item {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.book-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* 表紙画像（縦長でも横長でも OK） */
.book-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;   /* ★比率を崩さない */
  background: #f3f4f6;   /* 余白が気にならない北欧グレー */
}

/* 本タイトル */
.book-title {
  font-size: 16px;
  margin-top: 12px;
  color: #444;
}


/* =========================
   🎨 Art Section（ふにゃんと丸）
========================= */
.arts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 20px;
  justify-items: center;  /* 中央揃えOK */
}

/* カード：幅を固定しない！ */
.art-card {
  width: 100%;                 /* ★ グリッド幅に任せる */
  max-width: 260px;            /* ★ これで綺麗に揃う */
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.art-card:hover {
  transform: translateY(-6px);
}
.art-shape {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #e8edf1;
  clip-path: polygon(
    47% 2%, 72% 7%, 90% 25%, 95% 50%,
    85% 78%, 60% 95%, 35% 95%, 15% 80%,
    5% 50%, 12% 20%
  );
}

.art-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ----------------------------
song 

----------------------------*/

/* 🎵 Songs Section（音の波・リズム風・北欧スタイル） */
[data-theme="songs"] {
  background: linear-gradient(180deg, #f5f7ff 0%, #eef3ff 100%);
  text-align: center;
  padding: 100px 20px 120px;
}

.songs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 60px;
  justify-items: center;
  margin-top: 60px;
}

/* 🎧 音の波・ゆらぎ形カード */
.song-card {
  position: relative;
  width: 240px;
  height: 180px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.song-card:hover {
  transform: translateY(-6px);
}
.song-shape {
  width: 80%;           /* ← ここを好きなサイズにしてOK */
  aspect-ratio: 1 / 1;
  margin: 0 auto;       /* ★ 中央寄せの最重要ポイント */
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(#dfe5e9 0%, #e8edf1 40%, #d9e1e7 100%);
}

/* レコード中央の穴 */
.song-shape::after {
  content: "";
  position: absolute;
  inset: 40%;
  border-radius: 40%;

  opacity: 0.9;
}

/* 画像 */
.song-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* タイトル・説明 */
.song-card h3 {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a445b;
}
.song-card p {
  font-size: 0.85rem;
  color: #4b6a7a;
  opacity: 0.85;
}

/* ------------------------------
   Footer
------------------------------ */
/* =========================
   Footer（中央揃え修正版）
========================= */

footer {
  text-align: center;      /* ← 全体を中央に */
  padding: 60px 20px;
  background: #ffffff;
  margin-top: 80px;
}

footer .to-top {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: #4BAAD1;
  text-decoration: none;
}

/* フッター文章 */
footer p {
  text-align: center;      /* ← 明示的に中央 */
  color: #44616f;
  font-size: 0.95rem;
}

/* フッターナビ */
.footer-nav {
  display: flex;
  justify-content: center; /* ← 中央寄せ */
  align-items: center;
  gap: 24px;
  margin: 20px 0;
}

.footer-nav a {
  color: #44616f;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  transition: 0.3s ease;
}

/* hoverの下線 */
.footer-nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #FFDFA7, #FFF4E3);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.footer-nav a:hover::after {
  width: 60%;
}

/* コピーライト */
footer small {
  display: block;
  text-align: center;       /* ← ここも中央 */
  color: #6b7c85;
  margin-top: 18px;
  font-size: 0.85rem;
}


/* ------------------------------
   動き
------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes twinkle {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ------------------------------
   レスポンシブ
------------------------------ */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .main-nav { flex-wrap: wrap; justify-content: center; }
  .hero-inner h1 { font-size: 2.4rem; }
  .hero-inner p { font-size: 1rem; }
}


/* ======================================
   Section Animations
====================================== */

[data-theme="mint"] .card {
  opacity: 0;
  transform: translateX(-40px) scale(0.95);
  transition: all 1.2s ease;
}

[data-theme="mint"] .card.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* 🕯 News（前の白背景に戻す） */
[data-theme="amber"] {
  position: relative;
  background: #ffffff; /* ← 白に戻す */
  animation: none;     /* 光アニメ削除で落ち着いた印象に */
}

/* ✨ About：雪が静かに降る（そのまま） */
[data-theme="about"] {
  position: relative;
  background: linear-gradient(to bottom, #eaf4fb, #ffffff);
  overflow: hidden;
}
[data-theme="about"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.7) 1px, transparent 1px);
  background-size: 200px 200px;
  animation: gentleSnow 25s linear infinite;
  z-index: 0;
}
@keyframes gentleSnow {
  from { background-position: 0 0; }
  to { background-position: 0 800px; }
}
[data-theme="about"] {
  background: url('img/nordic_forest.jpg') center / cover fixed;
  color: #fff;
  position: relative;
}

/* 🎄 Illumination（変更なし） */

/* 🏨 Hotel（前のグリーン背景に戻す＋やわらかい光） */
[data-theme="mint"] {
  background: linear-gradient(180deg, #fff, #d7ede0);
  animation: warmFire 8s ease-in-out infinite;
}
@keyframes warmFire {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.1) hue-rotate(-5deg); }
}
[data-theme="mint"] .card {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.9s ease;
}
[data-theme="mint"] .card.show {
  opacity: 1;
  transform: scale(1);
}


/* 🎁 Gift：キラッと光るリボン */
[data-theme="gift"] {
  position: relative;
  background: linear-gradient(to bottom, #fff, #fff5f9);
  overflow: hidden;
}
[data-theme="gift"]::after {
  content: "";
  position: absolute;
  top: 0; left: -150%;
  width: 80%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.1) 100%);
  transform: skewX(-20deg);
  animation: shineRibbon 7s linear infinite;
}
@keyframes shineRibbon {
  0% { left: -150%; }
  100% { left: 150%; }
}
[data-theme="gift"] .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="gift"] .card:hover {
  transform: rotate3d(1,1,0,8deg) scale(1.05);
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

/* 📚 Books：ページの光の呼吸 */
[data-theme="book"] {
  background: linear-gradient(to bottom, #fefefe, #f8fbff);
  animation: pageGlow 9s ease-in-out infinite;
}
@keyframes pageGlow {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.1) contrast(1.05); }
}
[data-theme="book"] .card {
  transform-origin: left center;
  transform: rotateY(-8deg);
  transition: all 0.6s ease;
}
[data-theme="book"] .card.show {
  transform: rotateY(0deg);
  opacity: 1;
}


/* =========================
   🕯 Candle Section
========================= */
[data-theme="candle"] {
  background: linear-gradient(180deg, #f9fafb 0%, #fffdf8 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="candle"] h2 {
  color: #b8860b;
}


.candles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 80px;
  margin-top: 80px;
}

.candle {
  position: relative;
  width: 30px;
  height: 100px;
  background: linear-gradient(180deg, #fff4e1 0%, #f1d7a2 100%);
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.1);
}

.candle .wax {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff4e3, #f8d98c);
}

.candle .flame {
  position: absolute;
  top: -24px;
  left: 50%;
  width: 14px;
  height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 30%, #fff8b0 0%, #ffbf4a 40%, transparent 70%);
  border-radius: 50%;
  animation: flicker 2s infinite ease-in-out alternate;
  filter: drop-shadow(0 0 8px #ffcb66);
}

.candle.delay .flame {
  animation-delay: 1s;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 0.95; }
  50% { transform: translateX(-50%) scale(1.1) rotate(-2deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.9) rotate(2deg); opacity: 0.9; }
}

/* 光の揺らぎ */
[data-theme="candle"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(255, 223, 167, 0.25), transparent 70%);
  animation: warmGlow 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes warmGlow {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.en-sub {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #c2a059;
  margin-top: -10px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
/* =========================
   🕯 Candle Section
========================= */
[data-theme="candle"] {
  background: linear-gradient(180deg, #f9fafb 0%, #fffdf8 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="candle"] h2 {
  color: #b8860b;
  margin-bottom: 6px;
}


.en-sub {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #c2a059;
  margin-top: -10px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.candles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 80px;
  margin-top: 80px;
}

.candle {
  position: relative;
  width: 30px;
  height: 100px;
  background: linear-gradient(180deg, #fff4e1 0%, #f1d7a2 100%);
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.1);
}

.candle .wax {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff4e3, #f8d98c);
}

.candle .flame {
  position: absolute;
  top: -24px;
  left: 50%;
  width: 14px;
  height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 30%, #fff8b0 0%, #ffbf4a 40%, transparent 70%);
  border-radius: 50%;
  animation: flicker 2s infinite ease-in-out alternate;
  filter: drop-shadow(0 0 8px #ffcb66);
}

.candle.delay .flame {
  animation-delay: 1s;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 0.95; }
  50% { transform: translateX(-50%) scale(1.1) rotate(-2deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.9) rotate(2deg); opacity: 0.9; }
}

/* 光の揺らぎ */
[data-theme="candle"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(255, 223, 167, 0.25), transparent 70%);
  animation: warmGlow 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes warmGlow {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* =========================
   📅 Himekuri Calendar Section
========================= */
[data-theme="himekuri"] {
  background: linear-gradient(180deg, #fffdf8 0%, #faf8f2 100%);
  text-align: center;
  padding: 100px 20px 120px;
  color: #4a3b2a;
  position: relative;
  overflow: hidden;
}

[data-theme="himekuri"] h2 {
  font-size: 2rem;
  color: #b88a30;
  margin-bottom: 8px;
}

[data-theme="himekuri"] .sub {
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.date-box {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Noto Sans JP", sans-serif;
}

.today {
  font-size: 1.6rem;
  font-weight: 600;
  color: #b8860b;
  margin-bottom: 16px;
}

.message {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #5a4c3a;
  font-style: italic;
}

.countdown {
  font-size: 1.1rem;
  color: #7a6044;
  font-weight: 600;
}

.countdown span {
  font-size: 1.4rem;
  color: #b8860b;
}

/* やわらかな光の装飾 */
[data-theme="himekuri"]::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,223,167,0.25), transparent 70%);
  animation: gentleGlow 8s ease-in-out infinite alternate;
}
[data-theme="himekuri"]::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,223,167,0.25), transparent 70%);
  animation: gentleGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes gentleGlow {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* =========================
   📢 Calendar Share Buttons
========================= */
.calendar-share {
  margin-top: 30px;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.95;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.share-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: 0.3s;
}

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* ブランドカラー */
.share-btn.x {
  background: #000;
}

.share-btn.threads {
  background: linear-gradient(90deg, #222, #555);
}

.share-btn.ig {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
}
.message {
  font-family: "Playfair Display", serif;
  font-style: italic;
  letter-spacing: 0.03em;
}
[data-theme="songs"] {
  background: linear-gradient(180deg, #f5f7ff 0%, #eef3ff 100%);
}

/* ---------------------------
   Event（スマホ表示）
--------------------------- */
@media (max-width: 768px) {

  .events {
    flex-direction: column;       /* ← 横並び → 縦並び */
    gap: 60px;                    /* カード間の余白 */
    align-items: center;          /* 中央揃え */
  }

  .event-wrap,
  .event-card {
    width: 260px !important;      /* 少し大きめに統一 */
    margin: 0 auto;
  }

  .event-card {
    height: 260px !important;
  }

  /* 紐 & 金具の位置もスマホ用微調整 */
  .event-card::before {
    top: -16px;       /* 金具 */
  }

  .event-card::after {
    top: -65px;       /* 紐 */
    height: 50px;
  }

  .event-info h3 {
    font-size: 1rem;
  }

  .event-info p {
    font-size: 0.85rem;
  }
}

/* ============================
   📱 スマホ固定フッター
============================ */
.mobile-nav {
  display: none; /* PCでは非表示 */
}

@media (max-width: 768px) {

  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.08);
  }

  .mobile-nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #02497A;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .mobile-nav a span {
      margin-top: 5px;
    display: block;
    font-size: 1.2rem;
    margin-bottom: 2px;
  }

  body {
    padding-bottom: 70px; /* 画面下が隠れないよう余白 */
  }
}

/* ============================
   統一見出しカラー（水色）
============================ */
.panel h2 {
  color: #4BAAD1 !important;
}
/* ============================
   統一「詳しく見る」ボタン
============================ */
.btn-more, 
.panel .btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 30px;
  background: linear-gradient(90deg, #FFF4E3, #FFDFA7);
  color: #02497A !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(255, 223, 167, 0.4);
  transition: 0.3s ease;
}

.btn-more:hover, 
.panel .btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 223, 167, 0.5);
}
.nordic-note {
  font-size: 0.9rem;
  margin-top: -10px;
  margin-bottom: 30px;
  font-style: italic;
  letter-spacing: 0.03em;
}
.nordic-illum {
  font-family: "Playfair Display","Noto Sans JP",serif;
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 auto 50px;
  max-width: 780px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.nordic-hotel {
  font-family: "Playfair Display","Noto Sans JP",serif;
  max-width: 760px;
  margin: 0 auto 50px;
  line-height: 1.85;
  font-size: 1rem;
  letter-spacing: 0.03em;
  opacity: 0.95;
}
.nordic-gift {
  font-family: "Playfair Display","Noto Sans JP",serif;
  max-width: 760px;
  margin: 0 auto 50px;
  line-height: 1.9;
  font-size: 1rem;
  opacity: 0.9;
  letter-spacing: 0.03em;
}
.nordic-book {
  font-family: "Playfair Display","Noto Sans JP",serif;
  max-width: 780px;
  margin: 0 auto 50px;
  line-height: 1.9;
  font-size: 1rem;
  opacity: 0.9;
  letter-spacing: 0.03em;
}
.nordic-art {
  font-family: "Playfair Display","Noto Sans JP",serif;
  max-width: 760px;
  margin: 0 auto 48px;
  line-height: 1.9;
  font-size: 1rem;
  opacity: 0.92;
  letter-spacing: 0.03em;
}
.nordic-songs {
  font-family: "Playfair Display","Noto Sans JP",serif;
  max-width: 760px;
  margin: 0 auto 48px;
  line-height: 1.9;
  font-size: 1rem;
  opacity: 0.92;
  letter-spacing: 0.03em;
}
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e6f0f8 70%);
  border-radius: 50%;
  border: 2px solid #ffffffaa;
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
  color: #1a445b;
  font-size: 25px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999999; /* ← 超重要！一番上へ */
}
/* 親メニュー（position指定） */
.menu-item {
  position: relative;
  z-index: 1000;  /* 重要：雪・heroより上に */
}

/* 子メニューの初期状態 */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 12px 0;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9999; /* 重要：最前面へ */
}

/* hoverで表示 */
.menu-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* ← コレが無いと「触れない」になります */
}

/* 子メニュー内の項目 */
.sub-menu a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
}

.sub-menu a:hover {
  background: #f0f4f8;
}
/* ===========================================================
   📱 T Wonder Village スマホ最適化（完全対応）
   =========================================================== */
@media (max-width: 768px) {

  /* -----------------------
     Header
  ----------------------- */
  .header-inner {
    padding: 20px 20px;
    gap: 20px;
  }
  .logo-text {
    font-size: 1.1rem;
  }

  /* -----------------------
     Hero（短く・美しく）
  ----------------------- */
  #hero {
    height: auto !important;
    min-height: 70vh !important;
    padding: 40px 20px 40px !important;
  }

  #hero svg {
    transform: translateX(-50%) scale(1.1) !important;
    bottom: -120px !important;
  }

  .hero-inner {
    top: 45% !important;
    transform: translate(-50%, -50%) !important;
  }

  .hero-inner h1 {
    font-size: 2.2rem !important;
    margin-bottom: 0.8rem;
  }
  .hero-inner p {
    font-size: 0.95rem !important;
    line-height: 1.7;
  }

  .hero-inner .btn {
    padding: 10px 26px !important;
    font-size: 0.9rem;
  }

  /* -----------------------
     全セクション余白最適化
  ----------------------- */
  .panel {
    padding: 70px 20px !important;
  }
  .panel h2 {
    font-size: 1.6rem !important;
    margin-bottom: 14px;
  }
  .panel p {
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
  }

  /* -----------------------
     News
  ----------------------- */
  .notice {
    padding: 22px 20px;
  }

  /* -----------------------
     Illumination 横スクロール
  ----------------------- */
  .illum-item {
    flex: 0 0 260px;
  }
  .illum-item img {
    height: 160px;
  }

  /* -----------------------
     Event（オーナメント）
  ----------------------- */
  .events {
    gap: 50px !important;
  }
  .event-card {
    width: 240px !important;
    height: 240px !important;
  }

  /* -----------------------
     Hotel（家カード）
  ----------------------- */
  .simple-house {
    width: 200px;
  }
  .simple-house .body {
    height: 150px;
  }

  /* -----------------------
     Recipe（クッキー）
  ----------------------- */
  .recipes {
    gap: 60px !important;
  }
  .recipe-card {
    width: 180px;
  }
  .recipe-card img {
    width: 180px;
    height: 180px;
  }

  /* -----------------------
     Gift
  ----------------------- */
  .gift-card {
    max-width: 240px;
  }
  .gift-box {
    height: 200px;
  }

  /* -----------------------
     Book（正方形対応）
  ----------------------- */
  .book-grid {
    gap: 60px;
      width: 60%;
  }
  .book-item img {
    object-fit: contain;
  }

  /* -----------------------
     Art（ふにゃん形）
  ----------------------- */
  .art-card {
    max-width: 220px !important;
  }
  .art-shape {
    aspect-ratio: 1/1;
    width: 100%;
  }

  /* -----------------------
     Songs（レコード）
  ----------------------- */
  .song-shape {
    width: 70% !important;
  }

  /* -----------------------
     Candle
  ----------------------- */
  .candles {
    gap: 40px;
    margin-top: 40px;
  }
  .candle {
    height: 80px;
  }

  /* -----------------------
     Himekuri
  ----------------------- */
  .date-box {
    padding: 28px 16px;
  }

  /* -----------------------
     footer
  ----------------------- */
  footer {
    padding-bottom: 90px; /* モバイルnavと被らない */
  }

  /* 上へ戻るボタン小さく */
  .to-top {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
    bottom: 90px !important; /* mobile-nav と重ならない */
  }
}
@media (max-width: 768px) {

  /* Hero テキストの詰まり解消 */
  .hero-inner {
    top: 52% !important;          /* ← 少し下げて余裕を作る */
    transform: translate(-50%, -50%) !important;
    width: 90%;                   /* ← 横幅を少し広げる */
  }

  .hero-inner h1 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.25 !important;
  }

  .hero-inner p {
    font-size: 0.95rem !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
    line-height: 1.75 !important; /* ← 行間をしっかり確保 */
  }

  .nordic-note {
    margin-top: 14px !important;
    margin-bottom: 18px !important;
    line-height: 1.75 !important;
  }

  .hero-inner .btn {
    margin-top: 16px !important;
  }
}
/* =============================
   📱 PC・スマホ共通：セクションを小さめに統一
   ============================= */
.panel {
  padding: 80px 20px !important;  /* ← 全セクションが均一に小さくなる */
}
@media (max-width: 768px) {
  .panel {
    padding: 60px 18px !important; /* ← かなりスッキリする */
  }
  .panel h2 {
    margin-bottom: 10px !important;
  }
  .panel p {
    margin-bottom: 18px !important;
  }
}
/* Event セクションだけ上下余白を小さめに */
#event.panel {
  padding: 60px 20px !important; /* ← 全体より20pxほど小さく */
}
#event .event-card {
  width: 200px !important;  /* before: 260px くらい */
  height: 200px !important;
}
@media (max-width: 768px) {
  #event.panel {
    padding: 50px 18px !important;
  }

  #event .event-card {
    width: 160px !important;
    height: 160px !important;
  }

  #event .events {
    gap: 40px !important;
  }
}
/* Book セクション：カードサイズを小さく */
#book .book-item {
  max-width: 100px !important;   /* 今より約20%小さく */
  border-radius: 12px;
}

#book .book-item img {
  padding: 8px;
  max-height: 200px !important;
  object-fit: contain;
}
#book .book-grid {
  gap: 50px !important;   /* 120px → 50px に */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
#book.panel {
  padding: 60px 20px !important; /* 120px → 60px に */
}
@media (max-width: 768px) {
  #book .book-item {
    max-width: 100px !important;
  }

  #book .book-grid {
    gap: 36px !important;
  }

  #book.panel {
    padding: 50px 16px !important;
  }
}
/* ============================
   📚 Book セクション縮小（確実に適用）
============================ */

/* 全体の余白をコンパクトに */
.t-books {
  padding: 50px 20px !important;
}

/* グリッドの間隔を小さく */
.t-books .book-grid {
  gap: 40px !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
}

/* 各アイテムのサイズを小さく */
.t-books .book-item {
  max-width: 150px !important; /* ← ここで小ささを調整できる */
  border-radius: 10px !important;
}

/* 画像もコンパクトに */
.t-books .book-item img {
  max-height: 180px !important;
  padding: 6px !important;
  object-fit: contain !important;
}
@media (max-width: 768px) {
  .t-books .book-grid {
    gap: 28px !important;
  }
  .t-books .book-item {
    max-width: 120px !important;
  }
  .t-books .book-item img {
    max-height: 150px !important;
  }
}
/* ============================
   📚 Book：スマホだけ60%縮小
============================ */
@media (max-width: 768px) {
  .t-books {
    transform: scale(0.6);
    transform-origin: top center; /* 縮小位置の基準 */
    margin-top: -40px;            /* 上に詰める補正（調整可能） */
    margin-bottom: -60px;         /* 下の余白を減らす補正 */
  }

/* 🌿 デフォルト：スマホでは非表示 */
.main-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 70px;
  right: 0;
  width: 80%;
  padding: 20px 0;
  border-radius: 0 0 0 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 999;
}

/* 🌿 ハンバーガーで開いたとき */
.main-nav.show {
  display: flex;
}

/* 🌿 ハンバーガー三本線のアニメ */
.hamburger {
  cursor: pointer;
  width: 32px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  height: 3px;
  width: 100%;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
}
/* ============================
   📱 ハンバーガーメニュー表示（最優先）
============================ */
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
    position: fixed;
    top: 60px;
    right: 0;
    width: 80%;
    height: auto;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 0 0 0 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 2000;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav.show {
    display: flex !important;  /* ←これが絶対に必要 */
  }
    .main-nav.show {
  display: flex !important;
}

}
/* ==============================
   📱 ハンバーガーメニュー最優先ルール
   ============================== */
@media (max-width: 768px) {

  /* 初期状態：非表示 */
  .main-nav {
    display: none !important;
    position: fixed;
    top: 60px;
    right: 0;
    width: 80%;
    background: rgba(0, 40, 80, 0.95);
    padding: 24px 20px;
    border-radius: 0 0 0 12px;
    z-index: 9999;     /* ← 最前面 */
    flex-direction: column;
    gap: 18px;
  }

  /* ハンバーガーで開いた時だけ表示 */
  .main-nav.show {
    display: flex !important;
  }

  /* メニューの文字色を白に統一 */
  .main-nav a {
    color: #fff !important;
    font-size: 1.1rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
}
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    z-index: 9999;
    font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  }

  .bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: #1a6fb0;
    text-decoration: none;
  }

  .bottom-nav .nav-item:hover {
    opacity: 0.6;
  }

  /* PCでは非表示 */
  @media (min-width: 769px) {
    .bottom-nav {
      display: none;
    }
  }
/* スマホのみ表示 */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: block;
  }

  .menu-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FFF4E3, #FFDFA7);
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }

  .menu-sheet {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  }

  .menu-sheet a {
    color: #02497A;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
  }

  .menu-sheet.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
  }

  /* 上のハンバーガーは消す */
  .hamburger {
    display: none;
  }
}
/* 下固定のぶん、本文が隠れないように */
body { padding-bottom: 84px; }

.bottom-dock{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;

  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 10px 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* アイテム */
.dock-item{
  display: grid;
  place-items: center;
  gap: 4px;

  text-decoration: none;
  color: #02497A;
  border: none;
  background: transparent;
  font: inherit;
  padding: 8px 6px;
  border-radius: 14px;
}

.dock-item .ico{ font-size: 1.15rem; line-height: 1; }
.dock-item .lbl{ font-size: 0.72rem; letter-spacing: 0.02em; }

/* タップしやすく */
.dock-item:active{ transform: translateY(1px); }

/* アクティブ表示 */
.dock-item.is-active{
  background: rgba(2,73,122,0.08);
}

/* More のシート */
.dock-sheet{
  position: fixed;
  left: 50%;
  transform: translateX(-50%) scale(0.98);
  bottom: 96px;
  z-index: 1300;

  width: min(92vw, 420px);
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  padding: 16px 16px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.dock-sheet a{
  text-decoration: none;
  color: #02497A;
  font-weight: 600;
  text-align: center;
  padding: 10px 10px;
  border-radius: 14px;
}

.dock-sheet a:active{ transform: translateY(1px); }
.dock-sheet hr{ border: none; border-top: 1px solid rgba(2,73,122,0.12); margin: 4px 0; }

.dock-sheet.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

/* PCでは出さない（必要なら調整） */
@media (min-width: 769px){
  .bottom-dock, .dock-sheet{ display:none; }
  body{ padding-bottom: 0; }
}
