/* =============================================
   SCHEDULE Section
   ============================================= */

.schedule-section {
  padding: 0;
}

.schedule-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-side);
}

/* タブ */
.schedule-section__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.schedule-section__tab {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-date);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.07em;
  color: var(--color-gray);
  background: var(--color-tab-bg);
  border-radius: 25px;
  padding: 8px 24px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;

  &:hover {
    opacity: 0.8;
  }

  &.is-active {
    background: var(--color-gray);
    color: var(--color-white);
  }

  /* 該当カテゴリの予定が0件のときは無効化 */
  &.is-disabled,
  &:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  &.is-disabled:hover,
  &:disabled:hover {
    opacity: 0.4;
  }
}

/* 日付行 */
.schedule-section__date-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}

.schedule-section__date {
  font-family: var(--font-date);
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.07em;
  color: var(--color-black);
  flex-shrink: 0;
}

.schedule-section__date-line {
  flex: 1;
  height: 0;
  border-top: 1px solid var(--color-black);
}

/* スケジュール行 */
.schedule-section__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}

.schedule-section__item--link {
  cursor: pointer;
  transition: opacity 0.2s;
}

.schedule-section__item--link:hover {
  opacity: 0.6;
}

/* JS で hidden 属性を付けたとき確実に隠す（display:flex に勝つため） */
.schedule-section__item[hidden],
.schedule-section__date-group[hidden] {
  display: none;
}

.schedule-section__item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 140px;
}

.schedule-section__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: 24px;
  min-width: 100px;
  white-space: nowrap;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 13px;
  line-height: 23px;
  letter-spacing: 0.1em;
  border-radius: 25px;
  border: 1px solid var(--color-blue);
  color: var(--color-blue);
  background: var(--color-white);
}

/* 旧カラー（モック互換） */
.schedule-section__tag--blue  { border-color: var(--color-blue);  color: var(--color-blue); }
.schedule-section__tag--pink  { border-color: var(--color-pink);  color: var(--color-pink); }
.schedule-section__tag--green { border-color: var(--color-green); color: var(--color-green); }

/* タクソノミースラッグベース */
.schedule-section__tag--radio    { border-color: var(--color-cat-radio);   color: var(--color-cat-radio); }
.schedule-section__tag--tv       { border-color: var(--color-cat-tv);      color: var(--color-cat-tv); }
.schedule-section__tag--online   { border-color: var(--color-cat-online);  color: var(--color-cat-online); }
.schedule-section__tag--youtube  { border-color: var(--color-cat-youtube); color: var(--color-cat-youtube); }
.schedule-section__tag--lecture  { border-color: var(--color-cat-lecture); color: var(--color-cat-lecture); }
.schedule-section__tag--stage    { border-color: var(--color-cat-stage);   color: var(--color-cat-stage); }
.schedule-section__tag--event    { border-color: var(--color-cat-event);   color: var(--color-cat-event); }
.schedule-section__tag--other    { border-color: var(--color-cat-other);   color: var(--color-cat-other); }

.schedule-section__time {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0.07em;
  color: var(--color-black);
  flex-shrink: 0;
}

.schedule-section__item-body {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  margin-left: 32px;
}

.schedule-section__item-title {
  flex: 1;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.1em;
  color: var(--color-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-section__arrow {
  flex-shrink: 0;
}

.schedule-section__arrow-img {
  transform: rotate(180deg);
}

.schedule-section__date-group {
  margin-bottom: 8px;
}

/* VIEW MORE ボタン（黒背景・白文字、VIEW ALL のテキストリンクとは差別化） */
.schedule-section__load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.schedule-section__load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 52px;
  padding: 0 32px;
  background: var(--color-black);
  border: 1px solid var(--color-black);
  color: var(--color-white);
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.19em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.schedule-section__load-more:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* JS で hidden 属性を付けたとき確実に隠す（display:inline-flex に勝つため） */
.schedule-section__load-more[hidden] {
  display: none;
}

/* ============ レスポンシブ ============ */
@media (max-width: 768px) {
  .schedule-section__tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  .schedule-section__tab {
    min-width: auto;
    padding: 6px 24px;
    font-size: 14px;
  }

  .schedule-section__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .schedule-section__item-body {
    margin-left: 0;
  }

  .schedule-section__item-title {
    white-space: normal;
    font-size: 14px;
  }
}
