/* お知らせ画像のサイズ制限 */

/* お知らせ詳細ページの画像 */
.news-detail-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* お知らせ一覧ページの画像 */
.timeline-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* お知らせカードの画像（トップページ） */
.news-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-detail-image img {
        max-height: 300px;
        width: 100%;
        height: auto;
    }
    
    .timeline-image img {
        max-height: 150px;
        width: 100%;
        height: auto;
    }
    
    .news-card-image img {
        height: 150px;
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .news-detail-image img {
        max-height: 250px;
        width: 100%;
        height: auto;
    }
    
    .timeline-image img {
        max-height: 120px;
        width: 100%;
        height: auto;
    }
    
    .news-card-image img {
        height: 120px;
        max-height: 120px;
    }
}

/* 画像読み込み中のスタイル */
.news-detail-image,
.timeline-image,
.news-card-image {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.news-detail-image img,
.timeline-image img,
.news-card-image img {
    transition: opacity 0.3s ease;
}

.news-detail-image img:not([src]),
.timeline-image img:not([src]),
.news-card-image img:not([src]) {
    opacity: 0;
}
