/* Production: keep the existing 1120px desktop minimum and 768px mobile breakpoint. */
@media screen and (min-width:769px), print {
 #header {display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;}
 #header .logo {float:none;flex:0 0 auto;}
 #header nav {float:none;flex:0 0 auto;margin-left:auto;}
 #header nav > div {display:flex;align-items:center;flex-wrap:nowrap;}
 #header nav > div > *, #header .gnav li {float:none;}
 #header .gnav {display:flex;flex-wrap:nowrap;}
 #header .gnav li > a, #header .contact > a {white-space:nowrap;}
 #header .nav_btn, #header .nav_close {display:none;}
}
@media screen and (min-width:769px) and (max-width:1439px), print {
 #header .logo a {padding:10px 12px;}
 #header .logo img {width:245px;height:auto;}
 #header .gnav li > a {padding:0 8px;font-size:1.4rem;letter-spacing:0;}
 #header .tel {padding:0 10px;text-align:right;}
 #header .tel img {width:205px;height:auto;}
 #header .contact a {width:145px;font-size:1.4rem;letter-spacing:0;}
 body.first #header .tel a::before {width:205px;height:24px;}
}
@media screen and (min-width:1440px) {
 #header .tel {padding-top:0;}
}
@media screen and (max-width:768px) {
 #header .gnav a.current {color:#33a2dc;font-weight:bold;}
}

/* Mobile footer: override legacy table layout. */
@media screen and (max-width:768px) {
 #footer nav ul.gnav {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));width:80%;max-width:420px;margin:0 auto 15px;padding:5px;box-sizing:border-box;}
 #footer nav ul.gnav > li {display:block !important;float:none;width:auto;min-width:0;}
 #footer nav ul.gnav > li > a {display:flex !important;align-items:center;justify-content:center;height:auto;min-height:44px;padding:8px 4px;white-space:nowrap;box-sizing:border-box;}
 #footer nav ul.gnav > li > a > span {display:block;}
 #footer nav ul.gnav > li > a::before {display:none;}
 #footer nav ul.gnav > li:nth-child(even) > a::before {display:block;}
 #footer nav ul.gnav > li:nth-child(n+3) {border-top:1px solid #e3e3e3;}
}
