@charset "utf-8";

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

#service {
    counter-reset: no;
}

#service .lead {
    background: url(../images/01.jpg) no-repeat center center;
    -webkit-background-size: cover;
    background-size: cover;
    margin-bottom: 20px;
}

#service .lead p {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    padding: 90px 30px;
}

@media only screen and (max-width: 768px) {
    #service .lead p {
        font-size: 17px;
        padding: 60px 20px;
    }
}


/*============================
事業内容　説明
============================*/
#service .boxs{
    padding: 80px 0 0;
}

#service .clearfix {
        display: block;
    padding-top: 50px;
    margin-top: -50px;
}
#service .clearfix:not(:last-child) {
    margin-bottom: 50px;
}

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

#service .clearfix dl {
    width: 455px;
}

#service .clearfix dt {
    display: inline-block;
    font-weight: bold;
    padding: 8px 10px;
    border: 1px solid #1b3960;
    color: #1b3960;
}

#service .clearfix dd {
    margin-top: 20px;
    line-height: 20px;
}

#service .box {
    background-color: #eee;
    padding: 20px;
}

#service .box li {
    padding-left: 1em;
    text-indent: -1em;
}

#service .box li:not(:first-child) {
    margin-top: 5px;
}

@media only screen and (max-width: 768px) {
    #service .clearfix {
        margin-bottom: 30px;
    }

    #service .clearfix img {
        width: 100%;
        padding-top: 59.70%;
        overflow: hidden;
        height: 0;
        background: url("../images/01_sp.jpg") no-repeat center center;
        background-size: 100%;
        display:block;
    }
    #service .clearfix:nth-of-type(2) img {
        background: url("../images/06_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .clearfix:nth-of-type(3) img {
        background: url("../images/02_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .clearfix:nth-of-type(4) img {
        background: url("../images/03_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .clearfix:nth-of-type(5) img {
        background: url("../images/04_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
    #service .clearfix:nth-of-type(6) img {
        background: url("../images/05_sp.jpg") no-repeat center center;
        background-size: 100%;
    }
#service .boxs {
    padding: 40px 0 0;
}
    #service .clearfix dl {
        width: 100%;
        margin-top: 15px;
    }

    #service .clearfix dt {
        display: inline-block;
        font-weight: bold;
        padding: 8px 10px;
    }

    #service .clearfix dd {
        margin-top: 15px;
    }

}
/*============================
お問い合わせからの流れ
============================*/
#flow .flex{
    justify-content: flex-start;
}
#flow .box{
    position: relative;
    padding: 40px 0;
    width: 190px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
#flow .box::after{
    content: "01";
    position: absolute;
    top: 0;
    right: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-right: -10px;
}
#flow .box:nth-of-type(2):after{
    content: "02";
}
#flow .box:nth-of-type(3):after{
    content: "03";
    margin-right: -17px;
}
#flow .box:nth-of-type(4):after{
    content: "04";
    margin-right: -14px;
}
#flow .box:nth-of-type(5):after{
    content: "05";
    margin-right: -15px;
}
#flow .box:nth-of-type(6):after{
    content: "06";
    margin-right: -15px;
}
#flow .box:nth-of-type(7):after{
    content: "07";
    margin-right: -22px;
}
#flow .box::before{
    content: "";
    position: absolute;
    top: 80px;
    right: -28px;
    width: 60px;
    height: 8px;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    transform: skew(45deg);
}
#flow .box:nth-of-type(4):before,
#flow .box:nth-of-type(7):before{
    display: none;
}

#flow .box img{
    margin: auto;
}
#flow .box p{
    margin-top: 20px;
}

@media only screen and (max-width: 768px) {
  #flow .box {
    width: 100%;
    padding: 12vw 0 40vw;
}
  #flow .box:last-child {
    padding-bottom: 0;
}
  #flow .box p {
    margin-top: 10px;
    font-size: 5vw;
}
  #flow .box::after {
    font-size: 6vw;
    margin-right: -3vw;
}
  #flow img{
    width: 40%;
  padding-top: 40%;
  overflow: hidden;
  height: 0;
  background: url("../images/flow/01_sp.png") no-repeat center center;
  background-size: 100%;
  display:block;
  }
#flow .box:nth-of-type(2) img{
  background: url("../images/flow/02_sp.png") no-repeat center center;
  background-size: 100%;
}
#flow .box:nth-of-type(3) img{
  background: url("../images/flow/03_sp.png") no-repeat center center;
  background-size: 100%;
}
#flow .box:nth-of-type(4) img{
  background: url("../images/flow/04_sp.png") no-repeat center center;
  background-size: 100%;
}
#flow .box:nth-of-type(5) img{
  background: url("../images/flow/05_sp.png") no-repeat center center;
  background-size: 100%;
}
#flow .box:nth-of-type(6) img{
  background: url("../images/flow/06_sp.png") no-repeat center center;
  background-size: 100%;
}
#flow .box:nth-of-type(7) img{
  background: url("../images/flow/07_sp.png") no-repeat center center;
  background-size: 100%;
}
#flow .box::before {
    top: inherit;
    bottom: 12vw;
    right: 50%;
    margin-right: -9px;
    width: 10px;
    height: 20vw;
    border-bottom: 1px solid #000;
    border-left: 1px solid #000;
    border-right: none;
    transform: skewY(-38deg);
}
    #flow .box:nth-of-type(4):before{
        display: block;
    }

}
