:root {
    --c-accent: #2574be;
    --c-line: #0e1850;
    --c-bg: #fafafa;
    --w-wrap: 1080px;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

#Page-service .service-wrap {
    max-width: var(--w-wrap);
    margin: auto;
}

#Page-service .service-sec {
    padding: 64px 0;
    /* border-top: 1px solid var(--c-line); */
}

#Page-service .service-sec:first-of-type {
    border-top: 0;
}

#Page-service .service-head {
    margin: 0 0 28px;
    display: grid;
    gap: 10px;
}

#Page-service .service-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .04em;
}

#Page-service .service-lead {
    /* font-size: 15px; */
}

/* 新築アイコン */
#Page-service .newbuild-icons {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
    margin: 16px 0 20px;
}

#Page-service .newbuild-card {
    aspect-ratio: 1/1;
}

#Page-service .newbuild-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#Page-service .flow {
    display: grid;
    gap: 60px;
    margin-top: 16px;
    position: relative;
    margin-left: 38px;
}


#Page-service .flow-step {
    background: rgba(37,116,190,.15);
    border: none;
    border-radius: 6px;
    padding: 24px 20px 24px 64px;
    position: relative;
}


#Page-service .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    /* bottom: -20px; */
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #2574be;
    bottom: -38px;
}


#Page-service .flow-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2574be;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -38px;
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}


#Page-service .flow-badge .label {
    font-size: 11px;
    margin-bottom: 0;
    color: #fff;
}


#Page-service .flow-badge .num {
    font-size: 32px;
    line-height: 1;
    margin: 0;
    color: #fff;
}


#Page-service .flow-content {}

#Page-service .flow-title {
    font-weight: 700;
    margin-bottom: 6px;
}

#Page-service .flow-desc {
    font-size: 14px;
    color: #555;
}

/* リフォーム */
#Page-service .reform-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
}

#Page-service .reform-card {
    border: 1px solid var(--c-line);
    background: #fff;
    padding: 10px;
    display: grid;
    gap: 8px;
}

#Page-service .reform-thumb {
    aspect-ratio: 4/3!important; 
    background: #f3f4f6;
    /* display: grid;
    place-items: center; */
    color: #999;
    /* font-size: 12px; */
}

#Page-service .reform-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#Page-service .reform-label {
    /* font-size: 13px; */
    color: #666;
    text-align: center;
}

@media (max-width:1023.98px) {
    #Page-service .newbuild-icons {
        grid-template-columns: repeat(3, 1fr);
    }

    #Page-service .reform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:575.98px) {
    #Page-service .service-wrap {
        padding: 40px 14px;
    }

    #Page-service .service-title {
        /* font-size: 22px; */
    }

    #Page-service .reform-grid {
        grid-template-columns:1fr;
    }

    #Page-service .newbuild-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}