body::-webkit-scrollbar {width: 5px;height:5px;}
body::-webkit-scrollbar-thumb {height: 30%;background: rgba(128, 117, 105, .5);border-radius: 3px;}
body::-webkit-scrollbar-track {background: rgba(128, 117, 105, .3);}

* {
    --header-height-1 : 5.5rem;
    --footer-height-1 : 6.5rem;
    --common-width : 720px;
    --maincolor1 : #1c7765;
}
main {width: 100%;margin: 0 auto;max-width: var(--common-width);min-height: 100vh;padding-top: var(--header-height-1);padding-bottom: var(--footer-height-1);background-color: #fff;}
main.home {background-color: #ebedf3;}

header {
    top: 0;
    left: 50%;
    width: 100%;
    z-index: 100;
    position: fixed;
    background-color: #fff;
    transform: translateX(-50%);
    height: var(--header-height-1);
    max-width: var(--common-width);
    border-bottom: 1px solid #ececec;
    display: flex;align-items: center;justify-content: center;
}
header.home {
    justify-content: center;
    background-color: #ebedf3;
    border-bottom: none;
}
header #logoutBtn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: absolute;
    left: 1.5rem;
}
header #logoutBtn img {
    width: 1rem;
}
header .logo img {
    height: calc(var(--header-height-1) - 3.3rem);
    display: block;
}
header .menu, header .dummy, header .prev {
    width: var(--header-height-1);
    height: var(--header-height-1);
    cursor: pointer; 
    position: absolute;
    left: 0;
}
header .menu img, header .prev img {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    object-fit: contain;
}
header .prev {
    background: url(../img/prev.png) no-repeat calc(40%) center / 1rem;
}

#logoutModal {
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    height: 100%;
    padding: 0 1.5rem;
    z-index: 8888;
    top: 0;
}
#logoutModal .box {
    background: #fff;
    width: 100%;
    text-align: center;
    padding-top: 4rem;
}
#logoutModal .box > h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #3561ef;
}
#logoutModal .box > p {
    font-size: 1.4rem;
    margin-bottom: 4rem;
    font-weight: 600;
    color: #7f8080;
}
#logoutModal .box .buttonWrap {
    display: flex;
}
#logoutModal .box .buttonWrap form {
    width: 50%;
}
#logoutModal .box .buttonWrap form button {
    width: 100%;
    font-size: 1.6rem;
    font-weight: 600;
    color: #848585;
    background: #f5f5f5;
    padding: 2rem 0;
}
#logoutModal .box .buttonWrap > button {
    width: 60%;
    font-size: 1.6rem;
    font-weight: 800;
    padding: 2rem 0;
    color: #fff;
    background: #3561ef;
}
#logoutModal .box > button {
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 1px solid #333;
}
#logoutModal .withdraw {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f4f4f4;
}
#logoutModal .withdraw p {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #acacac;
}
#logoutModal .withdraw p img {
    width: 1rem;
}
#logoutModal .withdraw button {
    font-size: 1.4rem;
    font-weight: 600;
    color: #7c7d7d;
}

#withdrawModal {
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    height: 100%;
    padding: 0 1.5rem;
    z-index: 8888;
    top: 0;
}
#withdrawModal .box {
    background: #fff;
    width: 100%;
    text-align: center;
    padding-top: 4rem;
}
#withdrawModal .box > h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #3561ef;
}
#withdrawModal .box > p {
    font-size: 1.4rem;
    margin-bottom: 4rem;
    font-weight: 600;
    color: #7f8080;
}
#withdrawModal .box .buttonWrap {
    display: flex;
}
#withdrawModal .box .buttonWrap form {
    width: 40%;
}
#withdrawModal .box .buttonWrap form button {
    width: 100%;
    font-size: 1.6rem;
    font-weight: 600;
    color: #848585;
    background: #f5f5f5;
    padding: 2rem 0;
}
#withdrawModal .box .buttonWrap > button {
    width: 60%;
    font-size: 1.6rem;
    font-weight: 800;
    padding: 2rem 0;
    color: #fff;
    background: #3561ef;
}

