/* =============================================
   首里城ガイドツアー予約 - 予約フロー共通スタイル
   カラーテーマ: 首里城の朱色・金・琉球石灰岩
   ============================================= */

:root {
  --color-primary: #9B2335;       /* 朱色（メイン） */
  --color-primary-dark: #7A1A2A;  /* 深い朱 */
  --color-gold: #B8943E;          /* 金色 */
  --color-bg: #FFF9F5;            /* 琉球石灰岩ベージュ */
  --color-bg-card: #FFFFFF;
  --color-text: #2D2926;          /* 濃茶 */
  --color-text-light: #6B5E57;
  --color-border: #E4D5C7;        /* 温かみのあるボーダー */
  --color-available: #2E7D32;     /* 空きあり緑 */
  --color-few: #E65100;           /* 残りわずかオレンジ */
  --color-full: #B71C1C;          /* 満席赤 */
  --color-provisional: #165E83;   /* 藍（仮予約） */
  --shadow: 0 2px 8px rgba(45, 41, 38, 0.08);
  --radius: 4px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
}
.site-logo .logo-chip {
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
}
.site-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.site-logo-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #fff;
}

/* ---- Hero ---- */
.hero {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 48px 24px 40px;
}
.hero h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.hero p {
  opacity: 0.9;
  font-size: 0.95rem;
}

