/* --- 関連製品カルーセル --- */
.recommendation-carousel {
  position: relative;
  width: 100%;
  margin: 3em 0;
  padding: 1em 0;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

.recommendation-carousel .container {
  padding: 0 40px; /* 矢印ボタンのスペースを確保 */
  position: relative;
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1em;
}

.product-card {
  min-width: 130px; /* ← この値を小さくする */
  max-width: 130px; /* ← この値を小さくする */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-align: center;
  padding: 0.5em;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 6px;
}

.product-card a {
  display: block;
  color: #0074c1;
  font-weight: bold;
  margin: 0.5em 0;
  text-decoration: none;
}

.product-card a:hover {
  text-decoration: underline;
}

.product-card .maker {
  font-size: 0.85em;
  color: #555;
}

.product-card .price {
  font-size: 0.95em;
  color: #d10000;
  font-weight: bold;
  margin-top: 0.3em;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 1.2em;
  z-index: 10;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.carousel-button.left {
  left: 0;
}

.carousel-button.right {
  right: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .recommendation-carousel .container {
      padding: 0 5px; /* スマホでは矢印が内側に来るので余白を減らす */
  }
  .carousel-button {
      width: 30px;
      height: 30px;
  }
}