/* ================================
   MOBILE MENU BUTTON
================================ */

#btn-menu-m,
#btn-menu-m span {
    display: inline-block;
    transition: all 0.4s;
    box-sizing: border-box;
}

#btn-menu-m {
    position: fixed;
    width: 30px;
    height: 40px;
    top: 10px;
    right: 15px;
    z-index: 120;
    display: none;
}

#btn-menu-m span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

#btn-menu-m span:nth-of-type(1) {
    top: 8px;
}

#btn-menu-m span:nth-of-type(2) {
    top: 16px;
    width: 30px;
}

#btn-menu-m span:nth-of-type(3) {
    bottom: 13px;
}

#btn-menu-m.active span {
    background-color: #fff;
    height: 1px;
}

#btn-menu-m.active span:nth-of-type(1) {
    transform: translateY(16px) rotate(-45deg);
    top: 0;
}

#btn-menu-m.active span:nth-of-type(2) {
    opacity: 0;
}

#btn-menu-m.active span:nth-of-type(3) {
    transform: translateY(-23px) rotate(45deg);
    bottom: 0;
}


/* ================================
   HEADER
   로고 / 메뉴 1040px / 로그인박스
================================ */

#header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #cdd974;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    z-index: 100;
}

.scrolled #header-wrap {
    background: #cdd974;
    border-bottom: 0;
}

#header {
    width: 100%;
    height: 80px;
    display: grid;
    grid-template-columns: minmax(222px, 1fr) 1040px minmax(180px, 1fr);
    align-items: center;
}

.header-logo {
    height: 80px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 28px;
    box-sizing: border-box;
}

.header-logo a {
    display: block;
    width: 190px;
    height: 80px;
    background-image: url(../img/logo.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

.header-menu {
    width: 1040px;
    height: 80px;
    position: relative;
}

/* 메뉴 라인 */
#header .lnb-line {
    width: 1040px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

#lnb {
    width: 1040px;
    height: 80px;
    margin: 0 auto;
}

#lnb {
    width: 1040px;
    height: 80px;
    margin: 0 auto;
}
#lnb * {
    box-sizing: border-box;
}
#lnb > ul {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding: 0;
}

#lnb > ul::after {
    display: none;
}

#lnb > ul > li {
    position: relative;
    flex: 1 1 0;
    height: 80px;
    line-height: 80px;
    margin: 0;
    padding: 0;
    float: none;
    text-align: center;
    white-space: nowrap;
}

#lnb > ul > li > a {
    display: block;
    width: 100%;
    height: 80px;
    line-height: 80px;
    padding: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #29448d;
}

#lnb > ul > li > a:hover {
    opacity: 1;
}

/* 서브메뉴 */
#lnb > ul > li > ul {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    min-width: 100%;
    display: none;
    margin: 0;
    padding: 0;
    background: #40605f;
    z-index: 20;
}

#lnb > ul li.on > ul {
    display: block;
}

#lnb > ul > li > ul ul {
    position: absolute;
    top: 0;
    left: 100%;
    width: 160px;
    display: none;
    margin: 0;
    padding: 0;
    background: #40605f;
}

#lnb > ul > li li {
    width: 100%;
    height: 48px;
    line-height: 48px;
    margin: 0;
    padding: 0;
    background: #40605f;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}
.header-login {
    height: 80px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding-left: 28px;
    box-sizing: border-box;
    white-space: nowrap;
}

.header-login a {
    display: inline-block;
    line-height: 1;
    padding: 8px 8px;
    color: #0f5507;
    font-size: 12px;
}
#lnb > ul > li li:first-child {
    border-top: 0;
}

#lnb > ul > li li > a {
    display: block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    padding: 0 8px;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

#lnb > ul > li li > a:hover {
    background: #859f92;
    color: #fff;
}

#lnb .arrow {
    display: none;
}

/* 로그인 박스 */
#login-box {
    width: 100%;
    height: 80px;
    line-height: 80px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding-left: 126px;
    box-sizing: border-box;
    white-space: nowrap;
}

#login-box a {
    display: inline-block;
    height: auto;
    line-height: 1;
    padding: 8px 8px;
    text-align: center;
    color: #0f5507;
    font-size: 12px;
}

#login-box2 {
    display: none;
}

#login-box3 {
    height: 50px;
    text-align: center;
    margin-bottom: 10px;
}

#login-box3 a {
    display: inline-block;
    padding: 0 10px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: #0f5507;
    font-size: 12px;
}

.lnb-line #menu-ctl {
    display: none;
}


/* ================================
   MOBILE SIDE MENU
================================ */

#m-lnb-wrapper {
    position: fixed;
    top: 0;
    right: -400px;
    z-index: 110;
    max-width: 400px;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background-color: #000;
    opacity: 0.9;
    box-sizing: border-box;
    padding-top: 60px;
    padding-left: 2em;
    padding-right: 1em;
    transition: all 0.5s;
}

#m-lnb-wrapper.on {
    right: 0;
}

#m-lnb > ul {
    border-bottom: 1px solid #333;
    font-size: 14px;
}

#m-lnb > ul li {
    position: relative;
}

#m-lnb > ul li > a {
    color: #fff;
}

#m-lnb > ul > li {
    line-height: 55px;
    border-bottom: 1px solid #333;
}

#m-lnb > ul > li:nth-last-child(1) {
    border-bottom: 0;
}

