/* ============================================================
   Bus Tour Booking - Frontend
   三輪緑山応援バス予約システム スタイル流用版
   フルスクリーン・ライトテーマ（FC町田ゼルビアカラー）
   ============================================================ */

.btb-booking {
  --zb:      #1645BE;   /* ロイヤルブルー */
  --zb-dark: #0D2E8A;
  --zb-deep: #07194D;
  --zb-lt:   #EEF3FF;
  --zb-md:   #C5D5F8;
  --zg:      #C9A227;   /* ゴールド */
  --zg-lt:   #FBF5DC;
  --zg-dark: #8A6D10;
  --navy:    #062050;
  --bg:      #EFF4FB;
  --card:    #FFFFFF;
  --text:    #0D1B3E;
  --text2:   #4A5568;
  --text3:   #8A9AB8;
  --border:  #D4DEED;
  --ok:      #1A7A3A;
  --ok-lt:   #EAF7EE;
  --warn:    #8A5A00;
  --warn-lt: #FFF8E1;
  --ng:      #8A1A1A;
  --ng-lt:   #FFF0F0;
  --radius:  10px;
  --radius-sm: 6px;
  --shadow:  0 2px 16px rgba(6,32,80,.10);
  --shadow-md: 0 4px 24px rgba(6,32,80,.14);

  min-height: 100vh;
  background: var(--bg);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  /* フルスクリーン：ビューポート幅いっぱい */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 0 120px;
  box-sizing: border-box;
}

.btb-booking *,
.btb-booking *::before,
.btb-booking *::after {
  box-sizing: border-box;
}

/* ================================================================
   HERO HEADER（三輪緑山スタイル・全幅）
   ================================================================ */
.btb-hero {
  background: linear-gradient(135deg, var(--zb) 0%, var(--zb-dark) 55%, var(--zb-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btb-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(201,162,39,.18), transparent 70%);
  pointer-events: none;
}

.btb-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 38px 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.btb-hero-text {
  display: grid;
  gap: 12px;
}

.btb-hero-logo {
  height: 72px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
  order: -1;
}

.btb-badge {
  display: inline-block;
  width: fit-content;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(201,162,39,.18);
  border: 1px solid var(--zg);
  color: var(--zg-lt);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.btb-hero-title {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  letter-spacing: .02em;
}

.btb-hero-sub {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}

.btb-hero-strip {
  background: rgba(7,25,77,.5);
  border-top: 2px solid var(--zg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding: 12px 20px;
  position: relative;
  z-index: 1;
}

.btb-hero-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
}

.btb-hero-strip .dashicons {
  color: var(--zg);
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* ================================================================
   TOUR LIST (STEP1) / LEAD
   ================================================================ */
.btb-lead {
  margin: 0 0 16px;
  color: var(--text2);
}

.btb-tourlist {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.btb-tourlist .btb-summary {
  margin-top: 0;
}

/* カレンダー日セル内の料金（PC時のみ表示） */
.btb-cal-price {
  display: none;
  font-size: .62rem;
  font-weight: 700;
  color: var(--zb);
  line-height: 1;
  margin-top: 1px;
}

@media (min-width: 761px) {
  .btb-cal-price {
    display: block;
  }
  .btb-cal-day {
    aspect-ratio: auto;
    min-height: 64px;
    padding: 4px 2px;
  }
}

/* ================================================================
   STEP BAR（画面上部に横断）
   ================================================================ */
.btb-steps {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(6,32,80,.08);
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  scrollbar-width: thin;
}

.btb-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 0 auto;
  color: var(--text3);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
}

.btb-step-label {
  transition: color .2s;
}

.btb-step:not(:last-child)::after {
  content: "";
  flex: 1;
  min-width: 16px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  transition: background .2s;
}

.btb-step-no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text3);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}

.btb-step.is-active {
  color: var(--zb);
}

.btb-step.is-active .btb-step-no {
  background: var(--zb);
  border-color: var(--zb);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,69,190,.35);
}

.btb-step.is-done {
  color: var(--zg-dark);
}

.btb-step.is-done .btb-step-no {
  background: var(--zg-lt);
  border-color: var(--zg);
  color: var(--zg-dark);
}

.btb-step.is-done:not(:last-child)::after {
  background: var(--zg);
}

/* ================================================================
   STAGE / CONTENT
   ================================================================ */
.btb-stage {
  display: none;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 0;
}

.btb-stage.is-active {
  display: block;
}

/* ================================================================
   CARD（コンテンツカード）
   ================================================================ */
.btb-panel {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 24px;
}

.btb-reveal[hidden] {
  display: none;
}

.btb-panel h2 {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.btb-panel h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--zb), var(--zg));
}

/* ================================================================
   FORM
   ================================================================ */
.btb-field,
.btb-form label,
.btb-booking form label {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text2);
  font-size: 0.92rem;
}

.btb-booking input,
.btb-booking select,
.btb-booking textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.btb-booking textarea {
  min-height: 110px;
  line-height: 1.6;
}

.btb-booking input::placeholder,
.btb-booking textarea::placeholder {
  color: var(--text3);
}

.btb-booking input:focus,
.btb-booking select:focus,
.btb-booking textarea:focus {
  outline: none;
  border-color: var(--zg);
  box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}

.btb-booking input:disabled,
.btb-booking select:disabled {
  opacity: .6;
  background: #f3f6fb;
  cursor: not-allowed;
}

