
#service_top {
    width: 100%;
    height: 400px;
    position: relative;
    background-image: linear-gradient(rgba(89, 89, 89, 0.4),rgba(89, 89, 89, 0.4)), url(../img/service_bg.jpg);
    background-size: cover;
}

#service_top h1 {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
}

p {
    font-size: 20px;
}


#service {
    margin-bottom: 200px;
}

.service_box {
    max-width: 1000px;
    width: 100%;
    margin: 100px auto 100px auto;
}


.service_title {
    width: 100%;
    margin: 0 auto 0 0;
    display: flex;
    align-items: center;
}

.service_title img {
    width: 80px;
}

.service_title h3 {
    font-size: 2rem;
    margin-left: 30px;
    word-break: keep-all;
}

.service_content {
    max-width: 1000px;
    width: 100%;
    display: block;
    margin: 0 auto 100px auto;
}

.service_content p {
    width: 90%;
    display: block;
    margin: 0 auto;
    background-color: #fff5e4;
    box-shadow: 2px 2px 4px #a9a9a9;
    padding: 30px 50px;
    border-radius: 10px;
}

.service_imagebox {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
}

.service_imagebox img {
    width: 48%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
}

.underline {
    max-width: 800px;
    width: 100%;
    border-bottom: 2px solid #4d4d4d;
    margin: 0 auto;
}

.merit {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.merit h4 {
    text-align: center;
    font-size: 1.3rem;
    line-height: 40px;
}

.merit_content {
    margin: 50px 0;
}

.number {
    width: 100%;
    font-size: 1.3rem;
    font-weight: bold;
}

#line_intro {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 200px auto;
}

.komidashi_line {
    max-width: 1100px;
    width: 300px;
    border: 1px solid #20d453;
    background-color: #20d453;
    color: #ffffff;
    font-size: 1.4rem;
    text-align: center;
    margin: 0 auto;
    border-radius: 20px;
}

.midashi_line {
    max-width: 800px;
    width: 100%;
    text-align: center;
    font-size: 2rem;
    color: #4d4d4d;
    padding: 50px 0 20px 0;
    margin: 0 auto 100px auto;
    border-bottom: 4px solid #20d453;
    word-break: keep-all;
}

.line_intro_content h3 {
    font-size: 1.5rem;
}

.line_imagebox {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
}

.line_imagebox img {
    width: 48%;
    object-fit: cover;
    border-radius: 20px;
}

.line_banner {
    max-width: 800px;
    width: 100%;
    margin: 100px auto 0 auto;
}

.line_banner p {
    text-align: center;
    word-break: keep-all;
}

.line_banner img {
    width: 100%;
}

.merit_line {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.merit_line h4 {
    text-align: center;
    font-size: 1.3rem;
    line-height: 40px;
}

@media (max-width: 1100px) {
    #service_top {
        width: 100%;
        height: 300px;
    }
    
    #service_top h1 {
        top: 35%;
    }
}

@media (max-width: 850px) {
    
    #service {
        margin-bottom: 200px;
    }

    #service_top h1 {
        font-size: 2rem;
    }

    .service_box {
        width: 80%;
        margin-bottom: 100px;
    }

    .service_content p {
        width: 80%;
    }

    .underline {
        width: 80%;
    }

    .midashi_line {
        width: 80%;
        display: block;
        margin: 0 auto 50px auto;
      }

      .line_intro_content {
        width: 80%;
        margin: 0 auto;
    }

    .line_imagebox {
        width: 80%;
        margin: 50px auto;
    }

    .merit_line {
        width: 80%;
    }

    .line_banner p {
        font-size: 1rem;
    }

    .line_banner img {
        width: 90%;
        display: block;
        margin: 0 auto;
    }

}

@media (max-width: 630px) {

    .service_title h3 {
        font-size: 1.5rem;
    }

    .midashi_line {
        width: 90%;
        display: block;
        margin: 0 auto 50px auto;
        font-size: 1.5rem;
    }

    .komidashi_line {
        width: 60%;
        display: block;
        font-size: 1rem;
        padding: 5px 0;
        margin-bottom: 0;
    }

    .line_intro_content {
        width: 90%;
        margin: 0 auto;
    }

}

@media (max-width: 460px) {

    .service_box {
        width: 90%;
    }    

    .service_title {
        display: block;
    }

    .service_title img {
        display: block;
        margin: 0 auto;
    }

    .service_title h3 {
        margin: 20px auto;
        text-align: center;
        font-size: 1.3rem;
    }

    .service_content {
        margin-bottom: 50px;
    }

    .service_content p {
        padding: 30px;
    }

    .service_imagebox {
        margin-bottom: 0px;
    }

    .service_imagebox img {
        height: 150px;
    }

    .underline {
        display: none;
    }

}



