@charset "utf-8";

.main {
    margin-top: 90px;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-width: 1000px;
  margin: auto;
}

/* 横スクロール設定 */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory; /* スナップ有効 */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* 画像ごとにスナップ */
.carousel img {
  width: 100%;
  max-width: 250px;
  flex-shrink: 0;
  margin: 0 10px;
  border-radius: 10px;
  scroll-snap-align: center;
}

/* ボタン設定 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

/* ▼ ドット部分 ▼ */
.carousel-dots {
  text-align: center;
  margin-top: 12px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  border: none;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dots button.active {
  background-color: #333;
}

/* スマホでもボタンを残す */
@media (max-width: 768px) {
  .carousel-btn {
    font-size: 20px;
    padding: 6px 10px;
  }
}
