/* ボタンオンリー */
main .link-plain {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

main .link-plain h2 {
    background-color: #020d16;
    color: #fff;
    border-radius: 4px;
    width: 500px;
    height: 90px;
    margin: 20px 0;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;

    position: relative;
    /* For animation */
    background-image: linear-gradient(to left, #020d16 50%, #174974 50%);
    background-size: 200% 100%;
    background-position: right;
    transition: 1s;
}

main .link-plain h2:hover {
    background-position: left;
    /* Slide the background to the left */
}

main .link-plain h2 a {
    text-decoration: none;
}


/* 背景あり */
main .link {
    background-color: rgb(166 166 214 / 0.089);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

main .link h2 {
    background-color: #020d16;
    color: #fff;
    border-radius: 4px;
    width: 500px;
    height: 90px;
    margin: 30px 0;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;

    position: relative;
    /* For animation */
    background-image: linear-gradient(to left, #020d16 50%, #174974 50%);
    background-size: 200% 100%;
    background-position: right;
    transition: 1s;
}

main .link h2:hover {
    background-position: left;
    /* Slide the background to the left */
}

main .link h2 a {
    text-decoration: none;
}

main .link h3 {
    margin-top: 20px;
    font-size: 20px;
    width: 700px;
    text-align: center;
}

@media screen and (max-width: 840px) {
    main .link {
        background-color: rgb(166 166 214 / 0.089);
        height: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    main .link h2 {
        background-color: #020d16;
        color: #fff;
        border-radius: 4px;
        width: 80vw;
        height: 90px;
        margin: 30px 0;

        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        color: #fff;
    }

    main .link h2 a {
        text-decoration: none;
    }

    main .link h3 {
        margin-top: 20px;
        font-size: 15px;
        width: 80vw;
        text-align: center;
    }
}