* {
    --common-width : 650px; /* 최대넓이 */
    --header-height: 5.5rem; /* 상단바 높이 */
    --footer-height: 6.5rem; /* 하단바 높이 */
}
main {
    width: 100%;
    margin: 0 auto;
    background-color: #fefefe;
    max-width: var(--common-width);
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}


/* ===== 헤더 ===== */
header {width: 100%;z-index: 100;background-color: #fff;height: var(--header-height);max-width: var(--common-width);display: flex;justify-content: space-between;align-items: center;position: fixed;left: 50%;top: 0;transform: translateX(-50%);}
header.default {justify-content: center;background-color: #c7e9f9;}
header h1 {font-size: 1.8rem;text-align: center;}
header h1 img {height: calc(var(--header-height) / 3);display: block;}
header .prev {cursor: pointer;height: var(--header-height);width: calc(var(--header-height) / 1.2);background: url(../img/btn-back.png) no-repeat center / 40%;}
header .dummy {height: var(--header-height);width: calc(var(--header-height) / 1.2);}



/* ===== 하단 ===== */
footer {position: fixed;left: 50%;bottom: 0;height:var(--footer-height);width: 100%;z-index: 100;transform: translateX(-50%);max-width: var(--common-width);background-color: #fff;border-radius: 2rem 2rem 0 0;box-shadow: 0 .1rem .7rem rgba(0, 0, 0, .3);}
footer ul {display: flex;justify-content: space-between;align-items: center;height: 100%;width: 100%;}
footer li {height: 100%;width: 100%;}
footer li.open {}
footer a, footer li.open {
    color: #727171;
    font-size: 1.4rem;
    position: relative;
    padding-top: 2.4rem;
    height: 100%;
    width: 100%;
    transition: .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
}
footer a::before, footer li.open::before {
    content: "";
    position: absolute;
    left: 50%;
    top:1.2rem;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
}
footer li:nth-of-type(1) a::before {
    background: url(../img/bottom-bar-btn-1-1.png) no-repeat center / contain;
}
footer li:nth-of-type(2) a::before {
    background: url(../img/bottom-bar-btn-2-2.png) no-repeat center / contain;
}
footer li:nth-of-type(3) a::before {
    background: url(../img/bottom-bar-btn-3-3.png) no-repeat center / contain;
}
footer li:nth-of-type(4)::before {
    background: url(../img/bottom-bar-btn-4-4.png) no-repeat center / contain;
}
footer li:nth-of-type(1).on a::before {
    background: url(../img/bottom-bar-btn-1.png) no-repeat center / contain;
}
footer li:nth-of-type(2).on a::before {
    background: url(../img/bottom-bar-btn-2.png) no-repeat center / contain;
}
footer li:nth-of-type(3).on a::before {
    background: url(../img/bottom-bar-btn-3.png) no-repeat center / contain;
}
footer li:nth-of-type(4).on::before {
    background: url(../img/bottom-bar-btn-4.png) no-repeat center / contain;
}
footer li.on a {font-weight: 800;color: #0766ad;}











nav .inner {
    transition: all .5s cubic-bezier(0.175, 0.885, 0.32, 1);
    background: #ffffff url(../img/splash-img.png) no-repeat 300% 95% / 90%;
    overflow-y: scroll;
    position:fixed;
    z-index: 1000;
    left:0;
    height:100%;
    width:100%;
    top:0;
    display: none;
}
nav.on .inner {display: block;}
nav.on .outer {display: block;}
.nav_header {
    height: var(--header-height);
    display: flex;align-items: center;justify-content: space-between;
}
.nav_header a img {
    height: calc(var(--header-height) / 3);
    display: block;
}
.nav_header .dummy {
    width: var(--header-height);
    height: var(--header-height);
}
.nav_header .close {
    opacity: .5;
    cursor: pointer;
    width: var(--header-height);
    height: var(--header-height);
    background:url('../img/close.png') no-repeat center / 1.5rem;
}
nav .content {
    width: 100%;height: calc(100% - var(--header-height));
}
nav .content li {
    padding: 0 4rem;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #262626;
    height: 5rem;width: 100%;
    display: flex;align-items: center;
}
nav .content li.on {
    color: #0061aa;
    font-weight: 800;
}
nav .content li.on {background-color: #cbe9f4;}
nav .content li a {
    background: inherit;
    display: flex;align-items: center;
    height: 100%;width: 100%;
    line-height: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
}









/* ===== 홈 ===== */
#home {}
#home .title {
    background: #c7e9f9 url(../img/main-img.png) no-repeat calc(100% - 1.5rem) 0 / 10rem;
    margin-bottom: 8rem;
}
#home .title h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    color: #111;
    transform: translateY(20%);
    padding: 7rem 1.5rem 0;
    font-family: 'GmarketSans', sans-serif;
}
#home .title h2 b {
    font-family:inherit;
    line-height: inherit;
    font-weight: bold;
    color: #0060a9;
    font-size: 2.2rem;
}
#home .title .banner {
    transform: translateY(50%);
    padding: 1.5rem;
    display: flex;justify-content: space-between;
    background-color: #29adb2;
    margin: 1.5rem;
}
#home .title .banner p {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}
#home .title .banner p img {
    width: .8rem;margin-top: .7rem;margin-left: .3rem;
}
#home .title .banner > img {
    width: 5rem;
    height: 80%;
    object-fit: contain;
}
#home .title .banner p b {
    line-height: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: #ffbd26;
}
#home .grid {
    margin: 4rem 1.5rem;
    display: grid;grid-template-columns: repeat(2, 1fr);gap: 1rem;
}
#home .grid a {
    font-size: 1.4rem;
    font-weight: 800;
    color: #19326b;
    text-align: center;
    line-height: 1.3;
    margin-bottom:2rem;
    display: flex;flex-direction: column;gap: .5rem;align-items: center;
}
#home .grid a img {
    width: 5rem;
}
#home .news {padding: 1.5rem;}
#home .news .more {
    display: block;
    margin-right: 0;
    font-size: 1.4rem;
    font-weight: bold;
    margin-left: auto;
    width: fit-content;
}


