@charset "utf-8";

/* =========================================
   Single Blog Styles
   ========================================= */

/* ヒーローエリア（アーカイブより少し控えめに） */
.cs-hero-blog {
    background-color: var(--cs-accent, #F4F9FC);
    padding: 40px 0;
}
.cs-hero-blog .cs-hero-title {
    font-size: 24px;
    margin-bottom: 0;
}

/* メインコンテナ：読みやすさのため幅を制限 */
.cs-single-container {
    max-width: 840px; /* 本文の読みやすさを考慮した幅 */
    margin: 0 auto;
    background: #fff;
}

/* 記事全体の枠（必要に応じて影などを追加） */
.cs-article {
    margin-bottom: 60px;
}

/* --- 記事ヘッダー --- */
.cs-article-header {
    margin-bottom: 40px;
    text-align: center; /* タイトル周りを中央寄せ */
}

.cs-article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-family: monospace;
    color: var(--cs-text-light, #666);
    font-size: 14px;
}

.cs-cat {
    background-color: var(--cs-primary, #00A3E0);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.cs-article-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 30px;
    color: var(--cs-text, #333);
}

@media (min-width: 768px) {
    .cs-article-title { font-size: 36px; }
}

.cs-article-thumb {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}
.cs-article-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 記事本文 (WordPress標準クラス + カスタム) --- */
.cs-entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--cs-text, #333);
}

/* 本文内の余白調整 */
.cs-entry-content > * {
    margin-bottom: 1.8em;
}
.cs-entry-content > *:last-child {
    margin-bottom: 0;
}

/* 見出し */
.cs-entry-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--cs-primary, #F39800);
    color: var(--cs-text, #333);
}

.cs-entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid var(--cs-secondary, #FF9F1C);
}

/* リスト */
.cs-entry-content ul, 
.cs-entry-content ol {
    padding-left: 20px;
    background-color: #f9fafb;
    padding: 20px 20px 20px 40px;
    border-radius: 8px;
}
.cs-entry-content li {
    margin-bottom: 10px;
}

/* 画像 */
.cs-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 引用 */
.cs-entry-content blockquote {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--cs-accent, #F4F9FC);
    border-left: 4px solid var(--cs-text-light, #999);
    color: #555;
    font-style: italic;
}

/* --- ナビゲーション --- */
.cs-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--cs-border, #e5e7eb);
    padding-top: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.cs-post-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--cs-text, #333);
    transition: color 0.3s;
}
.cs-post-nav a:hover {
    color: var(--cs-primary, #F39800);
}

/* 中央の「一覧に戻る」ボタン */
.cs-post-nav-list a {
    background-color: var(--cs-accent, #F4F9FC);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
}
.cs-post-nav-list a:hover {
    background-color: var(--cs-border, #e5e7eb);
    color: var(--cs-text, #333);
}

@media (max-width: 767px) {
    .cs-post-nav-list {
        order: 3; /* モバイルでは一番下に */
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
}