button{
    background: inherit;
    border:none;
    -webkit-box-shadow:none;
    box-shadow:none;
    border-radius:0;
    padding:0;
    overflow:visible;
    cursor:pointer;
}

img {
    max-width: 100%;
}

.d_block { display: block !important; }

.m_br { display: none; }

.mt_0 { margin-top: 0 !important; }
.mt_100 { margin-top: 0.5em !important; }
.mt_200 { margin-top: 1em !important; }
.mb_0 { margin-bottom: 0 !important; }

.pt_0 { padding-top: 0 !important; }
.pt_100 { padding-top: 0.5em !important; }
.pt_200 { padding-top: 1em !important; }
.pt_300 { padding-top: 1.5em !important; }
.pb_0 { padding-bottom: 0 !important; }
.pb_100 { padding-bottom: 0.5em !important; }
.pb_200 { padding-bottom: 1em !important; }

.font_red { color: #d32727; }
.font_black { color: #1b1b1b; }
.font_blue { color: #1f3785; }

.font_gray_100 { color: #949494 !important; }
.font_gray_200 { color: #6d6d6d !important; }

.font_center { text-align: center !important; }

.letter_spacing_100 { letter-spacing: -1px; }
.letter_spacing_300 { letter-spacing: -2.5px; }

.underline_pink { position: relative; }
.underline_pink::after {
    content: '';
    width: 100%;
    height: 15px;
    position: absolute;
    left: 0;
    bottom: 0.2em;
    z-index: -1;
    background-color: rgb(248, 204, 204);
}

.underline_blue { position: relative; }
.underline_blue::after {
    content: '';
    width: 100%;
    height: 15px;
    position: absolute;
    left: 0;
    bottom: 0.2em;
    z-index: -1;
    background-color: #bad7ec;
}

.title_img {
    position: relative;
    max-width: 67%;
    margin-bottom: 5rem;
    z-index: 10;
}

.fairytale .package .wrap {
    padding-bottom: 130px !important;
}

.sub .fairytale.content-primary#pre-k .text {
    font-weight: 400;
}

.sub .fairytale.content-primary#pre-k .program .content {
    margin-top: 50px;
}

.sub .fairytale.content-primary#pre-k .package .sub-title {
    background: url(/images/home/bg_h3_red_04@2x.png) center bottom no-repeat;
    background-size: 308px auto;
    margin-top: 1em;
    padding-bottom: 0.1em;
}

.sub .fairytale.content-primary#pre-k .package .sub-title.font_blue {
    display: inline-block;
    width: auto;
    background: none;
    border-bottom: 2px solid #1f3785;
    padding-bottom: 0.05em;
    margin-inline: auto;
}

.sub .fairytale.content-primary#pre-k .program .content h4 {
    font-size: 28px;
    font-weight: 400;
}

.content_block .title > img {
    max-width: 258px;
    width: 48%;
}

.content_block .title_number > img {
    max-width: 82px;
    width: 15%;
}

.fairytale .content_block .sub-title {
    margin-top: 0.8em !important;
    margin-bottom:  0.4em !important;
}

