.mode-tabs{gap:7px;padding:5px 5px 0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}
.brand-mark{display:block;width:48px;height:48px;flex:0 0 48px;object-fit:cover;background:#fff;border-radius:11px;filter:drop-shadow(0 2px 2px rgba(20,34,45,.1));transform:none}
.sprite #i-brand text:last-of-type{font-size:32px;transform:translateX(-3px)}
.header-tools{display:flex;align-items:center;gap:18px}.header-tools p{margin:0}.header-tools button{border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--nav);padding:8px 10px;font-weight:700;cursor:pointer}.header-tools button[aria-expanded=true]{background:var(--nav);color:#fff}.header-tools button span{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;border-radius:10px;background:#e9ecee;color:var(--nav);font-size:10px}
#search-form{position:relative}.search-history-v10{position:absolute;top:66px;left:0;right:0;z-index:20;padding:6px;background:#fff;border:1px solid var(--line);border-radius:7px;box-shadow:0 12px 28px rgba(20,34,45,.16)}.search-history-v10 button{display:block;width:100%;border:0;border-radius:4px;background:#fff;padding:9px 11px;text-align:left;color:var(--ink);cursor:pointer}.search-history-v10 button:hover{background:#f1f4f3}
.local-panel{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(420px,1.3fr);gap:22px;margin-top:14px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}.local-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.local-heading h2{margin:0;font-size:15px}.local-heading button,.saved-row>button{border:0;background:transparent;color:var(--muted);font-size:11px;cursor:pointer}.local-heading button:hover,.saved-row>button:hover{color:var(--accent)}.history-list{display:flex;flex-wrap:wrap;gap:7px;color:var(--muted);font-size:12px}.history-list button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--line);border-radius:15px;background:#f7f8f7;padding:6px 10px;color:var(--ink);cursor:pointer}.history-list button:hover{border-color:var(--accent)}.saved-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;color:var(--muted);font-size:12px}.saved-row{display:flex;align-items:center;min-width:0;border:1px solid var(--line);border-radius:6px;padding:5px}.saved-row>a{display:flex;align-items:center;min-width:0;flex:1;gap:8px;color:var(--ink);text-decoration:none}.saved-row img{width:42px;height:42px;flex:0 0 42px;object-fit:contain;background:#f5f5f3;border-radius:4px}.saved-row-body{min-width:0}.saved-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.saved-row small{display:block;margin-top:3px;color:var(--accent);font-weight:700}.product-actions{display:flex;align-items:center;gap:5px}.save-product{display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#8a949a;font-size:17px;line-height:1;cursor:pointer}.save-product:hover{border-color:#d8a02e;color:#d8a02e}.save-product.saved{border-color:#d8a02e;background:#fff8dc;color:#d39a18}
.mode-tabs button{border:1px solid transparent;border-radius:7px 7px 0 0;padding:11px 16px}
.mode-tabs button[aria-selected=true]{color:#fff;background:var(--nav);border-color:var(--nav);box-shadow:0 -3px 0 var(--accent)}
.mode-tabs button[aria-selected=true]::before{content:"表示中";display:block;color:#ffd8cd;font-size:8px;letter-spacing:.08em}
.mode-tabs button[aria-selected=true] .count{background:#fff;color:var(--nav)}
.mode-tabs.compare-all button.included{color:var(--nav);background:#e1ebe8;border-color:#9fb8af;box-shadow:inset 0 -3px 0 #43836c}
.mode-tabs.compare-all button.included::before{content:"一覧に表示";display:block;color:#376a58;font-size:8px;letter-spacing:.04em}
.mode-tabs.compare-all button.included .count{background:#fff;color:#376a58}
.compare-guide{margin:0 0 12px;padding:9px 12px;background:#eef4f1;border-left:4px solid #43836c;color:#48635a;font-size:12px}
.effective-price{margin:7px 0 0;color:#2f6555;font-size:11px;font-weight:700}
.effective-price.reference{color:#8a6428}
.product-note{margin-top:4px;line-height:1.4}
.auction-timing{margin:7px 0 0;color:#535f67;font-size:10px;line-height:1.45}.auction-timing .remaining{display:inline-block;margin-left:5px;padding:2px 5px;border-radius:3px;background:#fff0dc;color:#9a541e;font-weight:800}.auction-timing .urgent{background:#ffe0d9;color:#a3311c}
.shop-column>h3{position:sticky;top:0;background:#edece7;padding:6px 2px;z-index:2}
.shop svg{width:26px;height:26px;flex:0 0 26px;border-radius:6px;box-shadow:0 0 0 1px rgba(23,32,42,.1);background:#fff}
.shop{gap:7px;font-weight:700;color:#46525b}
.history-list{max-height:132px;overflow-y:auto;overscroll-behavior:contain;align-content:flex-start;padding-right:4px}
.search-history-v10{max-height:260px;overflow-y:auto;overscroll-behavior:contain}
.all-saved-link{display:block;margin-top:10px;color:var(--nav);font-size:12px;font-weight:700;text-align:right}.all-saved-link:hover{color:var(--accent)}
.seo-intro{margin-top:18px;padding:20px 24px;background:#fff;border:1px solid var(--line);border-radius:9px}.seo-intro h2{margin:0 0 9px;font-size:20px}.seo-intro>p:not(.eyebrow){margin:0;color:#53616b;font-size:13px;line-height:1.8}.seo-intro small{display:block;margin-top:10px;color:var(--muted)}
.sort-controls{display:flex;align-items:center;gap:10px;padding:5px 0 5px 12px}.sort-buttons{display:flex;gap:5px}.sort-buttons button{border:1px solid #b9c1c5;background:#fff;color:#46535d;border-radius:5px;padding:7px 10px;font-size:11px;font-weight:700;cursor:pointer}.sort-buttons button:hover{border-color:var(--nav)}.sort-buttons button.active{background:var(--nav);border-color:var(--nav);color:#fff;box-shadow:inset 0 -3px 0 var(--accent)}
#exclude{width:190px}
@media(max-width:760px){.header-tools{gap:6px}.header-tools p{display:none}.header-tools button{padding:7px 8px;font-size:11px}.search-history-v10{top:60px}.local-panel{grid-template-columns:1fr;padding:13px}.saved-products{grid-template-columns:1fr}.view-switch button{padding:7px 8px;font-size:11px}.mode-tabs button{padding:10px 12px}.mode-tabs{padding-top:6px}.sort-controls{display:block;padding:7px 0}.sort-buttons{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:7px}.sort-buttons button{padding:8px 3px;font-size:10px}.sort{display:flex!important;align-items:center;justify-content:flex-end;padding:0!important}.column-view{display:block;overflow:visible}.shop-column{min-width:0;margin:0 0 18px;padding:10px}.shop-column>h3{position:static;font-size:15px;border-bottom:2px solid #9fb8af;margin-bottom:10px}.shop-column .products{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,82vw);grid-template-columns:none;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:0 2px 8px}.shop-column .product{scroll-snap-align:start;grid-template-columns:76px 1fr}.shop-column .empty,.shop-column .skeleton{width:82vw}.compare-guide::after{content:" スマホでは各カテゴリの商品を横にスワイプできます。"}}
.site-footer{max-width:1220px;margin:0 auto;padding:22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.site-footer a{color:var(--nav);font-weight:700;text-decoration:none}.site-footer a:hover{text-decoration:underline}
.layout-switch{display:flex;flex:0 0 auto;padding:2px;border:1px solid var(--line);border-radius:6px;background:#fff}.layout-switch button{display:grid;place-items:center;width:30px;height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted);cursor:pointer}.layout-switch button:hover{color:var(--nav);background:#f1f3f2}.layout-switch button.active{background:var(--nav);color:#fff}.layout-switch svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.product-table-head{display:grid;grid-template-columns:70px minmax(220px,1fr) 145px 160px;gap:12px;padding:8px 14px;border-bottom:1px solid var(--line);color:var(--muted);font-size:10px;font-weight:700}.product-table-head[aria-hidden=true]{display:none}.product-layout-table .tab-view{display:block}.product-layout-table .tab-view .product{grid-template-columns:58px minmax(0,1fr);gap:12px;margin-bottom:5px;padding:9px 14px;border-radius:5px;content-visibility:auto;contain-intrinsic-size:92px}.product-layout-table .tab-view .product-image{width:58px;height:58px}.product-layout-table .tab-view .product-body{display:grid;grid-template-columns:minmax(220px,1fr) 145px 160px;grid-template-rows:auto auto;column-gap:12px;align-items:start}.product-layout-table .tab-view .product-title{grid-column:1;grid-row:1;margin:0;-webkit-line-clamp:2;font-size:12px}.product-layout-table .tab-view .product-note{grid-column:1;grid-row:2;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;margin-top:4px}.product-layout-table .tab-view .product-price{grid-column:2;grid-row:1;margin:2px 0 0}.product-layout-table .tab-view .product-price strong{font-size:17px}.product-layout-table .tab-view .product-price small{display:block;margin:5px 0 0}.product-layout-table .tab-view .effective-price{grid-column:2;grid-row:2}.product-layout-table .tab-view .product-meta{grid-column:3;grid-row:1;align-items:flex-start}.product-layout-table .tab-view .auction-timing{grid-column:3;grid-row:2}.product-layout-table .tab-view .shop span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-layout-table .tab-view .empty{margin-top:10px}
.save-product{padding:0 0 2px;font-family:Arial,"Yu Gothic UI",sans-serif;line-height:1;text-align:center}
.toolbar{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:minmax(0,1fr) auto;background:rgba(247,246,242,.97);box-shadow:0 8px 18px rgba(20,34,45,0);backdrop-filter:blur(9px);transition:box-shadow .18s}.compact-controls-visible .toolbar{box-shadow:0 8px 18px rgba(20,34,45,.12)}.sticky-search{display:none;grid-column:1/-1;grid-template-columns:minmax(260px,1fr) auto;align-items:center;gap:10px;padding:7px 5px;border-bottom:1px solid var(--line)}.compact-controls-visible .sticky-search{display:grid}.sticky-keyword{height:39px;display:grid;grid-template-columns:28px 1fr auto;align-items:center;border:1px solid var(--nav);border-radius:6px;background:#fff;padding-left:8px}.sticky-keyword svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}.sticky-keyword input{min-width:0;border:0;outline:0;font-size:14px}.sticky-keyword button{align-self:stretch;border:0;border-radius:0 5px 5px 0;background:var(--accent);color:#fff;padding:0 17px;font-weight:700;cursor:pointer}.sticky-filters{display:flex;align-items:center;gap:11px;color:var(--muted);font-size:11px;white-space:nowrap}.sticky-filters label{display:flex;align-items:center;gap:4px}.sticky-exclude-label input{width:130px;border:0;border-bottom:1px solid #9aa4aa;background:transparent;padding:4px}.compact-controls-visible .mode-tabs button{padding-top:8px;padding-bottom:8px}.compact-controls-visible .sort-buttons button{padding-top:6px;padding-bottom:6px}
@media(min-width:761px) and (max-width:980px){.compact-controls-visible .toolbar{grid-template-columns:1fr}.compact-controls-visible .mode-tabs{width:100%;justify-content:space-between}.compact-controls-visible .sort-controls{justify-content:flex-end;border-top:1px solid var(--line)}}
@media(max-width:900px){
 .result-heading{align-items:flex-start;gap:12px}.result-heading h2{font-size:26px}.view-switch{flex-direction:column;width:138px}.view-switch button{width:100%;padding:7px 5px}
 .toolbar{margin-left:-13px;margin-right:-13px;padding:0 8px;grid-template-columns:1fr}
 .mode-tabs,.compact-controls-visible .mode-tabs{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px 0 3px;overflow:visible}
 .mode-tabs button,.compact-controls-visible .mode-tabs button{min-width:0;min-height:42px;padding:7px 2px;border-radius:5px;font-size:10px;line-height:1.2;white-space:normal}
 .mode-tabs button::before,.compact-controls-visible .mode-tabs button::before{display:none!important}.mode-tabs .count{display:inline-block;margin:3px 0 0 2px;padding:1px 4px}
 .sort-controls,.compact-controls-visible .sort-controls{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px;padding:4px 0;border-top:1px solid var(--line)}
 .layout-switch button{width:40px;height:38px}.sort-buttons,.compact-controls-visible .sort-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin:0}.sort-buttons button{min-width:0;min-height:38px;padding:6px 2px!important;font-size:9px;white-space:normal;line-height:1.2}.sort{display:none!important}
 .sticky-search{grid-template-columns:1fr;gap:5px;padding:6px 0 5px}.sticky-keyword{height:39px}.sticky-keyword button{padding:0 15px}.sticky-filters{justify-content:space-between;gap:5px}.sticky-filters label{min-height:28px}.sticky-exclude-label{flex:1;justify-content:flex-end}.sticky-exclude-label input{width:min(120px,31vw)}
 .product-layout-table .product-table-head{display:none}.product-layout-table .tab-view{overflow:visible}.product-layout-table .tab-view .product{min-width:0;grid-template-columns:50px minmax(0,1fr);padding:8px}.product-layout-table .tab-view .product-image{width:50px;height:50px}.product-layout-table .tab-view .product-body{grid-template-columns:minmax(0,1fr) 105px;grid-template-rows:auto auto auto;column-gap:8px}.product-layout-table .tab-view .product-title{grid-column:1;grid-row:1;font-size:11px}.product-layout-table .tab-view .product-price{grid-column:2;grid-row:1}.product-layout-table .tab-view .product-price strong{font-size:15px}.product-layout-table .tab-view .product-note{grid-column:1;grid-row:2}.product-layout-table .tab-view .effective-price{grid-column:2;grid-row:2}.product-layout-table .tab-view .product-meta{grid-column:1/-1;grid-row:3;margin-top:5px}.product-layout-table .tab-view .auction-timing{grid-column:1/-1;grid-row:4}
}

/* Compact category and sorting controls. Kept last to override earlier responsive rules. */
.toolbar{grid-template-columns:1fr}
.mode-tabs,.compact-controls-visible .mode-tabs{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;overflow:visible}
.mode-tabs button,.compact-controls-visible .mode-tabs button{min-width:0;text-align:center}
.sort-controls,.compact-controls-visible .sort-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;padding:5px 0;border-top:1px solid var(--line)}
.sort-title{flex:0 0 auto;color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap}
.sort{display:block!important;padding:0!important}
.sort select{width:84px;max-width:84px;margin:0;padding:7px 22px 7px 7px;text-overflow:ellipsis;white-space:nowrap}
.sort option{white-space:normal}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.scroll-loader{grid-column:1/-1;min-height:54px;display:grid;place-items:center;color:var(--muted);font-size:12px;text-align:center}
.search-panel{display:grid;grid-template-columns:minmax(0,860px);justify-content:center;gap:0;padding:38px 48px 30px;text-align:center}
.search-copy{margin-bottom:24px}
.search-copy .eyebrow{margin-bottom:9px}
.search-panel h1{font-size:clamp(31px,4vw,44px);line-height:1.18;letter-spacing:-.04em;text-wrap:balance}
.search-panel h1 span+span{margin-left:.12em}
.search-panel #search-form{width:100%;position:relative}
.search-panel .lead{margin:12px 0 0;color:#5d6972;font-size:13px;line-height:1.7}
.search-panel .quick-settings{grid-column:1;justify-content:center;margin-top:15px}
@media(max-width:760px){
 .search-panel{display:grid;padding:26px 16px 22px}
 .search-copy{margin-bottom:20px}
 .search-panel h1{font-size:clamp(27px,8vw,34px);line-height:1.25}
 .search-panel h1 span{display:block}
 .search-panel h1 span+span{margin-left:0}
 .search-panel .search-box{margin-top:0}
 .search-panel .lead{margin-top:10px;font-size:12px;text-align:left}
 .search-panel .quick-settings{justify-content:flex-start;text-align:left}
}

/* Saved items and history drawer. */
.local-panel[hidden],.local-backdrop[hidden]{display:none!important}
.local-backdrop{position:fixed;inset:0;z-index:79;border:0;background:rgba(17,29,38,.32);backdrop-filter:blur(2px);cursor:pointer}
.local-panel{position:fixed;z-index:80;top:12px;right:12px;bottom:12px;width:min(390px,calc(100vw - 24px));display:block;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:20px;background:#fbfbf9;border:1px solid rgba(36,55,70,.16);border-radius:14px;box-shadow:-12px 18px 48px rgba(20,34,45,.22);text-align:left}
.local-panel-header{position:sticky;top:-20px;z-index:2;display:flex;align-items:center;justify-content:space-between;margin:-20px -20px 18px;padding:18px 20px 14px;background:rgba(251,251,249,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}
.local-panel-header .eyebrow{margin-bottom:3px}.local-panel-header h2{margin:0;font:600 22px/1.2 Georgia,"Yu Mincho",serif}.local-panel-header>button{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--nav);font-size:23px;line-height:1;cursor:pointer}.local-panel-header>button:hover{border-color:var(--nav);background:var(--nav);color:#fff}
.local-panel .local-section{padding:2px 0 20px}.local-panel .local-section+.local-section{padding-top:18px;border-top:1px solid var(--line)}
.local-panel .history-list{max-height:180px}.local-panel .saved-products{grid-template-columns:1fr}.local-panel .saved-row{background:#fff;padding:7px}.local-panel .saved-row img{width:48px;height:48px;flex-basis:48px}
.local-drawer-open{overflow:hidden}
@media(min-width:901px){
 body.history-sidebar-visible{padding-right:340px}
 .history-sidebar-visible .site-header{padding-left:clamp(22px,3vw,46px);padding-right:clamp(22px,3vw,46px)}
 .history-sidebar-visible main{width:100%;max-width:none;padding-left:clamp(18px,2.4vw,38px);padding-right:clamp(18px,2.4vw,38px)}
 .history-sidebar-visible .site-footer{width:100%;max-width:none;padding-left:clamp(18px,2.4vw,38px);padding-right:clamp(18px,2.4vw,38px)}
 .history-sidebar-visible #local-toggle{display:none}
 .history-sidebar-visible .local-backdrop{display:none!important}
 .history-sidebar-visible .local-panel{top:0;right:0;bottom:0;width:340px;border-width:0 0 0 1px;border-radius:0;box-shadow:-8px 0 28px rgba(20,34,45,.09)}
 .history-sidebar-visible .local-panel-header>button{display:none}
}
@media(max-width:600px){
 .local-backdrop{background:rgba(17,29,38,.38)}
 .local-panel{top:auto;right:0;bottom:0;left:0;width:100%;max-height:min(76dvh,680px);padding:16px 16px calc(18px + env(safe-area-inset-bottom));border-width:1px 0 0;border-radius:17px 17px 0 0;box-shadow:0 -14px 42px rgba(20,34,45,.22)}
 .local-panel::before{content:"";display:block;width:42px;height:4px;margin:-7px auto 12px;border-radius:4px;background:#c7ced1}
 .local-panel-header{top:-16px;margin:-16px -16px 14px;padding:20px 16px 12px;border-radius:17px 17px 0 0}
 .local-panel-header h2{font-size:20px}.local-panel .history-list{max-height:112px}.local-panel .local-section{padding-bottom:15px}.local-panel .local-section+.local-section{padding-top:14px}
}
@media(max-width:900px){
 .sort-controls,.compact-controls-visible .sort-controls{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:4px}
 .sort-title{font-size:10px}
 .sort-buttons,.compact-controls-visible .sort-buttons{margin:0}
 .sort select{width:70px;max-width:70px;padding-left:5px;font-size:10px}
}
