/*****************************************************
 * 뷰포트 해상도 800px 이하
 * ----------------------------------------
 * header, main, footer 영역 주요요소 대상


/******************************************
 * Header 영역
 */
.header-wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    background: #FFF;
    z-index: 10;
}
.header {
    width: 100%;
    height: 65px;
    position: relative;
    box-shadow: 0 2px 2px #EAEAEA;
    text-align: right;
}
.header-logo {
    position: absolute;
    top: calc(32.5px - 26.75px);
    left: calc(50% - 57px);
}
/* 로고이미지 크기 작게 */
.header-logo > a > img {
    width: 114px;
    height: 53.5px;
}
.header-contact {
    display: none;
}
.header-link {
    display: none;
}
.header > input {
    display: none;
}
.header > label {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 65px;
    z-index: 10;
}
/* 부드럽게 열리게 */
.header > label > *, .header-navi {
    transition: 0.3s;
}
/*---------------------------------------
 * 숨김메뉴 햄버거아이콘
 */
.header > label::before {
    content: "";
    position: absolute;
    top: calc(50% - 2px - 10px);
    left: 0;
    width: 30px;
    height: 4px;
    background: #FFCD2D;
    /* 회전한 다음 원래위치로 */
    transition: top 0.3s 0.3s, transform 0.3s 0s;
}
.header > label > span {
    display: inline-block;
    position: absolute;
    top: calc(50% - 2px);
    left: 0;
    width: 30px;
    height: 4px;
    background: #FFCD2D;
}
.header > label::after {
    content: "";
    position: absolute;
    top: calc(50% - 2px + 10px);
    left: 0;
    width: 30px;
    height: 4px;
    background: #FFCD2D;
    /* 회전한 다음 원래위치로 */
    transition: top 0.3s 0.3s, transform 0.3s 0s;
}
.header-navi {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    font-family: NanumSquareB;
    font-size: 1.2rem;
    line-height: 3rem;
    color: #999;
    position: absolute;
    top: 65px;
    right: 0;
    background: #FFF;
    height: calc(100vh - 80px);
    width: 0;
}
/* 가상요소로 메뉴 텍스트 앞에 여백만들기 */
.header-navi > li:nth-of-type(2) ~ li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
}
/* 구분선 */
.header-navi > li {
    border-top: 1px solid #EAEAEA;
    position: relative;
}
.header-navi > li:nth-of-type(7) {
    border-bottom: 1px solid #EAEAEA;
}
/* contact & link */
.header-navi > li:nth-of-type(1),
.header-navi > li:nth-of-type(2) {
    border: 0;
}
.header-navi > li:nth-of-type(1) {
    margin-top: 10px;
    padding-left: calc(150px - 94px);
}
.header-navi > li:nth-of-type(1) > img {
    width:188px;
    height: 70px;
}
.header-navi > li:nth-of-type(2) {
    padding-left: calc(150px - 62px);
}
.header-navi > li:nth-of-type(2) > a {
    margin-right: 20px;
}
.header-navi > li:nth-of-type(2) > a > img {
    width: 28px;
    height: 28px;
}
.header-navi > li:nth-of-type(3) {
    color: #000;
}

.header-navi > li > a:link,
.header-navi > li > a:visited {
    text-decoration: none;
    color: #000;
}
/*---------------------------------------
 * 2단계 메뉴
 */
.header-navi > li > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 2rem;
    background: #2B2A6A;
    /* 2단계 메뉴 안보이게 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}
.header-navi > li > ul > li > a:link,
.header-navi > li > ul > li > a:visited {
    text-decoration: none;
    color: #FFF;
}
/* 가상요소로 메뉴 텍스트 앞에 여백만들기 */
.header-navi > li > ul > li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
}
/*---------------------------------------
 * 숨김메뉴 클릭시
 */

