@charset "utf-8";

/* --- お知らせページ全体のレイアウト --- */
.lower-page {
    margin-top: 120px; /* ヘッダーに被らないよう調整 */
    padding-bottom: 100px;
}

/* --- お知らせリストのデザイン --- */
.news-list {
    max-width: 900px; /* 読みやすい幅に制限 */
    margin: 0 auto;
}

.news-item {
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.news-item:first-child {
    border-top: 1px solid #eee;
}

.news-item a {
    display: flex;
    align-items: center;
    padding: 25px 15px;
    text-decoration: none;
    color: #333;
}

.news-item:hover {
    background-color: #fafafa;
}

/* 日付 */
.news-item time {
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #999;
    width: 120px;
    flex-shrink: 0;
}

/* カテゴリタグ */
.news-item .category {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #1D6393; /* コーポレートカラー */
    padding: 3px 12px;
    margin-right: 30px;
    min-width: 80px;
    text-align: center;
    border-radius: 2px;
    flex-shrink: 0;
}

/* タイトル */
.news-item .title {
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
}

/* --- トップページ用のお知らせレイアウト (home-news) --- */
#home-news {
    padding: 80px 0;
    background: #fff;
}

.news-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid #1D6393;
    padding-bottom: 15px;
}

.news-head .news-title span {
    font-size: 12px;
    color: #1D6393;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 5px;
}

.news-head .news-title h3 {
    font-size: 24px;
    font-weight: normal;
}

.btn-all {
    font-size: 12px;
    color: #666;
    letter-spacing: 0.1em;
    position: relative;
    padding-right: 20px;
}

.btn-all::after {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 1px solid #666;
    border-right: 1px solid #666;
    transform: rotate(45deg);
    position: absolute;
    right: 5px;
    top: 50%;
    margin-top: -4px;
}

/* --- お知らせ本文エリア（news.html専用） --- */
#news-contents {
    margin-top: 80px;
    padding-top: 50px;
}

.news-content-box {
    margin-bottom: 100px; /* 記事同士の間隔 */
    padding: 60px;
    background: #fdfdfd; /* わずかに色を変えてリストと区別 */
    border: 1px solid #eee;
    border-radius: 4px;
}

.content-header {
    border-bottom: 1px solid #1D6393;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.content-header time {
    font-size: 14px;
    color: #999;
}

.content-header h3 {
    font-size: 24px;
    margin-top: 10px;
    font-weight: 600;
}

.content-body {
    line-height: 2.0;
    font-size: 16px;
    color: #444;
}

.content-body p {
    margin-bottom: 1.5em;
}

.content-body img {
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* 写真には薄く影を */
}

/* 一覧に戻るボタン */
.back-to-list {
    display: inline-block;
    margin-top: 40px;
    font-size: 13px;
    color: #1D6393;
    font-weight: 600;
    border-bottom: 1px solid #1D6393;
    padding-bottom: 2px;
}

.back-to-list:hover {
    color: #333;
    border-color: #333;
}

/* もっと見るボタンのエリア */
.more-btn-area {
    text-align: center;
    margin-top: 40px;
}

/* --- レスポンシブ (スマホ表示) --- */
@media screen and (max-width: 768px) {
    .news-item a {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 10px;
    }

    .news-item time {
        margin-bottom: 8px;
        width: auto;
    }

    .news-item .category {
        margin-bottom: 12px;
        margin-right: 0;
    }

    .news-item .title {
        font-size: 15px;
    }
    
    .news-head h3 {
        font-size: 20px;
    }

    .news-content-box {
        padding: 30px 15px; /* 余白を狭める */
        margin-bottom: 60px;
    }

    .content-header h3 {
        font-size: 20px;
    }

    .content-body {
        font-size: 15px;
    }
}