/* hero.css */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}

/* ── スライダー本体 ────────────────────────────── */
.hero__slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero__slide {
  flex: 0 0 100%;
  width: 100%;
}

.hero__link {
  display: block;
  width: 100%;
}

.hero__img {
  width: 100%;
  height: clamp(280px, 40vw, 440px);
  object-fit: cover;
  display: block;
}

/* ── プレースホルダー ───────────────────────────── */
.hero__placeholder {
  width: 100%;
  height: clamp(280px, 50vw, 520px);
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ── ドットナビ ─────────────────────────────────── */
.hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.2);
}
/* ── SP用：縦長画像に対応 ──────────────────────── */
@media (max-width: 767px) {
  .hero__img,
  .hero__placeholder {
    height: 133.33vw; /* 750:1000 ≒ 4:3 系の縦長比率 */
    max-height: 700px;
  }
}
@media (max-width: 520px) {
  .hero__dots {
    bottom: 10px;
  }
  .hero__dot {
    width: 8px;
    height: 8px;
  }
}