/* 레이아웃, 디자인 공통 */

/* 헤더 */
header {
    position: relative;
    z-index: 9999;
    width: 100%;
    top: 0;
    height: 81px;
    background: #fff;
}
header .layout {
    height: 100%;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
h1.logo {
        -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}
h1.logo {width:110px;display:block;}
h1.logo img {width:100%}

  /* 메뉴 */
nav {
    display: flex;
    flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    justify-content: right;
}
nav ul {
    justify-content: space-between;
}
nav li {
    margin: 0 24px;
    text-align: center;
    position: relative;
}
nav li:last-child {
    margin-right: 0;
}
nav li a {
    position: relative;
    font-size: 17px;
    font-weight: bold;
}
nav li:before {
    content: "";
    position: absolute;
    width:100%;
    height:1px;
    bottom:-28px;
    left:0;
    right:0;
    margin:0 auto;
    background-color: #0F4C81;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -o-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}
nav li:hover:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -ms-transform: scaleX(1);
    -o-transform: scaleX(1);
    transform: scaleX(1);
}
nav li a:hover,
nav li.on a {
    color: #0F4C81;
}
nav li.on:before {
    background: transparent;
    background: none;
}
nav li.on:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    background-color: #0F4C81;
}

header .language {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .language span {
    font-weight: 600;
    color: #7B7B7B;
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}
header .language:hover span {
    color:#0F4C81
}
header .language i {
    margin-right:5px
}
header .flex-box {
    display: flex;
    align-items: center;
}
header .header-sns {
    display: block;
    margin-left:15px;
    padding-left:15px;
    border-left: 2px solid #eaeaea
}
header .header-sns img {
    width:8px;
}
 /* header fixed */
#header.navbar-fixed-top {
    position: fixed !important;
    top: 0;
    z-index: 9;
}
#header.navbar-fixed-top #hdarea {
    width: 100%;
    max-width: 100%;
}
#header.navbar-fixed-top #header.navbar-fixed-top h1.navbar-header {
    top: 7px;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
}
#header.navbar-fixed-top #navi li:before {
    bottom: -19px;
}
#header.navbar-fixed-top #navi li a {
    font-size: 1rem;
}

.menu-container,
.menu-icon {
    display: none;
}
    /* 헤더 미디어쿼리 */
    @media all and (max-width:1199px) {
        h1.logo {
            width: 120px;
        }
        nav li {
            margin: 0 15px;
        }
        nav li a {
            font-size: 16px;
        }
    }
    @media all and (max-width:1000px) {
        header {
            height:70px
        }
        h1.logo {
            width: 110px;
        }
        header .flex-box {
            margin-right: 10%;
        }
    }
    @media all and (max-width:640px) {
        header {
            height:60px
        }
        header .language {
            margin-right:13%
        }
        header .flex-box {
            margin-right: 14%;
        }
        h1.logo {
            width: 75px;
        }
        nav li a {
            font-size: 14px;
        }
        nav li.on:before {
            bottom: -19px;
        }
    }

