/*! Written by SCSS - スライド専用修正版 */

/* スライドエリア全体の上下余白 */
.sec_plan {
  padding-bottom: clamp(40px, 5%, 60px);
}

/* 間取り切替ボタン（サムネイル）の配置とスタイル */
.slide_thumb {
  max-width: 900px !important;
  width: calc(100% - 40px) !important;
  margin: clamp(40px, 5.84%, 70px) auto 30px !important;
}
@media screen and (max-width: 480px) {
  .slide_thumb {
    margin: 30px auto 20px !important;
  }
}
.slide_thumb .swiper-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: clamp(10px, 1.67vw, 15px) 1.88% !important;
}
@media screen and (max-width: 480px) {
  .slide_thumb .swiper-wrapper {
    gap: 10px 2% !important;
  }
}
.slide_thumb .swiper-wrapper .swiper-slide {
  max-width: 212px !important;
  width: 23.56% !important;
  border-radius: 5px !important;
  background: rgba(159, 160, 160, 0.5) !important;
  cursor: pointer !important;
  transition: background 0.3s ease-in-out !important;
}
@media screen and (max-width: 480px) {
  .slide_thumb .swiper-wrapper .swiper-slide {
    width: 32% !important;
  }
}

/* ボタン内の画像サイズ固定（★ここが重要な追加ポイント） */
.slide_thumb .swiper-wrapper .swiper-slide img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* 選択中およびホバー時のベージュ背景色 */
.slide_thumb .swiper-wrapper .swiper-slide.swiper-slide-thumb-active {
  background: rgba(97, 84, 48, 0.5) !important;
}
@media (hover: hover) {
  .slide_thumb .swiper-wrapper .swiper-slide:hover {
    background: rgba(97, 84, 48, 0.5) !important;
  }
}

/* 左右矢印ボタン（Prev/Next）の配置指定 */
.plan_slide_outer {
  position: relative;
}
.plan_slide_outer .plan_arrow {
  opacity: 1;
  width: 4.24%;
  height: auto;
  line-height: 1;
  margin-top: 0;
  transition: opacity 0.3s ease-in-out;
}
.plan_slide_outer .plan_arrow::after {
  content: none;
}
@media (hover: hover) {
  .plan_slide_outer .plan_arrow:hover {
    opacity: 0.7;
  }
}
.plan_slide_outer .plan_arrow.arrow_prev {
  left: 1.93%;
}
@media screen and (max-width: 480px) {
  .plan_slide_outer .plan_arrow.arrow_prev {
    left: -10px;
  }
}
.plan_slide_outer .plan_arrow.arrow_next {
  right: 1.93%;
}
@media screen and (max-width: 480px) {
  .plan_slide_outer .plan_arrow.arrow_next {
    right: -10px;
  }
}
.plan_slide_outer .plan_arrow.swiper-button-disabled {
  opacity: 0.4;
}
.plan_slide_outer .plan_arrow img {
  width: 100%;
}

/* メイン図面スライダーの枠幅 */
.plan_slide .slide_in {
  max-width: 880px;
  width: 84.62%;
  margin-inline: auto;
}
@media screen and (max-width: 480px) {
  .plan_slide .slide_in {
    width: 100%;
  }
}

/* 補足用キャプション */
.plan_cap {
  max-width: 720px;
  margin-top: 20px;
  margin-inline: auto;
}


/* SwiperがJSで注入する位置計算（translate3d等）を強力に無効化して横並びを維持 */
.slide_thumb .swiper-wrapper {
    transform: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 1.88% !important;
}

.slide_thumb .swiper-slide {
    transform: none !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    max-width: 212px !important;
    width: 23.56% !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.slide_thumb .swiper-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

@media screen and (max-width: 480px) {
    .slide_thumb .swiper-slide {
        width: 32% !important;
    }
}