@charset "UTF-8";
.video{
    max-height: 500px;
}
video {
    max-height: 500px;
    display: block;
    margin: 0 auto;
    width: 100%;
}

.about-main {
    width: 85%;
    background-color: #FFFAFA;
    line-height: 2rem;
    font-size: 1.3rem;
}

.about h1 {
    margin: 50px auto 20px;
    font-size: 1.6rem;
    text-align: center;
    line-height: 1.7;
    text-decoration: solid underline #ffdce3 5px;
}

h2 {
    width: 53%;
    font-size: 2rem;
    /* Kawakami add */
    margin-bottom: 24px;
    text-align: center;
}

h3 {
    font-size: 1.2rem;
    text-align: left;
    line-height: 1.7;
    
}


p {
    margin-top: 0;
}

.about-text {
    width: 70%;
    margin: 0 auto 24px;
    font-size: 1.3rem;
    line-height: 2;

}

.funday {
    margin-bottom: 80px;
}

.funday h2 {
    text-align: center;
    margin: 88px auto 40px;
}

.timeline-container-inner {
    text-align: center;
}

.participants {
    line-height: 2.0;
}

.depository-text {
    margin: 40px auto 0;
}

.timeline-img-1pc {
    width: 80%;
}

.timeline-img-1mb {
    display: none;
}

.btn-wrapper {
    text-align: center;
}

.sitter-btn {
    display: inline-block;
    width: 400px;
    border-radius: 30px;
    background-color: #ffdce3;
    font-size: 1.8rem;
    color: #755532;
    text-decoration: none;
    padding: 2rem 1rem 2rem;
    border: 1px solid #755532;
    ;
    text-align: center;
    margin-bottom: 56px;
}

.lesson-container {
    display: flex;
    justify-content: space-between;
    /* 横の間隔調整 */
    gap: 20px;
    /* 要素間にスペースを空ける */
    flex-wrap: wrap;
    /* スマホなどで折り返すように */
}

.lesson-item {
    flex: 1;
    /* 均等に横幅を配分 */
    max-width: 30%;
    /* 最大幅を30%にして3列表示 */
    box-sizing: border-box;
    text-align: center;
}

.lesson-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.lesson-text {
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: left;
}

.wrapper {
    margin: 0 auto;
    width: 80%;
}

/* レスポンシブ */
@media (max-width: 1050px) {
    .about-main {
        width: 100%;
    }

    h2 {
        min-width: 312px;
    }

    .about-text {
        width: 80%;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 3rem;
    }

    .lesson-text {
        font-size: 1rem;
    }
}

@media screen and (max-width:650px) {
    .about h1 {
        margin: 32px auto 24px;
        font-size: 1.6rem;
        line-height: 1.7;
    }

    h1,
    h2 {
        min-width: 312px;
    }

    /* h2.btn {
        width: 100%;
        text-align: center;
    } */

    .about-text p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .timeline-img-1pc {
        display: none;
    }

    .timeline-img-1mb {
        display: contents;
    }

    .timeline-img-1mb img {
        width: 80%;
        margin: 0 4% 0 10%;
    }

    .btn-wrapper {
        text-align: center;
    }

    .depository-text {
        font-size: 0.8rem;
        margin-top: 24px;
    }

    .sitter-btn {
        display: inline-block;
        margin: 0 auto;
        width: 90%;
        max-width: 400px;
        border-radius: 30px;
        background-color: #ffdce3;
        font-size: 1.8rem;
        color: #755532;
        text-decoration: none;
        padding: 1rem;
        border: 1px solid #755532;
    }

    .lesson-item {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .lesson-text {
        font-size: 1rem;
    }
}