* {
    --swiper-theme-color: #000000;
}
main {
    background-image: url('https://ebisusushi.jp/wp-content/themes/ebisusushi/images/top/menu_back_pc.webp');
    background-size: cover;
    background-position: center;
    background-color: #000;
    padding: 100px 0;
}
article {
    width: min(90%, 1200px);
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    padding: 40px;
    position: relative;
}
.news-ttl {
    font-size: 40px;
    color: #0A093A;
    border-left: 10px solid #0A093A;
    padding-left: 30px;
    font-weight: 600;
}
.news-ttl span {
    font-weight: normal !important;
    font-size: 28px;
    padding-left: 30px;
}
.news-category-list {
    display: flex;
    justify-content: flex-end;
    column-gap: 10px;
    margin-bottom: 20px;
}

.news-category-list li {
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #0A093A;
    border: 1px solid #0A093A;
}
.news-category-list li.active {
    background-color: #0A093A;
    color: #fff;
}
.news-category-list li:hover {
    background-color: #0A093A;
    color: #fff;
}
.news-category-list li a {
    color: inherit;
}

/* 後ほどtemplate-rows1→3へ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 24px;
    height: 100%;
}

.news-container {
    color: #000;
    background: #fff;
    border: 2px solid #0A093A;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
}

.news-container div:first-child {
    margin-bottom: 10px;
}

.news-container div img {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 2px;
    aspect-ratio: 1050 / 570;
    overflow: hidden;
    object-fit: contain;
}

h3 {
    color: #0A093A;
    text-align: left;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.date-category-container {
    display: flex;
    justify-content: space-between;
}

.date-category-container span {
    display: block;
    background-color: #fff;
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 0.8rem;
}

time {
    color: #0A093A;
}

.swiper-pagination {
    pointer-events: none !important;
}

@media (max-width: 960px) {

}

@media (max-width: 768px) {
    main {
        padding: 80px 0;
    }
    .news-ttl {
        font-size: 28px !important;
        padding-left: 15px;
    }
    .news-ttl span {
        font-size: 20px;
    }
    .news-category-list {
        margin: 20px 0 0;
    }
    .text-on-img {
        width: 300px;
        height: 170px;
        font-size: 1.8rem;
        font-weight: 700;
    }
    article {
        padding: 20px 20px 40px;
    }
    h3 {
        font-size: 1.1rem;
    }
    .news-grid {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 20px;
        /* padding-left: 30px; */
    }
    .news-container {
        width: 95%;
        margin: 0 auto;
    }
    .swiper-pagination {
        bottom: -5px;
    }
}
