html,
body {
  font-size: min(calc(100vw / 1400 * 10), 10px);
}
@media screen and (max-width: 767px) {
  html,
  body {
    font-size: calc(100vw / 750 * 10);
  }
}

body {
  background-color: #1e1e1e;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wrapper {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 50% 50%;
  animation: fadeIn 1s ease 0.5s both;
}

.inner {
  display: grid;
  grid-template-rows: 180px 1fr auto;
  justify-items: center;
  align-items: flex-start;
  padding-top: 70px;
  position: relative;
  z-index: 1;
}

.link {
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  display: block;
  position: relative;
}

.background {
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  transition: all 0.2s ease;
}

.link:hover .background {
  opacity: 0;
}

.anime {
  background-color: #1e5b55;
  background-image: url('./../image/background_anime_pc.webp');
  background-position: right bottom;
}

.anime .background {
  background-color: #1e1e1e;
  background-image: url('./../image/background_anime_pc_mono.webp');
  background-position: right bottom;
}

.movie {
  background-color: #cf378a;
  background-image: url('./../image/background_movie_pc.webp');
  background-position: left bottom;
}

.movie .background {
  background-color: #373737;
  background-image: url('./../image/background_movie_pc_mono.webp');
  background-position: left bottom;
}

.logo {
  max-width: 450px;
  width: 40vw;
}

.movie .logo {
  margin-top: -20px;
}

.title {
  height: 22px;
}

.title_sp {
  width: 44px;
  display: none;
  position: absolute;
  top: 300px;
  transform: translateY(-50%);
}

.anime .title_sp {
  left: 8px;
}

.movie .title_sp {
  right: 8px;
}

.sign {
  position: absolute;
  left: 50%;
  height: 106px;
  bottom: 20px;
  transform: translateX(-50%);
  display: none;
}

.banners {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  gap: 2rem;
  flex-direction: row;
}

.banner {
  width: 30rem;
  min-width: 200px;
  animation: fadeIn 0.5s ease 1.5s both;
  animation-name: fadeIn;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-delay: 1.5s;
  animation-fill-mode: both;
}
.banner:hover {
  filter: brightness(1.1);
}

.modal {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  overflow: hidden;
  min-height: 100lvh;
}

.modal::before {
  content: '';
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  position: absolute;
  background-color: #1e1e1e;
  pointer-events: none;
}

.entered.modal::before {
  opacity: 0;
  transition: opacity 3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.modal__background {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: scale(1.1) translateZ(1px);
  object-fit: cover;
}
.entered .modal__background {
  transform: scale(1) translateZ(1px);
  transition: transform 3s
    cubic-bezier(0.075, 0.82, 0.165, 1);
}

.modal__copy {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%) translateX(1rem)
    translateZ(2px);
  opacity: 0;
  z-index: 2;
  width: 3.9rem;
}
.modal__name {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%) translateX(-1rem)
    translateZ(2px);
  opacity: 0;
  z-index: 2;
  width: 3.6rem;
}
.entered .modal__copy,
.entered .modal__name {
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(
    0.075,
    0.82,
    0.165,
    1
  );
  transition-duration: 2.3s;
  transition-delay: 0.7s;
  opacity: 1;
}
.entered .modal__copy {
  transform: translateY(-50%) translateX(0) translateZ(2px);
}
.entered .modal__name {
  transform: translateY(-50%) translateX(0) translateZ(2px);
}

.modal__logo {
  position: absolute;
  left: 50%;
  bottom: 13.5rem;
  transform: translateX(-50%) translateY(1rem)
    translateZ(2px);
  opacity: 0;
  height: 11.1rem;
  z-index: 2;
}

.entered .modal__logo {
  opacity: 1;
  transform: translateX(-50%) translateY(0) translateZ(2px);
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(
    0.075,
    0.82,
    0.165,
    1
  );
  transition-duration: 1.8s;
  transition-delay: 1.2s;
}

.modal__close {
  position: absolute;
  left: 50%;
  bottom: 6rem;
  cursor: pointer;
  transform: translateX(-50%) translateZ(2px);
  height: 2.4rem;
  width: 7.8rem;
  display: grid;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  z-index: 2;
}
.entered .modal__close {
  transition: opacity 0.5s ease-out;
  transition-delay: 2s;
  opacity: 1;
}

.modal__close::before,
.modal__close::after {
  content: '';
  display: block;
  position: absolute;
  width: 25px;
  height: 1px;
  position: absolute;
  top: 50%;
  left: 1.25rem;
  transform: translate(-50%, -50%) translateZ(2px);
  background-color: #fff;
  transition: transform 0.15s
    cubic-bezier(0.22, 0.61, 0.36, 1);
}

.modal__close_text {
  height: 1.4rem;
}

.modal__close:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.14)
    translateZ(2px);
}
.modal__close:hover::after {
  transform: translate(-50%, -50%) rotate(-45deg)
    scale(1.14) translateZ(2px);
}

@media screen and (max-width: 767px) {
  .link {
    background-size: 200px;
  }

  .background {
    display: none;
  }
  .inner {
    height: 100%;
    padding-top: 20px;
  }

  .anime {
    background-image: url('./../image/background_anime_sp.webp');
    background-position: right center;
  }

  .movie {
    background-image: url('./../image/background_movie_sp.webp');
    background-position: left center;
  }

  .movie .logo {
    margin-top: -2vw;
  }

  .title {
    display: none;
  }

  .title_sp {
    display: block;
  }

  .sign {
    display: block;
  }

  .banners {
    flex-direction: column;
    bottom: 80px;
  }
  .banner {
    width: 28rem;
    min-width: auto;
  }

  .modal__logo {
    height: 19.3rem;
    top: calc(50% + 25rem);
  }
  .modal__copy {
    width: 4.5rem;
    right: auto;
    left: calc(50% + 1rem);
    top: calc(50% - 14rem);
    filter: drop-shadow(0 0 1rem black)
      drop-shadow(0 0 2rem black);
  }
  .modal__name {
    width: 3.6rem;
    left: calc(50% - 3.6rem);
    top: calc(50% - 14rem);
    filter: drop-shadow(0 0 0.8rem black)
      drop-shadow(0 0 2rem black);
  }
  .modal__close {
    height: 4.2rem;
    width: 13.2rem;
    top: calc(50% + 53rem);
  }
  .modal__close::before,
  .modal__close::after {
    width: 4rem;
  }
  .modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg)
      scale(1.14);
  }
  .modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg)
      scale(1.14);
  }
  .modal__close_text {
    height: 2.3rem;
  }
}
