.guarantee-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.guarantee-section.building,
.guarantee-section.facility {
    background: #e9e9e9;
}

.section-title {
    border-left: 4px solid #172e6f;
    padding-left: 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 40px;
    position: relative;

    .icon {
        height: 400px;
        position: absolute;
        left: -80px;
        z-index: 0;
        top: -60px;
        opacity: 0.1;

        svg {
            width: 100%;
            height: 100%;
        }
    }

    .label {
        background: #172e6f;
        color: #fff;
        padding: 10px 20px;
        display: inline-block;
    }
}

.section-sub-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 3px solid #172e6f;
    padding-left: 12px;
    color: #172e6f;
}

.service-text {
    font-size: 18px;
    position: relative;

    p {
        margin-bottom: 20px;
    }

    .small {
        font-size: 16px;
        color: #666;
    }

    .support-list {
        display: flex;
        gap: 20px;

        li {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 40px;
            border: 1px solid #172e6f;
            background: #FFF;
            width: 100%;
            padding: 20px;
            align-items: center;

            .img {
                width: 60px;
                height: 60px;

                svg {
                    width: 100%;
                    height: 100%;
                }
            }

            .text {
                font-size: 20px;

                .marker {
                    display: inline-block;
                    position: relative;
                    z-index: 1;
                    color: rgb(255, 128, 30);
                    font-weight: bold;
                }
            }
        }
    }
}

.service-img {
    margin-bottom: 40px;
    position: relative;
}

