/* Hero Carousel Styles */
.hero-carousel-container {
  width: 100%;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 60vh;
  min-height: 240px;
  max-height: 480px;
}

.hero-slide {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  overflow: hidden;
}

.hero-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  position: relative;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.hero-slide:hover .hero-background {
  transform: scale(1.05);
}

.hero-slide:hover .hero-background::before {
  opacity: 0.9;
}

.hero-content {
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 100%;
  padding: 2rem;
  color: #fff;
  z-index: 1;
  text-align: left;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-excerpt {
  font-size: clamp(1rem, 2vw, 1.6rem);
  margin: 0;
  max-width: 80%;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero-content { padding: 1.5rem; }
  .hero-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
  .hero-excerpt { max-width: 95%; }
}

@media (max-width: 480px) {
  .hero-swiper { height: 30vh; min-height: 200px; }
  .hero-content { padding: 1rem; }
  .hero-excerpt { -webkit-line-clamp: 1; }
}

/* Swiper Controls */
.hero-carousel-container .swiper-pagination { bottom: 20px; }

.hero-carousel-container .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0.5;
}

.hero-carousel-container .swiper-pagination-bullet-active {
  opacity: 1;
  background: #fff;
}

.hero-carousel-container .swiper-button-prev,
.hero-carousel-container .swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.hero-carousel-container .swiper-button-prev:hover,
.hero-carousel-container .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.5);
}

.hero-carousel-container .swiper-button-prev::after,
.hero-carousel-container .swiper-button-next::after {
  font-size: 18px;
}
/* 固定表示スライド（サービス概要ページ誘導用）はオーバーレイを無効化 */
.hero-slide-pinned .hero-background::before {
  display: none;
}