.sub-title .font_blue { color: #1436a6; }

.content_block .img_thumb_box {
    margin-bottom: 1.5em;
}

.check_text_block {
    display: inline-block;
    width: auto;
    margin-top: 0.5em;
    margin-left: auto;
    margin-right: auto;
}

.check_text {
    position: relative;
    font-size: 1.3rem;
    color: #676767;
    font-weight: 400;
    text-align: left;
    margin-top: 0.4em;
    padding-left: 1.35em;
}

.check_text_block .check_text::before {
    content: '';
    position: absolute;
    top: 0.4em;
    left: 0;
    display: block;
    width: 1em;
    height: 0.8em;
    background: url(/images/home/fairytale/ico_check.png) no-repeat;
    background-size: contain;
}

.check_text_block .check_text.red::before {
    filter: invert(28%) sepia(59%) saturate(4346%) hue-rotate(346deg) brightness(86%) contrast(94%);
}

.song_wrapper {
    position: relative;
    max-width: 680px;
    width: 100%;
    margin: 0 auto 5em;
    padding: 3em 2em;
    background: #f8f8f8;
    border-radius: 2em;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.song_wrapper .mr_char {
    max-width: 25%;
    position: absolute;
    right: -1em;
    bottom: -1.2em;
}

.song_wrapper:has(.mr_char){
    margin-bottom: 10em;
}

.song_wrapper .title_round {
    position: absolute;
    top: -1.3rem;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    display: inline-block;
    font-family: "Jua", sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    background: #ce0017;
    padding: 0.3em 0.5em 0.2em;
    border-radius: 30rem;
}

.song_wrapper .title_round.sky { background: #58bdec; }
.song_wrapper .title_round.orange { background: #f07023; }

.song_wrapper .song_block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 2em;
    padding: 3em 0;
}

.song_block .img_thumb_box {
    max-width: 250px;
    width: 35%;
}

.song_desc .title.sm img {
    height: 1.5em;
}

.song_desc .title img {
    max-width: 90%;
    height: 2em;
    object-fit: contain;
}

.song_block .text {
    font-size: 1.2rem !important;
}

.fairytale .m_index_bot_btns {
    margin-bottom: 2em;
}

.btn_purchase {
    background-color: #d32727;
    font-family: "Jua", sans-serif;
    font-size: 2.5rem;
    color: #fff;
    padding: 0.4em 1.5em 0.35em;
    border-radius: 5rem;
    -webkit-box-shadow: 0px 5px 15px rgba(56, 56, 56, 0.5);
    box-shadow: 0px 5px 15px rgba(56, 56, 56, 0.5);
}

.fairytale .heart {
    top: -70px !important;
}

/* S:기존 명작 유지 css */
.episode {
    text-align: center;
    width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}

.episode .t1 {
    font-size: 50px;
    letter-spacing: -0.06em;
    line-height: 65px;
    font-weight: 300;
    color: #242424;
    margin-bottom: 30px;
}

.episode .t1 b {
    font-weight: 700;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
}

.episode .t1 b:after {
    width: 100%;
    height: 15px;
    position: absolute;
    left: 0;
    bottom: 15px;
    z-index: -1;
    content: '';
}

.episode .t1 b i {
    font-style: normal;
    font-size: 35px;
}

.episode.step7 .t1 b:after {
    background-color: #f8cccc;
}

.episode .ep_list ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    padding-top: 50px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.episode .ep_list li {
    cursor: pointer;
}

.episode .ep_list li:nth-child(n + 4) {
    margin-top: 40px;
}

.ep_ly {
    width: 1000px;
    height: 440px;
    background-color: #f4f4f4;
    position: relative;
    margin: 0 auto;
    display: none;
}

.ep_ly .btn_closed_ly {
    position: absolute;
    right: 28px;
    top: 28px;
}

.ep_ly > div {
    padding: 50px 30px 40px;
}

.ep_ly .tit {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.ep_ly .flex_box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 45px;
}

.ep_ly .txt {
    text-align: left;
    font-size: 22px;
    letter-spacing: -0.025em;
    color: #242424;
    line-height: 34px;
}

.m_index_bot_btns {
    display: block;
    position: fixed;
    z-index: 1000;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    margin-bottom: 20px;
    width: 320px;
}

.ibb_guest {
    position: relative;
}

.ibbg_btn {
    position: relative;
    background-color: #d11e1f;
    opacity: 0.8;
    color: #ffffff;
    line-height: 70px;
    font-size: 20px;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    display: inline-block;
}
/* E:기존 명작 유지 css */

/* S:musical Rhyme */
.fairytale .content_block {
    position: relative;
    text-align: center;
    margin-bottom: 6.5em;
}

.content_block .swiper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.sub .content-primary .no_wrap {
    max-width: 100vw;
    padding: 0;
}

.sub .content-primary .no_wrap .mr_slide_block {
    padding: 6.5em 20px;
    margin-inline: -20px;
}

.sub .content-primary .no_wrap .mr_slide_block:first-child { margin-bottom: 0; }

.sub .content-primary .mr_slide_block .swiper-button-prev,
.sub .content-primary .mr_slide_block .swiper-button-next {
    max-width: clamp(20px, 10vw, 50px);
    max-height: clamp(20px, 10vw, 50px);
    bottom: 19rem;
}

.sub .content-primary .mr_slide_block .swiper-pagination-bullet {
    background: #fff;
}

.sub .content-primary .mr_slide_block .swiper-pagination-bullet-active {
    background: #ce0017;
}

.none_border { background: none !important; }

.sub .content-primary .content_block .content_info .card_title {
    font-size: 1.35rem;
    color: #242424;
    font-weight: 600;
    margin-bottom: 0.4em;
}

.sub .content-primary .content_block .content_info .desc {
    font-size: 1.2rem;
}

.sub .content-primary .content_block .content_info .card_chip {
    display: inline-block;
    background-color: #4262cb;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 0.35em 1.2em;
    border-radius: 3em;
    margin: 0.6em 0 0.5em;
}

.thema_title {
    display: block;
    margin: 1rem auto 2rem;
}

.img_egg_pen { position: relative; }
.img_egg_pen .ico {
    position: absolute;
    animation: noteMove 1.5s ease-in-out infinite;
    transform-origin: center;
    opacity: 0.9;
}

.ico_music_01 {
    max-width: 8%;
    top: 20%;
    left: 8%;
    animation-delay: 0s;
}

.ico_music_02 {
    max-width: 5%;
    top: 5%;
    left: 18%;
    animation-delay: 0.3s;
}

.ico_music_03 {
    max-width: 4%;
    top: 50%;
    right: 8%;
    animation-delay: 0.6s;
}

@keyframes noteMove {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) scale(1.1) rotate(8deg);
    }
    50% {
        transform: translateY(0px) scale(1) rotate(-8deg);
    }
    75% {
        transform: translateY(-6px) scale(1.05) rotate(4deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.ep_list .preview_book {
    position: relative;
}

.ep_list .preview_book::before {
    content: '';
    position: absolute;
    top: 37.5%;
    left: 37.5%;
    display: inline-block;
    width: 25%;
    height: 25%;
    background: url(/images/home/musicalRhymes/ico_preview_more.png) center center no-repeat;
    background-size: contain;
    border-radius: 50%;
    box-shadow: 0 0.2em 0.8em rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;

}

.ep_list .preview_book:hover::before {
    transform: rotate(90deg);
}

@keyframes pulse-once {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
/* E:musical Rhyme */

@media all and (max-width: 1160px) {
    .sub .content-primary#pre-k .curriculum .sub-title {
        max-width: 100%;
    }
}

@media all and (max-width: 1000px) {

    .episode {
        width: 100%;
        padding: 6vw 0;
    }

    .episode .t1 {
        font-size: 6vw;
        line-height: 8vw;
        margin-bottom: 3vw;
    }

    .episode .t1 b:after {
        width: 100%;
        height: 1.5vw;
        bottom: 1vw;
    }

    .episode .t1 b i {
        font-size: 4vw;
    }

    .episode .ep_list ul {
        padding-top: 5vw;
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: space-around;
        flex-wrap: nowrap;
        gap: 0.5em;
    }

    .episode .ep_list li img {
        max-width: 100%;
    }

    .ep_ly {
        width: 100%;
        height: auto;
    }

    .ep_ly .btn_closed_ly {
        position: absolute;
        right: 5vw;
        top: 5vw;
    }

    .ep_ly .btn_closed_ly img {
        width: 5vw;
    }

    .ep_ly > div {
        padding: 10vw 7vw 7vw;
    }

    .ep_ly .tit {
        font-size: 6vw;
    }

    .ep_ly .flex_box {
        display: block;
        margin-top: 5vw;
    }

    .ep_ly .txt {
        text-align: center;
        font-size: 3.5vw;
        line-height: 6vw;
        margin-bottom: 8vw;
    }

    .ep_ly .txt + img {
        width: 100%;
    }

}

@media all and (max-width: 768px) {
    /*#allwrap {*/
    /*    width: 100vw;*/
    /*    height: 100%;*/
    /*    overflow-y: hidden;*/
    /*}*/

    /*!* overwrite *!*/
    /*body {*/
    /*    overflow-x: hidden;*/
    /*    overflow-y: visible;*/
    /*}*/

    /*.sub .content-primary {*/
    /*    width: 100vw;*/
    /*    overflow-x: hidden;*/
    /*    overflow-y: visible;*/
    /*}*/

    .m_br {
        display: block;
    }

    .m_index_bot_btns {
        display: block;
        position: fixed;
        z-index: 1000;
        bottom: 0;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
        margin-bottom: 0px;
        width: 100%;
    }

    .ibbg_btn {
        position: relative;
        background-color: #d11e1f;
        opacity: 0.8;
        color: #ffffff;
        line-height: 50px;
        font-size: 20px;
        text-align: center;
        border-radius: 0 !important;
        cursor: pointer;
    }

    .ibbl_btn {
        position: relative;
        background-color: #d11e1f;
        opacity: 0.8;
        color: #ffffff;
        line-height: 50px;
        font-size: 20px;
        text-align: center;
        border-radius: 0 !important;
        cursor: pointer;
    }

    .m_font_black {
        color: #1b1b1b;
    }
    .m_font_600 {
        font-weight: 600;
    }

    .fairytale {
        background-color: #fff !important;
    }

    .sub .content-primary#pre-k .sub-title {
        margin-left: 0 !important;
    }
    /* S:intro_setcion */
    .title_img {
        margin-top: -1.1rem;
        margin-bottom: 1.5rem;
    }

    .sub .fairytale.content-primary#pre-k section {
        padding-bottom: 50px;
    }

    .sub .fairytale .story .sub-title {
        font-size: 1.9rem !important;
    }

    .fairytale .effect {
        display: none !important;
        opacity: 0;
    }
    /* E:intro_setcion */
    /* S:제품 상세 */
    .sub .content-primary#pre-k .package .wrap {
        padding-top: 30px;
        padding-bottom: 0 !important;
    }

    sub .fairytale.content-primary#pre-k .package .product_info {
        text-align: center !important;
    }

    .sub .fairytale.content-primary#pre-k .package .sub-title {
        width: 100%;
        text-align: center;
        background-size: 10rem auto;
        font-size: 1.6rem !important;
        margin-left: auto !important;
    }

    .sub .fairytale.content-primary#pre-k .program .content {
        margin-top: 1.3em;
        text-align: center;
    }

    .sub .fairytale.content-primary#pre-k .program .content h4 {
        font-size: 1.3rem;
        text-align: center;
    }

    .sub .fairytale.content-primary#pre-k .package .text {
        font-size: 0.9rem;
        letter-spacing: -0.5px;
        margin-left: 0 !important;
    }
    /* E:제품 상세 */
    /* S:content_block */
    .content_wrapper {
        padding: 0.5em 1.5em;
    }

    .fairytale .content_block {
        margin-bottom: 5em;
    }

    .sub .content-primary#pre-k .content_block .sub-title {
        font-size: 1.6rem;
        letter-spacing: -1px;
    }
    .sub .fairytale.content-primary#pre-k .content_block .text {
        font-size: 0.9em;
    }
    .check_text_block {
        margin-top: 0.2em;
    }

    .check_text {
        font-size: 1rem;
    }

    .song_wrapper {
        margin-top: 0;
        padding: 2em 1em;
    }

    .song_wrapper .song_block {
        gap: 1em;
        padding: 1.5em 0;
    }

    .song_wrapper .title_round {
        font-size: 2rem;
    }

    .song_block .img_thumb_box {
        width: 45%;
    }

    .song_block .text {
        font-size: 0.8rem !important;
        letter-spacing: -1px;
    }

    .img_egg_pen {
        margin-bottom: 0 !important;
    }

    .img_egg_pen > img {
        width: 80%;
    }
    /* E:content_block */
    /* S:preview */
    .episode {
        padding-top: 50px !important;
    }
    .sub .content-primary#pre-k .episode .sub-title {
        width: 100%;
        font-size: 1.7rem;
        letter-spacing: -1px;
        word-break: break-word;
        margin-top: 20px;
        margin-bottom: 0;
    }

    .sub .content-primary#pre-k .episode .sub-title br {
        display: block;
    }

    .fairytale .heart {
        top: -2rem !important;
    }

    .underline_pink {
        font-weight: 500;
    }

    .underline_pink::after {
        height: 8px;
    }

    .episode .ep_list ul {
        width: 100%;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }

    .episode .ep_list li {
        zoom: 0.45;
    }
    /* E:preview */

    .btn_purchase {
        font-size: 1.7rem;
        padding: 0.5em 1.5em 0.45em;
    }

    .m_bg_section {
        padding: 3.45rem 0 !important;
    }

    .m_bg_color {
        padding-bottom: 1.5em;
    }
}

