
:root{
  --bg:#ffffff;
  --bg-soft:#f5f7fa;
  --surface:#ffffff;
  --surface-alt:#f8fafc;
  --ink:#1f2937;
  --muted:#596273;
  --muted-2:#7a8596;
  --line:#e3e8ef;
  --line-strong:#cfd8e3;
  --primary:#214f8a;
  --primary-dark:#173c6f;
  --primary-soft:#eef4fb;
  --accent:#ee8b19;
  --accent-strong:#d97706;
  --accent-soft:#fff7ed;
  --price:#d66a00;
  --success:#2d6b53;
  --gold:#f4b400;
  --gold-soft:#fff8dc;

  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:24px;
  --space-6:32px;
  --space-7:48px;
  --space-8:64px;

  --radius-sm:4px;
  --radius-md:8px;
  --radius-lg:12px;

  --container:1280px;
  --shadow-soft:0 1px 2px rgba(15,23,42,.04);
  --hero-grad:none;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-width:320px;
  background:#fff;
  color:var(--ink);
  font-family:"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic","YuGothic","Meiryo",sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}

.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin-inline:auto;
}
.page{padding:var(--space-5) 0 var(--space-8)}
.panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-soft);
}
.section{margin-top:var(--space-5)}
.content-col > .section:first-of-type{margin-top:0}
.small{font-size:.82rem;color:var(--muted)}
.muted{color:var(--muted)}
.price{color:var(--price);font-weight:800}
.stars{color:var(--gold);letter-spacing:.03em;white-space:nowrap;text-shadow:0 1px 0 rgba(84,58,0,.06)}
.lead{font-size:.96rem;color:#424754}
.section-kicker{
  margin:0 0 var(--space-2);
  color:var(--primary);
  font-size:.76rem;
  font-weight:700;
}
.eyebrow{
  margin:0 0 var(--space-2);
  color:var(--primary);
  font-size:.82rem;
  font-weight:700;
}
.ghost-link{
  color:var(--primary);
  font-size:.82rem;
  font-weight:700;
}
.tag-inline{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-2);
  margin:0;
  padding:0;
  list-style:none;
}
.tag-inline li{
  font-size:.76rem;
  color:var(--muted);
}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.header-main{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:var(--space-5);
  align-items:center;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand-mark{
  width:40px;
  height:40px;
  border-radius:8px;
  background:var(--primary);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:.92rem;
  font-weight:800;
}
.brand-copy strong{
  display:block;
  line-height:1.1;
  font-size:1.05rem;
}
.brand-copy span{
  display:block;
  margin-top:2px;
  font-size:.73rem;
  color:var(--muted);
}
.header-search{
  display:grid;
  grid-template-columns:minmax(0,1fr) 72px;
  align-items:center;
  gap:0;
  min-width:0;
}
.header-search input{
  width:100%;
  height:46px;
  padding:0 14px;
  border:1px solid var(--line-strong);
  border-right:0;
  border-radius:var(--radius-sm) 0 0 var(--radius-sm);
  background:#fff;
  color:var(--ink);
}
.header-search input::placeholder{color:#8a8a95}
.header-search button{
  height:46px;
  border:0;
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  letter-spacing:.02em;
}

.layout{
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:var(--space-5);
  align-items:start;
}
.catalog-sidebar{
  position:sticky;
  top:88px;
}
.sidebar-box{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  margin-bottom:12px;
  overflow:hidden;
}
.sidebar-box__title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  background:var(--primary);
  color:#fff;
  font-size:.88rem;
  font-weight:700;
}
.sidebar-box__title::after{
  content:"+";
  opacity:.75;
  font-size:1rem;
}
.sidebar-box__body{padding:0}
.sidebar-list,
.sidebar-sublist{
  list-style:none;
  margin:0;
  padding:0;
}
.sidebar-list li,
.sidebar-sublist li{
  border-bottom:1px solid var(--line);
}
.sidebar-list li:last-child,
.sidebar-sublist li:last-child{
  border-bottom:0;
}
.sidebar-list a,
.sidebar-sublist a{
  display:flex;
  justify-content:space-between;
  gap:var(--space-3);
  align-items:flex-start;
  padding:9px 12px;
  font-size:.85rem;
}
.sidebar-list a:hover,
.sidebar-sublist a:hover{
  background:var(--surface-alt);
}
.sidebar-list small,
.sidebar-sublist small{
  color:var(--muted-2);
  white-space:nowrap;
}
.sidebar-sublist a{
  padding-left:16px;
  color:#44556d;
  font-size:.83rem;
}
.sidebar-maker-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
}
.sidebar-maker-grid a{
  padding:10px 12px;
  font-size:.82rem;
  border-top:1px solid var(--line);
  border-right:1px solid var(--line);
}
.sidebar-maker-grid a:nth-child(2n){border-right:0}
.sidebar-maker-grid a:nth-child(-n+2){border-top:0}
.sidebar-maker-grid a:hover{background:var(--surface-alt)}

