/* ========================================
   Schedule Page Styles
   PC: 1440px base / SP: 375px base / Breakpoint: 768px
======================================== */

/* ========================================
   Hero
======================================== */
.p-schedule__hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: calc(400 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__hero {
    height: 400px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__hero {
    height: calc(220 / 375 * 100vw);
  }
}

.p-schedule__hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.p-schedule__hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-schedule__hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.p-schedule__hero-title-en {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: 0.08em;
  font-size: calc(50 / 1440 * 100vw);
  margin-bottom: calc(10 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__hero-title-en {
    font-size: 50px;
    margin-bottom: 10px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__hero-title-en {
    font-size: calc(36 / 375 * 100vw);
    margin-bottom: calc(6 / 375 * 100vw);
  }
}

.p-schedule__hero-title-ja {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  font-size: calc(18 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__hero-title-ja {
    font-size: 18px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__hero-title-ja {
    font-size: calc(14 / 375 * 100vw);
  }
}

/* ========================================
   Breadcrumbs
======================================== */
.p-schedule__breadcrumbs {
  background-color: #F3F3F3;
  width: 100%;
  padding: calc(20 / 1440 * 100vw) 0;
}
@media screen and (min-width: 1441px) {
  .p-schedule__breadcrumbs {
    padding: 20px 0;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__breadcrumbs {
    padding: calc(14 / 375 * 100vw) 0;
  }
}

.p-schedule__breadcrumbs-inner {
  width: 100%;
  padding: 0 calc(140 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__breadcrumbs-inner {
    padding: 0 140px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__breadcrumbs-inner {
    padding: 0 calc(20 / 375 * 100vw);
  }
}

/* breadcrumbs list — reuse from single.css */
.p-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  color: #3B3B3B;
  gap: 0;
  font-size: calc(14 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-breadcrumbs {
    font-size: 14px;
  }
}
@media screen and (max-width: 768px) {
  .p-breadcrumbs {
    font-size: calc(12 / 375 * 100vw);
  }
}

.p-breadcrumbs__item {
  display: flex;
  align-items: center;
}

.p-breadcrumbs__item + .p-breadcrumbs__item::before {
  content: ">";
  display: inline-block;
  margin: 0 8px;
  color: #3B3B3B;
  font-size: calc(12 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-breadcrumbs__item + .p-breadcrumbs__item::before {
    font-size: 12px;
  }
}
@media screen and (max-width: 768px) {
  .p-breadcrumbs__item + .p-breadcrumbs__item::before {
    margin: 0 4px;
    font-size: calc(10 / 375 * 100vw);
  }
}

.p-breadcrumbs__link {
  color: #3B3B3B;
  text-decoration: none;
  transition: opacity 0.3s;
}

.p-breadcrumbs__link:hover {
  opacity: 0.7;
}

.p-breadcrumbs__current {
  color: #1C2D6E;
  font-weight: 600;
}

/* ========================================
   Section Heading (shared)
======================================== */
.p-schedule__section-heading {
  margin-bottom: calc(50 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__section-heading {
    margin-bottom: 50px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__section-heading {
    margin-bottom: calc(30 / 375 * 100vw);
  }
}

.p-schedule__section-title {
  background-color: #1C2D6E;
  color: #FFFFFF;
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: calc(38 / 1920 * 100vw);
  padding: calc(16 / 1920 * 100vw) 0;
}
@media screen and (max-width: 768px) {
  .p-schedule__section-title {
    font-size: calc(16 / 375 * 100vw);
    padding: calc(12 / 375 * 100vw) 0;
  }
}

/* ========================================
   Calendar Section
======================================== */
.p-schedule__calendar {
  background-color: #F3F3F3;
  width: 100%;
  padding: calc(80 / 1440 * 100vw) 0;
}
@media screen and (min-width: 1441px) {
  .p-schedule__calendar {
    padding: 80px 0;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__calendar {
    padding: calc(50 / 375 * 100vw) 0;
  }
}

.p-schedule__calendar-inner {
  max-width: calc(900 / 1440 * 100vw);
  margin: 0 auto;
  padding: 0 calc(20 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__calendar-inner {
    max-width: 900px;
    padding: 0 20px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__calendar-inner {
    max-width: none;
    padding: 0 calc(20 / 375 * 100vw);
  }
}

/* Calendar lead text */
.p-schedule__calendar-lead {
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  color: #3B3B3B;
  line-height: 2;
  font-size: calc(16 / 1440 * 100vw);
  margin-bottom: calc(40 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__calendar-lead {
    font-size: 16px;
    margin-bottom: 40px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__calendar-lead {
    font-size: calc(13 / 375 * 100vw);
    margin-bottom: calc(24 / 375 * 100vw);
  }
}

/* Month header bar */
.p-schedule__month-bar {
  background-color: #1C2D6E;
  color: #FFFFFF;
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: calc(20 / 1440 * 100vw);
  padding: calc(14 / 1440 * 100vw) 0;
}
@media screen and (min-width: 1441px) {
  .p-schedule__month-bar {
    font-size: 20px;
    padding: 14px 0;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__month-bar {
    font-size: calc(16 / 375 * 100vw);
    padding: calc(10 / 375 * 100vw) 0;
  }
}

/* Status symbols */
.p-schedule__status {
  display: inline-block;
  font-weight: 700;
}

.p-schedule__status--maru {
  color: #2E8B57;
}

.p-schedule__status--sankaku {
  color: #E8A100;
}

.p-schedule__status--batsu {
  color: #CF1B1B;
}

.p-schedule__status--tel {
  color: #1C2D6E;
  font-family: 'Roboto', 'Noto Serif JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Calendar Grid */
.p-schedule__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #D0D0D0;
  background-color: #fff;
}

/* Weekday headers */
.p-schedule__weekday {
  background-color: #EAEAEA;
  color: #666;
  text-align: center;
  font-family: 'Roboto', 'Noto Serif JP', sans-serif;
  font-weight: 500;
  border-right: 1px solid #D0D0D0;
  border-bottom: 1px solid #D0D0D0;
  padding: calc(10 / 1440 * 100vw) 0;
  font-size: calc(12 / 1440 * 100vw);
  letter-spacing: 0.05em;
}
@media screen and (min-width: 1441px) {
  .p-schedule__weekday {
    padding: 10px 0;
    font-size: 12px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__weekday {
    padding: calc(8 / 375 * 100vw) 0;
    font-size: calc(10 / 375 * 100vw);
  }
}

.p-schedule__weekday--sat {
  color: #185289;
}

.p-schedule__weekday--sun {
  color: #CF1B1B;
}

/* Day cells */
.p-schedule__cell {
  border-right: 1px solid #D0D0D0;
  border-bottom: 1px solid #D0D0D0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #fff;
  padding: calc(8 / 1440 * 100vw) calc(10 / 1440 * 100vw);
  min-height: calc(80 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__cell {
    padding: 8px 10px;
    min-height: 80px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__cell {
    padding: calc(4 / 375 * 100vw) calc(6 / 375 * 100vw);
    min-height: calc(56 / 375 * 100vw);
  }
}

.p-schedule__cell--empty {
  background-color: #FAFAFA;
}

/* 前月の日付セル */
.p-schedule__cell--outside {
  background-color: #FAFAFA;
}

.p-schedule__cell--outside .p-schedule__day {
  color: #CCC;
}

.p-schedule__cell--sat .p-schedule__day {
  color: #185289;
}

.p-schedule__cell--sun .p-schedule__day {
  color: #CF1B1B;
}

/* Day number（左上配置） */
.p-schedule__day {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: #3B3B3B;
  font-size: calc(14 / 1440 * 100vw);
  line-height: 1;
}
@media screen and (min-width: 1441px) {
  .p-schedule__day {
    font-size: 14px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__day {
    font-size: calc(12 / 375 * 100vw);
  }
}

/* Status symbol（セル中央配置） */
.p-schedule__cell .p-schedule__status {
  align-self: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  font-size: calc(24 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__cell .p-schedule__status {
    font-size: 24px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__cell .p-schedule__status {
    font-size: calc(18 / 375 * 100vw);
  }
}

.p-schedule__nodata {
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  color: #999;
  padding: calc(40 / 1440 * 100vw) 0;
  font-size: calc(16 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__nodata {
    padding: 40px 0;
    font-size: 16px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__nodata {
    padding: calc(30 / 375 * 100vw) 0;
    font-size: calc(14 / 375 * 100vw);
  }
}

/* ========================================
   Form Section
======================================== */
.p-schedule__form-section {
  background-color: #F3F3F3;
  width: 100%;
  padding: 0 0 calc(100 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__form-section {
    padding-bottom: 100px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__form-section {
    padding-bottom: calc(60 / 375 * 100vw);
  }
}

.p-schedule__form-inner {
  max-width: calc(900 / 1440 * 100vw);
  margin: 0 auto;
  padding: 0 calc(20 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__form-inner {
    max-width: 900px;
    padding: 0 20px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__form-inner {
    max-width: none;
    padding: 0 calc(20 / 375 * 100vw);
  }
}

.p-schedule__form-card {
  background-color: #fff;
  box-shadow: 0 calc(4 / 1440 * 100vw) calc(20 / 1440 * 100vw) rgba(0, 0, 0, 0.08);
  padding: calc(60 / 1440 * 100vw) calc(80 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .p-schedule__form-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 60px 80px;
  }
}
@media screen and (max-width: 768px) {
  .p-schedule__form-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: calc(30 / 375 * 100vw) calc(20 / 375 * 100vw);
  }
}

/* ========================================
   Schedule Form (schedule-form BEM)
======================================== */

/* --- CF7 wrapper resets --- */
.schedule-form__row--vertical .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* --- Row base --- */
.schedule-form__row {
  margin-bottom: calc(32 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__row {
    margin-bottom: 32px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__row {
    margin-bottom: calc(24 / 375 * 100vw);
  }
}

/* --- Label area (shared) --- */
.schedule-form__label-area {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: calc(10 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__label-area {
    gap: 10px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__label-area {
    gap: calc(8 / 375 * 100vw);
  }
}

.schedule-form__label-area p {
  line-height: 0;
}

.schedule-form__label-text {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: #3B3B3B;
  letter-spacing: 0.05em;
  line-height: 1.5;
  font-size: calc(15 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__label-text {
    font-size: 15px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__label-text {
    font-size: calc(13 / 375 * 100vw);
  }
}

.schedule-form__note {
  font-weight: 500;
  color: #888;
  font-size: calc(12 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__note {
    font-size: 12px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__note {
    font-size: calc(10 / 375 * 100vw);
  }
}

/* --- Badge --- */
.schedule-form__badge {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-size: calc(12 / 1440 * 100vw);
  padding: calc(5 / 1440 * 100vw) calc(14 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__badge {
    font-size: 12px;
    padding: 5px 14px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__badge {
    font-size: calc(10 / 375 * 100vw);
    padding: calc(4 / 375 * 100vw) calc(10 / 375 * 100vw);
  }
}

.schedule-form__badge--required {
  background-color: #CF1B1B;
  color: #fff;
  margin-left: calc(8 / 1920 * 100vw);
}

/* --- Date row (horizontal: label left, selects right) --- */
.schedule-form .contact__field {
  display: flex;
  align-items: center;
  gap: calc(24 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form .contact__field {
    gap: 24px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form .contact__field {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(8 / 375 * 100vw);
  }
}

.schedule-form__row--date .schedule-form__label-area {
  flex-shrink: 0;
  width: calc(300 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__row--date .schedule-form__label-area {
    width: 300px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__row--date .schedule-form__label-area {
    width: auto;
  }
}

.schedule-form__date-selects {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: calc(6 / 1440 * 100vw);
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  color: #3B3B3B;
  font-size: calc(15 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__date-selects {
    gap: 6px;
    font-size: 15px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__date-selects {
    flex-wrap: wrap;
    gap: calc(4 / 375 * 100vw);
    font-size: calc(13 / 375 * 100vw);
  }
}

.schedule-form__date-selects .wpcf7-form-control-wrap {
  display: inline-flex;
  align-items: center;
}

.schedule-form__date-selects select {
  border: 1px solid #D0D0D0;
  background-color: #fff;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
  padding: calc(10 / 1440 * 100vw) calc(16 / 1440 * 100vw);
  font-size: calc(15 / 1440 * 100vw);
  min-width: calc(80 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__date-selects select {
    padding: 10px 16px;
    font-size: 15px;
    min-width: 80px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__date-selects select {
    padding: calc(8 / 375 * 100vw) calc(10 / 375 * 100vw);
    font-size: calc(13 / 375 * 100vw);
    min-width: calc(70 / 375 * 100vw);
  }
}

/* --- Vertical row (label top, input bottom: full width) --- */
.schedule-form__row--vertical .schedule-form__label-area {
  margin-bottom: calc(10 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__row--vertical .schedule-form__label-area {
    margin-bottom: 10px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__row--vertical .schedule-form__label-area {
    margin-bottom: calc(8 / 375 * 100vw);
  }
}

.schedule-form__input {
  width: 100%;
  border: 1px solid #D0D0D0;
  background-color: #fff;
  font-family: 'Noto Serif JP', serif;
  height: calc(50 / 1440 * 100vw);
  padding: 0 calc(15 / 1440 * 100vw);
  font-size: calc(15 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__input {
    height: 50px;
    padding: 0 15px;
    font-size: 15px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__input {
    height: calc(44 / 375 * 100vw);
    padding: 0 calc(12 / 375 * 100vw);
    font-size: calc(14 / 375 * 100vw);
  }
}

/* --- Horizontal row（ラジオ・ファイル添付）--- */
.schedule-form__row--horizontal {
  display: flex;
  align-items: flex-start;
}
@media screen and (max-width: 768px) {
  .schedule-form__row--horizontal {
    flex-direction: column;
  }
}

.schedule-form__radio-area {
  margin-left: calc(32 / 1920 * 100vw);
}
@media screen and (max-width: 768px) {
  .schedule-form__radio-area {
    margin-left: 0;
    margin-top: calc(8 / 375 * 100vw);
  }
}

span.wpcf7-list-item-label {
  font-size: calc(20 / 1920 * 100vw);
}
@media screen and (min-width: 1921px) {
  span.wpcf7-list-item-label {
    font-size: 20px;
  }
}
@media screen and (max-width: 768px) {
  span.wpcf7-list-item-label {
    font-size: calc(20 / 375 * 100vw);
  }
}

.schedule-form__file-area {
  margin-left: calc(74 / 1920 * 100vw);
}
@media screen and (max-width: 768px) {
  .schedule-form__file-area {
    margin-left: 0;
    margin-top: calc(8 / 375 * 100vw);
    width: 100%;
  }
}

.schedule-form__file-area input[type="file"] {
  font-size: calc(17 / 1920 * 100vw);
}
@media screen and (min-width: 1921px) {
  .schedule-form__file-area input[type="file"] {
    font-size: 17px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__file-area input[type="file"] {
    font-size: calc(17 / 375 * 100vw);
  }
}

.schedule-form__file-area input[type="file"]::file-selector-button {
  font-size: calc(16 / 1920 * 100vw);
  width: calc(157 / 1920 * 100vw);
  height: calc(34 / 1920 * 100vw);
  box-sizing: border-box;
}
@media screen and (min-width: 1921px) {
  .schedule-form__file-area input[type="file"]::file-selector-button {
    font-size: 16px;
    width: 157px;
    height: 34px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__file-area input[type="file"]::file-selector-button {
    font-size: calc(15 / 390 * 100vw);
    width: calc(130 / 390 * 100vw);
    height: calc(28 / 390 * 100vw);
  }
}

.schedule-form__file-area input[type="file"]::-webkit-file-upload-button {
  font-size: calc(16 / 1920 * 100vw);
  width: calc(157 / 1920 * 100vw);
  height: calc(34 / 1920 * 100vw);
  box-sizing: border-box;
}
@media screen and (min-width: 1921px) {
  .schedule-form__file-area input[type="file"]::-webkit-file-upload-button {
    font-size: 16px;
    width: 157px;
    height: 34px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__file-area input[type="file"]::-webkit-file-upload-button {
    font-size: calc(15 / 390 * 100vw);
    width: calc(130 / 390 * 100vw);
    height: calc(28 / 390 * 100vw);
  }
}

/* Submit button */
.schedule-form__submit {
  text-align: center;
  margin-top: calc(50 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__submit {
    margin-top: 50px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__submit {
    margin-top: calc(30 / 375 * 100vw);
  }
}

.schedule-form__submit .btn--submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1C2D6E;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
  width: calc(260 / 1440 * 100vw);
  height: calc(56 / 1440 * 100vw);
  font-size: calc(17 / 1440 * 100vw);
}
@media screen and (min-width: 1441px) {
  .schedule-form__submit .btn--submit {
    width: 260px;
    height: 56px;
    font-size: 17px;
  }
}
@media screen and (max-width: 768px) {
  .schedule-form__submit .btn--submit {
    width: calc(240 / 375 * 100vw);
    height: calc(50 / 375 * 100vw);
    font-size: calc(15 / 375 * 100vw);
  }
}

.schedule-form__submit .btn--submit:hover {
  opacity: 0.8;
}

/* ========================================
   Body class
======================================== */
body.page-template-page-schedule {
  background-color: #F3F3F3;
}
