/* ============================================
   混雑予想カレンダー — Libre Minimal Style
   ============================================ */

/* ページヘッダー */
.crowd-header {
  text-align: center;
  padding: 32px 24px 16px;
  overflow: hidden;
  max-width: 100%;
}
.crowd-header .page-title {
  display: block;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.crowd-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.7;
}
.crowd-description {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 36px;
  padding: 12px 20px;
  border-left: 2px solid var(--border);
  text-align: left;
  letter-spacing: 0.02em;
}

/* パーク切り替え */
.park-switch {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--border);
  padding: 3px;
  max-width: 100%;
}
.park-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  min-height: 44px;
  border: none;
  background: transparent;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  letter-spacing: 0.04em;
}
.park-switch-btn:hover { color: var(--text); }
.park-switch-btn.active {
  color: #fff;
}
.park-switch-btn[data-park="tdl"].active { background: var(--tag-restaurant); }
.park-switch-btn[data-park="tds"].active { background: var(--tag-attraction); }
.park-switch-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: box-shadow 0.3s;
}
.park-switch-dot--tdl { background: var(--tag-restaurant); }
.park-switch-dot--tds { background: var(--tag-attraction); }
.park-switch-btn.active .park-switch-dot { background: rgba(255,255,255,0.6); }

/* 凡例 */
.crowd-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0 24px 36px;
  max-width: 780px;
  margin: 0 auto;
}
.legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.legend-dot {
  display: block;
  width: 100%;
  height: 6px;
  flex-shrink: 0;
  transition: background 0.3s var(--ease-out);
}
.legend-item:first-child .legend-dot { border-radius: 3px 0 0 3px; }
.legend-item:last-child .legend-dot { border-radius: 0 3px 3px 0; }
.legend-item span:last-child {
  font-size: 0.72rem;
  color: var(--text-sub);
  font-weight: 400;
  white-space: nowrap;
}

/* カレンダーナビゲーション */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 24px 28px;
}
.cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}
.cal-nav-btn:hover {
  border-color: var(--text);
}
.cal-nav-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-sub);
}
.cal-month-title {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  min-width: 160px;
  text-align: center;
  letter-spacing: 0.06em;
}

/* カレンダーグリッド */
.cal-grid-wrapper {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 36px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1px;
  background: var(--border);
}
.cal-weekday {
  text-align: center;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: #fff;
  padding: 8px 0;
  background: var(--text);
  letter-spacing: 0.06em;
}
.cal-weekday.sun { color: rgba(255,200,200,0.9); }
.cal-weekday.sat { color: rgba(180,210,255,0.9); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

/* 日付セル */
.cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px 10px;
  cursor: pointer;
  transition: background 0.4s var(--ease-out);
  border: 2px solid transparent;
  min-height: 90px;
  min-width: 0;
  overflow: hidden;
  background: var(--card);
}
.cal-cell:hover {
  background: var(--surface);
  z-index: 2;
}
.cal-cell.selected {
  border-color: var(--accent);
  z-index: 3;
}
.cal-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 4;
}
.cal-cell:focus:not(:focus-visible) {
  outline: none;
}
/* 過去日 */
.cal-cell.past {
  opacity: 0.75;
}
.cal-cell.past:hover {
  opacity: 0.9;
}

