/* 全体の wrapper */
.carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

/* スライド群 */
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* スクロールバーを非表示に */
}

/* 各スライド */
.carousel-item {
  flex: none;
  scroll-snap-align: start;
  width: 500px;
  margin-right: 16px;
  position: relative;
}

.carousel-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 矢印ボタン */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.carousel-button.prev {
  left: 8px;
}

.carousel-button.next {
  right: 8px;
}
/* ──────────────── */
/* モバイル（スマホ）向け */
/* ┷画面幅768px以下で適用┷ */
@media (max-width: 768px) {
  /* カルーセル全体の幅制限を解除 */
  .carousel {
    max-width: none;
    width: 100%;
  }
  /* 各アイテムをビューポート幅いっぱいに */
  .carousel-item {
    width: 100%;
    margin-right: 0;
  }
}