header {
    width: 100%;
    height: 70px;
    margin: 0 auto;
    box-sizing: border-box;
    position: fixed;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    padding: 0 35px;
    font-family: 'NanumSquare', sans-serif;
    border-bottom: 1px solid #ccc;
    transition: all 0.3s ease;
    background-color:rgba(0,0,0,0.3);
}

header.shrink {
    background-color: rgba(255, 255, 255, 1);
    transition: 0.2s ease-in-out;
    box-shadow: 1px 1px 7px #999;
}

header:hover {
    background-color: rgba(255, 255, 255, 1);
    transition: 0.2s ease-in-out;
    box-shadow: 1px 1px 7px #999;
}

header h1 {
    width: 236px;
    height: 100%;
}

header h1 a {
    width: 100%;
    height: 100%;
    display: inline-block;
}

header:hover h1 a {
    background-image: url(../images/logo/yt-logo-blue.png);
    background-repeat: no-repeat;
    background-position: 0 15px;
}

header h1 a img {
    margin-top: 15px;
}

header:hover h1 a img {
    display: none;
}



#logo {
    visibility: visible;
    opacity: 1;
    transition: 0.3s ease-in-out;
}

#logo.hide {
    visibility: hidden;
    opacity: 0;
}




header nav {
    width: 939px;
    min-width: 785px;
    height: 100%;
}

header nav ul.gnb {
    min-width: 785px;
    height: 100%;
}

