header {
    display: flex;
    justify-content: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(14, 105, 171, 0.8);
    transition: 0.3s;
}

header .center_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #52646e;
    position: relative;
}

/* logo_wrap */
header .logo_wrap a {
   
    max-width: 130px;
    display: flex;
    align-items: center;
}

header .logo_wrap a img {
    width: 100%;
    
}

/* menu_wrap */
header .menu_wrap {
    width: 100%;
}

ul.main_menu {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0px 20px;
}

ul.main_menu>li>a {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    padding: 20px 5px;
    font-weight: 700;
    font-size: 20px;
    transition: 0.2s;
}

ul.main_menu>li>a:hover {
    transition: 0.2s;
    font-size: 22px;
    font-weight: 700;
}

ul.sub_menu>li>a {
    color: #000;
    font-size: 18px;
    display: block;
    width: 100%;
    height: 100%;
    padding: 20px 10px;
}

ul.sub_menu>li:not(:last-child)>a {
    border-bottom: 1px solid #fff;
}

ul.sub_menu>li>a:hover {
    font-weight: 700;
    font-size: 20px;
    transition: 0.2s;
}

.login_btn a {
    padding: 40px 0px 40px 10px;
}

.login_btn img {
    height: 20px;
}

.menu_open_btn,
.menu_close_btn {
    display: none;
    margin-left: 20px;
    padding: 40px 0px 40px 10px;
    display: flex;
    align-items: center;
}y

.menu_open_btn:hover,
.menu_close_btn:hover {
    cursor: pointer;
}

.menu_open_btn img,
.menu_close_btn img {
    height: 20px;
}

body.menu_open {
    overflow: hidden;
    /* 배경 스크롤 방지 */
}


@media (min-width:1201px) {

    body.menu_open header {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        z-index: 999;
    }

    .menu_open_btn,
    .menu_close_btn {
        display: none !important;
    }

    ul.sub_menu {
        background-color: rgba(255, 255, 255, 0.7);
        width: fit-content;
        position: absolute;
        margin-bottom: 10%;
        padding: 0px 1%;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        pointer-events: none;
    }

    ul.main_menu>li:hover>ul.sub_menu {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
        border-radius: 5px;
    }

}

