.button-blue,
.button-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: white;
    border: 2px solid;
    border-radius: 100px;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    /* font-weight: bold; */

    transition: background-color 0.3s, color 0.3s;
}

.entry-button {
    font-size: 2rem;
    width: 20rem;
}

.button-content-message {
    font-size: 2rem;
    font-weight: bold;
    color: #217AC5;
    /* margin-bottom: 2rem; */
}

.button-blue {
    background-color: #217AC5;
    color: white;
}

.button-red {
    background-color: #D32F2F;
    color: white;
}

/* 外部リンクアイコンのスタイル */
.button-blue.outside-link::after,
.button-red.outside-link::after {
    font-family: "Font Awesome 6 Free";
    content: '\f35d';
    transition: transform 0.3s;
}

.button-blue:hover {
    background-color: white;
    color: #217AC5;
    border-color: #217AC5;
}

.button-red:hover {
    background-color: white;
    color: #D32F2F;
    border-color: #D32F2F;
}

/* 地域活動用ボタン */
.button-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;

    & a {
        /* width: 15em; */
        margin: 0 auto;
    }

    & p {
        text-align: center;
    }
}

/* --------------------トップに戻るボタン-------------------- */
#to-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #217AC5;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    /* 初期状態では非表示 */
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 1000;
}

#to-top-button:hover {
    opacity: 1;
}

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

    /* ボタン */
    .button-container {
        flex-direction: column;
        gap: 1em;

        & a {
            margin: 0 auto;
        }
    }

    /* トップに戻るボタン */
    #to-top-button {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

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

    .button-blue,
    .button-red {
        padding: 8px 16px;
        /* font-size: 0.9rem; */
    }

    /* .button-container {
        & a {
            margin: 0;
        }
    } */

    .button-content-message {
        font-size: 1.5rem;
    }

    /* トップに戻るボタン */
    #to-top-button {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}