/* Hero Carousel 共通スタイル（広告バナー用：シンプル） */
.student-hero {
  width: 100%;
  padding: 10px; /* 上下左右10pxの余白 */
  box-sizing: border-box;
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f172a; /* 単色 */
  color: #fff;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); /* 浮いて見える影 */
}

/* 各スライドは全面でフェード＋軽い拡大アニメーション */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.0);
}

/* テキストキャプション（左下・白文字・半透明黒背景） */
.hero-caption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: 80%;
  padding: 6px 10px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
}

@media (min-width: 768px) {
  .hero-caption {
    left: 16px;
    bottom: 14px;
    font-size: 1rem;
    max-width: 60%;
  }
}

/* 画像のみ（広告バナー） */
.hero-banner-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* インジケータだけ残す（矢印等は不要） */
.hero-controls {
  /* 画像の外側にインジケーターを置くため static にし、上余白を付与 */
  position: static;
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.hero-indicators {
  position: static;
  transform: none;
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #bbb;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-indicator.is-active {
  width: 20px;
  background: #e68a28;
  transform: translateY(-1px);
}
