/* V30: 3用途分類 + 専用ページ + 右側タブ */
.purpose-page .purpose-hero{margin-bottom:12px}
.purpose-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:18px;
  align-items:start;
}
.purpose-main{min-width:0}
.purpose-main > .section{margin-top:0}

/* right-side tabs: same "jump by section" idea as site 1 */
.purpose-tabs{
  position:sticky;
  top:82px;
  display:grid;
  gap:9px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:0 8px 24px rgba(16,45,59,.08);
}
.purpose-tabs-title{
  font-size:.78rem;
  font-weight:900;
  color:var(--sub);
  padding:2px 4px 5px;
}
.purpose-tab{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#f8fbfc;
  color:var(--ink);
  text-decoration:none;
  transition:.12s ease;
}
.purpose-tab strong{font-size:.92rem}
.purpose-tab span{font-size:.69rem;color:var(--sub)}
.purpose-tab:hover{transform:translateY(-1px);background:#fff}
.purpose-tab.active{
  background:#0e7f8f;
  border-color:#0e7f8f;
  color:#fff;
}
.purpose-tab.active span{color:#e7fbff}
.purpose-tab.all{background:#fff8df}

/* category product images: same full-image presentation as V29 top */
.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;
  transform:none!important;
  padding:10px!important;
  box-sizing:border-box!important;
  background:#fff!important;
}

/* top: only the three requested category selectors */
.hero-visual .mini-grid.v30-three{
  grid-template-columns:repeat(3,1fr)!important;
  width:96%!important;
}
.hero-visual .mini-grid.v30-three a{
  min-height:72px!important;
  height:auto!important;
  padding:9px!important;
  text-align:center;
}
.grid3-v30{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

@media(max-width:900px){
  .purpose-layout{grid-template-columns:1fr}
  .purpose-tabs{
    position:sticky;
    top:64px;
    z-index:20;
    grid-template-columns:repeat(4,minmax(0,1fr));
    order:-1;
    padding:8px;
  }
  .purpose-tabs-title{display:none}
  .purpose-tab{padding:9px 7px;text-align:center}
  .purpose-tab span{display:none}
}
@media(max-width:620px){
  .purpose-tabs{grid-template-columns:repeat(2,minmax(0,1fr));position:static}
  .grid3-v30{grid-template-columns:1fr}
  .hero-visual .mini-grid.v30-three{grid-template-columns:1fr!important}
}