main {
    margin: 0 auto 48px;
    padding: 0 10px;
    max-width: 1000px;
}

hgroup {
    padding: 1em 0 0;
}

hgroup p {
    font-size: 48px;
    line-height: 1;
}

hgroup h1 {
    font-size: 16px;
}

.work-list {
    display: flex;
    justify-content: space-evenly;
    width: calc(100% + 20px);
    margin-left: -10px;
    gap: 10px;
}

.work-list:last-child {
    margin-top: 32px;
}

.work-list li {
    background-repeat: no-repeat;
    background-size: cover;
    max-width: 300px;
    flex: 1;
    aspect-ratio: 4/5;
    border-radius: 10px;
    padding: 8px 4px;
    border: 3px solid #1993C9;
    border-bottom-width: 9px;
    position: relative;
    box-sizing: border-box;
}

.concrete {
    background-image: linear-gradient(to bottom, rgba(25,147,201,0) 54%, rgba(25,147,201,0.7) 100%),
    url(concrete.jpg);
    background-position: center 60%;
}

.formwork {
    background-image: linear-gradient(to bottom, rgba(25,147,201,0) 54%, rgba(25,147,201,0.7) 100%),
    url(formwork.jpg);
}

.curb {
    background-image: linear-gradient(to bottom, rgba(25,147,201,0) 54%, rgba(25,147,201,0.7) 100%),
    url(curb.jpg);
}

.fibc {
    background-image: linear-gradient(to bottom, rgba(25,147,201,0) 54%, rgba(25,147,201,0.7) 100%),
    url(fibc.jpg);
}

.work-list li a {
    color: #fff;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.work-list li a p {
    text-shadow: 0 0px 5px rgba(0, 0, 0, 0.4);
    font-size: clamp(14px,3.5vw,16px);
    font-weight: bold;
    width: fit-content;
    margin: 0;
}

.work-list li a h2 {
    color: #fff;
    border-top: unset;
    background-color: #004cbf;
    padding: 4px 8px;
    font-size: clamp(12px,3vw,16px);
    font-weight: bold;
    width: fit-content;
    border-radius: 12px;
    margin: 0 auto;
    line-height: 1;
}

.work-list li a h2::before {
    display: none;
}

.work-list li a .check {
    position: absolute;
    top: -8px;
    right: -8px;
    aspect-ratio: 1;
    width: 48px;
}

.work-list li > .line {
    position: absolute;
    background: url(line.svg) no-repeat;
    background-size: contain;
    display: block;
    width: 10px;
    height: 125%;
    margin: 0 auto;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
}

.work-list .fibc > .line {
    right: -45%;
}

.work-list:last-child li > .line {
    top: -80%;
    height: 80%;
    transform: rotate(180deg);
}

.works-img {
    max-height: 500px;
    object-fit: contain;
}

.next-page {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),url(../cs.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 45%;
}

@media(min-width:425px){
    .work-list li {
        aspect-ratio: 4 / 3;
    }
}

@media(min-width:700px) {
    .work-list {
        justify-content: space-between;
    }

    .work-list:last-child {
        margin-top: 0;
    }

    .work-list li {
        aspect-ratio: 4 / 3;
        margin-bottom: -120px;
    }

    .work-list:last-child li {
        margin-bottom: 0;
        margin-top: -48px;
    }

    .work-list li > .line,.work-list .fibc > .line {
        left: 35%;
        transform: rotate(-45deg);
        top: 94%;
        height: 55%;
    }

    .work-list .concrete > .line {
        left: -55%;
        transform: rotate(45deg);
    }

    .work-list:last-child .formwork > .line {
        right: -10%;
        transform: rotate(234deg);
        top: -57%;
        height: 75%;
    }

    .work-list:last-child .curb > .line {
        left: -40%;
        transform: rotate(120deg);
        top: -45%;
        height: 60%;
    }

    .work-list li a .check {
        width: 64px;
    }
}

@media(min-width:920px) {
    .work-list li {
        margin-bottom: -220px;
    }

    .work-list:last-child li {
        margin-bottom: 0;
        margin-top: -220px;
    }

    .work-list li > .line,.work-list .fibc > .line {
        top: 0;
        bottom: 0;
        right: -94%;
        margin: auto;
    }

    .work-list .concrete > .line {
        left: -94%;
        right: 33%;
        top: 75%;
    }

    .work-list:last-child .formwork > .line {
        height: 55%;
        top: -20%;
        left: 108%;
        transform: rotate(210deg);
    }

    .work-list:last-child .curb > .line {
        height: 55%;
        top: 25%;
        right: 90%;
        transform: rotate(125deg);
    }
}