/* ------------------------------------------------
    Booking Package のデザイン調整
    （Figma: お知らせ詳細/ご予約フォーム、遷移先ご予約フォーム）
    ・イベント詳細：カレンダー、時間の選択
    ・/event-reservation/：予約フォーム
    レイアウトはプラグイン側のまま、見た目（色・余白・文字）だけを上書きする
------------------------------------------------- */
#booking-package {
  color: var(--colorBlack);
  font-family: var(--fontNotoSansJP);
}

/* ================================================
    イベント詳細：カレンダー
================================================ */
.eventBooking {
  margin: 78px auto 56px;
  max-width: 950px;
}

/* 月の切り替え：「‹ 08　2026/09　10 ›」 */
.eventBooking #booking-package_calendarPage .calendarHeader {
  align-items: center;
  padding: 10px 40px;
}

.eventBooking #booking-package_calendarPage .calendarData {
  color: var(--colorBlack);
  font-family: var(--fontNotoSansJP);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 2;
}

.eventBooking #booking-package_calendarPage .arrowLeft, .eventBooking #booking-package_calendarPage .arrowRight {
  align-items: center;
  color: var(--colorBlack);
  display: flex;
  font-family: var(--fontNotoSansJP);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 2;
  margin: 0;
}

.eventBooking #booking-package_calendarPage .arrowLeft {
  flex-direction: row;
}

.eventBooking #booking-package_calendarPage .arrowRight {
  flex-direction: row;
}

.eventBooking #booking-package_calendarPage .arrowFont {
  background: url("../images/event/calendar-arrow.svg") center / contain no-repeat;
  display: block;
  font-size: 0 !important;
  height: 36.7px;
  margin: 0;
  width: 37.6px;
}

.eventBooking #booking-package_calendarPage .arrowLeft .arrowFont {
  transform: rotate(180deg);
}

/* グリッド */
.eventBooking #booking-package_calendarPage .calendar {
  background: none;
  border: 0;
  border-left: 0.88px solid #c8cfd5;
  border-top: 0.88px solid #c8cfd5;
  gap: 0;
  margin-bottom: 0;
}

.eventBooking #booking-package_calendarPage .week_slot, .eventBooking #booking-package_calendarPage .day_slot {
  border-bottom: 0.88px solid #c8cfd5;
  border-right: 0.88px solid #c8cfd5;
}

.eventBooking #booking-package_calendarPage .week_slot {
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 10.5px 0;
}

.eventBooking #booking-package_calendarPage .week_slot.sun, .eventBooking #booking-package_calendarPage .week_slot.sat {
  color: #1a1a1a;
}

.eventBooking #booking-package_calendarPage .day_slot {
  align-items: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 105.5px;
  padding: 6px 14px 16px;
}

/* 受付がない日・満席・過ぎた日はグレー、土日はピンク */
.eventBooking #booking-package_calendarPage .day_slot:not(.available_day) {
  background: #eee;
  color: var(--colorBlack);
}

.eventBooking #booking-package_calendarPage .day_slot.sun, .eventBooking #booking-package_calendarPage .day_slot.sat {
  background: #ffe8e8;
}

.eventBooking #booking-package_calendarPage .day_slot.available_day {
  cursor: pointer;
}

.eventBooking #booking-package_calendarPage .dateField {
  align-items: center;
  border-radius: 50%;
  color: var(--colorBlack);
  display: flex;
  flex: none;
  font-family: var(--fontNotoSansJP);
  font-size: 18px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  line-height: 1.2;
  padding: 0;
  width: 34px;
}

/* 選んだ日：赤い丸 */
.eventBooking #booking-package_calendarPage .selected_day_slot {
  background: #fff !important;
  box-shadow: none;
}

.eventBooking #booking-package_calendarPage .selected_day_slot.sun, .eventBooking #booking-package_calendarPage .selected_day_slot.sat {
  background: #ffe8e8 !important;
}

.eventBooking #booking-package_calendarPage .selected_day_slot .dateField {
  background: red;
  color: #fff;
}

/* ○ △ ×（色は、Booking Package のカレンダー設定で指定） */
.eventBooking #booking-package_calendarPage .day_slot .symbolPanel {
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

/* 凡例 */
.eventBooking__legend {
  align-items: center;
  display: flex;
  font-family: var(--fontNotoSansJP);
  font-weight: 500;
  gap: 16px;
  margin-top: 12px;
}

.eventBooking__legend li {
  align-items: center;
  display: flex;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 2;
}

.eventBooking__legend span {
  font-size: 16px;
  font-weight: 500;
  margin-right: 2px;
}

.eventBooking__legend .is-o {
  color: #3598fc;
}

