/* color */
.u_skip {
   position: relative;
}

.u_skip a {
   position: absolute;
   top: -30px;
   left: 0;
   width: 138px;
   border: 1px solid #4ec53d;
   background: #333;
   text-align: center;
}

.u_skip a:active,
.u_skip a:focus {
   top: 0;
   z-index: 1000;
}

.u_skip span {
   display: inline-block;
   padding: 2px 6px 0 0;
   color: #fff;
   letter-spacing: -1px;
   font-size: 13px;
   line-height: 26px;
}

button,
input[type='button'] {
   margin: 0;
   padding: 0;
   border: none;
   background: none;
   font: inherit;
   font-size: 1em;
}

/************************************************/
/******************** 메뉴 S ********************/
/************************************************/
#hd_wrapper {
   display: block;
   position: fixed;
   height: 100px;
   left: 0;
   top: 0;
   width: 100%;
   z-index: 1000;
   background: transparent;
   border-bottom: 1px solid #ddd;
}
.on #hd_wrapper,
.fixed #hd_wrapper {
   background: #ffffff
}

/* 모바일 메뉴가 열려 있는 동안은 투명도 없이 항상 불투명 */
body.menu-open #hd_wrapper {
   background: #121212;
}

/* 헤더는 스크롤해도 항상 투명 유지, 마우스 오버 시에만 검은 배경으로 전환 (hjlite.com/kr 참고) */
#hd.on #hd_wrapper {
   background: #ffffff;
   /* border-bottom: 1px solid #787a7c; */
   border-bottom: 1px solid #dee2e680;
}

#hd_wrapper .inner {
   display: flex;
   align-items: center;
   height: 100%;
}

#lnb {
   margin-left: 180px;
   margin-right: auto;
   display: none;
   height: 100%;
   align-items: center;
}

#logo {
   width: 238px;
   height: 48px;
   flex-shrink: 0;
   display: flex;
   align-items: center;
   background: url('../images/logo_top.png') no-repeat left center;
   cursor: pointer;
}

.on #logo,
.fixed #logo {
   background: url('../images/logo_color.png') no-repeat left center;
}


.menu_all_pc {
   color: #ffffff;
}

.on .menu_all_pc,
.fixed .menu_all_pc {
   color: #212529;
}

#gnb_1dul {
   display: flex;
   height: 100%;
}

#gnb_1dul>li {
   position: relative;
   z-index: 999;
}

#gnb_1dul>li>a {
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 800;
   font-size: 1.25rem;
   color: #fff;
   height: 100px;
   width: 180px;
}
#hd.on #gnb_1dul>li>a,
.fixed #gnb_1dul>li>a {
   color: #212529;
}

/* 현재 보고 있는 섹션의 서브메뉴 배경(menu.php의 a_menu_on과 짝) */
#gnb_1dul>li>a.a_menu_on + .submenu {
   background-color: #e57373;
}

/* 탑메뉴 마우스 오버 시 나오는 풀다운(메가) 메뉴: 헤더 전체 폭으로 슬라이드 다운 */
#lnb .submenu {
   position: absolute;
   top: 100px;
   left: 0;
   width: 100%;
   text-align: center;
   padding: 0.5rem 0;
   z-index: 99 !important;
   height: 330px;
   display: none;
}

#lnb .submenu li {
   margin-top: 1.5rem;
   list-style: none;
}

#lnb .submenu a {
   display: inline-block;
   font-size: 18px;
   height: 100%;
   line-height: 18px;
}

/* depth3 (예: 사회복지프로그램 하위 항목) */
#lnb .submenu .submenu2 {
   list-style: none;
   padding: 0;
   margin: 0.5rem 0 0;
}
#lnb .submenu .submenu2 li {
   margin-top: 0.5rem;
}
#lnb .submenu .submenu2 a {
   font-size: 14px;
   height: auto;
}
.lnb_bg {
   left: 0;
   position: absolute;
   width: 100%;
   top: 100px;
   height: 330px;
   display: none;
   background: #ffffff;
}

.lnb_bg .inner {
   position: relative;
   height: 100%;
}

/* 버튼 영역 S : 전체메뉴(사이트맵) 버튼 */
#btn_area {
   display: none;
}
.aside {
   display: none;
   color: #ffffff;
   font-weight: 500;
}

.on .aside,
.fixed .aside {
   color: #212129;
   font-weight: 500;
}

