/* =========================================================
   MTS カレンダー共通
========================================================= */

.day-calendar,
.monthly-calendar {
  max-width: 1000px;
  margin: 40px auto;
  box-sizing: border-box;
}

.list-calendar,
.day-calendar *,
.monthly-calendar *,
.list-calendar * {
  box-sizing: border-box;
}

.monthly-calendar table {
  max-width: 1000px;
  margin: 40px auto;
}

.list-calendar table {
  max-width: 1100px;
  margin: 40px auto;
}

.list-calendar table,
.day-calendar table {
  width: 100%;
}

.list-header {
  white-space: nowrap;
}

.list-monthly-calendar th,
.list-monthly-calendar td,
.list-calendar th,
.list-calendar td {
  border-color: #aaa;
}

.list-monthly-calendar th,
.list-calendar th {
  font-size: 1.1rem;
  padding: 1rem 0.2rem;
}

.calendar-title {
  background-color: #e4e4e4;
  padding: 25px;
  font-family: "Noto Sans Japanese";
  font-weight: 600;
  text-align: center;
  margin-top: 20px !important;
  margin-bottom: 30px !important;
  border-radius: 5px;
}

.calendar-caption {
  background-color: #356b82;
  color: #fff;
  font-family: "Noto Sans Japanese";
  font-weight: 500;
  padding: 15px;
  margin-bottom: 15px !important;
}

.header-row {
  border: solid 1px #ccc;
}

.day-calendar table {
  margin: 0 auto;
}

.day-calendar caption {
  font-size: 16px;
}

#apply-area .monthly-calendar {
  max-width: 1000px;
  margin: 0 auto 80px;
}

.monthly-calendar th {
  border-bottom: solid 1px #ccc !important;
}

.monthly-calendar td {
  border-bottom: solid 1px #ccc !important;
  font-size: 15px !important;
}

.sun {
  background-color: #ffeeee !important;
  border-right: 1px solid #ccc !important;
}

.sat {
  background-color: #effaff !important;
}

.mon,
.tue,
.wed,
.thu,
.fri {
  background-color: #fff !important;
  border-right: 1px solid #ccc !important;
}

.day-number {
  font-size: 20px;
}

.monthly-prev-next {
  margin-top: 10px;
}

.monthly-prev,
.monthly-next {
  padding: 10px;
  display: block;
  color: #fff;
  border-radius: 10px;
}

.monthly-prev {
  background-color: #5fb9ff !important;
}

.monthly-next {
  background-color: #d50000 !important;
}

.monthly-prev a,
.monthly-next a {
  color: #fff;
}

.calendar-mark {
  padding: 10px 0;
}

.day-calendar h3 {
  background-color: #f4f4f4;
  padding: 10px;
}

.day-calendar p {
  font-size: 20px;
  font-weight: bold;
}

.day-left {
  background-color: #fffed0;
  padding: 6px !important;
}

.day-right {
  background-color: #fffff4;
  padding: 6px !important;
}

.mtssb-daily-action {
  text-align: center;
  margin-top: 20px;
}

.mtssb-daily-action button {
  appearance: none;
  min-width: 220px;
  min-height: 58px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: #e54747;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: none;
  cursor: pointer;
}

.mtssb-daily-action button:hover {
  background: #d63a3a;
}

.mtssb-daily-action button:active {
  background: #c72f2f;
  transform: translateY(1px);
}

.mtssb-timetable-link caption {
  display: table-caption;
  text-align: center;
  margin: 0 auto 18px;
  width: 100%;
  padding: 18px 20px;
}

.mtssb-timetable-name,
.mtssb-timetable-date {
  display: block;
  padding: 8px 0;
  color: #356b82;
}

.mtssb-timetable-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.mtssb-timetable-date {
  font-size: 20px;
}

/* =========================================================
   MTS入力フォーム：匠平家用
========================================================= */

#bottom {
  margin-top: 60px;
  padding-top: 12px;
  color: #fff;
}

#booking-form,
.content-form {
  max-width: 1000px;
  margin: 20px auto;
  color: #111;
  font-size: 14px;
  line-height: 1.7;
  background: #f6f6f6;
  padding: 55px 70px;
  box-sizing: border-box;
}

#booking-form *,
.content-form * {
  box-sizing: border-box;
}

/* MTSの区切り枠を消して、ひとつのグレー背景内に見せる */
.content-form fieldset {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-form legend {
  display: none;
}

.content-form table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
}

.content-form tr {
  border-bottom: 1px dotted #999;
}

.content-form th,
.content-form td {
  border: none;
  padding: 16px 12px;
  vertical-align: top;
}

.content-form th {
  width: 260px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  white-space: normal;
}

.content-form td {
  text-align: left;
  font-size: 14px;
  color: #111;
}

/* 予約情報・人数は今回は目立たせすぎない */
#booking-reservation-fieldset {
  margin-bottom: 20px;
}

#booking-reservation-fieldset table {
  background: #fff;
  border: 1px solid #ddd;
}

#booking-reservation-fieldset th,
#booking-reservation-fieldset td {
  padding: 14px 16px;
}

