@charset "utf-8";

#service dl {
    counter-reset: no;
}

#service dl dt {
    position: relative;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
    background-color: #e4ffff;
}

#service dl dd:not(:last-of-type) {
    margin-bottom: 35px;
}

#service dl dt::before {
    display: inline-block;
    text-align: center;
    counter-increment: no;
    content: counter(no, decimal-leading-zero);
    font-size: 20px;
    line-height: 1.8;
    font-weight: bold;
    color: #fff;
    background-color: #00cccc;
    padding: 0 8px;
    margin-right: 10px;
}

#service section:nth-of-type(2) h4 {
    display: inline-block;
    background-color: #00cccc;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 14px;
    border-radius: 3px;
    margin-bottom: 10px;
}

#service section:nth-of-type(2) h4:not(:first-of-type) {
    margin-top: 30px;
}

#service .clearfix:not(:last-of-type) {
	margin-bottom: 30px;
}

#service .photo {
    position: relative;
    width: 300px;
    height: 220px;
    overflow: hidden;
}

#service .photo img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    margin-bottom: 0;
}

#service .text {
    width: 350px;
}


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


    #service dl dt {
        font-size: 16px;
    }

    #service dl dd:not(:last-of-type) {
        margin-bottom: 30px;
    }

    #service .photo {
        float: none;
        position: relative;
        width: 100%;
        height: 0;
        padding-top: 73.33%;
        margin-bottom: 15px;
    }

    #service .photo img {}

    #service .text {
        float: none;
        width: 100%;
    }
    
    #service section .clearfix:not(:last-of-type) {
        margin-bottom: 30px;
    }

}