.content-col{min-width:0}
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  margin:0 0 12px;
  color:var(--muted-2);
  font-size:.8rem;
}
.breadcrumbs a{color:#52657f}
.breadcrumbs span::before{
  content:"›";
  margin-right:6px;
  color:#a0acba;
}

.hero-box{
  padding:24px 24px 20px;
  background:#fff;
}
.hero-box h1,
.product-summary h1{
  margin:0;
  font-size:2.2rem;
  line-height:1.24;
  letter-spacing:-.01em;
}
.hero-box p{margin:10px 0 0;color:#434955}
.hero-box__main{max-width:720px}
.hero-inline-search{
  display:grid;
  grid-template-columns:minmax(0,1fr) 72px;
  gap:0;
  max-width:760px;
  margin-top:18px;
}
.hero-inline-search input{
  height:44px;
  border:1px solid var(--line-strong);
  border-right:0;
  padding:0 14px;
  border-radius:var(--radius-sm) 0 0 var(--radius-sm);
}
.hero-inline-search button{
  height:44px;
  border:0;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}
.hero-shortcuts{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.hero-shortcuts a{
  position:relative;
  padding-right:12px;
  font-size:.83rem;
  color:var(--primary);
  font-weight:700;
}
.hero-shortcuts a::after{
  content:"›";
  position:absolute;
  right:0;
  top:0;
  color:#8ea0b7;
}

.section-head,
.block-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:var(--space-4);
  margin-bottom:18px;
}
.section-head h2,
.block-head h2,
.purchase-box__title h2{
  position:relative;
  margin:0;
  padding-left:14px;
  font-size:1.24rem;
  line-height:1.3;
  font-weight:800;
  letter-spacing:-.01em;
}
.section-head h2::before,
.block-head h2::before,
.purchase-box__title h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.26em;
  width:4px;
  height:.95em;
  border-radius:999px;
  background:var(--primary);
}
.section-head p{margin:4px 0 0;font-size:.86rem;color:var(--muted)}
.section-head a,
.block-head a{
  color:var(--primary);
  font-size:.82rem;
  font-weight:700;
  white-space:nowrap;
  text-decoration:underline;
  text-decoration-color:#d9e2ef;
  text-underline-offset:3px;
}

.products-panel,
.ranking-panel,
.guide-panel,
.article-panel,
.summary-panel,
.keypoint-panel,
.review-panel,
.score-panel,
.spec-panel,
.mini-ranking,
.related-panel,
.faq-panel{
  padding:16px;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
}
.product-card{
  position:relative;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:#fff;
  overflow:hidden;
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.product-card::before{
  content:"";
  position:absolute;
  left:0;top:0;right:0;
  height:2px;
  background:linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity:.9;
}
.product-card:hover{
  border-color:var(--line-strong);
  transform:translateY(-2px);
  box-shadow:0 4px 14px rgba(15,23,42,.05);
}
.product-card__image{
  display:grid;
  place-items:center;
  aspect-ratio:4 / 3;
  padding:14px;
  background:linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  border-bottom:1px solid var(--line);
}
.product-card__image img{
  max-height:88%;
  width:auto;
}
.product-card__body{padding:12px}
.product-card__brand{
  font-size:.74rem;
  color:var(--muted-2);
  margin-bottom:2px;
  font-weight:600;
}
.product-card h3{margin:0;font-size:.95rem;line-height:1.38}
.product-card p{
  margin:6px 0 8px;
  font-size:.82rem;
  color:#4d596a;
  min-height:38px;
}
.spec-inline{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  list-style:none;
  padding:0;
  margin:0 0 10px;
}
.spec-inline li{
  font-size:.71rem;
  color:#5d6a7c;
  background:#f5f7fa;
  border:1px solid var(--line);
  border-radius:4px;
  padding:3px 6px;
}
.product-card__foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:.86rem;
}
.product-card__foot .stars{font-size:.76rem}

.ranking-list{display:flex;flex-direction:column;gap:0}
.ranking-row{
  display:grid;
  grid-template-columns:30px 62px minmax(0,1fr) 110px;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-top:1px solid var(--line);
}
.ranking-row:first-child{border-top:0}
.rank-badge{
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--muted);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:.72rem;
  font-weight:800;
}
.ranking-row:nth-child(1) .rank-badge,
.mini-ranking-item:nth-child(1) .rank-badge{background:#b7871c}
.ranking-row:nth-child(2) .rank-badge,
.mini-ranking-item:nth-child(2) .rank-badge{background:#75849a}
.ranking-row:nth-child(3) .rank-badge,
.mini-ranking-item:nth-child(3) .rank-badge{background:#ad6b3e}

.ranking-thumb{
  width:62px;
  height:46px;
  border:1px solid var(--line);
  border-radius:4px;
  overflow:hidden;
  background:#fff;
}
.ranking-thumb img{width:100%;height:100%;object-fit:cover}
.ranking-body h3{margin:0;font-size:.91rem}
.ranking-body p{margin:4px 0 7px;font-size:.82rem;color:#4d596a}
.ranking-meta{text-align:right;font-size:.84rem}
.ranking-meta .stars{display:block;margin-top:4px;font-size:.74rem}
.ranking-meta .ghost-link{display:inline-block;margin-top:4px}

.guide-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
}
.guide-card{
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  overflow:hidden;
  background:#fff;
}
.guide-card h3{
  position:relative;
  margin:0;
  padding:12px 12px 12px 24px;
  background:#f8fafc;
  border-bottom:1px solid var(--line);
  font-size:.93rem;
}
.guide-card h3::before{
  content:"";
  position:absolute;
  left:12px;
  top:50%;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  transform:translateY(-50%);
}
.guide-links{list-style:none;margin:0;padding:0}
.guide-links li{border-top:1px solid var(--line)}
.guide-links li:first-child{border-top:0}
.guide-links a{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  padding:10px 12px;
  font-size:.85rem;
}
.guide-links strong{display:block;color:var(--primary)}
.guide-links span{display:block;font-size:.79rem;color:var(--muted)}
.guide-links small{color:var(--muted-2)}

.article-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
}
.article-card{
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  overflow:hidden;
  background:#fff;
}
.article-card__thumb{
  aspect-ratio:16 / 9;
  background:#edf2f7;
  border-bottom:1px solid var(--line);
}
.article-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.article-card__body{padding:12px}
.article-card__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.72rem;
  color:var(--primary);
  font-weight:700;
}
.article-card__eyebrow::before{
  content:"";
  width:14px;
  height:2px;
  border-radius:999px;
  background:var(--accent);
}
.article-card h3{margin:6px 0 6px;font-size:1rem;line-height:1.45}
.article-card p{margin:0;color:#4d596a;font-size:.84rem}
.article-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  font-size:.76rem;
  color:var(--muted-2);
}

.product-layout{
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(340px,.96fr);
  gap:20px;
}
.gallery-panel{padding:16px}
.gallery-stage{
  display:grid;
  place-items:center;
  aspect-ratio:4 / 3;
  padding:18px;
  background:#f6f8fb;
  border:1px solid var(--line);
}
.gallery-stage img{max-height:100%;width:auto}
.gallery-thumbs{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-top:10px;
}
.gallery-thumbs a{
  display:block;
  border:1px solid var(--line);
  background:#fff;
  border-radius:4px;
  padding:4px;
}
.gallery-thumbs img{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:contain;
}
.product-summary{padding:0}
.summary-path{
  margin:0 0 var(--space-2);
  color:var(--muted-2);
  font-size:.78rem;
}
.summary-points{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  list-style:none;
  margin:12px 0 0;
  padding:0;
  font-size:.82rem;
  color:#4d596a;
}
.summary-points li::before{
  content:"•";
  margin-right:6px;
  color:var(--accent);
}
.summary-metrics{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:10px;
  margin:16px 0 12px;
}
.metric-panel{
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  padding:14px;
}
.metric-panel small{
  display:block;
  font-size:.75rem;
  color:var(--muted);
}
.metric-panel strong{
  display:block;
  margin-top:4px;
  font-size:1.6rem;
  line-height:1.1;
}
.metric-panel .stars{
  display:block;
  margin:6px 0 2px;
  font-size:1rem;
}
.metric-panel span{
  display:block;
  margin-top:3px;
  font-size:.78rem;
  color:var(--muted);
}
.metric-panel--rating .stars,
.metric-panel--rating strong{
  color:var(--gold);
}

.metric-panel--price{
  background:var(--accent-soft);
  border-color:#ffd7a8;
}
.metric-panel--price strong{color:var(--price)}

.purchase-box{
  border:1px solid #e6ceb8;
  border-radius:var(--radius-sm);
  background:#fff;
  padding:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.purchase-box__title{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin-bottom:14px;
}
.purchase-box__title h2{
  font-size:1.02rem;
}
.offer-table{
  width:100%;
  border-collapse:collapse;
}
.offer-table td{
  padding:9px 0;
  border-top:1px solid var(--line);
  vertical-align:top;
  font-size:.88rem;
}
.offer-table tr:first-child td{border-top:0}
.offer-store strong{display:block}
.offer-store span{display:block;font-size:.75rem;color:var(--muted-2)}
.offer-price{
  text-align:right;
  white-space:nowrap;
  font-weight:800;
  color:var(--price);
}
.shop-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:82px;
  height:32px;
  padding:0 10px;
  border-radius:4px;
  background:var(--accent);
  color:#fff;
  font-size:.82rem;
  font-weight:700;
  box-shadow:inset 0 -1px 0 rgba(0,0,0,.08);
}
.shop-btn:hover{background:var(--accent-strong)}

.keypoint-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
}
.keypoint-card{
  border:1px solid var(--line);
  border-top:3px solid var(--accent);
  padding:12px;
  background:#fff;
}
.keypoint-card h3{margin:0 0 6px;font-size:.9rem}
.keypoint-card p{margin:0;font-size:.83rem;color:#4d596a}

.split-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}
.review-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.review-block{
  border:1px solid var(--line);
  background:#fff;
  padding:12px;
}
.review-block h3{margin:0 0 8px;font-size:.96rem}
.review-block ul{margin:0;padding-left:18px}
.review-block li{margin:6px 0;font-size:.86rem}
.review-block--warn h3{color:#8c562d}
.score-panel{background:#f8fafc}
.score-table{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:8px;
}
.score-row{
  display:grid;
  grid-template-columns:90px minmax(0,1fr) 32px;
  gap:10px;
  align-items:center;
  font-size:.88rem;
}
.score-row__bar{
  height:8px;
  background:#e9edf0;
  border-radius:999px;
  overflow:hidden;
}
.score-row__bar span{
  display:block;
  height:100%;
  background:linear-gradient(90deg, #648ab4, #2f5e8d);
}
.score-note{
  margin:10px 0 0;
  font-size:.83rem;
  color:#566475;
}

.spec-table{
  width:100%;
  border-collapse:collapse;
}
.spec-table th,
.spec-table td{
  padding:10px 12px;
  border-top:1px solid var(--line);
  text-align:left;
  vertical-align:top;
  font-size:.86rem;
}
.spec-table tr:first-child th,
.spec-table tr:first-child td{border-top:0}
.spec-table th{
  width:140px;
  background:#f8fafc;
  font-weight:700;
}

.mini-ranking-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.mini-ranking-item{
  display:grid;
  grid-template-columns:26px 52px minmax(0,1fr) 74px;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:4px;
}
.mini-ranking-item:hover{background:var(--surface-alt)}
.mini-ranking-item .rank-badge{width:22px;height:22px;font-size:.7rem}
.mini-ranking-item img{
  width:52px;
  height:40px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
}
.mini-ranking-item h3{margin:0;font-size:.86rem;line-height:1.35}
.mini-ranking-item .price{text-align:right;font-size:.82rem}

.related-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.related-card{
  display:grid;
  grid-template-columns:112px minmax(0,1fr) 98px;
  gap:14px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:4px;
}
.related-card:hover{background:var(--surface-alt)}
.related-card img{
  width:112px;
  height:84px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  object-fit:cover;
}
.related-card h3{margin:0;font-size:.95rem}
.related-card p{margin:6px 0 0;font-size:.83rem;color:#4d596a}
.related-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
  font-size:.74rem;
  color:var(--primary);
  font-weight:700;
}
.related-label::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
}
.related-side{
  text-align:right;
  font-size:.82rem;
}
.related-side .price{
  display:block;
  margin-bottom:4px;
}

.faq-list{display:flex;flex-direction:column;gap:10px}
.faq-list details{
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
}
.faq-list summary{
  position:relative;
  padding:12px 14px 12px 18px;
  cursor:pointer;
  list-style:none;
  font-weight:700;
}
.faq-list summary::before{
  content:"";
  position:absolute;
  left:10px;
  top:50%;
  width:3px;
  height:14px;
  border-radius:999px;
  background:var(--primary);
  transform:translateY(-50%);
}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{
  content:"+";
  position:absolute;
  right:14px;
  top:10px;
  color:var(--muted);
}
.faq-list details[open] summary::after{content:"−"}
.faq-body{
  padding:0 14px 12px;
  font-size:.84rem;
  color:#4d596a;
}

.footer{
  margin-top:24px;
  padding:16px 0 22px;
  color:var(--muted-2);
  font-size:.76rem;
}

@media (max-width: 1120px){
  .product-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .guide-grid{grid-template-columns:1fr}
  .header-main{grid-template-columns:180px minmax(0,1fr)}
}

@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
  .catalog-sidebar{display:none}
  .header-main{grid-template-columns:1fr;gap:12px}
  .product-layout,
  .split-grid,
  .summary-metrics,
  .review-columns,
  .article-grid{grid-template-columns:1fr}
}

@media (max-width: 720px){
  .container{width:min(var(--container), calc(100% - 20px))}
  .page{padding:16px 0 48px}
  .hero-box,
  .products-panel,
  .ranking-panel,
  .guide-panel,
  .article-panel,
  .summary-panel,
  .gallery-panel,
  .keypoint-panel,
  .review-panel,
  .score-panel,
  .spec-panel,
  .mini-ranking,
  .related-panel,
  .faq-panel{padding:14px}
  .hero-box h1,
  .product-summary h1{font-size:1.68rem}
  .product-grid,
  .keypoint-grid,
  .article-grid{grid-template-columns:1fr}
  .header-search{grid-template-columns:minmax(0,1fr) 52px}
  .hero-inline-search{grid-template-columns:minmax(0,1fr) 64px}
  .product-layout{gap:14px}
  .gallery-thumbs{grid-template-columns:repeat(4, minmax(0,1fr))}
  .ranking-row{
    grid-template-columns:30px 54px minmax(0,1fr);
  }
  .ranking-meta{
    grid-column:2 / -1;
    text-align:left;
    padding-left:0;
  }
  .related-card{
    grid-template-columns:88px minmax(0,1fr);
  }
  .related-side{
    grid-column:2;
    text-align:left;
  }
}

/* --------------------------------------------------
   Additional templates: listing / ranking
-------------------------------------------------- */
.listing-header,
.controls-panel,
.ranking-hero,
.podium-panel{
  padding:16px;
}

.listing-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  gap:20px;
  align-items:start;
}
.listing-label,
.ranking-label{
  margin:0 0 6px;
  color:var(--primary);
  font-size:.78rem;
  font-weight:700;
}
.listing-header h1,
.ranking-hero h1{
  margin:0;
  font-size:1.86rem;
  line-height:1.28;
  letter-spacing:-.01em;
}
.listing-header p,
.ranking-hero p{
  margin:8px 0 0;
  color:#4a5567;
  font-size:.92rem;
}
.listing-subnav{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.listing-subnav a{
  position:relative;
  padding-right:12px;
  font-size:.82rem;
  color:var(--primary);
  font-weight:700;
}
.listing-subnav a::after{
  content:"›";
  position:absolute;
  right:0;
  top:0;
  color:#93a4b9;
}
.listing-meta-grid,
.stats-strip{
  display:grid;
  gap:10px;
}
.meta-card{
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  padding:12px;
}
.meta-card small{
  display:block;
  font-size:.75rem;
  color:var(--muted);
}
.meta-card strong{
  display:block;
  margin-top:4px;
  font-size:1.08rem;
  line-height:1.25;
}
.meta-card .small{display:block;margin-top:4px}
.controls-panel{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.applied-filters,
.ranking-switch{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.filter-label{
  font-size:.8rem;
  color:var(--muted);
  font-weight:700;
  margin-right:2px;
}
.filter-chip,
.ranking-switch a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  font-size:.78rem;
  color:#52657f;
  font-weight:700;
}
.filter-chip.is-active,
.ranking-switch a.is-active{
  background:var(--primary-soft);
  border-color:#c8d6e8;
  color:var(--primary);
}
.filter-chip.is-ghost{
  border-color:#ffd8ac;
  background:var(--accent-soft);
  color:#8c562d;
}
.results-toolbar{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.results-toolbar__count{
  font-size:.84rem;
  color:var(--muted);
}
.sort-switch{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.sort-switch a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  color:#52657f;
  font-size:.82rem;
  font-weight:700;
}
.sort-switch a.is-active{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.pager{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
}
.pager a,
.pager span{
  min-width:36px;
  height:36px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.82rem;
  font-weight:700;
  color:#52657f;
}
.pager .is-current{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.pager .is-more{
  border-style:dashed;
  color:var(--muted-2);
}
.ranking-hero{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.stats-strip{
  grid-template-columns:repeat(3, minmax(0,1fr));
}
.stats-strip .meta-card strong{font-size:1.18rem}
.podium-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
}
.podium-card{
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  overflow:hidden;
}
.podium-card__top{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  background:#f8fafc;
  border-bottom:1px solid var(--line);
}
.podium-card__badge{
  width:24px;
  height:24px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:.74rem;
  font-weight:800;
  background:var(--primary-dark);
}
.podium-card--1 .podium-card__badge{background:#b7871c}
.podium-card--2 .podium-card__badge{background:#75849a}
.podium-card--3 .podium-card__badge{background:#ad6b3e}
.podium-card__ranktitle{
  font-size:.82rem;
  color:var(--muted);
  font-weight:700;
}
.podium-card__image{
  display:grid;
  place-items:center;
  aspect-ratio:4 / 3;
  padding:14px;
  background:linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  border-bottom:1px solid var(--line);
}
.podium-card__image img{
  max-height:88%;
  width:auto;
}
.podium-card__body{padding:12px}
.podium-card h3{margin:0;font-size:.98rem;line-height:1.38}
.podium-card p{
  margin:6px 0 8px;
  font-size:.82rem;
  color:#4d596a;
  min-height:38px;
}
.podium-card__foot{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  font-size:.84rem;
}
.podium-card__foot .price{display:block}
.podium-card__foot .stars{display:block;margin-top:4px;font-size:.76rem}
.ranking-summary{
  margin-top:14px;
  padding:12px 14px;
  border:1px dashed #d7e1ed;
  border-radius:4px;
  background:#fafcff;
  font-size:.83rem;
  color:#4a5567;
}
.ranking-list--extended .ranking-row{
  grid-template-columns:34px 72px minmax(0,1fr) 110px;
}
.ranking-list--extended .ranking-thumb{
  width:72px;
  height:54px;
}

@media (max-width: 1120px){
  .listing-header{grid-template-columns:1fr}
  .podium-grid,
  .stats-strip{grid-template-columns:1fr}
}

@media (max-width: 720px){
  .listing-header h1,
  .ranking-hero h1{font-size:1.56rem}
  .results-toolbar{align-items:flex-start}
  .podium-grid,
  .stats-strip{grid-template-columns:1fr}
}

/* --------------------------------------------------
   Template refinements from feedback
-------------------------------------------------- */
.listing-header--simple{
  display:block;
}
.listing-header--simple .listing-header__main{
  max-width:780px;
}
.listing-header--simple p{
  max-width:760px;
}
.products-panel--listing{
  padding-top:16px;
}
.products-panel--listing .product-grid{
  margin-top:0;
}

.ranking-hero--simple{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ranking-meta-line{
  margin:0;
  font-size:.82rem;
  color:var(--muted);
}
.ranking-panel--paged{
  padding:16px;
}
.ranking-list--paged{
  gap:0;
}
.ranking-list--paged .ranking-row{
  grid-template-columns:36px 96px minmax(0,1fr) 112px;
  gap:14px;
  padding:14px 0;
}
.ranking-list--paged .ranking-thumb{
  width:96px;
  height:72px;
  border-radius:6px;
}
.ranking-list--paged .ranking-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ranking-list--paged .ranking-body h3{
  font-size:.96rem;
}
.ranking-list--paged .ranking-body p{
  margin:6px 0 8px;
}
.ranking-list--paged .ranking-meta{
  font-size:.86rem;
}
.ranking-list--paged .ranking-meta .stars{
  margin-top:5px;
  font-size:.76rem;
}
.ranking-list--paged .ranking-meta .ghost-link{
  margin-top:6px;
}

@media (max-width: 1120px){
  .listing-header--simple .listing-header__main{
    max-width:none;
  }
}

@media (max-width: 720px){
  .ranking-list--paged .ranking-row{
    grid-template-columns:30px 72px minmax(0,1fr);
  }
  .ranking-list--paged .ranking-thumb{
    width:72px;
    height:54px;
  }
  .ranking-list--paged .ranking-meta{
    grid-column:2 / -1;
    text-align:left;
    padding-left:0;
  }
}


/* --------------------------------------------------
   V3 refinements: price filter / ranking jump nav / user reviews
-------------------------------------------------- */
.price-filter-inline{
  display:flex;
  align-items:center;
  gap:10px;
  margin-right:8px;
  padding-right:12px;
  border-right:1px solid var(--line);
}
.price-filter-inline__label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 10px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:var(--surface-alt);
  color:#55667d;
  font-size:.78rem;
  font-weight:700;
  white-space:nowrap;
}
.price-filter-inline__fields{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.price-filter-inline input{
  width:96px;
  height:34px;
  padding:0 10px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  font-size:.82rem;
}
.price-filter-inline input::placeholder{color:#97a2b2}
.price-filter-inline__sep,
.price-filter-inline__unit{
  font-size:.82rem;
  color:var(--muted);
  font-weight:700;
}
.price-filter-inline button{
  height:34px;
  padding:0 12px;
  border:1px solid var(--primary);
  border-radius:4px;
  background:#fff;
  color:var(--primary);
  font-size:.8rem;
  font-weight:700;
}
.price-filter-inline button:hover{
  background:var(--primary-soft);
}

.ranking-switcher{
  margin-top:16px;
  border-top:1px solid var(--line);
  padding-top:14px;
}
.ranking-switcher__head{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin-bottom:10px;
}
.ranking-switcher__head strong{
  font-size:.88rem;
  line-height:1.4;
}
.ranking-switcher__head span{
  color:var(--muted);
  font-size:.78rem;
}
.ranking-switcher__grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:10px;
}
.ranking-switcher__item{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  min-height:58px;
  padding:11px 32px 11px 12px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
}
.ranking-switcher__item::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  border-radius:4px 0 0 4px;
  background:transparent;
}
.ranking-switcher__item::after{
  content:"›";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:#9babc0;
  font-size:1rem;
  font-weight:700;
}
.ranking-switcher__item:hover{
  border-color:#cad7e8;
  background:#fbfdff;
}
.ranking-switcher__item:hover::before{
  background:#d2dceb;
}
.ranking-switcher__item.is-current{
  border-color:#c8d6e8;
  background:var(--primary-soft);
}
.ranking-switcher__item.is-current::before{
  background:var(--primary);
}
.ranking-switcher__text{
  display:block;
  color:var(--ink);
  font-size:.84rem;
  font-weight:700;
  line-height:1.4;
}
.ranking-switcher__item small{
  flex:0 0 auto;
  margin-left:6px;
  color:var(--muted-2);
  font-size:.72rem;
  font-weight:700;
  white-space:nowrap;
}
.ranking-switcher__item.is-current small{
  color:var(--primary);
}

.user-review-panel{
  padding:16px;
}
.review-community{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:16px;
}
.review-form-card,
.review-feed-card{
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  padding:16px;
}
.review-form-card h3,
.review-feed-card h3{
  margin:0;
  font-size:1rem;
}
.review-form{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:12px;
}
.review-rating-fieldset{
  margin:0;
  padding:0;
  border:0;
}
.review-rating-fieldset legend{
  margin-bottom:8px;
  font-size:.82rem;
  font-weight:700;
  color:#4d596a;
}
.review-rating-input{
  display:flex;
  align-items:center;
  gap:6px;
}
.review-rating-input label{
  position:relative;
  display:inline-flex;
}
.review-rating-input input{
  position:absolute;
  inset:0;
  opacity:0;
}
.review-rating-input span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  color:#c5cfdb;
  font-size:1.15rem;
  line-height:1;
}
.review-rating-input label:hover span{
  border-color:#f0d482;
  color:var(--gold);
}
.review-rating-input input:checked + span{
  border-color:#f0d482;
  background:#fffaf0;
  color:var(--gold);
}
.review-form__label{
  font-size:.82rem;
  font-weight:700;
  color:#4d596a;
}
.review-form textarea{
  width:100%;
  min-height:132px;
  padding:10px 12px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  resize:vertical;
}
.review-form textarea::placeholder{color:#95a0b1}
.review-form button{
  align-self:flex-start;
  min-height:38px;
  padding:0 14px;
  border:0;
  border-radius:4px;
  background:var(--primary);
  color:#fff;
  font-size:.84rem;
  font-weight:700;
}
.review-feed-card__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.user-review-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.user-review-item{
  padding:12px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--surface-alt);
}
.user-review-item__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}
.user-review-item__rating{
  display:flex;
  align-items:center;
  gap:8px;
}
.user-review-item__rating .stars{
  font-size:.86rem;
}
.user-review-item__rating strong{
  color:var(--gold);
  font-size:.92rem;
}
.user-review-item p{
  margin:0;
  color:#465164;
  font-size:.88rem;
  line-height:1.7;
}

@media (max-width: 1120px){
  .price-filter-inline{
    width:100%;
    margin-right:0;
    padding-right:0;
    padding-bottom:12px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .ranking-switcher__grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
  .review-community{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  .price-filter-inline__fields{
    width:100%;
  }
  .price-filter-inline input{
    width:86px;
  }
  .ranking-switcher__head{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }
  .ranking-switcher__grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
  .ranking-switcher__item{
    min-height:auto;
  }
  .review-form-card,
  .review-feed-card{
    padding:14px;
  }
}


/* --------------------------------------------------
   Responsive navigation / mobile drawer
-------------------------------------------------- */
.hamburger-button{
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:96px;
  height:42px;
  padding:0 12px;
  border:1px solid var(--line-strong);
  border-radius:var(--radius-sm);
  background:#fff;
  color:var(--ink);
  font-weight:700;
}
.hamburger-button__label{
  font-size:.84rem;
}
.hamburger-button__icon{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
}
.hamburger-button__icon span{
  display:block;
  width:16px;
  height:2px;
  border-radius:999px;
  background:var(--primary);
}
.mobile-drawer-backdrop{
  position:fixed;
  inset:0;
  z-index:34;
  background:rgba(15,23,42,.28);
  opacity:0;
  transition:opacity .22s ease;
}
.mobile-drawer-backdrop.is-open{opacity:1;}
.mobile-drawer{
  position:fixed;
  top:0;
  right:0;
  z-index:35;
  width:min(360px, 92vw);
  height:100dvh;
  background:#fff;
  border-left:1px solid var(--line);
  box-shadow:-12px 0 28px rgba(15,23,42,.12);
  transform:translateX(100%);
  transition:transform .22s ease;
  display:flex;
  flex-direction:column;
}
.mobile-drawer.is-open{transform:translateX(0);}
.mobile-drawer__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background:#fff;
}
.mobile-drawer__header strong{
  font-size:1rem;
}
.mobile-drawer__close{
  min-height:36px;
  padding:0 12px;
  border:1px solid var(--line-strong);
  border-radius:var(--radius-sm);
  background:#fff;
  color:var(--ink);
  font-size:.84rem;
  font-weight:700;
}
.mobile-drawer__body{
  flex:1;
  overflow:auto;
  padding:16px;
  background:var(--bg-soft);
}
.mobile-drawer__body .sidebar-box:last-child{margin-bottom:0;}
body.drawer-open{overflow:hidden;}

/* --------------------------------------------------
   Mobile / tablet responsive refinements
-------------------------------------------------- */
@media (max-width: 980px){
  .site-header{position:sticky;top:0;}
  .header-main{
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:12px 0;
  }
  .brand{min-width:0;}
  .hamburger-button{display:inline-flex;}
  .header-search{
    grid-column:1 / -1;
    grid-row:2;
  }
  .catalog-sidebar{display:none;}
  .mobile-drawer,
  .mobile-drawer-backdrop{display:block;}
  .breadcrumbs{
    overflow:auto hidden;
    white-space:nowrap;
    padding-bottom:2px;
  }
  .section-head{
    gap:10px;
  }
  .section-head h2,
  .block-head h2{
    line-height:1.35;
  }
  .product-card__body,
  .ranking-body,
  .article-card__body{
    min-width:0;
  }
}

@media (min-width: 981px){
  .mobile-drawer,
  .mobile-drawer-backdrop{
    display:none !important;
  }
}

@media (max-width: 720px){
  .brand-copy strong{font-size:.96rem;}
  .brand-copy span{font-size:.68rem;}
  .hamburger-button{
    min-width:auto;
    padding:0 10px;
  }
  .hamburger-button__label{
    display:none;
  }
  .header-search input{
    height:42px;
    padding:0 12px;
  }
  .header-search button{
    width:60px;
    height:42px;
  }
  .results-toolbar__count,
  .ranking-meta-line{
    font-size:.8rem;
  }
  .controls-panel,
  .listing-header,
  .ranking-hero,
  .podium-panel,
  .user-review-panel{
    padding:14px;
  }
  .applied-filters,
  .sort-switch,
  .results-toolbar{
    gap:10px;
  }
  .price-filter-inline{
    align-items:flex-start;
  }
  .price-filter-inline__fields{
    gap:8px;
  }
  .price-filter-inline input{
    flex:1 1 90px;
    min-width:0;
    width:auto;
  }
  .price-filter-inline button{
    width:100%;
  }
  .sort-switch a{
    flex:1 1 calc(50% - 8px);
  }
  .ranking-switcher__head{
    align-items:flex-start;
  }
  .ranking-switcher__grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:8px;
  }
  .ranking-switcher__item{
    min-height:88px;
    padding:10px 28px 10px 12px;
  }
  .ranking-switcher__text{
    font-size:.84rem;
  }
  .review-community{
    gap:12px;
  }
  .user-review-item__head{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 520px){
  .container{width:min(var(--container), calc(100% - 16px));}
  .page{padding:14px 0 40px;}
  .header-main{gap:10px;}
  .brand{gap:10px;}
  .brand-mark{width:34px;height:34px;font-size:.82rem;}
  .breadcrumbs{
    margin-bottom:12px;
    font-size:.75rem;
  }
  .section-head a,
  .block-head a,
  .ghost-link{
    font-size:.76rem;
  }
  .product-card__foot,
  .ranking-meta{
    gap:8px;
  }
  .sort-switch a{flex-basis:100%;}
  .ranking-switcher__grid{grid-template-columns:1fr;}
  .spec-inline{gap:6px;}
  .spec-inline li{font-size:.72rem;}
}


/* --------------------------------------------------
   Common footer / static links
-------------------------------------------------- */
.site-footer{
  margin-top:32px;
  border-top:1px solid var(--line);
  background:#fff;
}
.site-footer__inner{padding:20px 0 28px}
.site-footer__nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px 20px;
  margin-bottom:10px;
}
.site-footer__nav a{
  color:var(--primary);
  font-size:.86rem;
  font-weight:700;
}
.site-footer__nav a:hover{text-decoration:underline}
.site-footer__note{
  margin:0;
  color:var(--muted);
  font-size:.8rem;
  line-height:1.7;
}
.site-footer__copy{
  margin:10px 0 0;
  color:var(--muted-2);
  font-size:.76rem;
}
@media (max-width: 720px){
  .breadcrumbs{display:none}
  .site-footer{margin-top:24px}
  .site-footer__inner{padding:18px 0 22px}
  .site-footer__nav{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:10px 12px;
  }
  .site-footer__nav a{
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--line);
    border-radius:4px;
    background:#fff;
    font-size:.82rem;
  }
}

/* --------------------------------------------------
   SP refinements from feedback
-------------------------------------------------- */
@media (max-width: 720px){
  .page-top #featured .product-grid{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding-bottom:4px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
  .page-top #featured .product-grid::-webkit-scrollbar{height:6px}
  .page-top #featured .product-grid::-webkit-scrollbar-thumb{
    background:#d8e0ea;
    border-radius:999px;
  }
  .page-top #featured .product-card{
    flex:0 0 min(82vw, 280px);
    scroll-snap-align:start;
  }
  .page-top #featured .product-card p{min-height:0}

  .page-listing .controls-panel{gap:10px}
  .page-listing .applied-filters{align-items:flex-start}
  .page-listing .filter-label{
    width:100%;
    margin-right:0;
    margin-bottom:2px;
  }
  .page-listing .price-filter-inline{
    width:100%;
    margin-right:0;
    padding-right:0;
    border-right:0;
    border-bottom:1px solid var(--line);
    padding-bottom:12px;
  }
  .page-listing .price-filter-inline__label{min-width:74px}
  .page-listing .products-panel--listing .product-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
  .page-listing .products-panel--listing .product-card > a{
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    align-items:stretch;
  }
  .page-listing .products-panel--listing .product-card::before{
    left:0; top:0; bottom:0; width:3px; height:auto; right:auto;
    background:var(--primary);
  }
  .page-listing .products-panel--listing .product-card__image{
    aspect-ratio:auto;
    min-height:126px;
    height:100%;
    padding:10px;
    border-right:1px solid var(--line);
    border-bottom:0;
    background:#f8fafc;
  }
  .page-listing .products-panel--listing .product-card__body{padding:10px 12px}
  .page-listing .products-panel--listing .product-card h3{font-size:.92rem}
  .page-listing .products-panel--listing .product-card p{
    min-height:0;
    margin:6px 0 8px;
    font-size:.8rem;
  }

  .page-ranking .ranking-switcher{
    margin-top:0;
    padding-top:0;
    border-top:0;
  }
  .page-ranking .ranking-switcher__grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .page-ranking .ranking-switcher__item{
    min-height:74px;
    padding:10px 28px 10px 10px;
  }
  .page-ranking .ranking-switcher__text{font-size:.8rem}

  .page-product .summary-path{display:none}
  .page-product .product-summary h1{
    font-size:1.5rem;
    line-height:1.32;
  }
  .page-product .lead{font-size:.9rem}
  .page-product .summary-points{
    margin-top:10px;
    gap:6px 10px;
    font-size:.8rem;
  }
  .page-product .metric-panel{padding:12px}
  .page-product .metric-panel strong{font-size:1.35rem}
  .page-product .purchase-box{padding:12px}
  .page-product .offer-table td{font-size:.84rem}
}
@media (max-width: 520px){
  .page-top #featured .product-card{flex-basis:min(86vw, 270px)}
  .page-listing .products-panel--listing .product-card > a{grid-template-columns:96px minmax(0,1fr)}
  .page-listing .products-panel--listing .product-card__image{min-height:108px}
  .page-ranking .ranking-switcher__grid{grid-template-columns:1fr}
}


/* --------------------------------------------------
   V4 refinements: compact filters, CTA buttons, product intro order
-------------------------------------------------- */
.detail-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border-radius:4px;
  background:var(--primary);
  border:1px solid var(--primary);
  color:#fff;
  font-size:.78rem;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}
.detail-button:hover{background:var(--primary-dark);border-color:var(--primary-dark)}

.product-card > a{
  display:flex;
  flex-direction:column;
  height:100%;
}
.product-card__body{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}
.product-card__foot{
  margin-top:auto;
  align-items:flex-end;
}
.product-card__meta{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.product-card__meta .price{font-size:1rem;line-height:1.1}
.product-card__meta .stars{font-size:.78rem}
.product-card__foot .detail-button{margin-left:auto}

.sort-control{
  display:flex;
  align-items:center;
  gap:8px;
}
.sort-control label{
  font-size:.8rem;
  color:var(--muted);
  font-weight:700;
}
.sort-control select{
  min-width:170px;
  height:34px;
  padding:0 34px 0 10px;
  border:1px solid var(--line-strong);
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  font-size:.82rem;
}
.page-listing .controls-panel{padding:14px 16px}
.page-listing .applied-filters{gap:8px 10px}
.page-listing .filter-label{margin-left:4px}
.page-listing .price-filter-inline{
  width:auto;
  margin-right:8px;
  padding-right:10px;
  padding-bottom:0;
  border-right:1px solid var(--line);
  border-bottom:0;
  flex-wrap:nowrap;
  gap:8px;
}
.page-listing .price-filter-inline__label{
  min-height:28px;
  padding:0 8px;
  font-size:.74rem;
}
.page-listing .price-filter-inline__fields{
  gap:4px;
  flex-wrap:nowrap;
}
.page-listing .price-filter-inline input{
  width:72px;
  height:30px;
  padding:0 8px;
  font-size:.76rem;
}
.page-listing .price-filter-inline__sep,
.page-listing .price-filter-inline__unit{font-size:.76rem}
.page-listing .price-filter-inline button{
  height:30px;
  padding:0 10px;
  font-size:.74rem;
  border-radius:4px;
}
.page-listing .results-toolbar{
  align-items:center;
  gap:10px;
}
.page-listing .results-toolbar__count{font-size:.8rem}

.page-ranking .ranking-switcher{display:none !important}
.ranking-hero--simple{gap:10px}
.ranking-hero--simple p{max-width:980px}
.ranking-list--paged .ranking-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}
.ranking-meta__summary{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
}
.ranking-meta__summary .price{font-size:1rem;line-height:1.1}
.ranking-meta__summary .stars{font-size:.82rem;margin-top:0}

.product-layout{
  grid-template-columns:minmax(0, 1.02fr) minmax(0, .98fr);
  grid-template-areas:
    'gallery intro'
    'gallery summary';
  align-items:start;
}
.product-layout .gallery-panel{grid-area:gallery}
.product-intro{grid-area:intro}
.product-summary{grid-area:summary;padding:0}
.product-intro .summary-path{margin:0 0 8px}
.product-intro h1{margin:0;font-size:2rem;line-height:1.2}
.product-intro .lead{margin:10px 0 0}
.product-intro .summary-points{margin:12px 0 0}

@media (max-width: 980px){
  .sort-control{width:100%;justify-content:flex-start}
  .sort-control select{min-width:0;flex:1 1 auto;max-width:220px}
  .page-listing .price-filter-inline{
    width:100%;
    margin-right:0;
    padding-right:0;
    border-right:0;
    padding-bottom:0;
  }
  .product-layout{
    grid-template-columns:1fr;
    grid-template-areas:
      'intro'
      'gallery'
      'summary';
  }
}

@media (max-width: 720px){
  .page-listing .controls-panel{padding:12px}
  .page-listing .applied-filters{gap:8px}
  .page-listing .filter-label{width:100%;margin-left:0}
  .page-listing .price-filter-inline{
    width:100%;
    flex:0 0 100%;
    justify-content:flex-start;
    gap:6px;
    border-bottom:0;
  }
  .page-listing .price-filter-inline__label{min-width:56px;padding:0 6px}
  .page-listing .price-filter-inline__fields{width:auto;gap:4px}
  .page-listing .price-filter-inline input{width:64px;height:28px;padding:0 6px}
  .page-listing .price-filter-inline button{height:28px;padding:0 8px;font-size:.72rem}
  .sort-control label{display:none}
  .sort-control select{width:100%;max-width:none;height:32px;font-size:.8rem}
  .page-listing .products-panel--listing .product-card__foot{
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    gap:8px;
  }
  .page-listing .products-panel--listing .product-card__foot .detail-button{margin-left:0}
  .page-ranking .ranking-list--paged .ranking-meta{
    grid-column:2 / -1;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    gap:10px;
  }
  .page-ranking .ranking-meta__summary{align-items:flex-start}
  .page-ranking .ranking-meta__summary .price{font-size:1.02rem}
  .page-ranking .ranking-meta__summary .stars{font-size:.84rem}
  .page-ranking .ranking-list--paged .detail-button{min-height:30px;padding:0 10px;font-size:.76rem}
  .product-intro h1{font-size:1.44rem;line-height:1.28}
}

@media (max-width: 520px){
  .page-listing .price-filter-inline__label{min-width:52px;font-size:.72rem}
  .page-listing .price-filter-inline input{width:58px}
  .page-listing .price-filter-inline__unit{font-size:.72rem}
  .page-listing .price-filter-inline button{padding:0 7px}
}


/* --------------------------------------------------
   V5 refinements: mobile price filter width + top ranking CTA
-------------------------------------------------- */
.page-top .ranking-list .ranking-meta .detail-button{
  margin-top:6px;
}

@media (max-width: 720px){
  .page-listing .price-filter-inline{
    align-items:center;
  }
  .page-listing .price-filter-inline__fields{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto auto;
    align-items:center;
    gap:4px;
    flex:1 1 auto;
    width:100%;
    min-width:0;
  }
  .page-listing .price-filter-inline input{
    width:100%;
    min-width:0;
    max-width:none;
  }
}

@media (max-width: 520px){
  .page-listing .price-filter-inline{
    gap:5px;
  }
  .page-listing .price-filter-inline__label{
    min-width:52px;
    font-size:.72rem;
  }
  .page-listing .price-filter-inline__fields{
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto auto;
    gap:4px;
  }
  .page-listing .price-filter-inline input{
    width:100%;
    min-width:0;
  }
  .page-listing .price-filter-inline button{
    padding:0 8px;
  }
}


/* --------------------------------------------------
   V3 top CTA alignment fix
-------------------------------------------------- */
.page-top #featured .product-card__foot{
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
}
.page-top #featured .product-card__meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.page-top #featured .product-card__meta .price{
  font-size:1rem;
  line-height:1.1;
}
.page-top #featured .product-card__meta .stars{
  font-size:.82rem;
}
.page-top #featured .product-card__foot .detail-button{
  margin-left:auto;
  flex:0 0 auto;
}