/* TODAY */
.cal-cell.today {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--accent);
}
.cal-cell.today .cal-day {
  color: var(--accent);
  font-weight: 700;
}
.cal-cell.today::after {
  content: "TODAY";
  position: absolute;
  top: 2px;
  right: 3px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.42rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 1px 4px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.cal-cell.empty {
  background: var(--surface);
  cursor: default;
  min-height: 90px;
}
.cal-cell.empty:hover {
  background: var(--surface);
}

/* 日付 */
.cal-day {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
}
.cal-cell.sun .cal-day { color: #b05050; }
.cal-cell.sat .cal-day { color: #5080b0; }

/* ランクバッジ */
.cal-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.cal-actual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 16px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 3px;
  margin-top: 1px;
  opacity: 0.85;
}

/* 予測(小) → 実績(通常サイズ) */
.cal-cell.past .cal-rank {
  width: 18px;
  height: 16px;
  font-size: 0.55rem;
  opacity: 0.65;
}
.cal-cell.past .cal-actual {
  width: 34px;
  height: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 1;
}
.cal-cell.past .cal-rank-arrow {
  font-size: 0.5rem;
  color: var(--text-muted);
  margin: 0 1px;
  line-height: 1;
}
.cal-cell.past .cal-rank-actual-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin-top: 2px;
}

.cal-rank-label {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-sub);
  margin-top: 3px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cal-price {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-top: 3px;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 満室セル */
.cal-cell.soldout {
  opacity: 0.5;
}
.cal-cell.soldout:hover {
  opacity: 0.7;
}

/* API料金取得中のローディング表示 */
.cal-cell .cal-price.loading::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--text-muted);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 4px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 選択日の詳細 */
.day-detail {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 28px;
}
.day-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 32px;
  animation: slideUp 0.4s var(--ease);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.day-detail-card h3 {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.detail-row:last-child { border-bottom: none; }

.detail-park-label {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 14px;
  color: #fff;
  min-width: 60px;
  text-align: center;
  letter-spacing: 0.06em;
}
.detail-park-label.tdl { background: var(--tag-restaurant); }
.detail-park-label.tds { background: var(--tag-attraction); }

.detail-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s;
}
.detail-level-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.detail-comment {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 300;
  margin-left: auto;
}

/* 月間サマリー */
.month-summary {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 36px;
}
.month-summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 32px;
}
.month-summary-card h3 {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.summary-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.summary-bar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 72px;
  text-align: right;
  font-weight: 300;
}
.summary-bar-track {
  flex: 1;
  height: 6px;
  background: var(--surface);
  overflow: hidden;
}
.summary-bar-fill {
  height: 100%;
  transition: width 0.8s var(--ease), background 0.3s var(--ease-out);
}
.summary-bar-count {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-sub);
  min-width: 32px;
}

