/* ==========================================
   ニュース一覧ページ専用スタイル
   ========================================== */

/* ヘッダーのスタイル */
body header {
    width: 100%;
    height: 18vh;
}

/* ヘッダーの背景画像 */
.header_img {
    display: flex;
    height: 100%;
    width: 100%;
    background-image: url("../images/image7.jpeg");
    background-size: cover;
    background-position: center;
}

.news-list-page {
    padding: 2rem 1rem;
}

.page-header {
    text-align: left;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: #005ab3;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.news-list-container {
    width: 100%;
    margin: 0;
    background: white;
    padding: 2rem;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
}

.news-list-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-date {
    flex-shrink: 0;
    font-size: 16px;
    color: #666;
    font-weight: bold;
    min-width: 100px;
}

.news-list-content {
    flex: 1;
}

.news-list-title {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    font-weight: normal;
    margin: 0;
}

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

.news-list-title a:hover {
    color: #005ab3;
    text-decoration: underline;
}

.news-link-icon {
    margin-left: 0.3rem;
    font-size: 0.9em;
}

.news-empty-message {
    text-align: center;
    color: #999;
    padding: 3rem 0;
    font-size: 1.1rem;
}

.back-to-home {
    padding: 2rem 0;
    text-align: center;
}

.back-button {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    color: black;
    text-decoration: underline;
    transition: background 0.3s;
    font-weight: bold;
}

.back-button:hover {
    background: #b2b2b2;
}

/* フッターの背景オーバーレイ（可読性向上のため） 
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}*/
/* フッターのスタイル */
footer {
    background-image: url("../images/image7.jpeg");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
}

/* ==========================================
   モバイル対応（768px以下）
   ========================================== */
@media screen and (max-width: 768px) {
    .news-list-page {
        padding: 1rem 0.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .news-list-container {
        padding: 1rem;
    }

    .news-list-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .news-list-date {
        font-size: 0.9rem;
        min-width: auto;
    }

    .news-list-title {
        font-size: 1rem;
    }

    .back-button {
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
    }
}