#booking-reservation-fieldset td,
#booking-reservation-fieldset table tr:first-child td {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
}

/* ご連絡先 → 追加項目 → お問い合わせを連続して見せる */
#booking_client-fieldset,
#booking-option-fieldset,
#booking-message-fieldset {
  background: transparent;
}

/* 必須説明 */
#booking_client-fieldset > .required {
  display: inline-block;
  margin: 0 0 14px;
  color: #d20020;
  font-size: 12px;
}

.content-form .required {
  color: #d20020;
  font-weight: 700;
  font-size: .8em;
}

/* 入力欄 */
.content-form input[type="text"],
.content-form input[type="email"],
.content-form input[type="tel"],
.content-form input[type="number"],
.content-form input[type="date"],
.content-form textarea,
.content-form select {
  width: 100%;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  box-sizing: border-box;
}

.content-form textarea {
  min-height: 150px;
  resize: vertical;
}

.content-form input:focus,
.content-form textarea:focus,
.content-form select:focus {
  outline: none;
  border-color: #b40020;
  box-shadow: 0 0 0 2px rgba(180, 0, 32, .12);
  background: #fff;
}

/* 幅指定 */
.content-form .content-text.small,
.content-form .content-text.small-medium,
.content-form .content-text.medium,
.content-form .content-text.fat {
  width: 100%;
}

.content-form .content-text.small {
  max-width: 120px;
}

.content-form .content-text.small-medium {
  max-width: 280px;
}

.content-form .content-text.medium {
  max-width: 420px;
}

.content-form .content-text.fat {
  max-width: none;
}

/* 姓名 */
.content-form .booking-seimei {
  display: inline-block;
  width: auto;
  margin: 0 8px 0 0;
  font-size: 13px;
  color: #333;
  font-weight: 400;
}

#booking-sei,
#booking-mei,
#booking-sei_kana,
#booking-mei_kana {
  width: calc(50% - 45px);
  max-width: 220px;
  margin-right: 14px;
}

#booking-mei,
#booking-mei_kana {
  margin-right: 0;
}

/* 住所2行目 */
#client-address2 {
  margin-top: 8px;
}

/* 年齢 */
#booking-option-age {
  width: 120px;
  max-width: 120px;
  display: inline-block;
}

/* オプション注記 */
.content-form .option-note {
  display: inline-block;
  margin-left: 8px;
  color: #333;
  font-size: 14px;
}

/* チェックボックス・ラジオ */
.content-form label.field-item {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

.content-form label.field-item input[type="checkbox"],
.content-form label.field-item input[type="radio"] {
  width: auto;
  height: auto;
  margin: 0 6px 0 0;
  transform: none;
  vertical-align: middle;
  accent-color: #b40020;
}

.content-form input[type="checkbox"],
.content-form input[type="radio"] {
  transform: none;
}

/* きっかけのラジオは旧フォーム寄せで縦並び */
.check-kikkake {
  display: block;
}

/* 内容チェックボックスも縦並び */
.check-naiyo {
  display: block;
}

/* メッセージ */
#booking-message-fieldset textarea {
  min-height: 150px;
}

/* エラー */
.content-form .form-message {
  width: 100%;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #f0d1d1;
  background: #fff7f7;
}

.content-form .form-message.error,
.content-form .error-message {
  color: #d94b4b;
  font-size: 13px;
  line-height: 1.6;
}

/* 人数 */
.booking-form-people-number-row br {
  display: none;
}

.booking-form-people-number-row .input-number {
  display: flex;
  align-items: center;
  gap: 10px;
  float: none;
  margin: 0;
}

.booking-form-people-number-row .input-number label {
  margin: 0;
  display: inline-block !important;
  font-size: 14px;
  color: #333;
}

.booking-form-people-number-row select {
  width: auto;
  min-width: 80px;
}

/* 郵便番号検索ボタン */
.content-form .button-secondary {
  min-height: 40px;
  margin: 8px 0 0;
  padding: 0 16px;
  border: 1px solid #ccc;
  background: #eee;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

/* 送信ボタン */
#action-button {
  margin-top: 36px;
  text-align: center !important;
}

#action-button button {
  appearance: none;
  min-width: 180px;
  min-height: 44px;
  padding: 0 30px;
  border: none;
  border-radius: 0;
  background: #7b603f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: none;
  cursor: pointer;
}

#action-button button:hover {
  opacity: .85;
}

#action-button button:active {
  transform: translateY(1px);
}

/* 規約まわり */
#terms-conditions,
#accedence-box,
#button-message {
  margin: 16px 0;
  padding: 14px 16px;
  background: #fff;
}

#terms-conditions a {
  color: #b40020;
  font-weight: 700;
  text-decoration: underline;
}

