/* V31: 用途タブを1号サイトと同じく横並びへ修正 */
.purpose-layout{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
}
.purpose-main{min-width:0}
.purpose-tabs{
  order:-1 !important;
  position:static !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
  padding:0 !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  margin:2px 0 4px !important;
}
.purpose-tabs-title{
  display:none !important;
}
.purpose-tab{
  min-height:72px;
  justify-content:center;
  align-items:flex-start;
  padding:12px 14px !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  background:#f8fbfc !important;
  text-decoration:none !important;
  color:var(--ink) !important;
  box-shadow:0 4px 14px rgba(16,45,59,.05);
}
.purpose-tab strong{
  font-size:.94rem !important;
  line-height:1.25 !important;
}
.purpose-tab span{
  font-size:.72rem !important;
  color:var(--sub) !important;
  line-height:1.45 !important;
}
.purpose-tab:hover{
  transform:translateY(-1px);
  background:#fff !important;
}
.purpose-tab.active{
  background:#0e7f8f !important;
  border-color:#0e7f8f !important;
  color:#fff !important;
}
.purpose-tab.active span{
  color:#e9fbff !important;
}
.purpose-tab.all{
  background:#fff8df !important;
}

/* ページ内の商品画像はV29トップと同じ「全体が見える」寄せ */
.purpose-page .product-grid .product-card .product-image{
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:1 / 1 !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
}
.purpose-page .product-grid .product-card .product-image img,
.purpose-page .product-grid .product-card img.card-product-photo{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  padding:10px !important;
  box-sizing:border-box !important;
  background:#fff !important;
}

@media (max-width: 900px){
  .purpose-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width: 620px){
  .purpose-tabs{
    grid-template-columns:1fr !important;
  }
  .purpose-tab{
    min-height:auto;
  }
}