.btb-two,
.btb-three {
  display: grid;
  gap: 14px;
}

.btb-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.btb-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ================================================================
   CALENDAR
   ================================================================ */
.btb-cal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.btb-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.btb-cal-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.btb-cal-nav {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--zb);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.btb-cal-nav:hover {
  border-color: var(--zb);
  background: var(--zb-lt);
}

.btb-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.btb-cal-weekdays span {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text3);
  padding: 4px 0;
}

.btb-cal-weekdays span:first-child { color: var(--ng); }
.btb-cal-weekdays span:last-child { color: var(--zb); }

.btb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.btb-cal-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text3);
  padding: 24px 0;
}

.btb-cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 1px solid #eef2f8;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.btb-cal-day.is-blank {
  background: transparent;
  border: 0;
}

.btb-cal-num {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}

.btb-cal-day.is-sun .btb-cal-num { color: var(--ng); }
.btb-cal-day.is-sat .btb-cal-num { color: var(--zb); }

.btb-cal-day.is-empty {
  opacity: .4;
  background: #fafbfd;
}

.btb-cal-mark {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.btb-cal-mark.is-circle { color: var(--ok); }
.btb-cal-mark.is-triangle { color: var(--warn); }
.btb-cal-mark.is-x { color: var(--ng); }

.btb-cal-day.is-available {
  cursor: pointer;
  border-color: var(--border);
  background: var(--zb-lt);
  transition: transform .1s ease, border-color .15s ease, box-shadow .15s ease;
}

.btb-cal-day.is-available:hover {
  border-color: var(--zb);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,69,190,.18);
}

.btb-cal-day.is-full {
  opacity: .5;
  background: #fafbfd;
}

.btb-cal-day.is-selected {
  border-color: var(--zg);
  background: var(--zg-lt);
  box-shadow: 0 0 0 2px rgba(201,162,39,.45);
}

.btb-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: .82rem;
  color: var(--text2);
}

.btb-cal-legend b {
  font-size: 1rem;
  margin-right: 3px;
}

.btb-cal-legend .is-circle { color: var(--ok); }
.btb-cal-legend .is-triangle { color: var(--warn); }
.btb-cal-legend .is-x { color: var(--ng); }

/* ================================================================
   SUMMARY
   ================================================================ */
.btb-summary {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--zb-lt);
  border: 1px solid var(--zb-md);
  line-height: 1.8;
  color: var(--text);
}

.btb-summary:empty { display: none; }

.btb-tour-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.btb-pickdate {
  font-size: .85rem;
  font-weight: 700;
  color: var(--zb);
}

.btb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btb-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 12px;
  color: var(--zg-dark);
  background: var(--zg-lt);
  border: 1px solid var(--zg);
  font-size: .8rem;
  font-weight: 700;
}

.btb-tour-data {
  display: grid;
  grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
  gap: 8px 14px;
  margin: 12px 0;
}

.btb-tour-data dt {
  font-weight: 700;
  color: var(--text2);
}

.btb-tour-data dd {
  margin: 0;
  color: var(--text);
}

.btb-summary section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--zb-md);
}

.btb-summary h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--zb);
  font-weight: 700;
}

.btb-summary p { margin: 0; }

.btb-summary strong,
.btb-summary b {
  color: var(--zb);
}

/* ================================================================
   COMPANIONS
   ================================================================ */
.btb-companion {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px 150px;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ================================================================
   NOTICE / AGREE
   ================================================================ */
.btb-notice {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--zg-lt);
}

.btb-notice strong { color: var(--zg-dark); }

.btb-notice p {
  margin: 8px 0 12px;
  line-height: 1.8;
  color: var(--text2);
}

.btb-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  color: var(--text);
  font-weight: 600;
}

.btb-check input {
  width: auto;
  min-height: auto;
  margin-top: .25em;
  accent-color: var(--zb);
}

/* ================================================================
   ACTIONS / BUTTONS
   ================================================================ */
.btb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.btb-actions .btb-primary {
  width: auto;
  flex: 1;
  min-width: 200px;
  margin-top: 0;
}

.btb-primary,
.btb-secondary {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}

.btb-primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--zb), var(--zb-dark));
  box-shadow: 0 4px 14px rgba(22,69,190,.3);
  letter-spacing: .02em;
  margin-top: 18px;
}

.btb-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22,69,190,.4);
}

.btb-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.btb-secondary {
  align-self: end;
  color: var(--zg-dark);
  background: var(--zg-lt);
  border: 1px solid var(--zg);
}

.btb-secondary:hover {
  filter: brightness(1.03);
}

.btb-primary:active,
.btb-secondary:active {
  transform: translateY(0);
}

/* ================================================================
   MESSAGE
   ================================================================ */
.btb-message {
  margin-top: 12px;
  min-height: 1.5em;
  font-weight: 700;
}

.btb-message[data-type="error"] { color: var(--ng); }
.btb-message[data-type="info"] { color: var(--zb); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 760px) {
  .btb-hero-inner {
    padding: 28px 16px 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .btb-hero-strip {
    gap: 6px 18px;
  }

  .btb-steps {
    padding: 12px 14px;
  }

  .btb-step-label,
  .btb-step {
    font-size: 11px;
  }

  .btb-stage {
    padding: 20px 14px 0;
  }

  .btb-two,
  .btb-three,
  .btb-companion {
    grid-template-columns: 1fr;
  }

  .btb-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btb-actions .btb-primary {
    width: 100%;
  }
}
