/* ==========================================================================
   TOKYO DISNEY RESORT 攻略ガイド - 公式忠実再現スタイルシート
   ========================================================================== */

:root {
  /* 公式ベースカラー */
  --bg-body: #ffffff;
  --bg-subtle: #f5f7f9;
  --bg-card: #ffffff;
  --border-light: #e3e7ec;
  --border-mid: #cdd5df;

  /* テキストカラー */
  --text-main: #22252a;
  --text-sub: #5c6570;
  --text-muted: #848e9a;

  /* 公式ブランドカラー */
  --tdr-navy: #0b4c8c;
  --tdr-link: #0073a8;
  --tdr-tdl: #c8105b;       /* ランド公式マゼンタピンク */
  --tdr-tdl-soft: #fdf2f6;
  --tdr-tds: #0076a8;       /* シー公式オーシャンブルー */
  --tdr-tds-soft: #f0f8fc;
  --tdr-gold: #c4952b;
  --tdr-dpa: #5c2d91;       /* DPAバッジ */
  --tdr-pp: #0f766e;        /* プライオリティパス */
  --tdr-heart: #e03e7d;

  /* 現在選択中パークのテーマ色（body[data-park]で自動切替） */
  --park-accent: var(--tdr-tdl);
  --park-accent-soft: var(--tdr-tdl-soft);

  /* 15分待ち時間ヒートマップ配色 */
  --wait-1-bg: #e0f2fe; --wait-1-fg: #0369a1; /* 〜15分 */
  --wait-2-bg: #dcfce7; --wait-2-fg: #15803d; /* 20〜35分 */
  --wait-3-bg: #fef3c7; --wait-3-fg: #b45309; /* 40〜65分 */
  --wait-4-bg: #ffedd5; --wait-4-fg: #c2410c; /* 70〜95分 */
  --wait-5-bg: #fee2e2; --wait-5-fg: #b91c1c; /* 100分〜 */
  --wait-off-bg: #f1f5f9; --wait-off-fg: #64748b;

  /* レイアウト・影 */
  --max-w: 1080px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-modal: 0 20px 50px rgba(15, 23, 42, 0.25);
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

body[data-park="tds"] {
  --park-accent: var(--tdr-tds);
  --park-accent-soft: var(--tdr-tds-soft);
}

/* リセット＆基本 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--tdr-link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ==========================================================================
   ヘッダー（最上段 ＋ 赤枠メインナビ ＋ 青枠サブナビ）
   ========================================================================== */
.tdr-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tdr-topbar {
  border-bottom: 1px solid #eef0f3;
  background: #fff;
}
.tdr-topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.tdr-lang-btn {
  border: 1px solid var(--border-mid);
  background: #fff;
  color: var(--text-sub);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.tdr-lang-btn:hover { background: var(--bg-subtle); }

/* 公式風ロゴ */
.tdr-logo {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: var(--tdr-navy);
  text-decoration: none !important;
  user-select: none;
}
.tdr-logo-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tdr-navy);
}
.tdr-logo-script {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  color: var(--tdr-navy);
}
.tdr-logo-badge {
  font-size: 9px;
  font-weight: 700;
  background: var(--park-accent);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 3px;
  transform: translateY(-2px);
}

.tdr-topbar-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.tdr-icon-action {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 2px 4px;
  color: var(--text-sub);
  font-size: 9px;
  font-weight: 600;
}
.tdr-icon-action .ico-svg { width: 20px; height: 20px; }
.tdr-fav-action { color: var(--tdr-heart); }
.tdr-fav-count {
  position: absolute;
  top: -2px;
  right: 0;
  background: var(--tdr-heart);
  color: #fff;
  font-style: normal;
  font-size: 9px;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  border-radius: var(--radius-pill);
  padding: 0 3px;
}

/* 赤枠：メインナビゲーション */
.tdr-nav-red {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.tdr-nav-red-list {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.nav-red-btn {
  width: 100%;
  border: none;
  border-right: 1px solid #f0f2f5;
  background: #fff;
  padding: 7px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  color: var(--text-main);
  transition: background 0.15s ease;
}
.tdr-nav-red-list li:last-child .nav-red-btn { border-right: none; }
.nav-red-btn:hover { background: #f8fafc; }
.nav-red-btn .nav-ico { width: 26px; height: 26px; display: block; }
.nav-red-btn .nav-ico svg { width: 100%; height: 100%; }
.nav-red-btn .nav-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}
.nav-red-btn.is-active {
  background: #f5f9fc;
  color: var(--tdr-navy);
}
.nav-red-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--park-accent);
}