.eventBooking__legend .is-t {
  color: #ffac33;
}

.eventBooking__legend .is-x {
  color: var(--colorBlack);
}

/* 時間を選ぶ画面では、凡例を隠す */
.eventBooking:has(#booking-package_schedulePage:not(.hidden_panel):not(:empty)) .eventBooking__legend {
  display: none;
}

/* ================================================
    イベント詳細：時間の選択
================================================ */
.eventBooking #booking-package_schedulePage {
  background: #fff;
  border: 1px solid var(--colorLightGray);
  border-radius: 8px;
  overflow: hidden;
}

.eventBooking #booking-package_schedulePage .topPanel, .eventBooking #booking-package_schedulePage .topPanelNoAnimation {
  background: var(--colorLightYellow);
  border-bottom: 0;
  height: 64px;
}

.eventBooking #booking-package_schedulePage .selectedDate {
  font-size: var(--fontSize24);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.eventBooking #booking-package_schedulePage .daysListPanel, .eventBooking #booking-package_schedulePage .daysListPanelNoAnimation {
  background: #fff;
  border-right: 1px solid var(--colorLightGray);
  box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.eventBooking #booking-package_schedulePage .selectable_day_slot {
  background: #fff;
  border-bottom: 1px solid var(--colorLightGray);
  font-size: var(--fontSize18);
  font-weight: 500;
  padding: 18px 0;
  text-align: center;
  transition: background 0.2s;
}

.eventBooking #booking-package_schedulePage .selectable_day_slot:last-child {
  border-bottom: 0;
}

.eventBooking #booking-package_schedulePage .selectable_day_slot .sun {
  color: #e0457b;
}

.eventBooking #booking-package_schedulePage .selectable_day_slot .sat {
  color: #3b8be8;
}

.eventBooking #booking-package_schedulePage .selectable_day_slot:not(.closed):hover {
  background: var(--colorThinGray);
  cursor: pointer;
}

.eventBooking #booking-package_schedulePage .selectable_day_slot.closed {
  background: var(--colorThinGray);
}

.eventBooking #booking-package_schedulePage .selectable_day_slot.closed .weekPanel {
  color: #aaa;
}

.eventBooking #booking-package_schedulePage .selectable_day_slot.selected_day_slot {
  background: var(--colorLightYellow);
  box-shadow: inset 4px 0 0 var(--colorYellow);
  font-weight: 700;
}

.eventBooking #booking-package_schedulePage #scheduleMainPanel, .eventBooking #booking-package_schedulePage .courseListPanel {
  background: #fff;
}

#booking-package_schedulePage .courseListPanel {
  top: 65px!important;
}

.eventBooking #booking-package_schedulePage .selectable_time_slot {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--colorLightGray);
  cursor: pointer;
  display: flex;
  font-size: var(--fontSize20);
  gap: 16px;
  min-height: 64px;
  padding: 0 28px;
  transition: background 0.2s;
}

.eventBooking #booking-package_schedulePage .selectable_time_slot .timeSlot {
  font-family: var(--fontRoboto);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.eventBooking #booking-package_schedulePage .selectable_time_slot::after {
  background: url("../images/event/calendar-arrow.svg") center / contain no-repeat;
  content: "";
  flex: none;
  height: 24px;
  margin-left: auto;
  opacity: 0.5;
  width: 24px;
}

.eventBooking #booking-package_schedulePage .selectable_time_slot:hover {
  background: var(--colorThinGray);
}

.eventBooking #booking-package_schedulePage .selectable_time_slot.last_time {
  border-bottom: 0;
}

/* ================================================
    ボタン（共通：黄色の丸ボタン）
================================================ */
#booking-package button {
  appearance: none;
  background: #fff;
  border: 4px solid var(--colorYellow);
  border-radius: 40px;
  color: var(--colorBlack);
  cursor: pointer;
  font-family: var(--fontNotoSansJP);
  font-size: var(--fontSize18);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 8px;
  max-width: 100%;
  padding: 12px 0;
  text-align: center;
  transition: opacity 0.2s;
  width: 240px;
}

#booking-package button:hover {
  opacity: 0.75;
}

#booking-package button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.eventBooking #booking-package #bottomPanel {
  border-top: 0;
  gap: 16px;
  justify-content: center;
  padding: 28px 0 8px;
}

