@charset "UTF-8";
/* common
---------------------------------------------------------------------------- */
.m-mv-child::before {
  background-image: url("/assets/images/event/bg_mv_pc.webp");
}

@media screen and (max-width: 767px) {
  .m-mv-child::before {
    background-image: url("/assets/images/event/bg_mv_sp.webp");
  }
}
#scroll-target {
  scroll-margin-top: 12.6rem;
}

@media screen and (max-width: 767px) {
  #scroll-target {
    scroll-margin-top: 21.3333333333vw;
  }
}
/* p-event
---------------------------------------------------------------------------- */
.p-event {
  padding: 2.5rem 0 8rem;
}

@media screen and (max-width: 767px) {
  .p-event {
    padding: 12vw 0 10.6666666667vw;
  }
}
.p-event-filter-area {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 4.8rem;
}

.p-event-filter-area-select-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.8rem;
  padding: 1.3rem;
  background-color: #d9e6ff;
  border-radius: 10vmax;
  position: relative;
}

@media (any-hover: hover) {
  .p-event-filter-area-select-wrap:hover .p-event-filter-area-select {
    --txt-color: #09237d;
    --bg-color: #fff;
  }
  .p-event-filter-area-select-wrap:hover .p-event-filter-area-select._tokyo {
    --txt-color: #0061a8;
    --bg-color: #fff;
  }
  .p-event-filter-area-select-wrap:hover .p-event-filter-area-select._nagoya {
    --txt-color: #00664e;
    --bg-color: #fff;
  }
  .p-event-filter-area-select-wrap:hover .p-event-filter-area-select-option-wrap {
    max-height: 20rem; /* 中身の高さに合わせて調整 */
    opacity: 1;
    visibility: visible;
    /* 修正ポイント:
       開くときは遅延（delay）をすべて 0 にして、即座にアニメーションを開始する
    */
    transition: max-height 0.5s ease, opacity 0.5s ease, visibility 0s;
  }
}
.p-event-filter-area-select {
  --txt-color: #fff;
  --bg-color: #09237d;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 500;
  text-align: center;
  width: 20rem;
  padding: 0.6rem 0 0.8rem;
  border-radius: 9999px;
  border: none;
  color: var(--txt-color);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-color: var(--bg-color);
  position: relative;
  transition: all 0.3s;
}
.p-event-filter-area-select._tokyo {
  --bg-color: #0061a8;
}
.p-event-filter-area-select._nagoya {
  --bg-color: #00664e;
}

.p-event-filter-area-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3rem;
  translate: 0 -50%;
  width: 1.8rem;
  height: 1rem;
  mask-image: url("/assets/images/event/icn_select_arrow.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 1.8rem 1rem;
  background-color: var(--txt-color);
}

@media (any-hover: hover) {
  .p-event-filter-area-select:hover {
    --txt-color: #09237d;
    --bg-color: #fff;
  }
  .p-event-filter-area-select:hover._tokyo {
    --txt-color: #0061a8;
    --bg-color: #fff;
  }
  .p-event-filter-area-select:hover._nagoya {
    --txt-color: #00664e;
    --bg-color: #fff;
  }
}
.p-event-filter-area-select-option-wrap {
  /* --- 既存のスタイル --- */
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  translate: 0 100%;
  z-index: 1;
  width: 22.6rem;
  height: max-content;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0.3rem 0.5rem 2rem 0 rgba(0, 0, 128, 0.2);
  /* --- アニメーションの初期状態（閉じている時） --- */
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  /* 修正ポイント:
       閉じるときは max-height を即座に開始し、
       opacity と visibility は高さが 0 になるまで（0.5s）待機させる
    */
  transition: max-height 0.5s ease, opacity 0.1s linear 0.5s, visibility 0s linear 0.6s;
  z-index: 10;
}

.p-event-filter-area-select-option-wrap.is-open {
  max-height: 20rem; /* 中身の高さに合わせて調整 */
  opacity: 1;
  visibility: visible;
  /* 修正ポイント:
       開くときは遅延（delay）をすべて 0 にして、即座にアニメーションを開始する
    */
  transition: max-height 0.5s ease, opacity 0.5s ease, visibility 0s;
}

