.hero {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
  background-color: #000;
}

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

.hero__slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlide 12s infinite;
}

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

.hero__slide:nth-child(1) {
  animation-delay: 0s;
}
.hero__slide:nth-child(2) {
  animation-delay: 4s;
}
.hero__slide:nth-child(3) {
  animation-delay: 8s;
}

@keyframes fadeSlide {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

/*.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
}*/

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
}

.hero__content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero__content p {
  font-size: 1.5rem;
}

.banner {
  position: relative;
  width: 100%;
  height: 270px;
  background-color: #000;
  overflow: hidden;
}

.business .banner__overlay {
  background-image: url('../images/banner/banner_business.jpg');
  filter: blur(1px) contrast(1.2);
}

.works .banner__overlay {
  background-image: url('../images/banner/banner_works.jpg');
  filter: blur(1px) contrast(1.2);
}

.recruit .banner__overlay {
  background-image: url('../images/banner/banner_recruit.jpg');
  filter: blur(1px) contrast(1.2);
}

.company .banner__overlay {
  background-image: url('../images/banner/banner_company.jpg');
  filter: blur(1px) contrast(1.2);
}

.contact .banner__overlay {
  background-image: url('../images/banner/banner_contact.jpg');
  filter: blur(1px) contrast(1.2);
}

.banner__overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* ← オーバーレイ */
  z-index: 2;
}

.banner__content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.banner__content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.banner__content p {
  font-size: 1.5rem;
}

@media screen and (max-width: 768px) {
  .hero__content h1,
  .banner__content h1 {
    font-size: 2rem;
  }

  .hero__content p,
  .banner__content p {
    font-size: 1rem;
  }
}