/* Reset CSS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-family: "Noto Sans KR", "나눔고딕", "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.016em;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    min-height: 100vh;
}

/* skip nav */

#skip-nav {
    width: 1;
    height: 1;
    z-index: 9999;
    position: re;
}

#skip-nav a {
    overflow: hidden;
    position: absolute;
    left: 0;
    top: -9999px;
    z-index: 11000;
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    background-color: #004484;
}

main {
    height: 100%;
    overflow: hidden;
}

button {
    border: none;
    background: transparent;
}

button:focus,
button:active,
textarea:focus,
textarea:active,
input:focus,
input:active {
    box-shadow: none;
    outline: none;
}

ul,
ol,
li {
    list-style-type: none;
    padding: 0;
    margin-bottom: 0;
}

a {
    display: block;
    text-decoration: none;
    color: inherit;
}

p {
    word-break: keep-all;
}

/* Common CSS */

.hidden {
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
}
.wrap {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
}
.hide {
    display: none;
}
:root {
    --point-color: #fa8b27;
    --point-bg-color: #fa8b27;
    --font-Noto: "Noto Sans KR", sans-serif;
    --font-Open: "Open Sans", sans-serif;
    --font-Nanum: "나눔고딕", sans-serif;
}

@media (max-width: 1180px) {
    .hide_1180 {
        display: none !important;
    }
    .show_1180 {
        display: block !important;
    }
    .center_1180 {
        text-align: center !important;
    }
}
@media (max-width: 1024px) {
    .hide_1024 {
        display: none !important;
    }
    .show_1024 {
        display: block !important;
    }
    .center_1024 {
        text-align: center !important;
    }
}
@media (max-width: 960px) {
    .hide_960 {
        display: none !important;
    }
    .show_960 {
        display: block !important;
    }
    .center_960 {
        text-align: center !important;
    }
}
@media (max-width: 768px) {
    .hide_768 {
        display: none !important;
    }
    .show_768 {
        display: block !important;
    }
    .center_768 {
        text-align: center !important;
    }
}

/* header-common */

/* header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    z-index: 100;
}

.active {
    background-color: #f9f9f9;
    border-bottom: 1px solid rgba(14, 63, 86, 0.2);
    color: #000;
    transition: background-color 0.4s linear;
}

.header-wrap {
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 80px;
}

.logo-area .logo-link {
    background-image: url(../img/mgllogowhite.png);
    background-repeat: no-repeat;
    background-size: contain;
    padding: 10px;
    width: 280px;
    height: 60px;
    position: absolute;
    top: 10px;
    left: 30px;
    opacity: 1;
    transition: opacity 0.5s linear;
}

.logo-area .color-logo {
    position: absolute;
    top: 10px;
    left: 30px;
    background-image: url(../img/logo.png);
    background-repeat: no-repeat;
    background-size: contain;
    padding: 10px;
    width: 280px;
    height: 60px;
    opacity: 0;
}

.header-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 100%;
    padding: 0 10px;
}

.login-box-Desk {
    width: 15%;
    background-color: #fa8b27;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 3px;
    border-radius: 7px;
}

.login-box-Desk a {
    font-family: var(--font-Nanum);
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    transition: color 0.5s ease-in-out;
}

.login-mobile-box {
    width: 80%;
    background-color: #0f4056;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px !important;
    border-radius: 7px;
    margin: 0 auto;
}

.login-mobile-box > a {
    font-family: var(--font-Nanum);
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

/* Nav-loginBox MediaQuery */

@media (max-width: 1594px) {
    .login-box-Desk {
        width: 15%;
    }
}

@media (max-width: 1343px) {
    .login-box-Desk {
        width: 18%;
    }
}

.desktop-nav-list {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    /*max-width: 720px;*/
}

.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    width: 25%;
    max-height: 80px;
}

.nav-item:hover .sub-nav-list {
    display: flex;
}

.nav-item:nth-of-type(1) > a {
    font-family: "Open Sans", sans-serif;
}

.nav-item > a {
    font-family: "나눔고딕", sans-serif;
    cursor: pointer;
    text-align: center;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
    padding: 25px 30px;
}