@media all and (max-width: 600px) {
    /* S:musical rhymes */
    .sub .content-primary .content_block .content_info .card_title { font-size: 1.2rem; }
    .sub .content-primary .content_block .content_info .desc { font-size: 1rem; }
    .sub .content-primary .content_block .content_info .card_chip { font-size: 1rem; }

    .sub .content-primary .no_wrap .mr_slide_block { padding-block: 4em; }
    .mr.no_wrap { padding-bottom: 0!important; margin-bottom: 0 !important; }
    .mr.no_wrap .content_block:last-child { margin-bottom: 0 !important; }

    .sub .content-primary .mr_slide_block .swiper-button-prev,
    .sub .content-primary .mr_slide_block .swiper-button-next {
        bottom: 14rem;
    }
    /* E:musical rhymes */
}

@media all and (max-width: 390px) {

    .sub .fairytale.content-primary#pre-k .package .text {
        font-size: 0.85rem;
    }

    .sub .content-primary#pre-k .episode .sub-title {
        font-size: 1.5rem;
    }
}

@media all and (max-width: 375px) {
    .content_block .title > img {
        width: 60%;
    }

    .sub .content-primary#pre-k .content_block .sub-title {
        font-size: 1.5rem;
    }

    .sub .content-primary#pre-k .episode .sub-title {
        font-size: 1.45rem;
    }
}
