/* About Section Styles */
#about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    background: #FFFCDB;
    color: #333;
    margin-top: 60px;
    padding: 0;
    border: none;
}

.about-image {
    grid-column: 1;
    height: 100%;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: none;
}

.about-content {
    grid-column: 2;
    padding: 0 50px;
}

.about-content h2 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 60px;
    color: #000;
}

.about-content h3 {
    font-size: 1.7rem;
    font-weight: 260;
    margin-bottom: 40px;
    color: #000;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
    margin-left: 65px;
    max-width: 90%;
    /* デフォルトの幅を設定し、全体の幅を柔軟に */
}

/* Concept Section */
#concept {
    display: flex;
    flex-direction: column;
    background-color: #EDEBEB;
}

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

#concept h3 {
    text-align: center;
    font-size: 40px;
    margin-bottom: -5px;
    text-shadow: 2px 2px 4px rgb(200, 255, 160);
    /* 黒い影を追加 */
}

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

/* Yokota Section */
#yokota {
    background-color: #141515;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: aliceblue;
    padding: 0;
    min-height: 100vh;
    /* 全体の高さをビューポートに合わせる */
    margin: 0;
    /* 余白をなくす */
}

.yokota-content {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 40px;
    background-color: #686161;
}

.yokota-content h2 {
    font-size: 30px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.yokota-content h3 {
    font-size: 35px;
    margin-bottom: 0;
}

.yokota-content h4 {
    font-size: 30px;
    color: rgb(7, 212, 212);
    margin-bottom: 10px;
}

.yokota-content p {
    font-size: 25px;
}

.yokota-img {
    grid-column: 2;
    position: relative;
    height: 100%;
    /* 親要素の高さを100%に設定 */
    overflow: hidden;
    /* 画像が親要素を超えた場合に隠す */
}

.yokota-img img {
    width: 100%;
    height: 100%;
    /* 画像の高さを親要素に合わせる */
    object-fit: cover;
    /* 画像を親要素の大きさに合わせて切り取る */
    object-position: center;
    /* 画像の中央部分を表示 */
}

.yokota-mobailimg {
    display: none;
}

/* Oyama Setubi Section */
#oyama-setubi {
    background-color: #f4edeb;
    display: flex;
    flex-direction: column;
    padding: 70px;
    margin: 0;
    min-height: 100vh;
    /* 全体の高さをビューポートに合わせる */
}

.intro {
    text-align: center;
    margin: 20px 0;

}

.intro h1 {
    font-size: 40px;
}

/* Ring Section */
.ring {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #f7f7f7;
}

.ring-text {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 40px;
}

.ring-img {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

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


/* Sandback Section */
.sandback {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #f7f7f7;
}

.sandback-text {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 40px;
    margin-top: 0;
}

.sandback-img {
    grid-column: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sandback-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 0;
    /* 画像自体の上のマージンをリセット */
}

#sandback-mobailcontainer {
    display: none;
}

/* Ring Section */
.untei {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #f7f7f7;
}

.untei-text {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 40px;
}

.untei-img {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* kettlebell Section */
.kettlebell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #f7f7f7;
}

.kettlebell-text {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 40px;
    margin-top: 0;
}

.kettlebell-img {
    grid-column: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kettlebell-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 0;
    /* 画像自体の上のマージンをリセット */
}

#kettlebell-mobailcontainer {
    display: none;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    #about {
        display: flex;
        background-image: url("images/Tri.H00262.png");
        background-size: cover;
    }

    .about-image {
        display: none;
    }

    .about-content h2 {
        margin-top: 60px;
    }

    .about-content h3 {
        margin-top: -30px;
        margin-left: 18px;
    }

    .about-content p {
        font-size: 18px;
        margin-left: 18px;
        margin-bottom: 60px;
        text-align: left;
        width: 90%;
    }

    #concept h3 {
        margin-top: 60px;
        font-size: 35px;
    }

    #concept p {
        text-align: left;
        margin-top: 40px;
        font-size: 20px;
    }

    #yokota,
    #oyama-setubi {
        background-color: #EDEBEB;
        margin: 0;
    }

    #yokota {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .yokota-img {
        display: none;
    }

    .yokota-content h2 {
        font-size: 22px;
        font-weight: 800;
    }

    .yokota-content h3 {
        font-size: 30px;
    }

    .yokota-content h4 {
        font-size: 25px;
    }

    .yokota-content p {
        font-size: 18px;
    }

    .yokota-mobailimg {
        display: block;
        width: 100%;
        height: auto;
    }

    .yokota-mobailimg img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    #oyama-setubi {
        padding: 30px;
    }

    .ring {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ring-text h2 {
        font-size: 22px;

    }

    .ring-img img {
        margin-top: 20px;
    }

    .sandback {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sandback-img {
        display: none;
    }

    #sandback-mobailcontainer {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        margin: 0%;
        padding: 0%;
    }

    #sandback-mobailcontainer img {
        width: 100%;
        height: 100%;
        gap: 0%;
        object-fit: cover;
    }


    .untei {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .untei-img img {
        margin-top: 20px;
    }

    .kettlebell {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .kettlebell-img {
        display: none;
    }

    #kettlebell-mobailcontainer {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        margin: 0%;
        padding: 0%;
    }

    #kettlebell-mobailcontainer img {
        width: 100%;
        height: 100%;
        gap: 0%;
        object-fit: cover;
    }
}




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