/* Product/article detail only. Original header, listings, photos and fonts retained. */
html body main.detail-page{color:#202c2a;--detail-body:1.0625rem;--detail-paragraph:24px;background:#fff}
html body main.detail-page>.wrap.page-top{width:min(1076px,calc(100% - 48px));padding-block:24px}
html body main.detail-page .article-layout{grid-template-columns:minmax(0,760px);justify-content:center;gap:28px}
html body main.detail-page .article{min-width:0;background:#fff;font-size:var(--detail-body);line-height:1.8}
html body main.detail-page .article :is(p,li,dt,dd,th,td){font-size:var(--detail-body)!important;line-height:1.8!important}
html body main.detail-page .article-layout article.article h1{font-size:2rem!important;line-height:1.45!important;letter-spacing:normal;margin:8px 0 16px;white-space:normal;overflow-wrap:break-word;word-break:normal}
html body main.detail-page .article-layout article.article h2{font-size:1.625rem!important;line-height:1.5!important;background:var(--pale);color:var(--accent);border:0;border-left:4px solid var(--accent);padding:10px 14px;margin:36px 0 18px;overflow-wrap:break-word}
html body main.detail-page .article h3{font-size:1.1875rem!important;line-height:1.65;margin:24px 0 10px}
html body main.detail-page .article p{margin-block:0 var(--detail-paragraph)}
html body main.detail-page .article p+p{margin-top:0}
html body main.detail-page .article :is(.article-head,.product-overview){margin-bottom:20px}
html body main.detail-page .article .product-overview{background:transparent;border:0;padding:0;border-radius:0}
html body main.detail-page .article :is(.article-meta,.purchase-note,.note,.disclosure){font-size:.875rem!important;line-height:1.7!important}
html body main.detail-page .article :is(.answer,.decision-box,.dialogue){padding:14px 16px;margin:18px 0}
html body main.detail-page .article :is(.answer,.decision-box,.speech)>p:last-child{margin-bottom:0}
html body main.detail-page .article figure{margin:14px 0}
html body main.detail-page .article figure+figure{margin-top:10px}
html body main.detail-page .article figure img:not(.avatar){object-fit:contain;height:auto;max-height:none;background:#fff}
html body main.detail-page .article figcaption{margin-top:6px;font-size:.875rem;line-height:1.65}
html body main.detail-page .article .caption-credit{font-size:.8125rem}
html body main.detail-page .article :is(.product-purchase,.restored-purchase-item){margin-block:8px 16px}
html body main.detail-page .article .product-purchase p{margin-block:6px}
/* Existing, product-matched specialist/manufacturer links first; no new merchant URLs. */
html body main.detail-page .article .purchase-buttons>a{order:1}
html body main.detail-page .article .purchase-buttons>a:is([href*="amiami.jp"],[href*="animate-onlineshop.jp"],[href*="suruga-ya.jp"],[href*="1999.co.jp"],[href*="clagla.jp"],[href*="yanoman.co.jp"],[href*="sanwa.co.jp"],[href*="bushiroad-store.com"],[href*="hobbystock.jp"]){order:0}
html body main.detail-page .article .product-information{display:grid;grid-template-columns:minmax(7em,.28fr) minmax(0,1fr);gap:6px 14px;margin:14px 0;padding:0;min-width:0}
html body main.detail-page .article .product-information :is(dt,dd){margin:0;min-width:0;overflow-wrap:anywhere}
html body main.detail-page .article .detail-wide{grid-column:1/-1}
html body main.detail-page .article .detail-facts{border-block:1px solid #dce3df;margin:14px 0 18px;padding:10px 0}
html body main.detail-page .article .detail-factgroup+.detail-factgroup{border-top:1px solid #e6ebe8;margin-top:10px;padding-top:10px}
html body main.detail-page .article .detail-product-name{display:block;font-size:.9375rem;color:var(--accent);margin-bottom:4px}
html body main.detail-page .article .detail-facts dl{display:grid;grid-template-columns:5.2em minmax(0,1fr);gap:4px 10px;margin:0}
html body main.detail-page .article .detail-facts :is(dt,dd){margin:0;font-size:1rem!important;line-height:1.7!important;min-width:0}
html body main.detail-page .article .detail-facts dt{font-weight:700}
html body main.detail-page .article .detail-fact-kind{font-size:.875rem;color:#53635b}
html body main.detail-page .article .detail-table-scroll{display:block;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;margin:16px 0}
html body main.detail-page .article table[data-detail-table="comparison"]{display:table;table-layout:auto;width:100%;min-width:36rem;border-collapse:collapse;margin:0}
html body main.detail-page .article table[data-detail-table="comparison"] thead{display:table-header-group;position:static;width:auto;height:auto;clip:auto;overflow:visible;white-space:normal}
html body main.detail-page .article table[data-detail-table="comparison"] tbody{display:table-row-group}
html body main.detail-page .article table[data-detail-table="comparison"] tr{display:table-row;position:static;width:auto;height:auto;clip:auto;margin:0;overflow:visible;white-space:normal}
html body main.detail-page .article table[data-detail-table="comparison"] :is(th,td){display:table-cell;width:auto;min-width:8em;padding:10px 12px;vertical-align:top;white-space:normal;border:1px solid #dce3df}
html body main.detail-page .article table[data-detail-table="pairs"]{display:table;table-layout:auto;min-width:0;width:100%;border-collapse:collapse}
html body main.detail-page .article table[data-detail-table="pairs"] tbody{display:table-row-group}
html body main.detail-page .article table[data-detail-table="pairs"] tr{display:table-row;margin:0;border-radius:0}
html body main.detail-page .article table[data-detail-table="pairs"] :is(th,td){display:table-cell;width:auto;min-width:0;padding:10px 12px;vertical-align:top;border-bottom:1px solid #dce3df}
html body main.detail-page .article table[data-detail-table="pairs"] th{width:29%;background:var(--pale)}
html body main.detail-page .sidebar{display:block;min-width:0;padding:0}
html body main.detail-page .sidebar .side-inner{position:static}
html body main.detail-page .sidebar :is(h2,summary){font-size:1.0625rem!important;line-height:1.6!important;margin:0 0 10px;color:var(--accent);font-weight:750}
html body main.detail-page .detail-related{margin-bottom:20px}
html body main.detail-page .detail-side-card{display:block;color:inherit;text-decoration:none;border-bottom:1px solid #dce3df;padding:0 0 12px;margin:0 0 16px}
html body main.detail-page .detail-side-card img{width:100%;height:auto;max-height:320px;object-fit:contain;background:#fff;margin:0 0 7px}
html body main.detail-page .detail-side-card strong{display:block;font-size:1rem;line-height:1.65}
html body main.detail-page .detail-side-price{display:block;font-size:.9375rem;line-height:1.7;margin-top:4px}
html body main.detail-page .detail-side-label{display:block;font-size:.8125rem;color:#53635b;margin-top:3px}
html body main.detail-page .detail-search{padding:12px 0;margin:0 0 20px;border-bottom:1px solid #dce3df}
html body main.detail-page .detail-search label{display:block;font-size:1rem;font-weight:700;margin-bottom:7px}
html body main.detail-page .detail-search input{width:100%;min-width:0;padding:10px;border:1px solid #8c9d95;border-radius:4px;background:white;font-size:1rem;min-height:44px}
html body main.detail-page .detail-search button{display:block;width:100%;margin-top:8px;font-size:1rem;min-height:44px}
html body main.detail-page .detail-toc{background:var(--pale);padding:12px 14px;margin-bottom:16px}
html body main.detail-page .detail-toc summary{cursor:pointer;margin:0}
html body main.detail-page .detail-toc ol{padding-left:20px;margin:10px 0 0}
html body main.detail-page .detail-toc li{font-size:.9375rem!important;line-height:1.65!important;margin:8px 0}
html body main.detail-page .article .detail-ad{width:300px;max-width:calc(100vw - 20px);margin:22px auto;overflow-x:auto}
html body main.detail-page .article .detail-ad>p{font-size:.8125rem!important;line-height:1.6!important;margin:0 0 6px}
html body main.detail-page .article .detail-ad details{font-size:.8125rem;line-height:1.65;margin-top:6px}
html body main.detail-page .article .detail-ad details p{font-size:.8125rem!important;line-height:1.65!important;margin:6px 0}
@media(min-width:1100px){
 html body main.detail-page .article-layout{grid-template-columns:minmax(0,1fr) 288px;gap:28px;align-items:start}
}
@media(max-width:1099px){
 html body main.detail-page .detail-related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 html body main.detail-page .detail-related>h2{grid-column:1/-1;margin:0}
 html body main.detail-page .sidebar{border-top:1px solid #dce3df;padding-top:20px}
}
@media(max-width:767px){
 html body main.detail-page{--detail-body:1rem;--detail-paragraph:18px}
 html body main.detail-page>.wrap.page-top{width:calc(100% - 32px);padding-block:18px}
 html body main.detail-page .article-layout{gap:20px}
 html body main.detail-page .article-layout article.article h1{font-size:1.625rem!important;line-height:1.5!important;margin:6px 0 14px}
 html body main.detail-page .article-layout article.article h2{font-size:1.375rem!important;margin:28px 0 14px;padding:9px 11px}
 html body main.detail-page .article h3{font-size:1.125rem!important;margin:20px 0 10px}
 html body main.detail-page .article :is(.answer,.dialogue,.decision-box){padding:12px;margin:16px 0}
 html body main.detail-page .article .product-information{grid-template-columns:minmax(5.5em,7.5em) minmax(0,1fr);gap:5px 10px}
 html body main.detail-page .article .product-information dt{margin:0}
 html body main.detail-page .article :is(.purchase-buttons,p:has(>a.btn[data-link-mode])){display:grid;grid-template-columns:minmax(0,1fr)!important;gap:8px}
 html body main.detail-page .article :is(.purchase-buttons>a,p>a.btn[data-link-mode]){width:100%;font-size:1rem!important;line-height:1.6!important;padding:10px 12px;min-height:44px;white-space:normal}
 html body main.detail-page .article table[data-detail-table="pairs"] :is(th,td){padding:8px 10px}
 html body main.detail-page .article table[data-detail-table="pairs"] tr.detail-wide-row{display:grid;grid-template-columns:minmax(0,1fr)}
 html body main.detail-page .article table[data-detail-table="pairs"] tr.detail-wide-row :is(th,td){display:block;width:100%}
 html body main.detail-page .article .detail-facts dl{grid-template-columns:5em minmax(0,1fr);gap:4px 8px}
 html body main.detail-page .article .detail-ad{margin-inline:calc((100% - 300px)/2)}
 html body main.detail-page .detail-related{grid-template-columns:minmax(0,1fr);gap:8px}
 html body main.detail-page .detail-side-card{max-width:100%;margin-bottom:10px}
 html body main.detail-page .detail-side-card img{max-height:360px}
}

/* Existing paragraph-based purchase groups use the same verified merchant order. */
html body main.detail-page .article p:has(>a.btn[data-link-mode])>a{order:1}
html body main.detail-page .article p:has(>a.btn[data-link-mode])>a:is([href*="amiami.jp"],[href*="animate-onlineshop.jp"],[href*="suruga-ya.jp"],[href*="1999.co.jp"],[href*="clagla.jp"],[href*="yanoman.co.jp"],[href*="sanwa.co.jp"],[href*="bushiroad-store.com"],[href*="hobbystock.jp"]){order:0}
html body main.detail-page .detail-side-credit{display:block;font-size:.8125rem;line-height:1.6;color:#53635b;margin-top:4px}