.sub-nav-list {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 80px;
    width: 180px;
    background-color: #f9f9f9;
    padding-top: 10px;
    border-bottom: 1px solid var(--point-color);
    border-radius: 0 0 5px 5px;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.sub-nav-item > a {
    font-family: "나눔고딕", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 15px;
}

.sub-nav-item > a:hover {
    color: rgba(0, 0, 0, 0.6);
}

a.focus {
    color: var(--point-color) !important;
}

/* nav */

.desktop-nav-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav > p {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10000;
}

nav > p button {
    cursor: pointer;
}

nav > p i {
    font-size: 30px;
}

.desktop-is-open {
    max-height: 150px;
    opacity: 1;
}

/* 모바일 네비 */

.hambuger-menu {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

.hambuger-menu i {
    font-size: 25px;
    color: #fff;
}

.login-box-Mobile {
    position: absolute;
    top: 20px;
    left: 20px;
}

.login-box-Mobile a {
    font-family: var(--font-Nanum);
    font-size: 16px;
    color: #000;
    font-weight: 600;
}

.nav-bg {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 888;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    visibility: hidden;
}

.aside-bar {
    position: fixed;
    top: 0;
    width: 70%;
    height: 100vh;
    background-color: #fafafa;
    z-index: 999;
    transform: translateX(-9999px);
    transition: transform 0.5s ease-in-out;
}

.aside-bar > header {
    height: 100%;
}

.is_open {
    transform: translateX(0) !important;
    opacity: 1;
    visibility: visible;
}

.aside-bar .close-btn {
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.aside-bar .close-btn i {
    font-size: 25px;
}

.mobile-nav-list:after {
    position: absolute;
    width: 100px;
    height: 50px;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    background-image: url(../img/logo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px;
}

.mobile-nav-item {
    padding: 20px 20px 0;
    max-height: 70px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.mobile-nav-item button {
    cursor: pointer;
    color: #fa8b27;
    font-size: 18px;
    font-weight: 700;
}

.mobile--nav-list {
    padding: 15px;
}

.mobile--nav-list li {
    padding: 10px 10px 0;
}

.mobile-is-open {
    max-height: 250px !important;
}

.scroll-box {
    height: 85%;
    overflow-y: scroll;
}

/* index-common */
h2 {
    text-align: center;
    margin-bottom: 100px;
    font-size: 70px;
}

h3 {
    margin-bottom: 100px;
    text-align: center;
    font-size: 4.375rem;
    font-weight: 700;
    color: #555;
}

section {
    margin-bottom: 200px;
    /* overflow: hidden; */
}

/* footer-common */

.footer-area {
    width: 100%;
    padding: 50px;
    background-color: #f9f9f9;
    margin-bottom: 0;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.footer-area .footer-inner {
    width: 50%;
}

.footer-area .copyright {
    color: #999;
    font-size: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.footer-area .copyright address {
    margin-bottom: 0;
}

.footer-area .elink-list {
    display: flex;
    justify-content: center;
    position: relative;
}

.footer-area .elink-item {
    text-align: center;
    font-size: 14px;
    color: #999;
    padding-right: 20px;
}

.footer-area .elink-item:nth-of-type(2):after {
    right: 415px;
}

.footer-area .elink-item a:hover {
    color: rgba(0, 0, 0, 0.5);
}

.family-site {
    margin: 15px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.family-site label {
    padding-right: 10px;
}

.family-site select {
    background-color: #f9f9f9;
    border-radius: 3px;
    border: 1px solid #666;
    padding: 0 3px;
    outline: none;
}

/* 960px 미디어스크린 */

@media (max-width: 960px) {
    h3 {
        font-size: 2.5rem;
    }

    section {
        margin-bottom: 100px;
    }

    .footer-area {
        padding: 40px 10px 10px;
    }

    .footer-area .footer-inner {
        width: 90%;
    }

    .footer-area .copyright {
        font-size: 10px;
    }

    .family-site {
        font-size: 10px;
    }

    .footer-area .elink-item {
        font-size: 10px;
    }
}

/* 640px 미디어 스크린 */

@media (max-width: 640px) {
    .mobile-nav-list {
        padding: 50px 5px;
    }
}
