/* ヘッダー、フッター 追加分*/
.header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
}


/* ここからメイン */
h1 {
    font-size: 2.5rem;
    padding-top: 100px;
    margin-top: 50px;
}

body {
    max-width: 100%;
    overflow-x: hidden;
}

.instructor {
    margin: 88px auto 40px auto;
    max-width: 890px;/*shika追加*/
}

.instructor h2{
    margin-bottom: 60px;
}

.instructor h2 span{
    display: block;
}


h2 {
    font-size: 2rem;
    word-break: break-word;
    /* text-align: center; */
}


.instructor-main {
    width: 85%;
    background-color: #FFFAFA;
    text-align: center;
    line-height: 3rem;
    margin: 0 auto;
}

/* 追加分 */
 h1 {
    text-align: center;
    margin-bottom: 30px;
}

.thought h2 {
    margin-bottom: 16px;
}

.thought {
    max-width: 890px;
    margin: 0 auto;
}

.thought,
.social-activities,
.instructor-container,
.instagram {
    margin-top: 64px;
    margin-bottom: 40px;
}

.instructor-container {
    display: flex;
    justify-content: center;
    /* 追加分 変更 鹿田*/
    gap: 3rem; 
    /* 追加分 */
    align-items: flex-start;
    /* width: 85%; *トル/
    max-width: 1100px;
    margin: 0 auto;
    /* flex-wrap: wrap; */
}

.instructor-img {
    width: 100%;
    max-width: 330px;
}

.instructor-img img {
    width: 100%;
    border-radius: 30px;
    margin-right: 20px;
}

/* 追加分 */
.profile {
    text-align: center;
    margin: 0 auto;
}

.profile h3 {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 16px;
    letter-spacing: 0.3em;
    /* 文字の間隔を空けて画像と同じ印象に */
}


.instructor-history {
    display: flex;
    align-items: center;
    text-align: left;
    width: 100%;
    line-height: 1.7;
    /* max-width: 464px; */
    /* margin: auto 0; */
    /* width: 460px; */
}


.thought-txt {
    /* background-image: url(../img/balanceball.png);
    background-position: center center; */
    background-size: contain;
    text-align: left;
    text-align-last: left;
    /* width: 848px;
    max-width: 80%; */
    /* 追加版 */
    /* width: 100%;     トル*/
    /* max-width: 848px; トル*/
    margin: 0 auto;
    line-height: 1.7;
}

.recommendation {
    margin-top: 150px;
    font-size: 1.75rem;
}


.social-activities h2 {
    margin: 0 auto;
}

.social-activities p {
    margin-bottom: 25px;
    font-size: 1.5rem;
}


.doctors-comment {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3%;
    width: 80%;
    /* margin-top: 40px; */
    margin-bottom: 100px;
}

.doctor {
    margin-top: 40px;
    width: 250px;
}

.doctor img {
    border-radius: 16px;
    width: 100%;
}

.hospital .hospital-name {
    font-size: 1rem;
    margin: 0 auto;
}

/* .social-activities .recommendation{
font-size: 2rem;
} */

.hospital .director-name {
    font-size: 1.75rem;
}


/* ここまで追加分 */

.doctors-comment-txt {
    margin: auto 0;
    text-align: left;
    max-width: 460px;
    line-height: 1.7;
}

.clinic-url {
    text-align: center;
}

.clinic-url a {
    display: block;
    text-decoration: none;
    color: #9AAEAF;
    margin-top: 16px;
}



@media (max-width: 1050px) {
    
    .instructor-main {
        width: 100%;
        background-color: #FFFAFA;
        background-repeat: no-repeat;
        background-position: left;
    }

    .instructor {
        margin-top: 4rem;
        margin-bottom: 32px;
    }

    
    .social-activities,
    .instructor-container,
    .instagram {
        margin-top: 48px;
        margin-bottom: 32px;
    }

    .instructor-img {
        width: 100%;
        max-width: 330px;
    }

    .instructor-container {
        flex-direction: column;
        width: 80%;
        margin: 0 auto;
        align-items: center;
    }

    h2 {
        /* min-width: 312px; */
        min-width: 0;
    }
    .profile h3{
        text-align: center;
    }


    .instructor-history {
        /* text-align: left; */
        width: 100%;
        max-width: 690px;
        /* 追加分 */
        margin: 0 auto;
    }

    .instructor-history p{
        font-size: 1rem;
    }

    .thought-txt {
        width: 80%;
        margin: 0 auto 3rem;
        text-align: left;
        font-size: 1rem;
    }

    .thought{
        margin: 48px auto 150px;
    }

    .doctors-comment {
        flex-direction: column;
        align-items: center;
    }

    .doctors-comment-txt{
        font-size: 1rem;
    }


    .social-activities>p {
        width: 80%;
        margin: 0 auto;
    }

    /* .doctors-comment {
        margin-top: 3rem;
        margin-bottom: 3rem;
    } */

    .instagram-post a {
        width: 50%;
    }
}

@media screen and (max-width:650px) {

    h1,
    h2 {
        width: 80%;
        margin: 24px auto 30px;
        text-align: center;
    }

    h1{
        font-size: 2rem;
    }

    .instructor h2{
        font-size: 1.3rem;
    }

    .instructor {
        margin-top: 3rem;
    }

    .instructor-container {
        flex-direction: column;
        align-items: center;
    }

    .instructor-img {
        /* width: 250px; */
        max-width: 250px;
    }

    .instructor-history {
        text-align: left;
        /* line-height: 1.7; */
    }

    .thought-txt {
        width: 80%;
        text-align: center;
    }

    .thought-txt p {
        text-align: left;
        line-height: 1.7;
        margin-bottom: 150px;
    }

    .social-activities p {
        text-align: center;
        /* margin-top: 100px; */
        /* margin-bottom: 16px; */
        font-size: 1.1rem;
    }

    .recommendation{
        font-size: 1.2rem;
    }

    .doctors-comment {
        flex-direction: column;
        align-items: center;
    }

    .doctors-comment-txt p {
        text-align: center;
    }
}