@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Template: cocoon-master
Version: 1.1.3
*/

/* ===================================
   ローカルAI限界開発日記 漆黒テーマ (統合版)
   =================================== */

/* 1. サイト全体のベース設定 */
body {
    background-color: #111111 !important;
    color: #ffffff !important;
}

a {
    color: #ffffff !important;
    text-decoration: none;
}

/* 白背景・枠線の徹底排除 (メイン、サイドバー、ウィジェット、コメント欄) */
#content, #content-in, #main, #sidebar, .main, .sidebar, 
.widget, .widget_block, .wp-block-group, .wp-block-column, .posts-not-found,
.comment-respond, .comment-box {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* ===================================
   ヘッダーナビ（Yahoo!風 横並びボタン）
   =================================== */
#navi {
    border-top: 1px solid #333 !important;
    border-bottom: 2px solid #333 !important;
    margin-bottom: 20px !important;
    background-color: transparent !important;
}
#navi .navi-in a {
    display: block;
    padding: 12px 20px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    border-right: 1px solid #333 !important;
    background-color: #1a1a1a !important;
    transition: 0.2s;
}
#navi .navi-in > ul > li:last-child a {
    border-right: none !important;
}
#navi .navi-in a:hover {
    background-color: #252525 !important;
    color: #4da6ff !important;
}

/* ===================================
   サイドバー（見出しとリスト）
   =================================== */
.sidebar h2, .sidebar h3, .widget-title, .wp-block-heading {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
}
.sidebar h2::before, .sidebar h2::after, .sidebar h3::before, .sidebar h3::after, .widget-title::before, .widget-title::after {
    display: none !important;
}
.sidebar ul li {
    border-bottom: 1px dotted #444 !important;
    padding: 10px 0 !important;
    margin-bottom: 0 !important;
    background-color: transparent !important;
}
.sidebar ul li:last-child {
    border-bottom: none !important;
}

/* ★修正：サイドバーホバー時の白背景を強制無効化 */
.sidebar li:hover, .sidebar li a:hover, 
.widget_recent_entries li:hover, .widget_recent_entries li a:hover {
    background-color: transparent !important;
    background: none !important;
    color: #4da6ff !important;
    text-decoration: underline !important;
}

/* ===================================
   記事リスト ＆ 関連記事（Yahoo!ニュース風）
   =================================== */
/* ★修正：メインリストと関連記事(.related-entry-)の設定を統合 */
.entry-card-wrap, a.entry-card-wrap,
.related-entry-card-wrap, a.related-entry-card-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background-color: #1a1a1a !important;
    border: none !important;
    border-bottom: 1px solid #333 !important;
    padding: 15px !important;
    margin: 0 !important;
    transition: background-color 0.2s;
}
.entry-card-wrap:hover, .related-entry-card-wrap:hover {
    background-color: #252525 !important;
}
.entry-card-wrap:hover .entry-title, .related-entry-card-wrap:hover .entry-title {
    color: #4da6ff !important;
    text-decoration: underline !important;
}

figure.entry-card-thumb, figure.related-entry-card-thumb {
    display: block !important;
    width: 120px !important;
    min-width: 120px !important;
    flex-shrink: 0 !important;
    margin: 0 15px 0 0 !important;
    position: relative !important;
}
figure.entry-card-thumb img, figure.related-entry-card-thumb img {
    border-radius: 4px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}

.entry-card-content, .related-entry-card-content {
    flex-grow: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}
.entry-title {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
}
.entry-title a {
    color: #ffffff !important;
}

.entry-card-meta, .post-meta, .related-entry-card-meta {
    position: relative !important;
    float: none !important;
    display: block !important;
    margin-top: 5px !important;
}
.post-date {
    font-size: 12px !important;
    color: #888 !important;
}

/* ===================================
   邪魔な情報を完全消去
   =================================== */
/* ★修正：関連記事のスニペットも非表示に追加 */
.entry-snippet, .entry-card-snippet, 
.related-entry-snippet, .related-entry-card-snippet,
.cat-label, .post-update, .read-time, .pv-count, .admin-pv {
    display: none !important;
}

/* ★おまけ：コメント入力ボタンもダーク化 */
#respond input[type="submit"], .comment-btn {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
    padding: 10px !important;
    cursor: pointer;
    transition: 0.2s;
}
#respond input[type="submit"]:hover, .comment-btn:hover {
    background-color: #252525 !important;
}

/* ===================================
   スマホ対応（白飛び対策＆レイアウト調整）
   =================================== */
@media screen and (max-width: 480px) {
    #main, .main {
        background-color: #111111 !important;
    }
    #main, .main, .main a, .entry-title {
        color: #ffffff !important;
    }
    .entry-card-wrap, a.entry-card-wrap,
    .related-entry-card-wrap, a.related-entry-card-wrap {
        padding: 10px !important;
        align-items: flex-start !important;
    }
    figure.entry-card-thumb, figure.related-entry-card-thumb {
        width: 80px !important;
        min-width: 80px !important;
        margin-right: 10px !important;
    }
    .entry-title {
        font-size: 14px !important;
    }
}
/* ===================================
   前後の記事ナビゲーション（Pager）のダーク化
   =================================== */
.pager-post-navi,
.pager-post-navi .a-wrap,
.pager-post-navi a.prev-post,
.pager-post-navi a.next-post {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

/* ホバーした時も白くならないようにする */
.pager-post-navi .a-wrap:hover,
.pager-post-navi a:hover {
    background-color: #1a1a1a !important; /* 他のリストと同じように少し明るくする */
    color: #4da6ff !important;            /* テキストを青く */
}

/* 前後の記事のタイトル（テキスト） */
.pager-post-navi .post-title {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* 「<」や「>」の矢印アイコンの色 */
.pager-post-navi .fa {
    color: #888888 !important;
}
.pager-post-navi a:hover .fa {
    color: #4da6ff !important;
}