/* トップページ・ヒーロースライドショー */

.hero-slideshow {
  position: relative;
}

.hero-slideshow__viewport {
  position: relative;
  overflow: hidden;
  background: #0f2942;
}

.hero-slideshow__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-slideshow__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slideshow__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hero-slideshow__image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-slideshow__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.72));
  color: #fff;
  font-size: 0.95rem;
  text-align: left;
}

.hero-slideshow__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  pointer-events: none;
}

.hero-slideshow__dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-slideshow__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-slideshow__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow__slide {
    transition: none;
  }
}
