@charset "utf-8";
/*============================
メリット
============================*/

#merit h2 {
    margin-bottom: 30px;
}

#merit h3 {
    font-size: 24px;
    font-weight: 700;
    color: #59b55b;
    margin-bottom: 25px;
    line-height: 1.5;
}

#merit .flex {
    align-items: stretch;
}

#merit .box {
    border: 1px solid #59b55b;
    border-radius: 10px;
    overflow: hidden;
    padding: 40px;
}

#merit .box .photo {
    margin-bottom: 15px;
}

#merit .box1 {
    padding: 0;
    margin-bottom: 40px;
}

#merit .box1 .photo {
    width: 540px;
    border-radius: unset;
    margin-bottom: 0;
}

#merit .box1 .text {
    flex: 1;
    padding: 40px;
}

#merit .box1 .illust {
    position: relative;
    margin-bottom: 25px;
}

#merit .box1 .illust::before {
    content: "";
    background: #f0fada;
    width: 100%;
    height: 150px;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 10px;
    z-index: -1;
}

#merit .box1 .illust img {
    width: 200px;
    display: block;
    margin: auto;
    padding-top: 25px;
}

#merit .box2,
#merit .box3 {
    width: 500px;
    margin-bottom: 40px;
}

#merit .box4,
#merit .box5,
#merit .box6,
#merit .box7,
#merit .box8,
#merit .box9 {
    width: 320px;
}

#merit .flex.flex3 {
    grid-gap: 40px;
}

#merit .box9 .text {
    background: #f0fada;
    padding: 20px 15px;
    border-radius: 10px;
}

#merit .box9 .text li {
    padding-left: 16px;
    position: relative;
}

#merit .box9 .text li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #ea68a2;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: calc(50% - 4px);
    left: 0;
}

#merit .box9 .text p {
    text-align: right;
}

@media only screen and (max-width: 768px) {
    #merit h2 {
        margin-bottom: 15px;
    }

    #merit h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    #merit .box {
        padding: 30px;
    }

    #merit .box .photo {
        margin-bottom: 15px;
    }

    #merit .box1 {
        padding: 0;
        margin-bottom: 20px;
    }

    #merit .box1 .photo {
        width: 100%;
        height: 0;
        padding-top: 60%;
        position: relative;
        overflow: hidden;
        margin-bottom: 0;
    }
    
    #merit .box1 .photo img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #merit .box1 .text {
        padding: 30px;
    }

    #merit .box1 .illust {
        margin-bottom: 20px;
    }

    #merit .box2,
    #merit .box3 {
        width: 100%;
        margin-bottom: 20px;
    }

    #merit .box4,
    #merit .box5,
    #merit .box6,
    #merit .box7,
    #merit .box8,
    #merit .box9 {
        width: 100%;
    }

    #merit .flex.flex3 {
        grid-gap: 20px;
    }

}
