body {
  margin: 0;
  font-family: sans-serif;
  background: #f8f8f8;
}

/* スライド全体の枠 */
.slideshow-container {
  position: relative;
  max-width: 100%;
  height: 60vh;
  overflow: hidden;
}

/* 各スライド */
.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* フェードアニメーション */
.fade {
  animation-name: fade;
  animation-duration: 1.2s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* 左右ボタン */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  border-radius: 0 3px 3px 0;
  background: rgba(0, 0, 0, 0.4);
  user-select: none;
  transition: 0.3s;
  z-index: 10;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* ドットナビゲーション */
.dots-container {
  text-align: center;
  position: relative;
  top: 10px;
  padding: 0 0 50px 0;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.4s;
}

.active-dot, .dot:hover {
  background-color: #333;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .slideshow-container {
    height: 40vh;
  }

  .prev, .next {
    font-size: 20px;
    padding: 8px;
  }

  .dot {
    height: 10px;
    width: 10px;
    margin: 3px;
  }
}
