/**********************************************************
 * 뷰포트 해상도가 801px 이상인 경우 사용되는 코드
 * --------------------------------------------
 * header, main, footer 영역에 있는 주요 요소가 대상
 */



/************************************************
 * Header 영역
 */
.header-wrapper {
    width: 260px;
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 5;
    box-shadow: 2px 2px 2px #EAEAEA;
}
.header {
    width: 100%;
    position: relative;
}
.header > input, .header > label {
    display: none;
}
.header-logo {
    position: absolute;
    left: 30px;
    top: calc(50px - 40px);
    margin: 0;
    z-index: 11;
}
.header-navi {
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.6rem;
    position: fixed;
    top: 100px;
    left: calc((260px - 58px) / 2);
}
.header-navi > li {
    display: block;
    padding: 12px 0;
    color: #999;
    cursor: not-allowed;
}
.header-navi > li:nth-of-type(6) {
    padding-top: 25px;
}
.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 레이아웃 재배치 미디어쿼리
 */
@media screen and (max-width: 1060px) {
    .header-wrapper {
        width: 300px;
        box-shadow: none;
    }
    .header-logo {
        left: 70px;
    }
    .header > label {
        display: inline-block;
        position: relative;
        left: 30px;
        top: calc(50px - 15px);
        width: 40px;
        height: 30px;
        z-index: 11;
    }
    .header > label > *, .header-navi {
        transition: 300ms;
    }
    .header > label::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 26px;
        height: 2px;
        background: #000;
        transform-origin: 0 50%;
    }
    .header > label > span {
        display: inline-block;
        position: absolute;
        left: 0;
        top: 10px;
        width: 26px;
        height: 2px;
        background: #000;
    }
    .header > label::after {
        content: "";
        position: absolute;
        left: 0;
        top: 20px;
        width: 26px;
        height: 2px;
        background: #000;
        transform-origin: 0 50%;
    }
    .header-navi {
        left: 0;
        top: 0;
        padding-top: 100px;
        height: 100vh;
        width: 0;
        background: #FFF;
        overflow: hidden;
    }
    .header-navi::before {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
    }
    #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: 300px;
        box-shadow: 2px 2px 2px #EAEAEA;
    }
}


/************************************************
 * Main 영역
 */
.main-wrapper {
    width: calc(100% - 260px);
    margin-left: 260px;
}
.main {
    width: 100%;
    min-width: 801px;
    min-height: 600px;
    margin: 0 auto;
}
/*--------------------------------------------------------------
 * main 레이아웃 재배치 미디어쿼리
 */
@media screen and (max-width: 1060px) {
    .main-wrapper {
        width: 100%;
        margin-left: 0;
    }
}


/************************************************
 * Footer 영역
 */
.footer-wrapper {
    width: calc(100% - 260px);
    background: #E2DFF2;
    margin-left: 260px;
}
.footer {
    width: 100%;
    min-width: 801px;
    max-width: 1400px;
    height: 300px;
    margin: 0 auto;
    display: grid;
    grid-template: "logo info" / 25% 75%;
    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" / 3fr 2fr 1fr;
    font-size: 0.9rem;
    color: #666;
    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-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 레이아웃 재배치 미디어쿼리
 */
@media screen and (max-width: 1060px) {
    .footer-wrapper {
        width: 100%;
        margin-left: 0;
    }
}
@media screen and (max-width: 1200px) {
    .footer {
        height: 420px;
    }
    .footer-info {
        grid-template: "com ."
                        "cs bank"
                        "etc link" / 2.5fr 1fr;
    }
    .footer-info-cs > li:nth-of-type(1),
    .footer-info-bank > li:nth-of-type(1) {
        margin-top: 4%;
    }
}
@media screen and (max-width: 960px) {
    .footer {
        height: 500px;
        grid-template: "logo" 20%
                        "info" 80%;
    }
    .footer-info {
        grid-template: "com ."
                        "cs bank"
                        "etc link" / 3.5fr 1fr;
        font-size: 0.9rem;
    }
    .footer-info > ul > li {
        line-height: 1.5rem;
    }
}

/*--------------------------------------------------------------
 * 페이지 up & down 버튼
 */
.updown-btn {
    width: 40px;
    height: 80px;
    position: fixed;
    right: 20px;
    bottom: 30px;
}

/*--------------------------------------------------------------
 * 플로팅 배너
 */
.floating-bn {
    position: fixed;
    left: 20px;
    bottom: -5px;
    z-index: 11;
}
.floating-bn > ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    text-align: center;
    background: #BBF5FE;
    border-radius: 10px;
    animation: bounce 0.7s infinite;
}
.floating-bn > img {
    width: 100px;
    margin: 0 22px;
}