#accedence-box label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* 確認画面 */
.content-form td.option-confirm-header {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

/* =========================================================
   MTS 会場場所表示
========================================================= */

.mts-venue-info {
  max-width: 980px;
  margin: 32px auto;
  padding: 18px 24px;
  border: 2px solid #ccc;
  border-right: 0;
  border-left: 0;
  text-align: center;
  line-height: 1.8;
}

.mts-venue-info__label {
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: bold;
  color: #246b80;
}

.mts-venue-info__text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* カレンダー前リード */
.form-lead {
  margin: 30px auto;
  padding: 20px;
  background: #f8f8f8;
  line-height: 1.8;
  text-align: center;
  font-size: 1.1em;
}

/* =========================================================
   タブレット
========================================================= */

@media (max-width: 900px) {
  .day-calendar,
  .monthly-calendar,
  .list-calendar table,
  .monthly-calendar table,
  .content-form {
    max-width: 100%;
  }

  #booking-form,
  .content-form {
    padding: 45px 35px;
  }

  .content-form th {
    width: 220px;
  }

  #booking-reservation-fieldset td,
  #booking-reservation-fieldset table tr:first-child td {
    font-size: 15px;
  }

  .mtssb-timetable-name {
    font-size: 24px;
  }

  .mtssb-timetable-date {
    font-size: 18px;
  }

  #booking-sei,
  #booking-mei,
  #booking-sei_kana,
  #booking-mei_kana {
    max-width: 180px;
  }
}

/* =========================================================
   スマホ
========================================================= */

@media (max-width: 767px) {
  .cont-wrap {
    width: 96%;
    margin: 0 auto;
  }

  .day-calendar,
  .monthly-calendar,
  .list-calendar table,
  .monthly-calendar table,
  .content-form {
    width: 100%;
    margin: 24px auto;
  }

  .calendar-title {
    padding: 16px 12px;
    margin-top: 12px !important;
    margin-bottom: 18px !important;
    font-size: 22px;
    line-height: 1.5;
  }

  .calendar-caption {
    padding: 12px 10px;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px !important;
  }

  .monthly-prev-next {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .monthly-prev,
  .monthly-next {
    width: auto;
    text-align: center;
    padding: 12px 10px;
  }

  .day-number {
    font-size: 16px;
  }

  .monthly-calendar td {
    font-size: 13px !important;
    padding: 10px 6px;
  }

  .calendar-mark {
    padding: 0;
    font-size: 1rem;
  }

  .day-calendar table {
    display: table;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .day-calendar .mtssb-timetable-link {
    min-width: 320px;
  }

  .day-calendar caption {
    display: table-caption;
    width: 100%;
    margin: 0 auto 14px;
    padding: 0;
    font-size: 14px;
  }

  .mtssb-timetable-name {
    font-size: 22px;
    line-height: 1.4;
  }

  .mtssb-timetable-date {
    font-size: 16px;
    line-height: 1.4;
  }

  .mtssb-daily-action button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    font-size: 16px;
  }

  #booking-form,
  .content-form {
    width: 96%;
    max-width: 100%;
    padding: 28px 16px;
    font-size: 14px;
    overflow-x: hidden;
  }

  .content-form table,
  .content-form tbody,
  .content-form tr,
  .content-form th,
  .content-form td {
    display: block;
    width: 100%;
  }

  .content-form tr {
    padding: 14px 0;
  }

  .content-form th,
  .content-form td {
    padding: 0;
  }

  .content-form th {
    padding-bottom: 6px;
    font-size: 14px;
  }

  .content-form td {
    font-size: 14px;
    line-height: 1.8;
  }

  #booking-reservation-fieldset table {
    background: #fff;
  }

  #booking-reservation-fieldset th,
  #booking-reservation-fieldset td {
    padding: 10px;
  }

  .content-form input[type="text"],
  .content-form input[type="email"],
  .content-form input[type="tel"],
  .content-form input[type="number"],
  .content-form input[type="date"],
  .content-form textarea,
  .content-form select {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    font-size: 16px;
  }

  .content-form textarea,
  #booking-message-fieldset textarea {
    min-height: 150px;
  }

  .content-form .booking-seimei {
    display: inline-block;
    margin: 0 0 4px;
  }

  #booking-sei,
  #booking-mei,
  #booking-sei_kana,
  #booking-mei_kana {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
  }

  #booking-option-age {
    width: 120px;
    max-width: 120px;
  }

  .booking-form-people-number-row .input-number {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .content-form label.field-item {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
  }

  #action-button {
    margin-top: 24px;
  }

  #action-button button {
    width: 80%;
    min-width: 0;
    min-height: 48px;
  }

  .list-calendar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .list-calendar table {
    min-width: 760px;
    width: max-content;
    max-width: none;
    margin: 20px 0;
  }

  .list-calendar th,
  .list-calendar td {
    white-space: nowrap;
  }

  .mts-venue-info {
    margin: 18px 8px 16px;
    padding: 14px 8px;
  }

  .mts-venue-info__label,
  .mts-venue-info__text {
    font-size: 16px;
  }

  .mts-venue-info__text {
    text-align: left;
  }
}

/* 確認画面：空の見出し行を消す */
#booking-confirm-fieldset .option-confirm-header:empty,
#booking-confirm-fieldset #confirmation-booking-message-title {
  display: none;
}

/* 空見出し行のtrごと高さをなくす */
#booking-confirm-fieldset tr:has(.option-confirm-header:empty),
#booking-confirm-fieldset tr#confirmation-booking-message-title {
  display: none;
}