/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

@charset "UTF-8";

.works {
    margin: 0 auto;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: auto 343px auto;
    grid-template-columns: auto 343px auto;
    -ms-grid-columns: auto calc(21.4375rem + ((1vw - 3.78px) * 78.7179)) auto;
    grid-template-columns: auto calc(21.4375rem + ((1vw - 3.78px) * 78.7179)) auto;
    -ms-grid-rows: 250px auto auto;
    grid-template-rows: 250px auto auto;
    background-image: url(../img/works-image-2.jpg);
    background-size: cover;
    background-blend-mode:lighten;
}

.works > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}

.works > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 2;
}

.works > *:nth-child(3) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
}

.works > *:nth-child(4) {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
}

.works > *:nth-child(5) {
    -ms-grid-row: 2;
    -ms-grid-column: 2;
}

.works > *:nth-child(6) {
    -ms-grid-row: 2;
    -ms-grid-column: 3;
}

.works > *:nth-child(7) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
}

.works > *:nth-child(8) {
    -ms-grid-row: 3;
    -ms-grid-column: 2;
}

.works > *:nth-child(9) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
}

.works > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}

.works > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 2;
}

.works > *:nth-child(3) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
}

.works > *:nth-child(4) {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
}

.works > *:nth-child(5) {
    -ms-grid-row: 2;
    -ms-grid-column: 2;
}

.works > *:nth-child(6) {
    -ms-grid-row: 2;
    -ms-grid-column: 3;
}

.works > *:nth-child(7) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
}

.works > *:nth-child(8) {
    -ms-grid-row: 3;
    -ms-grid-column: 2;
}

.works > *:nth-child(9) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
}

.work-title {
    width: 330px;
    height: auto;
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 1;
    grid-row: 1;
    text-align: center;
    margin: 20px auto 20px auto;
    padding-top: 40px;
    background-color:rgba(255, 255, 255, 0.9);
}

.work-title h2 {
    font-size: 16px;
    margin-bottom: 20px;
}

.work-title h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

.work-contents {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 2;
    grid-row: 2;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 170px 3px 170px;
    grid-template-columns: repeat(2, 170px);
    -ms-grid-columns: calc(10.625rem + ((1vw - 3.78px) * 20.5128)) 3px calc(10.625rem + ((1vw - 3.78px) * 20.5128));
    grid-template-columns: repeat(2, calc(10.625rem + ((1vw - 3.78px) * 20.5128)));
    -ms-grid-rows: 160px 3px 160px 3px 160px 3px 160px;
    grid-template-rows: repeat(4, 160px);
    -ms-grid-rows: calc(10rem + ((1vw - 3.78px) * 19.2308)) 3px calc(10rem + ((1vw - 3.78px) * 19.2308)) 3px calc(10rem + ((1vw - 3.78px) * 19.2308)) 3px calc(10rem + ((1vw - 3.78px) * 19.2308));
    grid-template-rows: repeat(4, calc(10rem + ((1vw - 3.78px) * 19.2308)));
    gap: 3px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.work-contents > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}

.work-contents > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
}

.work-contents > *:nth-child(3) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
}

.work-contents > *:nth-child(4) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
}

.work-contents > *:nth-child(5) {
    -ms-grid-row: 5;
    -ms-grid-column: 1;
}

.work-contents > *:nth-child(6) {
    -ms-grid-row: 5;
    -ms-grid-column: 3;
}

.work-contents > *:nth-child(7) {
    -ms-grid-row: 7;
    -ms-grid-column: 1;
}

.work-contents > *:nth-child(8) {
    -ms-grid-row: 7;
    -ms-grid-column: 3;
}

.work-contents > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}

.work-contents > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
}

.work-contents > *:nth-child(3) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
}

.work-contents > *:nth-child(4) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
}

.work-contents > *:nth-child(5) {
    -ms-grid-row: 5;
    -ms-grid-column: 1;
}

.work-contents > *:nth-child(6) {
    -ms-grid-row: 5;
    -ms-grid-column: 3;
}

.work-contents > *:nth-child(7) {
    -ms-grid-row: 7;
    -ms-grid-column: 1;
}

.work-contents > *:nth-child(8) {
    -ms-grid-row: 7;
    -ms-grid-column: 3;
}

.wc-1, .wc-2, .wc-3, .wc-4, .wc-5, .wc-6, .wc-7, .wc-8 {
    background-size: cover;
    background-blend-mode:lighten;
    position: relative;
}

.wc-1:hover, .wc-2:hover, .wc-3:hover, .wc-4:hover, .wc-5:hover, .wc-6:hover, .wc-7:hover, .wc-8:hover {
    background-size: cover;
    background-color:rgb(227, 227, 227, 0.5);
    background-blend-mode:lighten;
    position: relative;
}