.page-top .ranking-row{
  grid-template-columns:30px 62px minmax(0,1fr) 180px;
}
.page-top .ranking-meta{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  width:100%;
}
.page-top .ranking-meta__summary{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  min-width:0;
}
.page-top .ranking-meta__summary .price{
  font-size:1rem;
  line-height:1.1;
}
.page-top .ranking-meta__summary .stars{
  font-size:.8rem;
  margin-top:0;
}
.page-top .ranking-meta .detail-button{
  margin-top:0;
  margin-left:auto;
  flex:0 0 auto;
}

@media (max-width: 980px){
  .page-top .ranking-row{
    grid-template-columns:30px 54px minmax(0,1fr);
  }
  .page-top .ranking-meta{
    grid-column:2 / -1;
    justify-content:space-between;
    align-items:flex-end;
    gap:12px;
  }
}

@media (max-width: 720px){
  .page-top #featured .product-card__foot{
    align-items:center;
  }
  .page-top #featured .product-card__meta .price{
    font-size:1.02rem;
  }
  .page-top #featured .product-card__meta .stars{
    font-size:.84rem;
  }
  .page-top .ranking-meta{
    flex-direction:row;
    justify-content:space-between;
    align-items:flex-end;
  }
  .page-top .ranking-meta__summary{
    align-items:flex-start;
  }
  .page-top .ranking-meta .detail-button{
    min-height:32px;
    padding:0 12px;
    font-size:.78rem;
  }
}