#btn_area a i {
   font-size: 2rem;
   font-weight: 700;
   color: #ffffff;
   vertical-align: middle;
}
.on #btn_area a i,
.fixed #btn_area a i {
   color: #212529;
}
.btn-menu2 {
   height: 32px;
   width: 32px;
   background-image: url('../images/btn_navw.png');
   background-repeat: no-repeat;
   background-position: center center;
}
@media (max-width: 1370px) {
   .btn-menu2 {
      background-image: url('/img/btn_navb.png');
      display: block;
   }
}
@media (min-width: 1371px) {
   #lnb {
      display: flex;
   }
   .btn-menu2 {
      display: none;
   }
   #btn_area {
      display: block;
      width: 32px;
   }
}
@media (min-width: 1700px) {
   .aside {
      display: block;
   }
}

/* 버튼 영역 E */
a.a_smenu:link,
.fixed a.a_smenu:link {
   color: #212529;
   font-weight: 500;
}

a.a_smenu:visited,
.fixed a.a_smenu:visited {
   color: #212529;
   font-weight: 500;
}

a.a_smenu:hover,
.fixed a.a_smenu:hover {
   color: #fffefe;
   font-weight: 900;
}

a.a_smenu:active,
.fixed a.a_smenu:active {
   color: #fffefe;
   font-weight: 900;
}

a.a_smenu_on:link,
.fixed a.a_smenu_on:link {
   color: #fffefe !important;
   font-weight: 500;
}

a.a_smenu_on:visited,
.fixed a.a_smenu_on:visited {
   color: #fffefe !important;
   font-weight: 500;
}

a.a_smenu_on:hover,
.fixed a.a_smenu_on:hover {
   color: #fffefe !important;
   font-weight: 900;
}
a.a_smenu_on:hover::after,
.fixed a.a_smenu_on:hover::after {
   color: #fffefe !important;
   font-weight: 900;
   content: '';
   display: block;
   margin: 3px auto 0;
   width: 100%;
   height: 2px;
   background: #fff;
}

a.a_smenu_on:active,
.fixed a.a_smenu_on:active {
   color: #fffefe !important;
   font-weight: 900;
}
/* 메뉴 펼쳤을 경우 */
#gnb_1dul>li>a:hover {
   color: var(--bs-main-bg-color);
}

.on #gnb_1dul>li>a.a_menu_on {
   background-color: var(--bs-main-bg-color);
   color: #ffffff !important;
   border-bottom: 2px solid #dee2e680;
}
.on #gnb_1dul > li > a {
   color: #212529;
   font-weight: 700;
   width: 184px;
}
.on #gnb_1dul > li > a.a_menu_on,
.fixed .on #gnb_1dul > li > a.a_menu_on {
   background-color: var(--bs-main-bg-color);
}
.on #gnb_1dul > li > a.a_menu:link,
.fixed .on #gnb_1dul > li > a.a_menu:link {
   color: #212529;
}
.on #gnb_1dul > li > a.a_menu:visited,
.fixed .on #gnb_1dul > li > a.a_menu:visited {
   color: #212529;
}
.on #gnb_1dul > li > a.a_menu:hover,
.fixed .on #gnb_1dul > li > a.a_menu:hover {
   color: #fff;
}
.on #gnb_1dul > li > a.a_menu:active,
.fixed .on #gnb_1dul > li > a.a_menu:active {
   color: #212529;
}
.on #gnb_1dul > li > a.a_menu_on:link,
.fixed .on #gnb_1dul > li > a.a_menu_on:link {
   color: #fff !important;
}
.on #gnb_1dul > li > a.a_menu_on:visited,
.fixed .on #gnb_1dul > li > a.a_menu_on:visited {
   color: #fff !important;
}
.on #gnb_1dul > li > a.a_menu_on:hover,
.fixed .on #gnb_1dul > li > a.a_menu_on:hover {
   color: #fff !important;
}
.on #gnb_1dul > li > a.a_menu_on:active,
.fixed .on #gnb_1dul > li > a.a_menu_on:active {
   color: #fff !important;
}

.allmenu {
   position: fixed;
   width: 100%;
   z-index: 999;
   background-color: #fff;
   right: 0;
   display: none;
   top: 96px;
}

.menu-sel_m {
   border-bottom: 1px solid #ddd;
   position: relative;
   height: 96px;
}
.menu-sel_m a {
   float: left;
   position: relative;
   top: 30px;
   left: 20px;
}
.gnb_m {
   border-top: 1px solid #dee2e6;
   width: 100%;
   padding: 0;
}

.gnb_m > li {
   border-bottom: 1px solid #dee2e6;
}

.gnb_m > li > a {
   font-weight: 700;
}

.gnb_m > li > a:after {
   background: url('../images/menu_on.png') right center no-repeat;
   background-size: 20px;
   content: '';
   position: absolute;
   width: 20px;
   height: 20px;
   right: 29px;
}

