/* ヒーローセクション */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100vh;
  min-height: unset;
  max-height: unset;
  text-align: center;
}

.hero h1 {
  height: 100vh;
  font-size: 4em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.hero-content .subtitle {
  background-color: var(--white);
  color: var(--hero-text);
  padding: 0 10px;
  margin-left: 10px;
  font-size: 0.8em;
  border-radius: 8px;
}

.hero-text {
  position: relative;
  z-index: 1;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text img {
  width: 624px;
  height: 303px;
  object-fit: contain;
}

.hero-text p {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  color: #4E4E4E;
  font-family: var(--primary-font);
  font-weight: bold;
  font-size: 1.375em;
  line-height: 1.5;
  letter-spacing: 0.05em;
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  width: calc(1330px * 2.294);
  height: 1330px;
  bottom: -100px;
  zoom: 1;
  background-image: url(../../images/topPage/main_visual.svg);
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  z-index: -1;
}

.sp-logo-background {
  position: absolute;
  width: 325px;
  height: 225px;
  bottom: -50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* PC表示のレスポンシブ */
@media screen and (max-width: 1024px) {
  .hero-bg-image {
    background-size: contain;
    zoom: 0.9;
    bottom: -100px;
  }
}

@media screen and (min-height: 900px) and (max-height: 1100px) {
  .hero-bg-image {
    width: 300vw;
    height: 145vh;
    zoom: 1.4;
    bottom: calc(-90 * (100vh / 1447));
  }
}

/* モバイル表示のレスポンシブ */
@media screen and (max-width: 767px) {
  .hero-bg-image {
    width: 350vw;
    height: 125vh;
    bottom: calc(30 * (100vh / 1447));
  }

  .hero-text img {
    width: 450px;
    height: 218px;
  }

  .hero-content p {
    font-size: 1em;
    bottom: 32px;
  }
}

@media screen and (max-width: 395px) and (max-height: 885px) {
  .hero-bg-image {
    width: 500vw;
    height: 145vh;
    zoom: 1.4;
    bottom: calc(-90 * (100vh / 1447));
  }
}

@media screen and (max-width: 460px) {
  .hero-bg-image {
    width: 400vw;
    height: 145vh;
    zoom: 1.4;
    bottom: calc(-90 * (100vh / 1447));
  }

  .hero-text img {
    width: 320px;
    height: 155px;
  }

  .hero-content p {
    font-size: 0.75em;
    bottom: 28px;
  }
}
