/* -------------------------------
   PC用：3列グリッド表示
-------------------------------- */
.base_items_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.base_items_list::after {
  content: "";
  display: block;
  width: calc(100% / 3);
}

.base_item {
  list-style: none;
  flex-basis: calc(100% / 3);
  margin-bottom: 2em;
}

.base_item dt {
  margin: 0 0 .5em 0;
}

.base_item dd {
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.base_item_title {
  font-size: 16px;
}

/* -------------------------------
   スマホ用：カルーセル風スライダー
-------------------------------- */
.base_items_slider_wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0 10px;
}

.base_items_slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.base_item_card {
  flex: 0 0 80%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  scroll-snap-align: start;
  text-align: center;
}

.base_item_image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

.base_item_title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}

.base_item_price {
  font-size: 15px;
  color: #e60012;
  margin-bottom: 4px;
  min-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.base_item_detail {
  font-size: 14px;
  color: #555;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}

/* スクロールバー非表示 */
.base_items_slider_wrap::-webkit-scrollbar {
  display: none;
}

/* -------------------------------
   レスポンシブ切り替え：スマホ時はスライダーのみ表示
-------------------------------- */
@media screen and (max-width: 768px) {
  .base_items {
    display: none; /* PC用グリッドを非表示に */
  }
  .base_items_slider_wrap {
    display: block;
  }
}

/* PCではスライダー非表示 */
@media screen and (min-width: 769px) {
  .base_items_slider_wrap {
    display: none;
  }
}