/* MAIN */
main {
    margin-top: 5.9rem;
    min-height: calc(100vh - 5.9rem);
}

/* HEADER */
header {
    width: 100%;
    border-bottom: 1px solid #ddd;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 199;
}
header .logo > a {
    display: block;
    width: 18rem;
}
header .logo > a img {
    width: 100%;
}
header .logo > p {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
}
header > button {
    text-indent: -9999px;
    width: 2.4rem;
    height: 2.4rem;
}
header > .back {
    background: url("../images/prev.png") no-repeat 0 center / contain;
}
header > .menu {
    background: url("../images/allmenu.png") no-repeat center / contain;
}

/* SIDE-MENU */
aside {
    width: 80%;
    height: 100vh;
    background: #fff;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 999;
    transition: right .7s;
    border-left: 1px solid #ddd;
    overflow: auto;
}
aside .logo_wrap {
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
aside .logo_wrap .close {
    width: 2rem;
    height: 2rem;
    background: url("../images/allmenu_close.png") no-repeat center / contain;
    text-indent: -9999px;
}
aside .logo_wrap img {
    width: 18rem;
}
.bg {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

aside .title_btn_wrap {
    padding: 1.5rem 1.2rem 1rem;
}
aside .title_btn_wrap ul {
    display: flex;
    gap: 1rem;
}
aside .title_btn_wrap ul li {
    width: 50%;
}
aside .title_btn_wrap ul li a {
    display: block;
    border: 1px solid #ddd;
    border-radius: .5rem;
    font-size: 0;
}
aside .title_btn_wrap ul li a img {
    width: 100%;
}

aside .learn_wrap h2 {
    font-size: 2rem;
    font-weight: 700;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}
aside .learn_wrap ul {
    display: flex;
    flex-direction: column;
}
aside .learn_wrap ul li:first-child a {
    border-bottom: 1px solid #eee;
}
aside .learn_wrap ul li a {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    padding: 1.5rem;
    background: #fff url("../images/arrow.png") no-repeat 95% 50% / 0.8rem;
}

aside .search_wrap {
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
}
aside .search_wrap a {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: url("../images/arrow.png") no-repeat 95% 50% / .8rem;
}
aside .search_wrap a img {
    width: 2rem;
    margin-right: 1rem;
}
aside .search_wrap a h2 {
    font-size: 1.8rem;
    font-weight: 700;
}
aside .age_wrap h2 {
    font-size: 2rem;
    font-weight: 700;
    padding: 1.5rem;
}
aside .age_wrap ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
aside .age_wrap ul li a {
    display: block;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -.1rem;
    text-align: center;
    padding: 1.8rem 0;
    border-top: 1px solid #ddd;
    white-space: nowrap;
}
aside .age_wrap ul li:nth-child(2n-1) {
    border-right: 1px solid #ddd;
}
aside .setting_wrap {
    border-top: 4px solid #ededed;
}
aside .setting_wrap h2 {
    font-size: 2rem;
    font-weight: 700;
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
}
aside .setting_wrap .alarm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #ddd;
}
aside .setting_wrap .alarm p {
    font-size: 1.8rem;
    font-weight: 600;
}
aside .setting_wrap .alarm button {
    font-size: 1.5rem;
    color: #fff;
    background: #fc7647;
    padding: .5rem 1.5rem;
    border-radius: 1.5rem;
}
aside .setting_wrap .share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
}
aside .setting_wrap .share p {
    font-size: 1.8rem;
    font-weight: 600;
}
aside .setting_wrap .share ul {
    display: flex;
    gap: 1rem;
}
aside .setting_wrap .share ul li button {
    text-indent: -9999px;
    width: 3rem;
    height: 3rem;
}
aside .setting_wrap .share ul li .kakao {
    background: url("../images/kakao.png") no-repeat center / cover;
}
aside .setting_wrap .share ul li .playstore {
    background: url("../images/playstore.png") no-repeat center / cover;
}
aside .setting_wrap .share ul li .appstore {
    background: url("../images/appstore.png") no-repeat center / cover;
}

button.top {
    width: 5rem;
    height: 5rem;
    background: url("../images/top.png") no-repeat center / cover;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    opacity: 0;
    transition: all 0.5s;
    pointer-events: none;
    z-index: 500;
}
button.top.on {
    opacity: 1;
    pointer-events: all;
}