@charset "UTF-8";

/********************************************************
■ Header : 헤더 - 기본
********************************************************/
:root {
	--top-height:170px; /* top 전체높이 */
    --top-menu-height:60px; /* 메뉴높이 */
}

#top { position: fixed; left:0; right:0; top:0; height:var(--top-height); background:#fff; transition-duration:400ms; z-index:100; }
.scrolled #top { top:calc(-1 * var(--top-height)); }
.scroll-up #top { box-shadow:5px 0 10px #aaa; top:calc(-1 * (var(--top-height) - var(--top-menu-height))); }

#top .top-wrap { position:relative; padding:15px var(--top-padding) 0; height:calc(var(--top-height) - var(--top-menu-height)); display:flex; align-items:center; justify-content: space-between; z-index:3; }

#top .top-wrap .logo { position:absolute; left:50%; top:calc(50% + 7.5px); width:750px; height:50px; transform:translate(-50%, -50%); background: url("../img/logo.png") center/contain no-repeat; image-rendering: -webkit-optimize-contrast; backface-visibility: hidden; transition-duration: 200ms; } 

#top .top-wrap .txt { font-size:.875rem; line-height:1.2; }

#top .top-wrap .right { position:relative; display: flex; align-items: center; transition-duration:200ms; }
#top .top-wrap .right section { position: relative; margin-right: 20px; padding:20px 0; }
#top .top-wrap .right section:hover { z-index:3; }
#top .top-wrap .right section span[class*="-btn"] { display:block; width:20px; height:20px; background:none no-repeat center/contain; cursor:pointer; filter:brightness(500%) invert(100%); }



#top .top-wrap .right .top-search .search-btn { background-image:url('../img/top-icon-search.png'); }
#top .top-wrap .right .langs .lang-btn { background-image:url('../img/top-icon-language.png'); }
#top .top-wrap .right .langs .sub { width:110px; text-align:left !important; }
#top .top-wrap .right .langs .sub img { width:20px; border:1px solid #ddd; border-radius:3px; }
#top .top-wrap .right .links .member-btn { background-image:url('../img/top-icon-login.png'); }


#top .top-wrap .right .bgm { display:flex; }
#top .top-wrap .right .bgm i { margin-left:5px; cursor:pointer; font-size:20px; }
#top .top-wrap .right .bgm audio { width:0; height:0; }


#top .top-wrap .top-search-box { align-items: center; display: flex; height: 100%; justify-content: center; }
#top .top-wrap .top-search-box form { border: 1px solid #fff; display: flex; align-items:center; padding: 7px 8px 8px; width: 300px; }
#top .top-wrap .top-search-box form .searchbox { background: transparent; border: 0; flex: 1; }
#top .top-wrap .top-search-box form .searchbox::placeholder { color: #ddd; }
#top .top-wrap .top-search-box form .searchbox:focus { outline: none; }
#top .top-wrap .top-search-box form button { background: transparent; border: 0; color:var(--main-color2); flex: 0 0 25px; margin-left: 5px; }
#top .top-wrap .top-search-box form button:focus { outline: none; }
#top .top-wrap .top-search-box form .x-close { color:#444; font-size:1.8rem; margin-left:5px; cursor:pointer; }




#top .top-wrap .right section .sub { position:absolute; top:100%; left:50%; transform:translateX(-50%); padding:0 25px; background:#fff; border-radius:10px; border:1px solid transparent; opacity:0; visibility:hidden; max-height:0; transition-duration:300ms; }
#top .top-wrap .right section:hover .sub,
#top .top-wrap .right section .sub:hover { max-height:300px; padding:15px 25px; border-color:#ddd; opacity:1; visibility:visible; transition-duration:600ms; }

#top .top-wrap .right section .sub:before { content:""; position:absolute; bottom:calc(100% - 10px); left:50%; transform:translateX(-50%) rotate(45deg); width:20px; height:20px; border-radius:5px 0 0 0; background:#fff; border-left:1px solid #ddd; border-top:1px solid #ddd; }
#top .top-wrap .right section .sub a { display:block; padding:2.5px 0; text-align:center; opacity:0; font-size:.875rem; font-weight:500; transition-duration:400ms; }
#top .top-wrap .right section:hover .sub a { opacity:1; }



/* 상단 우측 메뉴버튼 */
#top .top-menu-btn { width:25px; height:25px; display:flex; justify-content:center; align-items: flex-end; flex-direction: column; cursor:pointer; }
#top .top-menu-btn div { background:#333; width:100%; height:2px; border-radius:2px; transition-duration:400ms; margin:3px 0; }
#top .top-menu-btn div:nth-child(2) { width:70%; }

#top .top-menu-btn:hover div { width:70%; }
#top .top-menu-btn:hover div:nth-child(2) { width:100%; }






@media (max-width: 1024px) {
    :root {
		--top-height:70px;
        --top-menu-height:40px;
    }

	.scrolled #top { top:calc(-1 * var(--top-height) - var(--top-menu-height)); }
	.scroll-up #top { top:calc(-1 * var(--top-height)); }

	#top .top-wrap { margin:0; height:var(--top-height); padding:0 var(--top-padding); }
	#top .top-wrap .logo { top:50%; height:40px; }

	#top .top-wrap .sns { --sns-size:25px; margin-left:-10px; }
	#top .top-wrap .sns a:after { background-size:19px; }

}


