/*----------------------------------------
	mixin/module
----------------------------------------*/
/*----------------------------------------
	clearfix
----------------------------------------*/
/*----------------------------------------
	p-scholl
----------------------------------------*/

.img-box {
    width: 470px;
    margin: 90px auto 60px auto;
}

.img-box img {
    width: 100%;
}

.table-course,
.table-ex {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
}

.table-course th,
.table-course td {
    border: 1px solid #dcdcdc;
    padding: 10px 10px;
    text-align: left;
    vertical-align: top;
}

.table-course th {
    background-color: #fdf5d6;
    font-weight: 700;
    white-space: nowrap;
}

.table-course tr:nth-child(even) td {
    background-color: #fafafa;
}

.table-ex th,
.table-ex td {
    border: 1px solid #dcdcdc;
    padding: 10px 10px;
    text-align: left;
    vertical-align: top;
    background-color: #fff;
}

.table-ex th {
    background-color: #fdf5d6;
    font-weight: 700;
    white-space: nowrap;
}

.grade {
    background-color: #f6f6f6;
    padding: 60px 4%;
    margin-bottom: 60px;
}

.grade-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.grade-title::before {
    content: '';
    display: block;
    width: 68px;
    height: 46px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.grade-title.blonze,
.grade-title.silver,
.grade-title.gold {
    padding-left: 100px;
}

.grade-title.blonze::before {
    background: url(../img/course/children/blonze.png) no-repeat center /
        contain;
}

.grade-title.silver::before {
    background: url(../img/course/children/silver.png) no-repeat center /
        contain;
}

.grade-title.gold::before {
    background: url(../img/course/children/gold.png) no-repeat center / contain;
}

.grade p {
    margin-bottom: 50px;
    margin-top: 10px;
}

.grade p span {
    color: #f15398;
}

.official-link {
    text-decoration: underline;
    color: #333;
    transition: all 0.2s ease;
}

.official-link:hover {
    text-decoration: none;
    color: #f15398;
}

.scroll-container {
    width: 100%;
    overflow-x: auto;
    position: relative;
}

.table-ex {
    min-width: 600px;
}

.add {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #dcdcdc;
}

.add p {
    font-size: 1.3rem;
}

@media screen and (max-width: 767px) {
    .img-box {
        width: 100%;
        margin: 40px auto 20px auto;
    }

    .table-course,
    .table-ex {
        margin: 20px 0;
    }

    .table-ex {
        margin: 0 0;
    }

    .table-course th,
    .table-course td {
        padding: 8px 8px;
    }

    .table-ex th,
    .table-ex td {
        padding: 8px 8px;
    }

    .grade {
        background-color: #f6f6f6;
        padding: 40px 4%;
        margin-bottom: 40px;
    }

    .grade-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .grade-title::before {
        width: 40px;
        height: 27px;
    }

    .grade-title.blonze,
    .grade-title.silver,
    .grade-title.gold {
        padding-left: 60px;
    }

    .grade p {
        margin-bottom: 30px;
    }

    .scroll-container {
        width: 100%;
        overflow-x: auto;
        position: relative;
    }

    .table-ex {
        min-width: 600px;
    }
}
