/* single-news.php 専用スタイル（旧：テンプレート内の <style> を移設） */
    main#main {
        margin-top: 0;
    }

    /* パンくずリスト */

    .breadcrumb-item a {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #007cba;
        text-decoration: none;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .breadcrumb-item a:hover {
        color: #005a8b;
        background: rgba(0, 124, 186, 0.1);
    }

    /* ニュースページ全体のスタイル */
    .news-page {
        background-color: #f8f9fa;
    }

    /* コンテナ */
    .news-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px 40px;
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    /* メインコンテンツエリア */
    .news-main-content {
        background: #ffffff;
        border-radius: 8px;
        padding: 40px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* ニュースヘッダー */
    .news-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 3px solid var(--color-primary-light);
    position: relative;
}

    .news-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #212529;
        margin: 0 0 20px 0;
        line-height: 1.2;
    }

    /* PCサイズでのメタ情報3行構成 */
    @media (min-width: 1025px) {
        .news-meta {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .news-meta span {
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 0;
        }
    }

    .news-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        color: #6c757d;
    }

    .news-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .news-meta svg {
        color: #007cba;
    }

    /* サムネイル */
    .news-thumbnail {
        margin-bottom: 30px;
        border-radius: 8px;
        overflow: hidden;
    }

    .news-thumbnail img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* コンテンツ */
    .news-content {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #495057;
        margin-bottom: 30px;
    }

    .news-content p {
        margin-bottom: 1.5rem;
        font-size: 1.7rem;
        line-height: 1.8;
        text-align: justify;
    }

    /* 見出しスタイル */
    .news-content h2 {
        font-size: clamp(2.4rem, 3.5vw, 3rem);
        font-weight: 700;
        color: #212529;
        line-height: 1.4;
        margin: 2rem 0 1.5rem 0;
        padding: 1rem 0 0.75rem 1.5rem;
        border-left: 4px solid #007cba;
        background: linear-gradient(90deg, rgba(0, 124, 186, 0.05) 0%, transparent 100%);
        border-radius: 0 8px 8px 0;
    }

    .news-content h3 {
        font-size: clamp(2rem, 3vw, 2.4rem);
        font-weight: 600;
        color: #212529;
        line-height: 1.4;
        margin: 1.5rem 0 1rem 0;
        padding: 0.75rem 1rem;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 3px solid #ff4757;
    }

    .news-content h4 {
        font-size: clamp(1.8rem, 2.5vw, 2rem);
        font-weight: 600;
        color: #212529;
        line-height: 1.4;
        margin: 1.25rem 0 0.75rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px dotted #dee2e6;
        position: relative;
    }

    .news-content h4::before {
        content: '■';
        color: #007cba;
        margin-right: 0.5rem;
        font-size: 0.8em;
    }

    .news-content h5 {
        font-size: clamp(1.6rem, 2vw, 1.8rem);
        font-weight: 600;
        color: #212529;
        line-height: 1.4;
        margin: 1rem 0 0.75rem 0;
        position: relative;
        padding-left: 1rem;
    }

    .news-content h5::before {
        content: '▶';
        color: #ff4757;
        position: absolute;
        left: 0;
        font-size: 0.8em;
    }

    /* リストスタイル */
    .news-content ul,
    .news-content ol {
        margin: 1.25rem 0;
        padding-left: 2rem;
    }

    .news-content ul li {
        position: relative;
        margin-bottom: 0.75rem;
        padding-left: 1rem;
        line-height: 1.7;
        color: #495057;
        font-size: 1.6rem;
    }

    .news-content ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.7em;
        width: 6px;
        height: 6px;
        background: #007cba;
        border-radius: 50%;
        transform: translateY(-50%);
    }

    .news-content ol li {
        margin-bottom: 0.75rem;
        line-height: 1.7;
        color: #495057;
        font-size: 1.6rem;
        counter-increment: list-counter;
    }

    .news-content ol {
        counter-reset: list-counter;
    }

    .news-content ol li::marker {
        color: #007cba;
        font-weight: 600;
    }

    /* ネストしたリスト */
    .news-content ul ul,
    .news-content ol ol,
    .news-content ul ol,
    .news-content ol ul {
        margin: 0.75rem 0;
        padding-left: 1.25rem;
    }

    .news-content ul ul li::before {
        background: #ff4757;
        width: 4px;
        height: 4px;
    }

    /* テーブルスタイル */
    .news-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #dee2e6;
        table-layout: fixed;
    }

    .news-content table thead {
        background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
        color: #fff;
    }

    .news-content table th {
        padding: 1rem 1.25rem;
        text-align: left;
        font-weight: 600;
        font-size: 1.4rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .news-content table td {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #dee2e6;
        font-size: 1.5rem;
        line-height: 1.6;
        color: #495057;
    }

    .news-content table tbody tr:nth-child(even) {
        background: #f8f9fa;
    }

    .news-content table tbody tr:hover {
        background: rgba(0, 124, 186, 0.05);
        transition: background-color 0.2s ease;
    }

    /* 引用 */
    .news-content blockquote {
        background: #f8f9fa;
        border-left: 4px solid #007cba;
        margin: 1.5rem 0;
        padding: 1.25rem 1.5rem;
        border-radius: 0 8px 8px 0;
        position: relative;
        font-style: italic;
    }

    .news-content blockquote::before {
        content: '"';
        position: absolute;
        top: -10px;
        left: 10px;
        font-size: 3rem;
        color: #007cba;
        font-family: Georgia, serif;
        line-height: 1;
    }

    .news-content blockquote p {
        margin: 0;
        color: #495057;
        font-size: 1.6rem;
        line-height: 1.7;
    }

    /* コード */
    .news-content pre {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 1.25rem;
        overflow-x: auto;
        margin: 1.5rem 0;
        font-family: 'Courier New', Courier, monospace;
        font-size: 1.4rem;
        line-height: 1.6;
    }

    .news-content code {
        background: #f8f9fa;
        color: #e83e8c;
        padding: 0.2em 0.4em;
        border-radius: 4px;
        font-family: 'Courier New', Courier, monospace;
        font-size: 0.9em;
    }

    .news-content pre code {
        background: transparent;
        color: inherit;
        padding: 0;
        border-radius: 0;
    }

    /* 画像 */
    .news-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 1.5rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .news-content figure {
        margin: 1.5rem 0;
        text-align: center;
    }

    .news-content figure img {
        margin: 0;
    }

    .news-content figcaption {
        font-size: 1.3rem;
        color: #6c757d;
        margin-top: 0.75rem;
        font-style: italic;
        text-align: center;
    }

    /* リンク */
    .news-content a {
        color: #007cba;
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: all 0.3s ease;
    }

    .news-content a:hover {
        color: #005a8b;
        border-bottom-color: #005a8b;
        text-decoration: none;
    }

    /* 強調・斜体 */
    .news-content strong,
    .news-content b {
        font-weight: 700;
        color: #212529;
    }

    .news-content em,
    .news-content i {
        font-style: italic;
        color: #495057;
    }

    .news-content mark {
        background: linear-gradient(transparent 60%, #fff3cd 60%);
        color: #856404;
        padding: 0.1em 0.2em;
    }

    /* 水平線 */
    .news-content hr {
        border: none;
        height: 2px;
        background: linear-gradient(90deg, #007cba, #ff4757, #007cba);
        margin: 2rem 0;
        border-radius: 1px;
    }

    /* フッター */
    .news-footer {
        padding-top: 20px;
        border-top: 1px solid #e9ecef;
        margin-bottom: 40px;
    }

    .news-tags {
        font-size: 0.9rem;
        color: #6c757d;
    }

    .news-tags svg {
        color: #007cba;
    }

    /* ナビゲーション */
    .news-same-category-navigation {
        background: #f8f9fa;
        padding: 30px;
        border-radius: 8px;
        margin-bottom: 30px;
    }

    .news-same-category-navigation .navigation-title {
        font-size: 1.5rem;
        color: #212529;
        margin-bottom: 20px;
        text-align: center;
    }

    .news-same-category-navigation .nav-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .news-same-category-navigation .nav-previous,
    .news-same-category-navigation .nav-next {
        background: #ffffff;
        border-radius: 8px;
        width: 100%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .news-same-category-navigation .nav-previous:hover,
    .news-same-category-navigation .nav-next:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .news-same-category-navigation a {
        display: flex;
        padding: 20px;
        text-decoration: none;
        color: #495057;
        gap: 15px;
    }

    .news-same-category-navigation .nav-post-thumbnail {
        flex-shrink: 0;
        width: 80px;
        height: 60px;
        border-radius: 4px;
        overflow: hidden;
    }

    .news-same-category-navigation .nav-post-thumbnail img {
        width: 80px;
        height: 100%;
        object-fit: cover;
    }

    .news-same-category-navigation .nav-title-text {
        font-size: 1rem;
        color: #007cba;
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
    }

    .news-same-category-navigation .nav-title {
        line-height: 1.4;
        color: #212529;
        display: block;
    }

    /* ニュース一覧への導線 */
    .news-archive-link {
        text-align: center;
        margin: 30px 0 20px;
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .news-archive-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        border: 2px solid #007cba;
        color: #007cba;
        text-decoration: none;
        border-radius: 6px;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s ease;
        background: transparent;
    }

    .news-archive-btn:hover {
        background: #007cba;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    }

    .news-archive-btn svg {
        transition: transform 0.3s ease;
    }

    .news-archive-btn:hover svg {
        transform: translateX(-2px);
    }

    /* サイドバー */

    .news-sidebar .widget ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .news-sidebar .widget li {
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f8f9fa;
    }

    .news-sidebar .widget li:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .news-sidebar .widget a {
        color: #495057;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: color 0.3s ease;
    }

    .news-sidebar .widget a:hover {
        color: #007cba;
    }

    .popular-post-thumbnail,
    .latest-post-thumbnail {
        flex-shrink: 0;
        width: 80px;
        height: 60px;
        border-radius: 4px;
        overflow: hidden;
    }

    .popular-post-thumbnail img,
    .latest-post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .popular-post-title,
    .latest-post-title {
        font-size: 1.3rem;
        line-height: 1.4;
        font-weight: 500;
    }

    /* レスポンシブ対応 */
    @media (max-width: 992px) {
        .news-container {
            grid-template-columns: 1fr;
            gap: 30px;
            padding: 20px 20px 30px;
        }

        .news-main-content {
            order: 1;
            padding: 30px 20px;
        }

    }

    @media (max-width: 768px) {
        .news-content p {
            font-size: 1.6rem;
    }
        .news-title {
            font-size: 2rem;
        }

        .news-same-category-navigation .nav-links {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .news-archive-link {
            margin: 20px 0 15px;
            padding: 15px 0;
        }

        .news-archive-btn {
            padding: 10px 20px;
            font-size: 14px;
        }
    }

    @media (max-width: 480px) {
        .news-container {
            padding: 15px 15px 30px;
        }

        .news-meta {
            flex-direction: column;
            gap: 8px;
        }

        .news-title {
            font-size: 1.8rem;
        }

        /* パンくずリスト - モバイル対応 */

        .breadcrumb-item:not(:last-child)::after {
            margin: 0 8px;
            border-left-width: 4px;
            border-top-width: 3px;
            border-bottom-width: 3px;
        }

        .breadcrumb-item a svg {
            width: 14px;
            height: 14px;
        }
    }

    /* 前のニュースナビゲーション - テキストを左寄せ */
    .news-same-category-navigation .nav-previous .nav-post-text {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .news-same-category-navigation .nav-previous .nav-post-text .nav-arrow,
    .news-same-category-navigation .nav-previous .nav-post-text .nav-title-text,
    .news-same-category-navigation .nav-previous .nav-post-text .nav-title {
        text-align: left !important;
        align-self: flex-start !important;
        margin-left: 0 !important;
    }

    /* 次のニュースナビゲーション - テキストを右寄せのまま維持 */
    .news-same-category-navigation .nav-next .nav-post-text {
        text-align: right !important;
        align-items: flex-end !important;
    }

    .news-same-category-navigation .nav-next .nav-post-text .nav-arrow,
    .news-same-category-navigation .nav-next .nav-post-text .nav-title-text,
    .news-same-category-navigation .nav-next .nav-post-text .nav-title {
        text-align: right !important;
        align-self: flex-end !important;
    }

    /* 前のニュースの矢印の右寄せスタイルを無効化 */
    .news-same-category-navigation .nav-previous .nav-arrow {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