.wc-1::before, .wc-2::before, .wc-3::before, .wc-4::before, .wc-5::before, .wc-6::before, .wc-7::before, .wc-8::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.wc-1:hover::before, .wc-2:hover::before, .wc-3:hover::before, .wc-4:hover::before, .wc-5:hover::before, .wc-6:hover::before, .wc-7:hover::before, .wc-8:hover::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(234, 234, 234, 0);
}

.wc-1 {
    -ms-grid-column: 1;
    grid-column: 1;
    -ms-grid-row: 1;
    grid-row: 1;
    background-image: url(../img/electric.jpg);
}

.wc-2 {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 1;
    grid-row: 1;
    background-image: url(../img/communication.jpg);
}

.wc-3 {
    -ms-grid-column: 1;
    grid-column: 1;
    -ms-grid-row: 2;
    grid-row: 2;
    background-image: url(../img/satelite.jpg);
}

.wc-4 {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 2;
    grid-row: 2;
    background-image: url(../img/mobile_thumb.jpg);
}

.wc-5 {
    -ms-grid-column: 1;
    grid-column: 1;
    -ms-grid-row: 3;
    grid-row: 3;
    background-image: url(../img/sunlight.jpg);
}

.wc-6 {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 3;
    grid-row: 3;
    background-image: url(../img/security-camera_thumb.jpg);
}

.wc-7 {
    -ms-grid-column: 1;
    grid-column: 1;
    -ms-grid-row: 4;
    grid-row: 4;
    background-image: url(../img/asbestos_thumb.jpg);
}

.wc-8 {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 4;
    grid-row: 4;
    background-image: url(../img/waterproofing.jpg);
}

.wc-inner {
    margin-top: 35%;
    text-align: center;
    color: #fdfdfd;
}

.wc-title1 {
    font-size: 20px;
    margin-bottom: 10px;
}

.wc-title2 {
    font-size: 16px;
}
.achievements {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 3;
    grid-row: 3;
    width: 343px;
    width: calc(21.4375rem + ((1vw - 3.78px) * 41.0256));
    margin: 0 auto 50px auto;
}

.achievements-title {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 1;
    grid-row: 1;
    text-align: center;
}

.achievements-title img {
    width: 100%;
    height: auto;
    border: 1px solid #000;
}

