/* for service */

body {
    background-color: black;
}

.lower-top {
    background-image: url('../img/service-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 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:hover {
    background: none;
}

.top-buttons .service-item: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;
}

#service01 h3 {
    background-image: url('../img/service-bg_01.png');
}
#service02 h3 {
    background-image: url('../img/service-bg_02.png');
}
#service03 h3 {
    background-image: url('../img/service-bg_03.png');
}
#service04 h3 {
    background-image: url('../img/service-bg_04.png');
}
#service05 h3 {
    background-image: url('../img/service-bg_05.png');
}
#service06 h3 {
    background-image: url('../img/service-bg_06.png');
}
#service07 h3 {
    background-image: url('../img/service-bg_07.png');
}
#service08 h3 {
    background-image: url('../img/service-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.odd .section-inner .content {
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

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

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

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

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

@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: 70%;
        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 .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;
        }
        
    }
}
