/* ===== イベント紹介ページ ===== */
.fixed-top-menu {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.events-page {
  width: 100%;
  padding: 32px 0 64px;
  background-color: #f5f6f7;
}


.events-title-area {
  margin-bottom: 18px;
  text-align: center;
}

.events-title-en {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1;
}

.events-title-logo {
  width: min(74%, 520px);
  margin: 0 auto;
}

.events-lead {
  margin: 0 auto 46px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  letter-spacing: -0.03em;
}

.events-timeline {
  position: relative;
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 6px 0 24px;
}

.events-timeline-line {
  position: absolute;
  left: 85px;
  top: 0;
  bottom: 0;
  width: 20px;
  background-color: #fff000;
  z-index: 0;
}

.event-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px 135px minmax(0, 1fr) 52px;
  align-items: center;
  column-gap: 14px;
  min-height: 600px;
  margin-bottom: 76px;
  z-index: 1;
}

.event-item:last-child {
  margin-bottom: 0;
}

.event-month {
  grid-column: 1;
  justify-self: end;
  align-self: start;
  margin-top: -5px;
  font-size: clamp(1.8rem, 2.8vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  color: #111111;
  z-index: 3;
}

.event-badge {
  position: absolute;
  left: 108px;
  top: -5px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #fff000;
  color: #111111;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.18);
  z-index: 4;
}

.event-label {
  position: absolute;
  left: 166px;
  top: 13px;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  color: #111111;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.18);
  z-index: 4;
}

.event-person {
  grid-column: 2;
  justify-self: start;
  transform: translate(-40px, 40px) rotate(-7deg);
  transform-origin: center bottom;
  width: 195px;
  max-width: none;
  z-index: 1;
  pointer-events: none;
}

.event-person-trip {
  transform: translate(-36px, 42px) rotate(-3deg);
  width: 170px;
}

.event-slider {
  grid-column: 3;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: visible;
  background-color: #f5f6f7;
  z-index: 2;
  transform: translateY(56px) scale(1.04);
  transform-origin: center;
}

.event-slide-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.event-photo-caption {
  position: absolute;
  left: 50%;
  bottom: -118px;
  z-index: 5;
  width: min(84%, 660px);
  min-height: auto;
  margin: 0;
  padding: 16px 38px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  background-color: #fff000;
  border-radius: 12px;
  color: #24262b;
  font-size: clamp(1.12rem, 1.45vw, 1.38rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-shadow: 1.2px 1.6px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.22);
}

.event-photo-caption::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 36px solid #fff000;
  transform: translateY(-50%);
}

.event-photo-caption.is-changing {
  animation: captionPop 0.28s ease;
}

@keyframes captionPop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.event-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 0.52s ease, opacity 0.52s ease;
}

.event-photo.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.event-photo.is-prev {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}

.event-next-button {
  grid-column: 4;
  justify-self: center;
  transform: translate(20px, 56px);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.event-next-button span {
  display: block;
  width: 0;
  height: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 40px solid #fff000;
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.14));
}

.event-next-button:hover {
  transform: translate(24px, 56px);
  filter: brightness(1.04);
}

.event-item-placeholder {
  opacity: 0.72;
}

@media (max-width: 640px) {
  .events-page {
    padding: 20px 0 44px;
  }

  .events-frame {
    width: min(100% - 28px, 520px);
    padding: 28px 18px 44px;
  }

  .events-title-logo {
    width: min(86%, 420px);
  }

  .events-lead {
    margin-bottom: 34px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .events-timeline-line {
    left: 39px;
    width: 10px;
  }

  .event-item {
    grid-template-columns: 42px 58px minmax(0, 1fr) 28px;
    column-gap: 6px;
    min-height: 380px;
    margin-bottom: 64px;
  }

  .event-month {
    grid-column: 1;
    justify-self: end;
    align-self: start;
    margin-top: -3px;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    color: #111111;
    z-index: 3;
  }

  .event-badge {
    left: 48px;
    top: -3px;
    width: 38px;
    height: 38px;
    font-size: 1.55rem;
  }

  .event-label {
    left: 84px;
    top: 17px;
    font-size: 1.25rem;
  }

  .event-person {
    grid-column: 2;
    justify-self: start;
    width: 88px;
    max-width: none;
    transform: translate(-22px, 28px) rotate(-7deg);
    transform-origin: center bottom;
    z-index: 1;
    pointer-events: none;
  }

  .event-person-trip {
    width: 78px;
    transform: translate(-18px, 26px) rotate(-3deg);
  }

  .event-slider {
    grid-column: 3;
    aspect-ratio: 4 / 3;
    transform: translateY(18px) scale(1.04);
    transform-origin: center;
    overflow: visible;
  }

  .event-next-button {
    grid-column: 4;
    justify-self: center;
    transform: translate(8px, 0px);
    width: 28px;
    height: 28px;
  }

  .event-next-button span {
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 22px;
  }

  .event-photo-caption {
    bottom: -82px;
    width: min(94%, 340px);
    min-height: auto;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.25;
    text-shadow: 1px 1.2px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.2);
  }

  .event-photo-caption::before {
    left: -22px;
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-right-width: 24px;
  }
}