/* 青枠：サブナビゲーション */
.tdr-nav-blue {
  background: #f9fafb;
  border-bottom: 1px solid #dce3ea;
}
.tdr-nav-blue-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.tdr-nav-blue-list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tdr-nav-blue-list::-webkit-scrollbar { display: none; }
.tdr-nav-blue-list li {
  flex: 1 0 20%;
  min-width: 78px;
}
.nav-blue-btn {
  width: 100%;
  border: none;
  border-right: 1px solid #ebeff3;
  background: transparent;
  padding: 7px 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: var(--text-sub);
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-blue-btn:hover { background: #eff4f8; color: var(--text-main); }
.nav-blue-btn .blue-ico {
  font-size: 17px;
  line-height: 1;
}
.nav-blue-btn .blue-label {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-blue-btn.is-active {
  background: #fff;
  color: var(--tdr-link);
}
.nav-blue-btn.is-active::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 2.5px;
  background: var(--tdr-link);
  border-radius: 2px;
}
.tdr-nav-blue-arrow {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, rgba(249,250,251,0) 0%, #f9fafb 60%);
  color: var(--tdr-link);
  font-size: 18px;
  font-weight: 700;
  pointer-events: none;
}

/* ==========================================================================
   メインレイアウト・公式風ページ見出し・ランド/シー切替・ミッキー区切り線
   ========================================================================== */
.tdr-main {
  min-height: 70vh;
  padding-bottom: 56px;
}
.tdr-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* 公式パンくず＆中央タイトル */
.tdr-page-head {
  padding: 16px 16px 12px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.tdr-breadcrumb {
  font-size: 12px;
  color: var(--tdr-link);
  font-weight: 500;
  margin-bottom: 6px;
}
.tdr-title-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-bottom: 14px;
}
.tdr-page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  color: var(--tdr-link);
  letter-spacing: 0.04em;
  text-align: center;
}
.tdr-title-heart {
  position: absolute;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: #fff;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s ease;
}
.tdr-title-heart.is-fav {
  border-color: var(--tdr-heart);
  color: var(--tdr-heart);
  background: #fff0f6;
}

/* 公式忠実再現：東京ディズニーランド / 東京ディズニーシー 切り替えピル */
.tdr-park-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 560px;
  margin: 0 auto 14px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  background: #fff;
}
.park-switch-btn {
  border: none;
  background: #fff;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.park-switch-btn[data-park-btn="tdl"].is-active {
  background: var(--tdr-tdl);
  color: #fff;
}
.park-switch-btn[data-park-btn="tds"].is-active {
  background: var(--tdr-tds);
  color: #fff;
}

/* 公式忠実再現：右端にミッキー耳がある区切り線 */
.tdr-mickey-divider {
  position: relative;
  height: 22px;
  border-bottom: 1.5px solid #90a4b7;
  margin-bottom: 20px;
}
.tdr-mickey-divider::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -1px;
  width: 36px;
  height: 20px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Ccircle cx='12' cy='9' r='5.5' fill='none' stroke='%235b7a99' stroke-width='1.5'/%3E%3Ccircle cx='28' cy='9' r='5.5' fill='none' stroke='%235b7a99' stroke-width='1.5'/%3E%3Cpath d='M11 23a9 9 0 0 1 18 0' fill='%23ffffff' stroke='%235b7a99' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center bottom / contain;
}

/* セクション見出し */
.tdr-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 14px;
}
.tdr-sec-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tdr-sec-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--park-accent);
  display: inline-block;
}
.tdr-sec-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--tdr-link);
  background: none;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   HOME カルーセル ＆ ステータスバー ＆ 横スクロールカード
   ========================================================================== */
.tdr-hero {
  position: relative;
  overflow: hidden;
  background: #102a43;
}
.tdr-hero-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.tdr-hero-slide {
  min-width: 100%;
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 24px 18px;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.tdr-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 42, 0.15) 0%, rgba(10, 22, 42, 0.78) 100%);
}
.tdr-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.tdr-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--park-accent);
  margin-bottom: 8px;
}
.tdr-hero-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
}
.tdr-hero-period {
  margin: 0;
  font-size: 12px;
  opacity: 0.92;
}
.tdr-hero-dots {
  position: absolute;
  bottom: 10px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.tdr-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}
