@charset "utf-8";

#service {
    counter-reset: no;
}

#service dl.strength {
    background: url(../images/strength_bg.jpg) no-repeat center center;
    -webkit-background-size: cover;
    background-size: cover;
    color: #fff;
    counter-reset: number 0;
    letter-spacing: 0.1em;
}

#service dl.strength dt {
    background: #350e50;
    padding: 4px 30px;
    font-size: 28px;
    margin-bottom: 30px;
}

#service dl.strength dd {
    padding: 0 35px 0 90px;
    position: relative;
    font-size: 16px;
    font-weight: 500;
}

#service dl.strength dd:last-child {
    padding-bottom: 30px;
}

#service dl.strength dd::before {
    counter-increment: number 1;
    /* number カウンタの増加数をセット */
    content: counter(number, decimal-leading-zero);
    position: absolute;
    left: 40px;
    top: -4px;
    font-size: 20px;
}

#service dl.strength dd::after {
    content: "|";
    position: absolute;
    left: 75px;
    top: -2px;
}

#service p.lead {
    margin-bottom: 20px;
}

#service h3 {
    width: 100%;
}

.anchor {
    display: block;
    padding-top: 70px;
    margin-top: -70px;
}

#service .photo {
    width: 240px;
    height: 220px;
}

#service .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#service .text {
    width: 500px;
}

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

    #service dl.strength dt {
        padding: 4px 20px;
        font-size: 24px;
        margin-bottom: 20px;
    }

    #service dl.strength dd {
        padding: 0 25px 0 80px;
    }

    #service dl.strength dd:last-child {
        padding-bottom: 20px;
    }

    #service dl.strength dd::before {
        left: 30px;
        top: -4px;
        font-size: 20px;
    }

    #service dl.strength dd::after {
        position: absolute;
        left: 65px;
        top: -2px;
    }

    #service p.lead {
        margin-bottom: 20px;
    }

    .anchor {
        display: block;
        padding-top: 40px;
        margin-top: -40px;
    }

    #service .photo {
        width: 100%;
        height: 0;
        padding-top: 70%;
        position: relative;
        overflow: hidden;
        margin-bottom: 15px;
    }

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

    #service .text {
        width: 100%;
    }

}
