/* ここから Build-center 専用 */

.swiper {
  z-index: 0;
}

.swiper-thumbs .swiper-wrapper {
  justify-content: center;
}

.swiper[class*="thumb-"] {
  width: 100%;
  padding-top: 10px;
}

/* サムネイル全体の透明度は常に 1 */
.swiper[class*="thumb-"] .swiper-slide {
  width: auto !important; /* 自動調整 */
  max-width: 120px;
  opacity: 1 !important; /* 透明度を常に1に */
  cursor: pointer;
  filter: brightness(80%); /* 非アクティブは暗め */
  transition: filter 0.3s ease;
}
.swiper-top {
  cursor: default !important;
}
/* アクティブなサムネイルは明るく */
.swiper[class*="thumb-"] .swiper-slide-thumb-active {
  filter: brightness(110%);
}
.swiper[class*="thumb-"] img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.swiper-thumbnail {
  max-width: 700px;
}

.swiper-thumbnail .swiper-slide-visible img {
  filter: brightness(80%);
}

.swiper-thumbnail .swiper-slide-visible.swiper-slide-thumb-active img {
  filter: brightness(110%);
}

.swiper img:hover {
  cursor: pointer;
}

.swiper-Build-center.swiper {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  z-index: 0;
}

.swiper-Build-center .swiper-wrapper .swiper-slide {
  overflow: hidden;
  transition: opacity 0.5s ease;
  opacity: 0.3; /* デフォルトは半透明 */
}

.swiper-Build-center .swiper-wrapper .swiper-slide.swiper-slide-active {
  opacity: 1 !important; /* アクティブは完全表示 */
}

.swiper-Build-center .swiper-wrapper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  pointer-events: auto;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

@media (min-width: 768px) {
  .swiper-Build-center .swiper-wrapper .swiper-slide img {
    width: 100%;
    height: auto;
  }
}

.swiper-Build-center .swiper-wrapper .swiper-slide a {
  display: block;
  color: #3b3b3b;
  background: #ffffff;
  font-weight: bold;
  overflow: hidden;
}

.swiper-Build-center .swiper-wrapper .swiper-slide a img {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

@media (max-width: 767px) {
  .swiper-Build-center .swiper-wrapper .swiper-slide a img {
    margin-right: 9vw;
    color: #3b3b3b;
  }
  .swiper-Build-center .swiper-wrapper .swiper-slide a img::after {
    background: #3b3b3b;
  }
}

.swiper-Build-center .swiper-wrapper .swiper-slide a:hover {
  color: #b1a595;
}

.swiper-Build-center .swiper-wrapper .swiper-slide a:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* Build-center のナビやページネーション */

.swiper-Build-center .swiper-button-prev::after,
.swiper-Build-center .swiper-button-next::after {
  color: #000;
  border-radius: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.swiper-Build-center .swiper-pagination {
  bottom: 0;
  left: 51%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .swiper-Build-center .swiper-pagination {
    bottom: 0;
  }
}

.swiper-Build-center .swiper-pagination-bullet {
  border-radius: 4px;
  transform: scaleX(1);
  transition: 0.5s all;
}

@media (min-width: 768px) {
  .swiper-Build-center .swiper-pagination-bullet {
    border-radius: 0.75rem;
  }
}

.swiper-Build-center .swiper-pagination-bullet-active {
  background: #9b6c4f;
  border: 1px solid #9b6c4f;
}

/* ここまで Build-center 専用 */