/* おすすめ日 */
.best-days {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.best-days h4 {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.06em;
}
.best-days h4::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}
.best-days-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.best-day-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}
.best-day-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.best-day-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* 待ち時間テーブル */
.wait-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.wait-area-row td {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}
.wait-table tr:not(.wait-area-row) td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.wait-name {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text);
  white-space: normal;
  word-break: break-all;
  padding-right: 12px !important;
  padding-left: 8px !important;
}
.wait-pa {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1px 4px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.wait-bar-cell {
  width: 30%;
  padding-right: 12px !important;
}
.wait-bar-track {
  height: 5px;
  background: var(--surface);
  width: 100%;
}
.wait-bar-fill {
  height: 100%;
  transition: width 0.6s var(--ease);
}
.wait-time {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
  text-align: right;
}

/* ホテルカテゴリ切り替え（1段目） */
.hotel-category-switch {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
  margin-bottom: 12px;
  max-width: 100%;
  background: #f7f5f2;
  border-radius: 10px;
  padding: 4px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hotel-cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  min-height: 40px;
  border: none;
  background: transparent;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.hotel-cat-btn:hover { background: rgba(0,0,0,0.04); }
.hotel-cat-btn.active {
  background: #fff;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.hotel-cat-btn.active .hotel-cat-dot {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}
.hotel-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ホテル切り替え（2段目） */
.hotel-switch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hotel-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hotel-switch-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  min-height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.hotel-switch-btn:hover { border-color: var(--text-sub); }
.hotel-switch-btn.active {
  background: var(--hotel-color, var(--text));
  color: #fff;
  border-color: var(--hotel-color, var(--text));
}
.hotel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hotel-switch-btn.active .hotel-dot {
  background: rgba(255,255,255,0.5) !important;
}

/* ホテル料金比較 */
.hotel-compare {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hotel-compare-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.hotel-compare-row:last-child { border-bottom: none; }
.hotel-compare-row.active { background: var(--accent-soft); padding: 10px 12px; }
.hotel-compare-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hotel-compare-name {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.hotel-compare-price {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}
.hotel-compare-label {
  font-size: 0.68rem;
  font-weight: 400;
  min-width: 50px;
  text-align: right;
}
.hotel-compare-book {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.hotel-compare-row { text-decoration: none; }
.hotel-aff-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.hotel-aff-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}
.hotel-book-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 8px 16px;
  min-height: 36px;
  text-decoration: none;
  margin-left: auto;
  transition: background 0.3s var(--ease-out);
}
.hotel-book-btn:hover { background: var(--text); color: #fff; }

/* 前後月セル */
.cal-cell.adjacent {
  background: var(--surface);
  cursor: pointer;
  opacity: 0.5;
}
.cal-cell.adjacent:hover { opacity: 0.8; }
.cal-cell.adjacent .cal-day { color: var(--text-muted); }

/* ホテル統計 */
.hotel-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hotel-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
}
.hotel-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  color: var(--text);
}

/* 比較表（ホテル未選択時） */
.compare-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.compare-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.compare-date-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}
.compare-table {
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 0.7fr;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
  font-size: 0.82rem;
}
.compare-row:last-child { border-bottom: none; }
.compare-row[data-hotel-id]:hover {
  background: var(--surface);
}
.compare-header {
  background: var(--surface);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: default !important;
}
.compare-cell {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 500;
  white-space: nowrap;
}
.compare-hotel-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  color: var(--text);
}
.compare-price-main {
  font-size: 0.92rem;
  font-weight: 700;
}
.compare-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: #fff;
  background: var(--green, #6a9e82);
  padding: 2px 6px;
  line-height: 1;
}
.compare-action {
  text-align: right;
}
.compare-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: #bf0000;
  text-decoration: none;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 5px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(191,0,0,0.15);
  letter-spacing: 0.02em;
}
.compare-book-btn:hover {
  background: #9a0000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(191,0,0,0.25);
  text-decoration: none;
}
/* 緊急性バッジ */
.compare-urgency-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.3;
  white-space: nowrap;
  margin-left: 6px;
}
.compare-urgency-badge--soldout {
  background: #a85a5a;
  color: #fff;
}
.compare-urgency-badge--scarce {
  background: #c47a5a;
  color: #fff;
  animation: urgency-pulse 2s ease-in-out infinite;
}
.compare-urgency-badge--cheap {
  background: #6a9e82;
  color: #fff;
}
@keyframes urgency-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
/* ホテルガイド関連リンク */
.hotel-guide-links {
  max-width: 640px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hotel-guide-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card, #fff);
  border: 1px solid var(--border-light, #e8e8e8);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.hotel-guide-link:hover {
  background: var(--surface, #f5f5f5);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.hotel-guide-link-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft, #eef2f5);
  border-radius: 8px;
}
.hotel-guide-link-body {
  flex: 1;
  min-width: 0;
}
.hotel-guide-link-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.hotel-guide-link-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.hotel-guide-link-arrow {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
/* 比較表内の一休・JTBボタン */
.compare-alt-btns {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.compare-alt-btn {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 8px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light, #e0e0e0);
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.compare-alt-btn:hover {
  background: var(--surface, #f5f5f5);
  color: var(--text);
}
.compare-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-weight: 300;
}

/* カテゴリ最安値表示 */
.cal-price-min {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 400;
}

/* 比較に戻るボタン */
.hotel-deselect-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-sub);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  transition: all 0.3s var(--ease-out);
}
.hotel-deselect-btn:hover {
  border-color: var(--text-sub);
  color: var(--text);
}

/* 注意書き */
/* ── 今週のハイライト ── */
.week-highlight {
  margin: 16px auto 20px;
  max-width: min(600px, 100%);
  overflow: hidden;
}
.wh-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 8px;
  text-align: center;
}
.wh-days {
  display: flex;
  gap: 4px;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wh-days::-webkit-scrollbar { display: none; }
.wh-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 2px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border-light);
}
.wh-day.wh-today {
  border-color: var(--accent);
  background: var(--accent-soft, rgba(91,132,177,0.06));
}
.wh-dow {
  font-size: 0.6rem;
  color: var(--text-muted);
}
.wh-label {
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  color: var(--text-sub);
}
.wh-badge {
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  width: 20px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  line-height: 1;
}

/* 予測精度 行 */
.accuracy-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.accuracy-row {
  display: grid;
  grid-template-columns: 5.5em 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
}
.accuracy-date {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
}
.accuracy-pred {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.accuracy-badge {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.accuracy-badge--hit {
  color: #4a8c5c;
  background: rgba(74,140,92,0.1);
}
.accuracy-badge--miss {
  color: #c4785c;
  background: rgba(196,120,92,0.1);
}
@media (max-width: 480px) {
  .accuracy-row {
    grid-template-columns: 1fr 1fr auto;
    gap: 4px;
    padding: 8px 8px;
  }
  .accuracy-date { font-size: 0.78rem; }
  .accuracy-pred { font-size: 0.75rem; }
  .accuracy-badge { font-size: 0.72rem; padding: 2px 6px; }
}
@media (max-width: 360px) {
  .accuracy-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .accuracy-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.crowd-note {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 64px;
}
.crowd-note p {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 768px) {
  .crowd-header { padding: 40px 0 20px; overflow: hidden; max-width: 100%; box-sizing: border-box; }
  .crowd-header .page-title { font-size: 1.2rem; word-break: break-all; overflow-wrap: break-word; padding: 0 8px; }
  .crowd-subtitle { font-size: 0.78rem; padding: 0 8px; }
  .crowd-description { font-size: 0.68rem; padding: 10px 16px; max-width: 100%; }

  .park-switch-btn { padding: 8px 16px; font-size: 0.78rem; }

  /* ホテルカテゴリ: 横スクロール */
  .hotel-category-switch {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 3px;
    border-radius: 8px;
    max-width: 100%;
    justify-content: flex-start;
  }
  .hotel-category-switch::-webkit-scrollbar { display: none; }
  .hotel-cat-btn { padding: 8px 14px; font-size: 0.78rem; flex: 0 0 auto; min-height: 36px; border-radius: 6px; }

  /* ホテル選択ボタン: 折り返し対応 */
  .hotel-switch { padding: 0; max-width: 100%; }
  .hotel-btns {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding-bottom: 4px;
  }
  .hotel-switch-btn { white-space: nowrap; }

  /* 凡例 */
  .crowd-legend { padding: 0 8px 24px; overflow: hidden; max-width: 100%; }
  .legend-item span:last-child { font-size: 0.6rem; }

  .cal-month-title { font-size: 1.1rem; min-width: 120px; width: auto; text-align: center; }
  .cal-nav-btn { width: 44px; height: 44px; }

  .cal-grid-wrapper { padding: 0 2px 24px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .cal-cell { min-height: 64px; padding: 4px 1px 6px; }
  .cal-cell.empty { min-height: 64px; }
  .cal-day { font-size: 0.7rem; }
  .cal-rank { width: 24px; height: 18px; font-size: 0.72rem; }
  .cal-rank-label { font-size: 0.55rem; }
  .cal-price { font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

  .day-detail { padding: 0 12px 20px; }
  .day-detail-card { padding: 20px; }
  .detail-row { flex-wrap: wrap; gap: 8px; }
  .detail-comment { margin-left: 0; }

  .month-summary { padding: 0 12px 24px; }
  .month-summary-card { padding: 16px; }
  .wait-name { font-size: 0.7rem; white-space: normal; word-break: break-all; }
  .wait-time { font-size: 0.68rem; }
  .wait-bar-cell { width: 20%; }
  .wait-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ホテル比較行のモバイル対応 */
  .hotel-compare-row { flex-wrap: wrap; gap: 6px; }
  .hotel-compare-name { flex-basis: 100%; }
  .hotel-compare-label { min-width: auto; }

  .crowd-note { padding: 0 12px 40px; }
  .wh-days { gap: 2px; overflow: hidden; }
  .wh-day { padding: 6px 1px; min-width: 0; }
  .wh-badge { width: 18px; height: 14px; font-size: 0.55rem; }

  .compare-section { padding: 0 12px 32px; }
  .compare-row {
    grid-template-columns: 1.5fr 1fr auto;
    padding: 10px 12px;
    font-size: 0.72rem;
  }
  .compare-hotel-name { font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; }
  .compare-cell { white-space: normal; }
  .compare-book-btn { padding: 6px 10px; font-size: 0.68rem; min-height: 44px; }
  .compare-urgency-badge { font-size: 0.52rem; padding: 1px 4px; margin-left: 4px; }
  .hotel-guide-links { margin: 0 12px 24px; }
  .hotel-guide-link { padding: 12px 14px; }
  .compare-alt-btns { gap: 4px; }
  .compare-alt-btn { font-size: 0.55rem; padding: 2px 6px; }
}

@media (max-width: 480px) {
  .crowd-header .page-title { font-size: 1.05rem; }
  .cal-cell { min-height: 52px; padding: 3px 0 4px; }
  .cal-cell.empty { min-height: 52px; }
  .cal-day { font-size: 0.68rem; }
  .cal-rank { width: 20px; height: 16px; font-size: 0.68rem; }
  .cal-rank-label { display: none; }
  .cal-price { font-size: 0.72rem; }
  .cal-weekday { font-size: 0.68rem; padding: 6px 0; }
  .cal-cell.today::after { display: none; }
  .crowd-legend { flex-wrap: wrap; gap: 4px 8px; font-size: 0.68rem; }
  .park-switch-btn { padding: 7px 14px; font-size: 0.72rem; min-height: 44px; }
  .hotel-cat-btn { padding: 6px 10px; font-size: 0.7rem; min-height: 36px; }
  .hotel-switch-btn { font-size: 0.65rem; padding: 6px 8px; min-height: 36px; }
  .cal-nav { gap: 16px; }
  .compare-row { grid-template-columns: 1.2fr 1fr auto; padding: 8px 10px; }
  .compare-book-btn { padding: 5px 8px; font-size: 0.62rem; }
}

/* ===== Hotel Price Hero Banner (ファーストビュー最安値) ===== */
.hotel-price-hero {
  margin: 20px 0 16px;
  background: linear-gradient(135deg, #faf9f7 0%, #fff 60%, #f5f4f2 100%);
  border: 1px solid var(--border-light, #e8e6e3);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hotel-price-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #c8a96a, #e0c88a, #c8a96a);
}
.hotel-price-hero-inner {
  padding: 20px 24px 18px;
  text-align: center;
}
.hotel-price-hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #8a7a5a;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.hotel-price-hero-price {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #8a6a3a;
  line-height: 1.2;
  margin-bottom: 4px;
}
.hotel-price-hero-detail {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 12px;
  line-height: 1.5;
}
.hotel-price-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff !important;
  background: #6b5a3a;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(107,90,58,0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.hotel-price-hero-cta:hover {
  background: #5a4a2e;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107,90,58,0.35);
}

/* Enhanced compare-book-btn */
.compare-book-btn {
  background: #6b5a3a;
  font-weight: 700;
  padding: 8px 16px;
  font-size: 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(107,90,58,0.15);
}
@keyframes cta-subtle-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(191,0,0,0.2); }
  50% { box-shadow: 0 3px 12px rgba(191,0,0,0.35); }
}

/* ===== Trust signals ===== */
.compare-trust-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .hotel-price-hero-inner { padding: 16px 16px 14px; }
  .hotel-price-hero-price { font-size: 1.8rem; }
  .hotel-price-hero-cta { font-size: 0.85rem; padding: 11px 24px; width: 100%; }
  .hotel-price-hero-detail { font-size: 0.72rem; }
}
@media (max-width: 370px) {
  .hotel-price-hero-price { font-size: 1.5rem; }
  .hotel-price-hero-cta { font-size: 0.78rem; padding: 10px 18px; }
}

/* 320px 超小型デバイス対応 */
@media (max-width: 360px) {
  .crowd-header { padding: 28px 0 16px; }
  .crowd-header .page-title { font-size: 0.95rem; padding: 0 4px; }
  .crowd-subtitle { font-size: 0.72rem; }
  .park-switch-btn { padding: 6px 10px; font-size: 0.68rem; gap: 4px; }
  .cal-nav { gap: 10px; padding: 0 8px 20px; }
  .cal-month-title { font-size: 0.95rem; min-width: 100px; }
  .cal-nav-btn { width: 40px; height: 40px; }
  .cal-grid-wrapper { padding: 0 0 20px; }
  .cal-cell { min-height: 44px; padding: 2px 0 3px; }
  .cal-cell.empty { min-height: 44px; }
  .cal-day { font-size: 0.58rem; }
  .cal-rank { width: 18px; height: 14px; font-size: 0.55rem; }
  .cal-price { font-size: 0.65rem; }
  .day-detail { padding: 0 8px 16px; }
  .day-detail-card { padding: 14px 12px; }
  .day-detail-card h3 { font-size: 0.9rem; }
  .detail-park-label { font-size: 0.72rem; padding: 3px 8px; min-width: 44px; }
  .detail-level-badge { padding: 4px 10px; font-size: 0.78rem; }
  .detail-comment { font-size: 0.72rem; }
  .month-summary { padding: 0 8px 20px; }
  .month-summary-card { padding: 12px 10px; }
  .summary-bar-label { min-width: 56px; font-size: 0.62rem; }
  .compare-section { padding: 0 8px 24px; }
  .compare-row { grid-template-columns: 1fr auto; padding: 8px 6px; gap: 4px; }
  .compare-hotel-name { font-size: 0.68rem; gap: 4px; }
  .compare-book-btn { padding: 4px 6px; font-size: 0.58rem; }
  .crowd-note { padding: 0 8px 32px; }
  .hotel-guide-links { margin: 0 8px 20px; }
  .hotel-guide-link { padding: 10px 10px; gap: 8px; }
  .hotel-guide-link-title { font-size: 0.75rem; }
  .hotel-guide-link-desc { font-size: 0.65rem; }
}

/* ============================================
   前泊提案ボックス（混雑レベル7以上）
   ============================================ */
.prebooking-tip {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface, #f5f6f8);
  border: 1px solid #c0cdd8;
  border-left: 3px solid #5a84a4;
}
.prebooking-tip-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.prebooking-tip-body {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin: 0 0 10px;
  line-height: 1.7;
  font-weight: 300;
}
.prebooking-tip-link {
  display: inline-block;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid #5a84a4;
  color: #3a6080;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.prebooking-tip-link:hover {
  background: #5a84a4;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .prebooking-tip { padding: 12px 14px; }
  .prebooking-tip-link { font-size: 0.72rem; padding: 7px 12px; min-height: 40px; display: inline-flex; align-items: center; }
}

/* SEOコンテンツセクション */
.seo-content {
  padding-left: 16px;
  padding-right: 16px;
}
.seo-content h2 {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}
.seo-content h3 {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

