/* 来場予約フォーム（MW WP Form）— スコープ .reservation-form-section */

.reservation-form-section {
  --rf-navy: #1a2235;
  --rf-navy-deep: #141a28;
  --rf-muted: #6b7280;
  --rf-disabled-bg: #d1d5db;
  --rf-disabled-text: #6b7280;
  box-sizing: border-box;
  background: var(--rf-navy);
  color: #f9fafb;
  padding: 48px 16px 64px;
}

.reservation-form-section *,
.reservation-form-section *::before,
.reservation-form-section *::after {
  box-sizing: border-box;
}

.reservation-form-section__lead {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  text-align: center;
  color: #e5e7eb;
}

.reservation-form-section__card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  color: #111827;
  border-radius: 8px;
  padding: 32px 20px 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

@media print, screen and (min-width: 576px) {
  .reservation-form-section__card {
    padding: 40px 36px 44px;
  }
}

.reservation-form-section__ttl-en {
  margin: 0 0 8px;
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  color: #111827;
}

.reservation-form-section__ttl-ja {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  color: #111827;
}

.reservation-form-section__note {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: #374151;
}

.reservation-form-section__fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reservation-form-section .mw_wp_form {
  color: #111827;
}

.reservation-form-section .mw_wp_form .error {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #b91c1c;
}

.reservation-form-section__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #111827;
}

.reservation-form-section__req {
  color: #c2410c;
}

.reservation-form-section__input,
.reservation-form-section .mw_wp_form input[type="text"],
.reservation-form-section .mw_wp_form input[type="email"],
.reservation-form-section .mw_wp_form input[type="tel"],
.reservation-form-section .mw_wp_form select,
.reservation-form-section .mw_wp_form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fcfcfc;
  font-size: 14px;
  line-height: 1.6;
  color: #111827;
}

.reservation-form-section .mw_wp_form textarea {
  min-height: 140px;
  resize: vertical;
}

.reservation-form-section__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media print, screen and (max-width: 575px) {
  .reservation-form-section__row2 {
    grid-template-columns: 1fr;
  }
}

/* スマホ幅：希望日時・時間の欄が狭く、既定文「選択してください。」の末尾が切れるため、1列ずつ横幅いっぱいにする */
@media print, screen and (max-width: 575.98px) {
  .mw_wp_form .row > .col-7 {
    flex: 0 0 auto;
    width: 100%;
  }
}

.reservation-form-section__policy-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.reservation-form-section__policy-open:hover,
.reservation-form-section__policy-open:focus-visible {
  color: #1e3a8a;
}

.reservation-form-section__privacy-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reservation-form-section__privacy-text {
  font-size: 14px;
  line-height: 1.7;
  color: #111827;
}

.reservation-form-section__privacy-text a {
  color: #1d4ed8;
  text-decoration: underline;
}

.reservation-form-section__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

@media print, screen and (min-width: 576px) {
  .reservation-form-section__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* 送信・確認・モーダル・同意ロック → style.css .soden-mwform-* */

/* jQuery UI Datepicker（カレンダーは body 直下のため専用クラスでスコープ） */
/* style.css の SP 向け table th/td（inline-block + width:100%）がカレンダー表を縦積みにするためリセット */
#ui-datepicker-div table th,
#ui-datepicker-div table td,
.reservation-form-section__datepicker table th,
.reservation-form-section__datepicker table td {
  display: table-cell;
  width: auto;
  padding: 0.2em;
  text-align: center;
  vertical-align: middle;
  border-bottom: none;
}

#ui-datepicker-div table th + td,
.reservation-form-section__datepicker table th + td {
  padding-top: 0.2em;
}

#ui-datepicker-div table tr,
.reservation-form-section__datepicker table tr {
  border-bottom: none;
}

.reservation-form-section__datepicker .ui-datepicker-unselectable .ui-state-default,
.reservation-form-section__datepicker .reservation-form-section__dp-disabled .ui-state-default {
  opacity: 0.35;
  background: #f3f4f6;
  color: #9ca3af;
  pointer-events: none;
}

.reservation-form-section__datepicker .ui-state-active {
  background: var(--rf-navy-deep);
  color: #fff;
  border-color: var(--rf-navy-deep);
}

.reservation-form-section input[type="checkbox"].reservation-form-section__checkbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--rf-navy-deep);
}

/* 空ラベルテキストのみ非表示（label ごと潰すとチェックボックスも消える） */
.reservation-form-section__privacy-checkwrap .mwform-checkbox-field-text {
  display: none;
}
