* {
    --common-width : 550px;
    --header-height: 5.5rem;
}
header {
    width: 100%;
    z-index: 100;
    background-color: #fff;
    height: var(--header-height);
    max-width: var(--common-width);
    border-bottom: 1px solid #5c6a76;
    position: fixed;left: 50%;top: 0;transform: translateX(-50%);
    display: flex;justify-content: space-between;align-items: center;
}
header h1 img {
    height: calc(var(--header-height) / 3);
    display: block;
}
header .prev {
    cursor: pointer;
    width: var(--header-height);
    height: var(--header-height);
    background: url(../img/prev.png) no-repeat center / 2rem;
}
header .dummy {
    width: var(--header-height);
    height: var(--header-height);
}

nav .inner {
    transition: all .5s cubic-bezier(0.175, 0.885, 0.32, 1);
    background-color: #f9f9f9;
    overflow-y: scroll;
    position:fixed;
    z-index: 1000;
    height:100%;
    width:75%;
    top:0;
    right: -100%;
}
nav .outer {
    background-color:rgba(0, 0, 0, .5);
    min-height: 100vh;
    position:fixed;
    display: none;
    z-index: 999;
    width:100%;
    left:0;
    top:0;
}
nav.on .inner {display: block;right: 0;}
nav.on .outer {display: block;}
nav .nav_header {
    justify-content: right;
    align-items: center;
    display: flex;
    height: var(--header-height);
}
nav .nav_header .close {
    height: var(--header-height);
    width: var(--header-height);
    background: url(../img/close.png) no-repeat center / 2rem;
}
nav .content {
    padding: 0 1.5rem;
}
nav .content li a {
    font-size: 1.7rem;
    color: #96a4b5;
    padding: 2rem 0;
    font-weight: 500;
    display: flex;
    border-bottom: 1px solid #e6e6e6;
    background: url(../img/menu-arrow.png) no-repeat 100% center / .8rem;
}
nav .content li.on a {
    color: #466db4;
    font-weight: bold;
}
footer {
    position: fixed;
    left: 50%;bottom: 0;
    height:5rem;
    width: 100%;
    transform: translateX(-50%);
    max-width: var(--common-width);
    background-color: #fff;
    border-top: 1px solid #f3f3f3;
}
footer ul {display: flex;justify-content: space-between;align-items: center;height: 100%;width: 100%;}
footer li {height: 100%;width: 100%;}
footer a {height: 100%;width: 100%;display: flex;justify-content: center;align-items: center;font-size: 1.4rem;font-weight: bold;color: #111;position: relative;}
footer a.on::before {content: "";width: 45%;height: 2rem;position: absolute;left: 50%;top: 50%;border-radius: 10rem;transform: translate(-50%, -50%);background-color: rgba(0, 0, 0, .1);}
footer a.on::after {content: "";width: 50%;height: 2px;position: absolute;left: 50%;top: 0;background-color: #111;transform: translate(-50%, -50%);}
main {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom:2rem;
    max-width: var(--common-width);
    padding-top: var(--header-height);
}





/* =================================================== */



main {}
main .tabs {
    position: relative;
    height: 5rem;
    display: flex;
    padding: .5rem;
    border-radius: 1rem;
    margin: 3rem 1.5rem;
    background-color: #0c356a;
}
main .tab {
    width: 50%;
    z-index: 11;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    font-size: 1.8rem;
    display: flex;justify-content: center;align-items: center;
}
main .slide {
    border-radius: .5rem;
    background-color: #fff;
    width: calc(50% - .5rem);
    height: calc(100% - 1rem);
    position: absolute;
    left: .5rem;
    top: .5rem;
    transition: .3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
main .tab.move {
    color: #0a3469;
    font-weight: 800;
}
main .slide.move {
    left: 50%;
}


/* 계산기 */
.calc_wrap {
    margin: 1.5rem 1.5rem 3rem;
}
.calc_wrap h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1d3651;
}
.calc_wrap .grid {
    display: grid;
    margin: 1.5rem 0 3rem;
    border: 1px solid #a9b4c4;
    grid-template-columns: repeat(2, 1fr);
}
.calc_wrap .grid .inputname {
    padding: 1.5rem;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.2;
    color: #646b71;
    text-align: center;
    border-right: 1px solid #a9b4c4;
    border-bottom: 1px solid #a9b4c4;
    background-color: #fff0ce;
}
.calc_wrap .grid .inputname:last-of-type {
    border-bottom: none;
}
.calc_wrap .grid span {
    position: relative;
    display: flex;gap: .5rem;align-items: center;
    border-bottom: 1px solid #a9b4c4;
}
.calc_wrap .grid span:last-of-type {
    border-bottom: none;
}
.calc_wrap .grid span p {
    font-size: 1.4rem;
    color: #aaa;
    position: absolute;
    top: 50%;right: 1rem;
    transform: translateY(-50%);
}
.calc_wrap .grid input[type="text"] {
    border-bottom: 1px solid #a9b4c4;
    font-size: 1.4rem;
    width: 100%;height: 100%;
    padding: 1.5rem 3rem 1.5rem 1.5rem;
    color: #758190;
}
.calc_wrap .grid input[type="text"]:last-of-type {
    border-bottom: none;
}
.calc_wrap .grid input[type="text"]::placeholder {
    color: #d2d2d2;
}



#beforeOnlyCheck label {
    display: flex;justify-content: end;align-items: center;gap: .5rem;
    font-size: 1.6rem;
    font-weight: bold;
    color: #707d8c;
    cursor: pointer;
}




.home_banner {
    margin-top:6rem;
}
.home_banner a {
    border-radius: 1rem;
    margin: 1.5rem;
    padding: 2rem 1.5rem;
    display: flex;align-items: center;justify-content: space-between;
}
.home_banner a span {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;gap: 1.5rem;align-items: center;
}
.home_banner a span img {
    width: 4rem;
}
.home_banner a > img {
    width: 1rem;
}




.commonBtn {
    color: #fff;
    display: block;
    margin: 1.5rem;
    padding: 1.7rem;
    font-weight: bold;
    font-size: 1.6rem;
    border-radius: 1rem;
    width: calc(100% - 3rem);
    background-color: #0a3469;
}
.color1 {background-color: #ffc436;}
.color2 {background-color: #0174be;}
.color3 {background-color: #f97db0;}




.sub {}
.sub h2 {
    color: #1b3450;
    font-weight: 800;
    line-height: 1.4;
    font-size: 1.8rem;
    margin: 3rem 1.5rem 1rem;
}
.sub pre {
    color: #6d7379;
    line-height: 1.4;
    font-size: 1.6rem;
    margin: 1rem 1.5rem;
}
.sub pre b {
    line-height: inherit;
    font-weight: bold;
    font-size: inherit;
    color: #222; 
    background: linear-gradient(transparent 0%, transparent 40%, #faf3cf 40%, #faf3cf 100%);
}
.sub .commonBtn {
    display: flex;justify-content: space-between;align-items: center;
}
.sub .commonBtn p, .sub .commonBtn img {width: 1rem;}
.sub .commonBtn:nth-of-type(1) {
    margin-top: 8rem;
}



























@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    input[type='checkbox'] {
        --active: #798593;
        --active-inner: #fff;
        --focus: 2px rgba(39, 94, 254, .3);
        --border: #798593;
        --background: #fff;
        --disabled: #F6F8FF;
        --disabled-inner: #798593;
        -webkit-appearance: none;
        -moz-appearance: none;
        height: 15px;
        outline: none;
        display: inline-block;
        vertical-align: top;
        position: relative;
        margin: 0;
        cursor: pointer;
        border: 1px solid #798593;
        background: var(--b, var(--background));
        transition: background .3s, border-color .3s, box-shadow .2s;
    }
    input[type='checkbox']:after {
        content: '';
        display: block;
        left: 0;
        top: 0;
        position: absolute;
        transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
    }
    input[type='checkbox']:checked {
        --b: var(--active);
        --bc: var(--active);
        --d-o: .3s;
        --d-t: .6s;
        --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
    }
    input[type='checkbox']:disabled {
        --b: var(--disabled);
        cursor: not-allowed;
        opacity: .9;
    }
    input[type='checkbox']:disabled:checked {
        --b: var(--disabled-inner);
        --bc: var(--border);
    }
    input[type='checkbox']:disabled + label {
        cursor: not-allowed;
    }
    input[type='checkbox']:hover:not(:checked):not(:disabled) {
        --bc: var(--border-hover);
    }
    input[type='checkbox']:focus {
        box-shadow: 0 0 0 var(--focus);
    }
    input[type='checkbox']:not(.switch) {
        width: 15px;
    }
    input[type='checkbox']:not(.switch):after {
        opacity: var(--o, 0);
    }
    input[type='checkbox']:not(.switch):checked {
        --o: 1;
    }
    input[type='checkbox'] + label {
        font-size: 1.4rem;
        line-height: 15px;
        display: inline-block;
        vertical-align: top;
        cursor: pointer;
        color: #727f8d;
        margin-left: 4px;
    }
    input[type='checkbox']:not(.switch) {
        border-radius: 7px;
    }
    input[type='checkbox']:not(.switch):after {
        width: 5px;
        height: 9px;
        border: 2px solid var(--active-inner);
        border-top: 0;
        border-left: 0;
        left: 7px;
        top: 4px;
        transform: rotate(var(--r, 20deg));
    }
    input[type='checkbox']:not(.switch):checked {
        --r: 43deg;
    }
    input[type='checkbox'].switch {
        width: 32px;
        border-radius: 11px;
    }
    input[type='checkbox'].switch:after {
        left: 1px;
        top: 1px;
        border-radius: 50%;
        width: 11px;
        height: 11px;
        background: var(--ab, var(--border));
        transform: translateX(var(--x, 0));
    }
    input[type='checkbox'].switch:checked {
        --ab: var(--active-inner);
        --x: 17px;
    }
    input[type='checkbox'].switch:disabled:not(:checked):after {
        opacity: .6;
    }
    
    
}







.row {
    border-radius: .5rem;
    margin: .5rem 1.5rem;
    border: 1px solid #ccc;
    display: flex;
    padding: 1rem;
}
.row p {
    font-size: 1.6rem;
}