@charset "UTF-8";

@media print, screen and (min-width:1200px) {

#topHead {
position: fixed;
background-color: #fcf8ee;
width: 100%;
height: 120px;
top: 0;
left: 0;
right: 0;
margin: 0 auto;
z-index: 500;
transition: .3s;
}

/*
#topHead.fixed {
background-color: #fff;
}
*/

#topHead #logoWrap {
position: absolute;
background-color: #fcf8ee;
padding: 20px;
border-radius: 0 0 20px 0;
z-index: 1501;
transform: .3s;
left: 0;
top: 0;
}

#topHead #logo {
position: relative;
background: url("../img/logo_y.svg") no-repeat;
background-size: 160px;
width: 160px;
height: 131px;
}

#topHead #logo a span {
width: 160px;
height: 131px;
font-size: 0;
display: block;
text-indent: -10000px;
}

#topHead.fixed #logo {
position: absolute;
background: url("../img/logo.svg") no-repeat;
background-size: 230px;
width: 230px;
height: 40px;
margin: auto;
transform: .3s;
z-index: 1501;
left: 30px;
top: 38px;
}

#topHead.fixed #logo span {
width: 230px;
height: 40px;
font-size: 0;
display: block;
text-indent: -10000px;
}

#topHead #globalNav ul {
position: absolute;
margin: auto;
right: 160px;
top: 60px;
display: flex;
justify-content: flex-end;
z-index: 501;
}

#topHead #globalNav ul li {
text-align: center;
margin-left: 25px;
}

#topHead #globalNav ul li a {
position: relative;
font-size: 1.4rem;
font-weight: 600;
text-decoration: none;
display: block;
margin: 0;
padding: 0;
line-height: 1.5;
}

#topHead #globalNav ul li a span {
font-family: var(--font-kodchasan);
font-size: 1rem;
font-weight: 700;
color: var(--themeColor);
display: block;
}

#topHead #globalNav ul li a::after {
position: absolute;
background-color: var(--themeColor);
content: "";
width: 100%;
height: 1px;
bottom: -6px;
left: 0;
-webkit-transform: scale(0, 1);
transform: scale(0, 1);
-webkit-transform-origin: center top;
transform-origin: center top;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
}

#topHead #globalNav ul li a:hover::after {
transform: scale(1, 1);
}

#topHead #contact a {
position: absolute;
background-color: var(--themeColor);
width: 130px;
height: 130px;
font-size: 1.4rem;
font-weight: 600;
color: #fff;
padding: 20px 0;
top: 0;
right: 0;
border-left: 1px solid var(--themeColor);
border-bottom: 1px solid var(--themeColor);
border-radius: 0 0 0 20px;
line-height: 1.3;
transition: .3s;
z-index: 5;
}

#topHead #contact a span {
font-family: var(--font-kodchasan);
font-size: 1rem;
font-weight: 700;
display: block;
margin-top: 2px;
}

#topHead #contact a i {
font-size: 2.7rem;
margin-bottom: 5px;
}

#topHead #contact a:hover {
background-color: #fff;
color: var(--themeColor);
}

#topHead #btnCall {
position: fixed;
background-color: var(--txtColor);
width: 390px;
height: 42px;
font-size: 1.1rem;
font-weight: 700;
color: #fff;
padding: 8px 0 10px;
border-radius: 0 0 0 10px;
display: flex;
justify-content: center;
align-items: center;
transition: .3s;
line-height: 1;
z-index: 0;
right: 130px;
top: 0;
}

#topHead #btnCall:hover {
background-color: var(--themeColor);
color: #fff;
}

#topHead #btnCall span {
font-family: var(--font-kodchasan);
font-size: 2.5rem;
font-weight: 700;
}

#topHead,
#topHead #logo {
transition: all 0.3s ease;
}

.openbtn {
display: none;
}

.gNav,
#btnContact {
display: none !important;
}

}

@media print, screen and (max-width:1199px) {

#topHead {
position: fixed;
background-color: #fcf8ee;
width: 100%;
height: 60px;
top: 0;
left: 0;
margin: 0 auto;
z-index: 500;
transition: .3s;
}

#topHead.fixed {
background-color: #fff;
}

#topHead #logo {
position: absolute;
background: url("../img/logo.svg") no-repeat;
background-size: 200px;
width: 200px;
height: 35px;
margin: auto;
transform: .3s;
z-index: 1501;
left: 15px;
top: 12px;
}

#topHead #logo a span {
width: 200px;
height: 35px;
font-size: 0;
display: block;
text-indent: -10000px;
}

#topHead #globalNav ul {
display: none;
}

#topHead #contact {
display: none;
}

.openbtn {
position: fixed;
width: 30px;
height: 30px;
top: 15px;
right: 20px;
cursor: pointer;
z-index: 9999;
}

.openbtn span {
position: absolute;
background-color: var(--themeColor);
width: 30px;
height: 1px;
display: inline-block;
margin: auto;
left: 0;
right: 0;
top: 0;
bottom: 0;
transition: all .4s;
}

.openbtn span:nth-of-type(1) {
top: -11px;
}

.openbtn span:nth-of-type(2) {
top: 11px;
}

.openbtn.active span:nth-of-type(1) {
top: 0;
left: 0;
transform: translateY(-2px) rotate(-45deg);
width: 30px;
}

.openbtn.active span:nth-of-type(2){
top: 0;
left: 0;
transform: translateY(-2px) rotate(45deg);
width: 30px;
}

.gNav {
position: fixed;
background-color: #fcf8ee;
width: 100%;
height: 100vh;
z-index: -1;
opacity: 0;
top: 0;
transition: all 0.3s;
display: none;
}

.gNav.panelactive {
opacity: 1;
z-index: 999;
}

.gNav ul {
position: absolute;
width: 100%;
top: 30%;
left: 50%;
transform: translateY(-30%) translateX(-50%);
}

.gNav ul li {
text-align: center;
margin: 20px auto;
}

.gNav ul li a {
position: relative;
font-size: 1.4rem;
font-weight: 700;
color: var(--txtColor);
text-decoration: none;
margin: 0;
padding: 0;
line-height: 1.5;
}

.gNav ul li a span {
font-family: var(--font-kodchasan);
font-size: 1rem;
font-weight: 700;
color: var(--themeColor);
display: block;
}

.gNav ul li a::after {
position: absolute;
background-color: var(--themeColor);
content: "";
width: 100%;
height: 2px;
bottom: -12px;
left: 0;
-webkit-transform: scale(0, 1);
transform: scale(0, 1);
-webkit-transform-origin: left top;
transform-origin: left top;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
}

#topHead #btnCall {
position: fixed;
background-color: #fafafa;
width: 205px;
height: 50px;
font-size: 1rem;
font-weight: 700;
color: var(--themeColor);
transition: .3s;
line-height: 1.3;
z-index: 0;
right: 0;
top: 80px;
}

#topHead #btnCall {
position: fixed;
background-color: var(--themeColor);
width: 100%;
height: 42px;
font-size: 1rem;
font-weight: 700;
color: #fff;
padding: 8px 0 10px;
display: flex;
justify-content: center;
align-items: center;
transition: .3s;
line-height: 1;
z-index: 0;
left: 0;
top: 60px;
}

#topHead #btnCall span {
font-family: var(--font-kodchasan);
font-size: 2.2rem;
font-weight: 700;
}

}