/* トップイメージ 人物像 */
.top_cast_image {
  position: relative;
  z-index: 0;
}
.top_cast_wrap_sp {
  display: none;
}

.top_cast_wrap_pc {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.top_cast {
  position: absolute;
  top: -15%; /* 上下の位置調整 */
  left: -10%; /* 左右の位置調整 */
  width: 120%; /* 大きさの調整 */
  animation: imageAnimation 5s linear forwards 1;
}

.top_cast_text {
  position: absolute;
  bottom: 0;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 999;
  font-weight: 900;
}
.top_cast_text > .catch {
  font-size: 3rem;
}
.top_cast_text > .main {
  font-size: 6rem;
}

@keyframes slideup {
  from {
    transform: translate(0, 100px);
    opacity: 0;
  }
  to {
    transform: translate(0, 0px);
    opacity: 100%;
  }
}

@keyframes slideleft {
  from {
    transform: translate(100px, 0);
    opacity: 0;
  }
  to {
    transform: translate(0, 0);
    opacity: 100%;
  }
}

@keyframes slidedown {
  from {
    transform: translate(0, -100px);
    opacity: 0;
  }
  to {
    transform: translate(0, 0);
    opacity: 100%;
  }
}
@keyframes slideright {
  from {
    transform: translate(-100px, 0);
    opacity: 0;
  }
  to {
    transform: translate(0, 0);
    opacity: 100%;
  }
}

@keyframes imageAnimation {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.17);
  }
}

@media only screen and (max-width: 750px) {
  .top_cast_wrap_pc {
    display: none;
  }
  .top_cast_wrap_sp {
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden !important;
    display: block;
    position: relative;
  }

  .top_cast {
    position: absolute;
    width: 220vw; /* 大きさの調整 */
    max-width: 2000px;
    left: -90vw; /* 左右の位置調整 */
    top: -50px; /* 上下の位置調整 */
  }

  .top_cast_text {
    position: absolute;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 999;
    font-weight: 900;
  }
  .top_cast_text > .catch {
    font-size: 2rem;
  }
  .top_cast_text > .main {
    font-size: 3rem;
  }
}
