header {
    height: 90px;
    border-bottom: 2px solid #bcbcbc;
    display: flex;
    align-items: center;
    z-index: 2;
    position: relative;
    
}
header .header_wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8rem;
}
.header_mo {
  display: none;
}

header img{
    width: 100px;
}
header h1{
    width: 35%;
    margin: 0 auto;
    padding: 15px;
}
header nav {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    height: 100%;
}
header nav .nav_menu{
    display: flex;
    flex-direction: row;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}
.nav_menu > li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
}
.nav_menu li {
    height: 100%;
}

.nav_menu  li span:last-child {
    border-right: none;
}
.nav_menu a {
    width: 140px;
    text-decoration: none;
    display: block;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 서브메뉴 기본 스타일 */

.submenu_wrap {
    display: none;
    /* display: flex; */
    position: absolute; 
    top: 101%; 
    left: 0; 
    width: 100%; 
    background: #fff;
    justify-content: center;
    text-align: center;
}

.submenu_wrap .submenu {
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 2;
}
.submenu li {
    width: 200px;
    border-right: 0;
    border-bottom: 1px solid #ddd;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 70px;
    box-sizing: unset;
    justify-content: center;
}
.submenu li:last-child {
    border-bottom: 0;
}
#wrap header ul .submenu li:hover  {
    background-color: #f98e48; 
}
.submenu a {
    display: block;
    text-decoration: none;
    text-align: center;
    border-bottom: 2px solid transparent;
    white-space: wrap;
    line-height: 1.3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav_menu .selected a {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#wrap header ul li span {
    font-size: 16px;
    font-weight: 600;
    border-right: .1rem solid #bcbcbc;
    text-align: center;
    width: 100%;
}
#wrap header ul li:last-child span {
    border-right: 0;
}
#wrap header ul li.selected  span {
    font-weight: bold; 
    color: #f98e48;
}
.submenu a:hover {
    color: #fff; 
    font-weight: 700;
    text-decoration: none; 
}
.back {
    position: fixed; 
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100% - 120px);
    background-color: rgba(0, 0, 0, 0.5); 
    display: none; 
    z-index: 1; 
}

.has-submenu:hover .submenu_wrap {
    display: flex; 
}

.has-submenu:hover + .back {
    display: block; 
}
.flex {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 60px auto ;
    gap: 30px;
    align-items: flex-start;
}

