/* ダウンタウン配信情報サイト - メインCSS */

/* ========================================
   リセットとベース設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans CJK JP", sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ========================================
   レイアウト共通
======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.main-column {
    min-width: 0; /* グリッドオーバーフロー防止 */
}

.sidebar {
    position: sticky;
    top: 20px;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav a:hover {
    border-bottom-color: white;
    text-decoration: none;
}

/* ========================================
   広告コンテナ
======================================== */
.ad-container {
    margin: 20px 0;
    text-align: center;
}

.ad-slot {
    display: inline-block;
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    min-height: 60px;
}

/* 広告サイズ別設定 */
.ad-top-banner .ad-slot,
.ad-bottom-banner .ad-slot {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.ad-sidebar .ad-slot,
.ad-mid-article .ad-slot {
    width: 300px;
    height: 250px;
}

.ad-mobile-banner .ad-slot {
    width: 320px;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none; /* デフォルトで非表示、モバイルで表示 */
}

/* ========================================
   メインコンテンツ
======================================== */
.main-content {
    padding: 2rem 0;
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.countdown-container {
    margin-bottom: 2rem;
}

.countdown-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.countdown-display {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.countdown-number {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.countdown-unit {
    font-size: 1.5rem;
}

.countdown-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-content {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 2rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* セクション共通 */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-left: 4px solid #007bff;
    padding-left: 1rem;
}

/* 記事グリッド */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* サムネイル */
.article-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-thumbnail:hover img {
    transform: scale(1.05);
}

/* 記事コンテンツ */
.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex: 1;
}

.article-title a {
    color: #2c3e50;
    font-weight: 600;
}

.article-excerpt {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #007bff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* キーワードタグ */
.keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.keyword-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: #1976d2;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ========================================
   記事ページ - カードベースデザイン
======================================== */

/* 記事全体をカード化 */
article.article-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* 記事ヘッダー */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.article-header .article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.article-header .article-category {
    background: #007bff;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-header .article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1rem 0;
    color: #2c3e50;
}

.article-header .article-summary {
    font-size: 1.05rem;
    color: #6c757d;
    line-height: 1.7;
    margin: 1rem 0;
}

/* ソーシャルシェアボタン */
.social-share {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.share-button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-button.twitter {
    background: #1DA1F2;
    color: white;
}

.share-button.facebook {
    background: #1877F2;
    color: white;
}

.share-button.line {
    background: #00B900;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 記事本文 */
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* 見出しスタイル - シンプル版 */
.section-heading,
.article-body h2 {
    color: #333;
    padding: 0.8rem 0 0.8rem 1rem;
    border-left: 4px solid #667eea;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.article-body h3 {
    color: #333;
    padding: 0.6rem 0 0.6rem 1rem;
    border-left: 3px solid #4facfe;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.article-body h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid #007bff;
}

/* ハイライトボックス改善 */
.highlight-box {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.highlight-box h3 {
    background: none;
    color: #856404;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    padding: 0;
    box-shadow: none;
}

.highlight-box p,
.highlight-box ul {
    color: #856404;
}

/* 記事フッター */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.author-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.article-dates {
    color: #6c757d;
    font-size: 0.875rem;
}

.social-share-bottom {
    margin-top: 2rem;
}

.social-share-bottom h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* ========================================
   サイドバー
======================================== */
.sidebar-widget,
.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: #333;
    padding-bottom: 0.8rem;
    padding-left: 0.8rem;
    border-left: 4px solid #667eea;
    font-weight: 600;
}

/* クイック情報 */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.info-list li:hover {
    background: #e9ecef;
}

.info-list li:last-child {
    margin-bottom: 0;
}

/* 関連サービス */
.service-links {
    display: grid;
    gap: 0.75rem;
}

.service-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.service-link:hover {
    background: #e9ecef;
    text-decoration: none;
}

.service-link small {
    color: #6c757d;
    font-weight: normal;
}

/* 人気記事リスト */
.popular-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-articles li {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.popular-articles li:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.popular-articles li:last-child {
    margin-bottom: 0;
}

.popular-articles a {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.popular-articles a:hover {
    color: #667eea;
}

.popular-articles .view-count {
    font-size: 0.85rem;
    color: #6c757d;
}

/* タグクラウド */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud .tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-cloud .tag:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    text-decoration: none;
}

/* ニュースレターフォーム */
.newsletter-form {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
}

.newsletter-form p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

.newsletter-form button {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
    background: #5568d3;
}

/* カウントダウンウィジェット */
.countdown-widget {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

.countdown-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.countdown-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

/* ABEMAプレミアム広告ウィジェット */
.abema-widget {
    background: #667eea;
    text-align: center;
}

.abema-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    border: none;
    padding: 0;
}

.abema-description {
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.abema-highlight {
    color: #ffd700;
    font-weight: 700;
}

.abema-ad-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.abema-note {
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    margin: 0;
}

/* ========================================
   フッター
======================================== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-info {
    line-height: 1.6;
}

.site-description {
    margin-bottom: 1rem;
}

.disclaimer {
    opacity: 0.8;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.875rem;
}

/* ========================================
   レスポンシブデザイン
======================================== */

/* タブレット */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .countdown-display {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* サムネイル調整 */
    .article-thumbnail {
        height: 180px;
    }
    
    /* グリッドを2カラムに */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 広告サイズ調整 */
    .ad-top-banner .ad-slot,
    .ad-bottom-banner .ad-slot {
        width: 100%;
        max-width: 728px;
    }

    /* 記事ページレスポンシブ */
    article.article-content {
        padding: 1.5rem;
        border-radius: 8px;
    }

    .article-header .article-title {
        font-size: 1.5rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .section-heading,
    .article-body h2 {
        font-size: 1.3rem;
        padding: 0.8rem 1rem;
    }

    .article-body h3 {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }

    .social-share {
        flex-wrap: wrap;
    }

    .share-button {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}

/* スマートフォン */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .countdown-display {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .countdown-unit {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .keywords-grid {
        gap: 0.5rem;
    }
    
    .keyword-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .article-card {
        overflow: hidden;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-thumbnail {
        height: 160px;
    }
    
    /* グリッドを1カラムに */
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    /* モバイル広告表示 */
    .ad-mobile-banner .ad-slot {
        display: block;
    }
    
    /* モバイル広告用の余白 */
    body {
        padding-bottom: 60px;
    }
}

/* ========================================
   関連記事セクション
======================================== */
.related-articles {
    margin: 3rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-article-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.related-article-card .article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.related-article-card .article-category {
    background: #007bff;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.related-article-card .article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-article-card .article-title a {
    color: #333;
    text-decoration: none;
}

.related-article-card .article-title a:hover {
    color: #007bff;
}

.related-article-card .article-excerpt {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.related-article-card .read-more {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.related-article-card .read-more:hover {
    text-decoration: underline;
}

/* ========================================
   パフォーマンス最適化
======================================== */

/* 画像遅延読み込み */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Critical CSS インライン用のプレースホルダー */
.critical-css-inline {
    display: none;
}

/* プリロード用リソースヒント */
.resource-hints {
    display: none;
}

/* Web Vitals 測定用の隠し要素 */
.web-vitals-beacon {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ========================================
   モバイル関連記事レスポンシブ
======================================== */
@media (max-width: 768px) {
    .related-articles {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-article-card {
        padding: 1rem;
    }
    
    .related-article-card .article-title {
        font-size: 1rem;
    }
}
    
    /* サイドバー広告をモバイルで調整 */
    .ad-sidebar .ad-slot,
    .ad-mid-article .ad-slot {
        width: 100%;
        max-width: 300px;
    }
}

/* ========================================
   ユーティリティ
======================================== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

/* ローディング状態 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   印刷対応
======================================== */
@media print {
    .header,
    .footer,
    .ad-container,
    .sidebar {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    body {
        background: white;
    }
    
    .article-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ========================================
   Yahoo! News Style Header (3-tier)
======================================== */

/* Container 1200px */
.container-1200 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Yahoo Style */
.header-yahoo {
    background: #FFFFFF;
    border-bottom: 1px solid #E1E4E8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Tier 1: Logo + Search */
.header-top {
    border-bottom: 1px solid #E1E4E8;
    padding: 12px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-logo a {
    color: #24292F;
    text-decoration: none;
}

.site-logo a:hover {
    color: #2563EB;
}

.header-search {
    display: flex;
    gap: 8px;
    max-width: 300px;
    flex: 1;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #E1E4E8;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563EB;
}

.search-btn {
    padding: 8px 16px;
    background: #F6F8FA;
    border: 1px solid #E1E4E8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.search-btn:hover {
    background: #E1E4E8;
}

/* Tier 2: Main Navigation */
.header-nav {
    border-bottom: 1px solid #E1E4E8;
    padding: 0;
    position: relative;
}

.header-nav .main-nav {
    display: block;
}

.header-nav .main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.header-nav .main-nav li {
    margin: 0;
}

.header-nav .nav-link {
    display: block;
    padding: 12px 20px;
    color: #24292F;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.header-nav .nav-link:hover {
    background: #F6F8FA;
    border-bottom-color: #2563EB;
}

.mobile-menu-btn {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background: none;
    border: 1px solid #E1E4E8;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #24292F;
}

/* Tier 3: Category Tabs */
.header-categories {
    background: #F6F8FA;
    padding: 0;
}

.category-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow-x: auto;
}

.category-nav li {
    margin: 0;
}

.category-tab {
    display: block;
    padding: 10px 16px;
    color: #24292F;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.category-tab:hover {
    background: #FFFFFF;
    border-bottom-color: #2563EB;
}

.category-tab.active {
    background: #FFFFFF;
    color: #2563EB;
    border-bottom-color: #2563EB;
}

/* Tablet Responsive (768px - 1199px) */
@media (max-width: 1199px) {
    .header-search {
        max-width: 200px;
    }
}

/* Mobile Responsive (767px and below) */
@media (max-width: 767px) {
    .header-top-content {
        gap: 10px;
    }

    .site-logo {
        font-size: 1.2rem;
    }

    .header-search .search-input {
        display: none;
    }

    .search-btn {
        padding: 6px 10px;
    }

    .header-nav .main-nav {
        display: none;
    }

    .header-nav .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-bottom: 1px solid #E1E4E8;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .header-nav .main-nav.active ul {
        flex-direction: column;
    }

    .mobile-menu-btn {
        display: block;
    }

    .category-nav ul {
        justify-content: flex-start;
    }

    .category-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}.page-content{background:white;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,0.1);padding:2rem;margin-bottom:2rem}.page-header{border-bottom:3px solid #007bff;padding-bottom:1rem;margin-bottom:2rem}.page-header h1{font-size:2rem;font-weight:bold;color:#333}.page-body{line-height:1.8;color:#555}.about-section{margin-bottom:2.5rem}.about-section h2{font-size:1.5rem;font-weight:600;color:#007bff;margin-bottom:1rem;padding-bottom:0.5rem;border-bottom:2px solid #e9ecef}.about-section p{margin-bottom:1rem}
.breadcrumb{display:flex;align-items:center;gap:8px;padding:12px 0;margin-bottom:20px;font-size:0.9rem;color:#666}.breadcrumb a{color:#007bff;text-decoration:none;transition:color 0.2s}.breadcrumb a:hover{color:#0056b3;text-decoration:underline}.breadcrumb-separator{color:#999;user-select:none}.breadcrumb-current{color:#333;font-weight:500}
