@charset "utf-8";

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

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

    .course1-points-2 img[src="img/Group 156.webp"] {
        content: url("../img/Group 266.webp");
        width: 90%;
    }
}

.course1-points {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.course1-points a {
    width: 45%;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.course1-points a:hover {
    opacity: 0.8;
}

.course1-points img {
    width: 100%;
    height: auto;
    display: block;
}


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

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

.mobile-carousel {
    display: none;
}

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

.question {
    width: 60%;
    margin: 0 auto;
    padding-bottom: 10px;
    text-align: center;
    font-size: 18px;
    color:#004A78;
}

.question p {
    font-size: 14px;
    color: #333 !important;
    margin-top: 0;
}

.question img {
    width: 100%;
}

.kufu {
    text-align: left !important;
}

.lesson-ex {
    margin-bottom: 0;
}

.b {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px auto;
    width: 60%;
    max-width: 1200px;
}

  
  .b img {
    width:60%;
    display: block;
  }
  
  .bb img {
    width:90%;
    display: block;
    height: auto;
  }

  .bb h3 {
    color:#004A78;
    margin: 0;
  }

   .bb p {
    font-size: 14px;
   }

/* モバイル: 767px以下 */
@media screen and (max-width: 768px) {
    .mobile-carousel {
        display: block;
    }

    .course1-points a {
        width: 50%;
        margin-bottom: 10px;
    }

    .feature-points-1 p {
        width: 90%;
        margin: 0 auto;
    }

    .question {
        width: 90%;
    }

    .lesson-ex-img {
        display: none;
    }

    .carousel-container {
        width: 95%;
        height: 300px;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;  /* Firefoxのスクロールバー非表示 */
        -ms-overflow-style: none;  /* IEのスクロールバー非表示 */
    }

    .carousel-container::-webkit-scrollbar {
        display: none;  /* Chromeのスクロールバー非表示 */
    }

    .carousel-wrapper {
        display: flex;
        width: fit-content;
        height: 100%;
    }

    .carousel-wrapper img {
        height: 300px;
        width: auto;
        display: block;
        user-select: none;
        -webkit-user-drag: none;
        margin-left: 2%;
    }

    .b {
        width: 90%;
        gap: 10px;
    }

    .bb p {
        font-size: 12px;
    }

    .bb h3 {
        font-size: 16px;
    }
}

@media screen and (max-width: 470px) {
    .feature-points-1 {
        font-size: 20px;
    }
    
    .feature-points-1 p {
        font-size: 12px
    }

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

    .course1-points {
    flex-direction: column;
    gap: 0 !important;
    }

    .course1-points a {
        width: 100% !important;
    }

        .b {
        flex-direction: column;
        margin: 30px auto;
    }

    .b img {
        width: 100%;
    }

    .b-reserve {
        flex-direction: column-reverse; /* 逆順で縦並び */
    }

    .sikaku-img[src="img/Group 501.webp"] {
        content: url("../img/Group 511.webp");
    }

    .question img[src="img/Group 500.webp"] {
        content: url("../img/Group\ 231 2.webp");
    }
}

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

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