/* スプラッシュ表示中のbodyスタイル */
body.splash-active {
  overflow: hidden;
}

/* 初期状態で非表示にする要素 */
.site-header,
.copy,
.scroll {
  opacity: 0;
  transition: opacity 1.5s ease-out;

  &.show {
    opacity: 1;
  }
}

#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fbfbfb;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1.5s ease-out;

  &.fade-out {
    opacity: 0;
    pointer-events: none;
  }

  h1 {
    font-size: 1.9rem;
    letter-spacing: 0.2em;
    font-family: var(--font-regular);
  }
}
.mv {
  position: relative;
  top: -101px;
  width: calc(100vw - var(--scrollbar-width));
  height: 100vh;
  min-height: 50vw;
  border-bottom: 1px solid rgb(0 0 0 / 15%);
  .mv-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 59.5%;
    aspect-ratio: 714/345;
    transition: width 1s ease-out;
  }
  img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mask: linear-gradient(to right, black 55%, transparent 64%, transparent 100%);
    mask-size: 350% 100%;
    mask-position: 100% 0;
    z-index: 2;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.5s ease;

    &.active {
      opacity: 1;
      mask-position: 0 0;
    }

    &.mask-transition {
      opacity: 1;
      z-index: 3;
      mask-position: 15% 0;
      transition: mask-position 12s ease-out;
    }

    &.moving {
      /* 終了位置：画像の右端が画面の右端に到達するまで移動 */
      transform: translateY(-50%) translateX(calc(-100% + 100vw));
      transition: transform 30s linear, opacity 4s ease;
    }
  }
}
.mv-content {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100vh;
}

.copy {
  position: absolute;
  left: 40px;
  bottom: 37px;
  z-index: 2;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
}
.scroll {
  position: absolute;
  bottom: 0;
  width: 100%;
  p {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
  }
}
.scroll-bar {
  width: 1px;
  height: 45px;
  margin: 17px auto 0;
  background-color: #e6e6e6;
  position: relative;
  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 1px;
    height: 45px;
    margin: 0 auto;
    background-color: #666;
    animation: bar 3s infinite;
  }
}
@keyframes bar {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  51% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}
.button {
  position: relative;
  display: block;
  width: 100%;
  max-width: 418px;
  margin: 0 auto;
  padding: 26px 0;
  border: 1px solid #ddd;
  background: #fbfbfb;
  font-size: 1.3rem;
  font-weight: 200;
  letter-spacing: 0.32em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1s ease-out;
  &:hover {
    opacity: 1;
    &:before {
      border: 1px solid #adadad;
    }
  }
  &.is-visible {
    opacity: 1;
  }
}

.about {
  padding: 48px 0 150px;
}

.about-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 121px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  & > * {
    width: 50%;
  }
}
.about-copy {
  margin-top: -124px;
  font-size: 1.8rem;
  letter-spacing: 0.2em;
}
.about-content-inner {
  .button {
    margin-top: 53px;
  }
}
.about-text {
  p {
    line-height: 2.4;
    font-feature-settings: 'palt';
    margin-right: -7px;
    + p {
      margin-top: 35px;
    }
  }
}
.about-slider-content {
  width: calc(90vw - var(--scrollbar-width));
  margin: 0 auto;
  transition: top 0.3s ease-out;
}

.asset,
.contact {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 118px 0 0;
  text-align: center;
  h2 {
    max-width: 418px;
    margin: 0 auto 43px;
    font-size: 1.4rem;
    font-weight: 200;
    text-transform: uppercase;
  }
  p {
    max-width: 418px;
    margin: 0 auto 43px;
    line-height: 2.4;
    font-feature-settings: 'palt';
  }
}

.contact {
  margin-top: 36px;
  padding-bottom: 241px;
}

@media screen and (max-width: 999px) {
  .mv {
    position: relative;
    top: 0;
    width: calc(100vw - var(--scrollbar-width));
    height: calc(100vh - 162px);
    border-bottom: none;
    overflow: hidden;
    z-index: -1;
    .mv-slider {
      width: 100%;
      height: 100%;
    }
    img {
      position: absolute;
      top: 50%;
      left: 0;
      width: auto;
      height: 100%;
      opacity: 0;
      transition: opacity 2.5s ease;
      /* 初期位置：画像の左端が画面の左端に位置 */
      transform: translateY(-50%) translateX(0);
      mask: none;

      &.active {
        opacity: 1;
      }
    }
  }
  .site-header {
    .container {
      height: 162px;
      padding-bottom: 0;
      border-bottom: none;
    }
  }
  .button {
    width: calc(100% - 2px);
    padding: 24.5px 0;
    font-size: 1.2rem;
    letter-spacing: 0.18em;
  }
  .about {
    margin-top: 197px;
    padding: 0 30px 81px;
  }
  .about-content {
    flex-direction: column;
    gap: 69px;
    margin: 0 auto 40px;
    & > * {
      width: 100%;
    }
    p {
      margin-right: 0;
      text-align: left;
      line-height: 2;
      letter-spacing: 0.13em;
      + p {
        margin-top: 26px;
      }
    }
  }
  .about-copy {
    text-align: center;
    font-size: 1.7rem;
    letter-spacing: 0.1em;
  }
  .about-content-inner {
    .button {
      margin-top: 41px;
    }
  }
  .about-text {
    max-width: 420px;
    margin: 0 auto;
  }
  .about-slider-content {
    width: calc(100vw - var(--scrollbar-width));
    transform: translateX(-30px);
  }
  .asset,
  .contact {
    max-width: none;
    padding: 70px 0 104px;
    h2 {
      margin-bottom: 61px;
      font-size: 1.6rem;
      letter-spacing: 0.18em;
    }
    p {
      max-width: 420px;
      margin: 0 auto 36px;
      padding: 0 30px;
      font-size: 1.3rem;
      text-align: left;
      line-height: 2;
    }
    .button {
      width: calc(100% - 62px);
    }
  }
  .contact {
    margin-top: 0;
    padding-bottom: 164px;
  }
}
