

/* スライダー全体 */
.slider-container {
  width: 100%;        /* 小さい画面のときは100%表示 */
  max-width: 1100px;  /* 大きい画面では最大1200pxに制限 */
  margin: 0 auto;     /* 中央寄せ */
  overflow: hidden;   /* はみ出し防止 */
}

/* スライド */
.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
}
.slide img {
  width: 100%;
  aspect-ratio: 16 / 9; /* 縦横比を指定 */
  object-fit: cover; /* アスペクト比を保ったままトリミング */
  cursor: pointer;
}

/* ボタン */
.prev, .next {
  position: absolute;
  top: 45%;               /* 縦方向の中央に配置 */
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}
.prev { left: 10px; }
.next { right: 10px; }

/* ドットインジケーター */
.dots {
  text-align: center;
  padding: 10px;
}
.dots span {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}
.dots .active {
  background-color: #333;
}

/* ポップアップ */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center; /* 水平方向中央 */
  align-items: center;     /* 垂直方向中央 */
  z-index: 1000;
}

.popup-img {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .prev, .next {
    font-size: 1.5rem;
    padding: 5px;
  }
  
}