.p-event-filter-area-select-option-inner {
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.p-event-filter-area-select-option {
  font-size: 1.6rem;
  line-height: 1.125;
  font-weight: 400;
  text-align: center;
  padding-block: 1.5rem;
  background-color: #fff;
}

@media (any-hover: hover) {
  .p-event-filter-area-select-option:hover {
    color: #fff;
    background-color: #09237d;
  }
  .p-event-filter-area-select-option:hover._tokyo {
    background-color: #0061A8;
  }
  .p-event-filter-area-select-option:hover._nagoya {
    background-color: #00664E;
  }
}
.p-event-filter-category {
  width: 100%;
  margin-bottom: 5.3rem;
}

.p-event-filter-category-list {
  display: flex;
  justify-content: center;
  column-gap: 1.2rem;
  padding: 1.3rem;
  background-color: #d9e6ff;
  border-radius: 1rem;
  overflow-x: auto;
}

.p-event-filter-category-item {
  flex-shrink: 0;
}

.p-event-filter-category-btn {
  position: relative;
  display: inline-block;
}

.p-event-filter-category-btn.is-current {
  pointer-events: none;
}

.p-event-filter-category-btn.is-current span {
  color: #fff;
}
.p-event-filter-category-btn.is-current span.all {
  background-color: #09237d;
}
.p-event-filter-category-btn.is-current span.playgroup {
  background-color: #c74a6d;
}
.p-event-filter-category-btn.is-current span.first {
  background-color: #09237d;
}
.p-event-filter-category-btn.is-current span.afterschool {
  background-color: #603392;
}
.p-event-filter-category-btn.is-current span.seminar {
  background-color: #0050be;
}
.p-event-filter-category-btn.is-current span.other {
  background-color: #3a4f97;
}

.p-event-filter-category-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  padding: 1.3rem 2rem;
  border-radius: 0.6rem;
  background-color: #fff;
  color: #222;
  white-space: nowrap;
}

@media (any-hover: hover) {
  .p-event-filter-category-btn:hover span {
    color: #fff;
  }
  .p-event-filter-category-btn:hover span.all {
    background-color: #09237d;
  }
  .p-event-filter-category-btn:hover span.playgroup {
    background-color: #c74a6d;
  }
  .p-event-filter-category-btn:hover span.first {
    background-color: #09237d;
  }
  .p-event-filter-category-btn:hover span.afterschool {
    background-color: #603392;
  }
  .p-event-filter-category-btn:hover span.seminar {
    background-color: #0050be;
  }
  .p-event-filter-category-btn:hover span.other {
    background-color: #3a4f97;
  }
}
@media screen and (max-width: 767px) {
  .p-event-filter-area {
    width: 100%;
    margin-bottom: 6.1333333333vw;
  }
  .p-event-filter-area-select-wrap {
    row-gap: 0.8rem;
    padding: 2.6666666667vw;
  }
  .p-event-filter-area-select {
    font-size: 4.2666666667vw;
    width: 42.6666666667vw;
    padding: 2.1333333333vw 0 2.6666666667vw;
  }
  .p-event-filter-area-select::after {
    right: 4.2666666667vw;
    width: 4.8vw;
    height: 2.6666666667vw;
    background-size: 4.8vw 2.6666666667vw;
  }
  .p-event-filter-area-select-option-wrap {
    left: 50%;
    translate: -50% 100%;
    width: 60.2666666667vw;
    border-radius: 2.1333333333vw;
    box-shadow: 0.8vw 1.3333333333vw 5.3333333333vw 0 rgba(0, 0, 128, 0.2);
  }
  .p-event-filter-area-select-option-wrap.is-open {
    max-height: 53.3333333333vw; /* 中身の高さに合わせて調整 */
  }
  .p-event-filter-area-select-option {
    font-size: 4.2666666667vw;
    padding-block: 4vw;
  }
  .p-event-filter-category {
    position: relative;
    margin-bottom: 4.2666666667vw;
    padding-inline: 8vw;
    background-color: #d9e6ff;
    border-radius: 2.6666666667vw;
  }
  .p-event-filter-category-scroll-btn-prev .p-event-filter-category-scroll-btn-inner {
    transform: scale(-1, 1);
  }
  .p-event-filter-category-scroll-btn {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8.8vw;
    height: 8.8vw;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    box-shadow: 0 0 1.3333333333vw rgba(32, 32, 71, 0.5);
  }
  .p-event-filter-category-scroll-btn-prev {
    left: -2.6666666667vw;
  }
  .p-event-filter-category-scroll-btn-next {
    right: -2.6666666667vw;
  }
  .p-event-filter-category-scroll-btn-inner {
    display: block;
    width: 3.7333333333vw;
    height: 4.2666666667vw;
    background-image: url("/assets/images/common/icn_arrow_right_double.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  .p-event-filter-category-list {
    flex: 1;
    min-width: 0;
    justify-content: start;
    column-gap: 1.3333333333vw;
    padding-block: 2.6666666667vw;
    padding-inline: 0;
    border-radius: 0;
  }
  .p-event-filter-category-item {
    width: auto;
  }
  .p-event-filter-category-btn span {
    font-size: 3.4666666667vw;
    padding: 2.6666666667vw 1.8666666667vw;
    border-radius: 1.6vw;
  }
}
.p-event-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.1rem 2rem;
}

@media screen and (max-width: 767px) {
  .p-event-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 3.2vw;
  }
}
