/* イベント一覧ページ */

.eventHero {
  position: relative;
  min-height: 300px;
  color: #ffffff;
  overflow: hidden;
}

.eventHero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.eventHero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.eventHero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eventHero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 6px;
  text-align: center;
}

.eventHero__title {
  margin: 0;
  font-size: clamp(34px, 4.7vw, 52px);
  font-weight: 700;
  line-height: 1.18;
}

.eventHero__en {
  margin: 0;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: clamp(14px, 2.1vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.eventPage {
  padding: 60px 32px 88px;
  background-color: #f5f6fa;
}

.eventPage__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  max-width: none;
  margin: 0 auto 40px;
}

.eventPage__rule {
  display: flex;
  justify-content: center;
}

.eventPage__ruleImage {
  display: block;
  width: 39px;
  height: auto;
}

.eventPage__favNotice {
  display: flex;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
  max-width: 970px;
  margin: 0 auto 24px;
  padding: 24px;
  background-color: #ffeded;
  border: 1px solid #d80c18;
  border-radius: 10px;
}

.eventPage__favBadge {
  position: relative;
  flex: 0 0 92px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  min-height: 73px;
  padding: 8px;
  border: 1px solid #d80c18;
  border-radius: 4px 4px 0 4px;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  text-decoration: none;
}

.eventPage__favBadge::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0;
  height: 0;
  border-bottom: 12px solid #d80c18;
  border-left: 12px solid transparent;
}

.eventPage__favIcon,
.eventPage__favLeadIcon {
  display: inline-block;
  width: 22px;
  height: 19px;
  background: url("../img/favorite-heart-filled.svg") center / contain no-repeat;
  vertical-align: -2px;
}

.eventPage__favBadgeText {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
}

.eventPage__favLead {
  flex: 1 1 auto;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: #000000;
}

.eventPage__favLeadIcon {
  margin: 0 4px;
}

.eventPage__favNote {
  margin-left: 4px;
  font-size: 14px;
}

.eventPage__favCta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: #d80c18;
  text-decoration: none;
  background-color: #ffffff;
  transition: opacity 0.2s ease;
}

.eventPage__favCta:hover,
.eventPage__favCta:focus-visible {
  opacity: 0.85;
}

.eventGroupList {
  max-width: 970px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 74px;
}

.eventGroup__head {
  text-align: center;
}

/* 「その他のイベント」は見出しがテキストのみのため、行間ぶん上に詰めて
   セクション間の見た目余白を他カテゴリと揃える */
.eventGroup--other .eventGroup__head {
  margin-top: -8px;
}

.eventGroup__srTitle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eventGroup__logoWrap {
  margin: 0;
}