/* ====== 홈 > search_swiper ====== */
#home_search {
    padding: 1.5rem;
}
#home_search .more {
    font-size: 1.6rem;
    font-weight: 800;
    color: #545454;
    margin-right: 0;
    display: block;
    width: fit-content;
    margin-left: auto;
}
.search_swiper {margin: 1.5rem 0;}
.search_swiper .swiper-wrapper {height: fit-content;padding-bottom: 4rem;}
.search_swiper .swiper-slide {
    padding: 1.5rem 2.5rem;
    border: 1px solid #ddd;
    min-height: 15rem;
}
.search_swiper .swiper-slide h3 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.4;
    min-height: 7rem;
    color: #cb4024;
    margin-bottom: 1rem;
    word-break: break-all;
}
.search_swiper .swiper-slide h4 {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 300;
    color: #101010;
    word-break: break-all;
}
.search_swiper .swiper-slide h5 {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 300;
    color: #686866;
    word-break: break-all;
}
.search_swiper .swiper-slide img {display: block;width: 50%;height: 100%;object-fit: cover;}
.swiper-pagination {
    left: 50% !important;
    bottom: 2rem !important;
    transform: translateX(-50%) !important;
    width: fit-content !important;
}
.swiper-pagination-bullet {
    border-radius: 10rem !important;
    height: .8rem !important;width: .8rem !important;
}
.swiper-pagination-bullet-active {
    background-color: #d1573e !important;
    width: 1.5rem !important;
}
.swiper-button-next:after, .swiper-button-prev:after {opacity: 0;}
.swiper-button-prev {background: url(../img/left1.png) no-repeat center / 0.9rem;}
.swiper-button-next {background: url(../img/right1.png) no-repeat center / 0.9rem;}