/* ---- Tour Hero (index) ---- */
.tour-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 0;
}
.tour-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.tour-hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.tour-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}
/* 先頭スライドだけ通常フローに残し、スライダーの高さの基準にする */
.tour-hero-slide:first-child {
  position: relative;
}
.tour-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
/* 重ねたスライドは、登録画像の縦横比が違っても高さを変えない */
.tour-hero-slide:not(:first-child) .tour-hero-img {
  height: 100%;
  object-fit: cover;
}
.tour-hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.tour-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg-card);
  color: var(--color-primary);
  cursor: pointer;
}
.tour-hero-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.tour-hero-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.tour-hero-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.tour-hero-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tour-hero-dot {
  position: relative;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
/* 見えるドットは 10px。タップ領域は親ボタンの 28x44px で確保する */
.tour-hero-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.2s ease;
}
.tour-hero-dot[aria-current="true"]::before {
  background: var(--color-primary);
}
.tour-hero-dot:hover::before {
  background: var(--color-gold);
}
/* リングはタップ領域（28x44px）ではなく、見えているドットの丸に合わせる */
.tour-hero-dot:focus-visible {
  outline: none;
}
.tour-hero-dot:focus-visible::before {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.tour-hero-toggle {
  margin-left: 8px;
}
.tour-hero-toggle .icon-play,
.tour-hero-toggle.is-paused .icon-pause {
  display: none;
}
.tour-hero-toggle.is-paused .icon-play {
  display: block;
}
.tour-hero-lead {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.8;
}
/* OS のモーション軽減設定時は遷移を無効にする（自動再生の停止は reserve.js 側） */
@media (prefers-reduced-motion: reduce) {
  .tour-hero-slide {
    transition: none;
  }
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 41, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.modal-overlay[hidden] {
  display: none;
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(45, 41, 38, 0.25);
  max-width: 440px;
  width: 100%;
  padding: 28px 24px 24px;
}
.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}
.modal-body {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.modal-actions .btn {
  font-size: 0.85rem;
  padding: 12px 18px;
  white-space: nowrap;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .sep {
  color: var(--color-border);
}

/* ---- Steps indicator ---- */
.steps {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 24px 16px 16px;
  max-width: 640px;
  margin: 0 auto;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.step .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid var(--color-border);
  color: var(--color-text-light);
  background: #fff;
  flex-shrink: 0;
}
.step.active .num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.step.done .num {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #fff;
}
.step-sep {
  color: var(--color-border);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 4px;
  flex-shrink: 0;
}

/* ---- Container ---- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.container-narrow {
  max-width: 560px;
}

/* ---- Card ---- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-gold);
  color: var(--color-primary-dark);
}
.tour-type-card {
  text-align: center;
  padding: 12px;
}
.tour-type-price {
  margin-left: 8px;
}

/* ---- Tour cards (index) ---- */
.tour-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.tour-card {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.25s;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
}
.tour-card:hover {
  border-color: var(--color-primary);
}
.tour-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tour-card .icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.tour-card h3 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}
.tour-card .desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.tour-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.tour-card .price-unit {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-light);
}
.tour-card .info-list {
  flex: 1 0 auto;
}
.tour-card-btn {
  margin-top: auto;
  width: 100%;
}

/* ---- Tour card guide (種別説明・金額の下/ボタン上、見出し中央寄せ) ---- */
.tour-guide {
  text-align: left;
  margin: 4px 0 16px;
}
.tour-guide-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.5;
  margin: 0 0 8px;
  text-align: center;
}
.tour-guide-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tour-guide-list li {
  list-style: none;
  font-size: 0.8rem;
  color: var(--color-text);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.tour-guide-list li::before {
  content: "\30FB";
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

/* ---- Tour type accent (定時=朱色 / 貸切=青) ---- */
.tour-card.type-general { --accent: var(--color-primary); --accent-hover: var(--color-primary-dark); }
.tour-card.type-private { --accent: var(--color-provisional); --accent-hover: #124D6B; }
.tour-card.type-general,
.tour-card.type-private { border-color: var(--accent); }
.tour-card.type-general h3,
.tour-card.type-private h3 { color: var(--accent); }
.tour-card.type-general .price,
.tour-card.type-private .price { color: var(--accent); }
.tour-card.type-general .tour-guide-title,
.tour-card.type-private .tour-guide-title { color: var(--accent); }
.tour-card .btn-accent { background: var(--accent); color: #fff; }
.tour-card .btn-accent:hover { background: var(--accent-hover); }

/* ---- Info list ---- */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  text-align: left;
  font-size: 0.85rem;
}
.info-list li {
  list-style: none;
  padding-left: 20px;
  position: relative;
}
.info-list li::before {
  content: "\25CF";
  color: var(--color-gold);
  position: absolute;
  left: 0;
  font-size: 0.6rem;
  top: 4px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  line-height: 1.4;
  font-family: inherit;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
}
.btn-gold {
  background: var(--color-gold);
  color: #fff;
}
.btn-gold:hover {
  background: #A07D32;
}
.btn-green {
  background: #1a9828;
  color: #fff;
}
.btn-green:hover {
  background: #157a20;
}
.btn-outline {
  background: #5b5b5b;
  color: #fff;
  border: 2px solid #5b5b5b;
}
.btn-outline:hover {
  background: #444;
  color: #fff;
}
.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn.disabled,
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Button Row ---- */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

/* ---- Form ---- */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-group .required {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: var(--radius);
  margin-left: 6px;
  vertical-align: middle;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(155, 35, 53, 0.1);
}
textarea.form-control {
  resize: vertical;
}
.field-note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
.form-check label {
  margin-bottom: 0;
  font-weight: 500;
}
.form-check label a {
  color: var(--color-primary);
}
.agree-card .form-group:last-child {
  margin-bottom: 0;
}
/* 同意欄は各行に「必須」を付けるとラベルが長く段落ちするため、
   ブロックの見出しに 1 つだけ置いて全体が必須であることを示す */
.agree-card .agree-lead {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.agree-card .agree-lead .required {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: var(--radius);
  margin-left: 6px;
  vertical-align: middle;
}

/* ---- Validation error ---- */
.error {
  color: var(--color-full);
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}
/* チェックボックス行は flex のため、エラーはラベルの右へ回り込む。
   行を改めて全幅で出し、エラーサマリーと同じ警告記号を添える */
.form-check .error {
  width: 100%;
  margin-top: 6px;
  padding-left: 18px;
  position: relative;
}
.form-check .error::before {
  content: "\26A0";
  position: absolute;
  left: 0;
}
/* エラーのある行は、入力すべき対象そのものを示す。
   :has() 非対応のブラウザでは枠が付かずエラー文のみになる（機能上の支障はない） */
.form-check:has(.error) input[type="checkbox"] {
  outline: 2px solid var(--color-full);
  outline-offset: 2px;
}
.form-group:has(.error) .form-control {
  border-color: var(--color-full);
  background: #FDF5F5;
}
.error-summary {
  border: 1px solid var(--color-full);
  background: #FDE8E8;
}
.error-summary ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--color-full);
}
.error-summary ul li {
  padding: 3px 0 3px 16px;
  position: relative;
}
.error-summary ul li::before {
  content: "\26A0";
  position: absolute;
  left: 0;
}

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  background: #fff;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-general {
  color: var(--color-primary);
}
.badge-private {
  color: var(--color-provisional);
}

/* ---- Availability marks ---- */
.avail-ok, .mark-ok, .mark-doublecircle { color: var(--color-available); }
.avail-few, .mark-few { color: var(--color-few); }
.avail-full, .mark-x { color: var(--color-full); }

/* ---- Summary Bar ---- */
.summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  background: #FBEEEF;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.summary-bar .item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.summary-bar .label {
  color: var(--color-text-light);
  font-size: 0.8rem;
}
.summary-bar .value {
  font-weight: 600;
}

