/* for works */

body {
    background-color: black;
}

.lower-top {
    background-image: url('../img/works-headbg.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.top-buttons {
    padding-top: 48px;
    margin-bottom: 64px;
}

.top-buttons .service-list {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.top-buttons .service-item {
    width: 172px;
    height: 150px;
    background-image: url('../img/service-icon_bg.png');
    background-size: 100%;
    background-position: center top;
    background-repeat: no-repeat;
    margin-bottom: 10px;
    padding-top: 26px;
    transition: 0.2s ease;
    position: relative;
}

.top-buttons .service-item.inactive {
    opacity: 0.6;
}

.top-buttons .service-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.top-buttons .service-item a span {
    display: block;
    width: 102px;
    height: 90px;
    margin-left: auto;
    margin-right: auto;
    transition: 0.2s ease;
}

.top-buttons .service-item a span img.for--desktop {
    display: block;
    width: 100%;
}
.top-buttons .service-item a span img.for--mobile {
    display: none;
}

.top-buttons .service-item.active:hover {
    background: none;
}

.top-buttons .service-item.active:hover a span {
    transform: scale(1.1);
}

/* section共通 */

.section {
    padding-top: 24px;
    padding-bottom: 48px;
}

.section.odd {
    background-color: #101010;
}

.section.even {
    background-color: #242424;
}

.section .section-inner {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

.section .section-inner h3 {
    width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1em;
    font-size: 2.8rem;
    text-align: center;
    background-size: 80%;
    background-position: center top;
    background-repeat: no-repeat;
    margin-bottom: 64px;
}

#works01 h3 {
    background-image: url('../img/works-bg_01.png');
}
#works02 h3 {
    background-image: url('../img/works-bg_02.png');
}
#works03 h3 {
    background-image: url('../img/works-bg_03.png');
}
#works04 h3 {
    background-image: url('../img/works-bg_04.png');
}
#works05 h3 {
    background-image: url('../img/works-bg_05.png');
}
#works06 h3 {
    background-image: url('../img/works-bg_06.png');
}
#works07 h3 {
    background-image: url('../img/works-bg_07.png');
}
#works08 h3 {
    background-image: url('../img/works-bg_08.png');
}

.section .section-inner h3 .bg {
    display: block;
    width: 100%;
    height: 6px;
    background-image: url('../img/h3-line.png');
    background-size: 99%;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: 10px;
}

