@charset "utf-8";

.feature-points {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    width: 70%;
    max-width: 1200px;
}

.feature-points a {
    width: 30%;
}

.feature-points img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s;
}

.feature-points a:hover img {
    opacity: 0.8;
}

.feature-points-1,
.feature-points-2,
.feature-points-3 {
    text-align: center;
    font-size: 24px;
    color:#004A78;
}

.feature-points-1 p,
.feature-points-2 p,
.feature-points-3 p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-align: center; /* 本文だけ左寄せ */
}

.feature-points-1 h2,
.feature-points-2 h2,
.feature-points-3 h2 {
    width: 70%;
    margin: 0 auto;
    padding-bottom: 10px;
    text-align: left;
    font-size: 24px;
    color:#004A78;
}

.feature-points-1 img,
.feature-points-2 img,
.feature-points-3 img {
    width: 70%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.free-lesson-voice {
    margin-top: 50px;
}

/* モバイルでの統合スタイル調整 */
@media screen and (max-width: 767px) {
    .feature-points-1,
    .feature-points-2,
    .feature-points-3 {
        margin: 20px auto;
        height: auto;
    }

    .feature-points-1 img,
    .feature-points-2 img,
    .feature-points-3 img {
        width: 90%;
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }
}

/* モバイル: 767px以下 */
@media screen and (max-width: 768px) {
    .feature-points {
        width: 100% !important;
    }

    .feature-points-1 {
        font-size: 20px !important;
    }

    .feature-points-1 P {
        width: 90%;
         margin: 5% auto;
    }

    .feature-points-3 {
        font-size: 20px !important;
    }

    .feature-points-3 P {
        width: 90%;
         margin: 5% auto;
    }

    .feature-top img[src="img/Group 122.webp"] {
        content: url("../img/Group 1981.webp");
    }

    .feature-points-1 img[src="img/Group 138.webp"] {
        content: url("../img/Group 254.webp");
        width: 90%;
    }

    .feature-points-2 img {
        width: 80%;
    }

    .feature-points-3 img[src="img/Group 140.webp"] {
        display: none;
    }
}

@media screen and (max-width: 470px) {
    .feature-points {
        flex-direction: column;
        gap: 0px;
        margin: 20px auto;
    }

    .feature-points a {
        width: 60%;
        margin: 0 auto;
    }

    .feature-points-1 p {
        font-size: 12px
    }

    .feature-points-1 p br {
        display: none;
    }

    .feature-points-1 h1 {
        font-size: 24px;
    }

    .feature-points-2 h2 {
        width: 90%;
        font-size: 20px;
    }

    .feature-points-2 img {
        content: url("../img/Group 504.webp");
        width: 90%;
    }

    .feature-points-3 h1 {
        font-size: 24px;
    }

    .feature-points-3 p {
        font-size: 12px
    }

    .feature-points-3 p br {
        display: none;
    }
}