@media (max-width:1200px) {

    body.menu_open header {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        z-index: 999;
    }

    header .center_inner {
        position: relative;
    }

    header .logo_wrap.open {
        position: absolute;
        top: 40px;
    }

    header .menu_wrap {
        display: block;
        width: 100%;
    }

    .menu_wrap nav {
        overflow: hidden;
        max-height: 0;
        padding: 0;
        margin: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .menu_wrap nav.open {
        max-height: 9000px;
        /* 예상되는 최대 높이 */
        padding: 100px 0px;
        border-radius: 5px;
    }

    .menu_open_btn {
        display: flex;
    }

    .menu_close_btn {
         display: none;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .login_btn.open {
        position: absolute;
        top: 50px;
        right: 60px;
    }

    ul.main_menu {
        display: block;
    }

    ul.sub_menu {
        overflow: hidden;
        max-height: 0;
        padding: 0;
        margin: 0;
        background-color: rgba(255, 255, 255, 0.7);
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    ul.sub_menu.open {
        max-height: 800px;
        /* 예상되는 최대 높이 */
        padding: 0px 1%;
        border-radius: 5px;
    }

}

@media (max-width:1000px) {
    header .logo_wrap a {
        width:auto;
         max-width: 90px;

    }



    .login_btn a {
        padding: 20px 0px;
    }

    .menu_open_btn {
        padding: 20px 0px;
    }
}

/*########### footer ##########*/

footer {
    background-color: #1b1b1b;
    padding: 5% 0px;
    display: flex;
    justify-content: center;
}

footer .center_inner {
    max-width: 1200px;
}

footer h3 {
    color: #fff;
    font-weight: 700;
    font-size: 28px;
}

/* subscribe_wrap */
footer .subscribe_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .subscribe_wrap form {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "input_wrap btn_wrap"
        "agreement_wrap btn_wrap";
    gap: 8px;
    align-items: center;
    width: 45%;
}

footer .subscribe_wrap .input_wrap {
    grid-area: input_wrap;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

footer .subscribe_wrap .input_wrap input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    box-sizing: border-box;
}

footer .subscribe_wrap .input_wrap .email {
    grid-column: span 2;
}

footer .subscribe_wrap .agreement_wrap {
    grid-area: agreement_wrap;
    color: #fff;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

footer .subscribe_wrap .agreement_wrap label {
    display: flex;
    align-items: center;
}

footer .subscribe_wrap .agreement_wrap a {
    color: #fff;
}

footer .subscribe_wrap .btn_wrap {
    width: 100%;
    height: 100%;
}

footer .subscribe_wrap .btn_wrap button {
    width: 100%;
    height: 100%;
    background-color: #2855F7;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 26px;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

/* menu_wrap */
footer .menu_wrap {
    margin: 40px 0px;
    display: flex;
    justify-content: center;
}

footer .menu_wrap nav {
    background-color: #fff;
    display: flex;
    justify-content: center;
    border-radius: 20px;
    padding: 10px 0px;
    width: 90%;
}

footer .menu_wrap nav ul {
    display: flex;
    justify-content: space-between;
    width: 85%;
}

/* contact_wrap */
footer .contact_wrap {
    text-align: center;
    color: #fff;
    font-weight: 500;
}

footer .contact_wrap a {
    color: #fff;
}

footer .contact_wrap span {
    font-weight: 300;
    font-size: 15px;
}

@media (max-width:1200px) {
    footer .subscribe_wrap form {
        width: 55%;
    }

    footer .menu_wrap nav {
        width: 100%;
    }

    footer .menu_wrap nav ul {
        width: 90%;
    }
}

@media (max-width:1000px) {
    footer h3 {
        font-size: 24px;
    }

}

@media (max-width:900px) {
    footer .subscribe_wrap form {
        width: 70%;
    }

}

@media (max-width:800px) {
    footer .menu_wrap {
        display: none;
    }

    footer .contact_wrap {
        margin-top: 40px;
    }
}

@media (max-width:700px) {
    footer .subscribe_wrap {
        flex-wrap: wrap;
        justify-content: center;
    }

    footer h3 {
        margin-bottom: 20px;
    }

    footer .subscribe_wrap form {
        width: 100%;
    }

}

/*######### sub_title ########*/

.sub_title .background {
    position: absolute;
    top: 0;
    bottom: 60px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.sub_title h1 {
    color: #fff;
    position: relative;
    z-index: 2;
}

/* menu_bar */
.sub_title .menu_bar {
    background-color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    height: 60px;
    border-bottom: 3px solid #0057da;
    z-index: 2;
}

.sub_title .menu_bar .center_inner {
    display: flex;
    align-items: center;
}

.sub_title .menu_bar .center_inner > div {
    border-right: 1px solid #b6b6b6;
    height: 100%;

}

.sub_title .menu_bar .home_icon a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0px 10px;
}

.sub_title .menu_bar .home_icon a img {
    width: 15px;
}

.sub_title .menu_bar .page_name .active {
    height: 100%;
    width: 330px;
}

.sub_title .menu_bar .page_name .active a {
    color: #000;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 20px;
    font-weight: 700;
}

.sub_title .menu_bar .page_name .active a img {
    width: 18px;
}

.main_menu_wrap,
.sub_menu_wrap {
    display: none;
    background-color: #fff;
    text-align: left;
    border:#b6b6b6 1px solid;
}

.main_menu_wrap li,
.sub_menu_wrap li {
    height: fit-content;
}

.main_menu_wrap li a,
.sub_menu_wrap li a {
    padding: 10px 20px;
    display: block;
}

.main_menu_wrap li a:hover,
.sub_menu_wrap li a:hover {
    color: #0057da;
}

.main_menu_wrap.open,
.sub_menu_wrap.open {
    display: block;
}

.page_name.main:hover .main_menu_wrap {
    display: block;

}

.page_name.sub:hover .sub_menu_wrap {
    display: block;
}

@media (max-width:1000px) {
    .sub_title .menu_bar {
        height: 50px;
    }
}

@media (max-width:800px) {
    .sub_title .menu_bar .page_name .active {
        width: 200px;
    }

}

@media (max-width:600px) {
    .sub_title .menu_bar .page_name .active {
        width: 130px;
    }

    .sub_title .menu_bar .page_name .active a {
        padding: 0px 10px;
    }

    .sub_title .menu_bar .home_icon a {
        padding: 0px 10px;
    }
}