/* ===== セクション ===== */
.product-section{
  margin-bottom: 40px;
  scroll-margin-top: 140px;
}
.section-title{
  font-size: 1.4rem;
  color: #c00;
  margin: 30px 0 5px;
}
/* ===== セクション説明 ===== */
.category-description{
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}
.product-section .category-description{
  margin-bottom: 28px;
}
.category-note{
  font-size: 13px;
  color: #777;
  margin-top: 12px;
}

/* ===== 商品グリッド ===== */
.product-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px){
  .product-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 商品カード ===== */
.product-card{
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}
.product-card:hover{
  border-color: #c00;
}

/* ===== 商品画像 ===== */
.product-card img{
  width: 100%;
  max-width: 100%;
  height: 120px;
  max-height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  box-sizing: border-box;
}

/* ===== 商品名 ===== */
.product-card p{
  font-size: 0.95rem;
  margin: 0;
}

/* リンクありカードだけ赤枠にする */
.product-card:not(.no-link):hover{
  border-color: #c00;
}

/* no-link カードは枠色を変えない */
.product-card.no-link:hover{
  border-color: #ddd;
}


/* ===== no-link カード ===== */
.product-card.no-link{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-card.no-link img{
  margin-bottom: 10px;
}
.product-card.no-link h3{
  font-size: 1rem;
  margin: 0 0 8px;
  color: #333;
}
.product-card.no-link .desc{
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
  text-align: left;
  width: 100%;
}

/* ===== few（1商品用） ===== */
.product-grid.few{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.product-grid.few .product-card{
  max-width: 280px;
  width: 100%;
}

/* ===== two-cols（2商品用） ===== */
.product-grid.two-cols{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.product-grid.two-cols .product-card{
  width: auto !important;
  max-width: none !important;
}
@media (max-width: 768px){
  .product-grid.two-cols{
    grid-template-columns: 1fr;
  }
}



