.news-list {
    background: #e6f0fe;
    padding: 20px;
}

.nsj-news-list {
    margin-top: 2em;
    margin-bottom: 2em;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    justify-items: center;
}
.nsj-news-card {
    background: #fff;
    /* border-radius: 16px; */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 24px 0;
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.nsj-news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.nsj-news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border-radius: 16px; */
}
.nsj-news-card-image img {
    /* width: 100%; */
    height: 100%;
    /* object-fit: cover; */
    display: block;
    /* border-radius: 16px; */
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    display: block;
    margin: auto;
}
.nsj-news-card-meta {
    margin: 16px 0 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    padding-left: 16px;
}
.nsj-news-card-category {
    background: #e5e9f7;
    color: #2d3a8c;
    border-radius: 16px;
    padding: 4px 16px;
    font-size: 0.95em;
    border: none;
    display: inline-block;
}
.nsj-news-card-title {
    font-weight: bold;
    font-size: 1.1em;
    text-align: left;
    margin: 0 16px;
    margin-bottom: 0;
    margin-top: 0;
    word-break: break-all;
}
@media (max-width: 1620px) {
    .nsj-news-list { 
        gap: 28px; 
        grid-template-columns: repeat(3, 1fr); 
    }
    .nsj-news-card { width: 400px; }
    .nsj-news-card-image { height: 180px; }
}

@media (max-width: 1330px) {
    .nsj-news-list { 
        gap: 24px; 
        grid-template-columns: repeat(2, 1fr); 
    }
    .nsj-news-card { width: 500px; }
    .nsj-news-card-image { height: 300px; }
}
@media (max-width: 1100px) {
    .nsj-news-list { 
        gap: 24px; 
        grid-template-columns: repeat(2, 1fr); 
    }
    .nsj-news-card { width: 400px; }
    .nsj-news-card-image { height: 300px; }
}
@media (max-width: 900px) {
    .nsj-news-card { width: 100%; max-width: 700px; }
    .nsj-news-list { 
        gap: 16px; 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 768px) {
    .nsj-news-card { width: 100%; max-width: 350px; }
    .nsj-news-list { 
        gap: 20px; 
        grid-template-columns: 1fr; 
    }
    .nsj-news-card-image { height: 160px; }
}
@media (max-width: 1200px) {
    .nsj-news-list { 
        gap: 12px;
        margin-top: 0;
    }
    .nsj-news-card { width: 100%; max-width: 95vw; }
    .nsj-news-card-image { height: 300px; }
    
    .news-filter-nav {
        padding: 24px 0;
        height: 200px !important;
    }
    
    .news-filter-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 0 16px !important;
        overflow-x: visible !important;
    }
    
    .news-filter-tab {
        width: 300px !important;
        text-align: center !important;
        padding: 16px 12px !important;
        font-size: 1em !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: normal !important;
    }

    .company-page-header {
        padding-bottom: 0;
    }

    main {
        margin-bottom: 48px;
    }
}
@media (max-width: 930px) {
    .news-filter-tabs {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 630px) {
    .news-filter-tab {
        width: 170px !important;
    }
}

/* ニュース絞り込みタブ */
.news-filter-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-bottom: 2.5rem; */
    background: #e6f0fe;
    /* border-radius: 32px; */
    padding: 0.5rem 0;
    position: static;
    top: unset;
    z-index: auto;
    box-shadow: none;
}

.news-filter-tabs {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-filter-tab {
    background: none;
    border: none;
    color: #2d3a8c;
    font-size: 1rem;
    padding: 0.75rem 2.5rem;
    border-radius: 32px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.news-filter-tab.active {
    background: #2d3a8c;
    color: #fff;
}

@media (max-width: 1200px) {
    .news-filter-tabs {
        gap: 1rem;
        overflow-x: auto;
    }
    .news-filter-tab {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
}