.tdr-hero-dot.is-active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* 本日のステータスカード（公式「ようこそ、東京ディズニーランドへ。」風） */
.tdr-today-banner {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 16px;
}
.tdr-today-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.tdr-stat-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
}
.tdr-stat-label {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.tdr-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--tdr-navy);
}
.tdr-stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 横スクロールイベントカード */
.tdr-hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.tdr-event-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.tdr-event-card:hover { transform: translateY(-2px); }
.tdr-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #dfe7ef;
  overflow: hidden;
}
.tdr-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tdr-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.tdr-event-body { padding: 12px; }
.tdr-park-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.pill-tdl { background: var(--tdr-tdl-soft); color: var(--tdr-tdl); }
.pill-tds { background: var(--tdr-tds-soft); color: var(--tdr-tds); }
.pill-both { background: #eef2ff; color: #3730a3; }

/* ==========================================================================
   公式忠実再現：絞り込みボックス ＆ アトラクション一覧リスト
   ========================================================================== */
.tdr-filter-box {
  background: #f3f6f9;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}
.tdr-filter-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tdr-link);
}
.tdr-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.tdr-select, .tdr-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  color: var(--text-main);
}
.tdr-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
}
.tdr-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-sub);
}
.tdr-count-bar strong { font-size: 18px; color: var(--text-main); }

/* 公式一覧カード（左サムネ＋右情報＋右端矢印 >） */
.tdr-list { display: flex; flex-direction: column; }
.tdr-list-row {
  display: grid;
  grid-template-columns: 108px 1fr 20px;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s ease;
}
.tdr-list-row:hover { background: #f9fbfd; }
.tdr-list-thumb {
  width: 108px;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e5ebf1;
  position: relative;
}
.tdr-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tdr-list-area {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 2px;
}
.tdr-list-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}
.tdr-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}
.tdr-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--border-mid);
  color: var(--text-sub);
  background: #fff;
}
.tdr-tag-dpa {
  border-color: var(--tdr-dpa);
  background: var(--tdr-dpa);
  color: #fff;
}
.tdr-tag-pp {
  border-color: var(--tdr-pp);
  background: var(--tdr-pp);
  color: #fff;
}
.tdr-tag-warn {
  border-color: #d97706;
  background: #fffbeb;
  color: #b45309;
}
.tdr-list-desc {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tdr-wait-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.tdr-wait-badge {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
}
.tdr-list-chevron {
  color: var(--tdr-link);
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

/* ==========================================================================
   過去混雑：縦軸15分待ち時間ヒートマップ表 ＆ エリアジャンプ
   ========================================================================== */
.tdr-area-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 18px;
}
.tdr-jump-chip {
  border: 1px solid var(--border-mid);
  background: #fff;
  color: var(--tdr-link);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.tdr-jump-chip:hover {
  background: var(--park-accent-soft);
  border-color: var(--park-accent);
  color: var(--park-accent);
}

.tdr-table-section {
  margin-bottom: 28px;
  scroll-margin-top: 155px;
}
.tdr-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--park-accent-soft);
  border-left: 4px solid var(--park-accent);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 10px;
}
.tdr-table-heading h3 {
  margin: 0;
  font-size: 15px;
  color: var(--text-main);
}

.tdr-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.tdr-matrix {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.tdr-matrix th,
.tdr-matrix td {
  border-right: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
}
.tdr-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  font-weight: 700;
  vertical-align: bottom;
  min-width: 82px;
  max-width: 112px;
  white-space: normal;
  line-height: 1.25;
}
.tdr-matrix thead th:first-child,
.tdr-matrix tbody th {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: 700;
  min-width: 58px;
  border-right: 2px solid var(--border-mid);
}
.tdr-matrix thead th:first-child { z-index: 4; }

.matrix-attr-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--tdr-link);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.matrix-attr-link:hover { color: var(--park-accent); }

/* 待ち時間ヒートマップセル色 */
.cell-w1 { background: var(--wait-1-bg); color: var(--wait-1-fg); font-weight: 600; }
.cell-w2 { background: var(--wait-2-bg); color: var(--wait-2-fg); font-weight: 600; }
.cell-w3 { background: var(--wait-3-bg); color: var(--wait-3-fg); font-weight: 700; }
.cell-w4 { background: var(--wait-4-bg); color: var(--wait-4-fg); font-weight: 700; }
.cell-w5 { background: var(--wait-5-bg); color: var(--wait-5-fg); font-weight: 700; }
.cell-off { background: var(--wait-off-bg); color: var(--wait-off-fg); font-size: 10px; }

/* ==========================================================================
   カレンダー（過去混雑 / 混雑予想＆舞浜天気）
   ========================================================================== */
