@charset "utf-8";

/* ポジション紹介 */
main .explanation_position {
    margin: 70px auto 50px;
    text-align: center;
    text-wrap: wrap;
}

main .explanation_position h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0 10vw;
}

main .sub-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 50px auto;
}

main .sub-group .link_to_each_group {
    width: 350px;
    height: 350px;
    border-radius: 10px;
    margin: 15px;
    padding: 30px 10px;

    position: relative;
    /* For animation */
    color: #000000;
    background-image: linear-gradient(to left, rgb(166 166 214 / 0.2) 50%, #174974 50%);
    background-size: 200% 100%;
    background-position: 100% 0;

    transition:
        background-position 0.5s ease,
        color 0.5s ease,
        box-shadow 0.5s ease;
}

main .sub-group .link_to_each_group:hover {
    background-position: 0 0;
    /* 背景を左にスライド */
    color: #ffffff;
    box-shadow: 0px 0px 10px rgb(3 3 4 / 0.5);
}

main .sub-group div img {
    display: block;
    margin: auto;

    width: 280px;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
}

main .sub-group div h1 {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
}

main .sub-group div h2 {
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.5;
}

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;
    text-align: center;
}


/* Tablet Size */
/* Smartphone View */
/* Smartphone View */
@media screen and (max-width: 840px) {

    /* ポジション紹介 */
    main .explanation_position {
        text-wrap: wrap;
    }

    main .explanation_position h2 {
        margin: 50px 30px;
        font-size: 18px;
        font-weight: 500;
    }

    main .sub-group {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

    }

    main .sub-group .link_to_each_group {
        width: 80vw;
        height: 350px;
        border-radius: 10px;
        margin: 15px;
        padding: 30px 10px;

        position: relative;
        /* For animation */
        color: #000000;
        background-image: linear-gradient(to left, rgb(166 166 214 / 0.2) 50%, #174974 50%);
        background-size: 200% 100%;
        background-position: 100% 0;

        transition:
            background-position 0.5s ease,
            color 0.5s ease,
            box-shadow 0.5s ease;
    }

    main .sub-group .link_to_each_group:hover {
        background-position: 0 0;
        /* 背景を左にスライド */
        color: #ffffff;
        box-shadow: 0px 0px 10px rgb(3 3 4 0.5);
    }

    main .sub-group div img {
        display: block;
        margin: auto;

        width: 60vw;
        height: 150px;
        object-fit: cover;
        margin-bottom: 15px;
    }

    main .sub-group div h1 {
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        padding: 10px 0;
    }

    main .sub-group div h2 {
        padding: 0 20px;
        font-size: 14px;
        line-height: 1.5;
    }

    /*応募リンク*/
    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;
        text-align: center;
    }

}