/* hero-slider — トップページのヒーロー画像を横スライドにする (index.html 専用)
 * 画像側に文字(キャッチコピー)が焼き込まれているため、PC は画像の縦横比に合わせて
 * 切り取りを最小にし、スマホは中央寄せで切り取って文字が残る範囲に収める。 */

.hero-fullbleed-glass-card.hero-slider-hero {
  min-height: 0;
  height: auto;
  aspect-ratio: 1895 / 731;
  max-height: 760px;
}

.hero-slider {
  overflow: hidden;
  touch-action: pan-y;
}

.hero-slider__track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.hero-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

/* ドット(現在位置の表示と手動切り替え) */
.hero-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(4px, 1.4vw, 16px);
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-slider__dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}

.hero-slider__dot::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: width 0.3s ease, margin 0.3s ease, background 0.3s ease;
}

.hero-slider__dot[aria-current="true"]::before {
  width: 28px;
  margin-left: -14px;
  background: #fff;
}

.hero-slider__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.6);
}

/* スマホ: 画像を少し縦長に切り出し、中央のキャッチコピーが読める大きさを保つ */
@media (max-width: 768px) {
  .hero-fullbleed-glass-card.hero-slider-hero {
    aspect-ratio: 5 / 4;
    max-height: 70vh;
  }
}
