/* styles.css */

/* 共通スタイル */
body {
    font-family: "Arial", sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d99;
}

/* タイトル画像セクション */
.news-title-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.news-title-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.6);
}

.title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.title-overlay h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* ニュース一覧 */
.list-group-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.list-group-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.list-group-item h2 a {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

.list-group-item h2 a:hover {
    text-decoration: underline;
    color: #0066cc;
}

.list-group-item p {
    margin-bottom: 0.5rem;
}

.list-group-item .text-muted {
    font-size: 0.9rem;
}

/* ページネーション */
.pagination .page-item.active .page-link {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

.pagination .page-link {
    color: #0066cc;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #005bb5;
    color: #fff;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .news-title-image {
        height: 200px;
    }

    .title-overlay h1 {
        font-size: 2rem;
    }

    .list-group-item {
        padding: 1rem;
    }

    .list-group-item h2 a {
        font-size: 1rem;
    }
}