@charset "UTF-8";

/* ============================================
 * コース色（CSS custom properties）
 * ============================================ */
:root {
  --color-utsushiyo: #2d8a6e;
  --color-salon: #d3533e;
  --color-sanshi: #7c5295;
  --color-uniken: #3568b8;
  --color-youth: #3b82f6;
}

/* ============================================
 * イベント・配信スケジュール リスト表示
 * ============================================ */
.schedule-Event .schedule-List_Item {
  padding: 12px 0;
}
.schedule-Event .schedule-List_Item:not(:first-of-type) {
  margin-top: 0;
  border-top: 1px solid rgba(34,34,34,.05);
}
.schedule-Anchor {
  display: flex;
  align-items: center;
  line-height: 1.2;
}
.schedule-Event .schedule-Anchor:hover {
  color: inherit;
  opacity: .7;
}
.schedule-Anchor--noLink {
  cursor: default;
}
.schedule-Event .schedule-Anchor--noLink:hover {
  opacity: 1;
}
.schedule-Event .schedule-Event_Col:first-of-type {
  width: 48px;
  margin-right: 8px;
}
.schedule-Event .schedule-Event_Col:last-of-type {
  flex: 1;
  line-height: 1.3;
  overflow: hidden;
}
.schedule-Event dl {
  text-align: center;
}
.schedule-Event dt {
  line-height: 12px;
  font-size: 12px;
}
.schedule-Event dd {
  line-height: 10px;
  font-size: 10px;
}
.schedule-Event dd .date {
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 8px 0 12px;
}
.schedule-Event dd .week {
  font-size: 12px;
  color: rgba(34,34,34,.7);
}
.schedule-Event_Time {
  margin-bottom: 2px;
}
.schedule-Event_Time span {
  display: inline-block;
  background-color: rgba(34,34,34,.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
}
.schedule-Event_Title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  line-height: 1.3;
  font-weight: bold;
}
.schedule-Event .schedule-List {
  border-top: 1px solid rgba(34,34,34,.12);
  margin: 0 -16px;
  padding: 0 16px;
}
.schedule-Event_Thumb {
  width: 72px;
  margin-right: 8px;
}
.schedule-Event_Thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(34, 34, 34, .0);
}
@media (min-width: 768px) {
  .schedule-Event .schedule-List {
    margin: 0;
    padding: 0;
    justify-content: space-between;
  }
  .schedule-Event .schedule-List_Item {
    width: 32%;
    margin-top: 1rem;
  }
  .schedule-Event .schedule-List_Item:not(:first-of-type) {
    border-top: 0;
    margin-top: 1rem;
  }
}

/* スケジュールカレンダー */
#schedule-calendar {
  max-width: 900px;
  margin: 0 auto;
}

/* 凡例 */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: #f8f8f8;
  border: 1px solid #efefef;
  border-radius: 4px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #222;
}
.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
/* 月ブロック */
.calendar-month {
  margin-bottom: 28px;
}
.calendar-head {
  margin-bottom: 6px;
}
.calendar-year-month {
  font-size: 24px !important;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px !important;
}

/* テーブル共通 */
#schedule-calendar table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#schedule-calendar thead th {
  padding: 6px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #666;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}
#schedule-calendar th.calendar-sun { color: #d3533e; }
#schedule-calendar th.calendar-sat { color: #0066b9; }

#schedule-calendar tbody td {
  border: 1px solid #efefef;
  padding: 3px;
  vertical-align: top;
  min-height: 76px;
  height: 76px;
  font-size: 13px;
}
#schedule-calendar td.calendar-sun { color: #d3533e; }
#schedule-calendar td.calendar-sat { color: #0066b9; }
#schedule-calendar td.calendar-none {
  background: #fafafa;
  border-color: #f5f5f5;
}

/* 日付番号 */
.calendar-day-number {
  display: block;
  font-style: normal;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 2px;
}

/* イベントラベル */
.calendar-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calendar-label {
  display: block;
  padding: 1px 3px;
  border-radius: 2px;
  font-size: 10px;
  line-height: 1.4;
  color: #fff;
  font-weight: bold;
  white-space: normal;
  word-break: break-all;
}
.calendar-label-done { opacity: 0.5; }

/* 注釈 */
.calendar-notes {
  margin-bottom: 20px;
}
.calendar-note {
  font-size: 13px;
  color: #555;
  margin: 8px 0 !important;
  line-height: 1.6;
}

/* ============================================
 * コース（member_course）別の色分け
 * カレンダーラベル・リストラベル・凡例で共通使用
 * ============================================ */
