#mk-shared-header{position:relative;z-index:30;display:block;width:100%;margin:0;background:#fff;border-bottom:1px solid #e8e2dc;color:#222;font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;font-size:14px;line-height:1.7}
#mk-shared-header *{box-sizing:border-box}
#mk-shared-header a{color:inherit;text-decoration:none;background:none}
#mk-shared-header .mksh-inner{max-width:1240px;margin:0 auto;display:flex;align-items:center;gap:32px;padding:20px 24px}
#mk-shared-header .mksh-brand{display:block;flex-shrink:0}
#mk-shared-header .mksh-brand img{display:block;width:142px;height:auto;max-width:100%}
#mk-shared-header .mksh-search{display:flex;flex:1;align-items:center;margin:0;padding:0;border:0;background:#f6f3f2;border-radius:30px;overflow:hidden}
#mk-shared-header .mksh-search input{width:100%;min-width:0;margin:0;padding:13px 18px;background:transparent;border:0;border-radius:0;box-shadow:none;color:#222;font:inherit;font-size:12px;height:auto}
#mk-shared-header .mksh-search button{display:grid;place-items:center;flex:0 0 48px;width:48px;margin:0;padding:10px;background:transparent;border:0;box-shadow:none;color:#222;cursor:pointer}
#mk-shared-header svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#mk-shared-header .mksh-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
#mk-shared-header .mksh-actions a{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:60px;min-height:52px;justify-content:center;white-space:nowrap;font-size:11px;line-height:1.4}
#mk-shared-header .mksh-actions svg{color:var(--mk-header-accent,#b81c22)}
#mk-shared-header .mksh-nav{display:flex;align-items:center;gap:27px;flex-wrap:wrap;max-width:1240px;margin:0 auto;padding:0 24px 15px;font-size:12px}
#mk-shared-header summary{cursor:pointer;list-style:revert;font-weight:500}
#mk-shared-header .mksh-categories{position:relative;margin:0;padding:0;border:0}
#mk-shared-header .mksh-tree{position:absolute;left:0;top:100%;width:300px;max-height:65vh;overflow:auto;padding:14px;background:#fff;border:1px solid #e8e2dc;box-shadow:0 8px 24px #0002;border-radius:8px}
#mk-shared-header ul{list-style:none;padding:0;margin:0}
#mk-shared-header li{list-style:none;float:none;margin:0;padding:0;border:0}
#mk-shared-header li::before{content:none}
#mk-shared-header .mkcp-category-tree ul{padding-left:14px}
#mk-shared-header .mkcp-category-tree a,#mk-shared-header .mkcp-category-tree summary{display:block;padding:8px 4px;white-space:normal}
#mk-shared-header .mkcp-category-tree summary{display:list-item;margin-left:15px}
#mk-shared-header a:hover{color:var(--mk-header-accent,#b81c22)}
#mk-shared-header :is(a,button,input,summary):focus-visible{outline:2px solid var(--mk-header-accent,#b81c22);outline-offset:3px}
@media(max-width:767px){
#mk-shared-header .mksh-inner{padding:12px 14px;gap:12px;flex-wrap:wrap}
#mk-shared-header .mksh-brand img{width:145px}
#mk-shared-header .mksh-actions{margin-left:auto;gap:16px}
#mk-shared-header .mksh-search{order:3;flex-basis:100%}
#mk-shared-header .mksh-search input{font-size:16px;padding:10px 14px}
#mk-shared-header .mksh-nav{gap:18px;padding:0 14px 12px}
#mk-shared-header .mksh-tree{position:fixed;left:14px;right:14px;top:auto;width:auto;max-height:55vh}
}

@media(max-width:767px){#mk-shared-header .mksh-actions{gap:8px}#mk-shared-header .mksh-actions a{min-width:54px}}

/* Sticky header; no change to product or purchase form styles. */
#mk-shared-header{position:sticky;top:0;z-index:9990;box-shadow:0 2px 8px #00000008}
body.admin-bar #mk-shared-header{top:32px}
#mk-shared-header .mksh-toggle{display:none}
@media(max-width:782px){body.admin-bar #mk-shared-header{top:46px}}
@media(max-width:600px){body.admin-bar #mk-shared-header{top:0}}
@media(max-width:767px){
#mk-shared-header .mksh-inner{gap:10px;padding:10px 12px}
#mk-shared-header .mksh-brand{flex:1;min-width:0}
#mk-shared-header .mksh-brand img{width:145px}
#mk-shared-header .mksh-actions{gap:5px}
#mk-shared-header .mksh-actions a{min-width:45px;font-size:10px}
#mk-shared-header .mksh-actions span{font-size:10px}
#mk-shared-header.mksh-ready .mksh-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:45px;min-height:52px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--mk-header-accent,#b81c22);font:inherit;line-height:1.4;cursor:pointer;box-shadow:none}
#mk-shared-header .mksh-toggle span{color:#222}
#mk-shared-header.mksh-ready .mksh-nav{display:none}
#mk-shared-header.mksh-ready.mksh-open .mksh-nav{display:flex}
#mk-shared-header .mksh-nav{flex-direction:column;align-items:stretch;gap:0;padding:0 16px 12px;max-height:calc(100dvh - 180px);overflow:auto;overscroll-behavior:contain}
#mk-shared-header .mksh-nav>a,#mk-shared-header .mksh-categories>summary{padding:12px 4px;min-height:44px;border-bottom:1px solid #e8e2dc}
#mk-shared-header .mksh-tree{position:static;width:100%;max-height:none;padding:6px 10px;border:0;border-radius:0;box-shadow:none;overflow:visible}
}

/* Social links preceding account and cart. */
#mk-shared-header .mksh-youtube svg{color:#ff0000}
#mk-shared-header .mksh-line svg{color:#06c755}
@media(max-width:767px){
#mk-shared-header .mksh-inner{column-gap:6px;padding-left:10px;padding-right:10px}
#mk-shared-header .mksh-actions{gap:0}
#mk-shared-header .mksh-actions a,#mk-shared-header.mksh-ready .mksh-toggle{min-width:44px;width:44px}
#mk-shared-header .mksh-brand{flex:1 1 0}
#mk-shared-header .mksh-brand img{width:145px;max-width:100%}
}

/* Keep labels separate and explicitly color the menu strokes. */
#mk-shared-header .mksh-actions .mksh-cart-mobile{display:none}
#mk-shared-header .mksh-toggle,
#mk-shared-header .mksh-toggle:hover,
#mk-shared-header .mksh-toggle:focus{opacity:1;background:transparent;background-image:none;color:var(--mk-header-accent,#b81c22)}
#mk-shared-header .mksh-toggle::before,
#mk-shared-header .mksh-toggle::after{content:none!important;display:none!important}
#mk-shared-header .mksh-toggle svg,
#mk-shared-header .mksh-toggle svg path{color:var(--mk-header-accent,#b81c22);stroke:var(--mk-header-accent,#b81c22);stroke-width:1.7;fill:none;opacity:1;filter:none}
@media(max-width:767px){
#mk-shared-header .mksh-actions .mksh-cart-desktop{display:none}
#mk-shared-header .mksh-actions .mksh-cart-mobile{display:block}
#mk-shared-header .mksh-actions{gap:3px}
#mk-shared-header .mksh-actions a,#mk-shared-header.mksh-ready .mksh-toggle{flex:0 0 44px;width:44px;min-width:44px;padding:0}
#mk-shared-header .mksh-actions span{font-size:9px;letter-spacing:0;line-height:1.5;white-space:nowrap}
}