.section .section-inner .content {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.section .section-inner .content.full {
    display: block;
}

.section .section-inner .content.end {
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

.section .section-inner .content .text-area {
    width: 48%;
}

.section .section-inner .content .img-area {
    width: 48%;
}

.section .section-inner .content.full .text-area {
    width: 100%;
}

.section .section-inner .content.full .img-area {
    width: 100%;
}

.section .section-inner .content .text-area p {
    line-height: 1.5;
    font-weight: 100;
    letter-spacing: 0.1em;
    margin-bottom: 2.4em;
}

.section .section-inner .content .text-area p span {
    display: block;
}

.section .section-inner .content .text-area .text-catch {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
}

.section .section-inner .content .text-area .text-catch span {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.5;
    padding-top: 0.1em; 
}

.section .section-inner .content .text-area .text-catch .border-left {
    width: 24px;
    max-height: 100%;
    min-height: 1.6em;
    background-color: rgba(202, 0, 17, 0.5);
    border: 1px solid #ca0011;
    box-shadow: 0 0 10px #ca0011;
    margin-right: 0.8em;
    padding-top: 0;
}

.section .section-inner .content .text-area .text-copy {
    font-weight: 500;
    letter-spacing: 0.25em;
    line-height: 1.4;
    margin-bottom: 1.1em;
    font-size: 1.7rem;
}

.section .section-inner .content .text-area .button-arrow {
    margin-right: -5.8em;
    margin-left: auto;
}

.works-border {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 3em 0 3.5em;
}

@media screen and (max-width: 1280px){

    .lower-top {
        background-repeat: no-repeat;
        background-size: cover;
    }

    .top-buttons {
        padding-top: 48px;
    }

    .top-buttons .service-list {
        -webkit-box-pack:center;
        -webkit-justify-content:center;
        -ms-flex-pack:center;
        justify-content:center;
        -webkit-flex-wrap:wrap;
        -ms-flex-wrap:wrap;
        flex-wrap:wrap;
        width: 90%;
        max-width: 720px;
    }

    .top-buttons .service-item {
        width: 172px;
        height: 150px;
        background-image: url('../img/service-icon_bg.png');
        background-size: 99%;
        background-position: center top;
        background-repeat: no-repeat;
        margin-bottom: 10px;
        padding-top: 28px;
    }

    .top-buttons .service-item a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .top-buttons .service-item a span {
        display: block;
        width: 102px;
        margin-left: auto;
        margin-right: auto;
        background-color: #fff;
        transition: 0.2s ease;
    }

    .top-buttons .service-item:hover a span {
        background-color: #ca0011;
    }


    /* section共通 */

    .section {
        padding-top: 16px;
        padding-bottom: 64px;
    }

    .section .section-inner {
        max-width: inherit;
        width: 92%;
        color: #fff;
    }

    .section .section-inner h3 {
        width: 80%;
        padding-top: 1em;
        font-size: 2.4rem;
        text-align: center;
        background-size: 60%;
        letter-spacing: 0.12em;
        margin-bottom: 48px;
    }

    .section .section-inner h3 .bg {
        background-image: url('../img/h3-line_mb.png');
        height: 10px;
    }

    @media screen and (max-width: 700px){
    
        .top-buttons {
            padding-top: 48px;
        }
        
        .top-buttons .service-list {
            -webkit-box-pack: start;
            -ms-flex-pack: start;
            justify-content: start;
            flex-wrap: wrap;
            width: 100%;
            margin-bottom: 0;
        }
        
        .top-buttons .service-item {
            width: 25%;
            height: auto;
            background-image: none;
            margin-bottom: 1.5em;
            padding-top: 0;
            margin-left: 5.5%;
            margin-left: 5.5%;
        }
        
        .top-buttons .service-item a {
            display: block;
            width: 100%;
            height: 100%;
        }
        
        .top-buttons .service-item a span {
            display: block;
            height: auto;
            width: 100%;
            background-color: transparent;
            position: static;
        }

        .top-buttons .service-item a span img.for--desktop {
            display: none;
        }

        .top-buttons .service-item a span img.for--mobile {
            display: block;
        }

        .top-buttons .service-item:hover a span {
            background-color: transparent;
        }
        
        /* section共通 */
        
        .section {
            padding-top: 32px;
            padding-bottom: 64px;
        }
      
        .section .section-inner h3 {
            width: 100%;
            font-size: 2.3rem;
            margin-bottom: 24px;
        }
        
        .section .section-inner .content {
            display: block;
        }
        
        .section .section-inner .content .text-area,
        .section .section-inner .content .img-area
        {
            width: 100%;
        }
              
        .section .section-inner .content .text-area div {
            margin-bottom: 1em;
        }

        .section .section-inner .content .img-area {
            margin-bottom: 2em;
        }

        .section .section-inner .content .img-area .for--mobile img {
            margin-bottom: 1em;
        }

        .section .section-inner .content .text-area .text-catch span {
            font-size: 1.8rem;
        }
        
        .section .section-inner .content .text-area .button-arrow {
            margin-right: -5.8em;
            margin-bottom: 2em;
        }

        .section.odd .button-arrow a,
        .section.even .button-arrow a {
            font-size: 1.8rem;
        }

        .works-border {
            width: 90%;
            padding-top: 1em;
            padding-bottom: 2.5em;
        }
        
    }
}
