/* instructors.css のスタイル */

/* Instructors Top Section */
#instructors-top {
    background-color: #FFFCDB;
    display: grid;
    align-items: center;
    height: auto;
    padding: 0;
    margin: 0;
    margin-top: 60px;
}

.instroctos-content {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -30px;
}

.instroctos-content h2 {
    font-size: 2.5rem;
    font-weight: bolder;
    margin-bottom: 30px;
    color: #000;
}

.instroctos-content p {
    font-size: 1.4rem;
    font-weight: 250;
    text-align: left;
    width: 84%;
}

.instroctos-img {
    grid-column: 2;
    height: 100%;
}

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

/* Top Instructors Section */
#top-instructors {
    background-color: #EDEBEB;
    padding: 60px 0;
    text-align: center;
}

#top-instructors h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: left;
    margin-left: 100px;
    margin-bottom: 80px;
    color: #000;
}

.top-instructors-english-title {
    font-size: 2.5rem;
    font-weight: bolder;
    margin-bottom: 30px;
}

.top-instructors-japanese-title {
    font-size: 25px;
    font-weight: 600;
}

.instructor-grid {
    display: flex;
    flex-direction: column;
    justify-items: center;
}

.instructor-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 60px;
}

.item-img1,
.item-img2,
.item-img3,
.item-img4 {
    grid-column: 1;
    width: 70%;
    height: auto;
    margin-bottom: 15px;
    margin-left: 120px;
}

.item-img1 img,
.item-img2 img,
.item-img3 img,
.item-img4 img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.item-content1,
.item-content2,
.item-content3,
.item-content4 {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-right: 100px;
}


.item-content1 h3,
.item-content2 h3,
.item-content3 h3,
.item-content4 h3 {
    font-size: 30px;
    font-weight: bold;
    margin-top: -30px;
    margin-left: 0;
}

.item-content1 ul,
.item-content2 ul,
.item-content3 ul,
.item-content4 ul {
    font-size: 18px;
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0 20px 0;
    text-align: left;
}

.item-content1 h4,
.item-content2 h4,
.item-content3 h4,
.item-content4 h4 {
    font-size: 25px;
    margin-top: 10px;
    margin-left: 0;
}

.item-content1 p,
.item-content2 p,
.item-content3 p,
.item-content4 p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    padding: 30px 0;
    text-align: left;
    margin-top: -30px;
    margin-right: 50px;
}

/* iPhoneサイズのスタイル */
@media (max-width: 480px) {
    #instructors-top {
        display: flex;
        text-align: center;
        background-image: url("images/Tri.H00179.png");
        background-size: cover;
    }

    .instroctos-content {
        margin-top: 40px;
    }

    .instroctos-content h2 {
        font-size: 35px;
        margin-left: -160px;
    }

    .instroctos-content p {
        font-size: 16px;
        width: 80%;
        margin-bottom: 80px;
        text-shadow: 2px 2px 4px rgba(251, 250, 250, 0.978);
    }

    .instroctos-img {
        display: none;
    }

    .instructor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: center;
    }

    .instructor-item {
        grid-template-columns: 1fr;
        width: 100%;
        margin-bottom: 40px;
    }

    /* Instructors セクションのタイトルを中央に配置し、2段に分ける */
    #top-instructors h2 {
        text-align: center !important;
        margin-left: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .top-instructors-english-title {
        display: block;
        margin-bottom: 5px;
        /* 上下の間隔を調整 */
    }

    .top-instructors-japanese-title {
        display: block;
    }

    .item-img1,
    .item-img2,
    .item-img3,
    .item-img4 {
        margin: 0 auto;
    }

    .item-img1 img,
    .item-img2 img,
    .item-img3 img,
    .item-img4 img {
        width: 100%;
        height: auto;
    }

    .item-content1,
    .item-content2,
    .item-content3,
    .item-content4 {
        grid-column: 1 / -1;
        width: 90%;
        margin: 20px auto;
        /* 上下に余白を追加 */
        text-align: center;
    }

    .item-content1 h3,
    .item-content2 h3,
    .item-content3 h3,
    .item-content4 h3 {
        font-size: 26px;
        margin: 25px 0;
        /* 上下に均等な余白を設定 */
        text-align: center;

    }

    .item-content1 ul,
    .item-content2 ul,
    .item-content3 ul,
    .item-content4 ul {
        font-size: 17px;
        margin: 15px 0;
        /* 上下に均等な余白を設定 */
        padding-left: 0;
        text-align: left;
        list-style-position: inside;
        /* 丸をテキストの内側に配置 */
    }

    .item-content1 h4,
    .item-content2 h4,
    .item-content3 h4,
    .item-content4 h4 {
        font-size: 26px;
        text-align: center;
        margin-top: 30px;
        margin-bottom: -10px;
    }

    .item-content1 p,
    .item-content2 p,
    .item-content3 p,
    .item-content4 p {
        font-size: 16px;
        line-height: 1.6;
        margin: 10px 8px;
        /* 上下に均等な余白を設定 */
        text-align: left;
        margin-bottom: -60px;
    }
}



#location {
    background-color: #EDEBEB;
}

#location h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: -10px;
}

#location p {
    font-size: 22px;
    text-align: center;
    margin-bottom: 60px;
}

.sp_only {
    display: none;
}

@media screen and (max-width: 480px) {
    #location h2 {
        font-size: 33px;
    }

    #location p {
        font-size: 22px;
    }

    .sp_only {
        display: block;
    }
}