/* header  */

body.admin-bar header, body.admin-bar.front-page header.scActive { margin-top: 32px; }
header { margin-top: 10px;position: fixed; top: 0; left: 0; z-index: 100; width: 100%; height: 80px; transition: all 0.2s; border-bottom: 1px solid rgba(0,0,0,0) !important;} 
header.scActive {margin-top: 0; border-bottom: 1px solid var(--border-color) !important; height: 60px; background-color: var(--scrolled-header-bg-color) !important; } 
header .container { display: flex; align-items: center; justify-content: space-between;  height: 100%; max-width: calc(100% - 100px) ; transition: all 0.2s; } 

.logobox a { display: flex; font-size: 26px; font-weight: bold;} 
.gnb { display: flex; gap:0; align-items: center; } 
.menu { display: inline-block; position: relative;} 
.menu-item { position: relative; } 
.logoBlack{display: block;}
.logoWhite{display: none;}
header.scActive .logoWhite{display: none;}
header.scActive .logoBlack{display: block;}

body.darkmode .logoBlack{display: none;}
body.darkmode .logoWhite{display: block;}
body.darkmode .site-header.scActive .logoWhite{display: block; }
body.darkmode .site-header.scActive .logoBlack{display: none;}

/* front-page header  */
.front-page header{ border-bottom: none !important;  }
.front-page header.scActive{height: 80px; border-bottom: none !important; margin-top: 10px;}
.front-page header a{color: var(--menu-top-color);}
.front-page .site-header.scActive .logoBlack{display: none;}
.front-page .site-header.scActive .logoWhite{display: block;}
.front-page .site-header.scActive{ background-color: rgba(0,0,0,0) !important; border-bottom: 0 !important  ;}
.front-page .logoBlack{display: none;}
.front-page .logoWhite{display: block;}
.front-page .site-header .menu > .menu-item > a, 
.front-page .site-header.scActive .menu > .menu-item > a, 
.front-page .site-header ul.sns a, 
.front-page .site-header.scActive ul.sns a{color: var(--menu-top-color); } 
.front-page .site-main { display: flex; flex-direction: column; margin-bottom: 0px !important; } 

.navWrap{display: flex;gap: 0;align-items: center;}
.marker{position: absolute; width: 0px;left: 0; height: 2px;  bottom: 10px; background-color: var(--top-menu-line-color); transition: 0.5s; border-radius: 2px;}
.nomarker .marker, .page-personal .marker, .page-contact .marker{display: none !important;}
.site-header.scActive .marker{display: none;}

.menu-item > a { display: flex; color: var(--menu-top-color-sub); align-items: center; justify-content: center;padding: 0 18px;position: relative;height: 70px;
    font-size: clamp(18px, 1.2vw, 21px);font-weight: 500; } 
.menu-item > a > span:nth-child(2){display: none;}
.site-header.scActive ul.menu>li.menu-item > a { height: 60px; } 
.sub-menu { display: none; display:block; flex-direction: column; box-shadow: 0 3px 10px rgba(0,0,0,0.18); overflow: hidden;
     position: absolute; top: 100%; left: 50%; z-index: 101; min-width: 150px; width: calc(100% - 40px); visibility: hidden; background-color: var(--submenu-bg-color); transition: all 0.3s;; transform: translateX(-50%) translateY(5px); opacity: 0; border-radius: 8px; } 
header.scActive .sub-menu{top: 60px;}
.menu-item:hover .sub-menu { display: block; visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); } 
.sub-menu .menu-item { width: 100%; transition: all 0.2s;} 
.sub-menu .menu-item.prod-totalmenu{display: none !important;}
.sub-menu .menu-item a { padding: 8px 10px; border-bottom: 1px solid var(--border-color); width: 100%; height: 100%; font-size: 15px !important; text-align: center; color: var(--submenu-text-color);} 
.sub-menu .menu-item:last-child a{border-bottom: 0 !important;}
ul.sns { display: flex; gap: 0; } 
ul.sns a { color: rgba(0,0,0,0.5); padding: 4px 0; line-height:1; font-size: 20px; } 
ul.sns li{margin-left: 20px;}

