@import url(common.css);

.c-slider {
  position: relative;
  width: 100%;
  max-width: 900px; /* 必要なら調整 */
  margin: 0 auto;
}

.c-slider__viewport {
  overflow: hidden;
  border-radius: 14px; /* 任意 */
}

.c-slider__track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.c-slider__slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 16 / 9; /* 高さを安定させる（不要なら消してOK） */
  background: #f5f5f5; /* 余白が出る時の背景 */
  display: grid;
  place-items: center;
}

.c-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 切らずに表示。埋めたいなら cover */
  display: block;
}

/* ボタン */
.c-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.c-slider__btn--prev {
  left: 10px;
}
.c-slider__btn--next {
  right: 10px;
}

/* ドット */
.c-slider__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.c-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: #cfcfcf;
  cursor: pointer;
}

.c-slider__dot.is-active {
  background: #333;
}