.tdr-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.tdr-cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 0;
  color: var(--text-sub);
}
.tdr-cal-dow.is-sun { color: #dc2626; }
.tdr-cal-dow.is-sat { color: #2563eb; }
.tdr-cal-cell {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 6px 4px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.tdr-cal-cell:hover { border-color: var(--park-accent); transform: translateY(-1px); }
.tdr-cal-cell.is-selected {
  border: 2px solid var(--park-accent);
  background: var(--park-accent-soft);
}
.tdr-cal-cell.is-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.cal-day-num { font-size: 13px; font-weight: 700; }
.cal-rank-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}
.cal-weather { font-size: 11px; color: var(--text-sub); text-align: center; line-height: 1.2; }

/* ==========================================================================
   BGS図鑑・人物リンク・全時代年表・Qライン探検・裏技
   ========================================================================== */
.bgs-char-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 0 6px;
  font-weight: 700;
  font-size: 0.95em;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.15s ease;
}
.bgs-char-link:hover { background: #fde68a; }

/* BGS人物カードグリッド */
.bgs-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.bgs-char-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.bgs-char-card:hover { transform: translateY(-2px); border-color: var(--tdr-gold); }
.bgs-portrait {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1e293b;
  overflow: hidden;
  position: relative;
}
.bgs-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* 全時代BGS年表（縦タイムライン） */
.bgs-timeline {
  position: relative;
  padding-left: 26px;
  margin: 16px 0;
}
.bgs-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, var(--tdr-gold), var(--tdr-tdl), var(--tdr-tds));
  border-radius: 2px;
}
.bgs-tl-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.bgs-tl-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--tdr-gold);
}
.bgs-tl-year {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--tdr-navy);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

/* Qライン探検チェックリスト */
.qline-list { display: flex; flex-direction: column; gap: 8px; }
.qline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.qline-item input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--park-accent);
}

/* ==========================================================================
   アトラクション詳細ページ（公式基本情報テーブル＋裏スペック）
   ========================================================================== */
.tdr-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
}
.tdr-spec-table th,
.tdr-spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}
.tdr-spec-table th {
  width: 34%;
  background: var(--bg-subtle);
  color: var(--text-sub);
  font-weight: 600;
}

.tdr-mania-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eef6fb 100%);
  border: 1px solid #cfe3f1;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
}
.tdr-mania-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.tdr-mania-stat {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  border: 1px solid #dbe7f0;
}
.tdr-mania-stat span { display: block; font-size: 11px; color: var(--text-sub); }
.tdr-mania-stat strong { font-size: 16px; color: var(--tdr-navy); }

/* ==========================================================================
   ボタン・共通ユーティリティ
   ========================================================================== */
.tdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.tdr-btn:hover { opacity: 0.9; }
.tdr-btn:active { transform: scale(0.98); }
.tdr-btn-primary { background: var(--park-accent); color: #fff; }
.tdr-btn-blue { background: var(--tdr-link); color: #fff; }
.tdr-btn-outline { background: #fff; color: var(--tdr-link); border-color: var(--tdr-link); }
.tdr-btn-sm { padding: 6px 12px; font-size: 12px; }

.tdr-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

/* ==========================================================================
   中央モーダル（過去待ち時間・人物プロフィール・検索・管理ツール）
   ========================================================================== */
.tdr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
  z-index: 1000;
}
.tdr-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 560px);
  max-height: 86vh;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tdr-modal-lg { width: min(94vw, 760px); }
.tdr-modal[hidden], .tdr-modal-backdrop[hidden] { display: none !important; }

.tdr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: #f8fafc;
}
.tdr-modal-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--tdr-navy);
}
.tdr-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-sub);
}
.tdr-modal-body {
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   フッター ＆ トースト通知
   ========================================================================== */
.tdr-footer {
  background: #f2f4f7;
  border-top: 1px solid var(--border-light);
  padding: 28px 16px 36px;
  font-size: 12px;
  color: var(--text-sub);
}
.tdr-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.tdr-footer-notice {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 11px;
}
.tdr-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.footer-link-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--tdr-link); text-decoration: underline; }
.footer-admin-link { color: var(--text-muted); font-size: 11px; }
.tdr-footer-copy { font-size: 11px; color: var(--text-muted); }

/* ローディング ＆ トースト */
.tdr-loading-box {
  padding: 60px 16px;
  text-align: center;
  color: var(--text-sub);
}
.tdr-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--border-light);
  border-top-color: var(--park-accent);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: tdr-spin 0.8s linear infinite;
}
@keyframes tdr-spin { to { transform: rotate(360deg); } }

.tdr-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1200;
}
.tdr-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   PC表示時のレスポンシブ最適化
   ========================================================================== */
@media (min-width: 768px) {
  .tdr-logo-script { font-size: 28px; }
  .tdr-logo-sub { font-size: 13px; }
  .nav-red-btn .nav-label, .nav-blue-btn .blue-label { font-size: 12px; }
  .tdr-hero-slide { min-height: 340px; padding: 36px 28px; }
  .tdr-hero-title { font-size: 30px; }
  .tdr-list-row { grid-template-columns: 150px 1fr 24px; gap: 18px; }
  .tdr-list-thumb { width: 150px; height: 100px; }
  .tdr-nav-blue-arrow { display: none; }
}