.gnb_m > li.opend > a:after {
   background-image: url('../images/menu_off.png');
}
.gnb_m > li.ex > a:after {
   background: none;
}

.gnb_m a {
   display: block;
}

.gnb_m .submenu {
   background: #f7f7f7;
   display: none;
}

.gnb_m .submenu a {
   padding: 0.5em 1em;
}

.gnb_m .submenu2 {
   list-style: none;
   margin: 0;
   padding: 0;
   background: #eeeeee;
}
.gnb_m .submenu2 a {
   padding-left: 2em;
}

.gnb_m .submenu,
.gnb_m > li > a {
   padding: 15px 20px;
}


/* 언어, 전체메뉴 S */
.btn_area {
   display: flex;
   width: 150px;
}

@media (max-width: 576px) {
   .btn_area {
      width: 32px;
   }
}

.dropdown-toggle::after {
   color: #fff;
}

.on .dropdown-toggle::after,
.fixed .dropdown-toggle::after {
   color: #212529;
}

/************************************************/
/******************** 메뉴 E ********************/
/************************************************/

/************************************************/
/**************** PC 전체 메뉴 S ****************/
/************************************************/
#gnb_all {
   position: fixed;
   width: 90vw;
   height: 75vh;
   z-index: 2000; /* #hd_wrapper(1000)보다 위에 오도록 */
   background-color: rgba(255, 255, 255, 1);
   top: 50%;
   left: 50%;
   padding: 1em;
   overflow-x: hidden;
   overflow-y: scroll;
   display: none;
   -webkit-box-sizing: border-box;
   transform: translate(-50%, -50%);
   box-sizing: border-box;
   overflow: hidden;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.65);
   max-width: 90%;
   max-height: 600px;
}
#gnb_all .gnb_al_ul:after {
   display: block;
   visibility: hidden;
   clear: both;
   content: '';
}
#gnb_all .gnb_al_ul {
   width: 100%;
   position: relative;
   top: 49px;
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   height: 100%;
   overflow-y: auto;
   justify-content: space-between;
   align-content: flex-start;
   align-items: flex-start;
}
.gnb_all_back {
   position: fixed;
   width: 100vw;
   height: 100vh;
   background-color: rgba(0, 0, 0, 0.8);
   z-index: 1999; /* #gnb_all(2000) 바로 아래 배경 */
   top: 0;
}

#gnb_all .gnb_al_li {
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
}
#gnb_all .gnb_al_ul .gnb_al_li {
   flex-basis: max-content;
   flex-shrink: 0;
   flex-grow: 1;
   padding: 5px 10px;
}

#gnb_all .gnb_al_li .gnb_al_a {
   border-radius: 5px;
   background-color: rgba(255, 255, 255, 0.75);
   position: relative;
   border: 1px solid var(--bs-main-bg-color);
}
#gnb_all .gnb_al_li .gnb_al_a .gnb_img {
   display: none;
   width: 100%;
}
#gnb_all .gnb_al_li .gnb_al_a .gnb_img > img {
   display: block;
   max-width: 184px;
   width: 100%;
   height: auto;
   margin: 0 auto;
}
#gnb_all .gnb_al_li .gnb_al_a {
   font-size: 1.05em;
   display: block;
   position: relative;
   margin-bottom: 10px;
   font-weight: 400;
   color: #fff;
   padding: 0.6rem 0.5rem;
   background-color: var(--bs-main-bg-color);
}
#gnb_all .gnb_al_li .gnb_al_a .gnb_subject {
   font-size: 1.1rem;
   z-index: 1;
   width: 100%;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
   text-align: center;
   letter-spacing: -0.1em;
   display: block;
}
#gnb_all .gnb_al_li li {
   padding-left: 10px;
   line-height: 2em;
   border-bottom: 1px solid #ddd;
}
#gnb_all .gnb_al_li li i {
   color: #fff;
}
#gnb_all .gnb_al_li li a {
   color: #444;
   display: block;
   text-align: left;
   font-size: 1rem;
}
#gnb_all .gnb_al_li li a:hover,
#gnb_all .gnb_al_li li a:focus {
   color: var(--bs-main-bg-color);
}
#gnb_all .gnb_close_btn {
   position: fixed;
   top: 0;
   right: 0px;
   background-color: transparent;
   display: block;
   width: 60px;
   height: 60px;
   overflow: hidden;
   padding: 0;
   line-height: 60px;
}
#gnb_all .gnb_close_btn > i {
   font-size: 2rem;
   color: #000;
   display: inline-block;
   font-weight: 700;
   width: 32px;
   height: 32px;
   line-height: 32px;
   padding: 0;
   vertical-align: top;
   margin: 0;
   position: relative;
   top: 14px;
   right: 14px;
}
#gnb_all .gnb_al_sub {
   position: relative;
}
#gnb_all .gnb_al_sub li {
   position: relative;
}
#gnb_all .gnb_al_sub .treeview-menu {
   display: none;
}
#gnb_all .gnb_al_sub .treeview > a {
   position: relative;
}
#gnb_all .gnb_al_sub .treeview > a:after {
   display: block;
   content: '\f3d0';
   position: absolute;
   top: 50%;
   right: 10px;
   -webkit-transform: translate(0, -50%);
   -ms-transform: translate(0, -50%);
   transform: translate(0, -50%);
   font-family: 'Ionicons';
   font-size: 0.8rem;
}
#gnb_all .gnb_al_sub .treeview.menu-open > a:after {
   content: '\f3d8';
}
#gnb_all .gnb_al_sub2 {
   padding-left: 15px;
   background: #f7f7f7;
}
.treeview-menu li {
   background-color: #eeeeee;
}
/************************************************/
/**************** PC 전체 메뉴 E ****************/
/************************************************/

