/* --- トップページ用お知らせコンテナ --- */
.news-container {
    background-color: #f9f9f9;
    margin-bottom: 20px;
    border-radius: 4px;
    padding:10px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.news-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.news-header h3 .fa-bullhorn {
    margin-right: 8px;
    color: #0071bc;
}

.news-more-link {
    padding:10px;
    font-size: 13px;
    text-decoration: none;
}
.news-more-link:hover {
    text-decoration: underline;
}

/* --- お知らせリスト共通 --- */
.news-list-top,
.news-list-page {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    padding:5px 10px;
}

.news-item a {
    align-items: center;
    color: #333;
    transition: background-color 0.2s;
}

.news-list-top .news-item:last-child a,
.news-list-page .news-item:last-child a {
    border-bottom: none;
}


.news-item a:hover {
    text-decoration: none;
}

.news-genre {
    font-size: 14px;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.news-meta .news-genre {
    width: auto;
}

.news-genre .fas {
    margin-right: 4px;
}

.news-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- お知らせ一覧ページ用 --- */
.news-list-page {
    padding: 10px 0;
}
.news-list-page .news-item a {
    padding: 15px 10px;
}

/* --- ジャンルごとの色分け --- */
.genre-info { color: #0071bc; }
.genre-campaign { color: #28a745; }
.genre-warning { color: #ffc107; }
.genre-emergency { color: #dc3545; }


/* --- お知らせ詳細ページ --- */
.news-detail-header h1 {
    font-size: 24px;
    margin: 0 0 15px 0;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.news-detail-body {
    line-height: 1.8;
    padding-bottom: 20px;
}
.news-detail-body h1, .news-detail-body h2, .news-detail-body h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.news-detail-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Quillエディタのスタイルを読み込む（公開ページ用） */
@import url('https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.snow.css');

.ql-editor {
    padding: 0;
    line-height: inherit;
    font-size: inherit;
}
.ql-editor.ql-blank::before {
    display: none;
}

/* --- スマホ表示 --- */
@media screen and (max-width: 768px) {
    .news-item a {
        flex-wrap: wrap;
    }
    .news-title {
        width: 100%;
        margin-top: 8px;
        white-space: normal;
        font-size: 15px;
    }
    .news-detail-header h1 {
        font-size: 20px;
    }
}
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0071bc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

