@charset "utf-8";

.row {
    /* background: #ccc; */
    max-width: 1280px;
    margin: 0 auto;
}
header {
    height: 130px;
    border-bottom: 1px solid #9e9e9e;
}
header .row {
    display: flex;
    justify-content: space-between;
}
#main {flex-grow: 1;}

/* 헤더---------로고 #logo ////////// */
#logo {
    line-height: 130px;
    margin-left: 10px;
    margin-right: 10px;
}

#logo a img {vertical-align: middle;}

/* 헤더---------최상단 .top ////////// */
.top ul {
    display: flex;
    justify-content: end;
    align-items: center;
    margin: 15px 0 37px;
}
.top ul li {padding-left: 1.5%;}
.top ul li a {
    color: #474747;
}
.top ul li:hover a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.top ul li:nth-child(4) a {
    font-weight: 500;
}
.top ul li:nth-child(5) a {
    margin-right: 10px;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    display: block;
    background: #051766;
    border-radius: 20px;
    width: 100px;
    height: 30px;
    color: #fff;
    line-height: 28px;
    text-align: center;
}
.top ul li:nth-child(5) a:hover {
    text-decoration: none;
    background: #082399;
}
.top ul li a img {
    vertical-align: middle;
    padding: 0 5px;
}
.top ul li:nth-child(5) a img {vertical-align: sub;}

.top form {
    width: 170px;
    height: 18px;
    border: 1px solid #051766;
    border-radius: 20px;
    background: #fff;
    padding: 5px;
    display: flex;
}
#search {
    width: calc(100% - 25px);
    border-radius: 20px;
    border: none;
    outline: none;
    text-indent: 5px;
}

/* 헤더---------메인메뉴 .main_navi ////////// */
.main_navi {
    margin-right: 10px;
    position: relative;
    z-index: 1;
}

.main_navi > ul {
    display: flex;
    justify-content: space-between;
}
.main_navi > ul > li {
    flex-grow: 1;
    height: 48px;
    text-align: center;
}
.main_navi > ul > li > a {
    display: inline-block;
    width: 100px;
    height: 48px;
    line-height: 48px;
    font-size: 18px;
    color: #222;
}
.main_navi > ul > li > a span {
    display: block;
    line-height: 45px;
}
.main_navi > ul > li:hover > a {
    display: inline-block;
    color: #222;
    font-weight: 700;
    box-sizing: border-box;
}
.main_navi > ul > li:hover > a span {
    border-bottom: 3px solid #051766;
}
.main_navi .middle_navi {
    display: none;
    /* width: 100%; */
    position: absolute;
    top: 48px;
    background: #fff;
    box-shadow: 1px 1px 3px #636363;
    border-radius: 0 0 15px 15px;
}
.main_navi .posi {
    right: 0px;
}
.main_navi .middle_navi > ul {
    display: flex;
    padding: 15px 0;
}
/* 서브네비 별 영역 */
.main_navi .num1 {
    width: 660px;
}
.main_navi .num2 {
    width: 495px;
}
.main_navi .num3 {
    width: 825px;
}
.main_navi .num4 {
    width: 165px;
}

.main_navi .num1 > li {
    width: 25%;
}
.main_navi .num2 > li {
    width: 33.3%;
}
.main_navi .num3 > li {
    width: 20%;
}
.main_navi .num4 > li {
    width: 100%;
}

.main_navi .middle_navi > ul > li {
    border-right: 1px solid #ccc;
    padding-left: 15px;
}
.main_navi .middle_navi > ul > li:last-child {
    border-right: none;
}
.main_navi .middle_navi > ul > li > span {
    display: block;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    padding-bottom: 15px;
}
.main_navi .middle_navi .sub_navi ul li {
    padding-bottom: 15px;
    text-align: left;
}
.main_navi .middle_navi .sub_navi ul li a {
    display: block;
    font-size: 15px;
    color: #636363;
}
.main_navi .middle_navi .sub_navi ul li:hover a {
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    color: #082399;
}

/* mobile 스타일 (pc에서 보이거나 안보이는 영역) ////////////// */
#mb_navi {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: -100%; /* 닫힘:-100% */
    background: rgba(255, 255, 255, 0.6);
    z-index: 1001;
    overflow-y: auto;
    background: #fff;
}

