@font-face {
    font-family: NanumSquareEB;
    src: url(../font/NanumSquareEB.ttf) format('truetype');
}
@font-face {
    font-family: NanumSquareR;
    src: url(../font/NanumSquareR.ttf) format('truetype');
}
@font-face {
    font-family: Lantinghei;
    src: url(../font/Lantinghei.ttf) format('truetype');
}
@font-face {
    font-family: NotoSans;
    src: url(../font/NotoSans-Medium.woff) format('woff');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: NanumSquareEB;
}
button {
    border: none;
    outline: none;
    cursor: pointer;
    background-color: transparent;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
}
.chn,
.chn a {
    font-family: Lantinghei;
}

.wrap {
    max-width: 960px;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    padding-top: 146px;
    margin: 0 auto;
}
.header {
    background-color: #fff;
    height: 146px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 10;
    max-width: 960px;
    width: 100%;
    box-shadow: 0px 2px 9.4px 0.6px rgba(0, 0, 0, 0.14);
}
.header h1 {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}
.header h1 img {
    height: 76px;
}
.top-title {
    font-size: 40px;
    color: #674dbe;
}
.menu-btn {
    width: 56px;
    height: 40px;
    background: url(../img/ico_menu.png);
    background-size: 100% 100%;
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
}
.back-btn {
    width: 45px;
    height: 45px;
    background: url(../img/ico_back.png);
    background-size: 100% 100%;
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
}
.content {
    background-color: #ececec;   
}

.footer {
    background-color: #fff;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.footer p {
    font-size: 20px;
    color: rgba(43,43,43,0.8);
    line-height: 30px;
}
.footer p.copy {
    color: #2b2b2b;
    margin-top: 5px;
    font-family: NotoSans;
}
.footer p a {
    color: rgba(43,43,43,0.8);
}
.menu-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 960px;
    width: 100%;
    z-index: 20;
    transform: translateX(100%);
    transition: transform .4s ease-in-out;
    opacity: 0;
}
.menu-wrap {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: #fff;
    width: 80%;
    border-radius: 60px 0 0 60px;
}
.menu-wrap .top {
    height: 146px;
    border-bottom: 1px solid #d3d3d3;
    position: relative;
}
.menu-wrap .top .home-btn {
    width: 50px;
    height: 45px;
    background: url(../img/ico_home.png);
    background-size: 100% 100%;
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
}
.menu-wrap .top .close-btn {
    width: 30px;
    height: 30px;
    background: url(../img/ico_close.png);
    background-size: 100% 100%;
    position: absolute;
    right: 59px;
    top: 50%;
    transform: translateY(-50%);
}
.menu-wrap .navi-list {
    height: calc(100% - 146px);
    overflow-y: auto;
}
.menu-wrap .nav-depth-1 {
    border-bottom: 1px solid #ebebeb;
}
.menu-wrap .nav-depth-1 h3 {
    padding-left: 90px;
    display: flex;
    align-items: center;
    height: 140px;
    position: relative;
    cursor: pointer;
}
.menu-wrap .nav-depth-1 h3 .icon {
    width: 60px;
    height: 100%;
    margin-right: 32px;
    background-position: center;
    background-repeat: no-repeat;
}
.menu-wrap .nav-depth-1.writing h3 .icon {
    background-image: url(../img/ico_writing_m.png);
    background-size: 54px auto;
}
.menu-wrap .nav-depth-1.speaking h3 .icon {
    background-image: url(../img/ico_speaking_m.png);
    background-size: 52px auto;
}
.menu-wrap .nav-depth-1.listening h3 .icon {
    background-image: url(../img/ico_listening_m.png);
    background-size: 40px auto;
}
.menu-wrap .nav-depth-1.reading h3 .icon {
    background-image: url(../img/ico_reading_m.png);
    background-size: 45px auto;
}
.menu-wrap .nav-depth-1.grammar h3 .icon {
    background-image: url(../img/ico_grammar_m.png);
    background-size: 53px auto;
}
.menu-wrap .nav-depth-1 h3 .cate {
    font-size: 34px;
    color: #272727;
}
.menu-wrap .nav-depth-1 h3::before {
    content: '';
    width: 22px;
    height: 15px;
    background: url(../img/drop_down.png);
    background-size: 100% 100%;
    position: absolute;
    right: 90px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    transition: all 0.4s ease;
}
.menu-wrap .nav-depth-1 h3.active::before {
    transform: rotate(180deg);
}
.menu-wrap .nav-depth-2 {
    background-color: #efedf6;
    box-shadow: 0px 3px 3px 0px inset rgba(0, 0, 0, 0.2);
    display: none;
}
.menu-wrap .nav-depth-2 li a {
    height: 100px;
    padding-left: 90px;
    display: flex;
    align-items: center;
    font-size: 30px;
    color: #272727;
    font-family: NanumSquareR;
}
.menu-container.open {
    transform: translateX(0);
    opacity: 1;
}
.white-space {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
}
.mask {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 15;
    max-width: 960px;
    width: 100%;
}
.mask.show {
    display: block;
}


