/**
 * 年間スケジュール（リニューアル）ページ固有スタイル
 * 共通: cheering-common.css
 */

/* ----- Timeline ----- */
.chs-timeline {
  padding: 7rem 0;
}

.chs-timeline__toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2rem;
  justify-content: space-between;
  margin-bottom: 3.2rem;
}

.chs-mode {
  border: 1px solid #e4e0dc;
  border-radius: 6px;
  display: inline-flex;
  overflow: hidden;
}

.chs-mode__btn {
  background: #fff;
  border: 0;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 1rem 2rem;
}

.chs-mode__btn.is-active {
  background: var(--ch-red);
  color: #fff;
}

.chs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chs-legend__item {
  align-items: center;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 700;
  gap: 0.7rem;
  line-height: 1.8;
}

.chs-legend__item::before {
  border-radius: 6px;
  content: "";
  display: block;
  flex-shrink: 0;
  height: 1.2rem;
  width: 1.2rem;
}

.chs-legend__item--nyushi::before {
  background: #c8373a;
}

.chs-legend__item--oc::before {
  background: #007c85;
}

.chs-legend__item--event::before {
  background: #888;
}

.chs-timeline__list {
  border-bottom: 1px solid #e4e0dc;
  border-top: 1px solid #e4e0dc;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chs-month {
  border-bottom: 1px solid #e4e0dc;
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  min-height: 8rem;
}

.chs-month:last-child {
  border-bottom: 0;
}

.chs-month__label {
  align-items: center;
  border-right: 1px solid #e4e0dc;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
  padding: 1.6rem 0.8rem;
  text-align: center;
}

.chs-month__num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.chs-month__en {
  color: #999;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.chs-month__events {
  align-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 2rem;
}

.chs-month__event[hidden] {
  display: none !important;
}

.chs-chip {
  align-items: center;
  border-radius: 100px;
  box-sizing: border-box;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 700;
  gap: 0.5rem;
  line-height: 1.45;
  padding: 0.35rem 1.2rem;
  text-decoration: none;
}

a.chs-chip:hover {
  opacity: 0.85;
}

.chs-chip__dot {
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
  height: 0.6rem;
  width: 0.6rem;
}

.chs-chip--nyushi {
  background: #f9ecec;
  color: #c8373a;
}

.chs-chip--nyushi .chs-chip__dot {
  background: #c8373a;
}

.chs-chip--oc {
  background: #e5f4f5;
  color: #007c85;
}

.chs-chip--oc .chs-chip__dot {
  background: #007c85;
}

.chs-chip--event {
  background: #f2f2f2;
  color: #555;
}

.chs-chip--event .chs-chip__dot {
  background: #888;
}

.chs-chip__arrow {
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
}

/* ----- Special ----- */
.chs-special {
  background: #f2f2f2;
  padding: 7rem 0;
}

.chs-special__list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.chs-special-card {
  background: var(--ch-white);
  border: 1px solid #e4e0dc;
  border-radius: 6px;
  box-sizing: border-box;
  height: 100%;
  padding: 2.8rem 2.9rem;
}

.chs-special-card__title {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.8;
  margin: 0 0 1rem;
}

.chs-special-card__text {
  color: #555;
  font-size: 1.35rem;
  line-height: 1.85;
  margin: 0;
}

/* ----- Exam ----- */
.chs-exam {
  padding: 7rem 0;
}

.chs-exam-banner {
  align-items: center;
  background: #1e1e2e;
  border-radius: 6px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  justify-content: space-between;
  padding: 3.6rem 4rem;
}

.chs-exam-banner__title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.8;
  margin: 0 0 0.4rem;
}

.chs-exam-banner__text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.3rem;
  line-height: 1.8;
  margin: 0;
}

.chs-exam-banner__btn {
  background: var(--ch-red);
  border-color: var(--ch-red);
  color: #fff;
  flex-shrink: 0;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  max-width: none;
  min-height: 5.6rem;
  min-width: 25.8rem;
}

.chs-exam-banner__btn::before {
  background-color: #fff;
}

.chs-exam-banner__btn::after {
  border-color: transparent transparent #fff transparent;
}

.chs-exam-banner__btn:hover,
.chs-exam-banner__btn:hover .p-btn__label {
  color: var(--ch-red);
}

.chs-exam-banner__btn:hover::after {
  border-color: transparent transparent var(--ch-red) transparent;
}

@media (max-width: 1023px) {
  .chs-timeline__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .chs-special__list {
    grid-template-columns: 1fr;
  }

  .chs-exam-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 2.8rem 2.4rem;
  }

  .chs-exam-banner__btn {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .chs-timeline,
  .chs-special,
  .chs-exam {
    padding: 10.6667vw 0;
  }

  .chs-month {
    grid-template-columns: 6.4rem minmax(0, 1fr);
    min-height: 0;
  }

  .chs-month__events {
    padding: 1.6rem 1.2rem;
  }

  .chs-mode__btn {
    padding: 0.9rem 1.2rem;
    font-size: 1.2rem;
  }

  .chs-special-card {
    padding: 2.4rem 2rem;
  }
}
