/* ニュースページ用のスタイル */

/************************************
** ニュースフィルター
************************************/
.fe-news-filter-container {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.fe-news-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--fe-box-shadow);
    padding: 1.2rem 1.5rem;
}

.fe-filter-label {
    font-weight: 700;
    color: var(--fe-dark-blue);
    margin-right: 0.5rem;
}

.fe-filter-button {
    background: none;
    border: 2px solid var(--fe-primary);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fe-transition);
    color: var(--fe-primary);
    font-family: 'FESans', sans-serif;
    font-size: 0.9rem;
}

.fe-filter-button:hover {
    background-color: rgba(0, 144, 212, 0.1);
}

.fe-filter-active {
    background-color: var(--fe-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 144, 212, 0.3);
}

/************************************
** ニュースページレイアウト
************************************/
.fe-news-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.fe-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/************************************
** ニュースカード
************************************/
.fe-news-card {
    background-color: var(--fe-white);
    border-radius: 12px;
    box-shadow: var(--fe-box-shadow);
    overflow: hidden;
    transition: var(--fe-transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fe-news-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fe-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 76, 144, 0.15);
}

.fe-news-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.fe-news-image::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.fe-news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--fe-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.fe-news-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fe-news-date {
    color: var(--fe-grey);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.fe-news-date svg {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

.fe-news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--fe-dark-blue);
}

.fe-news-excerpt {
    color: var(--fe-grey);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    flex-grow: 1;
}

.fe-news-readmore {
    color: var(--fe-primary);
    font-weight: 700;
    position: relative;
    padding-right: 1.5rem;
    align-self: flex-start;
    margin-top: auto;
}

.fe-news-readmore::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--fe-transition);
}

.fe-news-card:hover .fe-news-readmore::after {
    right: -5px;
}

/************************************
** もっと表示ボタン
************************************/
.fe-news-load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.fe-nav-active {
    color: var(--fe-primary);
    position: relative;
}

.fe-nav-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--fe-primary);
}

/************************************
** レスポンシブデザイン
************************************/
@media (max-width: 1400px) {
    .fe-news-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 992px) {
    .fe-news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .fe-news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .fe-news-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fe-filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .fe-page-title {
        font-size: 2.2rem;
    }
    
    .fe-page-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .fe-news-page-container,
    .fe-news-filter-container {
        padding: 0 1rem 3rem;
    }
    
    .fe-news-title {
        font-size: 1.2rem;
    }
    
    .fe-news-image {
        height: 180px;
    }
}