/* ============================================= */
/* 予約フォームデザイン (style-formdesign-default.css) */
/* ============================================= */
:root {
  --base-width-sp :375;
  --base-width-pc :1440;
}


/* --- 全体のスタイル --- */
.container {
  width: calc(900 / var(--base-width-pc) * 100vw) !important;
}

.reservation-page {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  padding-top: calc(70 / 1600 * 100vw);
}

/* --- コンテナのスタイル --- */
.container {
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.container p {
  width: calc(850 / var(--base-width-pc) * 100vw);
  margin: auto;
  padding: 20px 5px;
}

/* --- 見出し --- */
.reservation-page h1 {
  font-size: 24px;
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* --- 予約コンテナ --- */
.reservation-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: calc(850 / var(--base-width-pc) * 100vw);
  margin: auto;
}

.calendar-container,
.time-container {
  width: 48%;
}

/* --- カレンダー --- */
#datepicker {
  width: 100%;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* --- 時間選択リスト --- */
#reservation_time {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* --- 予約フォーム --- */
.reservation-form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-top: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  width: calc(850 / 1440 * 100vw);
  margin: auto;
}

/* --- フォームのラベル --- */
.reservation-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* --- 入力フィールド --- */
.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 10px;
}

/* --- 送信ボタン --- */
.reservation-form .wpcf7-submit {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: #ffffff;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.reservation-form .wpcf7-submit:hover {
  background: #0056b3;
}

/* --- フォームレスポンスメッセージ --- */
.wpcf7-response-output {
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px;
  display: none;
}

/* --- レスポンスメッセージ（成功） --- */
.wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

/* --- レスポンスメッセージ（エラー） --- */
.wpcf7-validation-errors {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}


/* ▼ カレンダー全体の外枠（本体） */
.ui-datepicker {
  background: #f9f9f9;
  border: 2px solid #ccc;
  padding: 10px;
  width: 250px;
  font-family: Arial, sans-serif;
}

/* ▼ ヘッダー部分（前月/翌月ボタンと月・年の表示） */
.ui-datepicker-header {
  background: #0073aa;
  color: #fff;
  padding: 8px 0;
  text-align: center;
}

/* ▼ 月と年のタイトル部分 */
.ui-datepicker-title {
  font-size: 16px;
  font-weight: bold;
}

/* ▼ 前月ボタン */
.ui-datepicker-prev {
  float: left;
  cursor: pointer;
  color: #fff;
  margin-left: 10px;
}

/* ▼ 翌月ボタン */
.ui-datepicker-next {
  float: right;
  cursor: pointer;
  color: #fff;
  margin-right: 10px;
}

/* ▼ カレンダーの日付部分（テーブル全体） */
.ui-datepicker-calendar {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

/* ▼ 週末（土日）のセル */
.ui-datepicker-week-end {
  background-color: #fff0f0;
}

/* ▼ ホバー時のセル */
.ui-datepicker-days-cell-over {
  background-color: #eee;
}

/* ▼ 今日の日付セル */
.ui-datepicker-current-day {
  border: 2px solid #ff9800;
}

/* ▼ 今日を示すクラス（.ui-datepicker-current-dayと併用される） */
.ui-datepicker-today {
  font-weight: bold;
  background-color: #fff;
}

/* ▼ 通常状態の日付セル（リンク） */
.ui-state-default {
  display: block;
  padding: 5px;
  text-align: center;
  text-decoration: none;
  color: #333;
}

/* ▼ 選択された日付セル */
.ui-state-active {
  background-color: #0073aa;
  color: #fff;
}

/* ▼ マウスホバー時のセル */
.ui-state-hover {
  background-color: #d9edf7;
  color: #000;
}

/* ▼ 選択不可なセル（無効） */
.ui-state-disabled {
  color: #ccc;
  pointer-events: none;
}

/* ▼ ウィジェット全体のラッパー */
.ui-widget {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
}

/* ▼ カレンダー本体の背景 */
.ui-widget-content {
  background: #ffffff;
  border: 1px solid #ddd;
}

/* ▼ ヘッダーの背景と装飾 */
.ui-widget-header {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
}

/* ▼ コーナーを丸くするクラス（全部） */
.ui-corner-all {
  border-radius: 8px;
}

/* ▼ 上だけ角丸にする場合 */
.ui-corner-top {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* ▼ 下だけ角丸にする場合 */
.ui-corner-bottom {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* ▼ アイコン（前月・次月の矢印など） */
.ui-icon {
  background-image: url("icons.png"); /* 適宜差し替え */
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* ▼ 今日の日付や注目項目などのハイライト */
.ui-state-highlight {
  background-color: #ffff99;
}

/* ▼ 優先度の低い情報の色（薄く表示） */
.ui-priority-secondary {
  color: #999;
  font-style: italic;
}

/* ▼ 任意のinputフィールド（datepicker対象） */
#my-datepicker {
  border: 1px solid #ccc;
  padding: 5px;
  width: 200px;
}

/* ご本人確認用を1行に出して、次のラジオ行に余白 */
.wpcf7-form p {
  margin-bottom: 1em;
  width: calc(800 / var(--base-width-pc) * 100vw);
  margin: auto;
}

/* ラジオボタンの全体を横並びに */
.wpcf7-form .wpcf7-radio {
  display: flex;
  gap: 24px;
  margin-top: 6px;
  margin-bottom: 6px;
  align-items: center;
}

/* ラベルとボタンを横並びに */
.wpcf7-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ボタンと文字の間を調整（任意） */
.wpcf7-form .wpcf7-list-item-label {
  font-size: 15px;
  min-width: 100px;
}

.wpcf7-form .wpcf7-list-item input[type="radio"] {
  vertical-align: middle;
  position: static; /* ← 変に top でいじらない */
}

label {
  display: inline-flex;
  align-items: center; /* ← これが全て。縦中央揃え */
  gap: 0.5em; /* 任意の余白 */
}

label input[type="radio"] {
  vertical-align: middle;
  margin: 0;
}

#datepicker_wrapper {
  width: 100%;
}

br {
 display :none;
}

input[type=text], input[type=password], input[type=date], input[type=datetime], input[type=email], input[type=number], input[type=search], input[type=tel], input[type=time], input[type=url], textarea, select {
  border: 1px solid #ccc !important;
}
/* --- 縦長対応 --- */
@media (max-aspect-ratio: 1/1) {

  .container {
    width: calc(340 / var(--base-width-sp) * 100vw) !important;
  }

  .reservation-container {
      flex-direction: column;
      width: 100%;
  }

  .calendar-container,
  .time-container {
      width: 100%;
  }

  #datepicker {
    display: flex;
    justify-content: center;
  }

  #datepicker_wrapper {
    width: 100%;
  }

  #reservation_time {
    padding: 20px;
  }

  .reservation-form {
    width: calc(340 / var(--base-width-sp) * 100vw);
  }

  .wpcf7-form p {
    width: calc(310 / 375 * 100vw);
    margin: auto;
  }

  .container p {
      width: calc(300 / var(--base-width-sp) * 100vw);
      margin: auto;
      padding: 10px 0px;
  }

  #required-field {
    width: calc(310 / var(--base-width-sp) * 100vw);
  }

  .calendar-container label {
    padding-left: 10px;
  }

  .time-container label {
    padding-left: 10px;
  }

}

.show-flex {
display: flex;
flex-direction: row;
}
.hide {
display: none;
}

