body {
    background: #f8f8f8;
}

header {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    padding: 0 1.5rem;
    z-index: 7777;
    background: #f8f8f8;
}
header h1 {
    width: 12rem;
}
header h1 a {
    width: 100%;
}
header h1 a img {
    width: 100%;
}
header #menuBtn {
    width: 2.5rem;
}
header #menuBtn img {
    width: 100%;
}

.navBg {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 8888;
}
nav {
    background-color: #fff;
    display: flex;
    flex-flow: column nowrap;
    width: 70%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}
nav > h2 {
    font-size: 1.8rem;
    font-weight: 900;
    padding: 2rem 0;
}
nav > .sub {
    display: flex;
    flex-flow: column nowrap;
    margin-bottom: 1.5rem;
}
nav > .sub a {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.5rem 0;
}
nav > a {
    font-size: 1.8rem;
    font-weight: 900;
    padding: 2rem 0;
}
nav > button {
    width: 3rem;
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
}
nav > button img {
    width: 100%;
}

main {
    padding: 2rem 1.5rem 10rem;
}
main .calcWrap {
    padding: 2rem 0 8rem;
}
main .calcWrap p {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #626262;
}
main .calcWrap h2 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.4;
    height: 10rem;
    background-image: url(../img/mian-btn-1.png);
    background-size: 10rem;
    background-position: right bottom;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
}
main .calcWrap h2 em {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fed94a;
}
main .calcWrap a {
    background: #fed94a;
    color: #fff;
    font-size: 1.8rem;
    padding: 2rem 0;
    border-radius: 1.5rem;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
    display: block;
    text-align: center;
}
main .menu {
    padding: 2rem 0;
    display: flex;
    gap: 1.5rem;
}
main .menu a {
    width: 50%;
    border-radius: 1rem;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
    background: #ffefb7;
    position: relative;
    height: 18rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
}
main .menu a:last-child {
    background: #433f3e;
}
main .menu a:last-child span,
main .menu a:last-child strong {
    color: #fff;
}
main .menu a img {
    height: 8rem;
    position: absolute;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
}
main .menu a span {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
main .menu a strong {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.4;
}
main .newsWrap {
    padding: 2rem 0;
}
main .newsWrap h2 {
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
main .newsWrap h2 img {
    width: 3rem;
}
main .newsWrap a {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-radius: 1rem;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1);
    height: 15rem;
    padding: 2rem 1.5rem;
    border: 1px solid #010101;
    background-image: url(../img/arrow-1.png);
    background-repeat: no-repeat;
    background-size: 1.5rem;
    background-position: right 1.5rem center;
}
main .newsWrap a .image {
    width: 40%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
}
main .newsWrap a .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
main .newsWrap a .text {
    position: relative;
    width: 60%;
    height: 100%;
    padding-right: 1.5rem;
}
main .newsWrap a .text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
main .newsWrap a .text p {
    font-size: 1.4rem;
    line-height: 1.4;
}
main .newsWrap a .text .date {
    font-size: 1.4rem;
    position: absolute;
    bottom: 0;
    left: 0;
}
main .qnaWrap {
    padding-top: 2rem;
}
main .qnaWrap h2 {
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
main .qnaWrap h2 img {
    width: 3rem;
}
main .qnaWrap a {
    border-radius: 1rem;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 3rem 1.5rem 1.5rem;
    border: 1px solid #010101;
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    background-image: url(../img/arrow-1.png);
    background-repeat: no-repeat;
    background-size: 1.5rem;
    background-position: right 1.5rem center;
}
main .qnaWrap a span {
    font-size: 1.4rem;
    color: #770c12;
}

/* 서브 */
main > h2 {
    margin-bottom: 3rem;
    font-size: 3rem;
    font-weight: 900;
}
main > p {
    font-size: 1.4rem;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 5rem;
    background: #433f3f;
    width: max-content;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}
main > pre {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 6rem;
}
main > pre b {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.4;
}
main > pre em {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 600;
    color: #1201ea;
}
main > a {
    font-size: 2rem;
    font-weight: 900;
    background: #fed94a;
    border-radius: 1rem;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
    padding: 2.5rem 0;
    display: block;
    text-align: center;
}

/* 계산기 */
main .category {
    display: flex;
    border-radius: 1.5rem;
    padding: 0.5rem;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
    border: 1px solid #d7d7d7;
    margin-bottom: 3rem;
}
main .category a {
    font-size: 1.8rem;
    font-weight: 800;
    padding: 1.5rem 0;
    border-radius: 1.5rem;
    width: 50%;
    text-align: center;
}
main .category a.on {
    background: #ffefb7;
}
main #calcFrm {}
main #calcFrm .box {
    margin-bottom: 4rem;
    padding: 2.5rem 1.5rem;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
    background: #433f3e;
}
main #calcFrm .box h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
}
main #calcFrm .box p {
    font-size: 1.4rem;
    line-height: 1.4;
    color: #fff;
}
main #calcFrm .inputWrap {
    margin-bottom: 4rem;
}
main #calcFrm .inputWrap h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
main #calcFrm .inputWrap label {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    font-size: 1.4rem;
    font-weight: 600;
}
main #calcFrm .inputWrap label input {
    width: 100%;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.5rem 0;
    background: none;
}
main #calcFrm > button {
    font-size: 2rem;
    font-weight: 900;
    background: #fed94a;
    border-radius: 1rem;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
    padding: 2.5rem 0;
    width: 100%;
    margin-top: 4rem;
}
main .result {
    display: none;
}
main .result .inputWrap {
    margin-bottom: 4rem;
}
main .result .inputWrap h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
main .result .inputWrap label {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    font-size: 1.4rem;
    font-weight: 600;
}
main .result .inputWrap label input {
    width: 100%;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 0.5rem 0;
    background: none;
    color: #0000f6;
}
main .result .table {
    overflow-x: auto;
}
main .result table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #333;
}
main .result table thead {
    background: #e7d8b7;
}
main .result table thead th {
    font-size: 1.4rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
}
main .result table thead th:first-child {
    background: #f4e9d8;
}
main .result table tbody {}
main .result table tbody th {
    font-size: 1.4rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    background: #e7d8b7;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
}
main .result table tbody td {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    text-align: right;
}
main .result .buttonWrap {
    display: flex;
    flex-flow: column nowrap;
    gap: 2rem;
    margin-top: 8rem;
}
main .result .buttonWrap button {
    font-size: 2rem;
    font-weight: 900;
    background: #fed94a;
    border-radius: 1rem;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
    padding: 2.5rem 0;
    width: 100%;
}

