.course-page {
    padding-top: 20px;
    padding-bottom: 40px;
    background-color: #fff;
}

/* 全体の紹介文 */

.course-intro {
    margin: 40px 8% 200px;
    text-align: center;
}

.course-intro p {
    margin: 0;
    font-size: 3.8vw;
    line-height: 2;
}

/* 年齢別コース */
.course-section {
    padding: 50px 7% 190px;
    margin-top: -150px;
    color: #fff;
    overflow: hidden;
    border-radius: 50% 50% 0 0 / 160px 160px 0 0;
}

/* ピンク背景 */
.course-section--pink {
    background-color: var(--pink);
}

/* ブルー背景 */
.course-section--blue {
    background-color: var(--blue);
}

/* コース内容 */
.course-name {
    margin: 0 0 25px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 8vw;
    font-weight: var(--weight-heading);
    line-height: 1.2;
    text-align: center;
}

.course-name span {
    display: block;
    font-size: 9vw;
}

/* 写真 */
.course-image {
    width: 75%;
    height: 220px;
    margin: 40px auto 30px;
    overflow: hidden;
    border-radius: 15px;
}

.course-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 説明文 */
.course-text {
    color: #fff;
    font-size: 4vw;
    line-height: 2;
}

/* 小学生コースとフッターの隙間をなくす設定 */
.course-section--last {
    padding-bottom: 100px;
}

/* =================
      PC画面用
================== */

@media screen and (min-width: 768px) {
     /* ページ全体を中央に配置 */
    .course-page {
        max-width: 500px;
        margin: 0 auto;
    }

    /* 紹介文 */
    .course-intro {
        margin: 40px 8% 200px;
    }

    .course-intro p {
        font-size: 18px;
    }

    /* 年齢別コースの背景 */
    .course-section {
        padding: 50px 7% 190px;
        margin-top: -150px;
    }

    /* コース名 */
    .course-name {
        font-size: 30px;
        margin-bottom: 25px;
    }

    .course-name span {
        font-size: 38px;
    }

    /* 写真 */
    .course-image {
        width: 60%;
        max-width: 550px;
        height: 280px;
        margin: 40px auto 30px;
    }

    /* 説明文 */
    .course-text {
        max-width: 650px;
        margin: 0 auto;
        font-size: 16px;
        line-height: 2;
    }

    /* 最後のコース */
    .course-section--last {
        padding-bottom: 100px;
    }
}
