@charset "utf-8";

/*============================
選ばれる理由
============================*/

#reason .flex {
    gap: 30px;
}

#reason .flex:not(:last-child) {
    margin-bottom: 40px;
}

#reason .photo {
    width: 300px;
}

#reason .text {
    flex: 1;
}

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

    #reason .flex {
        gap: 15px;
    }

    #reason .photo {
        width: 100%;
        height: 0;
        padding-top: 60%;
        position: relative;
    }

    #reason .photo img {
        width: 100%;
        height: 100%;
        object-position: center;
        object-fit: cover;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #reason .text {
        flex: none;
        width: 100%;
    }
}
