@charset "utf-8";

/*============================
事業内容　概要
============================*/

#service {
    counter-reset: no;
}

#service .photo {
    display: block;
    margin-bottom: 30px;
}

@media only screen and (max-width: 768px) {
    #service .lead p {
        font-size: 17px;
        padding: 60px 20px;
    }
    #service img{
        width: 100%;
        padding-top: 50.74%;
        overflow: hidden;
        height: 0;
        background: url("../images/img_photo_sp.jpg") no-repeat center center;
        background-size: 100%;
        display:block;
    }
}

/*============================
事業内容　強み
============================*/

#service .clearfix {
    margin-bottom: 30px;
}

#service .clearfix img {
    width: 150px;
}

#service .clearfix dl {
    width: 590px;
    padding-top: 10px;
}

#service .clearfix dt {
    font-size: 18px;
    font-weight: bold;
    padding-left: 44px;
    position: relative;
}
#service .clearfix dt span {
    color: #00b2ff;
    font-weight: 100;
}
#service .clearfix dt::before {
    counter-increment: no;
    display: block;
    content: counter(no, decimal-leading-zero);
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 32px;
    color: #00b2ff;
    position: absolute;
    top: -4px;
    bottom: 0;
    left: 0;
}
#service .clearfix dd {
    margin-top: 10px;
}

@media only screen and (max-width: 768px) {
    #service .clearfix {
        margin-bottom: 30px;
    }
    #service .clearfix img {
        width: 100%;
        background: url("../images/strength01_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .clearfix:nth-of-type(2) img {
        background: url("../images/strength02_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .clearfix:nth-of-type(3) img {
        background: url("../images/strength03_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .clearfix dl {
        width: 100%;
        padding-top: 20px;
    }
}
/*============================
各種工事内容
============================*/
#service .box{
    width: 360px;
    padding-bottom: 40px;
}
#service .box:last-child{
    padding-bottom: 0;
}
#service .box h4{
    margin: 15px 0;
}
@media only screen and (max-width: 768px) {
    #service .box{
        width: 100%;
        padding-bottom: 30px;
    }
    #service .box img{
        background: url("../images/01_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .box:nth-of-type(2) img {
        background: url("../images/02_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .box:nth-of-type(3) img {
        background: url("../images/03_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .box:nth-of-type(4) img {
        background: url("../images/04_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .box:nth-of-type(5) img {
        background: url("../images/05_sp.jpg") no-repeat center center;
        background-size: 100%;
    }

}
/*============================
お問い合わせからの流れ
============================*/
#service .flow{
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
#service .flow dl{
    width: 82px;
    height: 280px;
    background: #daecfd;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
}
#service .flow dl:nth-child(-n+3):before{
    content: "無 料";
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -41px;
    width: 82px;
    height: 36px;
    line-height: 36px;
    color: #fff;
    background: #1c254d;
}
#service .flow dl::after{
    content: "";
    position: absolute;
    top: 60%;
    right: -24px;
    margin-top: -15px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #1c254d;
}
#service .flow dl:last-child:after{
    display: none;
}
#service .flow dt{
    font-size: 18px;
    padding: 15px 0;
    color: #fff;
    background: #00b2ff;
    line-height: 25px;
}
#service .flow dt span{
    font-size: 20px;
}
#service .flow dd{
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    margin: 30px auto;
}

@media only screen and (max-width: 768px) {
    #service .flow dl {
        width: 100%;
        height: auto;
        margin-bottom: 36px;
        clear: both;
}
    #service .flow dl:last-child {
        margin-bottom: 0;
}
    #service .flow dl:nth-child(-n+3) {
        padding-bottom: 0;
}
    #service .flow dl:nth-child(-n+3):before {
        bottom: 0;
        left: inherit;
        right: 0;
        margin-left: 0;
        width: 70%;
}
    #service .flow dt {
        float: left;
        width: 30%;
        padding: 20px 0;
}
    #service .flow dd {
        writing-mode: inherit;
        margin: 33px auto;
}
    #service .flow dl:nth-child(-n+3) dd{
        margin: 16px auto 50px;
}
    #service .flow dl::after{
        content: "";
        position: absolute;
        top: 118px;
        right: 35%;
        margin-right: -15px;
        border-top: 15px solid #1c254d;
        border-right: 15px solid transparent;
        border-left: 15px solid transparent;
}
}