/********* header CSS *********/

.menu-call{
    display:none;
}

header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    transition: all 0.2s;
    z-index: 99;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 메인배너 아래로 내려 갈 시 헤더 효과 */
header.on{
    background-color:#fff;
}

/* 서브에서 헤더 디폴트 상태 = 흰색배경*/
header:not(:has(+ .main)){
    background: #fff;
}
header:not(:has(+ .main)) .pc-nav > li > a,
header:not(:has(+ .main)) .hd-btn__wrap .hd-info a {
    color: #111;
}
header:not(:has(+ .main)) .btn-menu .bar {
    background: #111; 
}


.hd-wrap{
    padding-inline:4%;
    align-items: center;
}

.hd-wrap,
.pc-menu,
.pc-nav,
.hd-btn__wrap {
    display:flex;
    flex-flow:row wrap;
}

.hd-wrap{
    justify-content: center;
}

.logo-box{
    width:25%;
    height:auto;
    display: flex;
    max-width: fit-content;;
    display: flex;
    justify-content: center;
    position:relative;
}

.pc-call{
    position: absolute;
    top: 22rem;
    left: 5rem;
    display:none;
}

header.show-menu .pc-call{
    display:block;
    z-index: 100;
}

.pc-call a{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pc-call a .img{
    text-align:center;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pc-call a .img .caption{
    font-size:2.4rem;
}

.pc-call a span{
    font-size: 3.6rem;
}

.pc-nav {
    width: 65%;
    justify-content: center;
    position: relative;
}

.pc-nav > li{
    font-size: 2rem;
    padding: 2.5rem 3vw;
    position: relative;
}

.sub-menu__wrap{
    visibility: hidden;
    position: absolute;
    top:100%;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: all 0.3s;
    text-align: left;
    padding-left:min(1.4vw,2.5rem);
}

.pc-nav > li:last-child .sub-menu__wrap::before{
    content:'';
    position:absolute;
    top:4rem;
    right:0;
    width:1px;
    height:48rem;
    background: #bdd5e4;
}

.sub-menu__wrap::after{
    content:'';
    position:absolute;
    top:4rem;
    left:0;
    width:1px;
    height:48rem;
    background: #bdd5e4;
}
.sub-menu__wrap ul {
    position:relative;
    top:3rem;
    padding-bottom: 1rem;
}
.sub-menu__wrap li a {
    font-size: 1.8rem;
    display: block;
    padding: 0.75rem 0;
    transition: all 0.3s;
}

.sub-menu__wrap li a:hover{
    color: #5fa9e7;
}

/* 메뉴 슬라이드 다운 */
.pc-nav::before {
    content: "";
    position: absolute; 
    top:100%; 
    left: 50%;
    transform: translateX(-50%);
    background: #e7f1fa;
    width: 150vw;
    height: 0;
    transition: all 0.3s;
}

.show-menu .pc-nav::before {
    height: calc(var(--submenu-height) + 6rem); 
    
}
.show-menu .sub-menu__wrap {
    visibility: visible;
    height: calc(var(--submenu-height ) + 6rem); 
}



.hd-btn__wrap {
    width: 3.3rem;
    align-items: center;
    justify-content: flex-end;
    display:none;
}

.hd-btn__wrap .hd-info a {
    color: #fff;
    font-size: 1.6rem;
}

.hd-btn__wrap .hd-info a:not(:first-child) {
    margin-left: 2rem;
}

.btn-menu {
    width: 4rem;
    height: 3rem;
    position: relative;
}

.btn-menu .bar {
    display: block; 
    width: 100%; 
    height: 0.2rem; 
    background: #fff; 
    top:0;
    left: 0;
}

.btn-menu .bar:nth-of-type(2) {
    top:50%;
    transform: translateY(-50%);
}
.btn-menu .bar:nth-of-type(3) {
    top:auto;
    bottom:0;
}


header.on .pc-nav > li > a,
header.on .hd-btn__wrap .hd-info a{
    color: #111;
}
header.on .btn-menu .bar {
    background: #111; 
}


/* 모바일 메뉴 */

.m-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 37, 55, 0.95);
    z-index: 99;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    overflow: auto;
}

.m-menu .m-menu-inner {
    width: 92%;
    max-width: 1590px;
    margin-top: 10%;
    position: relative;
}

.m-menu .m-nav .main-menu{
    font-size: 2rem;
    color: #fff;
    display: inline-block;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #fff;
    font-weight:500;
}

.m-menu .m-nav .sub-menu a {
    display: block;
    font-size: 2rem;
    color: #ccc;
    font-weight: 300;
    padding: 1rem 0;
}

.m-menu-open .m-menu {
    visibility: visible;
    opacity: 1;
}

.m-menu-close {
    cursor: pointer;
    position: absolute;
    top: -50px;
    right: 0rem;
    transform: translateY(-100%);
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    border: 2px solid #000;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    transition: all 0.4s;
}

.m-menu-top a {
    display: none;
}


/* 푸터 */
.footer_wrap{
    position:relative;
}

footer {
    background: #1b2735;
    padding: 10rem 0;
}