@media all and (max-width: 960px) {
    .wrap {
        padding-top: 15.208vw;
    }    
    .header {
        height: 15.208vw;
        box-shadow: 0px 0.208vw 0.979vw 0.0625vw rgba(0, 0, 0, 0.14);
    }
    .header h1 {
        left: 4.1666vw;
    }
    .header h1 img {
        height: 7.916vw;
    }
    .top-title {
        font-size: 4.1666vw;
    }
    .menu-btn {
        width: 5.833vw;
        height: 4.1666vw;
        right: 4.583vw;
    }
    .back-btn {
        width: 4.6875vw;
        height: 4.6875vw;
        left: 4.583vw;
    }
    .footer {
        height: 20.833vw;
    }
    .footer p {
        font-size: 2.083vw;
        line-height: 3.125vw;
    }
    .footer p.copy {
        margin-top: 0.5208vw;
    }
    .menu-wrap {
        border-radius: 6.25vw 0 0 6.25vw;
    }
    .menu-wrap .top {
        height: 15.208vw;
    }
    .menu-wrap .top .home-btn {
        width: 5.208vw;
        height: 4.6875vw;
        left: 5.729vw;
    }
    .menu-wrap .top .close-btn {
        width: 3.125vw;
        height: 3.125vw;
        right: 6.145vw;
    }
    .menu-wrap .navi-list {
        height: calc(100% - 15.208vw);
    }
    .menu-wrap .nav-depth-1 h3 {
        padding-left: 9.375vw;
        height: 14.583vw;
    }
    .menu-wrap .nav-depth-1 h3 .icon {
        width: 6.25vw;
        margin-right: 3.333vw;
    }
    .menu-wrap .nav-depth-1.writing h3 .icon {
        background-size: 5.625vw auto;
    }
    .menu-wrap .nav-depth-1.speaking h3 .icon {
        background-size: 5.416vw auto;
    }
    .menu-wrap .nav-depth-1.listening h3 .icon {
        background-size: 4.166vw auto;
    }
    .menu-wrap .nav-depth-1.reading h3 .icon {
        background-size: 4.6875vw auto;
    }
    .menu-wrap .nav-depth-1.grammar h3 .icon {
        background-size: 5.5208vw auto;
    }
    .menu-wrap .nav-depth-1 h3 .cate {
        font-size: 3.541vw;
    }
    .menu-wrap .nav-depth-1 h3::before {
        width: 2.291vw;
        height: 1.5625vw;
        right: 9.375vw;
    }
    .menu-wrap .nav-depth-2 {
        box-shadow: 0px 0.3125vw 0.3125vw 0px inset rgba(0, 0, 0, 0.2);
    }
    .menu-wrap .nav-depth-2 li a {
        height: 10.416vw;
        padding-left: 9.375vw;
        font-size: 3.125vw;
    }
}