.custom-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: calc(var(--vw) * 140) calc(var(--vw) * 30) calc(var(--vw) * 50);
  gap: calc(var(--vw) * 20);
  @media screen and (min-width: 769px) {
    max-width: calc(var(--vw) * 724);
    gap: calc(var(--vw) * 40);
    width: 100%;
    padding: calc(var(--vw) * 200) 0 calc(var(--vw) * 141);
  }
  .custom-404__title {
    font-size: calc(var(--rem) * 20);
    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 32);
    }
  }
  .custom-404__text {
    font-size: calc(var(--rem) * 14);
    text-align: center;
    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 18);
    }
  }
  .custom-404__link {
    color: #005E9E;
    font-size: calc(var(--rem) * 12);
    margin-top: calc(var(--vw) * 20);
    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 16);
      margin-top: calc(var(--vw) * 30);
    }
  }
}

.top-contents {
  background: #000;
  @media screen and (min-width: 769px) {
    position: relative;
    display: grid;
    grid-template-columns: 0.3fr 450px 1fr;
  }
}
:where(.top-contents) {
  .top-contents__center {
    position: relative;
  }
  .top-contents__center-inner {
    margin-top: -100vh;
    position: relative;
    z-index: 1;
  }
  .top-contents__bg {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }
  .top-contents__left, .top-contents__right {
    position: sticky;
    width: 100%;
    height: 100vh;
    top: 0;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #343434;
  }
  .top-contents__left {
    background-image: url(../../images/bg_top-left.webp);
  }
  .top-contents__right {
    background-image: url(../../images/bg_top-right.webp);
  }
  .top-contents__left-text {
    color: rgba(219, 219, 219, 0.15);
    writing-mode: vertical-rl;
    font-size: calc(var(--rem) * 148);
    letter-spacing: 14.24px;
    position: absolute;
    left: -22px;
    font-family: copperplate, serif;
    line-height: 128px;
    top: -19px;
  }
  .top-contents__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .top-contents__right-icon {
    width: 271px;
    margin-bottom: 50px;
    @media screen and (max-width: 1098px) {
      width: 190px;
    }
    @media screen and (max-width: 885px) {
      width: 120px;
    }
  }
  .top-contents__right-cta {
    width: 477px;
    transition: opacity 0.2s linear;
    animation: bookingButtonScale 2s infinite ease-in-out;
    &:hover {
      opacity: 0.6;
    }
    @media screen and (max-width: 1098px) {
      width: 300px;
    }
    @media screen and (max-width: 885px) {
      width: 240px;
    }
  }
  .top-contents__right-copyright {
    position: absolute;
    bottom: 13px;
    right: 28px;
    font-size: 9px;
    font-family: "copperplate", serif;
    color: #FFF;
  }
  .top-contents__right-bg {
    position: absolute;
    left: 67px;
    top: 0;
    z-index: -1;
  }
}

/* 共通背景月テキストアニメーション */

.title-bg {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  color: #000;
  overflow: hidden;
}

.title-bg::before {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  background: #FFF;
  transition: inset 0.5s cubic-bezier(0.35, 0, 0, 1);
  z-index: 0;
}

.title-bg__text {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s ease;
  transition-delay: 0.3s;
  color: #000;
  font-weight: bold;

  .strong {
    color: #CCCCA2;
  }
}

.title-bg.is-shown::before {
  inset: 0 0 0 0;
}
.title-bg.is-shown .title-bg__text {
  clip-path: inset(0 0 0 0);
}



/* 共通フェードアニメーション */
.js-fade-in-left {
  opacity: 0;
  transform: translateX(-35px);
  transition:
  transform 0.8s linear,
  opacity 0.9s linear;
}
.js-fade-in-right {
  opacity: 0;
  transform: translateX(35px);
  transition:
  transform 0.8s linear,
  opacity 0.9s linear;
}

.js-fade-in,
.js-fade-series-ele {
  opacity: 0;
  transform: translateY(15px);
  transition:
  transform 0.3s linear,
  opacity 0.3s linear;
}

.js-fade-in-right.is-shown,
.js-fade-in-left.is-shown {
  opacity: 1;
  transform: translateX(0);
}
.js-fade-in.is-shown,
.js-fade-series-ele.is-shown {
  opacity: 1;
  transform: translateY(0px);
}

.js-fade-bubble-sevral-rows-ele {
  opacity: 0;
}

.js-fade-bubble-sevral-rows-ele.is-shown {
  -webkit-animation: fadeInScale .9s ease-out forwards;
  animation: fadeInScale .9s ease-out forwards
}
.js-blur {
  opacity: 0;
  &.is-shown {
    -webkit-animation: blur 1.2s ease-out forwards;
    animation: blur 1.2s ease-out forwards
  }
}
.js-fade-up {
  opacity: 0;
  transform: translate(0, 5%);
  transition: 2s;
  &.is-shown {
    transform: translate(0, 0);
    opacity: 1;
  }
}
.js-fade-corner-right {
  clip-path: polygon(0 10%, 93% 10%, 93% 100%, 0% 100%);
  animation-fill-mode: both;
  opacity: 0;
  transition: opacity 0.5s linear;
  &.is-shown {
    opacity: 1;
    -webkit-animation: fadeCorner 1.2s ease-out forwards;
    animation: fadeCorner 1.2s ease-out forwards
  }
}
.js-fade-corner-left {
  clip-path: polygon(0 10%, 93% 10%, 93% 100%, 0% 100%);
  animation-fill-mode: both;
  opacity: 0;
  transition: opacity 0.5s linear;
  &.is-shown {
    opacity: 1;
    -webkit-animation: fadeCornerLeft 1.2s ease-out forwards;
    animation: fadeCornerLeft 1.2s ease-out forwards
  }
}

@keyframes fadeCorner {
  0% {
    clip-path: polygon(0 10%, 93% 10%, 93% 100%, 0% 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
}
@keyframes fadeCornerLeft {
  0% {
    clip-path: polygon(7% 10%, 100% 10%, 100% 100%, 7% 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@keyframes blur {
  0% {
    opacity: 0;
    filter: blur(15px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes fadeInScale {
  0% {
    -webkit-transform: scale(.8);
    transform: scale(.8);
    opacity: 0
  }

  50% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 1
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1
  }
}

@keyframes bookingButtonScale {
  0% { 
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* reCAPTCHAのロゴ非表示 */
.grecaptcha-badge {
  visibility: hidden;
}
.recaptcha-text {
  color: #A4A4A4;
  font-size: calc(var(--rem) * 10);
  display: block;
  text-align: center;
  margin-top: calc(var(--vw) * 13);
  @media screen and (min-width: 769px) {
    font-size: calc(var(--rem) * 12);
  }
}

.only-sp {
  @media screen and (min-width: 769px) {
    display: none !important;
  }
}
.only-pc {
  @media screen and (max-width: 768px) {
    display: none !important;
  }
}

.splide__list {
  align-items: center;
}
