/*헤더 */
#header {
    transition: all 0.5s;
    background: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

/* 헤더-스크롤, 마우스오버 */
#header.header_scroll {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);
    max-height: 80px;
}

#header.over {
    background: rgba(255, 255, 255, 1);
}


/* 헤더 컨테이너 */
#head-mn {
    max-width: 1420px;
    width: 100%;
    margin: 0 auto;
}

#header .header_wrap{
    padding-top: 50px;
}

.header_wrap {
    transition: 0.5s all;
    display: flex;
    justify-content: center;
}

/* 헤더 컨테이너-스크롤, 마우스오버 */
#header.header_scroll .header_wrap {
    padding-top: 0;
}


/* 로고 */
.tlogo_wrap {
    width: 30%;
    position: relative;
}

.tlogo_active {
    display: none;
}

.tlogo h1,
.tlogo_active h1 {
    padding: 0px 0;
    transition: padding 0.5s;
    line-height: 72px;
}

/* 로고-스크롤, 마우스오버 */
#header.header_scroll .tlogo_active {
    display: inline-block;
}

#header.header_scroll .tlogo img {
    display: none;
}

#header.over .tlogo {
    display: none;
}

#header.over .tlogo_active {
    display: inline-block;
}

.header_scroll .tlogo h1,
.header_scroll .tlogo_active h1 {
    padding: 0;
}

/* gnb */
.container-mn {
    flex-grow: 1;
}

.main-nav>ul {
    display: flex;
    justify-content: center;
    text-align: center;
    height: 80px;
    align-items: center;
}

/* gnb-1depth */
.submenu {
    position: relative;
}

.main-nav ul>.submenu {
    flex-grow: 1;
    font-size: 19px;
    text-align: center;
}

.main-nav ul>.submenu>a {
    color: #fff;
    width: 100%;
    font-weight: 700;
    font-size: 19px;
    text-transform: uppercase;
}

.main-nav ul>.submenu:hover>a {
    color: #e9002c;
}

/* gnb-1depth-스크롤, 마우스오버 */
#header.header_scroll .main-nav ul>.submenu>a {
    color: #333;
}

#header.header_scroll .main-nav ul>.submenu:hover>a {
    color: #e9002c;
}

#header.over .main-nav ul>.submenu>a {
    color: #333;
}

#header.over .main-nav ul>.submenu:hover>a {
    color: #e9002c;
}

/* gnb-2depth */
.submenuul {
    display: none;
    position: absolute;
    top: 54px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: #fff;
    z-index: 999;
    transition: top 0.3s;
}

.submenuul a {
    padding: 5px 30px;
    display: block;
    font-size: 16px;
    border-top: 1px solid #ddd;
}

.submenuul a:hover {
    background: #e9002c;
    color: #fff;
}


/* gnb-2depth-스크롤, 마우스오버 */
.submenuul.show {
    display: block !important;
}


/* 모바일 */
.mob-btn {
    display: none;
    position: absolute;
    float: right;
    padding: 5px 7px;
    margin: 0px;
    background-color: transparent;
    cursor: pointer;
    right: 20px;
    top: 20px;
    z-index: 999;
    transition: top 0.5s;
}

.mob-btn span {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 1px;
    background: #fff;
}

.mob-btn span+span {
    margin-top: 5px;
}

/* 모바일-스크롤 */
#header.header_scroll .mob-btn span {
    background: #222;
}


/* 메뉴 버튼 */
.allmenu_button {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.6s all;
}

.menu-button {
    width: 1.8rem;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    z-index: 999;
    line-height: 80px;
    text-align: right;
}

.menu-button span {
    width: 1.5rem;
    height: 3px;
    float: right;
    background-color: #fff;
    display: block;
    transition: all 0.6s ease;
    margin-bottom: 5px;
}



#header.header_scroll .allmenu_button span, #header.over .allmenu_button span{
    
    background-color: #222;

}

/* 메뉴 버튼 활성화 */
.menu-button.active span:nth-of-type(1) {
    transform: translateY(0.55rem) rotate(-45deg);
}

.menu-button.active span:nth-of-type(2) {
    transform: translateX(1.5rem);
    opacity: 0;
}

.menu-button.active span:nth-of-type(3) {
    transform: translateY(-0.55rem) rotate(45deg);
}


/* 오버레이 */
.menu-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: grid;
    grid-template-columns: 3fr 4fr;
    color: #333;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay-container {
    max-width: 1600px;
    margin-top: 80px;
    text-align: left;
    width: 100%;
}

.over1>ul {
    display: flex;
}

.over1>ul>li {
    font-size: 40px;
    color: #222;
    padding: 20px 0;
    font-weight: 700;
    flex-grow: 1;
}

.over1>ul>li>a {
    display: block;
    margin-bottom: 20px;
}

.over1>ul>li>ul>li {
    padding: 5px 0;
}

.over1>ul>li>ul>li a {
    font-size: 20px;
    color: #666;
}

.over1>ul>li>ul>li a:hover {
    color: #0256b8;
}

.over2 ul {
    margin-top: 50px;
    display: flex;
    padding: 30px;
    border: 1px solid #ccc;
    justify-content: center;
}

.over2 ul li {
    text-align: center;
    flex-grow: 1;
    font-size: 18px;
}

.over2 ul li i {
    display: inline-block;
    margin-right: 8px;
}

.over2 ul li strong {
    margin-right: 8px;
}

