/* ========================================
   スケジュールページ
======================================== */

.schedule-page {
  padding: 52px 20px 80px;

  background: linear-gradient(
    180deg,
    #eefaff 0%,
    #f9fdff 45%,
    #eef9fd 100%
  );
}

.schedule-page .container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.schedule-card {
  padding: 36px;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(85, 176, 215, 0.22);
  border-radius: 30px;

  box-shadow:
    0 24px 60px rgba(43, 124, 161, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


/* ========================================
   スケジュール見出し
======================================== */

.schedule-header {
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title version"
    "caption period";
  align-items: end;
  gap: 8px 30px;

  margin-bottom: 28px;
  padding: 34px 40px;

  background: linear-gradient(
    135deg,
    #f2fbfe 0%,
    #fff 62%,
    #edf9fd 100%
  );

  border: 1px solid rgba(77, 177, 215, 0.24);
  border-left: 7px solid #58bddf;
  border-radius: 20px;

  text-align: left;

  box-shadow:
    0 12px 28px rgba(45, 127, 164, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


/* 教室名 */
.schedule-header .title {
  grid-area: title;

  margin: 0;

  color: #244e62;

  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
}


/* 年度 */
.schedule-header .version {
  grid-area: version;
  align-self: center;

  margin: 0;
  padding: 8px 18px;

  color: #fff;
  background: #54b9da;
  border-radius: 999px;

  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;

  box-shadow: 0 6px 14px rgba(53, 156, 194, 0.18);
}


/* 対象期間 */
.schedule-header .period {
  grid-area: period;

  margin: 0;

  color: #6d8b99;

  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.04em;
}


/* 参観について */
.schedule-header .caption {
  grid-area: caption;

  margin: 0;

  color: #69818c;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}


/* ========================================
   テーブル外枠
======================================== */

.table-scroll {
  overflow-x: auto;

  padding: 10px;

  background: #edf7fa;
  border-radius: 22px;

  scrollbar-color: #74c7e2 #e6f3f7;
  scrollbar-width: thin;
}

.table-fit {
  min-width: 1000px;
}


/* ========================================
   テーブル
======================================== */

.lesson-table {
  width: 100%;

  background: transparent;
  border-collapse: separate;
  border-spacing: 5px;

  table-layout: fixed;
}

.lesson-table .col-day {
  width: 8%;
}

.lesson-table .col-morning {
  width: 26%;
}

.lesson-table .col-afternoon-slot {
  width: 22%;
}


/* ========================================
   テーブル見出し
======================================== */

.lesson-table thead th {
  height: 52px;
  padding: 10px 14px;

  color: #32657c;
  background: #fff;

  border: 1px solid rgba(76, 170, 208, 0.22);
  border-radius: 12px;

  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;

  box-shadow: 0 5px 14px rgba(53, 132, 169, 0.07);
}


/* ========================================
   テーブルセル共通
======================================== */

.lesson-table tbody th,
.lesson-table tbody td {
  height: 70px;
  box-sizing: border-box;
  padding: 14px 15px;

  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;

  text-align: center;
  vertical-align: middle;

  box-shadow:
    0 5px 13px rgba(51, 116, 145, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lesson-table tbody td:hover {
  position: relative;
  z-index: 1;

  box-shadow:
    0 10px 20px rgba(51, 116, 145, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);

  transform: translateY(-2px);
}


/* ========================================
   曜日
======================================== */

.lesson-table .day-cell {
  color: #347e9f;
  background: #fff;

  border: 1px solid rgba(74, 173, 212, 0.26);

  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;

  box-shadow:
    inset 4px 0 0 #69c4e3,
    0 5px 13px rgba(51, 116, 145, 0.06);
}


/* ========================================
   授業名・時間
======================================== */

.lesson-table .label {
  display: block;

  color: #254b5d;

  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.lesson-table .time {
  display: block;

  margin-top: 5px;

  color: #446b7e;

  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;

  font-variant-numeric: tabular-nums;
}


/* ========================================
   授業ごとの背景色
======================================== */

/* 年長対象クラス系 */
.lesson-table .slot-blue,
.lesson-table .slot-cyan {
  background: #cdeff5;
  border-color: #b2e4ee;
}


/* 幼稚園受験系 */
.lesson-table .slot-yellow {
  background: #fff2b5;
  border-color: #f5e28a;
}


/* 受験体操 */
.lesson-table .slot-orange {
  background: #f4a13a;
  border-color: #ea9226;
}

.lesson-table .slot-orange .label,
.lesson-table .slot-orange .time {
  color: #573200;
}


/* 年中対象クラス系 */
.lesson-table .slot-lime {
  background: #c9efa0;
  border-color: #afe17b;
}


/* 絵画・巧緻性 */
.lesson-table .slot-purple {
  background: #c999ef;
  border-color: #b77be5;
}

.lesson-table .slot-purple .label,
.lesson-table .slot-purple .time {
  color: #462463;
}


/* プライベートレッスン */
.lesson-table .slot-plain {
  background: #fff;
  border-color: rgba(225, 113, 155, 0.38);
}

.lesson-table .slot-plain .label {
  color: #b24770;
}


/* 空き枠 */
.lesson-table .slot-muted {
  background: #f5f7f7;
  border-color: #edf1f2;
}


/* ========================================
   作成日
======================================== */

.footer-note {
  margin: 22px 4px 0;

  color: #8297a1;

  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.05em;
}


/* ========================================
   スマートフォン
======================================== */

@media (max-width: 768px) {
  .schedule-page {
    padding: 18px 8px 40px;
  }

  .schedule-card {
    padding: 14px 6px;
    border-radius: 18px;
  }

  .schedule-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "version period"
      "title title"
      "caption caption";
    gap: 6px 10px;

    margin-bottom: 12px;
    padding: 16px 14px;
    border-left-width: 4px;
    border-radius: 14px;

    text-align: left;
  }

  .schedule-header .version {
    justify-self: start;
    padding: 6px 10px;
    font-size: 12px;
  }

  .schedule-header .title {
    font-size: 23px;
    line-height: 1.25;
  }

  .schedule-header .period {
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
  }

  .schedule-header .caption {
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.5;
  }

  .table-scroll {
    padding: 3px 3px 7px;
    border-radius: 12px;
    scrollbar-width: thin;
  }

  .table-fit {
    min-width: 740px;
  }

  .lesson-table {
    border-spacing: 3px;
  }

  .lesson-table thead th {
    height: 40px;
    padding: 6px;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .lesson-table tbody th,
  .lesson-table tbody td {
    height: 54px;
    padding: 7px 6px;
    border-radius: 8px;
  }

  .lesson-table .day-cell {
    font-size: 17px;
  }

  .lesson-table .label {
    font-size: 12px;
    line-height: 1.35;
  }

  .lesson-table .time {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.3;
  }

  .lesson-table tbody td:hover {
    transform: none;
  }

  .footer-note {
    margin: 10px 2px 0;
    font-size: 10px;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .table-fit {
    min-width: 680px;
  }

  .schedule-header .title {
    font-size: 21px;
  }
}


/* ========================================
   アニメーション軽減設定
======================================== */

@media (prefers-reduced-motion: reduce) {
  .lesson-table tbody td {
    transition: none;
  }

  .lesson-table tbody td:hover {
    transform: none;
  }
}