footer {
    z-index: 100;
    width: 100%;
    position: fixed;
    bottom: 0;left: 50%;
    background-color: #fff;
    border-top: 1px solid #e4e4e4;
    transform: translateX(-50%);
    height: var(--footer-height-1);
    max-width: var(--common-width);
    display: flex;align-items: center;justify-content: space-between;
}
footer a {
    position: relative;
    font-size: 1.2rem;
    color: #5e5e5e;
    height: 100%;width: 100%;
    display: flex;justify-content: center;align-items: end;
    padding-bottom: 1.3rem;
}
footer a.on {
    color: #f9696a;
    font-weight: bold;
}
footer a::after {
    content: "";
    width: 2.5rem;
    height: 2.5rem;
    position: absolute;
    transform: translate(-50%, 0);
    left: 50%;bottom: calc(1.3rem + 1.2rem + .5rem);
}
footer a:nth-of-type(1)::after {
    background: url(../img/footer1.png) no-repeat center / contain;
}
footer a:nth-of-type(1).on::after {
    background: url(../img/footer1-on.png) no-repeat center / contain;
}
footer a:nth-of-type(2)::after {
    background: url(../img/footer2.png) no-repeat center / contain;
}
footer a:nth-of-type(2).on::after {
    background: url(../img/footer2-on.png) no-repeat center / contain;
}
footer a:nth-of-type(3)::after {
    background: url(../img/footer3.png) no-repeat center / contain;
}
footer a:nth-of-type(3).on::after {
    background: url(../img/footer3-on.png) no-repeat center / contain;
}
footer a:nth-of-type(4)::after {
    background: url(../img/footer4.png) no-repeat center / contain;
}
footer a:nth-of-type(4).on::after {
    background: url(../img/footer4-on.png) no-repeat center / contain;
}



/* ================================= */
.home > img {
    width: 30%;
    display: block;
    margin: 0 auto;
}
.home > h2 {
    color: #333;
    font-size: 2rem;
    line-height: 1.4;
    margin-top: 2rem;
    text-align: center;
    font-family: 'Jalnan', sans-serif;
}
.home > h3 {
    width: 80%;
    line-height: 1.4;
    color: #767777;
    font-size: 1.6rem;
    text-align: center;
    margin: 1rem auto 2rem;
}
.home .banner {
    background-color: #fff;
    border-radius: 1.5rem;
    margin: 1.5rem;
    display: block;
    box-shadow: 0 0 1rem rgba(100, 100, 100, .1);
}
.home .banner1 {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.home .banner1 a {
    font-size: 1.6rem;
    padding: 1rem;
    gap: 1rem;
    display: flex;align-items: center;justify-content: end;
}
.home .banner1 a:nth-of-type(1) {border-bottom: 1px solid #f3f3f3;border-right: 1px solid #f3f3f3;}
.home .banner1 a:nth-of-type(2) {border-bottom: 1px solid #f3f3f3;}
.home .banner1 a:nth-of-type(3) {border-right: 1px solid #f3f3f3;}
.home .banner1 a img {
    width: 4rem;
}
.home .banner1 a p {
    font-size: 1.6rem;
    color: #5c5c5c;
    width: 65%;
    line-height: 1.2;
}
.home .banner2 {
    padding: 1rem 1.5rem;
    display: flex;justify-content: space-between;align-items: center;
}
.home .banner2 p {
    font-size: 1.6rem;
    font-weight: bold;
    color: #000000;
}
.home .banner2 b {
    line-height: inherit;
    font-weight: 800;
    font-size: inherit;
    color: #f96263;
}
.home .banner2 img {
    width: 5rem;
}
.home .banner3 {
    padding: 1rem 1.5rem;
}
.home .banner3 a {
    font-size: 1.6rem;
    font-weight: bold;
    color: #000000;
    padding: 1.5rem 0;padding-right: .5rem;
    display: flex;justify-content: space-between;align-items: center;
}
.home .banner3 a span {
    font-size: 1.6rem;
    color: #cccccc;
    display: flex;align-items: center;gap: 1rem;
}
.home .banner3 a img {
    width: .5rem;
}




/* sub */
.commonh2 {
    padding: 1.3rem;
    color: #313131;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ececec;
}


.sub section.type1 {
    padding: 1.5rem;
}
/* .sub section.type1:last-of-type {margin-bottom: 5rem;} */
.sub section.type1 h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f95c5d;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.sub section.type1 pre {
    font-size: 1.6rem;
    color: #242424;
    line-height: 1.4;
}


/* .sub section.type2 {} */
.sub section.type2 h3 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #3e3a39;
    line-height: 1.4;
    padding: 1.5rem;
    background: url(../img/arrow.png) no-repeat calc(100% - 1.5rem) center / 1rem;
    border-bottom: 1px solid #ececec;
}
.sub section.type2 .content {
    background-color: #f5f5f5;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: #242424;
    line-height: 1.4;
    display: none;
}
.sub section.type2 .content pre {
    line-height: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
}
.sub section.type2 .content h4 {
    line-height: inherit;
    font-weight: 800;
    font-size: inherit;
    color: inherit;
    margin-top: 2rem;
}
.sub section.type2 .content h4:first-of-type {
    margin-top: 0;
}
.sub section.type2 .content pre.desc {
    color: #1d4eee;
}
.sub section.type2.on h3 {
    color: #f95a5b;
    font-weight: 700;
    background: #fff3f3 url(../img/arrow2.png) no-repeat calc(100% - 1.5rem) center / 1rem;
}
.sub section.type2:last-of-type h3 {
    border-bottom: none;
}
.sub section.type2.on .content {
    display: block;
}



/* qna */
.qna {}
.qna .box {
    border-bottom: 1px solid #cecece;
}
.qna .box span {position: relative;}
.qna .box .ques {
    display: block;
    padding: 1.5rem 3rem 1.5rem 4rem;
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: bold;
    color: #000000;
    background: url(../img/arrow.png) no-repeat calc(100% - 1.5rem) center / 1rem;
}
.qna .box .ans {
    display: none;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    font-size: 1.6rem;
    line-height: 1.4;
    color: #1b1b1b;
    border-top: 1px solid #cecece;
    background-color: #f7f7f7;
}
.qna .box .ques::after {
    content: "Q.";
    position: absolute;
    left: 1.5rem;top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #3e3a39;
}
.qna .box .ans::after {
    content: "A.";
    position: absolute;
    left: 1.5rem;top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #333333;
}
.qna .box.on .ques {
    color: #f96364;
    background: #fff3f3 url(../img/arrow.png) no-repeat calc(100% - 1.5rem) center / 1rem;
}
.qna .box.on .ques::after {
    color: #f96364;
}
.qna .box.on .ans {
    display: block;
}




/* 예방접종 디데이 계산하기 */
#birth {
    padding: .8rem 2rem;
    display: flex;justify-content: space-between;align-items: center;
    gap: 1rem;
    height: 5.5rem;
    background-color: #f96364;
}
#birth p {
    font-size: 1.6rem;
    color: #fff;
}
#birth input[type="date"] {
    height: 100%;width: 50%;
    border-radius: .3rem;
    font-size: 1.6rem;
    padding: .5rem;
    color: #ddd;
    text-align: center;
}
.dday {}
.dday .result {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.3fr;
}
.dday .result p {
    padding: 1.5rem;
    font-size: 1.6rem;
    color: #858686;
    line-height: 1.6;
    word-break: break-all;
    border-bottom: 1px solid #cfcdcd;
}
.dday .result p b {
    line-height: inherit;
    font-weight: 800;
    font-size: inherit;
    color: #232323;
    display: block;
}
.dday .result p:nth-of-type(3n+1){
    font-weight: bold;
    color: #313131;
}
.dday .result p.top {
    padding: 1rem;
    font-weight: bold;
    color: #b38484;
    background-color: #fff3f3;
}
.dday #sorry {
    font-size: 1.6rem;
    margin: 10% 0;
    display: block;
    color: #858686;
    text-align: center;
}