.btn_group {
    display: flex;
    flex-direction: column;
    background-color: #f5f6f8;
    width: 20%;
    border-radius: 15px;
}
.btn_group a{
    height: 20%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #e6e7e8;
    font-size: 18px;
    padding: 40px;
    line-height: 1.3;
}
.section_A .btn_group a:nth-child(1),
.section_B .btn_group a:nth-child(1),
.section_C .btn_group a:nth-child(1),
.section_D .btn_group a:nth-child(1),
.section_E .btn_group a:nth-child(1) {
    height: 20%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #e6e7e8;
    background-color: #f98e48;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    color: #fff;
}
.section_A1 .btn_group a:nth-child(2), 
.section_A2 .btn_group a:nth-child(3),
.section_A3-1 .btn_group a:nth-child(4),
.section_A3-2 .btn_group a:nth-child(4),
.section_B1 .btn_group a:nth-child(2), 
.section_B2 .btn_group a:nth-child(3),
.section_B3-1 .btn_group a:nth-child(4),
.section_B3-2 .btn_group a:nth-child(4),
.section_C1 .btn_group a:nth-child(2), 
.section_C2 .btn_group a:nth-child(3),
.section_C3-1 .btn_group a:nth-child(4),
.section_C3-2 .btn_group a:nth-child(4),
.section_D1 .btn_group a:nth-child(2), 
.section_D2 .btn_group a:nth-child(3),
.section_D3-1 .btn_group a:nth-child(4),
.section_D3-2 .btn_group a:nth-child(4),
.section_E1 .btn_group a:nth-child(2), 
.section_E2 .btn_group a:nth-child(3),
.section_E3-1 .btn_group a:nth-child(4),
.section_E3-2 .btn_group a:nth-child(4){
    height: 20%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #e6e7e8;
    background-color: #f98e48;
    color: #fff;
}
.section_A4-1 .btn_group a:nth-child(5),
.section_A4-2 .btn_group a:nth-child(5),
.section_A4-3 .btn_group a:nth-child(5),
.section_B4-1 .btn_group a:nth-child(5),
.section_B4-2 .btn_group a:nth-child(5),
.section_B4-3 .btn_group a:nth-child(5),
.section_C4-1 .btn_group a:nth-child(5),
.section_C4-2 .btn_group a:nth-child(5),
.section_C4-3 .btn_group a:nth-child(5),
.section_D4-1 .btn_group a:nth-child(5),
.section_D4-2 .btn_group a:nth-child(5),
.section_D4-3 .btn_group a:nth-child(5),
.section_E4-1 .btn_group a:nth-child(5),
.section_E4-2 .btn_group a:nth-child(5),
.section_E4-3 .btn_group a:nth-child(5)
 {
    height: 20%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #e6e7e8;
    background-color: #f98e48;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    color: #fff;
}
.btn_group a:last-child{
    border-bottom: 0;
}
.content1 {
    width: 80%;
}
.content1 .sub_title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}
.content1 .con {
    font-size: 18px;
    line-height: 1.3;
}
.content1 .con .point3,
.box_con .point3,
.section_C3-1 .box_con .point3,
.section_C3-2 .box_con .point3,
.section_C3-3 .box_con .point3,
.section_D3-1 .box_con .point3,
.section_D3-2 .box_con .point3,
.section_D3-3 .box_con .point3,
.section_E3-1 .box_con .point3,
.section_E3-2 .box_con .point3,
.section_E3-3 .box_con .point3{
    font-size: 18px;
    font-weight: 600;
}
.content1 .box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.content1 .custom_image {
    margin-bottom: 40px;
    width: 20%;
}
.content1 .box_title .point3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}
.content1 .box_title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}
.content1 .box_con {
    font-size: 18px;
    line-height: 1.3;
}
.section_A4-1 .box_con,
.section_A4-2 .box_con,
.section_A4-3 .box_con,
.section_B4-1 .box_con,
.section_B4-2 .box_con,
.section_B4-3 .box_con,
.section_C4-1 .box_con,
.section_C4-2 .box_con,
.section_C4-3 .box_con,
.section_D4-1 .box_con,
.section_D4-2 .box_con,
.section_D4-3 .box_con,
.section_E4-1 .box_con,
.section_E4-2 .box_con,
.section_E4-3 .box_con
 {
    border: 1px solid #c7c7c7;
    border-radius: 5px;
    padding: 20px;
}
.section_A4-1 .box_con .point3,
.section_A4-2 .box_con .point3,
.section_A4-3 .box_con .point3,
.section_B4-1 .box_con .point3,
.section_B4-2 .box_con .point3,
.section_B4-3 .box_con .point3,
.section_C4-1 .box_con .point3,
.section_C4-2 .box_con .point3,
.section_C4-3 .box_con .point3,
.section_D4-1 .box_con .point3,
.section_D4-2 .box_con .point3,
.section_D4-3 .box_con .point3,
.section_E4-1 .box_con .point3,
.section_E4-2 .box_con .point3,
.section_E4-3 .box_con .point3
 {
   font-size: 18px;
   color: #f98e48;
   font-weight: 600;
}
.content1 .top_p {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 30px;
}
.content1 .bottom_p {
    font-size: 18px;
    line-height: 1.3;
    margin-top: 30px;
}
.content1 .btn_group2 {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #c7c7c7;
    margin-bottom: 40px;
}
.content1 .btn_group2 a {
    border-right: 1px solid #c7c7c7;
    border-left: 1px solid #c7c7c7;
    border-top: 1px solid #c7c7c7;
    padding: 20px;
    font-size: 18px;
}
.content1 .btn_group2 a:nth-child(1) {
    border-right: 0;
}
.content1 .btn_group2 a:nth-child(3) {
    border-left: 0;
}
.section_A3-1 .content1 .btn_group2 a:nth-child(1),
.section_A3-2 .content1 .btn_group2 a:nth-child(2),
.section_A4-1 .content1 .btn_group2 a:nth-child(1),
.section_A4-2 .content1 .btn_group2 a:nth-child(2),
.section_A4-3 .content1 .btn_group2 a:nth-child(3),
.section_B3-1 .content1 .btn_group2 a:nth-child(1),
.section_B3-2 .content1 .btn_group2 a:nth-child(2),
.section_B4-1 .content1 .btn_group2 a:nth-child(1),
.section_B4-2 .content1 .btn_group2 a:nth-child(2),
.section_B4-3 .content1 .btn_group2 a:nth-child(3),
.section_C3-1 .content1 .btn_group2 a:nth-child(1),
.section_C3-2 .content1 .btn_group2 a:nth-child(2),
.section_C4-1 .content1 .btn_group2 a:nth-child(1),
.section_C4-2 .content1 .btn_group2 a:nth-child(2),
.section_C4-3 .content1 .btn_group2 a:nth-child(3),
.section_D3-1 .content1 .btn_group2 a:nth-child(1),
.section_D3-2 .content1 .btn_group2 a:nth-child(2),
.section_D4-1 .content1 .btn_group2 a:nth-child(1),
.section_D4-2 .content1 .btn_group2 a:nth-child(2),
.section_D4-3 .content1 .btn_group2 a:nth-child(3),
.section_E3-1 .content1 .btn_group2 a:nth-child(1),
.section_E3-2 .content1 .btn_group2 a:nth-child(2),
.section_E4-1 .content1 .btn_group2 a:nth-child(1),
.section_E4-2 .content1 .btn_group2 a:nth-child(2),
.section_E4-3 .content1 .btn_group2 a:nth-child(3){
    padding: 20px;
    font-size: 18px;
    background-color: #f98e48;
    color: #fff;
    border: none;
}