/* ##### 画面の横幅768ピクセル以上 ##### */
@media (min-width: 768px) {

    .works {
        -ms-grid-columns: auto 1fr auto;
        grid-template-columns: auto 1fr auto;
        -ms-grid-rows: 280px auto auto;
        grid-template-rows: 280px auto auto;
        -ms-grid-rows: calc(17.5rem + ((1vw - 7.68px) * 3.7594)) auto auto;
        grid-template-rows: calc(17.5rem + ((1vw - 7.68px) * 3.7594)) auto auto;
    }

    .works > *:nth-child(1) {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }

    .works > *:nth-child(2) {
        -ms-grid-row: 1;
        -ms-grid-column: 2;
    }

    .works > *:nth-child(3) {
        -ms-grid-row: 1;
        -ms-grid-column: 3;
    }

    .works > *:nth-child(4) {
        -ms-grid-row: 2;
        -ms-grid-column: 1;
    }

    .works > *:nth-child(5) {
        -ms-grid-row: 2;
        -ms-grid-column: 2;
    }

    .works > *:nth-child(6) {
        -ms-grid-row: 2;
        -ms-grid-column: 3;
    }

    .works > *:nth-child(7) {
        -ms-grid-row: 3;
        -ms-grid-column: 1;
    }

    .works > *:nth-child(8) {
        -ms-grid-row: 3;
        -ms-grid-column: 2;
    }

    .works > *:nth-child(9) {
        -ms-grid-row: 3;
        -ms-grid-column: 3;
    }

    .work-title {
        width: 350px;
        margin: 40px auto 20px auto;
        padding-top: 40px;
    }

    .work-contents {
        font-weight: 700;
        -ms-grid-columns: (175px)[4];
        grid-template-columns: repeat(4, 175px);
        -ms-grid-columns: (calc(10.9375rem + ((1vw - 7.68px) * 23.4962)))[4];
        grid-template-columns: repeat(4, calc(10.9375rem + ((1vw - 7.68px) * 23.4962)));
        -ms-grid-rows: (175px)[2];
        grid-template-rows: repeat(2, 175px);
        -ms-grid-rows: (calc(10.9375rem + ((1vw - 7.68px) * 14.0977)))[2];
        grid-template-rows: repeat(2, calc(10.9375rem + ((1vw - 7.68px) * 14.0977)));
    }

    .work-contents > *:nth-child(1) {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }

    .work-contents > *:nth-child(2) {
        -ms-grid-row: 1;
        -ms-grid-column: 2;
    }

    .work-contents > *:nth-child(3) {
        -ms-grid-row: 1;
        -ms-grid-column: 3;
    }

    .work-contents > *:nth-child(4) {
        -ms-grid-row: 1;
        -ms-grid-column: 4;
    }

    .work-contents > *:nth-child(5) {
        -ms-grid-row: 2;
        -ms-grid-column: 1;
    }

    .work-contents > *:nth-child(6) {
        -ms-grid-row: 2;
        -ms-grid-column: 2;
    }

    .work-contents > *:nth-child(7) {
        -ms-grid-row: 2;
        -ms-grid-column: 3;
    }

    .work-contents > *:nth-child(8) {
        -ms-grid-row: 2;
        -ms-grid-column: 4;
    }

    .work-contents > *:nth-child(1) {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }

    .work-contents > *:nth-child(2) {
        -ms-grid-row: 1;
        -ms-grid-column: 2;
    }

    .work-contents > *:nth-child(3) {
        -ms-grid-row: 1;
        -ms-grid-column: 3;
    }

    .work-contents > *:nth-child(4) {
        -ms-grid-row: 1;
        -ms-grid-column: 4;
    }

    .work-contents > *:nth-child(5) {
        -ms-grid-row: 2;
        -ms-grid-column: 1;
    }

    .work-contents > *:nth-child(6) {
        -ms-grid-row: 2;
        -ms-grid-column: 2;
    }

    .work-contents > *:nth-child(7) {
        -ms-grid-row: 2;
        -ms-grid-column: 3;
    }

    .work-contents > *:nth-child(8) {
        -ms-grid-row: 2;
        -ms-grid-column: 4;
    }

    .wc-1 {
        -ms-grid-column: 1;
        grid-column: 1;
        -ms-grid-row: 1;
        grid-row: 1;
    }

    .wc-2 {
        -ms-grid-column: 2;
        grid-column: 2;
        -ms-grid-row: 1;
        grid-row: 1;
    }

    .wc-3 {
        -ms-grid-column: 3;
        grid-column: 3;
        -ms-grid-row: 1;
        grid-row: 1;
    }

    .wc-4 {
        -ms-grid-column: 4;
        grid-column: 4;
        -ms-grid-row: 1;
        grid-row: 1;
    }

    .wc-5 {
        -ms-grid-column: 1;
        grid-column: 1;
        -ms-grid-row: 2;
        grid-row: 2;
    }

    .wc-6 {
        -ms-grid-column: 2;
        grid-column: 2;
        -ms-grid-row: 2;
        grid-row: 2;
    }

    .wc-7 {
        -ms-grid-column: 3;
        grid-column: 3;
        -ms-grid-row: 2;
        grid-row: 2;
    }

    .wc-8 {
        -ms-grid-column: 4;
        grid-column: 4;
        -ms-grid-row: 2;
        grid-row: 2;
    }

    .wc-title1 {
        font-size: 24px;
    }

    .achievements {
        width: 700px;
        width: calc(43.75rem + ((1vw - 7.68px) * 93.985));
    }
}

/* ##### 画面の横幅1300ピクセル以上 ##### */
@media (min-width: 1300px) {

    .works {
        -ms-grid-rows: 300px auto auto;
        grid-template-rows: 300px auto auto;
    }

    .work-contents {
        -ms-grid-columns: (300px)[4];
        grid-template-columns: repeat(4, 300px);
        -ms-grid-rows: (250px)[2];
        grid-template-rows: repeat(2, 250px);
    }

    .work-contents > *:nth-child(1) {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }

    .work-contents > *:nth-child(2) {
        -ms-grid-row: 1;
        -ms-grid-column: 2;
    }

    .work-contents > *:nth-child(3) {
        -ms-grid-row: 1;
        -ms-grid-column: 3;
    }

    .work-contents > *:nth-child(4) {
        -ms-grid-row: 1;
        -ms-grid-column: 4;
    }

    .work-contents > *:nth-child(5) {
        -ms-grid-row: 2;
        -ms-grid-column: 1;
    }

    .work-contents > *:nth-child(6) {
        -ms-grid-row: 2;
        -ms-grid-column: 2;
    }

    .work-contents > *:nth-child(7) {
        -ms-grid-row: 2;
        -ms-grid-column: 3;
    }

    .work-contents > *:nth-child(8) {
        -ms-grid-row: 2;
        -ms-grid-column: 4;
    }

    .achievements {
        width: 1200px;
    }
}