/* Header and footer rendering; visibility is controlled independently by site-layout-front.css. */
.kvds-site-header,.kvds-site-footer{font-family:"Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;box-sizing:border-box;line-height:1.7}
.kvds-site-header *,.kvds-site-footer *{box-sizing:border-box}
.kvds-site-header{position:relative;z-index:100;background:var(--kvds-site-bg);color:var(--kvds-site-color);border-bottom:1px solid var(--kvds-site-line);margin:0}
/* Sticky retains the header's flow space, including after logo/font loading. */
.kvds-site-header--sticky{position:sticky;top:0;z-index:1000}
.admin-bar .kvds-site-header--sticky{top:var(--wp-admin--admin-bar--height,32px)}
html.kvds-has-sticky-header{scroll-padding-top:calc(var(--kvds-sticky-height,0px) + var(--kvds-sticky-offset,0px) + 12px)}
@media screen and (max-width:782px){.admin-bar .kvds-site-header--sticky{top:var(--wp-admin--admin-bar--height,46px)}}
/* WordPress's toolbar scrolls away on small phones. */
@media screen and (max-width:600px){.admin-bar .kvds-site-header--sticky{top:0}}
@media print{.kvds-site-header--sticky{position:relative;top:0!important}}
.kvds-site-header__inner{display:flex;align-items:center;gap:18px;max-width:var(--kvds-site-width);min-height:84px;margin:0 auto;padding:16px 24px}
.kvds-site-header a{color:inherit;text-decoration:none}
.kvds-site-logo{flex:0 1 var(--kvds-site-logo);display:block;min-width:120px;margin-right:auto}
.kvds-site-logo img{display:block;width:var(--kvds-site-logo);max-width:100%;height:auto;border-radius:0;margin:0}
.kvds-site-logo--tint img{filter:brightness(0) saturate(100%) invert(30%) sepia(12%) saturate(1145%) hue-rotate(89deg) brightness(91%) contrast(89%)}
.kvds-site-nav,.kvds-site-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
.kvds-site-nav{flex-shrink:1;min-width:0;flex-wrap:wrap;justify-content:flex-end;row-gap:0}
.kvds-site-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:var(--kvds-site-nav-size);line-height:1.6;white-space:nowrap}
.kvds-site-nav a:hover{text-decoration:underline;text-underline-offset:5px}
.kvds-site-header a.kvds-site-cta{display:inline-flex;gap:12px;align-items:center;justify-content:center;min-height:44px;padding:11px 16px;border-radius:5px;background:var(--kvds-site-cta);color:var(--kvds-site-cta-text);font-size:13px;font-weight:600;line-height:1.6;white-space:nowrap}
.kvds-site-login,.kvds-site-menu{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;min-width:44px;text-align:center;font:400 10px/1.6 "Noto Sans JP",sans-serif;white-space:nowrap}
.kvds-site-login img{width:24px;height:24px;object-fit:contain;border-radius:0;margin:0}
.kvds-site-menu{border:0;padding:0;background:transparent;color:inherit;cursor:pointer;box-shadow:none}
.kvds-site-menu__icon{display:flex;flex-direction:column;justify-content:center;gap:5px;width:24px;height:24px}
.kvds-site-menu__icon i{height:1.5px;width:24px;background:currentColor;display:block}
.kvds-site-header :is(a,button):focus-visible{outline:3px solid #476b4e;outline-offset:4px}
.kvds-site-menu-panel{position:absolute;top:100%;right:0;left:0;background:var(--kvds-site-bg);padding:18px 24px;box-shadow:0 12px 18px #293e3320;max-height:70vh;overflow:auto}
.kvds-site-menu-panel[hidden]{display:none}
.kvds-site-menu-panel a{display:block;padding:12px 0;border-bottom:1px solid var(--kvds-site-line)}
.kvds-site-footer{padding:48px 42px 24px;margin:0;font-size:12px}
.kvds-site-footer__inner{max-width:876px;margin:auto;display:flex;justify-content:space-between;gap:36px}
.kvds-site-footer p{margin:0 0 12px}
.kvds-site-footer .kvds-site-footer__brand{font-family:"Noto Serif JP","Yu Mincho",serif;font-size:21px;font-weight:600}
.kvds-site-footer nav{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.kvds-site-footer a{color:inherit;text-decoration:none;border-bottom:1px solid #acb6a5}
.kvds-site-copyright{max-width:876px;margin:30px auto 0!important;font-size:10px;color:inherit;opacity:.8}
.kvds-chrome-fields{columns:2 350px;column-gap:30px}.kvds-chrome-fields>p{break-inside:avoid}
.kvds-chrome-preview-scroll{overflow:auto;max-width:100%}
@media(max-width:1150px){.kvds-site-header__inner{gap:12px;padding-inline:20px}.kvds-site-nav,.kvds-site-actions{gap:12px}.kvds-site-nav a{font-size:12px}}
@media(max-width:900px){.kvds-site-nav{display:none}}
@media(max-width:768px){.kvds-site-header__inner{min-height:70px;padding:10px 16px;gap:12px}.kvds-site-logo{flex-basis:var(--kvds-site-logo-mobile);min-width:100px}.kvds-site-logo img{width:var(--kvds-site-logo-mobile)}.kvds-site-header a.kvds-site-cta{display:none}.kvds-site-actions{gap:12px}.kvds-site-footer{padding:36px 24px 24px}.kvds-site-footer__inner{flex-direction:column;gap:24px}.kvds-site-footer nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}}
@media(max-width:360px){.kvds-site-header__inner{padding-inline:12px;gap:8px}.kvds-site-actions{gap:8px}.kvds-site-login{font-size:9px}}
/* Opt-in header controls. SVGs have transparent backgrounds and inherit text color. */
.kvds-site-header .kvds-header-control{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;max-width:100%;font-family:inherit;font-size:var(--kvds-hc-font);font-weight:500;line-height:1.5;text-align:center;text-decoration:none;box-shadow:none;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}
.kvds-site-header .kvds-header-control--row{flex-direction:row}
.kvds-site-header .kvds-header-control--stack{flex-direction:column;gap:3px}
.kvds-site-header .kvds-header-control--text{background:transparent;color:inherit;border:0;border-radius:0;padding:0}
.kvds-site-header .kvds-header-control--outline{background:transparent;color:var(--kvds-hc-bg);border:1px solid var(--kvds-hc-bg);border-radius:var(--kvds-hc-radius);padding:8px 12px}
.kvds-site-header .kvds-header-control--solid{background:var(--kvds-hc-bg);color:var(--kvds-hc-fg);border:1px solid var(--kvds-hc-bg);border-radius:var(--kvds-hc-radius);padding:8px 12px}
.kvds-site-header .kvds-header-control .kvds-header-icon{display:block;width:var(--kvds-hc-icon);height:var(--kvds-hc-icon);min-width:var(--kvds-hc-icon);flex:0 0 auto;object-fit:contain;border:0;border-radius:0;margin:0;padding:0;color:inherit}
.kvds-site-header .kvds-header-control .kvds-header-label-sr{position:absolute!important;overflow:hidden!important;width:1px!important;height:1px!important;clip:rect(1px,1px,1px,1px)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.kvds-site-header .kvds-header-control:hover{filter:brightness(.93);text-decoration:none}
.kvds-site-header .kvds-header-control:focus-visible{outline:3px solid #476b4e;outline-offset:4px}
.kvds-site-menu-panel .kvds-header-control{margin:4px 0;width:100%}
@media(max-width:768px){
 .kvds-site-header .kvds-header-control{font-size:var(--kvds-hc-font-mobile)}
 .kvds-site-header .kvds-header-control .kvds-header-icon{width:var(--kvds-hc-icon-mobile);height:var(--kvds-hc-icon-mobile);min-width:var(--kvds-hc-icon-mobile)}
 .kvds-site-header--controls .kvds-site-header__inner{flex-wrap:wrap}
 .kvds-site-header--controls .kvds-site-actions{flex-wrap:wrap;min-width:0;max-width:100%;gap:8px;margin-left:auto}
}
