.slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 8px;
}

/* 矢印ボタン */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10; /* ←これ重要 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev { left: 10px; }
.next { right: 10px; }

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}


.dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 8px;
}

.dots span {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dots span.active {
  background: #333;
}