.top_button_wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.top_button {
    display: inline-block;
}
.top_button img{
    width: 60%;
}
.btn_wrap1 {
    text-align: center;
    margin: 0 auto;
    gap: 25px;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
    padding-bottom: 80px;
}
.btn_wrap2 {
    text-align: center;
  
    margin: 60px auto;
    display: flex;
    flex-direction: column;
    width: 1200px;
}
.btn_wrap1 .next {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    color: #fff;
    align-items: center;
    padding: 20px;
    width: 100%;
    font-size: 16px;
    border-top: 1px solid #c7c7c7;
    border-bottom: 1px solid #c7c7c7;
}
.btn_wrap2 .next {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    color: #fff;
    align-items: center;
    padding: 20px;
    width: 100%;
    font-size: 16px;
    border-top: 1px solid #e3e3e4;
    border-bottom: 1px solid #c7c7c7;
}
.btn_wrap1 .back5 {
    display: flex;
    justify-content: space-between;
    color: #fff;
    align-items: center;
    padding: 20px;
    width: 100%;
    font-size: 16px;
    border-top: 1px solid #c7c7c7;
    border-bottom: 1px solid #c7c7c7;
    background-color: #f5f6f8;
}
.btn_wrap2 .back5 {
    display: flex;
    justify-content: space-between;
    color: #fff;
    align-items: center;
    padding: 20px;
    width: 100%;
    font-size: 16px;
    border-top: 1px solid #c7c7c7;
    background-color: #f5f6f8;
}

