/* ================================================
   m-bannerSlider
   商品詳細ページ バナースライダー
   ================================================ */

/* ── スライダー本体 ── */
.m-bannerSlider-wrap {
  padding: 28px 0 16px;
}

.bn-viewport {
  overflow: hidden;
  width: 100%;
}

.bn-track {
  display: flex;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* スマホ：2枚表示 */
.bn-slide {
  flex: 0 0 calc(100% / 2);
  padding: 0 6px;
}

/* PC：3枚表示 */
@media (min-width: 640px) {
  .bn-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 8px;
  }
}

.bn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 620 / 420;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #999;
  font-size: 12px;
}

.bn-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 矢印 ── */
.bn-wrap {
  position: relative;
}

.bn-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  background: rgba(150, 150, 150, .85);
  border: none;
  padding: 0;
  font-size: 20px;
  color: #fff;
  transition: background .15s;
  line-height: 1;
}

.bn-arrow.prev { left: -22px; }
.bn-arrow.next { right: -22px; }
.bn-arrow:hover { background: rgba(120, 120, 120, .95); }

/* ── ドット ── */
.bn-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.bn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .2s, transform .2s;
}

.bn-dot.active {
  background: #111;
  transform: scale(1.3);
}

/* ── 静的中央寄せ（3枚以下） ── */
.bn-static {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 6px;
  flex-wrap: wrap;
}

/* スマホ：2列 */
.bn-static .bn-card {
  flex: 0 0 calc(50% - 6px);
  max-width: calc(50% - 6px);
}

/* PC：3列 */
@media (min-width: 640px) {
  .bn-static .bn-card {
    flex: 0 0 calc(100% / 3 - 8px);
    max-width: calc(100% / 3 - 8px);
  }
}
