/* ========================================
   卒業旅行のしおり - 共通スタイル
   璃桜 & 幸音の東京ディズニーシー旅
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Cinzel:wght@400;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* カラーパレット */
:root {
  --primary: #0a1628;
  --accent: #f5c842;
  --sub: #4ecdc4;
  --bg: #0d1f3c;
  --card: #1a2f50;
  --text: #e8f4f8;
  --text-dim: #a8c8d8;
  --gold-light: #ffe080;
  --teal-dark: #2a9d8f;
  --star: #fff9c4;
}

/* リセット */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ========== ナビゲーション ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 200, 66, 0.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(245, 200, 66, 0.12);
}

/* ========== コンテナ ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding-top: 70px;
}

/* ========== セクション共通 ========== */
.section {
  padding: 4rem 0;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--sub));
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ========== カード ========== */
.card {
  background: var(--card);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 16px;
  padding: 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(78, 205, 196, 0.1);
  border-color: rgba(78, 205, 196, 0.5);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* ========== バッジ ========== */
.badge {
  display: inline-block;
  background: rgba(245, 200, 66, 0.2);
  color: var(--accent);
  border: 1px solid rgba(245, 200, 66, 0.4);
  border-radius: 20px;
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-teal {
  background: rgba(78, 205, 196, 0.15);
  color: var(--sub);
  border-color: rgba(78, 205, 196, 0.4);
}

.badge-alert {
  background: rgba(255, 100, 100, 0.15);
  color: #ff8080;
  border-color: rgba(255, 100, 100, 0.4);
}

/* ========== ボタン ========== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e8a800);
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 200, 66, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--sub);
  color: var(--sub);
}

.btn-outline:hover {
  background: rgba(78, 205, 196, 0.15);
  transform: translateY(-2px);
}

/* ========== チェックリスト ========== */
.checklist {
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.checklist li:hover {
  background: rgba(78, 205, 196, 0.08);
}

.checklist input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--sub);
  flex-shrink: 0;
}

.checklist label {
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.checklist input[type="checkbox"]:checked + label {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.6;
}

/* ========== フェードインアニメーション ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ========== グリッド ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

/* ========== ページヘッダー（サブページ用） ========== */
.page-header {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.8), transparent);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(78, 205, 196, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, var(--accent), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ========== フッター ========== */
footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(78, 205, 196, 0.15);
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer .footer-names {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

/* ========== スクロールバー ========== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--primary);
}
::-webkit-scrollbar-thumb {
  background: var(--teal-dark);
  border-radius: 3px;
}

/* ========== スピナー ========== */
.spinner {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
}

/* ========== Tip Box ========== */
.tip-box {
  background: rgba(245, 200, 66, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

.tip-box.teal {
  background: rgba(78, 205, 196, 0.08);
  border-left-color: var(--sub);
}

.tip-box.alert {
  background: rgba(255, 100, 80, 0.08);
  border-left-color: #ff6050;
}

/* ========== ハンバーガーメニュー ========== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== レスポンシブ ========== */
@media (max-width: 700px) {
  /* ハンバーガーを表示 */
  .nav-hamburger {
    display: flex;
  }

  /* ナビリンクをドロワーに変換 */
  .nav-links {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    gap: 0.3rem;
    border-bottom: 1px solid rgba(245, 200, 66, 0.2);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: left;
  }

  .nav-logo {
    font-size: 0.85rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .card {
    padding: 1.2rem;
  }

  /* グリッド調整 */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  /* セクションタイトル */
  .section-title {
    font-size: 1.25rem;
  }

  /* カード */
  .card-title {
    font-size: 1rem;
  }

  /* Tip Box */
  .tip-box {
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ========== ページ画像（ヒーロー画像） ========== */
.page-hero-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 2rem;
  display: block;
  border: 1px solid rgba(78, 205, 196, 0.2);
}

/* ========== 待ち時間バッジ ========== */
.wait-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 160, 0, 0.15);
  color: #ffb347;
  border: 1px solid rgba(255, 160, 0, 0.3);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.wait-badge.low  { background: rgba(80,200,80,0.15); color:#80d880; border-color:rgba(80,200,80,0.3); }
.wait-badge.high { background: rgba(255,80,60,0.15); color:#ff8070; border-color:rgba(255,80,60,0.3); }

/* ========== 印刷用スタイル ========== */
@media print {
  * { color-adjust: exact; -webkit-print-color-adjust: exact; }

  nav, .nav-hamburger, #particle-canvas, .waves,
  .map-link-btn, footer { display: none !important; }

  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  main { padding-top: 0 !important; }

  .hero {
    min-height: auto !important;
    padding: 1rem !important;
    background: none !important;
  }

  .hero-bg, .hero-illustration { display: none; }

  .hero-title {
    font-size: 24pt !important;
    -webkit-text-fill-color: black !important;
    color: black !important;
    background: none !important;
  }

  .section { padding: 1rem 0 !important; }
  .section-title { color: black !important; font-size: 14pt !important; }

  .card, .tip-card, .area-card, .route-step, .restaurant-card {
    border: 1pt solid #ccc !important;
    background: white !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .page-header h1 {
    -webkit-text-fill-color: black !important;
    color: black !important;
    background: none !important;
  }

  .countdown-section { display: none; }

  a { color: black !important; text-decoration: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }

  .badge, .badge-teal { border: 1pt solid #999 !important; background: #f5f5f5 !important; color: black !important; }

  @page {
    margin: 1.5cm;
    size: A4;
  }
}
