.button_background {
    background-color: var(--background);
    border-radius: 15px;
    box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, .5);
    display: flex;
    height: 100%;
    margin: 0 3px;
    transition: 300ms;
    text-decoration: none;
}

.button_background:hover {
    background-color: var(--theme);
    text-decoration: none;
}

.button_background > {
    pointer-events: none;
}

.button_background_prohibit, .button_background_prohibit:hover {
    background-color: gray;
}

.button_img {
    margin-right: 0;
    padding-right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button_img img {
    margin-bottom: 15px;
    margin-top: 15px;
    width: 100%;
}

.button_text {
    color: white;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
}

/* md以下のときのフォントサイズ */
.button_text_main1 {
    font-size: 8vw;
    font-weight: bold;
}

.button_text_sub1 {
    font-size: 6vw;
}

.button_text_notice1 {
    font-size: 4vw;
}

.button_text_main2 {
    font-size: 6vw;
    font-weight: bold;
}

.button_text_sub2 {
    font-size: 4.5vw;
}

.button_text_notice2 {
    font-size: 3vw;
}


.card_background {
    aspect-ratio: 9;
    background-color: var(--background);
    display: flex;
    height: 100%;
    margin: 0;
    width: 100%;
}

.card_background > {
    pointer-events: none;
}

.card_img {
    display: flex;
    height: 100%;
    margin-right: 0;
    padding-right: 0;
    align-items: center;
    justify-content: center;
}

.card_img img {
    margin: 0;
    height: 90%;
    max-width: 100%;
}

#safety {
    padding-bottom: 7.5%;
    padding-top: 7.5%;
}

.card_text{
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    color: white;
    font-weight: bold;
    width: 0;
}

.card_text_main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 5vw;
}

.card_text_sub {
    display: none;
    padding-left: 0;
    padding-right: 5px;
    align-items: flex-end;
    justify-content: flex-end;
    font-size: 3vw;
}


/* md ～ lg */
@media (min-width: 768px) {
    .button_text_main1 {
        font-size: 4vw;
    }

    .button_text_sub1 {
        font-size: 3vw;
    }

    .button_text_notice1 {
        font-size: 2vw;
    }

    .button_text_main2 {
        font-size: 3vw;
    }

    .button_text_sub2 {
        font-size: 2.2vw;
    }

    .button_text_notice2 {
        font-size: 1.5vw;
    }

    .card_text_container {
        height: -webkit-fill-available;
    }

    .card_blank {
        display: none;
    }

    .card_text_sub {
        display: flex;
    }
}

/* lg ～ */
@media (min-width: 992px) {
    .button_text_main1 {
        font-size: 3vw;
    }

    .button_text_sub1 {
        font-size: 2.25vw;
    }

    .button_text_notice1 {
        font-size: 1.5vw;
    }

    .button_text_main2 {
        font-size: 2.5vw;
    }

    .button_text_sub2 {
        font-size: 1.875vw;
    }

    .button_text_notice2 {
        font-size: 1.5vw;
    }

    .card_text_container {
        height: -webkit-fill-available;
    }

    .card_blank {
        display: none;
    }

    .card_text_main {
        font-size: 3vw;
    }

    .card_text_sub {
        display: flex;
        font-size: 2vw;
    }
}
