@charset "utf-8";

/* メインビジュアルスライドショー */
.hero {
  position: relative;
  height: 800px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: 1;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-slide-fade 10s infinite;
  animation-fill-mode: both;
}

.hero-slide--one {
  animation-delay: 0s;
}

.hero-slide--two {
  animation-delay: 5s;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-text--one,
.hero-text--two {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 16px;
  opacity: 0;
  animation: hero-text-fade 10s infinite;
  animation-fill-mode: both;
}

.hero-text--one {
  animation-delay: 0s;
}

.hero-text--two {
  animation-delay: 5s;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

@keyframes hero-slide-fade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes hero-text-fade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 320px;
    padding: 0 16px;
  }

  .hero h2 {
    font-size: clamp(22px, 5vw, 30px);
  }

  .hero p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 280px;
  }

  .hero h2 {
    font-size: 20px;
  }
}