.slideshow-container {
  position: relative;
  max-width: 600px; /* スライドショーの最大幅（任意に調整してください） */
  margin: auto;
  overflow: hidden;
}

.slides {
  position: relative;
  height: 400px; /* スライドショーの高さ（任意に調整してください） */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out; /* じわっと切り替わるエフェクト */
}

/* 表示されている画像 */
.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像の比率を保ったままエリア全体に表示 */
}

/* ボタンのスタイル */
button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

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