/* SSBメゾット（運動療法） */
#ssb-method{
    padding: 100px 0 80px;
    background: #FCFAEE;
}

.ssb-method-header{
    background: #587401;
    padding: 24px 0;
    margin-bottom: 40px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s ease;
}

.ssb-method-header:hover{
    opacity: 0.9;
}

.ssb-method-header-inner{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.ssb-method-header h2{
    color: #F1F7EF;
    -webkit-text-stroke-width: 0.3px;
    -webkit-text-stroke-color: #F1F7EF;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: clamp(1.25rem, 1.129rem + 0.52vw, 1.75rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.6px;
    margin: 0;
}

.ssb-method-time{
    display: flex;
    align-items: center;
    gap: 8px;
    right: 60px;
}

.ssb-method-time img{
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.ssb-method-time p{
    color: #F1F7EF;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.48px;
    margin: 0;
}

.ssb-method-arrow{
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.ssb-method-arrow img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ssb-method-header.active .ssb-method-arrow{
    transform: rotate(180deg);
}

.ssb-method-steps{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2%;
    position: relative;
    display: none;
    animation: fadeIn 0.3s ease;
}

.ssb-method-steps.active{
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ssb-method-step{
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.ssb-method-step:not(:last-child)::after{
    content: '';
    position: absolute;
    left: 260px;
    top: 200px;
    width: 2px;
    height: calc(100% + 60px);
    border-left: 4px dashed #D2E1AA;
}

.step-number{
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #587401;
    -webkit-text-stroke-width: 3.86px;
    -webkit-text-stroke-color: #587401;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1.44px;
    position: relative;
    z-index: 1;
}

.step-image{
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

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

.step-content{
    flex: 1;
    padding-top: 20px;
}

.step-content h3{
    color: #523116;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.72px;
    margin-bottom: 16px;
}

.step-content p{
    color: #523116;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.48px;
    margin: 0;
}

@media screen and (max-width: 768px) {
    #ssb-method{
        padding: 60px 0 40px;
    }

    .ssb-method-header-inner{
        flex-wrap: wrap;
        gap: 16px;
    }

    .ssb-method-header h2{
        width: 100%;
        font-size: 18px;
    }

    .ssb-method-time{
        position: static;
        order: 2;
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    .ssb-method-time img{
        display: none;
    }
    

    .ssb-method-arrow{
        order: 3;
    }

    .ssb-method-step{
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-bottom: 40px;
    }

    .ssb-method-step:not(:last-child)::after{
        display: none;
    }

    .step-number{
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .step-image{
        width: 150px;
        height: 150px;
    }

    .step-content{
        width: 100%;
        padding-top: 0;
        text-align: center;
    }

    .step-content h3{
        font-size: 18px;
        margin-bottom: 12px;
    }

    .step-content p{
        font-size: 14px;
    }
}

/* お問合せトップセクション */
#contact-top{
    padding: 100px 0 80px;
    background: #FCFAEE;
}

.contact-top-headline{
    text-align: center;
    margin-bottom: 16px;
    width: 100%;
    max-width: 430px;
    margin: 0 auto 24px;
}

.contact-top-headline p{
    color: #F59D32;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: clamp(1rem, 0.879rem + 0.52vw, 1.5rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.48px;
    margin: 0;
}

.contact-top-title{
    text-align: center;
    margin-bottom: 32px;
}

.contact-top-title h2{
    color: #523116;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: clamp(1.5rem, 1.379rem + 0.52vw, 2rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.6px;
    margin: 0;
}

.contact-top-banner-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 64px;
    position: relative;
}

.contact-top-banner{
    background: #587401;
    border-radius: 16px;
    padding: 16px 48px;
    box-sizing: border-box;
}

.contact-top-banner p{
    color: #F1F7EF;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: clamp(1rem, 0.879rem + 0.52vw, 1.5rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.48px;
    margin: 0;
    white-space: nowrap;
}

.contact-top-profile{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.contact-top-profile img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-services{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-service-item{
    background: #F1F1F1;
    border-radius: 16px;
    padding: 32px;
    box-sizing: border-box;
    text-align: center;
}

.contact-service-item h3{
    color: #523116;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.6px;
    margin-bottom: 24px;
}

.contact-service-image{
    width: 80%;
    margin: 0 auto 24px;
}

.contact-service-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-service-item p{
    color: #523116;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.48px;
    margin: 0;
    text-align: left;
}
section.cta{
    padding: 64px 0;
    background: #FCFAEE;
}
.cta-flex{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

@media screen and (max-width: 768px) {
    #contact-top{
        padding: 60px 0 40px;
    }

    .contact-top-banner-wrapper{
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }

    .contact-top-banner{
        padding: 12px 32px;
    }

    .contact-top-banner p{
        white-space: normal;
        text-align: center;
    }

    .contact-top-profile{
        width: 60px;
        height: 60px;
    }

    .contact-services{
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-service-item{
        padding: 24px;
    }

    .contact-service-image{
        width: 150px;
        height: 150px;
    }
    .cta-flex{
        flex-direction: column;
        gap: 16px;
    }
}

/* お問合せフォーム */
#contact-form{
    padding: 100px 0;
    background: #587401;
}

.contact-form-header{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2% 40px;
    text-align: center;
}

.contact-form-header h2{
    color: #F1F7EF;
    -webkit-text-stroke-width: 0.3px;
    -webkit-text-stroke-color: #F1F7EF;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 2.244px;
    margin-bottom: 24px;
}

.contact-form-intro{
    color: #F1F7EF;
}

.contact-form-intro p{
    color: #F1F7EF;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.48px;
    margin-bottom: 8px;
}

.contact-form-wrapper{
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2%;
}

.contact-form-panel{
    background: #FFF;
    border-radius: 16px;
    padding: 48px;
    box-sizing: border-box;
    position: relative;
}

/* Contact Form 7 スタイル */
.wpcf7-form{
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wpcf7-form p{
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpcf7-form label{
    color: #523116;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.48px;
    margin-bottom: 8px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea{
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #C9C9C9;
    border-radius: 5px;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 16px;
    color: #523116;
    box-sizing: border-box;
}

.wpcf7-form textarea{
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form .wpcf7-list-item{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.wpcf7-form .wpcf7-list-item input[type="checkbox"]{
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.wpcf7-form .wpcf7-list-item label{
    color: #523116;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.48px;
    cursor: pointer;
    margin: 0;
}

.wpcf7-submit-wrapper{
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.wpcf7-submit-wrapper::before{
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: url(../img/contact-profile.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.wpcf7-submit{
    background: #587401;
    color: #F1F7EF;
    border: none;
    border-radius: 40px;
    padding: 16px 64px;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: clamp(1rem, 0.879rem + 0.52vw, 1.5rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.72px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 0;
    margin-top: 30px;
}

.wpcf7-submit:hover{
    opacity: 0.9;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok{
    padding: 16px;
    border-radius: 5px;
    margin-bottom: 24px;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 14px;
}

.wpcf7-validation-errors{
    background: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

.wpcf7-mail-sent-ok{
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

@media screen and (max-width: 768px) {
    #contact-form{
        padding: 60px 0;
    }

    .contact-form-header h2{
        font-size: 24px;
        margin-bottom: 16px;
    }

    .contact-form-intro p{
        font-size: 14px;
        margin-bottom: 4px;
    }

    .contact-form-panel{
        padding: 24px;
    }

    .wpcf7-form{
        gap: 24px;
    }

    .wpcf7-submit-wrapper::before{
        width: 50px;
        height: 50px;
        top: -30px;
    }

    .wpcf7-submit{
        padding: 14px 48px;
        font-size: 16px;
        margin-top: 25px;
    }
}

