#shopify-section-template--20202043670621__home_bnr_7Ytyhq{
  display:none;
  position:relative;
}

[data-element-id]#shopify-section-template--20202043670621__home_bnr_7Ytyhq{
  display:block;
  filter: grayscale(100);
  border:3px solid #dc143c;
  padding-top:40px;
}

[data-element-id]#shopify-section-template--20202043670621__home_bnr_7Ytyhq:before {
    content: "公開画面で非表示：dokodemo-swiper.cssの6～26行目を削除で解除できます";
    font-weight: bold !important;
    font-size: 14px !important;
    color: #fff !important;
    height: 30px;
    line-height: 30px !important;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #dc143c;
    z-index: 10000 !important;
    cursor: pointer;
}

.banner-swiper{
  padding:30px 0;
}

.banner-swiper .swiper-slide a{
  display:block;
 position:relative;
 width:100%;
}

.banner-swiper .swiper-slide a::after{
  content:"";
  width:100%;
  display:block;
  position:relative;
  padding-top:50%;
}

.banner-swiper .swiper-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  position:absolute;
  top:0;
  left:0;
}

[data-element-id].banner-swiper .swiper-wrapper{
  width:100%;
  overflow-x:scroll;
}

[data-element-id].banner-swiper .swiper-wrapper>div{
  width:auto;
  display:flex;
  align-items: center;
  gap:10px;
}

[data-element-id].banner-swiper .swiper-wrapper .swiper-slide{
  width:400px;
  height:200px;
}

/* =========================================
   左右の矢印ボタンのベース設定
========================================= */
.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
  width: 44px; /* ボタンの幅 */
  height: 44px; /* ボタンの高さ */
  background-color: rgba(255, 255, 255, 0.8); /* 背景色（半透明の白） */
  border-radius: 50%; /* ボタンを真ん丸にする */
  color: #333 !important; /* 矢印アイコンの色（!importantでSwiperのデフォルトを上書き） */
  transition: all 0.3s ease; /* ホバー時のアニメーション */
  z-index: 10; /* 画像の下に隠れないようにする */
}

/* ホバー（マウスオーバー）時の設定 */
.banner-swiper .swiper-button-next:hover,
.banner-swiper .swiper-button-prev:hover {
  background-color: rgba(255, 255, 255, 1); /* ホバーで完全に不透明な白にする */
  transform: scale(1.05); /* 少しだけ拡大する */
}

/* デフォルトの矢印アイコンのサイズ調整 */
.banner-swiper .swiper-button-next::after,
.banner-swiper .swiper-button-prev::after {
  font-size: 16px !important; /* 矢印の大きさ */
  font-weight: bold;
}

/* =========================================
   スマホ表示（599px以下）の微調整
========================================= */
@media screen and (max-width: 599px) {
  /* スマホ時はボタンを少し小さくする */
  .banner-swiper .swiper-button-next,
  .banner-swiper .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
  
  .banner-swiper .swiper-button-next::after,
  .banner-swiper .swiper-button-prev::after {
    font-size: 14px !important;
  }

  /* 画面の端からの距離を調整 */
  .banner-swiper .swiper-button-next {
    right: 10px;
  }
  .banner-swiper .swiper-button-prev {
    left: 10px;
  }
}