/* ================================================
    /event-reservation/：予約フォーム
================================================ */
.eventReservation.is-loading {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.eventReservation.is-loading > * {
  visibility: hidden;
}

.eventReservation.is-loading::before {
  color: #999;
  content: "読み込み中…";
  font-size: var(--fontSize16);
  left: 0;
  letter-spacing: 0.1em;
  position: absolute;
  right: 0;
  text-align: center;
  top: 100px;
}

.eventReservation__error {
  font-size: var(--fontSize16);
  line-height: 2;
  padding: 40px 0;
  text-align: center;
}

.eventReservation__error a {
  text-decoration: underline;
}

/* 入力エラー：行の背景色(プラグインの #FFD5D5)をなくし、文言で知らせる */
.eventReservation #booking-package_inputFormPanel .error_empty_value, .eventReservation #booking-package_inputFormPanel .errorPanel {
  background: none !important;
  background-color: transparent !important;
}

.eventReservation__errorText {
  color: #e23e3e;
  font-size: var(--fontSize14, 14px);
  line-height: 1.6;
  margin: 8px 0 0;
}

.eventReservation__completedMessage {
  font-size: var(--fontSize16);
  line-height: 2;
  margin: 24px 0 32px;
  text-align: center;
}

#booking-package #booking-package_inputFormPanel {
  background: none;
  border: 0;
  padding: 0;
}

/* 「個人情報を入力してください」は、デザインにないので隠す */
#booking-package #booking-package_inputFormPanel .title_in_form {
  display: none;
}

#booking-package #booking-package_inputFormPanel .row {
  align-items: center;
  border-bottom: 0;
  display: grid;
  gap: 0;
  grid-template-columns: 240px 1fr;
  margin: 0 0 32px;
  padding: 0;
}

/* 予約日時・イベント名：上下に線 */
#booking-package #booking-package_inputFormPanel .row:has(.bookingDate), #booking-package #booking-package_inputFormPanel .row.eventReservation__eventRow {
  border-bottom: 1px solid #999;
  margin: 0;
  min-height: 102px;
  padding: 21px 0;
}

#booking-package #booking-package_inputFormPanel .row:has(.bookingDate) {
  align-items: center;
  margin-top: 51px;
}

#booking-package #booking-package_inputFormPanel .row:has(.bookingDate) .value {
  color: #000;
}

#booking-package #booking-package_inputFormPanel .row.eventReservation__eventRow {
  margin-bottom: 32px;
}

/* ご要望の入力欄：ラベルは上揃え */
#booking-package #booking-package_inputFormPanel .row:has(textarea) {
  align-items: start;
  margin-bottom: 24px;
}

#booking-package #booking-package_inputFormPanel .row .name {
  align-items: center;
  color: #000;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  gap: 16px;
  letter-spacing: 0;
  line-height: 1.8;
  padding-bottom: 0;
}

/* 必須・任意のバッジ */
#booking-package #booking-package_inputFormPanel .row .name.required::after, #booking-package #booking-package_inputFormPanel .row:has(.form_text, .form_select, .form_textarea, .form_checkbox, textarea) .name:not(.required)::after {
  background: var(--colorYellow);
  border-radius: 4px;
  color: #fff;
  content: "必須";
  font-size: 13px;
  font-weight: 400;
  line-height: 21px;
  padding: 0 6px;
  top: 0;
}

#booking-package #booking-package_inputFormPanel .row:has(.form_text, .form_select, .form_textarea, .form_checkbox, textarea) .name:not(.required)::after {
  background: #c8cfd5;
  content: "任意";
}

#booking-package #booking-package_inputFormPanel .row .name .required, #booking-package #booking-package_inputFormPanel .row .name > span {
  display: none;
}

#booking-package #booking-package_inputFormPanel .row .value {
  color: var(--colorBlack);
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

#booking-package #booking-package_inputFormPanel .bookingDate, #booking-package #booking-package_inputFormPanel .bookingTime {
  font-family: var(--fontNotoSansJP);
  font-size: 16px;
  font-weight: 400;
  margin-right: 10px;
}

/* ゲストの合計人数は表示しない（エラー表示だけ残す） */
#booking-package #booking-package_inputFormPanel .row.total_amount .name, #booking-package #booking-package_inputFormPanel .row.total_amount .value {
  display: none;
}

#booking-package #booking-package_inputFormPanel .row.total_amount {
  margin: 0;
}

/* 入力欄 */
#booking-package #booking-package_inputFormPanel input.form_text, #booking-package #booking-package_inputFormPanel input[type="text"], #booking-package #booking-package_inputFormPanel input[type="email"], #booking-package #booking-package_inputFormPanel input[type="tel"], #booking-package #booking-package_inputFormPanel textarea, #booking-package #booking-package_inputFormPanel select {
  background: #fff;
  border: 1px solid #999;
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--colorBlack);
  font-family: var(--fontNotoSansJP);
  font-size: 16px;
  height: 42px;
  padding: 0 16px;
  width: 100%;
}