/* ====== 뉴스 ====== */
.news_box {
    padding-bottom: 2rem;
}
.newslink {
    gap: 1rem;
    height:11rem;
    display: flex;
    margin: .5rem 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #f3f3f3;
}
.newslink img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
}
.newslink > span {
    width: 50%;
}
.newslink h3 {
    font-size: 1.6rem;
    font-weight: bold;
    word-break: break-all;
    color: #1d1d1d;
    line-height: 1.4;
}
.newslink p {
    font-size: 1.2rem;
    color: #627791;
    line-height: 1.4;
    font-weight: 300;
    margin-top: .3rem;
}
.newslink .date {
    font-size: 1.2rem;
    color: #989898;
    line-height: 1.4;
    margin-top: 1rem;
}
.newslink .text_wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}




/* ====== QnA ====== */
.qna h2 {
    margin: 4rem 2rem 2.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: #2b5fab;
}
.qna .tabs {
    display: flex;gap: 1rem;
    margin: 0 1.5rem;
}
.qna .tabs a {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2b5fab;
    border-radius: .8rem;
    text-align: center;
    min-width: 10rem;
    padding: .8rem 1rem;
    background-color: #dbe4f1;
}
.qna .tabs a.on {
    color: #fff;
    background-color: #00509f;
}
.qna .box {margin: 1.5rem;background-color: #fff;box-shadow: .2rem .3rem .3rem rgba(107, 109, 136, 0.1);}
.qna .box:first-of-type {margin-top: 2.5rem;}
.qna .box span {
    display: block;
    border-top: 1px solid #ccc;
}
.qna .box .ques {
    font-size: 1.6rem;font-weight: 800;line-height: 1.4;color: #252525;
    background: url(../img/qna-icon.png) no-repeat 1.5rem 2rem / 2rem;
    padding: 1.8rem 1.5rem 1.8rem 4.5rem;
}
.qna .box .ans {display: none;padding: 1.5rem 0 3rem;line-height: 1.6;font-size: 1.4rem;font-weight: 300;color: #627791;border-top: 1px solid #ccc;margin: 0 1.5rem;}
.qna .box.on .ques {background: url(../img/qna-close.png) no-repeat calc(100% - 2rem) center / 1.5rem;}
.qna .box.on .ans {display: block;}








/* qna_sub */
#qna_sub {}
#qna_sub h2 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.4;
    color: #252525;
    background: url(../img/qna-icon.png) no-repeat 1.5rem 3.2rem / 2rem;
    padding: 3rem 1.5rem .5rem 4.5rem;
}
#qna_sub pre {
    background-color: #f2f2f2;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #6d6d6d;
    border-radius: 1rem;
    padding: 2rem 1.5rem 4rem;
    margin: 1.5rem;
    word-break: break-all;
}





/* ===== motest ===== */
.motest {
    padding-bottom: var(--footer-height);
}
.motest .step {
    width: 100%;
    padding: 0 1.5rem;
}
.motest > h2 {
    font-weight: 900;
    font-size: 1.8rem;
    color: #2b2b2b;
    line-height: 1.4;
    margin: 2rem 1.5rem;
}
.motest .ques {
    min-height: 16rem;
    font-weight: bold;
    font-size: 2.2rem;
    color: #2b2b2b;
    line-height: 1.4;
    text-align: center;
    margin: .5rem 1.5rem 3rem;
    display: flex;justify-content: center;align-items: center;
}
.motest .answer {
    position: relative;
    margin: 1.5rem;
    display: flex;
    height: 17rem;
    gap: 1.5rem;
}
.motest .answer li {
    width: 100%;height: 100%;
}
.motest .answer input {
    position: absolute;
    left: 0;top: 0;
}
.motest .answer label {
    background-color: #e5e5e5;
    display: flex;flex-direction: column;justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 1.5rem;
}
.motest .answer label p {
    font-size: 2rem;
    font-weight: 800;
    color: #837f7f;
}
.motest .answer label img {
    width: 4.5rem;
    display: block;
    margin-right: 0;
    margin-left: auto;
    object-fit: contain;
}

