.slideshow {
  position: relative;
  overflow: visible; /* 画像は inset:0 で収まるためクリップ不要。ドットを画像下に配置できる */
  aspect-ratio: 3 / 2; /* デフォルト。使用箇所のCSSで上書きすること */
}

.slideshow__list {
  position: absolute;
  inset: 0;
}

/* すべてのアイテムを重ね合わせ、is-active のみ表示 */
.slideshow__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.slideshow__item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slideshow__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow__prev,
.slideshow__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-overlay);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  font-size: var(--fz-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slideshow__prev { left: 0; }
.slideshow__next { right: 0; }

.slideshow__dots {
  position: absolute;
  bottom: var(--sp-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-xs);
  z-index: 1;
}

.slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background var(--transition-fast);
}

.slideshow__dot.is-active {
  background: #fff;
}
