/* サービス対応の流れ */

.s6 {
    position: relative;
    padding-top: 110px;
    padding-bottom: 143px;
    background: #FCFCFC;
}

.s6 .contents {
    padding: 0 20px;
    margin: 0;
}

.s6 h2 {
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 60px;
}

.s6 .service_flow_contents {
    text-align: center;
    gap: 7px;
}

.s6 .service_flow_contents_card {
    width: 194px;
    height: 234px;
    text-align: center;
    border: 1px solid #4C84D6;
    border-radius: 30px;
}

.s6 .service_flow_contents_card .number {
    font-size: 16px;
    font-weight: 500;
    color: #4C84D6;
    font-family: "Noto Sans JP", sans-serif;
    margin-bottom: 11px;
}

.s6 .service_flow_contents_card p {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 500;
    color:#535353;
    line-height: 27px;
}
.s6 .service_flow_contents_card span {
    font-size: 12px;
    font-weight: 400;
    color:#535353;
    line-height: 27px;
}

.s6 .service_icon_1 {
    width: 47px;
    height: 47px;
    background-image: url("../../media/p1_s6_2.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}
.s6 .service_icon_2 {
    width: 47px;
    height: 47px;
    background-image: url("../../media/p1_s6_3.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}
.s6 .service_icon_3 {
    width: 47px;
    height: 47px;
    background-image: url("../../media/p1_s6_4.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}
.s6 .service_icon_4 {
    width: 47px;
    height: 47px;
    background-image: url("../../media/p1_s6_5.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}

.s6 .right-arrow {
    width: 25px;
    height: 25px;
    background-image: url("../../media/p1_s6_1.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.s6 .line {
    display: block;
    width: 147px;
    height: 1px;
    background-color: #D9D9D9;
    margin: 0 auto;
    margin-top: 16px;
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
    .s6 { padding-top: 90px; padding-bottom: 110px; }
    .s6 .service_flow_contents { gap: 7px; }
}

@media (max-width: 900px) {
    .s6 .service_flow_contents { flex-wrap: wrap; justify-content: center; gap: 7px; }
    .s6 .right-arrow { position: relative; top: 0; transform: rotate(90deg); }
    .s6 .service_flow_contents_card { width: 200px; }
    .s6 .right-arrow { display: none; }
}

@media (max-width: 768px) {
    .s6 .service_flow_contents_card { width: 200px; height: 240px; }
    .s6 .service_flow_contents_card p { font-size: 16px; line-height: 24px; }
    .s6 .service_flow_contents_card .number { font-size: 14px; }
}

@media (max-width: 640px) {
    .s6 .service_flow_contents { 
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 42px;
    }

    .s6 .service_flow_contents_card { 
        display: flex; 
        flex-direction: row; 
        align-items: flex-start; 
        gap: 8px; 
        width: 100%;
        max-width: 280px; 
        padding: 28px 28px; 
        border-radius: 30px; 
        height: 140px; 
        position: relative;
        box-sizing: border-box;
    }

    .s6 .service_flow_contents_card .t2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .s6 .service_flow_contents_card .nagare { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center;
        gap: 8px; 
        flex: 0 0 auto; 
        min-width: 60px;
        height: 100%;
    }

    .s6 .service_flow_contents_card .nagare .number { 
        margin: 0; 
        font-size: 13px; 
        line-height: 1; 
        color: #4C84D6;
    }

    .s6 .service_flow_contents_card .nagare [class^="service_icon_"] { 
        width: 44px; height: 44px; 
        background-size: contain; 
    }

    .s6 .service_flow_contents_card .t2 { 
        margin: 0; 
        text-align: center; 
        font-size: 15px; 
        line-height: 1.5; 
        flex: 1 1 auto; 
        word-break: keep-all;
    }

    .s6 .service_flow_contents_card .t2 { 
        white-space: nowrap;
    }
    
    .s6 .service_flow_contents_card .line { display:none !important; }

    .s6 .service_flow_contents_card::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -28px;
        transform: translateX(-50%);
        width: 20px; height: 20px;
        background-image: url("../../media/p1_s4_2.svg");
        background-size: contain;
        background-repeat: no-repeat;
        pointer-events: none;
    }
    .s6 .service_flow_contents_card:last-of-type::after { display:none; }
}

@media (max-width: 520px) {
    .s6 .service_flow_contents { grid-template-columns: 1fr; }
    .s6 h2 { margin-bottom: 40px; font-size: 24px; text-align: center; }
    .s6 .service_flow_contents_card p { font-size: 15px; }
    .s6 .service_flow_contents_card span { font-size: 11px; }
}

@media (max-width: 400px) {
    .s6 .service_flow_contents_card p { font-size: 14px; line-height: 22px; }
    .s6 .service_flow_contents_card .number { font-size: 13px; }
    .s6 .service_flow_contents_card {
        margin-bottom: -20px;
    }
}