header nav ul.gnb > li {
    float: left;
    width: 20%;
    min-width: 157px;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

header nav ul.gnb > li:nth-child(3) {
    min-width: 157px;
}


header nav ul.gnb > li > div {
    display: inline-block;
    width: 100%;
    height: 0%;
    position: absolute;
    left: 0;
    top: 0;
    /*background-color:#2b60d9;*/
}

header nav ul.gnb > li:hover div {
    background-color: #2b60d9;
    transition: all 0.5s ease-out;
    height: 470px;
}


/*w*/

header nav ul.gnb > li div a {
    color:
        /*#123a94*/
        #fff;
    font-size: 20px;
    height: 15%;
    width: 100%;
    display: inline-block;
    text-align: center;
    line-height: 75px;
    font-family: 'NanumSquare', sans-serif;
    transition: all 0.5s ease-out;
    font-weight: 400;
}

header.shrink nav ul.gnb > li div a {
    color: #123a94;
}

header:hover nav ul.gnb > li div a {
    color: #123a94;
}

header nav ul.gnb > li div > a:first-child {
    font-weight: 600;
}

header.shrink nav ul.gnb > li div a:first-child {
    font-weight: 600;
}

header nav ul.gnb > li > div:hover a {
    color: #fff;
}

header div ul.gnb_sub {
    display: inline-block;
    width: 100%;
    height: 400px;
    position: absolute;
    left: 0;
    top: 0;
    padding-top: 50%;
    display: none;
    font-size: 18px;
}

header div ul.gnb_sub > li {
    display: inline-block;
    width: 100%;
    height: 1.5rem;
    position: relative;
}

header div ul.gnb_sub > li:hover a {
    text-decoration: underline;
}

header div ul.gnb_sub:hover a {
    color: #fff;
}

header div ul.gnb_sub > li > a {
    color:
        /*#123a94*/
        #0d5795;
    font-size: 16px;
    /*    width:100%;*/
    display: inline-block;
    text-align: center;
    line-height: 3;
    letter-spacing: -1px;
}


header nav ul li:nth-child(3) div ul li:nth-child(6) a {
    letter-spacing: -3.5px;
}

header nav .sub-back {
    display: inline-block;
    width: 100vw;
    height: 0;
    position: absolute;
    left: 0;
    z-index: -1;
    transition: all 0.5s ease;
    background-color: rgba(0, 0, 0, 0.6);
}


header.shrink nav .sub-back {
    background-color: #fff;
    box-shadow: 1px 1px 5px #999;
}

header:hover nav .sub-back {
    background-color: #fff;
    box-shadow: 1px 1px 5px #999;
}

header nav:hover .sub-back {
    height: 400px;
}


/*quick-menu*/
header .quick_menu {
    display: inline-block;
    width: 40px;
    height: 30px;
    margin-top: 20px;
    margin-left: 10px;
}

header .quick_menu div {
    width: 40px;
    height: 5px;
    background-image: linear-gradient(to right, #fff, #fff, transparent);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

header.shrink .quick_menu div {
    width: 100%;
    height: 5px;
    background-image: linear-gradient(to right, #0d5795, #0d5795, transparent);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

header:hover .quick_menu div {
    width: 100%;
    height: 5px;
    background-image: linear-gradient(to right, #0d5795, #0d5795, transparent);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

header .quick_menu:hover div:nth-child(2) {
    width: 25px;
}

.quick_menu_inner {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 18px;
    display: none;
    background-color: #fff;
    background-image: url(../images/bg/bg-menu.png);
    background-size: cover;
    background-position: center;
    z-index: 9999;
}

/*
.quick_menu_inner {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    font-size: 18px;
    display: none;
}
*/

.quick_menu_inner > ul {
    display: inline-block;
    margin: auto;
    /*width: 100%;*/
    width: 1100px;
    /*margin-top: 0%;*/
    margin-top: 200px;
    display: flex;
    justify-content: space-between;
    padding:50px 80px;
    background-color:#fff;
    border-radius: 5px;
    /*background-image:linear-gradient(to bottom, #fff, #fff, #fff, #fff, #fff, #fff, #fff, #fff,  transparent);*/
}

.quick_menu_inner > ul > li {
    display: inline-block;
    width: 20%;
    font-weight: 600;
    color: #555;
    padding-top: 100px;
    position: relative;
    letter-spacing: -0.02rem;
    margin-top:10px;
}

.quick_menu_inner > ul > li:before {
    content: '';
    display: inline-block;
    height: 3px;
    width: 3px;
    background-color: #ccc;
    position: absolute;
    top: 135px;
    /*bottom:0; */
    left: 15px;
    transition: all 0.3s ease;
}

.quick_menu_inner > ul > li:first-child {
    border-left: none;
}

.quick_menu_inner > ul > li:last-child {
    width: 1%
}

.quick_menu_inner > ul > li:last-child {
    padding-left: 1%;
    /*margin-top:-5%;*/
}

.quick_menu_inner > ul > li:last-child a {
    color: #555;
    font-size: 24px;
}


.quick_menu_inner > ul > li > i {
    float: right;
    padding-right: 20px;

}

.quick_menu_inner > ul > li > span {
    display: inline-block;
    width: 8%;
}

.quick_menu_inner > ul > li:hover {
    /*color: #0048a7;*/
    color: #000;
    font-weight: 900;
}

.quick_menu_inner > ul > li:last-child::before {
    background-color: transparent;
}


.quick_menu_inner > ul > li:hover:before {
    width: 80px;
    background-color: #000;
}

.quick_menu_inner > ul > li:nth-child(3) .quick_menu_sub li:nth-child(6){
    letter-spacing: -3px;
}



.quick_menu_inner .quick_menu_sub {
    /*width: 95%;*/
    height: 85%;
    margin-top: 3%;
    /*border-top: 1px solid #000;*/
}

.quick_menu_inner .quick_menu_sub > li {
    display: inline-block;
    width: 100%;
    height: 10%;
    line-height: 2;
    font-weight: 400;
    margin-left: 3%;
}

.quick_menu_inner .quick_menu_sub > li:nth-child(1) {
    display: inline-block;
    width: 98%;
    /*border-top: 1px solid #999999;*/
}

.quick_menu_inner .quick_menu_sub > li:first-child {
    margin-top: 10px;
}

.quick_menu_inner .quick_menu_sub > li > a {
    display: inline-block;
    width: 90%;
    height: 100%;
    color: #222;
    margin-left: 5%;
    position: relative;
    line-height: 3.5;
    font-size: 20px;
}

/*.quick_menu_inner .quick_menu_sub > li > a:before {
    content: '';
    position: absolute;
    left: -5%;
    bottom: -3px;
    height: 100%;
    width: 0;
    background-color: rgba(0, 120, 255, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
}*/

.quick_menu_inner .quick_menu_sub > li > a:hover {
    color: #000;
    font-weight: 900;
}

/*.quick_menu_inner .quick_menu_sub > li > a:hover:before {
    width: 108%;
    height: 100%;
    opacity: 1;
}*/

.btn_close {
    position: absolute;
    right: calc((100% - 1100px)/2);
    top: 220px;
    z-index: 100;
    font-size: 28px;
    color: #0d5795;
    background-image: url(../images/icon/close.png);
    width: 20px;
    height: 20px;
    display: inline-block;
}


/*tablet*/
@media screen and (min-width:1190px) and (max-width:1340px) {

    header {
        width: 100%;
        height: 70px;
        margin: 0 auto;
        box-sizing: border-box;
        position: fixed;
        display: flex;
        justify-content: space-between;
        z-index: 10;
        padding: 0 20px;
        font-family: 'NanumSquare', sans-serif;
        border-bottom: 1px solid #fff;
        transition: all 0.3s ease;
    }

    header.shrink {
        background-color: rgba(255, 255, 255, 1);
        transition: 0.2s ease-in-out;
        box-shadow: 1px 1px 7px #999;
    }

    header:hover {
        background-color: rgba(255, 255, 255, 1);
        transition: 0.2s ease-in-out;
        box-shadow: 1px 1px 7px #999;
    }

    header h1 {
        width: 236px;
        height: 100%;
    }

    header h1 a {
        width: 100%;
        height: 100%;
        display: inline-block;
    }

    header:hover h1 a {
        background-image: url(../images/logo/yt-logo-blue.png);
        background-repeat: no-repeat;
        background-position: 0 15px;
    }

    header h1 a img {
        margin-top: 15px;
    }

    header:hover h1 a img {
        display: none;
    }



    #logo {
        visibility: visible;
        opacity: 1;
        transition: 0.3s ease-in-out;
    }

    #logo.hide {
        visibility: hidden;
        opacity: 0;
    }




    header nav {
        width: calc(100% - 236px - 50px - 40px);
        min-width: auto;
        height: 100%;
    }

    header nav ul.gnb {
        min-width: 840px;
        height: 100%;
    }

    header nav ul.gnb > li {
        float: left;
        width: 20%;
        min-width: auto;
        height: 100%;
        box-sizing: border-box;
        position: relative;
    }

    header nav ul.gnb > li:nth-child(3) {
        min-width: 157px;
    }


    header nav ul.gnb > li > div {
        display: inline-block;
        width: 100%;
        height: 0%;
        position: absolute;
        left: 0;
        top: 0;
        /*background-color:#2b60d9;*/
    }

    header nav ul.gnb > li:hover div {
        background-color: #2b60d9;
        transition: all 0.5s ease-out;
        height: 470px;
    }


    /*w*/

    header nav ul.gnb > li div a {
        color:
            /*#123a94*/
            #fff;
        font-size: 18px;
        height: 15%;
        width: 100%;
        display: inline-block;
        text-align: center;
        line-height: 75px;
        font-family: 'NanumSquare', sans-serif;
        transition: all 0.5s ease-out;
        font-weight: 400;
    }

    header.shrink nav ul.gnb > li div a {
        color: #123a94;
    }

    header:hover nav ul.gnb > li div a {
        color: #123a94;
    }

    header nav ul.gnb > li div > a:first-child {
        font-weight: 400;
    }

    header.shrink nav ul.gnb > li div a:first-child {
        font-weight: 600;
    }

    header nav ul.gnb > li > div:hover a {
        color: #fff;
    }

    header div ul.gnb_sub {
        display: inline-block;
        width: 100%;
        height: 400px;
        position: absolute;
        left: 0;
        top: 0;
        padding-top: 50%;
        font-size: 18px;
        display: none;
    }

    header div ul.gnb_sub > li {
        display: inline-block;
        width: 100%;
        height: 1.5rem;
        position: relative;
    }

    header div ul.gnb_sub > li:hover a {
        text-decoration: underline;
    }

    header div ul.gnb_sub:hover a {
        color: #fff;
    }

    header div ul.gnb_sub > li > a {
        color:
            /*#123a94*/
            #0d5795;
        font-size: 16px;
        /*    width:100%;*/
        display: inline-block;
        text-align: center;
        line-height: 3;
        letter-spacing: -1px;
    }


    header nav ul li:nth-child(3) div ul li:nth-child(3) a {
        letter-spacing: -3.5px;
    }

    header nav .sub-back {
        display: inline-block;
        width: 100vw;
        height: 0;
        position: absolute;
        left: 0;
        z-index: -1;
        transition: all 0.5s ease;
        background-color: rgba(0, 0, 0, 0.6);
    }


    header.shrink nav .sub-back {
        background-color: #fff;
        box-shadow: 1px 1px 5px #999;
    }

    header:hover nav .sub-back {
        background-color: #fff;
        box-shadow: 1px 1px 5px #999;
    }

    header nav:hover .sub-back {
        height: 400px;
    }


    /*quick-menu*/
    header .quick_menu {
        display: inline-block;
        width: 40px;
        height: 30px;
        margin-top: 20px;
        margin-left: 10px;
    }

    header .quick_menu div {
        width: 40px;
        height: 5px;
        background-image: linear-gradient(to right, #fff, #fff, transparent);
        margin-bottom: 8px;
        transition: all 0.3s ease;
    }

    header.shrink .quick_menu div {
        width: 100%;
        height: 5px;
        background-image: linear-gradient(to right, #0d5795, #0d5795, transparent);
        margin-bottom: 8px;
        transition: all 0.3s ease;
    }

    header:hover .quick_menu div {
        width: 100%;
        height: 5px;
        background-image: linear-gradient(to right, #0d5795, #0d5795, transparent);
        margin-bottom: 8px;
        transition: all 0.3s ease;
    }

    header .quick_menu:hover div:nth-child(2) {
        width: 25px;
    }

    .quick_menu_inner {
        width: 100%;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.5);
        font-size: 18px;
        /*display: none;*/
        /*background-color: #fff;*/
        /*background-image: url(../images/bg/bg-menu.png);*/
        background-size: cover;
        background-position: center;
        z-index: 9999;
    }

    .quick_menu_inner > ul {
        display: inline-block;
        margin: auto;
        /*width: 100%;*/
        width: 800px;
        /*margin-top: 0%;*/
        margin-top: 130px;
        display: flex;
        justify-content: space-between;
         padding:30px 50px;
        background-color:#fff;
        /*margin-top: 0;*/
    }

    .quick_menu_inner > ul > li {
        display: inline-block;
        width: 20%;
        font-weight: 600;
        color: #555;
        padding-top: 10%;
        position: relative;
        letter-spacing: -0.02rem;
        /*border:1px solid red;*/
    }

    .quick_menu_inner > ul > li:before {
        content: '';
        display: inline-block;
        height: 3px;
        width: 3px;
        background-color: #ccc;
        position: absolute;
        top: 105px;
        /*bottom:0; */
        left: 15px;
        transition: all 0.3s ease;
    }

    .quick_menu_inner > ul > li:first-child {
        border-left: none;
    }

    .quick_menu_inner > ul > li:last-child {
        width: 1%
    }

    .quick_menu_inner > ul > li:last-child {
        padding-left: 1%;
        /*margin-top:-5%;*/
    }

    .quick_menu_inner > ul > li:last-child a {
        color: #555;
        font-size: 24px;
    }


    .quick_menu_inner > ul > li > i {
        float: right;
        padding-right: 20px;

    }

    .quick_menu_inner > ul > li > span {
        display: inline-block;
        width: 8%;
    }

    .quick_menu_inner > ul > li:hover {
        /*color: #0048a7;*/
        color: #000;
        font-weight: 900;
    }

    .quick_menu_inner > ul > li:last-child::before {
        background-color: transparent;
    }


    .quick_menu_inner > ul > li:hover:before {
        width: 60px;
        background-color: #000;
    }
    
    .quick_menu_inner > ul > li:nth-child(3) .quick_menu_sub li:nth-child(6){
    letter-spacing: -3px;
    }

    .quick_menu_inner .quick_menu_sub {
        /*width: 95%;*/
        height: 85%;
        margin-top: 3%;
        /*border-top: 1px solid #000;*/
    }

    .quick_menu_inner .quick_menu_sub > li {
        display: inline-block;
        width: 100%;
        height: 10%;
        line-height: 2;
        font-weight: 400;
        margin-left: 3%;
    }

    .quick_menu_inner .quick_menu_sub > li:nth-child(1) {
        display: inline-block;
        width: 98%;
        /*border-top: 1px solid #999999;*/
    }

    .quick_menu_inner .quick_menu_sub > li:first-child {
        margin-top: 10px;
    }

    .quick_menu_inner .quick_menu_sub > li > a {
        display: inline-block;
        width: 90%;
        height: 100%;
        color: #222;
        margin-left: 5%;
        position: relative;
        line-height: 3.5;
        font-size: 18px;
    }


    .quick_menu_inner .quick_menu_sub > li > a:hover {
        color: #000;
        font-weight: 900;
    }


    .btn_close {
        position: absolute;
        right: calc((100% - 800px)/2);
        top: 170px;
        z-index: 100;
        font-size: 28px;
        color: #0d5795;
        background-image: url(../images/icon/close.png);
        width: 20px;
        height: 20px;
        display: inline-block;
    }


}



/*mobile*/
@media screen and (min-width:250px) and (max-width:1189px) {

    header {
        position: fixed;
        height: 60px;
        padding: 0 20px;
    }

    header h1 a {
        width: 100%;
        height: 100%;
        margin-top: 7px;
        background-image: url(../images/logo/yt-logo_onlyCi-white.png);
        background-repeat: no-repeat;
        background-position: top left;
    }
    header.shrink h1 a {
        width: 100%;
        height: 100%;
        margin-top: 3px;
        background-image: url(../images/logo/yt-logo-onlyCi-blue.png);
        background-repeat: no-repeat;
        background-position: top left;
    }
    header:hover h1 a {
        width: 100%;
        height: 100%;
        margin-top: 3px;
        background-image: url(../images/logo/yt-logo-onlyCi-blue.png);
        background-repeat: no-repeat;
        background-position: top left;
    }

    header h1 a > img {
        display: none;
    }

    header nav {
        display: none;
    }

    header .quick_menu {
        width: 30px;
        margin-top: 17px;
    }

    header .quick_menu div {
        width: 100%;
        height: 4px;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }
    .quick_menu_inner {
        width: 100%;
        height: 100vh;
        right: 0;
        left: auto;
        font-size: 0.9rem;
        padding-bottom:50px;
        background-color:rgba(0,0,0,0.5);
        background-image: none;
    }

    .quick_menu_inner > ul {
        display: inline-block;
        width: 70%;
        position:absolute;
        right:0;
        top:0;
        height:100%;
        margin-top:0;
        background-color:#fff;
        font-size:16px;
        padding:50px 20px;
    }

    .quick_menu_inner > ul > li {
        display: inline-block;
        width: 100%;
        height:4%;
        border-left: none;
        padding-top:20px;
        margin-left:15px;
        border-bottom:none;
    }
    .quick_menu_inner > ul > li:before {
        display: none;
    }
    
    .quick_menu_inner > ul > li:hover {
        cursor:pointer;
    }
    
    .quick_menu_inner > ul > li > i {
        float:left;
        margin-left:30px;
    }
    
    .quick_menu_inner > ul > li:nth-child(3) .quick_menu_sub li:nth-child(6){
        letter-spacing: 0;
    }
    
    
    .quick_menu_inner .quick_menu_sub {
        width: 100%;
        border-top:1px solid #eee;
    }

    .quick_menu_inner .quick_menu_sub > li{
        margin-top: 0;
        padding-left:0;
        display: none;
        height:auto;
    }
    .quick_menu_inner .quick_menu_sub > li:hover{
        
    }
    .quick_menu_inner .quick_menu_sub > li:nth-child(1) {
    display: inline-block;
    width: 98%;
    /*border-top: 1px solid rgb(0, 120, 255);*/
}
    
    .quick_menu_inner ul li.menu_active .quick_menu_sub li{
        display: block;
        
    }
    .quick_menu_inner .quick_menu_sub > li:first-child {
        margin-top: 0;
        display: none;
        border-top:none
    }
    .quick_menu_inner > ul > li:last-child {
        display: none;
}
    .quick_menu_inner .quick_menu_sub > li > a:hover{
        color: #fff; 
        font-weight:600;
        background-color: rgba(0,0,0,0.5);
    }
    .quick_menu_inner .quick_menu_sub > li > a{
        font-size:14px;
        width:100%; 
        padding-left:65px;
    }
    .quick_menu_inner .quick_menu_sub > li > a:before {
        display: none;
    }
    
    .btn_close {
        top:20px;
        right:15px;
    }
}