/* 오버레이-활성화 */
.menu-overlay.open {
    opacity: 1;
    visibility: visible;
    transition: 0.3s all;
}

/* 오버레이-활성화 메뉴 버튼 */
.menu-overlay.open {
    transform: translateX(0);
    padding-top: 80px;
}

.menu-overlay.open .menu-overlay__image img {
    animation: fadeIn 0.8s ease-in-out 0.6s forwards;
}

.menu-overlay.open .nav {
    animation: fadeIn 0.8s ease-in-out 0.2s forwards;
}


/* 헤더 사이드바 */
.header-sidebar {
    position: fixed;
    height: 100vh;
    width: 120px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 1px solid #ccc;
    right: 0;
    top: 0;
    display: flex;
    flex-flow: column;
}

.sidebar-content{
    flex-grow: 1;
    justify-self: flex-end;
    display: flex;
    flex-flow: column;
    justify-content: flex-end;
    align-items: center;
}

.sidebar-content ul li{
    writing-mode: tb;
    margin-bottom: 50px;
    color: #222;
    font-weight: 700;
}

.sidebar-content ul li i{
    margin-bottom: 5px;
}

.sidebar-content .sidebar-button{
    display: flex;
    writing-mode: tb;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    margin:30px auto 80px;
    background: #121212;
    color: #fff;
    flex-flow: column-reverse;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    transition: 0.3s all;
}

.sidebar-content .sidebar-button i{
    height: 100%;
    display: block;
    background: #121212;
    color: #fff;
    position: absolute;
    text-align: center;
    left: -50px;
    border-radius: 10px 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    padding: 0 10px;
    border-right: 1px solid #414141;
}



/* 스크롤 다운 */
.scroll-down{
    position: fixed;
    right: 12.2%;
    bottom: 32%;
    z-index: 999;
    transition: 0.5s all;
}

.scroll-down p{
    animation-name: scrollArrow; animation-duration: 1s;transform: translateY(0px);animation-iteration-count: infinite;
    display: flex;
    align-items: center;
    max-width: 1420px;
    color: #222;
    font-weight: 900;
    transition: 0.5s all;

}

.scroll-down p i{
    margin-right: 10px;
    font-size: 30px;
}

.scroll-down.scroll-active{
    left: 2%;
    transform: rotate(-90deg);
    bottom: 43%;
    right: unset;
}

.scroll-down.scroll-active p{
    animation-name: scrollArrow2;
}


@keyframes scrollArrow{
    0% {transform: translateY(0px);}
    50% {transform: translateY(10px);}
    100% {transform: translateY(0px);}
}

@keyframes scrollArrow2{
    0% {transform: translateX(0px);}
    50% {transform: translateX(10px);}
    100% {transform: translateX(0px);}
}

/* 스크롤 다운 - 스크롤 */





/* 반응형 */

@media screen and (max-width: 1440px) {

    #head-mn{
        padding-right: 120px !important;
    }

    .tlogo_wrap{
        width: 20%;
    }

    .container{
        max-width: 1200px;
    }
}

@media screen and (max-width: 1200px) {

    #header .header_wrap{
        padding-top: 0;
    }

    #head-mn{
      padding-right: 0 !important;  
    }
    
    .header-sidebar{
        display: none;
    }
   
}


@media screen and (max-width: 1024px) {

    .mob-btn{
        display: block;
    }

    .allmenu_button{
        display: none;
    }

    .desk-hide {
        display: none;
    }

    .header_scroll .main-nav ul>.submenu>a {
        line-height: 1.8;
    }

    .show .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1001;
    }

    .tlogo,
    .tlogo_active {
        width: 70%;
    }

    .tlogo img,
    .tlogo_active img {
        max-width: 100% !important;
        padding-left: 10px;
    }
}

@media screen and (max-width: 575px) {
    #head-mn {
        padding: 0 5px;
    }

    .tlogo_wrap{
        width: 40%;
    }

    .tlogo,
    .tlogo_active {
        width: 90%;
    }
}



@media screen and (max-width: 1600px) {
    .main-nav ul>.submenu>a {
        padding: 0 20px;
        display: block;
    }

    #head-mn {
        padding: 0 15px;
    }
}

@media screen and (max-width: 1024px) {
    .main-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        right: -260px;
        background: #f1f1f1;
        z-index: 99999;
        width: 260px;
        height: 100%;
        transition: all ease 0.2s;
        overflow-y: auto;
    }

    .show .main-nav {
        right: 0;
    }

    .main-nav>ul {
        display: block;
    }

    .main-nav ul>.submenu>a {
        padding: 10px 0 10px 30px;
        text-align: left;
        border-bottom: 1px solid #ddd;
        line-height: 1.8;
        pointer-events: none;
    }

    .submenuul a {
        padding: 5px 20px 5px 35px;
        text-align: left;
    }

    .main-nav ul li.submenu i {
        position: absolute;
        width: 100%;
        height: 39px;
        top: 0;
        right: 20px;
        cursor: pointer;
        -webkit-transition: all ease 0.5s;
        transition: all ease 0.5s;
        line-height: 45px;
    }

    .main-nav ul li.submenu i:after {
        content: url(m-meic.png);
        height: 0;
        width: 0;
        position: absolute;
        top: 0;
        right: 20px;
        z-index: 10;
        line-height: 45px;
    }

    .submenuul {
        position: static;
        transform: translateX(0);
    }

    .main-nav ul>.submenu:last-child .submenuul {
        transform: translateX(0px);
    }
}