.next .btn_left .s1, .back5 .btn_left .s1{
    padding-right: 15px;
    font-weight: 600;
}
.next .btn_left .s2, .back5 .btn_left .s2{
    margin-left: 15px;
    line-height: 1.3;
}
.s1, .s2 {
    font-size: 18px;
}
@media screen and (max-width: 767px) {
    header {
        display: none;
       }
    
       .header_mo {
        display: flex;
        justify-content: space-between;
        height: 6rem;
        border-bottom: 0;
        border-bottom: unset;
        padding: 1.5rem;
       }
    .flex {
        display: flex;
        flex-direction: column; /* 세로 방향으로 배치 */
        width: 90%;
        max-width: 100%;
        margin: 30px auto;
    }
    
    .btn_group {
        display: flex;
        flex-wrap: wrap; /* 버튼이 줄 바꿈 가능하도록 설정 */
        flex-direction: unset;
        width: unset;
        background-color: unset;
    }
    
    .btn_group a {
        flex: 1 0 30%; /* 각 버튼의 기본 크기를 30%로 설정 (3개 표시) */
        padding: 0;
        background-color: #f5f6f8;
        padding: 10px;
        border-right: 1px solid #e6e7e8;
        font-size: 16px;
    }
    .btn_group a:first-child {
        border-top-left-radius: 15px;
        border-top-right-radius: 0;
    }
    .btn_group a:last-child {
        border-bottom-right-radius: 15px;
    }
    .btn_group a:nth-child(n+4) {
        flex: 1 0 45%; /* 4번째 버튼부터는 너비를 45%로 설정 (2개 표시) */
    }
    .btn_group a:nth-child(1) {
        border-top-left-radius: 15px;
        border-top-right-radius: 0;
   }
    .btn_group a:nth-child(3) {
    border-top-right-radius: 15px;
    border-right: 0;
    }
    .btn_group a:nth-child(4) {
        border-bottom-left-radius: 15px;
        border-bottom: 0;
    }
    .btn_group a:nth-child(5) {
        border-bottom-right-radius: 15px;
        border-right: 0;
    }
    .section_A4-1 .btn_group a:nth-child(5),
    .section_A4-2 .btn_group a:nth-child(5),
    .section_A4-3 .btn_group a:nth-child(5),
    .section_B4-1 .btn_group a:nth-child(5),
    .section_B4-2 .btn_group a:nth-child(5),
    .section_B4-3 .btn_group a:nth-child(5),
    .section_C4-1 .btn_group a:nth-child(5),
    .section_C4-2 .btn_group a:nth-child(5),
    .section_C4-3 .btn_group a:nth-child(5),
    .section_D4-1 .btn_group a:nth-child(5),
    .section_D4-2 .btn_group a:nth-child(5),
    .section_D4-3 .btn_group a:nth-child(5),
    .section_E4-1 .btn_group a:nth-child(5),
    .section_E4-2 .btn_group a:nth-child(5),
    .section_E4-3 .btn_group a:nth-child(5)
    {
    border-bottom-left-radius: 0;
    }
    .section_A .btn_group a:nth-child(1),
    .section_C .btn_group a:nth-child(1),
    .section_D .btn_group a:nth-child(1),
    .section_E .btn_group a:nth-child(1){
        border-top-right-radius: 0;
    }
    .section_B .btn_group a:nth-child(1){
        border-top-right-radius: 0;
    }
    .content1 {
        width: 100%;
    }
    .content1 .btn_group2 a {
        text-align: center;
        line-height: 1.3;
        display: inline-flex;
        align-items: center;
    }
    .btn_wrap1 {
        text-align: center;
        margin: 0 auto;
        gap: 25px;
        display: flex;
        flex-direction: column;
        max-width: 100%;
        width: 90%;
        padding-bottom: 80px;
    }
    .btn_wrap2 {
        text-align: center;
        margin: 60px auto;
        display: flex;
        flex-direction: column;
        width: 90%;
    }
    .btn_wrap2 .next, .btn_wrap1 .next {
        padding: 20px 10px;
    }
    .btn_wrap2 .back5, .btn_wrap1 .back5 {
        padding: 20px 10px;
    }
    .next .btn_left .s2, .back5 .btn_left .s2 {
        margin-left: 0px;
    }
    .s1, .s2 {
        font-size: 14px;
    }
    .content1 .custom_image {
        width: 100%;
    }
    .top_button {
        display: inline-block;
        text-align: right;
    }
}