/* 이상반응 신고 */
.tell {}
.tell section:first-of-type {
    border-bottom: 3px solid #dddddd;
    padding: 1.5rem;
}
.tell .inner {
    border: 1px solid #e5e5e5;
    background-color: #f4f8fc;
    padding: 1.5rem;
    padding-left: 2.5rem;
}
.tell .inner p {
    font-size: 1.6rem;
    color: #222222;
    line-height: 1.4;
    position: relative;
}
.tell .inner p::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #2353ee;
}
.tell .inner p:first-of-type {
    margin-bottom: 2rem;
}
.tell .result {
    padding: 3rem 1.5rem 4rem;
    display: flex;flex-direction: column;gap: 3rem;
}
.tell .result .before, .tell .result .noresult {
    font-size: 1.6rem;
    line-height: 1.4;
    color: #9b9b9b;
    padding: 2rem 0;
    text-align: center;
}
.tell .result span {
    font-size: 1.6rem;
    line-height: 1.4;
    color: #202020;
}
.tell .result span .name {
    line-height: inherit;
    font-weight: 800;
    font-size: 1.6rem;
    color: inherit;
    color: #000;
    margin-bottom: .5rem;
}
.tell .result span .symptom {
    line-height: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
}
.tell section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #484848;
    line-height: 1.2;
    margin: 3rem 1.5rem 0;
}
.tell .golink {
    height: 15rem;
    width: 100%;gap: 1rem;
    background-color: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    display: flex;justify-content: center;align-items: center;flex-direction: column;
}
.tell .golink p {
    text-align: center;
    font-size: 1.6rem;
    color: #000000;
}
.tell .golink a {
    padding: 1.5rem 2rem;
    border-radius: .3rem;
    color: #fff;
    display: block;
    font-size: 1.6rem;
    width: fit-content;
    background-color: #3561ef;
    margin-bottom: 2rem;
}
#tellform {
    position: relative;
    padding:2rem 1.5rem;
    border-bottom: 1px solid #ddd;
}
#tellform input[type="text"]{
    border: 1px solid #ddd;
    width: 100%;
    font-size: 1.6rem;
    color: #313132;
    padding: 1.3rem 6rem 1.3rem 1.7rem;
}
#tellform input[type="text"]::placeholder {
    color: #aaa;
}
#tellform input[type="submit"]{
    position: absolute;
    right: 1.5rem;top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 4rem);
    width: 5rem;
    background: url(../img/search.png) no-repeat center / 2.5rem;
}