.motest .answer input + label {filter: grayscale(1);}
.motest .answer input:checked + label {filter: grayscale(0);}
.motest .answer input:checked + label:nth-of-type(1) {background-color: #dfefdf;}
.motest .answer input:checked + label:nth-of-type(2) {background-color: #f4d7d7;}
.motest .answer input:checked + label:nth-of-type(1) p {color: #61b965;}
.motest .answer input:checked + label:nth-of-type(2) p {color: #ef5350;}
#gogoresult {
    margin: 1.5rem;
    color: #00509f;
    font-weight: bold;
    background: #ccc url(../img/bottom-bar-btn-1-1.png) no-repeat calc(100% - 1.5rem) center / 6rem;
}
#gogoresult img {
    width: 100%;
}



/* 모의 테스트 결과 페이지 */
#motest_result {}
#motest_result .title {
    display: flex;flex-direction: column;justify-content: center;align-items: center;gap: 2rem;
    padding: 4rem 0;
}
#motest_result .title.yes {
    background: url(../img/result-page-img.png) no-repeat center / contain;
}
#motest_result .title h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: #1b1b1b;
    line-height: 1.3;
}
#motest_result .title h2 b {
    line-height: inherit;
    font-weight: 800;
    font-size: 2.8rem;
    color: inherit;
}
#motest_result .title img {
    width: 10rem;
}
#motest_result .title h2 b.no {color: #ef4e4b;}
#motest_result .title h2 b.yes {color: #63ba67;}
#motest_result .desc {
    background-color: #f2f2f2;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #8e8e8e;
    padding: 1.5rem;
    margin: 1.5rem;
}
#link_banners {
    padding-bottom: var(--footer-height);
}
#link_banners a {
    margin: 1.5rem;
    color: #7e8084;
    padding: 1.5rem 1.5rem 1.5rem 6rem;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.4;
    box-shadow: .1rem .1rem .3rem rgba(0, 0, 0, .1);
    display: flex;justify-content: space-between;align-items: center;
    background-color: #fff;
}
#link_banners a p {
    display: block;
    color: #fff;
    padding: .8rem 1.5rem;
    font-size: 1.6rem;
    background-color: #00509f;
}
#link_banners a:nth-of-type(1) {background: url(../img/btn-icon-7.png) no-repeat 1.5rem center / 3rem;}
#link_banners a:nth-of-type(2) {background: url(../img/btn-icon-8.png) no-repeat 1.5rem center / 3rem;}







/* sub_page : jang.php, hak.php, jija.php */
#sub_page {}
#sub_page .tabs {
    display: flex;
    margin: 1.5rem;
}
#sub_page .tabs a {
    width: 50%;
    display: flex;justify-content: center;align-items: center;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: #b9b9b9;
    line-height: 1.2;
    background-color: #dddddd;
}
#sub_page .tabs a.on {
    color: #fff;
    background-color: #29adb2;
}
#sub_page .contents {padding: 2rem 0;}
#sub_page .contents h2, #sub_page .contents h3 {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 900;
    color: #292929;
    position: relative;
    margin: 0 1.5rem 1rem;
}
#sub_page .contents h3 {
    padding-left: 2.5rem;
}
#sub_page .contents h3::before {
    content: "";
    position: absolute;
    height: 2rem;width: 2rem;
    background: url(../img/title-icon-1.png) no-repeat center / contain;
    left: 0;top: 50%;transform: translateY(-50%);
}
#sub_page .contents pre {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #727272;
    padding: 0 1.5rem 3rem;
}
#sub_page .contents pre.border {
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}
#sub_page .contents p {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.6;
    color: #00952e;
    margin: 0 1.5rem;
}
#sub_page .contents img {
    width: 100%;padding: 1.5rem;
}

