body {
    background-color: #fffdf5;
}

main.baby {
    max-width: 1400px;
    margin: 0 auto;
}

.baby p {
    font-size: 18px;
}

@media screen and (max-width:1000px){
    .baby p {
        font-size: 17px;
    }
    
}

@media screen and (max-width:480px){
    .baby p {
        font-size: 16px;
        line-height: 30px;
    }
    
    .baby-title-container {
        padding: 10px 20px;
    }

}

.baby-fv {
    display: flex;
    position: relative;
    width: 100%;
    height: 82vh;
    margin: 0 auto;
    overflow: hidden;
    margin: 0 0 100px 0;
}

.baby-fv-img-container {
    width: 90%;
    height: 100%;
    /* コンテナの高さを指定 */
    border-top-right-radius: 90px;
    border-bottom-right-radius: 90px;
    overflow: hidden;
    display: flex;
    /* コンテナ内の要素を調整 */
    align-items: stretch;
    /* 子要素がコンテナに合わせて伸びる */
    justify-content: center;
    /* 画像を中央配置 */
}

.baby-fv-img-container img {
    width: 100%;
    height: 100%;
    /* コンテナの高さいっぱいにする */
    object-fit: cover;
    /* 画像をコンテナにフィットさせる */
    filter: brightness(0.89);
}

.baby-fv-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 10%;
    writing-mode: vertical-rl;
    margin: 0 auto;
}

.baby-title::before,
.baby-title::after {
    display: block;
	content: '';
	position: absolute;
	width: 19px;
	height: 19px;
    background: url(../img/fv-radius-jenerator.svg);
}

.baby-title::before { top: -19px; left: 0; }
.baby-title::after { bottom: 0; right: -19px; }

.baby-semi-title {
    font-size: 17px;
    margin: auto;
    font-weight: normal;
}

.st-animation {
    display: inline-block;
}

.baby-title-container {
    position: absolute;
    display: flex;
    /* inline-block を flex に変更 */
    flex-direction: column;
    /* 縦方向に並べる */
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
    background-color: #fffdf5;
    padding: 20px 40px;
    border-top-right-radius: 20px;
}

.baby-title {
    font-size: 20px;
    letter-spacing: 7px;
    font-weight: normal;
}



.baby-content {
    border-radius: 20px;
    width: 100%;
}


.baby-content-title {
    display: inline-block;
    color: #303030;
    font-weight: 1000;
    font-size:30px;
    padding: 5px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center !important;
    width: 100%;
}


.baby-content-flexbox {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* 高さを揃える */
    gap: 20px; /* テキストと画像の間隔 */
}

.baby-content-text1 {
    flex: 1; /* テキストの幅を均等に調整 */
    padding: 20px;
    line-height: 39px;
    font-size: 16px;

}

.baby-content-text1-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 90px;
    border-bottom-left-radius: 90px;
    overflow: hidden;
}

.baby-content-text1-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

    .baby-content-title {
        font-size:19px;
    }
    
    
    .baby-content-flexbox {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        gap: 20px;
    }
    
    .baby-content-text1 {
        flex: 2;
        padding: 10px;
        line-height: 39px;
        font-size: 15px !important;
    
    }
    
    .baby-content-text1-img {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top-left-radius: 90px;
        border-bottom-left-radius: 90px;
        overflow: hidden;
        max-height: 500px;
    }
    
    .baby-content-text1-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    
}

@media screen and (max-width:480px){
    .baby-fv {
        height: 400px;
    }

    .baby-content-title {
        font-size: 17px !important;
    }

    .baby-title-container {
        padding: 10px 20px;
    }

    .baby-title {
        font-size: 17px;
    }

    .baby-semi-title {
        font-size: 15px;
    }
    
}

.baby-spacing {
    position: relative;
    width: 100%;
    height: 100px;
}

.baby-bg1 {
    width: 30vw;
    height: 30vw;
    position: absolute;
    left: 15%;
    top: 0;
    background-color: #ffdfb83b;
    border-radius: 300px;
    z-index: -1;
    overflow: hidden;
}



.baby-bg2 {
    width: 15vw;
    height: 15vw;
    position: absolute;
    background-color: #ffdfb83b;
    right: 15%;
    border-radius: 15vw;
    bottom: 0;
    z-index: -1;

}






.alltrouble-container {
    position: relative;
    background-color: #006c29;
    padding: 30px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 2;
}

.alltrouble {
    color: #f0f0f0;
    font-size: 16px;
    margin: 4vw 0;
}

.baby-content-group2 {
    line-height: 39px;
    padding: 5vw;
}

.baby-content-group2 span {
    display: inline-block;
    font-weight: 1000;
    font-size: 24px;
    padding: 5px;
    border-radius: 10px;
    margin: 20px 0;
}


.contact--btn-container {
    position: relative;
    margin: -40px 0 0 0;
    padding: 120px 0 100px 0;
    width: 100%;
    background: url(../img/hashimotoyakkyoku-contact-bg.webp);
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.contact--btn {
    width: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: #fffdf5;
    padding: 50px 0px;
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 auto;

    

}

.contact--btn-text {
    margin: 0 0 0 150px;
    font-size: 18px;
}


.contact--btn img{
    margin: 0 80px 0 0;
    width: 25px;
    height: 25px;
}

.contact--btn:hover {
    background-color: #c8c8c8;
    transition: 0.6s;
}

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

    .alltrouble-container {
        background-color: #006c29;
        padding: 30px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .alltrouble {
        color: #f0f0f0;
        font-size: 13px !important;
        margin: 4vw 0;
    }

    .contact--btn-container {
    padding: 80px 0 60px 0;
}

.contact--btn {
    width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: #fffdf5;
    padding: 20px 0px;
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact--btn-text {
    margin: 0 0 0 50px;
    font-size: 16px;
}

.contact--btn img{
    margin: 0 30px 0 0;
    width: 15px;
    height: 15px;
}
}
