/* Layout overrides load after MONAD's responsive rules. */
body { --main_color:#003f35; }
body.home #header { order:0; }
body.home #header_message { order:-1; }
body #header { height:100px; border-bottom:1px solid #e0ebe6; }
body #header_logo { padding:0 24px; flex-shrink:0; }
body #header_logo img { width:160px; height:auto; max-height:84px; object-fit:contain; }
body #global_menu { height:100px; }
body #global_menu > ul > li { margin-left:22px; font-size:14px; }
body #global_menu > ul > li > a { height:100px; line-height:100px; }
body #global_menu > ul > li > ul,
body:not(.header_sticky_active) #global_menu > ul > li > ul { top:100%; bottom:auto; transform:translate3d(0,8px,0); }
body #global_menu > ul > li.active > ul,
body:not(.header_sticky_active) #global_menu > ul > li.active > ul,
body #global_menu > ul > li:focus-within > ul { opacity:1; pointer-events:auto; transform:translate3d(0,0,0); }
body.home #header_slider_container { margin:0; width:100%; border-radius:0; }
body #header_tel { margin-right:20px; }
.leaf-contact-bar { display:none; }
a:focus-visible, button:focus-visible { outline:3px solid #458d71; outline-offset:4px; }
@media (max-width:1391px) {
  body #header { height:80px; }
  body #header_logo { padding:0 18px; }
  body #header_logo img { width:132px; max-height:68px; }
  body.home #header_slider_container { margin:0; width:100%; }
  body.leaf-contact-ready { padding-bottom:calc(80px + env(safe-area-inset-bottom)); }
  .leaf-contact-bar { position:fixed; left:0; right:0; bottom:0; z-index:1000; display:flex; gap:8px; align-items:stretch; padding:8px 12px calc(8px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #d7e7df; box-shadow:0 -3px 14px #003f3510; }
  .leaf-contact-bar a { display:flex; align-items:center; justify-content:center; min-height:56px; border-radius:6px; text-decoration:none; line-height:1.4; }
  .leaf-call { flex:1.5; flex-direction:column; color:#fff !important; background:#003f35; }
  .leaf-call small { font-size:10px; }
  .leaf-call strong { font-size:21px; letter-spacing:.02em; }
  .leaf-consult { flex:1; color:#003f35 !important; background:#eef7f2; border:1px solid #003f35; font-size:15px; font-weight:700; }
  .leaf-consult span { margin-left:8px; }
  body.leaf-contact-ready #return_top { bottom:100px; }
}
@media (prefers-reduced-motion:reduce) {
  .leaf-contact-bar *, #global_menu > ul > li > ul { transition:none !important; }
}
