/* v0.3.1: JIN common/site-wide header (independent of shortcode body). */
html.wic-sh-mounted .wic-sh-replaced-native,
html.wic-sh-mounted #header-box,
html.wic-sh-mounted header#header,
html.wic-sh-mounted #header.header,
html.wic-sh-mounted .header-box,
html.wic-sh-mounted #header-menu,
html.wic-sh-mounted #gnav,
html.wic-sh-mounted .sp-header {display:none!important}
/* JIN sometimes has an independent sticky header cloned while scrolling. */
html.wic-sh-mounted #header-box.fixed,html.wic-sh-mounted .header-fixed {display:none!important}
#wic-site-header,#wic-site-header *{box-sizing:border-box}
#wic-site-header{position:relative;z-index:25;width:100%;max-width:none!important;margin:0 auto!important;background:#fff9f0;border-top:4px solid #bd7844;border-bottom:1px solid #e4ceb8;color:#4d2f20;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;box-shadow:0 2px 9px rgba(72,40,19,.045)}
#wic-site-header .wic-sh-inner{max-width:1150px;width:calc(100% - 32px);margin:0 auto}
#wic-site-header .wic-sh-upper{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:72px;padding:12px 0}
#wic-site-header .wic-sh-brand{display:inline-flex;align-items:center;min-width:0;gap:12px;text-decoration:none!important;color:#4d3020!important;white-space:nowrap}
#wic-site-header .wic-sh-brand:hover{opacity:.8}
#wic-site-header .wic-sh-logo{display:flex;align-items:center;justify-content:center;flex:none;width:46px;height:46px;border-radius:50%;background:#fffdf8;border:1px dashed #b87948}
#wic-site-header .wic-sh-wafer{transform:rotate(-16deg);border:2px solid #7b492b;box-shadow:2px 3px 0 #edc58a;background:#b77d49;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:2px;padding:2px;width:29px;height:29px;border-radius:2px}
#wic-site-header .wic-sh-wafer i{background:repeating-linear-gradient(45deg,#f6d18f 0,#f6d18f 3px,#eab76f 3px,#eab76f 5px);border:1px solid #fee9bd}
#wic-site-header .wic-sh-brand-text{display:flex;flex-direction:column;min-width:0;gap:1px}
#wic-site-header .wic-sh-brand-text strong{font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;font-size:clamp(19px,2.3vw,27px);line-height:1.3;font-weight:800;letter-spacing:.02em;color:#44271c}
#wic-site-header .wic-sh-brand-dot{color:#c85c3b}
#wic-site-header .wic-sh-brand-text small{color:#9b7557;font-size:10px;line-height:1.4;letter-spacing:.03em}
#wic-site-header .wic-sh-search{display:flex;align-items:stretch;min-width:0;width:min(39%,410px);margin:0!important;border:1px solid #dfc1a6;border-radius:10px;overflow:hidden;background:white;box-shadow:0 2px 4px rgba(60,37,20,.04)}
#wic-site-header .wic-sh-search input[type=search]{flex:1;min-width:0;width:100%;height:42px;margin:0!important;padding:0 13px!important;color:#4b3329!important;font-size:12px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;outline-offset:-3px}
#wic-site-header .wic-sh-search button{flex:none;min-width:66px;margin:0!important;padding:0 15px!important;border:0!important;border-radius:0!important;background:#6b3c28!important;color:white!important;font-size:13px!important;font-weight:800!important;cursor:pointer}
#wic-site-header .wic-sh-search button:hover{background:#985533!important}
#wic-site-header .wic-sh-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:0;background:#fff8ee;border:1px solid #ecd9c4;border-radius:12px 12px 0 0;overflow:hidden}
#wic-site-header .wic-sh-nav-link{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 5px;text-decoration:none!important;color:#653f2b!important;font-weight:800;font-size:12.5px;line-height:1.45;border-right:1px solid #ecddce;background:transparent}
#wic-site-header .wic-sh-nav-link:last-child{border-right:0}
#wic-site-header .wic-sh-nav-link.is-active,#wic-site-header .wic-sh-nav-link:hover{background:#70412e!important;color:white!important}
#wic-site-header .wic-sh-icon{width:17px;height:17px;flex:none}
#wic-site-header a:focus-visible,#wic-site-header input:focus-visible,#wic-site-header button:focus-visible{outline:3px solid #d88444!important;outline-offset:-3px}
body .wic-compact-home{margin-top:18px}
body #wic-upcoming,body #wic-works,body #wic-characters,body #wic-makers{scroll-margin-top:22px}
@media(max-width:780px){
  #wic-site-header .wic-sh-upper{gap:10px;padding:10px 0;min-height:66px}
  #wic-site-header .wic-sh-brand-text strong{font-size:20px}
  #wic-site-header .wic-sh-logo{width:39px;height:39px}
  #wic-site-header .wic-sh-search{width:44%}
  #wic-site-header .wic-sh-nav-link{font-size:11px;gap:5px;padding:9px 3px}
  #wic-site-header .wic-sh-icon{width:16px;height:16px}
}
@media(max-width:600px){
  #wic-site-header .wic-sh-inner{width:calc(100% - 20px)}
  #wic-site-header .wic-sh-upper{flex-direction:column;align-items:stretch;gap:9px;padding:10px 0}
  #wic-site-header .wic-sh-brand{gap:9px}
  #wic-site-header .wic-sh-brand-text strong{font-size:20px}
  #wic-site-header .wic-sh-brand-text small{font-size:9px}
  #wic-site-header .wic-sh-logo{width:37px;height:37px}
  #wic-site-header .wic-sh-search{width:100%}
  #wic-site-header .wic-sh-search input[type=search]{height:39px;font-size:12px!important}
  #wic-site-header .wic-sh-nav{border-radius:9px 9px 0 0}
  #wic-site-header .wic-sh-nav-link{flex-direction:column;gap:3px;padding:8px 2px;font-size:9.5px;white-space:nowrap}
  #wic-site-header .wic-sh-icon{width:18px;height:18px}
  body .wic-compact-home{margin-top:10px}
}