.calendar-label--utsushiyo { background: var(--color-utsushiyo); }
.calendar-label--salon     { background: var(--color-salon); }
.calendar-label--sanshi    { background: var(--color-sanshi); }
.calendar-label--uniken    { background: var(--color-uniken); }
.calendar-label--youth     { background: var(--color-youth); }
.calendar-label--default   { background: #888; }

.legend-color--utsushiyo { background: var(--color-utsushiyo); }
.legend-color--salon     { background: var(--color-salon); }
.legend-color--sanshi    { background: var(--color-sanshi); }
.legend-color--uniken    { background: var(--color-uniken); }
.legend-color--youth     { background: var(--color-youth); }

/* リスト表示 - コース制限付きアイテム */
.schedule-Anchor--locked {
  cursor: not-allowed;
  opacity: 0.6;
}
.schedule-Event .schedule-Anchor--locked:hover {
  opacity: 0.6;
}

/* リスト表示の時刻＋コースラベル行 */
.schedule-BroadcastSchedule .schedule-Event_Time {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* コースラベル共通（リスト表示・モーダル両方で使用） */
.schedule-CourseLabel {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.2;
  color: #fff;
  background-color: #666;
  border-radius: 3px;
}
.schedule-CourseLabel--utsushiyo { background-color: var(--color-utsushiyo); }
.schedule-CourseLabel--salon     { background-color: var(--color-salon); }
.schedule-CourseLabel--sanshi    { background-color: var(--color-sanshi); }
.schedule-CourseLabel--uniken    { background-color: var(--color-uniken); }
.schedule-CourseLabel--youth     { background-color: var(--color-youth); }
/* リスト表示時: .schedule-Event_Time span の background-color を上書き */
.schedule-Event_Time .schedule-CourseLabel { background-color: #666; }
.schedule-Event_Time .schedule-CourseLabel--utsushiyo { background-color: var(--color-utsushiyo); }
.schedule-Event_Time .schedule-CourseLabel--salon     { background-color: var(--color-salon); }
.schedule-Event_Time .schedule-CourseLabel--sanshi    { background-color: var(--color-sanshi); }
.schedule-Event_Time .schedule-CourseLabel--uniken    { background-color: var(--color-uniken); }
.schedule-Event_Time .schedule-CourseLabel--youth     { background-color: var(--color-youth); }

/* クリック可能なラベル */
.calendar-label[data-schedule-id] {
  cursor: pointer;
  transition: opacity 0.2s;
}
.calendar-label[data-schedule-id]:hover {
  opacity: 0.8;
}
.calendar-label[data-schedule-id]:focus {
  outline: 2px solid #0066b9;
  outline-offset: 1px;
}

/* ============================================
 * 月切替ナビゲーション（calendar-single形式）
 * ============================================ */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.calendar-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}
.calendar-nav-btn:hover:not(:disabled) {
  background: #e8e8e8;
}
.calendar-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ============================================
 * モーダル（スケジュール詳細）
 * ============================================ */
.schedule-modal__container {
  max-width: 640px;
  position: relative;
}
.schedule-modal__container .modal__header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}
.schedule-modal__container .modal__close {
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}
.schedule-modal__container .modal__close:hover {
  color: #222;
}
.schedule-modal__container .modal__content {
  margin-top: 0;
}
/* 日時＋コースラベル（リスト表示と同じスタイル） */
.schedule-modal__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.schedule-modal__datetime {
  display: inline-block;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}
.schedule-modal__courses {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
/* .schedule-modal__courses .schedule-CourseLabel {
  font-size: 12px;
} */
/* タイトル */
.schedule-modal__title {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 16px;
  padding-bottom: 0;
  border-bottom: none;
  color: #222;
}
/* アイキャッチ画像 */
.schedule-modal__thumbnail {
  margin-bottom: 16px;
}
.schedule-modal__thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}
/* 詳細本文 */
.schedule-modal__body {
  line-height: 1.8;
  font-size: 14px;
}
.schedule-modal__body img {
  max-width: 100%;
  height: auto;
}

/* ============================================
 * レスポンシブ（600px以下）
 * ============================================ */
@media screen and (max-width: 600px) {
  #schedule-calendar table {
    font-size: 11px;
  }
  #schedule-calendar tbody td {
    min-height: 60px;
    height: 60px;
    padding: 2px;
  }
  .calendar-label {
    font-size: 9px;
    padding: 1px 2px;
  }
  .calendar-year-month {
    font-size: 18px !important;
  }
  .calendar-nav-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .schedule-modal__container {
    padding: 16px;
  }
  .schedule-modal__title {
    font-size: 20px;
  }
}