footer .inner{
    display:flex;
    justify-content: space-between;
    align-items: center;
}
.ft-menu {
    display: flex; 
    flex-flow: column wrap;
}

.ft-menu a {
    font-size: max(14px,1.8rem);
    color: #eee;
}
.ft-copyright {
    font-size: max(13px,2rem);
    color: #b0aca8;
}
.ft-copyright .company-name{
    font-size: max(15px,2.4rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.ft-copyright .info {
    display: flex; 
    flex-flow: column wrap;
}
.ft-copyright * {
    color: #b0aca8;
    font-weight: 200;
}

.ft-copyright p {
    font-size: max(13px,1.5rem);
}

/* 1400 = inner size */
@media screen and (max-width:1200px){
    .hd-wrap{
        height: 10rem;
    }
    .hd-wrap .menu-call img{
        width: 5rem;
    }
    .pc-nav > li{
        padding: 4rem 2rem;
    }
    .m-menu .m-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6rem 4rem;
    }
    .pc-nav > li{
        padding: 2.5rem 3rem;
    }

    .pc-nav {display: none;}
    
    .hd-btn__wrap{
        display:block;
    }
    .hd-wrap {
        justify-content: space-between;
    }
    .sub-menu__wrap::after{
        display:none;
    }
    .m-menu-close {
        top: 0;
        transform: none;
    }
}

@media screen and (max-width:992px){
    .logo-box, 
    .hd-btn__wrap {
        width: 50%;
    }

    .logo-box {
        width: calc(100% - 15rem);
    }

    .hd-btn__wrap, 
    .btn-menu {
        width: 5rem;
        height: 5rem;
        max-width:fit-content;
    }


    .hd-btn__wrap img, 
    .btn-menu img,
    .menu-call img{
        width:100%;
    }

    .menu-call {
        display: block;
        width: 5rem;
        max-width:fit-content;
    }
}

@media screen and (max-width:768px){
    .m-menu-top a {
        display: block;
    }
    
    .m-menu {
        background: #c6dff5;
    }
    .m-menu-top {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-items: center;
        height: 10rem;
        background: #fff;
        padding-inline: 4%;
    }
    .m-menu-top .m-menu-logo img{
        position: relative;
        left: 3px;
    }
    .m-menu-top .m-menu-call img{
        width: 5rem;
    }
    .m-menu-close {
        position: static;
        transform: none;
    }

    .m-menu-close img{
        filter: brightness(0);
    }
    .m-menu .m-nav {
        grid-template-columns: repeat(1, 1fr);
        gap: 0;
    }
    .m-menu .m-nav li {
        width: 100%;
    }
    .m-menu .m-nav .main-menu{
        font-size: 3rem;
        border-bottom: 0;
        padding-inline: 6%;
        line-height: 10rem;
        margin-bottom: 0;
        padding-bottom: 0;
        display: block;
        position: relative;
        border-bottom: 1px solid #fff;
        color:#111;
    }    
    .m-menu .m-nav .main-menu::before {
        content: '∨';
        position: absolute;
        top: 0;
        right: 6%;
        transform: scale3d(1.5, 1, 1.5);
    }
    .m-menu .m-nav .main-menu.on::before {
        transform: scale3d(1.5, 1, 1.5) rotate(180deg);
    }
    .m-menu .m-nav .sub-menu {
        background: #fff;
        padding: 3% 6%;
        /* border-radius: 0 0 1rem 1rem; */
        border-radius: 0;
    }
    .m-menu .m-nav li {
        width: 100%;
    }
    .m-menu .m-nav .sub-menu a {
        font-size: 2.6rem;
        color: #142537;
        position: relative;
        padding: 1rem 1rem 1rem 3rem;
    }

    .m-menu .m-nav .sub-menu a::before {
        content: '';
        position: absolute;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: var(--point);
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }
    .m-menu .m-menu-inner {
        margin-block: 0;
        width: 100%;
    }
}

@media screen and (max-width:420px){
    .logo-box,
    .m-menu-top .m-menu-logo{
        width:70%;
    }
    .logo-box img,
    .m-menu-top .m-menu-logo img{
        width:100%;
    }
    .m-menu-top .m-menu-logo img{
        left:0;
    }

    .hd-btn__wrap, 
    .btn-menu, 
    .menu-call,
    .m-menu-call,
    .m-menu-close{
        width:4rem;
        height:4rem;
    }
    .hd-wrap .menu-call img,
    .m-menu-top .m-menu-call img{
        width:100%;
    }

    .m-menu-close img{
        width:60%;
    }
}


/********* footer CSS *********/

/* 1200 = inner size */
@media screen and (max-width:1200px){
}

@media screen and (max-width:992px){
    footer .inner{
        display:flex;
        justify-content: space-between;
        flex-flow: column wrap;
        align-items: center;
        gap:4rem;
    }
    .ft-copyright *{
        text-align: center;
    }
    .footer-logo-box{
        width: 20rem;
    }
    .footer-logo-box img{
        width: 100%;
    }
}

@media screen and (max-width:768px){

}