.eventGroup__logo {
  max-width: min(100%, 420px);
  max-height: 128px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.eventGroup__nameOnly {
  margin: 0;
  color: #000000;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.eventGroup__lead {
  margin: 14px auto 0;
  max-width: 720px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

.eventGroup__lead p {
  margin: 0.65em 0 0;
}

.eventGroup__lead p:first-child {
  margin-top: 0;
}

.eventGroup__lead a {
  color: #d80c18;
  text-decoration: underline;
}

.eventGroup__lead a:hover,
.eventGroup__lead a:focus-visible {
  opacity: 0.88;
}

.eventCardList {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.eventCard {
  background-color: #ffffff;
  border-radius: 10px;
}

.eventCard__inner {
  position: relative;
  display: flex;
  gap: 29px;
  align-items: flex-start;
  min-height: 231px;
  padding: 16px 72px 24px 20px;
}

.eventCard__mediaCol {
  display: flex;
  flex: 0 0 300px;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
}

.eventCard__mediaCol .eventCard__media {
  flex: 0 0 auto;
  max-width: 100%;
}

.eventCard__media {
  margin: 0;
  flex: 0 0 300px;
  max-width: 300px;
  overflow: hidden;
}

.eventCard__image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.eventCard__body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 567px;
}

.eventCard__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #000000;
}

.eventCard__text {
  margin: 0;
  max-width: 521px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

.eventCard__text p {
  margin: 0.65em 0 0;
}

.eventCard__text p:first-child {
  margin-top: 0;
}

.eventCard__text a {
  color: #d80c18;
  text-decoration: underline;
}

.eventCard__text a:hover,
.eventCard__text a:focus-visible {
  opacity: 0.88;
}

.eventCard__body > .eventCard__text:last-child {
  margin-bottom: 10px;
}

.eventCard__meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eventCard__title + .eventCard__meta,
.eventCard__title + .eventCard__text,
.eventCard__meta + .eventCard__text {
  margin-top: 12px;
}

.eventCard__metaRow {
  position: relative;
  margin: 0;
  padding-left: 9px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

.eventCard__metaRow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #d80c18;
}

.eventCard__metaLabel {
  font-weight: 400;
}

.eventCard__favorite {
  position: absolute;
  right: 31px;
  bottom: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 41px;
  min-height: 41px;
}

.eventCard__favorite .simplefavorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 41px;
  height: 41px;
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.eventCard__favorite .simplefavorite-button > * {
  display: none !important;
}

.eventCard__favorite .simplefavorite-button::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("../img/favorite-heart-outline.svg");
}

.eventCard__favorite .simplefavorite-button.active::before,
.eventCard__favorite .simplefavorite-button[aria-pressed="true"]::before {
  background-image: url("../img/favorite-heart-filled.svg");
}

.eventCard__favorite .simplefavorite-button:focus-visible {
  outline: 2px solid #d80c18;
  outline-offset: 2px;
  border-radius: 999px;
}

.eventGroup__empty,
.eventPage__empty {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
}

@media (max-width: 540px) {
  .eventHero {
    min-height: 180px;
  }

  .eventHero__inner {
    min-height: 180px;
    padding: 8px 16px 0;
    justify-content: center;
  }

  .eventHero__title {
    font-size: 32px;
  }

  .eventHero__en {
    font-size: 14px;
  }

  .eventPage {
    padding: 34px var(--sp-pad-x, 16px) 80px;
  }

  .eventGroupList {
    margin-top: 0;
    gap: 56px;
  }

  .eventPage__favNotice {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
  }

  .eventPage__favBadge {
    align-self: center;
  }

  .eventPage__favLead {
    font-size: 14px;
    line-height: 1.6;
  }

  .eventPage__favNote {
    display: block;
    margin: 4px 0 0;
    font-size: 12px;
  }

  .eventPage__favCta {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .eventGroup__logo {
    max-height: 78px;
    max-width: min(100%, 320px);
  }

  .eventGroup__nameOnly {
    font-size: 20px;
    line-height: 1.45;
  }

  .eventGroup__lead {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
  }

  .eventGroup--other .eventGroup__head {
    margin-top: -6px;
  }

  .eventCardList {
    margin-top: 14px;
    gap: 10px;
  }

  .eventCard__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 18px;
    min-height: 0;
  }

  .eventCard__mediaCol {
    flex-basis: auto;
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    gap: 8px;
  }

  .eventCard__media {
    flex-basis: auto;
    width: 100%;
    max-width: none;
  }

  .eventCard__image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 200px;
    object-fit: cover;
  }

  .eventCard__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .eventCard__title {
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .eventCard__text {
    max-width: none;
    font-size: 12px;
    line-height: 1.55;
    /* SP 説明文の行数制限（必要になったらアンコメント）
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    多めに出す場合は -webkit-line-clamp / line-clamp を 7 に
    */
  }

  .eventCard__body > .eventCard__text:last-child {
    margin-bottom: 6px;
  }

  .eventCard__meta {
    gap: 4px;
  }

  .eventCard__title + .eventCard__meta,
  .eventCard__title + .eventCard__text,
  .eventCard__meta + .eventCard__text {
    margin-top: 6px;
  }

  .eventCard__metaRow {
    padding-left: 7px;
    font-size: 11px;
    line-height: 1.45;
  }

  .eventCard__metaRow::before {
    width: 2px;
  }

  .eventCard__favorite {
    right: 10px;
    bottom: 6px;
    min-width: 40px;
    min-height: 40px;
  }

  .eventCard__favorite .simplefavorite-button {
    width: 40px;
    height: 40px;
  }

  .eventCard__favorite .simplefavorite-button::before {
    width: 22px;
    height: 22px;
  }
}