/* 모바일 헤더 */
@media all and (max-width:1000px) {
    header .header-sns {
        display: none;
    }
    nav {
        display: none;
    }
    .menu-icon {
        display: block;
    }
    .menu-container {
        z-index: 2;
        position: fixed;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        overflow: hidden;
        height: 100vh;
        width: 100vw;
        pointer-events: none;
        z-index: 999999;
        top: 0;
    }
    .menu-container .menu {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        position: absolute;
        height: 100vh;
        width: 100vw;
        z-index:555555;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        -webkit-transform: translateY(-100%);
                transform: translateY(-100%);
        -webkit-transition: -webkit-transform 0.5s;
        transition: -webkit-transform 0.5s;
        transition: transform 0.5s;
        transition: transform 0.5s, -webkit-transform 0.5s;
        -webkit-transition-delay: 0.5s;
                transition-delay: 0.5s;
        visibility: hidden;
    }
    .menu-container ul li {
        padding: 10px;
        text-align: center;
    }
    .menu-container ul li a {
        font-size: 1.563rem;
        color: rgba(255,255,255,0.5);
        cursor: pointer;
        -webkit-transition: all 0s ease-in-out;
        -ms-transition: all 0s ease-in-out;
        transition: all 0s ease-in-out;
    }
    .menu-container ul li.on a {
        color: rgba(255,255,255,1);
    }
    .menu-sliders {
        -webkit-box-flex: 1;
            -ms-flex: 1;
                flex: 1;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-transition: -webkit-box-flex 0.45s;
        transition: -webkit-box-flex 0.45s;
        transition: flex 0.45s;
        transition: flex 0.45s, -webkit-box-flex 0.45s, -ms-flex 0.45s;
    }
    .menu-sliders:nth-child(2) {
        -webkit-box-flex: 1;
        -ms-flex: 1 0 100%;
        flex: 1 0 100%;
        background: transparent;
    }
    .menu-sliders:nth-child(odd) {
        background: #0F4C81;
    }
    .menu-icon {
        width:30px;
        z-index: 9999999;
        position: fixed;
        right:5%;
        top:26px;
        cursor: pointer;
        -webkit-transition: background-color .5s ease, -webkit-transform .2s ease;
        transition: background-color .5s ease, -webkit-transform .2s ease;
        transition: transform .2s ease, background-color .5s ease;
        transition: transform .2s ease, background-color .5s ease, -webkit-transform .2s ease;
    }
    .menu-icon div {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 1px;
        background: #313131;
        -webkit-transition: -webkit-transform 0.3s;
        transition: -webkit-transform 0.3s;
        transition: transform 0.3s;
        transition: transform 0.3s, -webkit-transform 0.3s;
        -webkit-transition-delay: 0.5s;
                transition-delay: 0.5s;
    }
    .menu-icon__line {
        height: 2px;
        width: 30px;
        display: block;
        background-color:#313131;
        margin-bottom: 6px;
        -webkit-transition: background-color .5s ease, -webkit-transform .2s ease;
        transition: background-color .5s ease, -webkit-transform .2s ease;
        transition: transform .2s ease, background-color .5s ease;
        transition: transform .2s ease, background-color .5s ease, -webkit-transform .2s ease;
    }
    .menu-icon__line-left {
        width: 15px;
    }
    .menu-icon__line-right {
        width: 15px;
        float: right;
    }
    .menu-icon:hover div {
        background: white;
    }
    .menu-icon:active {
        -webkit-box-shadow: none;
        box-shadow: none;
    }
    body.menu-open .menu-sliders:nth-child(2) {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 0;
        flex: 0 0 0;
    }
    body.menu-open .menu {
        -webkit-transform: translateY(0%);
                transform: translateY(0%);
        visibility: visible;
        pointer-events: all;
    }
    body.menu-open .menu-icon__line {
        background-color: white;
        -webkit-transform: translateX(0px) rotate(-45deg);
                transform: translateX(0px) rotate(-45deg);
    }
    body.menu-open .menu-icon__line-left {
        -webkit-transform: translateX(1px) translateY(3px) rotate(45deg);
                transform: translateX(1px) translateY(3px) rotate(45deg);
    }
    body.menu-open .menu-icon__line-right {
        -webkit-transform: translateX(-3px) translateY(-2px) rotate(45deg);
                transform: translateX(-3px) translateY(-2px) rotate(45deg);
    }
}

@media all and (max-width:640px) {
    #header h1.navbar-header {
        width: 110px;
        top: 16px;
    }
    .menu-icon {
        top:17px;
    }
    #header.navbar-fixed-top h1.navbar-header {
        -webkit-transform: scale(0.9);
        -moz-transform: scale(0.9);
        -ms-transform: scale(0.9);
        -o-transform: scale(0.9);
        transform: scale(0.9);
    }
    .menu-container ul li a {
        font-size: 1.125rem;
    }
}

/* footer */
#footer {
    height: 369px;
    position: relative;
    background: url("/public/images/triangle3.svg") left bottom no-repeat;
    display: flex;
    align-items: center;
}
#footer li a,
#footer p,
#footer p a {
    color: #7B7B7B;
    font-size: 15px;
}
#footer li a:hover,
#footer p a:hover {
    color: #0F4C81;
}
.footer-info li {
    font-size: 15px;
    margin-bottom: 10px;
    color: #7B7B7B;
}
.footer-info p {
    font-family: 'Noto Sans KR', sans-serif;
    color: #7B7B7B;
}
.sitemap li {
    margin-bottom: 10px;
    font-size: 15px;
}
.footer-info li:last-child,
.sitemap li:last-child {
    margin-bottom: 0;
}
.copyright {
    position: relative;
    width: 157px;
    text-align: right;
}
.copyright .facebook:hover {
    opacity: 0.8;
}
.copyright .facebook img {
    width: 9px;
}
.copyright p {position:absolute;bottom:0;font-size:14px}
    /* footer 미디어쿼리*/
    @media all and (max-width: 1000px) {
        #footer {
            height: auto;
            flex-wrap: wrap;
            padding-bottom: 50px;
        }
        #footer .flex-nowrap {
            flex-wrap: wrap;
            -webkit-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
        }
        .footer-logo {
            width: 100%;
            margin-bottom: 30px;
        }
    }
    @media all and (max-width: 640px) {
        .footer-logo {
            width: 100%;
            margin-bottom: 0;
        }
        .footer-logo a img {
            width: 90px;
        }
        .copyright,
        .footer-info,
        .sitemap {
            width: 100%;
        }
        .copyright,
        .footer-info,
        .sitemap {
            margin-top: 30px;
        }
        .footer-info li,
        .sitemap li {
            margin-bottom: 5px;
        }
        .copyright {
            text-align: left;
        }
        .copyright p {
            position: relative;
            margin-top:20px
        }
        .copyright p br {
            display: none;
        }
    }