/* 共通ラッパー */
.auto-slideshow-wrapper, .manual-slideshow-wrapper {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

/* スライド本体 */
.auto-slide, .manual-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none; /* 非表示スライドはクリック不可 */
  transition: opacity 1s ease-in-out;
}

/* 表示中のスライドだけクリック可 */
.auto-slide.active, .manual-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* 画像サイズ＆切り抜き調整 */
.auto-slide img, .manual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スライド切り替えボタン */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.6);
  font-size: 24px;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1000;
}

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


/* サムネイル画像（任意機能） */
.thumbnail {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
}

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba( 255, 255, 255, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
