@charset "UTF-8";

/* ========================================
   news.css
   お知らせ一覧・詳細ページ固有スタイル

   依存: about.css（hero-simple, section-divider）
   toppage.css のニュースバッジスタイルを転記
======================================== */

/* ========================================
   ニュースバッジ（カテゴリラベル）
   toppage.css から転記（トップ以外でも使用するため）
======================================== */
.top-news__cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #1A3A5C;
    padding: 3px 12px;
    border-radius: 3px;
    white-space: nowrap;
}

.top-news__cat--info {
    background: #1A3A5C;
}

.top-news__cat--works {
    background: #2E7D32;
}

.top-news__cat--update {
    background: #E65100;
}

.top-news__cat--event {
    background: #6A1B9A;
}

/* ========================================
   ニュース用ヒーローセクション調整
   about.css の hero-simple は会社概要用レイアウトのため、
   パンくずリスト用にオーバーライド
======================================== */
.news-page .hero-simple-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.news-page .hero-simple-text {
    flex: 1;
    display: block;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-page .hero-simple-text a {
    color: #888;
    text-decoration: none;
}

.news-page .hero-simple-text a:hover {
    color: #CC0000;
}

.news-page .hero-simple-title {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ========================================
   ニュース共通レイアウト
   about-section.first-area の会社概要背景を
   ニュースページでは無効化
======================================== */
.news-page .about-section.first-area {
    background: #fafafa;
}

.news-page .about-section.first-area::before {
    display: none;
}

.news-page .about-section.first-area .container {
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 56px;
    border-radius: 4px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

/* ========================================
   ニュース一覧（アーカイブ）
======================================== */

/* カテゴリフィルタータブ */
.news-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.news-filter-tab {
    display: inline-block;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-filter-tab:hover {
    color: #CC0000;
    border-color: #CC0000;
    background: #fff;
}

.news-filter-tab.is-active {
    color: #fff;
    background: #CC0000;
    border-color: #CC0000;
}

/* ニュースリスト */
.news-archive-list {
    list-style: none;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.news-archive-list .top-news__item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.news-archive-list .top-news__item:first-child {
    border-top: 1px solid #e5e7eb;
}

.news-archive-list .top-news__item:hover {
    background: #fafafa;
}

.news-archive-list .top-news__date {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
    min-width: 90px;
}

.news-archive-list .top-news__text {
    flex: 1;
    font-size: 0.95rem;
    color: #2D2D2D;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-archive-list .top-news__text:hover {
    color: #CC0000;
}

/* ページネーション
   ※ WPの pagination は .navigation > .nav-links を生成する。
   ※ .nav-links はメインナビにも使われるため、必ず親セレクタで限定する。 */
.news-page .navigation .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
}

.news-page .navigation .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 0.9rem;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-page .navigation .nav-links .page-numbers:hover {
    color: #CC0000;
    border-color: #CC0000;
    background: #fff;
}

.news-page .navigation .nav-links .page-numbers.current {
    color: #fff;
    background: #CC0000;
    border-color: #CC0000;
}

.news-page .navigation .nav-links .page-numbers.dots {
    background: transparent;
    border: none;
}

/* ========================================
   ニュース詳細
======================================== */
.news-detail {
    margin-bottom: 40px;
}

.news-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.news-detail-date {
    font-size: 0.9rem;
    color: #888;
    white-space: nowrap;
}

.news-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D2D2D;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ========================================
   エントリーコンテンツ（WordPress本文）
======================================== */
.news-detail-content.entry-content {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #333;
}

.news-detail-content.entry-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A3A5C;
    margin: 2em 0 0.8em;
    padding-bottom: 8px;
    border-bottom: 2px solid #CC0000;
}

.news-detail-content.entry-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 1.8em 0 0.6em;
    padding-left: 12px;
    border-left: 3px solid #CC0000;
}

.news-detail-content.entry-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin: 1.5em 0 0.5em;
}

.news-detail-content.entry-content p {
    margin-bottom: 1.2em;
}

.news-detail-content.entry-content a {
    color: #CC0000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-detail-content.entry-content a:hover {
    color: #990000;
}

.news-detail-content.entry-content ul,
.news-detail-content.entry-content ol {
    margin: 1em 0 1.2em 1.5em;
}

.news-detail-content.entry-content li {
    margin-bottom: 0.5em;
}

.news-detail-content.entry-content ul li {
    list-style: disc;
}

.news-detail-content.entry-content ol li {
    list-style: decimal;
}

.news-detail-content.entry-content blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    background: #f8f8f8;
    border-left: 4px solid #CC0000;
    color: #555;
    font-style: italic;
}

.news-detail-content.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
}

.news-detail-content.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.news-detail-content.entry-content th,
.news-detail-content.entry-content td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.9rem;
}

.news-detail-content.entry-content th {
    background: #f5f5f5;
    font-weight: 700;
    color: #333;
}

.news-detail-content.entry-content pre {
    margin: 1.5em 0;
    padding: 16px 20px;
    background: #2D2D2D;
    color: #f0f0f0;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

.news-detail-content.entry-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

.news-detail-content.entry-content pre code {
    background: transparent;
    padding: 0;
}

/* ========================================
   戻るリンク
======================================== */
.news-back-link {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.news-back-link a {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #CC0000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.news-back-link a:hover {
    color: #990000;
}

/* ========================================
   レスポンシブ
======================================== */
@media screen and (max-width: 768px) {
    .news-page .hero-simple-inner {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .news-page .hero-simple-text {
        font-size: 0.8rem;
    }

    .news-page .hero-simple-title {
        font-size: 1.5rem;
    }

    .news-page .about-section.first-area .container {
        padding: 28px 20px;
        max-width: 100%;
    }

    .news-filter-tabs {
        gap: 6px;
        margin-bottom: 24px;
    }

    .news-filter-tab {
        padding: 5px 14px;
        font-size: 0.8rem;
    }

    .news-archive-list .top-news__item {
        flex-wrap: wrap;
        gap: 8px 16px;
        padding: 14px 0;
    }

    .news-archive-list .top-news__date {
        min-width: auto;
    }

    .news-archive-list .top-news__text {
        width: 100%;
        flex: none;
    }

    .news-detail-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-detail-title {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .news-detail-content.entry-content {
        font-size: 0.9rem;
    }

    .news-detail-content.entry-content h2 {
        font-size: 1.15rem;
    }

    .news-detail-content.entry-content h3 {
        font-size: 1.05rem;
    }
}
