.hero {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh;
  max-height: 50.6rem;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-desktop.has-mobile {
  display: none;
}

.hero__image-mobile {
  display: block;
}

.hero__image-before {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__image-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title {
  color: #ffffff;
  font-size: 3.2rem;
  line-height: 1.1;
  letter-spacing: -0.08em;
  text-align: center;
}

.hero__subtitle {
  display: none;
}

.hero__link {
  display: flex;
  width: fit-content;
  margin: 1.6rem auto 0 auto;
}

@media only screen and (min-width: 480px) {
  .hero {
    max-height: 73.6rem;
  }

  .hero__image-desktop.has-mobile {
    display: block;
  }

  .hero__image-mobile {
    display: none;
  }
}

@media only screen and (min-width: 768px) {
  .hero__title {
    font-size: 7.2rem;
    line-height: 1.2;
    text-align: left;
  }

  .hero__subtitle {
    display: block;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    max-width: 44.6rem;
    margin-top: 5.5rem;
  }

  .hero__link {
    margin: 2.4rem 0 0 0;
  }
}

@media only screen and (min-width: 1280px) {
  .hero {
    max-height: 80rem;
  }
}