@charset "utf-8";

/* モバイル: 767px以下 */
@media screen and (max-width: 767px) {
    .feature-top img[src="img/Group 160.webp"] {
        content: url("../img/Group 203.webp");
    }

    .teacher-points-1 img[src="img/Group 161.webp"] {
        content: url("../img/Group 209.webp");
        width: 80%;
    }
}

.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;
}

.feature-points-1 img{
    padding-top: 30px;
}

.teacher-points-1{
    margin-top: 5%;
    margin-bottom: 5%;
    height: 45%;
}

.teacher-points-1  img {
    width: 60%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.teacher-points-2{
    margin-top: 5%;
    margin-bottom: 5%;
    height: 45%;
}

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

.section-title {
    text-align: center;
    font-size: 28px;
    color: #004A78;
    margin: 60px 0 40px;
    font-weight: bold;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #004A78;
}

.teacher-grid {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.teacher-card {
    aspect-ratio: 3/4;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* タブレット: 768px-1199px */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    .teacher-grid {
        gap: 20px;
        padding: 0 15px;
    }
}

/* モバイル: 767px以下 */
@media screen and (max-width: 767px) {
    .teacher-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
        margin: 40px auto;
    }
}

/* モバイル: 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-1 img {
        width: 90%;
        padding-top: 0px;
    }

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

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

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

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

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

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

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

    .feature-points-1 img[src="img/Group 494.webp"] {
        content: url("../img/Group 507.webp");
    }
}