main .category_wrap {
    padding: 1.5rem;
    background: #ededed;
}
main .category_wrap ul {
    display: flex;
    gap: .7rem;
}
main .category_wrap ul li {
    font-size: 0;
    flex-grow: 1;
}
main .category_wrap ul li a img {
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

/* 1분 사자성어 */

main .today_wrap {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #ddd;
}
main .today_wrap .swiper-wrapper {
    background: #fffbf3;
}
main .today_wrap > .title_wrap {
    margin-bottom: 1.5rem;
}
main .today_wrap > .title_wrap h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: .7rem;
}
main .today_wrap > .title_wrap p {
    font-size: 1.6rem;
    letter-spacing: -.1rem;
    color: #777;
}
main .today_wrap .idiom_wrap {
    background: #fffbf3;
    padding: 1.5rem 1.2rem;
}
main .today_wrap .idiom_wrap .char_wrap ul {
    display: flex;
}
main .today_wrap .idiom_wrap .char_wrap ul li {
    flex-grow: 1;
    width: 25%;
}
main .today_wrap .idiom_wrap .char_wrap ul li .character {
    font-size: 5.5rem;
    font-weight: 600;
    padding: 1rem;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
}
main .today_wrap .idiom_wrap .char_wrap ul li .txt_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: .5rem;
    white-space: nowrap;
    overflow: auto;
    gap: .5rem;
    position: relative
}
/* main .today_wrap .idiom_wrap .char_wrap ul li .txt_wrap::after {
    content: "";
    display: block;
    width: .5rem;
    height: 100%;
    background: linear-gradient(to left, transparent, #fffbf3 95%, #fffbf3);
    position: absolute;
    top: 0;
    right: 0;
} */
main .today_wrap .idiom_wrap .char_wrap ul li:first-child .character,
main .today_wrap .idiom_wrap .char_wrap ul li:first-child .txt_wrap {
    border-left: 1px solid #ddd;
}
main .today_wrap .idiom_wrap .char_wrap ul li .txt_wrap span {
    display: block;
}
main .today_wrap .idiom_wrap .char_wrap ul li .txt_wrap .mean {
    font-size: 1.5rem;
    color: #777;
}
main .today_wrap .idiom_wrap .char_wrap ul li .txt_wrap .sound {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fc7647;
}
main .today_wrap .idiom_wrap .exp_wrap h3 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: .2rem;
}
main .today_wrap .idiom_wrap .exp_wrap {
    margin-top: 1.5rem;
}
main .today_wrap .idiom_wrap .exp_wrap > .title_wrap {
    display: flex;
    align-items: center;
    margin-bottom: .5rem;
}
main .today_wrap .idiom_wrap .exp_wrap > .title_wrap .cate {
    font-size: 1.4rem;
    background: #ddd;
    padding: .4rem 1rem;
    color: #fff;
    border-radius: 1.5rem;
    margin-left: .5rem;
}
main .today_wrap .idiom_wrap .exp_wrap p {
    font-size: 1.6rem;
    letter-spacing: -.1rem;
    color: #666;
    line-height: 1.5;
}

/* 사자성어 전체보기 */
main .all_wrap {
    padding: 2rem 1.5rem;
}
main .all_wrap > .title_wrap {
    margin-bottom: 1.5rem;
}
main .all_wrap > .title_wrap h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: .7rem;
}
main .all_wrap > .title_wrap p {
    font-size: 1.6rem;
    letter-spacing: -.1rem;
    color: #777;
}
main .all_wrap .search_wrap input {
    width: 100%;
    outline: none;
    line-height: 1.5;
    padding: .8rem 1.5rem;
    padding-right: 4.5rem;
    font-size: 1.6rem;
    background: #f4f3f2 url("../images/search.png") no-repeat 96% 50% / 2rem;
    border-radius: .8rem;
}
main .all_wrap .search_wrap input::placeholder {
    color: #ccc;
}
main .all_wrap .search_wrap ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .7rem;
    margin-top: 1.5rem;
}
main .all_wrap .search_wrap ul li {
    width: 14%;
}
main .all_wrap .search_wrap ul li button {
    width: 100%;
    display: block;
    font-size: 1.5rem;
    padding: .6rem 0;
    background: #ddd;
    border-radius: 1.5rem;
}
main .all_wrap .search_wrap ul li button.on {
    color: #fff;
}
main .all_wrap .search_wrap ul li:nth-child(1) button.on {
    background: #515759;
}
main .all_wrap .search_wrap ul li:nth-child(2) button.on {
    background: #fc7647;
}
main .all_wrap .search_wrap ul li:nth-child(3) button.on {
    background: #ecb33e;
}
main .all_wrap .search_wrap ul li:nth-child(4) button.on {
    background: #86b74e;
}
main .all_wrap .search_wrap ul li:nth-child(5) button.on {
    background: #34b492;
}
main .all_wrap .search_wrap ul li:nth-child(6) button.on {
    background: #d0404f;
}
main .all_wrap .search_wrap ul li:nth-child(7) button.on {
    background: #b5a5e7;
}

main .all_wrap .list_wrap {
    padding-top: 1.5rem;
    margin-top: 1.8rem;
    border-top: 1px solid #ddd;
}
main .all_wrap .list_wrap > ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
main .all_wrap .list_wrap > ul > li {
    background: #f4f3f2;
    position: relative;
}
main .all_wrap .list_wrap > ul li.active {
    background: #fffbf3;
}
main .all_wrap .list_wrap ul li .bookmark {
    width: 2.5rem;
    height: 2.5rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: url("../images/book_off.png") no-repeat center / contain;
    text-indent: -9999px;
    z-index: 99;
}
main .all_wrap .list_wrap ul li .title_wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.8rem 1.5rem;
}
main .all_wrap .list_wrap ul li .title_wrap .title {
    font-size: 2rem;
    font-weight: 600;
}
main .all_wrap .list_wrap ul li .title_wrap .char {
    font-size: 2rem;
    font-weight: 600;
}
main .all_wrap .list_wrap ul li .exp_wrap {
    padding: 1.5rem;
    padding-top: 0;
}
main .all_wrap .list_wrap ul li .exp_wrap .exp {
    font-size: 1.6rem;
    line-height: 1.4;
}
main .all_wrap .list_wrap ul li .exp_wrap ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 1rem;
    row-gap: 1rem;
}
main .all_wrap .list_wrap ul li .exp_wrap ul li {
    display: flex;
    align-items: center;
    gap: .5rem;
}
main .all_wrap .list_wrap ul li .exp_wrap ul li .char {
    font-size: 1.6rem;
    font-weight: 600;
}
main .all_wrap .list_wrap ul li .exp_wrap ul li .mean {
    font-size: 1.6rem;
}
main .all_wrap .list_wrap ul li .exp_wrap ul li .sound {
    font-size: 1.7rem;
    font-weight: 600;
}

/* age.php */
main .age_title_wrap {
    padding: 3.5rem 0;
    background: #fff8e9 url("../images/background_sub.png") no-repeat 0 0 / cover;
}
main .age_title_wrap h2 {
    font-size: 2.4rem;
    font-weight: 600;
    text-align: center;
}