@charset "UTF-8";

.home_link p {
    text-align: center;
}

.home_link .link_list {
    margin: 2rem 0 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.home_link .link_list a {
    display: block;
    background-color: #fff;
    color: #1168af;
    font-weight: 600;
    font-size: 1rem;
    border: solid 2px #1168af;
    border-radius: 5px;
    padding: 0.5rem 2rem;
    min-width: 285px;
    width: calc((100% - 60px) / 4);
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.home_link .link_list a::before {
    font-family: "Font Awesome 6 Free";
    content: "\f054";
    font-size: 0.8rem;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.home_link .link_list a::after {
    background: #1168af;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
    z-index: -1;
}

.home_link .link_list a:hover {
    color: #fff;
}

.home_link .link_list a:hover::after {
    transform: scale(1, 1);
}

@media screen and (max-width: 1240px) {
    .home_link .link_list a {
        width: calc((100% - 40px) / 3);
    }
}

@media screen and (max-width: 975px) {
    .home_link .link_list a {
        width: calc((100% - 20px) / 2);
    }
}

@media screen and (max-width: 767px) {
    .home_link .link_list a {
        width: 100%;
    }
}