/* 米沢合宿：入卒カレンダー（静的 plan-cal / plan-schedule-filter に合わせる） */

/*
 * style.css の「教習時限数」向け
 * [data-plan-panel] .container2 table { min-width: 600px } が
 * カレンダー表にも当たりスマホではみ出すため、ここで打ち消す。
 */
[data-plan-panel] .container2 .js-plan-calendar table,
.js-plan-calendar table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  margin-bottom: 0;
  border-radius: 0;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: visible;
  box-sizing: border-box;
}

.js-plan-calendar {
  position: relative;
  margin-bottom: 30px;
  min-height: 80px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
.js-plan-calendar.is-loading::after {
  content: "読み込み中…";
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text, #333);
  font-size: 14px;
  font-weight: 700;
}
.js-plan-calendar .plan-cal-error {
  margin: 16px 0;
  color: var(--color-accent, #d50024);
  text-align: center;
}

.js-plan-calendar .ta_center,
.ta_center {
  text-align: center !important;
}

/* 検索ボックスは style.css の .plan-schedule-filter を利用 */
.js-plan-calendar .plan-schedule-filter {
  margin-bottom: 28px;
}

/* 月送り */
.js-plan-calendar .plan-cal-nav {
  margin-top: 8px;
  margin-bottom: 16px;
}

/* PCカレンダー表 */
.js-plan-calendar .plan-cal-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
[data-plan-panel] .container2 .js-plan-calendar table.tbl,
[data-plan-panel] .container2 .js-plan-calendar table.plan-cal-table,
.js-plan-calendar table.tbl,
.js-plan-calendar table.plan-cal-table {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto;
  border: 1px solid #d0d0d0;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}
[data-plan-panel] .container2 .js-plan-calendar table.tbl th,
[data-plan-panel] .container2 .js-plan-calendar table.tbl td,
.js-plan-calendar table.tbl th,
.js-plan-calendar table.tbl td {
  padding: 6px !important;
  border: 1px solid #d0d0d0 !important;
  border-right: 1px solid #d0d0d0 !important;
  border-bottom: 1px solid #d0d0d0 !important;
  font-size: 12px !important;
  line-height: 1.4;
  vertical-align: top;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}
.js-plan-calendar table.tbl th {
  background: #f0f0f0 !important;
  color: var(--color-heading, #222);
  font-weight: 700;
}
.js-plan-calendar table.tbl th.sun {
  background: var(--color-accent, #d50024) !important;
  color: #fff !important;
}
.js-plan-calendar table.tbl th.sat {
  background: #00469c !important;
  color: #fff !important;
}
.js-plan-calendar table.tbl td {
  min-height: 118px;
  height: 118px;
  background: #fff !important;
  font-weight: 500;
  color: var(--color-text, #333);
}
[data-plan-panel] .container2 .js-plan-calendar table.tbl tbody td:first-child {
  background: #fff !important;
  font-weight: 500;
  color: var(--color-text, #333);
}
.js-plan-calendar table.tbl td.is-bookable {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.js-plan-calendar table.tbl td.is-bookable:hover,
.js-plan-calendar table.tbl td.is-bookable:focus-visible {
  background: #fff5f6;
  outline: none;
}
.js-plan-calendar table.tbl td.is-unavailable {
  cursor: default;
  opacity: 0.85;
}
.js-plan-calendar .plan-cal-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-height: 100px;
}
.js-plan-calendar table.tbl .hi {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading, #222);
}
.js-plan-calendar table.tbl .price,
.js-plan-calendar .tbl .price {
  margin: 4px 0 2px;
  color: var(--color-accent, #d50024);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.js-plan-calendar .tbl .sotsugyo {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-text, #333);
  text-align: center;
}
.js-plan-calendar .tokuwari {
  display: inline-block;
  margin-bottom: 2px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #fff59f;
  color: #333;
  font-size: 10px;
  font-weight: 700;
}
.js-plan-calendar .closed {
  margin: 8px 0 0;
  padding: 2px 4px;
  border-radius: 4px;
  background: #ccc;
  color: #242424;
  font-size: 11px;
  text-align: center;
}
.js-plan-calendar table.tbl .btn_w,
.js-plan-calendar .resvBtn,
.js-plan-calendar .batsu,
.js-plan-calendar span.batsu,
.js-plan-calendar img.batsu {
  display: none !important;
}

.hannigaiTxt {
  margin-top: 24px;
  text-align: center;
}

/* スマホ一覧 */
.js-plan-calendar .sp_disp {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
[data-plan-panel] .container2 .js-plan-calendar table.callist_tbl,
.js-plan-calendar table.callist_tbl,
table.callist_tbl {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  border: 1px solid #d0d0d0;
  border-collapse: collapse;
  table-layout: fixed;
  box-sizing: border-box;
}
[data-plan-panel] .container2 .js-plan-calendar table.callist_tbl th,
[data-plan-panel] .container2 .js-plan-calendar table.callist_tbl td,
.js-plan-calendar table.callist_tbl th,
.js-plan-calendar table.callist_tbl td,
table.callist_tbl th,
table.callist_tbl td {
  padding: 6px 3px !important;
  border: 1px solid #d0d0d0 !important;
  border-right: 1px solid #d0d0d0 !important;
  border-bottom: 1px solid #d0d0d0 !important;
  background: #fff;
  vertical-align: middle;
  text-align: center;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text, #333);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}
[data-plan-panel] .container2 .js-plan-calendar table.callist_tbl th,
.js-plan-calendar table.callist_tbl th,
table.callist_tbl th {
  background: #f0f0f0 !important;
  font-weight: 700;
  color: var(--color-heading, #222);
}
[data-plan-panel]
  .container2
  .js-plan-calendar
  table.callist_tbl
  tbody
  td:first-child,
.js-plan-calendar table.callist_tbl tbody td:first-child {
  background: #fff !important;
  font-weight: 500;
  color: var(--color-text, #333);
}
table.callist_tbl th:nth-child(1),
table.callist_tbl td:nth-child(1) {
  width: 22%;
}
table.callist_tbl th:nth-child(2),
table.callist_tbl td:nth-child(2) {
  width: 28%;
}
table.callist_tbl th:nth-child(3),
table.callist_tbl td:nth-child(3) {
  width: 50%;
}
.tokuBg {
  background-color: #fff59f;
}
.tokuTxt {
  color: #c9a800;
}
.tokuTxtWrap {
  margin-top: 8px;
  font-size: 12px;
}
table.callist_tbl .resvBtn,
table.callist_tbl .batsu {
  display: none !important;
}
table.callist_tbl tr.is-bookable {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
table.callist_tbl tr.is-bookable:hover,
table.callist_tbl tr.is-bookable:focus-visible {
  background: #fff5f6;
  outline: none;
}
table.callist_tbl tr.is-unavailable {
  cursor: default;
  opacity: 0.85;
}
.callist_tbl .price {
  color: var(--color-accent, #d50024);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.callist_tbl .kitaku {
  font-size: 11px;
}

.pc_disp {
  display: block;
}
.sp_disp {
  display: none;
}
.pc_disp_in {
  display: inline;
}
.sp_disp_in {
  display: none;
}

@media screen and (max-width: 768px) {
  .pc_disp {
    display: none;
  }
  .sp_disp {
    display: block;
  }
  .pc_disp_in {
    display: none;
  }
  .sp_disp_in {
    display: inline;
  }
  .js-plan-calendar .plan-schedule-filter {
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 14px;
    padding-right: 14px;
  }
  .js-plan-calendar .plan-schedule-filter__field {
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 6px 8px;
  }
  .js-plan-calendar .plan-schedule-filter__field label {
    font-size: 12px;
  }
  .js-plan-calendar .plan-schedule-filter__date {
    flex-wrap: wrap;
    min-width: 0;
  }
  .js-plan-calendar .plan-schedule-filter__field select,
  .js-plan-calendar .plan-schedule-filter__date select {
    min-width: 0;
    max-width: 100%;
  }
  .js-plan-calendar .plan-cal-nav {
    gap: 8px;
    flex-wrap: wrap;
  }
  .js-plan-calendar .plan-cal-nav__btn {
    flex: 0 1 auto;
    font-size: 13px;
  }
  table.callist_tbl th,
  table.callist_tbl td,
  [data-plan-panel] .container2 .js-plan-calendar table.callist_tbl th,
  [data-plan-panel] .container2 .js-plan-calendar table.callist_tbl td {
    padding: 6px 2px !important;
    font-size: 15px !important;
    line-height: 1.45;
  }
  .callist_tbl .price,
  [data-plan-panel] .container2 .js-plan-calendar .callist_tbl .price {
    font-size: 16px !important;
    line-height: 1.25;
    background: transparent !important;
    color: var(--color-accent, #d50024) !important;
    font-weight: 700;
  }
  .callist_tbl .price span {
    display: inline-block;
    font-size: 10px !important;
    line-height: 1.3;
    font-weight: 500;
  }
  .js-plan-calendar table.tbl td {
    height: auto;
    min-height: 0;
    padding: 4px !important;
    font-size: 11px;
  }
  .js-plan-calendar table.tbl .hi {
    font-size: 12px;
  }
  .js-plan-calendar table.tbl .price,
  .js-plan-calendar .tbl .price {
    font-size: 11px;
  }
  .js-plan-calendar .tbl .sotsugyo {
    font-size: 10px;
  }
}