@media (max-width: 520px){
  .page-top #featured .product-card__foot{
    gap:10px;
  }
  .page-top #featured .product-card__foot .detail-button{
    min-height:30px;
    padding:0 10px;
    font-size:.74rem;
  }
  .page-top .ranking-meta{
    gap:10px;
  }
  .page-top .ranking-meta__summary .price{
    font-size:1.02rem;
  }
  .page-top .ranking-meta__summary .stars{
    font-size:.84rem;
  }
}


/* === Revision v1 additions === */
.pager-disabled {
  color: var(--muted-2);
  opacity: .45;
  cursor: default;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

fieldset.price-filter-inline {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

/* review star input enhancement */
.review-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.review-rating-input label {
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--line-strong);
  transition: color .15s ease;
}
.review-rating-input label:hover,
.review-rating-input label:hover ~ label {
  color: var(--gold);
}
.review-rating-input label:hover span,
.review-rating-input label:hover ~ label span {
  color: var(--gold);
}
.review-rating-input input:checked + span,
.review-rating-input label:has(input:checked),
.review-rating-input label:has(input:checked) ~ label,
.review-rating-input label:has(input:checked) span,
.review-rating-input label:has(input:checked) ~ label span {
  color: var(--gold);
}
.review-rating-input span {
  display: inline;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
  color: inherit;
  line-height: 1;
}
.review-rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   商品詳細ページ レイアウト修正
   ========================================= */
.page-product .product-layout {
    display: block !important;
}
.page-product .product-intro--title {
    margin-bottom: 16px;
}
.page-product .product-intro--title h1 {
    font-size: 22px;
    line-height: 1.5;
    margin: 8px 0 0;
    word-break: break-word;
}
.page-product .summary-path {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px;
}
.page-product .product-intro--body {
    margin-bottom: 20px;
}
.page-product .product-intro--body .lead {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin: 0;
}
.page-product .gallery-panel {
    margin-bottom: 20px;
}
.page-product .gallery-stage img {
    max-width: 100%;
    height: auto;
}
.page-product .summary-metrics {
    margin-bottom: 20px;
}
.page-product .purchase-box {
    margin-bottom: 24px;
}

/* =========================================
   商品カード: サムネイル統一サイズ
   ========================================= */
.product-card__image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fafafa;
    overflow: hidden;
}
.product-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* カード全体の高さを揃える */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.product-card {
    display: flex;
    flex-direction: column;
}
.product-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card__foot {
    margin-top: auto;
}

