@charset "UTF-8";

#face {
    background: #ccd6e0;
    min-height: 810px;
    box-sizing: border-box;
}

.face_content {
    margin-left: 25vw;
    padding: 20px;
    width: calc(100% - 25vw);
}

#service_list {
    display: flex;
    flex-wrap: wrap;
    color: white;
    gap: 5vh 2.65%;
}

#service_list li {
    width: 30%;
    background: #0b1f36;
    transition: all 0.2s;
    opacity: 0;
}

#service_list li:hover {
    background: #1b3855;
}

#service_list li figure {
    background: #ddd;
    width: 100%;
    height: 17vh;
    overflow: hidden;
    position: relative;
}

#service_list li figure img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 101%;
    transition: all 0.2s;
}

#service_list li figure:after {
    content: "";
    display: block;
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 35px 35px;
    border-color: transparent transparent #dca11d transparent;
    transition: all 0.2s;
}

#service_list li:hover figure:after {
    right: 0px;
    bottom: 0px;
}

#service_list li:hover figure img {
    width: 110%;
    opacity: 0.8;
}

#service_list li h3 {
    font-size: clamp(16px,1.6vw,20px);
    text-align: center;
    margin: 0.5em;
    font-weight: bold;
    letter-spacing: 0.1em;
}

#service_list li p {
    text-align: justify;
    padding: 0px 30px 15px;
}

#service_list.on li {
    animation-name: fadein_bottomAnime;
    animation-fill-mode: forwards;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-timing-function: ease;
    animation-delay: 0.2s;
    animation-direction: normal;
    opacity: 0;
}

#service_list.on li:nth-child(2) {
    animation-delay: 0.4s;
}
#service_list.on li:nth-child(3) {
    animation-delay: .6s;
}
#service_list.on li:nth-child(4) {
    animation-delay: .8s;
}
#service_list.on li:nth-child(5) {
    animation-delay: 1s;
}
#service_list.on li:nth-child(6) {
    animation-delay: 1.2s;
}
#service_list.on li:nth-child(7) {
    animation-delay: 1.4s;
}

@keyframes fadein_bottomAnime {
    0% {
        opacity: 0;
        transform:translate(0px,30px);
    }

    100% {
        opacity: 1;
        transform:translate(0px,0px);
    }
}

.outline {
    width: 80%;
    margin: 3vw auto;
    line-height: 2.5;
    text-align: center;
    letter-spacing: 0.1em;
    font-size: clamp(15px,1.5vw,18px);
}

@media all and (max-width: 1200px) {
    #face {
        min-height: auto;
    }
    
    .face_content {
        margin-left: 0vw;
        padding: 20px 20px 40px;
        width: 100%;
    }
    
    #service_list {
        gap: 3vh 3%;
    }
    
    #service_list li {
        width: 31.3%;
    }

    #service_list li figure {
        height: 12vw;
    }
}

@media all and (max-width: 767px) {
    #service_list {
        gap: 3vh 4%;
    }
    
    #service_list li {
        width: 48%;
    }
    
    #service_list li figure {
        height: 18vw;
    }

    #service_list li figure:after {
        border-width: 0 0 20px 20px;
    }

    #service_list li h3 {
        font-size: clamp(13px,2.4vw,16px);
        margin: 0.5em;
    }

    #service_list li p {
        font-size: 12px;
        padding: 0px 15px 15px;
    }
    
    .outline {
        width: 90%;
        margin: 10vw auto;
        line-height: 2.5;
        text-align: justify;
        font-size: clamp(13px,2.4vw,16px);
    }
}

/*------------------------
main
------------------------*/
.h2_common span {
    font-size: 40px;
}

@media all and (max-width: 767px) {
    .h2_common span {
        font-size: 24px;
    }
}

.service_list > li {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.service_list > li:not(:last-child) {
    margin-bottom: 80px;
}

.service_list > li .service_img {
    width: 30vw;
}

.service_list > li .txt_box {
    width: calc(87% - 30vw);
    margin-left: 3%;
}

.service_list > li .txt_box h3 {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.service_list > li .txt_box h3 img {
    width: 2em;
    margin-right: 0.3em;
    margin-top: 0;
}

.service_list > li .txt_box p {
    font-size: 15px;
    line-height: 2;
    text-align: justify;
}

.service_list > li .txt_box p:not(:first-of-type) {
    margin-top: 1em;
}

.txt_box .dot_list {
    border: 1px solid #005371;
    padding: 2em;
}

.txt_box .dot_list li {
    text-indent: -1.2em;
    padding-left: 1.2em;
}

.txt_box .dot_list li:not(:first-of-type) {
    margin-top: 0.5em;
}

.txt_box .dot_list.flex li:not(:first-of-type) {
    margin-top: 0;
}

.txt_box .dot_list li:before {
    content: "●";
    color: #005371;
    margin-right: 0.2em;
}

.txt_box .dot_list.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1em 3em;
}

@media all and (max-width: 767px) {
    .service_list > li {
        flex-wrap: wrap;
    }

    .service_list > li:not(:last-child) {
        margin-bottom: 40px;
    }

    .service_list > li .service_img {
        width: 100%;
        margin-bottom: 20px;
    }

    .service_list > li .txt_box {
        width: 100%;
        margin-left: 0%;
    }

    .service_list > li .txt_box h3 {
        font-size: 18px;
        margin-bottom: 10px;
        align-items: center;
    }

    .service_list > li .txt_box p {
        font-size: 14px;
    }
    
    .txt_box .dot_list {
        padding: 1em;
    }
    
    .txt_box .dot_list li {
        font-size: 14px;
    }
}