/* =======================================
   1. PCとスマホの表示切り替え
======================================= */
.sp-only-slider {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
.pc-only-img {
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .pc-only-img {
    display: none;
  }
  .sp-only-slider {
    height: auto;
    overflow: visible;
    visibility: visible;
    width: 100%;
    padding-bottom: 40px; /* ドットのための余白 */
  }
}

/* =======================================
   2. 画像のスタイル
======================================= */
.swiper-slide {
  display: flex;
  justify-content: center;
}
.swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* =======================================
   3. 矢印ボタンを「絶対に押せる」ようにする設定
======================================= */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  
  /* ボタンを最前面にして、スマホの連続タップを許可 */
  z-index: 9999 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

.swiper-button-next {
  right: 10px !important;
}
.swiper-button-prev {
  left: 10px !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px !important;
}
/* =======================================
   4. 画像下の余白と、ドットの位置調整
======================================= */
.swiper-slide img {
  /* 画像の下に40pxの空間を作る */
  margin-bottom: 40px !important; 
}

.swiper-pagination {
  /* ドットを一番下（余白部分）に下ろす */
  bottom: 0 !important; 
}