@media (max-width: 767px) {
	
	#top .top-wrap .logo {  width:300px; } 
	#top .top-wrap { justify-content:flex-end; }
	#top .top-wrap .txt { display:none; }

	#top .top-wrap .right section { margin-right:5px; }
    #top .top-wrap .right section span[class*="-btn"] { width:16px; height:16px; }

    #top .top-wrap .right section .sub { padding:0 15px; }
    #top .top-wrap .right section:hover .sub,
    #top .top-wrap .right section .sub:hover { padding:10px 15px; }

	#top .top-wrap .right .langs,
	#top .top-wrap .right .links { display:none; }


    #top .top-wrap .right .bgm i { font-size:16px; }

	#top .top-wrap .right .top-search .sub { position:fixed; left:0; top:0; right:0; transform:translateX(0); padding:10px 15px; z-index:999; border-bottom:1px solid #ddd; border-radius:0; transition-duration:600ms; }
	#top .top-wrap .right .top-search .sub:before { display:none; }

	#top .top-wrap .right .top-search:hover .sub,
	#top .top-wrap .right .top-search .sub:hover { max-height:0; opacity:0; visibility:hidden; }

	#top .top-wrap .top-search-box { opacity:0; }
	#top .top-wrap .top-search-box form { width:100%; }
    #top .top-wrap .top-search-box form .searchbox { height:40px; }
	#top .top-wrap .top-search-box form .btn { display:flex; justify-content:center; align-items:center; }
	#top .top-wrap .top-search-box form .btn i { line-height:0; }

	.on-searchbox #top .top-wrap .right .top-search .sub { max-height:var(--top-height); height:100%; opacity:1; visibility:visible; }
	.on-searchbox #top .top-wrap .top-search-box { opacity:1; transition-duration:300ms; }


    #top .top-menu-btn { width:20px; margin-left:5px; }
}

/********************************************************
■ Menu : 데스크톱 메뉴
********************************************************/
#menu { display: flex; align-items:center; }
#menu .nav { display:none; }
#menu .swiper { overflow:visible; }
#menu .swiper .li { position: relative; margin:0 15px; width:auto !important; }
#menu .swiper .li:hover { z-index:9; }
#menu .swiper .li .a { display:flex; justify-content:center; align-items:center; padding:0 20px; height:var(--top-menu-height); z-index:2; font-size: 1.2rem; color:#333; font-weight: 600; }
#menu .swiper:hover .li .a { color:#aaa; }
#menu .swiper:hover .li:hover .a { color:#000; }
#menu .swiper .li .a span { position:relative; }
#menu .swiper .li.on .a span:before { content:""; position:absolute; left:calc(50% - 10px); bottom:calc(100% + 3px); width:20px; height:3px; background:var(--main-color1); }

#menu .sub-wrap { position: absolute; opacity:0; visibility:hidden; border-radius:10px; box-shadow:0 0 10px rgba(0,0,0,.15); transition-duration:500ms; }
#menu .sub-wrap .sub-a { white-space: nowrap; }
#menu li:hover > .sub-wrap { opacity:1; visibility:visible; }

#menu .depth2 { top:100%; margin-top:20px; left:50%; transform:translateX(-50%); padding:15px 20px; background:#fff; }
#menu .depth2 > li { position:relative; }
#menu .depth2 > li > .sub-a { display: block; color: #666; padding: 10px; }
#menu .depth2 > li > .sub-a span { display: inline-block; border-bottom: 1px solid transparent; }
#menu li:hover > .depth2 { margin-top:-10px; }
#menu .depth2 > li:hover > .sub-a { color:var(--main-color1); }
#menu .depth2 > li:hover > .sub-a span { border-color:var(--main-color1); }


body.scrolled #menu .depth2 { margin-top:40px; }
body.scrolled #menu .swiper .li:hover .depth2 { margin-top:0; }


#menu .depth3 { left:calc(100% + 5px); top:-15px; min-width:120px; padding:15px; background:var(--main-color3); }
#menu .depth3 li { padding:5px; cursor:pointer; }
#menu .depth3 .sub-a { display:inline-block; font-size:1rem; color:#fff; border-bottom:1px solid transparent; opacity:.6; }
#menu li:hover > .depth3 { top:0; }
#menu .depth3 li:hover .sub-a { opacity:1; border-color:#fff; }


@media (max-width: 1200px) {
	#menu .swiper-wrapper { justify-content: space-between; }

	#menu .swiper .li { margin:0 10px; }
	#menu .swiper .li .a { padding:0 15px;  font-size: 1.125rem}
}

@media (max-width: 1024px) {
	#menu { background:rgba(120,120,120,.8); }
	#menu .nav { display:block; color:#fff; margin:0 10px; cursor:pointer; }
	#menu .nav.swiper-button-disabled { opacity:.5; }

	#menu .swiper { width:auto; overflow:hidden; }
	#menu .swiper .swiper-wrapper { justify-content: normal; }
	#menu .swiper .li .a { font-size:1rem; color:#fff; }

	#menu .swiper:hover .li:hover .a { color:#fff; }
    #menu .swiper .li.on .a span:before { bottom:100%; height:2px; }

	#menu .sub-wrap { display:none; }
}


@media (max-width: 767px) {
    #menu { padding:0; }
	#menu .swiper .li { margin:0 5px; }
	#menu .swiper .li .a { padding:0 10px; }
}
