/**
 * お知らせアーカイブページ専用スタイル
 * Nozomi Theme
 */

/* ヒーローセクション */
.info-hero {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 40px;
}

.info-hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.info-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.info-hero-title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Noto Sans JP', sans-serif;
}

.info-hero-subtitle {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Noto Sans JP', sans-serif;
}

/* メインコンテンツエリア */
.site-main {
    min-height: calc(100vh - 250px - 100px); /* 100vhからヒーローセクションの高さとフッターの高さを引く */
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .info-hero {
        height: 200px;
    }

    .info-hero-title {
        font-size: 2rem;
    }

    .info-hero-subtitle {
        font-size: 1.2rem;
    }

    .site-main {
        min-height: calc(100vh - 200px - 100px); /* モバイルでのヒーローセクションの高さに合わせて調整 */
    }
}

/* お知らせヘッダー */
.page-header {
    background-color: var(--primary-light);
    color: white;
}

.page-title, 
.archive-description p {
    color: white;
}

/* お知らせカテゴリーナビゲーション */
.news-categories {
    margin-bottom: 40px;
}

.news-category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-category-list li {
    margin: 0 5px 10px;
}

.news-category-list a {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--bg-gray);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-category-list a:hover,
.news-category-list a.active {
    background-color: var(--primary-color);
    color: white;
}

/* お知らせリスト */
.news-archive article {
    padding: 25px 0;  /* 上下の余白を増やす */
    border-bottom: 1px solid #e0e0e0;
}

.news-archive article:first-child {
    border-top: 1px solid #e0e0e0;
}

.news-archive .entry-header {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 30px;  /* 要素間の余白を増やす */
}

.news-archive .entry-title {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
}

.news-archive .entry-title a {
    color: #333;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
}

.news-archive .entry-title a:hover {
    text-decoration: underline;
}

.news-archive .entry-meta {
    display: flex;
    align-items: center;
    gap: 20px;  /* カテゴリーと日付の間の余白を調整 */
    margin: 0;
    font-size: 0.9rem;
    flex-shrink: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.news-archive .posted-on {
    color: #666;
    margin: 0;
    flex-shrink: 0;
    width: 100px;
    font-family: 'Noto Sans JP', sans-serif;
}

.news-archive .cat-links {
    flex-shrink: 0;
}

.news-archive .cat-links a {
    display: inline-block;
    padding: 2px 12px;  /* 横幅を少し広げる */
    background-color: #0577F7;
    border-radius: 4px;
    margin-right: 5px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.news-archive .cat-links a:hover {
    opacity: 0.8;
}

/* 不要な要素を非表示 */
.news-archive .post-thumbnail,
.news-archive .entry-content,
.news-archive .entry-summary,
.news-archive .read-more {
    display: none;
}

/* 空の結果 */
.news-archive + p {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-gray);
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* レスポンシブスタイル */
@media (max-width: 768px) {
    .news-archive .entry-header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .news-archive .entry-meta {
        width: 100%;
    }

    .news-archive .entry-title {
        width: 100%;
        margin-top: 5px;  /* タイトルの上に少し余白を追加 */
    }

    .news-archive .has-post-thumbnail {
        grid-template-columns: 1fr;
    }
    
    .news-archive .has-post-thumbnail .post-thumbnail {
        height: 200px;
    }
} 