.post-type-archive-news .page-title-svg {
    display: none;
    /* SVGを非表示 */
}

#news.main-content {
    padding-top: 0 !important;
    padding: var(--back-padding);
    gap: 50px !important;
}

/* ニュースフィルター */
.news-filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-filter-list li {
    margin: 0 5px 10px;
}

/* ニュースフィルターのリンク */
.news-filter-list a {
    display: block;
    padding: 8px 15px;
    background: linear-gradient(135deg, #141e30, #243b55);
    color: var(--text-white-color);
    text-decoration: none;
    border-radius: 3px;
    /* 背景と色の変化を滑らかにする */
    transition: background 0.4s ease, color 0.3s ease;
}

.news-filter-list a:hover,
.news-filter-list a.active {
    background: linear-gradient(135deg, #c471ed, #f64f59);
    color: #fff;
}

/* ニュース記事リスト */
.news-list-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-bottom: 40px;
    gap: 20px;
    padding: 0 2rem;
}

.news-item-archive {
    display: grid;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f8fafc, #f1f5f9);
    box-shadow: var(--shadow);
    border: 1px solid var(--main-color);
    padding: 20px;
}

.news-meta {
    margin-bottom: 10px;
}

.news-date {
    color: #888;
    font-size: 14px;
    margin-right: 15px;
}

.news-category {
    display: inline-block;
    background: var(--main-gradient);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

.news-category a {
    color: #fff;
    text-decoration: none;
}

.news-title {
    font-size: 20px;
    margin: 0 0 15px;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #666;
}

.news-thumbnail {
    margin-bottom: 15px;
}

.news-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
}

.news-excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
    /* テキストを2行に制限し、超過分は省略記号で表示 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.read-more {
    display: inline-block;
    text-align: end;
    width: fit-content;
    margin-left: auto;
    padding: 10px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background: linear-gradient(135deg, #2c3e50, #3498db);
}

/* ページネーション */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.pagination .page-numbers.current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* 単一ニュース記事ページ */
.news-single {
    max-width: 800px;
    padding: 2rem;
    margin: 0 auto 5rem auto;
    background: var(--text-white-color);
    box-shadow: var(--shadow);
    border-radius: 30px;
}

.news-single .entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.news-single .entry-title {
    font-size: 28px;
    margin: 15px 0 0;
}

.news-featured-image {
    margin-bottom: 30px;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    line-height: 1.8;
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.news-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-prev,
.news-next {
    flex: 0 0 auto;
}

.news-archive-link {
    flex: 1 1 auto;
    text-align: center;
}

.news-archive-link a,
.news-prev a,
.news-next a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--main-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.news-archive-link a:hover,
.news-prev a:hover,
.news-next a:hover {
    background: linear-gradient(135deg, #2c3e50, #3498db);
}

.no-news {
    text-align: center;
    padding: 50px 0;
    color: #888;
    font-size: 18px;
}

@media (max-width: 768px) {
    .news-list-archive {
        padding: 0px 1rem;
    }
}