/*
 * フロントページ
 */
.calendar-contents {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 7rem;
  background-image: url(../images/top/news/newsBg.svg);
  background-position: left top -18.9rem;
  background-repeat: no-repeat;
  background-size: min(100%, 118rem) auto;
  z-index: 1;
  position: relative;
  @media screen and (max-width: 1200px) {
    background-size: 110rem auto;
  }
  @media screen and (max-width: 768px) {
    padding-top: 6rem;
    padding-bottom: 8rem;
    background-position: left top -12rem;
  }
  @media screen and (max-width: 576px) {
    padding-top: 4rem;
    background-size: 82rem auto;
  }
  &::after {
    position: absolute;
    right: 47%;
    top: 43%;
    z-index: 0;
    width: 24%;
    max-width: 335px;
    height: 26rem;
    content: "";
    background: url(../images/top/news/img-news@2x.png) no-repeat right top;
    background-size: contain;
    @media screen and (max-width: 1200px) {
      top: inherit;
      right: inherit;
      left: 18px;
      width: 22vw;
      height: 25vw;
    }
    @media screen and (max-width: 768px) {
      left: 2rem;
      width: 32vw;
      height: 32vw;
      bottom: -12rem;
    }
  }

  & .calendar-contents__wrapper {
    position: relative;
    z-index: 1;
  }

  & .calendar-contents__details {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(360px, 43%);
    gap: 7rem;
    align-items: center;
    margin-top: 3.5rem;
    padding: 0;
    list-style: none;
    @media screen and (max-width: 1200px) {
      grid-template-columns: minmax(0, 48%) minmax(320px, 42%);
      gap: 4rem;
    }
    @media screen and (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: 3rem;
      margin-top: 2.5rem;
    }

    & .calendar-contents__details__left,
    & .calendar-contents__details__right {
      position: relative;
      z-index: 1;
    }

    & .calendar-contents__details__left {
      padding-bottom: 4rem;
      list-style: none;
      @media screen and (max-width: 768px) {
        padding-bottom: 0;
      }

      & .frontPage-contents__title {
        margin-bottom: 47px;
      }
      & .contents-wrapper__button {
        @media screen and (max-width: 576px) {
          display: flex;
          justify-content: center;
        }
      }
    }

    & .calendar-contents__details__right {
      display: flex;
      justify-content: flex-end;
      list-style: none;
      @media screen and (max-width: 768px) {
        justify-content: center;
      }
    }
    & .contents-wrapper__buttonLinkText {
      @media screen and (max-width: 576px) {
        text-align: center;
      }
      & br {
        display: none;
        @media screen and (max-width: 576px) {
          display: block;
        }
      }
    }
    & .calendar-contents__details__right__image {
      width: min(100%, 440px);
      @media screen and (max-width: 768px) {
        width: min(100%, 420px);
      }

      & img {
        display: block;
        width: 100%;
        height: auto;
      }
    }
  }

  & .calendar-contents__info {
    margin-bottom: 4rem;
    font-size: 1.6rem;
    line-height: 2;
    @media screen and (max-width: 768px) {
      margin-bottom: 3rem;
    }
    @media screen and (max-width: 576px) {
      font-size: 1.4rem;
    }

    & p {
      margin: 0;
    }

    & span {
      font-weight: 700;
    }
  }

  & .frontPage-contents__title {
    margin-bottom: 0;
  }

  & .frontPage-contents__titleH2Text--english {
    color: #559545;
    text-align: left;
  }

  & .frontPage-contents__titleH2Text--japanese {
    color: #559545;
  }
}

.event-contents {
  & .post-contents__cardImage {
    height: auto;
  }
  & .post-contents__cardList {
    @media screen and (max-width: 576px) {
      align-items: flex-start;
      justify-content: space-around;
      flex-direction: row;
    }
    & .post-contents__cardItem {
      @media screen and (max-width: 576px) {
        width: 44%;
        margin-top: 0;
      }
    }
  }
  & .post-contents__cardImageLink {
    border-radius: 0;
  }
}

