/* Shared page navigation; deliberately separate from each page's section links. */
:root{--cdj-header-height:92px;--cdj-nav-gold:#ddbf85}
html:has(body .cdj-global-header.cdj-global-header){scroll-padding-top:calc(var(--cdj-header-height) + 12px)}
body:has(.cdj-global-header) main [id]{scroll-margin-top:12px}
body .cdj-global-header.cdj-global-header{box-sizing:border-box;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;width:100%;height:var(--cdj-header-height);min-height:var(--cdj-header-height);padding:16px clamp(20px,3.5vw,64px);color:#f3f3ef;background:rgba(12,16,16,.97);border-bottom:1px solid #ffffff16;backdrop-filter:blur(14px)}
body .cdj-global-header.cdj-global-header :is(.site-logo,.category-brand,.detail-brand){width:clamp(180px,16vw,230px);margin:0;display:block;flex-shrink:0}
body .cdj-global-header.cdj-global-header :is(.site-logo,.category-brand,.detail-brand) img{width:100%;height:32px;object-fit:contain;filter:invert(1)}
body .cdj-global-header.cdj-global-header .cdj-page-nav{position:static;display:flex;align-items:center;justify-content:flex-end;gap:clamp(14px,1.7vw,30px);margin:0;padding:0;min-width:0;font:500 13px/1.5 "Noto Sans JP",sans-serif;letter-spacing:.025em}
body .cdj-global-header.cdj-global-header .cdj-page-nav a{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 0;color:#d6dcd7;text-decoration:none;white-space:nowrap;transition:color .2s ease}
body .cdj-global-header.cdj-global-header .cdj-page-nav a::after{content:"";position:absolute;left:0;right:0;bottom:3px;height:1px;background:var(--cdj-nav-gold);transform:scaleX(0);transition:transform .2s ease}
body .cdj-global-header.cdj-global-header .cdj-page-nav a:is(:hover,[aria-current]){color:var(--cdj-nav-gold)}
body .cdj-global-header.cdj-global-header .cdj-page-nav a:is(:hover,[aria-current])::after{transform:scaleX(1)}
body .cdj-global-header.cdj-global-header a:focus-visible,body .cdj-global-header.cdj-global-header button:focus-visible{outline:2px solid var(--cdj-nav-gold);outline-offset:3px}
body .cdj-global-header.cdj-global-header :is(.site-actions,.category-menu-toggle,.detail-menu-toggle){margin:0}
body .cdj-global-header.cdj-global-header .site-actions{justify-self:end}
body .cdj-global-header.cdj-global-header .menu-lines i{background:currentColor}
.cdj-category .category-hero,.cdj-category:not([data-category="bicycle"]) .category-hero,.cdj-category[data-category=bicycle] .category-hero.bike-hero,.cdj-category[data-category=instrument] .instrument-hero{padding-top:var(--cdj-header-height)}
.cdj-category .car-hero,.cdj-automotive .automotive-intro{margin-top:var(--cdj-header-height)}
.cdj-home .hero-viewport{padding-top:calc(var(--cdj-header-height) + 14px)}
@media(max-width:1100px){
 :root{--cdj-header-height:120px}
 body .cdj-global-header.cdj-global-header{grid-template-columns:1fr auto;grid-template-rows:54px 44px;column-gap:16px;row-gap:0;padding:8px 24px 14px}
 body .cdj-global-header.cdj-global-header :is(.site-logo,.category-brand,.detail-brand){grid-column:1;grid-row:1;width:205px}
 body .cdj-global-header.cdj-global-header :is(.site-actions,.category-menu-toggle,.detail-menu-toggle){grid-column:2;grid-row:1;justify-self:end}
 body .cdj-global-header.cdj-global-header .cdj-page-nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;gap:16px;border-top:1px solid #ffffff12;font-size:12px}
 .cdj-category:not([data-category="bicycle"]) .category-hero-photo{top:var(--cdj-header-height)}
 .contact-page main{padding-top:calc(var(--cdj-header-height) + 24px)}
}
@media(max-width:640px){
 :root{--cdj-header-height:152px}
 body .cdj-global-header.cdj-global-header{grid-template-rows:52px 88px;padding:4px 18px 8px}
 body .cdj-global-header.cdj-global-header :is(.site-logo,.category-brand,.detail-brand){width:186px}
 body .cdj-global-header.cdj-global-header .cdj-page-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px;font-size:12px;letter-spacing:0}
 body .cdj-global-header.cdj-global-header .cdj-page-nav a{min-height:44px;padding:7px 0}
 body .cdj-global-header.cdj-global-header .cdj-page-nav a::after{left:15%;right:15%;bottom:5px}
 .cdj-home .hero .logo{--logo-large:min(82vw,calc((100svh - 340px)*2.2))}
}
@media(prefers-reduced-motion:reduce){body .cdj-global-header.cdj-global-header .cdj-page-nav a,body .cdj-global-header.cdj-global-header .cdj-page-nav a::after{transition:none}}
/* v60 — compact page links remain reachable beside the menu. */
:root{--cdj-header-height:76px}
body .cdj-global-header.cdj-global-header{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto;gap:18px;padding:10px clamp(16px,3vw,48px)}
body .cdj-global-header.cdj-global-header .cdj-page-nav{grid-column:2;grid-row:1;display:flex;justify-content:safe flex-end;border:0;gap:16px;font-size:12px;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-inline:contain}
body .cdj-global-header.cdj-global-header :is(.site-actions,.category-menu-toggle,.detail-menu-toggle){grid-column:3;grid-row:1}
body .cdj-global-header.cdj-global-header .cdj-page-nav a{flex:none;min-height:44px;padding:8px 0}
@media(max-width:900px){body .cdj-global-header.cdj-global-header :is(.site-logo,.category-brand,.detail-brand){width:150px}body .cdj-global-header.cdj-global-header .cdj-page-nav{justify-content:flex-start;gap:13px}}
@media(max-width:640px){:root{--cdj-header-height:68px}body .cdj-global-header.cdj-global-header{padding:8px 12px;gap:12px}body .cdj-global-header.cdj-global-header :is(.site-logo,.category-brand,.detail-brand){width:88px}body .cdj-global-header.cdj-global-header .cdj-page-nav{font-size:11px;gap:12px}body .cdj-global-header.cdj-global-header .cdj-page-nav a::after{left:0;right:0}.cdj-home .hero .logo{--logo-large:min(82vw,calc((100svh - 256px)*2.2))}}
