/* 外枠デザイン（300x250固定） */
.original-widget-container-300 {
  width: 300px !important;
  height: 250px !important;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  box-sizing: border-box;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, sans-serif;
}

/* スライド表示エリア（高さ225px） */
.original-carousel-viewport {
  width: 100%;
  height: 225px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* スライドを横一列に並べるレール */
.original-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease-in-out; 
}

/* スライド1枚ごとの構造（300px幅、高さ225px） */
.original-product-slide {
  flex-shrink: 0 !important;
  width: 300px !important;
  height: 100% !important;
  box-sizing: border-box;
}

.product-card-box {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
  box-sizing: border-box;
}

/* 画像ボックス（【修正】paddingを追加して左右に5pxづつの隙間を確保） */
.product-image-box {
  position: relative;
  width: 100%;
  height: 225px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 5px; /* 左右に5pxの隙間（余白）を作る */
  box-sizing: border-box; /* paddingを含めて300px幅に収める */
}

/* 【修正】画像の最大横幅を290pxに制限 */
.product-image-box img {
  max-width: 290px !important; /* 横幅を290pxに固定・制限 */
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* 下部のブランド・ナビゲーションエリア（背景色：黒） */
.fanza-footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: #000;
  border-top: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-sizing: border-box;
  z-index: 10;
}

/* オリジナルロゴ画像の表示用ボックス */
.fanza-logo-image-box {
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.fanza-logo-image-box img {
  height: 16px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* 右下のナビゲーションボタン枠 */
.fanza-nav-box {
  display: flex;
  align-items: center;
  border: 1px solid #444;
  border-radius: 3px;
  overflow: hidden;
  background: #000;
}

/* 矢印ボタン単体 */
.custom-nav-btn {
  width: 24px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: #000;
  user-select: none;
  transition: background 0.2s;
}

.custom-nav-btn:hover {
  background: #222;
}

.custom-nav-prev {
  border-right: 1px solid #444;
}

/* 端に達した時に矢印をグレーアウトするクラス */
.custom-nav-btn.is-disabled {
  color: #555 !important;
  cursor: default;
  background: #000 !important;
}