/*
 * 遊戯施設のご案内
 */
.todays-asumo {
  @media screen and (max-width: 576px) {
    padding-block: 0;
  }
  & .todays-asumo__inner {
    background: #559545;
    border-radius: 20px;
    padding: 2.125em 5.875em 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    @media screen and (max-width: 768px) {
      padding: 2.125em 2.8em 0;
    }
    @media screen and (max-width: 576px) {
      width: 100%;
      border-radius: 0;
      padding: 40px 1em 120px;
      flex-direction: column;
    }
    &::after {
      content: "";
      position: absolute;
      right: 39.6%;
      bottom: 0;
      max-width: 380px;
      width: 24.85380117vw;
      aspect-ratio: 100 / 84;
      background: url(../images/page/playpark/bgchar_001.png) no-repeat right bottom;
      background-size: contain;
      display: block;
      @media screen and (max-width: 1200px) {
        right: 42.6%;
      }
      @media screen and (max-width: 1100px) {
        right: 44.6%;
      }
      @media screen and (max-width: 1000px) {
        right: 40.6%;
      }
      @media screen and (max-width: 768px) {
        right: auto;
        left: calc(50% - clamp(190px, 32vw, 260px));
        bottom: 0;
        width: clamp(190px, 36vw, 260px);
      }
      @media screen and (max-width: 576px) {
        right: 0;
        left: auto;
        bottom: 0;
        width: clamp(150px, 48vw, 190px);
      }
    }
    & .page-contents__title {
      margin-right: 16px;
      color: white;
      @media screen and (max-width: 576px) {
        margin-right: 0;
      }
      & .page-contents__titleH2Text {
        text-align: left;
        @media screen and (max-width: 576px) {
          width: 300px;
          text-align: center;
        }
      }
    }
    & .page-contents__schedule {
      margin-bottom: -7px;
      text-align: right;
      position: relative;
      z-index: 3;
      @media screen and (max-width: 576px) {
        text-align: center;
      }
      & iframe {
        width: 384px;
        /* width: clamp( 184px, 340px, 384px ); */
        height: 400px;
        border: 0;
        @media screen and (max-width: 1000px) {
          width: calc( 340px / 1200px * 100vw );
        }
        @media screen and (max-width: 768px) {
          width: 100%;
        }
        @media screen and (max-width: 576px) {
          /* width: 300px; */
        }
      }
    }
  }
}

/*
 * ユーティリティクラス
 */
.u-align--centetr {
  text-align: center;
}
.u-align--left {
  text-align: left;
}
.u-align--right {
  text-align: right;
}
.u-bg--white {
  background-color: white;
}

/*
 * 遊戯施設ページ ゾーン紹介
 */
.contents-wrapper.facility.playpark-zone {
  display: block;
}

.facility.playpark-zone .playpark-zone__heading {
  margin-bottom: 5rem;
}

.facility.playpark-zone .playpark-zone__item {
  display: grid;
  grid-template-columns: minmax(260px, 30%) minmax(0, 1fr);
  column-gap: clamp(48px, 6.25vw, 80px);
  align-items: center;
  margin-bottom: 60px;
}

.facility.playpark-zone .playpark-zone__textBox {
  grid-column: 1;
  grid-row: 1;
  flex-basis: auto;
  padding-left: 0;
}

.facility.playpark-zone .playpark-zone__imageBox {
  grid-column: 2;
  grid-row: 1;
  flex-basis: auto;
  width: calc(100% + max(5vw, (100vw - 1200px) / 2));
  height: auto;
  aspect-ratio: 16 / 9;
  margin-left: 0;
  margin-right: calc(max(5vw, (100vw - 1200px) / 2) * -1);
  border-radius: 0;
}

.facility.playpark-zone .playpark-zone__item--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 30%);
}

.facility.playpark-zone .playpark-zone__item--reverse .playpark-zone__textBox {
  grid-column: 2;
}