/* 검색 박스 스타일 */
.search-box { position: relative; display: inline-block; }
.search-toggle { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-left: 16px; line-height: 1; border: 0; background-color: transparent; cursor: pointer; }
.search-toggle i { width: 24px; height: 24px; color: var(--menu-top-color-sub); }
.search-form { position: absolute; right: 0; bottom: 0; transform: translateY(65px); display: flex; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; background: var(--body-bg-color); padding-left: 20px; border-radius: 40px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.search-form.active { opacity: 1; visibility: visible; }
.search-submit { background: none; border: none; padding: 0; cursor: pointer; width: 50px; height: 50px; }
.search-field { flex: 1; border: 0; outline: none; width: 160px; background-color: transparent; font-size: 16px; color: var(--body-text-color); border-radius: 30px; height: 50px; }
.search-field:focus { border: 0; background-color: var(--body-bg-color); }
.search-field::placeholder { color: #8697a6; }

/* 모바일 gnb */
.menu-container { position:fixed; top:0; right:0; z-index:9; -webkit-transition:.2s; transition:.2s; -moz-transition:.2s; -ms-transition:.2s; -o-transition:.2s; pointer-events:none } 
.menu-container.active { visibility:visible; pointer-events:auto; opacity:1 } 
.menu-container.active .more-navigation { top:0; right:0px; } 
.menu-container .more-navigation { padding:80px 20px 50px 20px; overflow-y:scroll; position:absolute; right:-100px; z-index:1000; width:100%; max-width:320px; background:var(--body-bg-color); -webkit-transition:right .3s ease-in-out; transition:right .3s ease-in-out; -moz-transition:right .3s ease-in-out; -ms-transition:right .3s ease-in-out; -o-transition:right .3s ease-in-out } 
.menu-container .more-navigation .toggle-btn { display:block; position:absolute; top:5px; right:0px; z-index:1; width:48px; height:48px; background:url(../images/icon-arrow-down.svg) center/24px no-repeat; background-size: 18px; transition:.3s; transform:rotate(0); } 
.menu-container .more-navigation .toggle-btn.show { transition: 0.3s; transform: rotate(180deg); } 
.menu-container .more-navigation .button.menu-item { margin-left: 0; } 
.menu-container .more-navigation li { position: relative; } 
.menu-container .more-navigation li :last-child { margin-bottom: 0; } 
.menu-container .more-navigation li a { display:block; padding:14px 0; border-bottom: 1px solid var(--border-color); position:relative; height: inherit; font-size:20px; line-height:1; color:var(--body-text-color); text-align:left; } 
.menu-container .more-navigation li.button { display:block; margin-top:80px; margin-bottom:40px; padding:0; border:none; height:auto; line-height:auto; border-radius:8px; -webkit-border-radius:8px; -moz-border-radius:8px; -ms-border-radius:8px } 
.menu-container .more-navigation li.button a { padding: 12px; font-size: 20px; font-weight: normal; color: #fff; text-align: center; } 
.menu-container .more-navigation li .sub-menu { display: none; margin-left: 0; padding:1rem; background-color: rgba(0,0,0,0.05); } 
.menu-container .more-navigation li .sub-menu li { border-bottom: none; } 
.menu-container .more-navigation li .sub-menu li.current-menu-item > a , 
.menu-container .more-navigation li.current-menu-parent > a { background-color: inherit !important; color: inherit !important; } 
.menu-container .more-navigation li .sub-menu a { padding: 8px 0; border: 0; font-size: 18px; } 
.menu-container .more-navigation li.show .sub-menu { display:block!important; border:0; border-top:1px solid var(--border-color); box-shadow:none; position:relative; top:inherit; left:inherit; width:100%; visibility:inherit; transform:none; opacity:inherit } 
.menu-container .active .more-navigation .current-page-item a { opacity: 1; } 
.menu-btn { display: none; } 
.menu-container,
.menu-container .overlay { width:100%; height:100%; visibility:hidden; opacity:0 } 
.menu-container .overlay.active { display: block; visibility:visible; -webkit-transition:.2s; transition:.2s; -moz-transition:.2s; -ms-transition:.2s; -o-transition:.2s; opacity:1; } 
.menu-container .overlay { display: none; position:absolute; z-index:51; background:rgba(0,0,0,.85); pointer-events: auto; } 

.menu-item > a,
.subBanner .pageTitle, ul.sns a,
.search-toggle i,
.menu-btn .menu-icon::before {
    color: var(--menu-top-color-sub);
}
.site-header.scActive {
    background-color: var(--scrolled-header-bg-color);
}
.sub-menu, .subNav a {
    background-color: var(--submenu-bg-color);
}
.sub-menu .menu-item a, .subNav a {
    color: var(--submenu-text-color);
}
.sub-menu .menu-item:not(.current-menu-item) a:hover, .subNav a:not(.active):hover {
    color: var(--submenu-hover-text-color);
    background-color: var(--submenu-hover-bg-color);
}
.mainNew .content li .title,
.menu-container .more-navigation li.current-post-ancestor > a,
.menu-container .more-navigation li.current-menu-parent > a,
.menu-container .more-navigation li .sub-menu li.current-menu-item > a,
.sub-menu .current-menu-item a, .subNav a.active {
    color: var(--primary-color);
}
.front-page .site-header .menu > .menu-item > a,
.page-home .site-header.scActive .menu > .menu-item > a,
.front-page .site-header ul.sns a,
.page-home .site-header.scActive ul.sns a,
.front-page .search-toggle i,
.front-page .menu-icon::before {
    color: var(--menu-top-color);
}
/* footer */
footer {padding: 70px 0 75px 0; position: relative; background-color: var(--copyright-bg-color); color: #b1b1b1; } 
footer .container { display: flex; margin: 0 auto; width: 100%; max-width:calc(100% - 60px) } 
footer a { color: #666; } 
.footer-nav li a{ padding: 12px 24px 15px 0; font-size: 16px;font-weight: 500;  white-space: nowrap; word-break: keep-all;color: #fff; height: inherit;}
.footText > p {font-size: 15px; color: #9c9c9c; margin-bottom: 4px;}
.footText > p > span{color: #d4d4d4; margin-right: 3px; margin-left: 10px;}
.footText > p > span:first-child{margin-left: 0;}
.footText br.onlymobile{display: none;}
footer .elementor-button { padding: 12px 0 !important; background: transparent; font-size: 16px; font-weight: 500; white-space: nowrap; word-break: keep-all; } 
.floatRight { display: flex; gap: 10px; flex-direction: column; position: fixed; right: 20px; bottom:30px; z-index: 51; width: 45px; height: max-content; } 
.front-page .floatRight{bottom: 40px;}
.gotoTop { display: flex; align-items: center; justify-content: center; box-shadow: 0 0 5px rgba(0,0,0,0.2); width: 45px; height: 45px; border-radius: 8px; font-size: 20px; overflow: hidden; position: relative; background-color: var(--body-bg-color); color: var(--body-text-color);} 
.gotoTop i {position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;opacity: 1; }
.kakaochat { box-shadow: 0 0 5px rgba(0,0,0,0.2); width: 45px; height: 45px; background-color: #ebe00a; color: #333; border-radius: 8px; } 
.kakaochat a, .navertalk a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; } 
.kakaochat i { font-size: 24px; color: rgb(47, 39, 12); } 
.navertalk { box-shadow: 0 0 5px rgba(0,0,0,0.2); width: 45px; height: 45px; background-color: #1ce43a; background-image: url(../images/naver_talk.jpg); background-size: cover; color: #333; border-radius: 8px; } 
.navertalk i { font-size: 0; } 


@media screen and (max-width:1450px){
    header .container{max-width: 98%;}
}

@media screen and (max-width:1200px) {
    .gnb { display: none; } 
    .menu-container.active .gnb { display: block; width: 100%; } 
    header{margin-top: 0;}
    header, .front-page header.scActive{height: 60px;}
    .front-page header .container { max-width: 97%;}
    .menu-btn { display: block; position: absolute; top: 10px; right: 10px; z-index: 9999; width: 40px; height: 40px; cursor: pointer; } 
    .menu-btn .menu-icon{ width: 32px;height: 32px; position: relative;}
    .menu-btn .menu-icon::before { color: var(--menu-top-color-sub); width: 32px;height: 32px; position: absolute; display: inline-block; font-family: "bootstrap-icons";
        content: '\F479';  font-weight: 400; font-size: 32px;line-height: 1; top: 6px; left: 0; } 
    .front-page .menu-icon::before { color:var(--menu-top-color); }
    .menu-btn.active .menu-icon::before { color:var(--body-text-color); content: "\F659";   } 
    .menu-container .more-navigation li { display: block; } 
    .menu-container .more-navigation { height: 100vh; } 
    .menu-container .more-navigation > div { display: flex; align-items: start; justify-content: start; flex-direction: column; } 
    .menu-container .sns li a { border-bottom: 0; color: var(--body-text-color) !important; } 
    .menu-container .sub-menu .current-menu-item a, 
    .menu-container .subNav a.active, 
    .menu-container .more-navigation li .sub-menu li.current-menu-item > a , 
    .menu-container .more-navigation li.current-menu-parent > a { background-color: inherit !important; color: inherit !important; } 
    .menu-container .more-navigation li.current-menu-parent > a, 
    .menu-container .sns li:first-child{margin-left: 0;}
    .menu-container .sns { margin-top: 30px; margin-left: 0;} 
    header .container { padding: 0 20px; } 
    .search-box{position: absolute; top: 17px; right: 60px;}
    .search-form{transform: translateY(70px) translateX(50px);}
    footer .container{max-width: 100%; padding:0 25px;}
}
@media screen and (max-width:1024px) {
    footer {padding:40px 0;}
    .footText > p{font-size: 14px;}
}

@media screen and (max-width:820px) {
    header { height: 60px; background-color: var(--body-bg-color); } 
    .front-page header.scActive{margin-top: 0;}
    .front-page header{background-color: transparent;}
    .logobox { width: 200px; } 
    .logoBlack{display: block;}
    .logoWhite{display: none;}
    footer{padding: 40px 0;}
    .footText > p > span{margin-left: 0;}
    .footText br.onlymobile{display: block;}
    .contactGrid {grid-template-columns: 1fr; grid-template-rows: auto auto auto;height: auto; gap: 20px 0; margin-bottom: 40px;}
    .page-contact .contactGrid > div{padding: 20px;}
    .contactGrid .cGridMonth{grid-column: 1; grid-row: 1;}
    .contactGrid .cGridMap{grid-column: 1; grid-row: 3;}
    .contactGrid .cGridWrite{grid-column: 1; grid-row: 2;}
}
@media screen and (max-width:782px) {
    body.admin-bar .site-header { margin-top: 46px;} 
}

@media screen and (max-width:520px) { 
    .logobox a{font-size: 22px;}
    .page-contact .contactGrid > div{padding: 20px 10px;}
    header .container { padding: 0 15px;max-width: 100%;}
    header .menu-container .menu-item > a{font-size: 18px !important;}
    .logobox { height: 40px;display: flex;align-items: center;justify-content: start;}
    .logobox img{object-fit: contain;}
    .logobox a { max-height: 30px; max-width: 160px; }
    .site-header { margin-top: 0px; }
    .menu-btn { top: 10px; right: 0px; }
    .search-box { position: absolute; top: 17px; right: 50px; }
    .search-form { transform: translateY(60px) translateX(50px); }
    footer { margin: 0; padding: 30px 0; border-radius: 0; }
    footer .container {   line-height: 1.4; }
    footer .footText { width: 100%; }
    .footText > p { font-size: 13px; }
    .edit_footer_address > br{display: block;}
    .footText span:nth-child(2) { display: inline-block; }
    .footer-nav li a { font-size: 14px; padding-right: 12px; }
    .subNav li{min-width: 30%;}
}