/* 햄버거 아이콘 X로 변형 */
#header-navi-toggle:checked + label::before {
    height: 2px;
    top: calc(50% - 1px);
    transform: rotate(45deg);
    background: #000;
    /* 가운데로 모인 다음 회전 */
    transition: top 0.3s 0s, transform 0.3s 0.3s;
}
#header-navi-toggle:checked + label > span {
    background: transparent;
}
#header-navi-toggle:checked + label::after {
    height: 2px;
    top: calc(50% - 1px);
    transform: rotate(-45deg);
    background: #000;
    /* 가운데로 모인 다음 회전 */
    transition: top 0.3s 0s, transform 0.3s 0.3s;
}
/* 햄버거 아이콘 클릭했을때 너비 생기게 */
#header-navi-toggle:checked + label + .header-navi {
    width: 300px;
}
/* 헤더를 제외한 부분은 반투명한 검은색으로 덮기 */
#header-navi-toggle:checked + label + .header-navi::before {
    content: "";
    position: fixed;
    top: 80px;
    bottom: 0;
    left: 0;
    right: 300px;
    background: rgba(0, 0, 0, 0.5);
}
/* 더보기 표시 */
#header-navi-toggle:checked + label + .header-navi > li:nth-of-type(3)::after,
#header-navi-toggle:checked + label + .header-navi > li:nth-of-type(4)::after,
#header-navi-toggle:checked + label + .header-navi > li:nth-of-type(5) ~ li::after {
    content: "";
    position: absolute;
    top: 13px;
    right: 20px;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
}

/*---------------------------------------
 * header-navi 레이아웃 재배치 미디어쿼리
 */
@media screen and (max-width: 540px) {
    .header-navi > li:nth-of-type(1) {
        padding-left: 20px;
    }
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px + 40px);
    }
    #header-navi-toggle:checked + label + .header-navi::before {
        display: none;
    }
    #header-navi-toggle:checked + label + .header-navi {
        width: 100%;
    }
}
@media screen and (max-width: 514px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px + 30px);
    }
}
@media screen and (max-width: 490px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px + 20px);
    }
}
@media screen and (max-width: 470px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px + 10px);
    }
}
@media screen and (max-width: 450px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px);
    }
}
@media screen and (max-width: 430px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px - 10px);
    }
}
@media screen and (max-width: 410px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px - 20px);
    }
}
@media screen and (max-width: 390px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px - 30px);
    }
}
@media screen and (max-width: 370px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px - 40px);
    }
}
@media screen and (max-width: 350px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px - 50px);
    }
}
@media screen and (max-width: 330px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px - 60px);
    }
}
@media screen and (max-width: 310px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px - 70px);
    }
}
@media screen and (max-width: 290px) {
    .header-navi > li:nth-of-type(2) {
        padding-left: calc(50% + 62px - 80px);
    }
}


/******************************************
 * Main 영역
 */
.main-wrapper {
    width: 100%;
}
.main {
    width: 100%;
    min-height: 700px;
    margin-top: 65px;
}


/******************************************
 * Footer 영역
 */
.footer-wrapper {
    width: 100%;
    border-top: 1px solid #CCC;
}
.footer {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    color: #999;
}
.footer-navi {
    grid-area: navi;
    list-style: none;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5%;
    /* 공간이 부족하면 줄바꿈함 */
    flex-wrap: wrap;
    line-height: 1.5rem;
    border-bottom: 1px solid #CCC;
}
.footer-navi > li > a:link,
.footer-navi > li > a:visited {
    text-decoration: none;
    color: #000;
}
.footer-info {
    grid-area: info;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: NanumSquareB;
    font-size: 0.8rem;
}
.footer-info > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    line-height: 1.3rem;
    word-break: keep-all;
}
.footer-info > div > img {
    width: 320px;
    height: 72px;
}

/*------------------------------------------
 * footer 레이아웃 재배치 미디어쿼리
 */
@media screen and (max-width: 670px) {
    .footer-navi {
        font-size: 0.9rem;
    }
    .footer-info > ul {
        display: block;
        line-height: 1.2rem;
    }
    .footer-info > ul:first-of-type {
        padding-bottom: 0;
    }
    .footer-info > div > img {
        width: 280px;
        height: 63px;
    }
}
@media screen and (max-width: 360px) {
    .footer-info > div > img {
        width: 240px;
        height: 54px;
    }
}

/****************************************************************
 * 페이지 up & down 버튼
 */
#updown-btn {
    width: 30px;
    height: 65px;
    position: fixed;
    right: 10px;
    bottom: 20px;
}