#m-lnb > ul > li > a {
    display: inline-block;
    padding: 0 20px;
    font-size: 16px;
}

#m-lnb > ul > li > span {
    position: absolute;
    right: 63px;
    top: 0;
    width: 40px;
    height: 50px;
    font-size: 14px;
    text-align: center;
    transition: all 0.4s;
    color: tomato;
    cursor: pointer;
}

#m-lnb > ul > li.on > span {
    transform: rotate(180deg);
}

#m-lnb > ul > li ul {
    display: none;
    line-height: 40px;
}

#m-lnb > ul > li li {
    border-top: 1px solid #474747;
    background-color: #222;
}

#m-lnb > ul > li li > a {
    display: inline-block;
    padding: 3px 15px 3px 30px;
    width: 100%;
}

#m-lnb > ul > li li > span {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    font-size: 14px;
    text-align: center;
    transition: all 0.4s;
    color: tomato;
    cursor: pointer;
}

#m-lnb > ul > li li.on > span {
    transform: rotate(180deg);
}

#m-lnb > ul > li li li {
    border-top: 1px solid #959595;
    background-color: #777;
}

#m-lnb > ul > li li li > a {
    display: inline-block;
    padding: 0 10px 0 40px;
}


/* ================================
   SELECT NAV
================================ */

#container-box {
    width: 100%;
    position: relative;
}

.select-nav-wrapper {
    position: relative;
    z-index: 3;
    background-color: #fff;
    max-width: 1300px;
    margin: -71px auto;
    border-bottom: 1px solid #ddd;
    display: none;
}

.select-nav-wrapper::after,
.select-nav::after {
    content: "";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

.select-nav-wrapper .home {
    width: 60px;
    height: 70px;
    text-align: center;
    font-size: 30px;
    display: inline-block;
    line-height: 65px;
    border-right: 1px solid #ddd;
    float: left;
}

.select-nav-wrapper .link {
    background-color: lightcoral;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 30px;
    display: inline-block;
    line-height: 50px;
    float: right;
}

.select-nav {
    background-color: #fee;
    display: inline-block;
    float: left;
}

.select-nav .select {
    float: left;
    width: 220px;
    height: 70px;
    position: relative;
    box-sizing: border-box;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    margin-left: -1px;
}

.select-nav .select:first-child {
    border: 0;
}

.select-nav .select .down {
    position: absolute;
    width: 25px;
    height: 25px;
    display: inline-block;
    top: 20px;
    right: 5px;
    line-height: 25px;
    text-align: center;
    color: #ddd;
    font-size: 20px;
    transition: all 0.5s;
}

.select-nav .select.on .down {
    transform: rotate(180deg);
}

.select-nav .select.d1 {
    margin-left: 0;
}

.select-nav .select button {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border: 0;
    text-align: left;
    padding-left: 25px;
    outline: none;
    font-size: 15px;
}

.select-nav .select button .t1 {
    font-weight: 500;
}

.select-nav .d3 button {
    font-weight: bold;
}

.select-nav .select > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: -1px;
    width: 100%;
    border: 1px solid #ddd;
    background-color: #fff;
    box-sizing: content-box;
}

.select-nav .select ul li {
    min-height: 55px;
    line-height: 55px;
    padding-left: 25px;
    border-bottom: 1px solid #ddd;
}

.select-nav .select ul li a {
    color: #555;
    display: block;
    font-size: 14px;
}

.select-nav .select ul li a:hover {
    color: #000;
}

.select-nav .select ul ul {
    display: none;
}

.select-nav .select ul li li {
    border-top: 1px solid #ddd;
    border-bottom: 0;
}

.select-nav .select ul li:nth-last-child(1) {
    border-bottom: 0;
}

.d2 .t2 {
    display: none;
}


/* ================================
   RESPONSIVE
================================ */

@media screen and (max-width: 1500px) {
    #header {
        grid-template-columns: minmax(160px, 1fr) 920px minmax(160px, 1fr);
    }

    .logo {
        padding-right: 20px;
    }

    .logo a {
        width: 160px;
    }

    #header .lnb-line,
    #lnb {
        width: 920px;
    }

    #lnb > ul > li > a {
        font-size: 15px;
    }

    #login-box {
        padding-left: 20px;
    }

    #login-box a {
        font-size: 11px;
        padding: 7px 5px;
    }
}

@media screen and (max-width: 1313px) {
    #header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .header-logo {
        padding: 0;
        justify-content: flex-start;
    }

    .header-logo a {
        width: 170px;
    }

    .header-menu,
    .header-login {
        display: none;
    }

    #btn-menu-m {
        display: inline-block;
    }
}

@media screen and (max-width: 768px) {
    #header-wrap,
    #header {
        height: 60px;
    }
    .header-logo,
    .header-logo a {
        height: 60px;
    }

    .header-logo a {
        width: 150px;
    }
}
    .logo a {
        height: 60px;
        width: 150px;
    }

    .select-nav-wrapper .home,
    .select-nav-wrapper .link,
    .select-nav .select.d3 {
        display: none;
    }

    .select-nav {
        width: 100%;
    }

    .select-nav .select {
        width: 50%;
        border-right: 0;
    }

    .select-nav .select ul ul {
        display: block;
    }

    .d2 .t2 {
        display: inline;
    }

    .d2 .t2 .fa {
        color: #555;
        font-weight: bold;
    }
}