/* =========================================
   スマホ: ヘッダー検索窓を非表示、ドロワー内に移す
   ========================================= */
@media (max-width: 980px) {
    .header-search {
        display: none !important;
    }
}

/* =========================================
   モバイルドロワー
   ========================================= */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    overflow-y: auto;
    transition: right .22s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,.12);
}
.mobile-drawer.is-open {
    right: 0;
}
.mobile-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
}
.mobile-drawer__header strong {
    font-size: 16px;
}
.mobile-drawer__close {
    background: none;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
}
.mobile-drawer__body {
    padding: 16px 18px;
}
.mobile-drawer__body .sidebar-box {
    margin-bottom: 20px;
}
.mobile-drawer__body .sidebar-box__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}
.mobile-drawer__body .sidebar-list,
.mobile-drawer__body .sidebar-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-drawer__body .sidebar-list li,
.mobile-drawer__body .sidebar-sublist li {
    margin-bottom: 6px;
}
.mobile-drawer__body .sidebar-list a,
.mobile-drawer__body .sidebar-sublist a {
    color: #1a3a50;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}
.mobile-drawer__body .sidebar-maker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mobile-drawer__body .sidebar-maker-grid a {
    padding: 4px 10px;
    background: #f3f4f6;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
}

/* ドロワー内の検索窓 */
.mobile-drawer__search {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}
.mobile-drawer__search form {
    display: flex;
    gap: 6px;
}
.mobile-drawer__search input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.mobile-drawer__search button {
    padding: 10px 16px;
    background: #1a3a50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* バックドロップ */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.4);
    z-index: 9999;
    opacity: 0;
    transition: opacity .22s ease;
}
.mobile-drawer-backdrop.is-open {
    opacity: 1;
}
body.drawer-open {
    overflow: hidden;
}

/* =========================================
   バックドロップ: hidden時はポインターイベント無効化
   ========================================= */
.mobile-drawer-backdrop[hidden] {
    display: none !important;
}
.mobile-drawer-backdrop {
    pointer-events: auto;
}
.mobile-drawer[aria-hidden="true"] {
    pointer-events: none;
}

/* スマホ: セクション見出しとリード文の調整 */
@media (max-width: 600px) {
    .section-head h2 {
        font-size: 1.1rem !important;
    }
    .section-head p {
        font-size: 0.82rem !important;
    }
    .container {
        width: min(var(--container, 1200px), calc(100% - 16px)) !important;
    }
}

/* スマホ: サイドバーを非表示 */
@media (max-width: 980px) {
    .catalog-sidebar {
        display: none !important;
    }
    .container.layout {
        display: block !important;
    }
}

/* =========================================
   スマホ: ランキング行をコンパクトに
   ========================================= */
@media (max-width: 768px) {
    .ranking-row {
        display: grid !important;
        grid-template-columns: 28px 56px 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 6px 10px !important;
        padding: 12px !important;
        align-items: start !important;
    }
    .ranking-row .rank-badge {
        grid-row: 1 / 3;
        align-self: center;
    }
    .ranking-row .ranking-thumb {
        grid-row: 1 / 3;
        width: 56px !important;
        height: 56px !important;
    }
    .ranking-row .ranking-thumb img {
        width: 56px !important;
        height: 56px !important;
        object-fit: contain;
    }
    .ranking-row .ranking-body {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
    }
    .ranking-row .ranking-body h3 {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .ranking-row .ranking-body h3 a {
        font-size: 13px !important;
    }
    .ranking-row .ranking-body p {
        display: none !important;
    }
    .ranking-row .ranking-body .spec-inline {
        display: none !important;
    }
    .ranking-row .ranking-meta {
        grid-column: 3;
        grid-row: 2;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    .ranking-row .ranking-meta .price {
        font-size: 14px !important;
    }
    .ranking-row .ranking-meta .detail-button {
        font-size: 12px !important;
        padding: 4px 10px !important;
        min-height: 28px !important;
    }
    .ranking-row .ranking-meta__summary {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
}
