/* Mobile navigation; the existing navigation remains available without JavaScript. */
body:has(#body_wrap.ta-night-background) .ta-mobile-menu-button,
body:has(#body_wrap.ta-night-background) .ta-mobile-panel{display:none}
@media(max-width:1023px){
 html.ta-menu-capable body:has(#body_wrap.ta-night-background).ta-menu-ready .ta-layout-nav,
 html.ta-menu-capable body:has(#body_wrap.ta-night-background).ta-menu-ready .mobile-footer-menu-buttons{display:none}
 /* Keep the preview notice readable when reviewing a narrow viewport. */
 body #wpvibe-preview-banner{flex-wrap:wrap;gap:6px;max-height:32vh;overflow:auto;padding:8px 12px}
 body #wpvibe-preview-banner .wpvibe-info{flex:1 1 100%;font-size:11px;line-height:1.4;white-space:normal}
 body #wpvibe-preview-banner .wpvibe-badge{font-size:11px}
 body #wpvibe-preview-banner .wpvibe-btn{padding:4px 8px;font-size:11px}
 body:has(#body_wrap.ta-night-background).ta-menu-ready .ta-mobile-menu-button{
  appearance:none;-webkit-appearance:none;display:flex;position:fixed;
  top:calc(12px + env(safe-area-inset-top,0px));right:calc(12px + env(safe-area-inset-right,0px));
  width:56px;height:56px;min-width:56px;min-height:56px;padding:0;margin:0;
  align-items:center;justify-content:center;border:1px solid rgba(255,230,145,.55);border-radius:2px;
  background:rgba(199,161,26,.95);color:#fff;box-shadow:0 3px 14px rgba(0,0,0,.28);
  cursor:pointer;z-index:10020;touch-action:manipulation
 }
 body:has(#body_wrap.ta-night-background).ta-menu-ready .ta-mobile-menu-button:hover{background:#bb9518}
 body:has(#body_wrap.ta-night-background).ta-menu-ready .ta-mobile-menu-button:focus-visible{outline:3px solid #fff;outline-offset:3px}
 .ta-menu-lines{display:flex;flex-direction:column;gap:8px;width:29px}
 .ta-menu-lines span{display:block;width:100%;height:1px;background:#fff}
 .ta-menu-cross{position:relative;display:block;width:29px;height:29px}
 .ta-menu-cross::before,.ta-menu-cross::after{content:"";position:absolute;left:0;top:14px;width:29px;height:1px;background:#fff;transform:rotate(45deg)}
 .ta-menu-cross::after{transform:rotate(-45deg)}
 body:has(#body_wrap.ta-night-background).ta-menu-ready.admin-bar .ta-mobile-menu-button{top:calc(58px + env(safe-area-inset-top,0px))}
 body:has(#body_wrap.ta-night-background).ta-menu-ready .ta-mobile-panel[open]{
  display:block;position:fixed;inset:0 0 0 auto;width:min(88vw,420px);max-width:none;
  height:100vh;height:100dvh;max-height:none;box-sizing:border-box;margin:0;
  padding:calc(66px + env(safe-area-inset-top,0px)) 12px calc(32px + env(safe-area-inset-bottom,0px));
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  border:0;border-left:1px solid #b99939;border-radius:0;background:rgba(4,10,20,.98);
  color:#fff;box-shadow:-8px 0 30px rgba(0,0,0,.4);animation:ta-menu-enter .22s ease-out
 }
 .ta-mobile-panel::backdrop{background:rgba(0,0,0,.68)}
 body:has(#body_wrap.ta-night-background).ta-menu-ready.admin-bar .ta-mobile-panel[open]{padding-top:calc(130px + env(safe-area-inset-top,0px))}
 .ta-mobile-panel nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;align-items:stretch}
 .ta-mobile-panel nav a{min-width:0;display:block;color:#fff;text-align:center;text-decoration:none}
 .ta-mobile-panel .ta-layout-brand{padding:0 0 22px;font-size:25px}
 .ta-mobile-panel .ta-layout-link{padding:14px 5px;min-width:0;overflow-wrap:anywhere}
 .ta-mobile-panel .ta-layout-en{font-size:clamp(14px,4vw,19px);white-space:normal;overflow-wrap:anywhere}
 .ta-mobile-panel .ta-layout-ja{font-size:13px;line-height:1.6}
 .ta-mobile-panel nav a:focus-visible{outline:2px solid #fff;outline-offset:-2px}
 body:has(#body_wrap.ta-night-background).ta-menu-ready #header .site-name{padding-right:68px}
 body:has(#body_wrap.ta-night-background).ta-menu-open{position:fixed;left:0;right:0;width:100%;overflow:hidden}
 @keyframes ta-menu-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
}
@media(min-width:783px) and (max-width:1023px){
 body:has(#body_wrap.ta-night-background).ta-menu-ready.admin-bar .ta-mobile-menu-button{top:calc(44px + env(safe-area-inset-top,0px))}
}
@media(prefers-reduced-motion:reduce){
 body:has(#body_wrap.ta-night-background).ta-menu-ready .ta-mobile-panel[open]{animation:none}
}


@media(max-width:1023px){
 body:has(#body_wrap.ta-night-background).ta-menu-ready .ta-mobile-menu-toggle{position:relative;inset:auto;display:flex;width:112px;min-width:112px;height:42px;min-height:42px;margin:8px 12px 0 auto;gap:8px;border-radius:5px;background:#171f2b;color:#ffe5a0;box-shadow:none}
 .ta-mobile-menu-toggle::after{content:"メニュー";font-size:13px;font-weight:700}
 .ta-mobile-menu-toggle .ta-menu-lines{width:20px;gap:5px}
 body:has(#body_wrap.ta-night-background).ta-menu-ready .ta-mobile-panel .ta-mobile-menu-close{position:absolute;top:12px;right:12px;width:42px;height:42px;min-width:42px;min-height:42px}
 .ta-mobile-panel .ta-layout-brand{grid-column:1/-1}
 .ta-mobile-panel .ta-layout-link{padding:10px 4px}
 .ta-mobile-panel .ta-layout-en{font-size:clamp(12px,3.5vw,16px)}
 .ta-mobile-panel .ta-layout-ja{font-size:12px}
}
