@charset "utf-8";

.product_section {
  width: 100%;
  margin-top: 100px;
}

.section_inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.section_title {
  font-size: min(5.45vw, 24px);
  font-weight: bold;
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.section_title::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--text-color);
  margin-left: 16px;
  min-width: 50px;
  max-width: 100%;
}

/* 横スクロールテキスト */
.scrool_text {
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 12px;
  color: var(--text-color);
  text-align: right;
}
.scrool_text::after {
  content: "→";
  display: inline-block;
  margin-left: 5px;
  animation: scrollArrow 0.8s infinite alternate;
}
@keyframes scrollArrow {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(5px);
  }
}

/* 商品リスト */
.product_items {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding: 20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE, Edge */
}

.product_items::-webkit-scrollbar {
  display: none;
}

.product_items > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.product_item {
  width: min(72.72vw, 320px);
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: var(--white--);
}

.product_item img {
  width: 200px;
  height: 150px;
  display: block;
  margin: 0 auto;
}

.pr_text_wrapper {
  width: 100%;
}

.pr_name {
  font-size: min(4.54vw, 20px);
  font-weight: bold;
  margin-top: 12px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.pr_description {
  font-size: min(3.63vw, 16px);
  color: var(--text-color);
  margin-bottom: 20px;
}

.pr_description span {
  font-weight: bold;
}

.pr_price {
  font-size: min(5.45vw, 24px);
  font-weight: bold;
  color: var(--buy-btn-color);
}

.pr_price span {
  font-size: 12px;
}

/*ボタン設定*/
/*ボタン設定*/
.buy_btn {
  width: 200px;
  height: 45px;
  margin: 0 auto;
  margin-bottom: 20px;
}
.buy_btn_link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 10px;
  padding-inline: 30px;
  font-size: min(4.54vw, 20px);
  font-style: normal;
  font-weight: bold;
  letter-spacing: 10%;
  border-radius: min(0.78vw, 6px);
  transition: all 0.3s ease;
  background-color: var(--btn-color);
  color: var(--white--);
}

@media screen and (min-width: 1023px) {
  .section_title {
    font-size: min(3.33vw, 48px);
  }
  .section_title::after {
    min-width: 100px;
  }
  .product_section {
    width: 100%;
    margin-top: 100px;
  }
  .section_inner {
    width: 1000px;
    padding-inline: 10px;
    padding-block: 30px;
  }
  /* 商品リスト */
  .product_items {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: hidden;
  }
}

@media screen and (min-width: 1440px) {
  .product_section {
    width: 100%;
    margin-top: 100px;
  }
  .section_inner {
    width: 1280px;
    padding-inline: 100px;
    padding-block: 30px;
  }
  /* 商品リスト */
  .product_items {
    gap: 50px;
  }
}

/* --- 横スクロールをマウスドラッグでも可能にするJSを併用してください ---
例：
const slider = document.querySelector('.product_items');
let isDown = false;
let startX;
let scrollLeft;
slider.addEventListener('mousedown', (e) => {
  isDown = true;
  slider.classList.add('active');
  startX = e.pageX - slider.offsetLeft;
  scrollLeft = slider.scrollLeft;
});
slider.addEventListener('mouseleave', () => {
  isDown = false;
  slider.classList.remove('active');
});
slider.addEventListener('mouseup', () => {
  isDown = false;
  slider.classList.remove('active');
});
slider.addEventListener('mousemove', (e) => {
  if (!isDown) return;
  e.preventDefault();
  const x = e.pageX - slider.offsetLeft;
  const walk = (x - startX) * 1.5; // スクロール速度調整
  slider.scrollLeft = scrollLeft - walk;
});
--- */