/* =========================================================
   모바일 메뉴 디자인 수정
   - 기존 PC 메뉴/기존 스타일은 그대로 유지
   - 1370px 이하에서만 적용
   ========================================================= */
@media (max-width: 1370px) {

    .allmenu {
        top: 100px;
        left: 0;
        width: 100%;
        height: calc(100vh - 100px);
        background: #fff;
        overflow: hidden;
    }

    /* 1depth + 2depth를 좌우 2단 구성 */
    .gnb_m {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        margin-top: 20px;
        padding: 0;
        border-top: 1px solid #ddd;
        box-sizing: border-box;
        overflow: hidden;
        background-color: #f7f7f7;
    }

    /* 왼쪽 1depth */
    .gnb_m > li {
        width: 38%;
        height: auto;
        margin: 0;
        padding: 0;
        border: 0;
        background: #f7f7f7;
        list-style: none;
    }

    .gnb_m > li > .mobile-depth1 {
        appearance: none;
        -webkit-appearance: none;
        border: 0;
        margin: 0;
        background: transparent;
        text-align: left;
        font-family: inherit;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 72px;
        padding: 0 25px;
        border-bottom: 1px solid #e5e5e5;
        box-sizing: border-box;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.35;
        color: #222;
    }

    .gnb_m > li.active > .mobile-depth1 {
        background: #fff;
        color: #e57373;
    }

    .gnb_m > li.active > .mobile-depth1::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 3px;
        height: 100%;
        background: #e57373;
    }

    /* 오른쪽 2depth */
    .gnb_m > li > .submenu {
        position: absolute;
        top: 0;
        right: 0;
        width: 62%;
        height: 100%;
        margin: 0;
        padding: 0 30px;
        box-sizing: border-box;
        background: #fff;
        display: none;
        list-style: none;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .gnb_m > li.active > .submenu {
        display: block;
    }

    .gnb_m .submenu > li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #ddd;
        list-style: none;
    }

    .gnb_m .submenu > li > a {
        display: flex;
        align-items: center;
        min-height: 70px;
        padding: 0 5px;
        box-sizing: border-box;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.4;
        color: #555;
    }

    .gnb_m .submenu > li > a:hover,
    .gnb_m .submenu > li > a:focus {
        color: #e57373;
    }

    /* 3depth */
    .gnb_m .submenu2 {
        margin: 0;
        padding: 0 0 14px;
        background: #fff;
        list-style: none;
    }

    .gnb_m .submenu2 li {
        margin: 0;
        padding: 0;
        border: 0;
        list-style: none;
    }

    .gnb_m .submenu2 a {
        display: block;
        padding: 7px 5px 7px 18px;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.4;
        color: #888;
    }

    .gnb_m .submenu2 a::before {
        content: '—';
        margin-right: 8px;
        color: #ccc;
    }

}

/* 작은 모바일 화면에서는 좌우 폭과 글자 크기를 조금 조정 */
@media (max-width: 576px) {
    .allmenu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .gnb_m > li {
        width: 40%;
    }

    .gnb_m > li > .submenu {
        width: 60%;
        padding: 0 18px;
    }

    .gnb_m > li > .mobile-depth1 {
        min-height: 62px;
        padding: 0 16px;
        font-size: 17px;
    }

    .gnb_m .submenu > li > a {
        min-height: 62px;
        font-size: 16px;
    }

    .gnb_m .submenu2 a {
        font-size: 14px;
    }
}
