/**
 * 受験生サポートイベント（リニューアル）ページ固有スタイル
 * 共通: cheering-common.css
 */

body.is-cheering-event .l-body--cheering-event {
  margin-top: 0;
}

/* ----- Intro ----- */
.che-intro {
  padding: 7rem 0 4rem;
}

.che-intro .ch-section-head {
  margin-bottom: 0;
}

/* ----- Event blocks ----- */
.che-events {
  padding: 0 0 7rem;
}

.che-events__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.che-events__item + .che-events__item {
  border-top: 1px solid var(--ch-border);
  margin-top: 6rem;
  padding-top: 6rem;
}

.che-event-block {
  align-items: start;
  display: grid;
  gap: 4.8rem;
  grid-template-columns: minmax(0, 44.8rem) minmax(0, 1fr);
}

.che-event-block--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 44.8rem);
}

.che-event-block--reverse .che-event-block__media {
  order: 2;
}

.che-event-block--reverse .che-event-block__body {
  order: 1;
}

.che-event-block__media {
  line-height: 0;
  overflow: hidden;
}

.che-event-block__img {
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.che-event-block__num {
  color: var(--ch-red);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.8;
  margin: 0 0 0.8rem;
}

.che-event-block__title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 1.6rem;
}

.che-event-block__text {
  color: var(--ch-gray);
  font-size: 1.4rem;
  line-height: 1.9;
  margin: 0 0 1.6rem;
}

/* checks → cheering-common.css（.ch-checks / .che-event-block__checks） */

/* ----- Calendar ----- */
.che-calendar {
  background: var(--ch-gray-light);
  padding: 7rem 0;
}

.che-calendar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.che-calendar__item + .che-calendar__item {
  margin-top: 1rem;
}

.che-calendar__row {
  align-items: center;
  background: var(--ch-white);
  border: 1px solid var(--ch-border);
  box-sizing: border-box;
  color: inherit;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: auto 14rem minmax(0, 1fr) auto;
  min-height: 5.9rem;
  padding: 1.6rem 2.1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.che-calendar__row:hover {
  background: #fff8f8;
  border-color: rgba(255, 0, 0, 0.35);
  text-decoration: none;
}

.che-calendar__badge {
  align-items: center;
  border-radius: 2px;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 2.4rem;
  padding: 0.3rem 1rem;
  white-space: nowrap;
}

.che-calendar__badge--oc {
  background: #f3eaf8;
  color: #7a3ea1;
}

.che-calendar__badge--tekisei {
  background: #e8f4fb;
  color: #2a6f9e;
}

.che-calendar__badge--visit {
  background: #f0f0f0;
  color: #555555;
}

.che-calendar__date {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.che-calendar__name {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
}

.che-calendar__action {
  color: var(--ch-red);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

/* ----- Online ----- */
.che-online {
  padding: 7rem 0;
}

.che-online__list {
  display: grid;
  gap: 3.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.che-online-card {
  background: var(--ch-white);
  border: 1px solid var(--ch-border);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.che-online-card__media {
  line-height: 0;
  overflow: hidden;
}

.che-online-card__img {
  display: block;
  height: 21.6rem;
  object-fit: cover;
  width: 100%;
}

.che-online-card__body {
  background: var(--ch-gray-light);
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.8rem 2.9rem 3.2rem;
}

.che-online-card__title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 1.2rem;
}

.che-online-card__text {
  color: var(--ch-gray);
  flex: 1;
  font-size: 1.4rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

/* ----- Tablet ----- */
@media (min-width: 768px) and (max-width: 1023px) {
  .che-event-block,
  .che-event-block--reverse {
    gap: 2.4rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .che-event-block--reverse {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .che-event-block__title {
    font-size: 2.2rem;
  }

  .che-calendar__row {
    gap: 1rem;
    grid-template-columns: auto 11rem minmax(0, 1fr) auto;
    padding-inline: 1.6rem;
  }

  .che-online__list {
    gap: 2rem;
  }
}

/* ----- SP ----- */
@media (max-width: 767px) {
  .che-intro {
    padding: 10.6667vw 0 6.4vw;
  }

  .che-events {
    padding: 0 0 12.8vw;
  }

  .che-events__item + .che-events__item {
    margin-top: 10.6667vw;
    padding-top: 10.6667vw;
  }

  .che-event-block,
  .che-event-block--reverse {
    gap: 5.3333vw;
    grid-template-columns: minmax(0, 1fr);
  }

  .che-event-block--reverse .che-event-block__media,
  .che-event-block--reverse .che-event-block__body {
    order: initial;
  }

  .che-event-block__title {
    font-size: 2rem;
  }

  .che-event-block__text {
    font-size: 1.3rem;
  }

  .che-calendar {
    padding: 10.6667vw 0 12.8vw;
  }

  .che-calendar__row {
    align-items: center;
    gap: 1.6vw 2.1333vw;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "badge date action"
      "name name action";
    padding: 3.7333vw 4.2667vw;
  }

  .che-calendar__badge {
    grid-area: badge;
  }

  .che-calendar__date {
    font-size: 1.3rem;
    grid-area: date;
  }

  .che-calendar__name {
    font-size: 1.4rem;
    font-weight: 700;
    grid-area: name;
  }

  .che-calendar__action {
    align-self: center;
    font-size: 1.2rem;
    grid-area: action;
  }

  .che-online {
    padding: 10.6667vw 0 12.8vw;
  }

  .che-online__list {
    gap: 6.4vw;
    grid-template-columns: minmax(0, 1fr);
  }

  .che-online-card__img {
    height: 48vw;
  }

  .che-online-card__body {
    padding: 5.3333vw 4.2667vw 6.4vw;
  }

  .che-online-card__title {
    font-size: 1.6rem;
  }

  .che-online-card__text {
    font-size: 1.3rem;
  }
}