/* 뉴스 */
main .news {
    display: flex;
    flex-flow: column nowrap;
    gap: 2rem;
}
main .news a {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    height: 15rem;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    background: #fff;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
}
main .news a .image {
    width: 45%;
    height: 100%;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}
main .news a .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
main .news a .text {
    width: 55%;
    height: 100%;
    position: relative;
}
main .news a .text h3 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}
main .news a .text p {
    font-size: 1.4rem;
    line-height: 1.4;
}
main .news a .text .date {
    font-size: 1.4rem;
    position: absolute;
    bottom: 0;
}

/* 질문 */
main .qna {
    display: flex;
    flex-flow: column nowrap;
    gap: 2rem;
}
main .qna .open {
    border: 1px solid #BFBFC0;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}
main .qna .open.on {
    border: 1px solid #6d653c;
}
main .qna .open.on h3 {
    background: #ffda47;
    color: #333;
    font-weight: 800;
}
main .qna .open h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 2.5rem 1.5rem;
    line-height: 1.4;
    color: #787878;
}
main .qna .open h3 img {
    width: 1.5rem;
}
main .qna .open pre {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 1.5rem;
}

/* 결과 */
main .save {
    display: flex;
    flex-flow: column nowrap;
    gap: 1.5rem;
}
main .save a {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #333;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-flow: column nowrap;
    gap: 2rem;
    position: relative;
}
main .save a p {
    font-size: 1.4rem;
}
main .save a h3 {
    font-size: 1.6rem;
    font-weight: 900;
}
main .save a input {
    font-size: 1.6rem;
    font-weight: 900;
    width: 80%;
}
main .save a button {
    width: 5rem;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}
main .save a button img {
    width: 100%;
}