#booking-package #booking-package_inputFormPanel textarea {
  height: 239px;
  padding: 12px 16px;
}

/* select は ::after が使えないので、標準の矢印を消して背景画像で描く（矢印の大きさは background-size） */
#booking-package #booking-package_inputFormPanel select {
  -webkit-appearance: none;
          appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8l8 8 8-8' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 20px 20px;
  max-width: 250px;
  padding-right: 44px;
}

#booking-package #booking-package_inputFormPanel input:focus, #booking-package #booking-package_inputFormPanel textarea:focus, #booking-package #booking-package_inputFormPanel select:focus {
  border-color: var(--colorYellow);
  box-shadow: 0 0 0 3px var(--colorLightYellow);
  outline: 0;
}

#booking-package #booking-package_inputFormPanel .form_checkbox {
  height: auto;
  margin-inline: 20px 7px;
  width: auto;
}

#booking-package #booking-package_inputFormPanel .description {
  color: #757575;
  display: none;
  font-size: 14px;
  letter-spacing: 0;
  margin-bottom: 0;
}

/* 「予約する」「戻る」 */
#booking-package #paymentPanel, #booking-package #nextAndReturnPanel {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#booking-package #paymentPanel {
  margin-top: 48px;
}

#booking-package #nextAndReturnPanel {
  margin-top: 24px;
}

#booking-package #paymentPanel .bottomBarPanel, #booking-package #nextAndReturnPanel.bottomBarPanel {
  display: flex;
  justify-content: center;
  padding: 0;
  width: 100%;
}

#booking-package #paymentPanel .book_now_button {
  background: var(--colorYellow);
  font-size: var(--fontSize20);
  font-weight: 700;
  height: 70px;
  margin: 0;
  max-width: 100%;
  transition: all 0.3s;
  width: 450px;
}

#booking-package #nextAndReturnPanel .return_form_button {
  font-size: var(--fontSize20);
  height: 70px;
  margin: 0;
  max-width: 100%;
  width: 300px;
}

@media (hover: hover) {
  #booking-package #paymentPanel .book_now_button:hover {
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.16);
    opacity: 1;
  }

  #booking-package #nextAndReturnPanel .return_form_button:hover {
    opacity: 0.5;
  }
}

/* ================================================
    スマホ
================================================ */
@media screen and (max-width: 767px) {
  .eventBooking {
    margin: 40px auto 32px;
  }

  .eventBooking #booking-package_calendarPage .calendarHeader {
    padding: 6px 0;
  }

  .eventBooking #booking-package_calendarPage .calendarData {
    font-size: 20px;
  }

  .eventBooking #booking-package_calendarPage .arrowLeft, .eventBooking #booking-package_calendarPage .arrowRight {
    font-size: 14px;
  }

  .eventBooking #booking-package_calendarPage .arrowFont {
    height: 28px;
    width: 28px;
  }

  .eventBooking #booking-package_calendarPage .week_slot {
    font-size: 12px;
    padding: 8px 0;
  }

  .eventBooking #booking-package_calendarPage .day_slot {
    gap: 2px;
    height: 64px;
    padding: 4px 0 6px;
  }

  .eventBooking #booking-package_calendarPage .dateField {
    font-size: 13px;
    height: 24px;
    width: 24px;
  }

  .eventBooking #booking-package_calendarPage .day_slot .symbolPanel {
    font-size: 16px !important;
  }

  .eventBooking__legend {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .eventBooking #booking-package_schedulePage .selectable_time_slot {
    font-size: var(--fontSize18);
    min-height: 56px;
    padding: 0 16px;
  }

  .eventBooking #booking-package_schedulePage .selectable_day_slot {
    padding: 14px 0;
  }

  .eventBooking #booking-package #bottomPanel {
    flex-direction: column;
  }

  #booking-package button {
    margin: 0 auto 20px!important;
    width: 200px;
  }

  #booking-package #booking-package_inputFormPanel .row {
    gap: 12px;
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  #booking-package #booking-package_inputFormPanel .row:has(.bookingDate), #booking-package #booking-package_inputFormPanel .row.eventReservation__eventRow {
    gap: 8px;
    min-height: 0;
  }

  #booking-package #booking-package_inputFormPanel select {
    max-width: 100%;
  }

  #booking-package #paymentPanel {
    margin-top: 40px;
  }

  #booking-package #paymentPanel .book_now_button, #booking-package #nextAndReturnPanel .return_form_button {
    height: 60px;
    width: 100%;
  }

  #booking-package_inputFormPanel label {
    display: grid!important;
    grid-template-columns: 40px auto;
  }
}
