/**********************************************************
 * 뷰포트 해상도가 800px 이하인 경우 사용되는 코드
 * --------------------------------------------
 * header, main, footer 영역에 있는 주요 요소가 대상
 */



/************************************************
 * Header 영역
 */
.header-wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 5;
}
.header {
    position: relative;
    width: 100%;
    height: 80px;
    text-align: right;
}
.header-logo {
    position: absolute;
    left: 10px;
    top: calc(40px - 30px);
    margin: 0;
}
.header-logo > a > img {
    width: 150px;
    height: 60px;
}

/*-----------------------------------------
 * 숨김메뉴
 */
.header > input {
    display: none;
}
.header > label {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 80px;
    z-index: 11;
}
.header > label > *, .header-navi {
    transition: 300ms;
}
.header > label::before {
    content: "";
    position: absolute;
    top: calc(50% - 1px - 9px);
    left: 0;
    width: 26px;
    height: 2px;
    background: #000;
    transform-origin: 0 50%;
}
.header > label > span {
    display: inline-block;
    position: absolute;
    left: 0;
    top: calc(50% - 1px);
    width: 26px;
    height: 2px;
    background: #000;
}
.header > label::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px + 9px);
    left: 0;
    width: 26px;
    height: 2px;
    background: #000;
    transform-origin: 0 50%;
}
.header-navi {
    position: fixed;
    right: 0;
    top: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #FFF;
    text-align: center;
    height: 100vh;
    width: 0;
    overflow: hidden;
    z-index: 10;
    padding-top: 120px;
    font-size: 1.2rem;
    line-height: 1.5rem;
}
.header-navi > li {
    display: block;
    padding: 10px 0;
    color: #CCC;
}
.header-navi > li:nth-of-type(6) {
    padding-top: 10%;
}
.header-navi > li:nth-of-type(6),
.header-navi > li:nth-of-type(7) {
    font-size: 1rem;
    line-height: 0.3rem;
}
.header-navi > li:nth-of-type(1) > a:link,
.header-navi > li:nth-of-type(1) > a:visited {
    text-decoration: none;
    color: #000;
}
#header-navi-toggle:checked + label > span {
    width: 0;
}
#header-navi-toggle:checked + label::before {
    transform: rotate(45deg);
}
#header-navi-toggle:checked + label::after {
    transform: rotate(-45deg);
}
#header-navi-toggle:checked + label + .header-navi {
    width: 280px;
    box-shadow: 0 2px 2px #CCC;
}

@media screen and (max-width: 414px) {
    .header {
        height: 68px;
    }
    .header-logo {
        top: calc(50% - 24px);
    }
    .header-logo > a > img {
        width: 120px;
        height: 48px;
    }
    .header > label {
        height: 68px;
    }
}
@media screen and (max-width: 320px) {
    .header {
        height: 60px;
    }
    .header-logo {
        top: calc(50% - 20px);
    }
    .header-logo > a > img {
        width: 100px;
        height: 40px;
    }
    .header > label {
        height: 60px;
    }
}


/************************************************
 * Main 영역
 */
.main-wrapper {
    width: 100%;
}
.main {
    width: 100%;
    min-height: 600px;
}


/************************************************
 * Footer 영역
 */
.footer-wrapper {
    width: 100%;
    background: #E2DFF2;
}
.footer {
    width: 100%;
    height: 500px;
    margin: 0 auto;
    display: grid;
    grid-template: "logo" 20%
                    "info" 80%;
    justify-content: center;
    align-items: center;
    padding: 0 50px;
    z-index: 10;
}
.footer > a {
    grid-area: logo;
    align-self: start;
    padding-top: 30px;
}
.footer > a > img {
    width: 140px;
    height: 56px;
}
.footer-info {
    grid-area: info;
    display: grid;
    grid-template: "com ."
                    "cs bank"
                    "etc link" / 3.5fr 1fr;
    font-size: 0.9rem;
    font-family: NanumSquareL;
    white-space: nowrap;
}
.footer-info > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-info > ul > li {
    line-height: 1.5rem;
}
.footer-info > ul > li:nth-of-type(1) {
    color: #7DB1FF;
    line-height: 2rem;
    font-family: NanumSquareB;
}
.footer-info-cs > li:nth-of-type(1),
.footer-info-bank > li:nth-of-type(1) {
    margin-top: 4%;
}
.footer-info-com {
    grid-area: com;
}
.footer-info-cs {
    grid-area: cs;
}
.footer-info-bank {
    grid-area: bank;
}
.footer-info-etc {
    grid-area: etc;
}
.footer-info-link {
    grid-area: link;
    align-self: center;
}
.footer-info-link > a {
    margin-right: 10%;
}
.footer-info-link > a > svg {
    width: 20px;
    height: 20px;
}

/*--------------------------------------------------------------
 * footer 레이아웃 재배치 미디어쿼리
 */

@media screen and (max-width: 560px) {
    .footer {
        height: 600px;
        grid-template: "logo" 10%
                    "info" 90%;
    }
    .footer-info {
        grid-template: "com ."
                        "cs ."
                        "bank ."
                        "etc ."
                        "link ." / 1fr 1fr;
        font-size: 0.8rem;
    }
    .footer-info > ul > li {
        line-height: 1.3rem;
    }
    .footer-info-etc {
        margin-top: 8%;
    }
}


/*--------------------------------------------------------------
 * 페이지 up & down 버튼
 */
.updown-btn {
    width: 30px;
    height: 60px;
    position: fixed;
    right: 10px;
    bottom: 15px;
}

/*--------------------------------------------------------------
 * 플로팅 배너
 */
.floating-bn {
    position: fixed;
    left: 10px;
    bottom: -5px;
    z-index: 11;
}
.floating-bn > ul {
    /* list-style: none;
    padding: 20px;
    margin: 0;
    text-align: center;
    background: #BBF5FE;
    border-radius: 10px; */
    display: none;
}
.floating-bn > img {
    width: 100px;
    /* margin: 0 22px; */
}
@media screen and (max-width: 500px) {
    .floating-bn {
       left: 5px;
    }
   .floating-bn > ul {
       padding: 15px;
       font-size: 0.8rem;
    }
   .floating-bn > img {
       width: 60px;
    }
}