/* ---- People Counter ---- */
.people-counter {
  display: flex;
  align-items: center;
  gap: 12px;
}
.people-counter button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  user-select: none;
  -webkit-user-select: none;
}
.people-counter button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.people-counter button:active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.people-counter button.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.people-counter .count {
  font-size: 1.4rem;
  font-weight: 700;
  min-width: 40px;
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  padding: 0;
}
/* 人数を直接入力できる欄はテキストボックスと分かる枠を出す（複数桁でも見切れない幅を確保） */
.people-counter .count:read-write {
  min-width: 3.5em;
  width: 3.5em;
  height: 44px;
  box-sizing: border-box;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s;
}
.people-counter .count:read-write:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(155, 35, 53, 0.1);
}

/* ---- Price Summary ---- */
.price-summary {
  background: #fff;
  border: 1px solid var(--color-gold);
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.price-summary .total-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.price-summary .price-breakdown {
  color: var(--color-text-light);
}
.price-summary .total-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.price-summary .total-amount small {
  font-size: 0.9rem;
  font-weight: 400;
}
.price-summary .price-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ---- Note box ---- */
.note-box {
  background: #FBEEEF;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--color-text);
  margin-top: 16px;
}
.note-box .btn {
  margin-top: 8px;
}
.note-box strong {
  color: var(--color-primary-dark);
}
.container > .note-box:first-child,
.container-narrow > .note-box:first-child {
  margin: 0 0 20px;
}

/* ---- Notice Card ---- */
.notice-card {
  background: #FBEEEF;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  scroll-margin-top: 20px;
}
/* 同一画面に複数枚並ぶ場合にカード境界を示す */
.notice-card-outline {
  border: 1px solid var(--color-border);
}
.notice-card h4 {
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}
.notice-card ul {
  list-style: none;
  font-size: 0.85rem;
}
.notice-card ul li {
  padding: 3px 0 3px 16px;
  position: relative;
}
.notice-card ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
}
.notice-card .notice-map {
  margin-top: 12px;
}
.notice-card .notice-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--radius);
}

