/* ===== Hero Component ===== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__slider {
  position: relative;
}

.hero__slide {
  position: relative;
  display: none;
}

.hero__slide:first-child,
.hero__slide.is-active {
  display: block;
}

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

.hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--container-padding);
  background: linear-gradient(
    to right,
    rgba(26, 35, 50, 0.6) 0%,
    rgba(26, 35, 50, 0.2) 60%,
    transparent 100%
  );
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--font-hero);
  font-weight: 500;
  color: var(--color-text-inverse);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: var(--font-body-size);
  color: var(--color-text-inverse);
  margin-top: var(--space-sm);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__cta {
  margin-top: var(--space-lg);
  align-self: flex-start;
}

/* 画像なし時のグラデーション背景フォールバック */
.hero__image--gradient {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(
    135deg,
    #1a2332 0%,
    #2c3e50 30%,
    #4a6741 60%,
    #8b7355 100%
  );
}

/* ドットインジケーター */
.hero__dots {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-xs);
  z-index: 10;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.hero__dot.is-active {
  background-color: var(--color-primary-500);
}

/* ナビ矢印（SPでは非表示） */
.hero__nav {
  display: none;
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
  .hero__image img {
    aspect-ratio: 16 / 9;
  }

  .hero__image--gradient {
    aspect-ratio: 16 / 9;
  }
}

/* ===== PC (1024px+) ===== */
@media (min-width: 1024px) {
  .hero__image img {
    aspect-ratio: 21 / 9;
  }

  .hero__image--gradient {
    aspect-ratio: 21 / 9;
  }

  .hero__content {
    padding: var(--space-3xl) var(--space-4xl);
  }

  .hero__nav {
    display: block;
  }

  .hero__nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
    border: none;
  }

  .hero__nav-btn:hover {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-lg);
  }

  .hero__nav-btn--prev {
    left: var(--space-lg);
  }

  .hero__nav-btn--next {
    right: var(--space-lg);
  }
}