/* 반응형 /////////////////////////////// */

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

    /* 반응형_헤더용 */
    header {
        height: 60px;
        border-bottom: 1px solid #9e9e9e;
    }
    #logo {
        line-height: 60px;
        margin-left: 10px;
    }
    #logo img {
        width: 160px;
    }    
    #mb_top_btn {
        display: flex;
        align-items: center;
        margin-right: 10px;
    }
    #mb_top_btn span {
        font-size: 30px;
        color: #474747;
        cursor: pointer;
        margin-left: 10px;
    }
    #login a {
        display: flex;
        align-items: center;
    }
    #login a p {
        font-weight: 500;
        font-size: 16px;
        color: #474747;
    }

    .mb_search {
        background: #051766;
        height: 60px;
        overflow: hidden;
    }
    .mb_search form {
        margin: 8px auto;
        width: 80%;
        height: 30px;
        border: 1px solid #051766;
        border-radius: 20px;
        background: #fff;
        opacity: 0.7;
        padding: 5px;
        display: flex;
    }
    #m_search {
        width: calc(100% - 40px);
        border-radius: 20px;
        border: none;
        outline: none;
        text-indent: 5px;
    }
    #mb_top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        background: #fff;
    }
    .mb_home {
        padding-left: 20px;
    }
    .mb_right {
        display: flex;
        align-items: center;
    }
    .mb_lan {
        display: flex;
        cursor: pointer;
        padding: 0 30px;

    }
    .mb_lan img {
        width: 20px;
        height: 20px;
        filter: drop-shadow(0 0 1px);
    }
    .mb_lan p {
        margin-left: 5px;
        color: #474747;
    }
    .mb_close {
        padding-right: 20px;
        cursor: pointer;
    }
    .mb_close span {
        color: #474747;
        font-size: 35px;
    }

    /* 반응형_헤더 메뉴용 */
    #main {
        display: none;
    }
    #mb_navi .mb_navi_wrap {
        position: relative;
        height: calc(100% - 120px);
    }
    #mb_navi .mb_navi_wrap > ul {
        width: 30%;
        height: 100%;
        background: #051766;
    }
    #mb_navi .mb_navi_wrap > ul > li > a {
        display: block;
        height: 60px;
        line-height: 60px;
        color: #fff;
        font-size: 18px;
        font-weight: 500;
        text-align: center;
    }
    #mb_navi .mb_navi_wrap > ul > li.on > a {
        display: block;
        height: 60px;
        background: #fff;
        color: #000;
        font-size: 18px;
        font-weight: 500;
        text-align: center;
    }
    #mb_navi .middle_navi {
        position: absolute;
        top: 0;
        right: 0;
        width: 70%;
        height: 100%;
    }
    #mb_navi .middle_navi > ul > li > span {
        height: 59px;
        line-height: 59px;
        text-align: left;
        text-indent: 10px;
        font-size: 16px;
        font-weight: 600;
        background: #fff;
        border-bottom: 1px solid #ccc;
        display: block;
        cursor: pointer;
        background: url(../img/main/up_down.png) no-repeat 100% 5px;
    }
    #mb_navi .middle_navi > ul > li.on > span {
        background-position-y: -50px;
    }
    #mb_navi .mb_navi_wrap > ul > li .middle_navi {
        display: none;
    }
    #mb_navi .mb_navi_wrap > ul > li.on .middle_navi {
        display: block;
    }

    #mb_navi .sub_navi {
        display: none;
    }
    #mb_navi .sub_navi ul {
        border-bottom: 1px solid #ccc;
        padding: 15px 30px;
    }
    #mb_navi .sub_navi ul li a {
        display: block;
        line-height: 30px;
        text-align: left;
        font-size: 16px;
        font-weight: 500;
        color: #474747;
        margin-bottom: 10px;
    }
    #mb_navi .sub_navi ul li a:hover {
        text-decoration: underline;
        text-underline-offset: 2px;
        font-weight: 600;
        color: #082399;
    }
} /* 모바일용: 0부터 960px까지 */

@media screen and (max-width:500px) {
    #login a p {
        display: none;
    }
}

@media screen and (min-width:961px) {
    #mb_top_btn {
        display: none;
    }
} /* PC용: 961px부터 */