@charset "UTF-8";
/**
 * @ event.css
 *
 * 
 */
/* ==============================
  .event-calender
============================== */
.event-calender {
  margin-bottom: 100px;
}
.event-calender iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 117 / 80;
  text-align: center;
}

/* ==============================
  .event-list
============================== */
.event-list__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.event-list__category-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 30px;
}
.event-list__category-title ~ .event-list__category-title {
  margin-top: 80px;
}

/* .event-card  */
.event-card__link {
  width: 100%;
  height: auto;
}
.event-card__media {
  position: relative;
}
.event-card__image {
  aspect-ratio: 4 / 3;
  object-position: top center;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.event-card__date {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-green);
  color: #fff;
  font-weight: var(--weight-bold);
  padding: 10px 20px;
  border-radius: 0 0 20px 0;
}
.event-card__title {
  font-weight: var(--weight-bold);
  margin-top: 10px;
}
.event-card__overview {
  margin-top: 5px;
}
@media screen and (max-width: 768px) {
  .event-list__items {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-list__category-title {
    font-size: 2.8rem;
  }
}
@media screen and (max-width: 480px) {
  .event-list__items {
    grid-template-columns: 1fr;
  }
}

/* ==============================
  .event-modal
============================== */
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.3s;
}
.event-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.event-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.event-modal__content {
  position: relative;
  z-index: 1;

  width: min(90%, 1000px);
  max-height: 90vh;

  background: #fff;
  border-radius: 10px;
}
.event-modal__scroll {
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
}
.event-modal__title {
  padding: 30px 70px 30px 50px;
  background: var(--color-green);
  color: var(--color-light-green);
  font-size: 1.8rem;
  font-weight: var(--weight-bold);
}
.event-modal__body {
  display: flex;
  padding: 30px;
  gap: 30px;
}
.event-modal__text {
  width: 100%;
}
.event-info {
  margin-top: 30px;
}
.event-info__item {
  display: flex;
}
.event-info__label {
  flex-shrink: 0;
}
.event-info__label,
.event-info__value {
  font-weight: var(--weight-bold);
}
.event-info__label::after {
  content: "：";
}
.event-modal__image {
  width: 40%;
  margin: 0 !important;
  flex-shrink: 0;
}
.event-modal__image-item {
  width: 100%;
  height: auto;
}
/* .event-modal__close */
.event-modal__close {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}
.event-modal__close-btn::before,
.event-modal__close-btn::after {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--color-light-green);
  position: absolute;
  top: 14px;
  right: 0;
  display: inline-block;
}
.event-modal__close-btn::before {
  transform: rotate(45deg);
}
.event-modal__close-btn::after {
  transform: rotate(-45deg);
}

/* .is-modal-open */
body.is-modal-open {
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .event-modal__title {
    padding: 20px 40px 20px 20px;
  }
  .event-modal__close {
    top: 10px;
    right: 10px;
  }
  .event-modal__close-btn::before,
  .event-modal__close-btn::after {
    width: 25px;
  }
  .event-modal__body {
    flex-direction: column;
    padding: 20px;
  }
  .event-modal__image {
    width: 100%;
  }
}
