.contents-wrap-template {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    margin: 2em 0;
    padding: 1em;
    background-color: #f0f0f0;
    border-radius: 15px;
    box-shadow: 4px 4px 8px 1px rgb(37 37 39 / 20%);
}

.contents-wrap-template:nth-child(odd) {
    flex-direction: row;
}

.contents-text-template {
    width: 70%;
    /*flex: 2;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: normal;
}

.contents-img-template {
    width: 30%;
    /*flex: 1;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.contents-text-template h2 {
    margin: 0 0 10px !important;
    padding: 1em 0.5em 0.8em;
    font-size: 0.9em !important;
    font-weight: bold;
    background: #00458f;
    color: #fff;
    border-radius: 8px;
}

.contents-img-template img {
    display: block;
    width: 70%;
    height: auto;
    margin: 0 auto;
}

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

    .contents-wrap-template,
    .contents-wrap-template:nth-child(odd) {
        flex-direction: column;
    }

    .contents-text-template,
    .contents-img-template {
        width: 100%;
        /*flex: 1;*/
    }

    .contents-text-template {
        padding: 2em 0 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: normal;
    }

    .contents-text-template h2 {
        text-align: center;
    }
}