@charset "utf-8";
/* CSS Document */
/* ========================================
   画像スライダー全体
   ======================================== */

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
  transition: height 0.8s ease;
}

/* ========================================
   スライドエリア
   ======================================== */

.carousel-slides {
  position: relative;
  width: 100%;
  height: auto;
}

/* ========================================
   各スライド
   ======================================== */

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   画像
   ======================================== */

.slide img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

/* ========================================
   キャプション
   ======================================== */

.caption {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  padding: 15px 20px 45px 20px;
  margin: 0;

  background: #ffffff;
  color: #333333;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  box-sizing: border-box;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* 現在表示しているキャプション */
.caption.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   左右ボタン
   ======================================== */

.nav-button {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  padding: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   白い矢印
   ======================================== */

.nav-button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  position: relative;
}

.prev-button::before {
  transform: rotate(-135deg);
  left: 2px;
}

.next-button::before {
  transform: rotate(45deg);
  left: -2px;
}

/* ========================================
   左右ボタンの位置
   ======================================== */

.prev-button {
  left: 2px;
}

.next-button {
  right: 2px;
}

/* ========================================
   マウスを乗せたとき
   ======================================== */

.nav-button:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* ========================================
   下部ドット
   ======================================== */

.indicator-buttons {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  justify-content: center; 
  display: flex;
  gap: 8px;
  z-index: 10;
  flex-wrap: wrap;
}

.indicator {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.indicator:hover {
  background: rgba(0, 0, 0, 0.5);
}

.indicator.active {
  background: #333333;
  box-shadow: none;
}

/* ========================================
   STOP / PLAY ボタン
   ======================================== */

.play-pause-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 5px 9px;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.play-pause-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ========================================
   スマホ対応
   ======================================== */

@media screen and (max-width: 600px) {

  .carousel-container {
    height: auto;
  }

  .nav-button {
    width: 20px;
    height: 20px;
    top: 40%;
  }

  .prev-button {
    left: 2px;
  }

  .next-button {
    right: 2px;
  }

  .play-pause-btn {
    top: 8px;
    right: 8px;
    font-size: 11px;
  }

  .caption {
    font-size: 13px;
    padding: 10px 15px 42px 15px;
  }

  .indicator-buttons {
	bottom: 5px;
    gap: 4px;
}
}
