/* Studio EJSS Global Header 1.0.2
 * Exact visual metrics are copied from the approved Home Renewal header.
 * The front page is intentionally excluded by PHP and remains the source of truth.
 */
/*
 * Some custom EJSS templates (notably the Business Video LP) do not call
 * WordPress body_class().  Therefore the old-header suppression must not
 * depend on the body class.  This stylesheet is enqueued only on pages where
 * the replacement header itself is enabled, so these selectors remain scoped
 * to non-front-page requests.
 */
.ejss-global-header{
  --eh-bg:#121414;--eh-panel:#1b1a19;--eh-white:#fafafa;--eh-muted:#d1d1cc;
  --eh-red:#e31b16;--eh-rule:#484b49;
  --eh-sans:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,"Noto Sans CJK JP",sans-serif;
}
#header,
#navi,
header.site-header:not(#ejss-global-header),
.site-header:not(.ejss-global-header),
.ejh-header:not(.ejss-global-header),
.ejss-price-header,
.bvlp-header,
.ejss-bvlp-header,
.bvlp-site-header{
  display:none!important;
}
.ejss-global-header,.ejss-global-header *,.ejss-global-header *::before,.ejss-global-header *::after{box-sizing:border-box}
.ejss-global-header{position:sticky;top:0;z-index:9990;background:rgba(27,26,25,.98);border-bottom:1px solid var(--eh-rule,#484b49);color:var(--eh-white,#fafafa);font-family:var(--eh-sans);line-height:1.8}
.admin-bar .ejss-global-header{top:32px}
.ejss-global-header .ejh-shell{width:min(1280px,calc(100% - 64px));margin:0 auto}
.ejss-global-header .ejh-header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:18px;position:relative}
.ejss-global-header .ejh-brand{display:flex;align-items:center;gap:15px;flex-shrink:0;color:#fafafa!important;text-decoration:none!important;border:0!important;box-shadow:none!important}
.ejss-global-header .ejh-brand img{display:block;width:106px!important;height:auto!important;max-width:106px!important;filter:none!important;mix-blend-mode:normal!important;border:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
.ejss-global-header .ejh-brand span{font-size:11px;font-weight:700;line-height:1.75;white-space:nowrap;color:#fafafa!important;margin:0!important;padding:0!important}
.ejss-global-header .ejh-nav{display:flex;align-items:center;gap:22px;font-size:11px;font-weight:700;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;position:static}
.ejss-global-header .ejh-nav>a{color:#fafafa!important;text-decoration:none!important;border:0!important;box-shadow:none!important;background:none!important;margin:0!important;font-family:var(--eh-sans)!important;font-size:11px!important;font-weight:700!important;line-height:1.8!important}
.ejss-global-header .ejh-nav>a{padding:17px 0!important;white-space:nowrap;position:relative}
.ejss-global-header .ejh-nav>a::after{content:"";position:absolute;bottom:8px;left:0;width:0;height:2px;background:var(--eh-red,#e31b16);transition:width .2s}
.ejss-global-header .ejh-nav>a:hover::after,.ejss-global-header .ejh-nav>a:focus-visible::after{width:100%}
.ejss-global-header a:focus-visible,.ejss-global-header button:focus-visible{outline:3px solid #ffd076!important;outline-offset:4px!important}
.ejss-global-header .ejh-menu-toggle{display:none;font:inherit;cursor:pointer}
@media(max-width:1140px){
  .ejss-global-header .ejh-shell{width:calc(100% - 44px)}
  .ejss-global-header .ejh-nav{gap:15px;font-size:10px}
  .ejss-global-header .ejh-nav>a{font-size:10px!important}
  .ejss-global-header .ejh-brand span{display:none}
}
@media(max-width:850px){
  .ejss-global-header .ejh-header-inner{min-height:73px}
  .ejss-global-header .ejh-brand img{width:88px!important;max-width:88px!important}
  .ejss-global-header .ejh-brand span{display:block;font-size:10px}
  .ejss-global-header .ejh-menu-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:44px;height:44px;border:1px solid #86837b!important;border-radius:4px;background:none!important;color:white!important;margin:0;padding:0}
  .ejss-global-header .ejh-menu-toggle span{display:block;height:2px;width:19px;background:#fff}
  .ejss-global-header .ejh-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#1b1a19!important;flex-direction:column;align-items:stretch;gap:0;padding:10px 22px 22px!important;border-bottom:1px solid #666!important;font-size:13px;max-height:calc(100svh - 120px);overflow:auto;z-index:9991}
  .ejss-global-header .ejh-nav.is-open{display:flex}
  .ejss-global-header .ejh-nav>a{font-size:13px!important;padding:11px!important;border-bottom:1px solid #444!important}
  .ejss-global-header .ejh-nav>a::after{display:none}
}
@media(max-width:782px){.admin-bar .ejss-global-header{top:46px}}
@media(max-width:560px){
  .ejss-global-header .ejh-shell{width:calc(100% - 32px)}
  .ejss-global-header .ejh-header-inner{min-height:67px}
  .ejss-global-header .ejh-brand img{width:82px!important;max-width:82px!important}
  .ejss-global-header .ejh-brand span{font-size:9px}
}
@media(max-width:380px){.ejss-global-header .ejh-brand span{font-size:8px}}

/* v1.0.2: business-video compatibility marker added inline by PHP. */
html.ejss-gh-business-video .site-header:not(#ejss-global-header),
html.ejss-gh-business-video .bvlp-header,
html.ejss-gh-business-video .ejss-bvlp-header,
html.ejss-gh-business-video .bvlp-site-header{display:none!important}
