.fv {
    margin: 0 auto;
}

@media(min-width:1000px) {
    .fv > h1 {
        font-size: 50px;
    }
}

#article-list {
    margin: 60px auto;
}

#article-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    justify-content: center;
    justify-items: center;
    max-width: 1100px;
    list-style: none;
    padding: 0 10px;
    margin: 0 auto;
}

#article-list ul li {
    max-width: 320px;
}

#article-list ul li img {
    width: 100%;
    aspect-ratio: 310/160;
    object-fit: cover;
}

#article-list ul li h2 {
    font-size: 1em;
}

#article-list ul li:hover h2 {
    color: var(--main-color);
    text-decoration: underline;
    text-decoration-color: var(--main-color);
}

#article-list ul li:hover .case-inner {
    opacity: 0.9;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.4s ease, opacity 0.4s ease;
}

#article-list ul li .case-inner {
    transition: box-shadow 0.4s ease;
    aspect-ratio: 310/165;
}

#article-list ul li .case-inner {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

#article-list ul li.end .case-inner::after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    content: "このイベントは終了しました";
    font-size: 20px;
    font-weight: bold;
}

#article-list ul li .article_head {
    margin: 12px 0;
    color: black;
}

#article-list ul li .btn {
    margin: auto 0 0 auto;
    width: fit-content;
    padding: 6px 18px;
    z-index: 15;
}

/*********
ページネーション
**********/
#article-list .pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

#article-list .pagination .pagination_btn {
    display: flex;
    gap: 8px;
}

#article-list .prev-page::before {
    content: "<";
}

#article-list .next-page::after {
    content: ">";
}

#article-list .pagination .current_page {
    border-radius: 40px;
    border: 1px solid #000;
    line-height: 1em;
    aspect-ratio: 1;
    padding: 8px;
    text-align: center;
    width: 1em;
}