.service-box {
    padding-top: 40px;
    position: relative;

    h3 {
        font-size: 24px;
        position: relative;
        padding-left: 80px;
        color: #172e6f;
        margin-bottom: 30px;

        &::before {
            content: "";
            width: 60px;
            height: 1px;
            background: #172e6f;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            display: block;
            z-index: 1;
        }
    }

    p {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .correspondence-list {
        display: flex;
        gap: 20px;
        margin-bottom: 40px;

        li {
            width: 50%;
            text-align: center;
            border: 1px solid #172e6f;
            color: #333;
            background: #fff;
            padding: 20px;
            font-size: 18px;
            font-weight: 500;
        }
    }

    .risk-list {
        display: flex;
        gap: 40px;
        margin-bottom: 40px;

        li {
            width: 50%;
            background: #FBF9F8;

            h4 {
                background: #172e6f;
                text-align: center;
                color: #fff;
                padding: 12px;
                font-size: 16px;

            }

            .img {
                padding: 20px;

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

            .qualified-list {
                padding: 20px;

                li {
                    margin-bottom: 10px;
                    background: #fff;
                    padding: 10px;
                    border-radius: 4px;
                    width: 100%;
                    text-align: center;
                }
            }
        }
    }

    .service-case {
        display: flex;
        gap: 20px;


        .service-case-box {
            background: #fff;
            padding: 40px;
            border-radius: 4px;
            width: 48%;

            .title {
                display: flex;
                font-size: 20px;
                align-items: flex-end;
                gap: 20px;
                margin-bottom: 12px;
                color: #172e6f;
                font-weight: bold;

                .label {
                    background: #172e6f;
                    color: #FFF;
                    font-size: 16px;
                    padding: 4px;
                }
            }

            p {
                margin: 0;
            }

            .service-case-left {
                width: 100%;

            }

            .service-case-right {
                width: 100%;
                display: flex;
                gap: 20px;
                align-items: center;
                margin-top: 20px;
                justify-content: space-between;

                .things {
                    border: 1px solid #172e6f;
                    padding: 4px 12px;
                    font-size: 16px;
                    margin-bottom: 8px;
                }

                .price {
                    font-size: 20px;
                    font-weight: bold;
                    text-align: right;

                    span {
                        font-size: 30px;
                        margin-right: 8px;
                    }
                }

                .arrow {
                    width: 80px;

                    svg {
                        width: 100%;
                        height: 100%;
                    }
                }

                .free-badge {
                    background: #ff801e;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 100px;
                    height: 100px;
                    border-radius: 50%;
                    font-size: 16px;
                    color: #fff;
                    font-size: 24px;
                }

                .img {
                    width: 100px;
                }
            }
        }

    }

    .subject-list {
        display: flex;
        gap: 10px;

        .img-wrap {
            position: relative;
            margin-bottom: 8px;

            h4 {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                z-index: 1;
                background: #172e6f;
                color: #fff;
                padding: 8px 12px;
                font-weight: bold;
                font-size: 14px;
                margin: 0;
            }

            .badge {
                position: absolute;
                bottom: 10px;
                right: 4px;
                width: 50px;
                height: 50px;
                background: #fff;
                border: 1px solid #ff801e;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 1;
                color: #ff801e;
                font-size: 14px;
                font-weight: bold;
                gap: 2px;
                line-height: 1;

                span {
                    font-size: 24px;
                }
            }
        }

        .subject-item {
            width: 20%;

            p {
                font-size: 15px;
            }
        }
    }

    .subject-note p {
        font-size: 16px;
        margin-top: 60px;
        color: #666;
        font-weight: 500;
    }
}

.guarantee-section.fv {
    padding-top: 0px;

    .fv-inner {
        display: flex;
        align-items: center;
        gap: 40px;
        margin-bottom: 120px;

        .fv-img {
            width: 50%;
            position: relative;

            img {
                width: 100%;
                height: auto;
            }
        }

        .fv-text {
            width: 50%;
            max-width: 580px;
            padding-right: 20px;

            h2 {
                font-size: 24px;
                font-weight: 700;
                line-height: 1.5;
                margin-bottom: 20px;
            }

            .fv-message {
                p {
                    font-size: 16px;
                    line-height: 1.5;
                    margin-bottom: 20px;
                }

                .fv-logo-img {
                    width: 260px;
                    padding: 12px;
                    margin: 20px auto 0;
                    background: #FFF;
                }
            }
        }
    }

    .guarantee-build {
        margin-bottom: 80px;

        h2 {
            font-size: 28px;
            font-weight: 700;
            line-height: 1.5;
            margin-bottom: 40px;
            text-align: center;

            span {
                background: #172e6f;
                color: #fff;
                padding: 10px 20px;
                display: inline-block;

                .strong {
                    color: #ff801e;
                    font-size: 30px;
                    padding: 0;
                    margin-left: 8px;
                }
            }
        }

        .guarantee-build-img {
            img {
                width: 100%;
            }
        }

        .guarantee-build-note {
            text-align: right;
            margin-top: 8px;
            font-size: 14px;
            color: #666;
            font-weight: 500;
        }

        .guarantee-build-attention {
            font-size: 16px;
            margin-top: 20px;
            text-align: center;
            font-weight: 500;
            background: #e9e9e9;
            padding: 20px;
        }

    }


    .guarantee-menu-list {
        display: flex;
        justify-content: space-between;

        li {
            width: 30%;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            padding: 0 10px 0;

            a {
                display: flex;
                flex-direction: column;
                flex-grow: 1;
                background-image: url(../../guarantee/img/arrow_under01.png);
                background-size: 20px auto;
                background-position: bottom 40px center;
                background-repeat: no-repeat;
                background-color: #efefef;
                border-radius: 4px;
                padding: 40px 15px 30px;
                color: #000;
            }


            h3 {
                text-align: center;
                font-size: 20px;
                font-weight: 500;
                margin-bottom: 12px;
            }

            .img {
                text-align: center;
                height: 200px;
                background: #fff;
                border-radius: 50%;
                width: 200px;
                height: 200px;
                padding: 40px;
                margin: 0 auto;

                svg {
                    height: auto;
                    width: auto;
                    max-width: 100%;
                    max-height: 100%;
                }
            }

            .time {
                margin-top: 10px;
                text-align: center;
                font-size: 18px;
                margin-bottom: 20px;

                .year {
                    line-height: 1;
                    font-size: 36px;
                    font-weight: 500;
                    color: #ff801e;
                    margin-right: 4px;
                }
            }

            .arrow {
                width: 40px;
                height: 40px;
                margin-left: auto;
                margin-right: auto;

                svg {
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }
}

.guarantee-section.program {
    .program-top {
        margin-bottom: 60px;

        .program-img {
            margin-bottom: 20px;
        }
    }
}

.guarantee-section.faq {
    .faq-item {
        border-bottom: 1px solid #ccc;
        padding: 20px 0;

        &.open {
            .faq-answer {
                transition: 0.4s all;
                display: block;
            }
        }
    }

    .faq-question {
        font-weight: bold;
        position: relative;
        padding-right: 20px;
        font-size: 20px;
        color: #172e6f;
        padding-left: 60px;

        &::before {
            content: "Q";
            font-family: "Noto Sans JP", sans-serif;
            width: 40px;
            height: 40px;
            background: #172e6f;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            border-radius: 50%;
        }
    }

    .faq-answer {
        transition: 0.4s all;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding-left: 60px;
        padding-right: 20px;
        font-size: 18px;
        color: #333;
        position: relative;
        padding-top: 20px;
        padding-bottom: 20px;
        display: none;
        margin-top: 10px;



        &::before {
            content: "A";
            font-family: "Noto Sans JP", sans-serif;
            width: 40px;
            height: 40px;
            background: #ff801e;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            border-radius: 50%;
        }
    }

    .faq-item.open .faq-answer {
        max-height: 500px;
        /* 十分な高さを指定（回答が収まるように） */
    }
}

@media (max-width: 991px) {
    .service-box {
        .service-case {
            flex-direction: column;

            .service-case-box {
                width: 100%;
            }
        }
    }
}

@media (max-width: 768px) {
    .min-600 {
        overflow: scroll;

        img {
            min-width: 600px;
        }


    }

    .section-title {
        font-size: 22px;

        .icon {
            height: 240px;
            left: -20px;
        }
    }

    .service-box {
        h3 {
            font-size: 20px;
        }

        .correspondence-list {
            gap: 10px;

            li {
                padding: 8px 4px;
                font-size: 15px;
            }
        }

        .risk-list {
            flex-direction: column;
            gap: 20px;
            max-width: 400px;
            margin: auto;

            li {
                width: 100%;

                .qualified-list {
                    li {
                        font-size: 16px;
                    }
                }
            }
        }

        .service-case {
            flex-direction: column;

            .service-case-box {
                padding: 20px;

                .title {
                    flex-direction: column;
                    align-items: start;
                    gap: 8px;
                }

                .service-case-right {
                    flex-direction: column;
                    gap: 10px;

                    .arrow {
                        width: 40px;
                        transform: rotate(90deg);
                        height: 40px;
                    }

                    .price {
                        text-align: center;
                    }

                    .free-badge {
                        width: 80px;
                        height: 80px;
                    }
                }
            }
        }

        .subject-list {
            flex-wrap: wrap;
            // justify-content: space-between;
            justify-content: center;

            .subject-item {
                width: 48%;
                max-width: 190px;
            }

            .img-wrap {
                h4 {
                    font-size: 14px;
                }

                .badge {
                    width: 40px;
                    height: 40px;

                    span {
                        font-size: 20px;
                    }
                }
            }
        }

        .subject-note p {
            font-size: 14px;
            margin-top: 20px;
        }
    }

    .service-text {
        .support-list {
            flex-direction: column;
            max-width: 400px;
            margin: auto;

            li {
                margin-bottom: 0;
            }
        }
    }

    .guarantee-section.fv {
        .fv-inner {
            flex-direction: column;
            margin-bottom: 60px;

            .fv-img {
                width: 100%;
            }

            .fv-text {
                width: 100%;
                padding: 0 20px;
            }
        }

        .guarantee-build {
            margin-bottom: 40px;

            h2 {
                font-size: 22px;

                span {
                    .strong {
                        font-size: 24px;
                    }
                }
            }

            .guarantee-build-note {
                text-align: left;
            }

            .guarantee-build-attention {
                text-align: left;

                br {
                    display: none;
                }
            }

        }

        .guarantee-menu-list {
            flex-direction: column;
            gap: 20px;

            li {
                padding: 0 0px 0;
                width: 100%;

                .img {
                    width: 140px;
                    height: 140px;
                    padding: 20px;
                }

                a {
                    padding: 20px 10px 10px;
                }
            }
        }
    }

    .guarantee-section.faq {
        .faq-question {
            font-size: 18px;
            padding-left: 40px;

            &::before {
                width: 30px;
                height: 30px;
                font-size: 18px;
            }
        }

        .faq-answer {
            font-size: 16px;
            padding: 10px;
            padding-left: 40px;

            &::before {
                width: 30px;
                height: 30px;
                font-size: 18px;
            }
        }
    }
}

@media (max-width: 575px) {
    .section-title {
        .icon {
            height: 150px;
            left: -20px;
            top: -40px;
        }
    }

    .guarantee-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .guarantee-section.fv {
        .fv-inner {
            .fv-img {
                .fv-logo-img {
                    width: 160px;
                }
            }
        }
    }
}