.facility.playpark-zone .playpark-zone__item--reverse .playpark-zone__imageBox {
  grid-column: 1;
  width: calc(100% + max(5vw, (100vw - 1200px) / 2));
  margin-left: calc(max(5vw, (100vw - 1200px) / 2) * -1);
  margin-right: 0;
}

.facility.playpark-zone .playpark-zone__imageBox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility.playpark-zone .playpark-zone__title {
  margin: 0 0 2.4rem;
  text-align: left;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.05em;
}

.facility.playpark-zone .playpark-zone__title::after {
  content: none;
}

.facility.playpark-zone .playpark-zone__titleEnglish {
  display: block;
  margin: 0 0 0.5rem;
  color: #559545;
  font-size: 1.6rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.facility.playpark-zone .playpark-zone__text {
  margin: 0;
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: 0.05em;
}

.facility.playpark-zone .playpark-zone__button {
  justify-content: flex-start;
  margin-top: 3rem;
}

.facility.playpark-zone .playpark-zone__buttonLink {
  width: 24rem;
  height: 4.8rem;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .contents-wrapper.facility.playpark-zone {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }

  .facility.playpark-zone .playpark-zone__heading {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
  }

  .facility.playpark-zone .playpark-zone__item,
  .facility.playpark-zone .playpark-zone__item--reverse {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .facility.playpark-zone .playpark-zone__imageBox {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 375 / 254;
    margin-left: 0;
    margin-right: 0;
  }

  .facility.playpark-zone .playpark-zone__textBox {
    grid-column: 1;
    grid-row: 2;
    width: min(100% - 48px, 640px);
    margin: 4.5rem auto 0;
  }

  .facility.playpark-zone .playpark-zone__item--reverse .playpark-zone__textBox,
  .facility.playpark-zone .playpark-zone__item--reverse .playpark-zone__imageBox {
    grid-column: 1;
  }

  .facility.playpark-zone .playpark-zone__title {
    margin-bottom: 3rem;
    font-size: 4rem;
    line-height: 1.25;
  }

  .facility.playpark-zone .playpark-zone__titleEnglish {
    margin-bottom: 0.8rem;
    font-size: 2.2rem;
  }

  .facility.playpark-zone .playpark-zone__text {
    font-size: 2.4rem;
    line-height: 2;
  }

  .facility.playpark-zone .playpark-zone__button {
    justify-content: center;
    margin-top: 5rem;
  }

  .facility.playpark-zone .playpark-zone__buttonLink {
    width: min(42rem, 100%);
    height: 9.6rem;
    border-radius: 9.6rem;
  }
}

/*
 * 遊戯施設ページ 見出し
 */
.facility h3.box-title span {
  border-radius: 8px;
}

/*
 * イベントカード NEWアイコン
 */
.post-contents__cardItem.is-newItem::before,
.news-contents .post-contents__cardItem.is-newItem::before,
.event-contents .post-contents__cardItem.is-newItem::before {
  background-size: contain;
  transform: none;
  transform-origin: top left;
}

.top .event-contents .post-contents__cardList .post-contents__cardItem.is-newItem::before,
.event-contents .post-contents__cardList .post-contents__cardItem.is-newItem::before,
.news-contents .post-contents__cardList .post-contents__cardItem.is-newItem::before {
  @media screen and (min-width: 769px) {
    max-width: 42px;
    max-height: 42px;
    width: 42px;
    height: 42px;
    top: -2.4rem;
    left: -0.4rem;
  }

  @media screen and (min-width: 577px) and (max-width: 768px) {
    max-width: 42px;
    max-height: 42px;
    width: 42px;
    height: 42px;
    top: -1.8rem;
    left: -0.4rem;
  }

  @media screen and (max-width: 576px) {
    max-width: 42px;
    max-height: 42px;
    width: 42px;
    height: 42px;
    top: -3.8rem;
    left: -0.4rem;
  }
}