/* ---- Phone Contact ---- */
.phone-contact {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 16px;
}
.phone-contact-main {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.phone-contact-main a {
  color: var(--color-primary);
  text-decoration: none;
}
.phone-contact-dept {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text);
}
.phone-contact-hours {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ---- Detail Table ---- */
.detail-table {
  width: 100%;
  border-collapse: collapse;
}
.detail-table tr td {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.detail-table tr td:first-child {
  color: var(--color-text-light);
  font-size: 0.85rem;
  width: 120px;
  vertical-align: top;
}
.detail-table tr td:last-child {
  font-weight: 600;
}
.detail-table tr.total-row td {
  border-top: 2px solid var(--color-gold);
  border-bottom: none;
  padding-top: 14px;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}
.detail-table tr.note-row td {
  padding-top: 0;
  border-bottom: none;
}

/* ---- Confirm Hero (complete) ---- */
.confirm-hero {
  text-align: center;
  padding: 40px 24px 24px;
}
.confirm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.confirm-icon.provisional {
  background: var(--color-provisional);
}
.confirm-hero h2 {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}
.confirm-hero h2.provisional {
  color: var(--color-provisional);
}
.confirm-hero .booking-id {
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.confirm-hero .booking-id strong {
  color: var(--color-primary);
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.confirm-hero .mail-notice {
  margin: 16px auto 0;
  padding: 14px 18px;
  max-width: 560px;
  background: #FBF6EC;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: left;
}
.confirm-hero .mail-notice strong {
  color: var(--color-primary-dark);
  word-break: break-all;
}
.confirm-hero .mail-notice-phone {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-gold);
}
.confirm-hero .mail-notice-tel {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.confirm-hero .mail-notice-hours {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ---- Calendar ---- */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.calendar-header h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}
.cal-nav-btn {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.cal-nav-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.cal-nav-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.calendar-grid .day-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 8px 0;
}
.calendar-grid .day-header:nth-child(1) { color: var(--color-full); }
.calendar-grid .day-header:nth-child(7) { color: var(--color-provisional); }
.day-cell {
  padding: 8px 4px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  min-height: 56px;
}
.day-cell.js_dayCell:hover {
  background: #FDE8E8;
}
.day-cell.js_dayCell:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
.day-cell.selected {
  background: var(--color-primary);
  color: #fff;
}
.day-cell.selected .day-avail { color: #fff !important; opacity: 0.9; }
.day-cell .day-num {
  font-size: 0.95rem;
  font-weight: 600;
}
.day-cell .day-avail {
  font-size: 0.7rem;
  margin-top: 2px;
}
.day-cell.disabled {
  opacity: 0.35;
  cursor: default;
}
.day-cell.phone-only {
  opacity: 0.6;
  cursor: default;
}
.day-cell.phone-only .day-avail {
  opacity: 1;
  color: var(--color-text-light);
}
.day-cell.empty {
  cursor: default;
}

/* ---- Slot Grid ---- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.slot-item:hover:not(.disabled):not(.reserved) {
  border-color: var(--color-primary);
  background: #FFF5F5;
}
.slot-item.selected {
  border-color: var(--color-primary);
  background: #FDE8E8;
}
.slot-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}
.slot-item.reserved {
  opacity: 0.6;
  cursor: not-allowed;
  background: #E9F0F4;
  border-color: var(--color-provisional);
}
.slot-item span {
  display: block;
}
.slot-time {
  font-size: 1.05rem;
  font-weight: 700;
}
.slot-info {
  text-align: right;
}
.slot-status {
  font-size: 1.3rem;
  font-weight: 800;
}
.slot-reserved-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-provisional);
}

/* ---- Legend ---- */
.legend {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 12px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-mark {
  font-weight: 800;
  font-size: 1rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  margin-top: 40px;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
}
.site-footer a:hover { opacity: 0.85; }
.site-footer .copyright {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Utility ---- */
.text-light { color: var(--color-text-light); }
.text-sm { font-size: 0.85rem; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .site-header { padding: 10px 14px; }
  .site-logo { gap: 10px; }
  .site-logo img { height: 18px; }
  .site-logo .logo-chip { padding: 5px 8px; }
  .site-logo-title { font-size: 0.82rem; letter-spacing: 0; }
  .container { padding: 16px 12px 40px; }
  .card { padding: 16px; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .step span:not(.num) { display: none; }
  .tour-cards { grid-template-columns: 1fr; }
  .hero h2 { font-size: 1.3rem; }
  .form-row { grid-template-columns: 1fr; }
  .price-summary { flex-direction: column; text-align: center; }
  .btn-row { flex-direction: column-reverse; }
  .btn-row .btn { width: 100%; }
  .confirm-hero h2 { font-size: 1.2rem; }
  .detail-table tr td:first-child { width: 90px; font-size: 0.8rem; }
  .slot-grid { grid-template-columns: 1fr; }
  .legend { gap: 12px; }
  .day-cell { min-height: 48px; padding: 6px 2px; }
  .day-cell .day-num { font-size: 0.85rem; }
}
