@charset "utf-8";

/* =========================================
   人生CSS（Ver.027 - 人気記事カテゴリの色・サイズ統一）
========================================= */

/* =========================================
   1. はてなブログ初期設定のリセット & ベース設定
========================================= */

:root {
    --accent-color: #212121;
}

* {
    box-sizing: border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.8;
    margin: 0;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #333;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important; 
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

a:hover { 
    opacity: 0.6; 
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

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

span.author.vcard { display: none !important; }

a.keyword {
    border: 0 !important;
    text-decoration: none !important;
    color: inherit !important;
    pointer-events: none !important;
    cursor: default !important;
}

#blog-title { display: none !important; }


/* =========================================
   2. 全体レイアウト & 構造 (PC / タブレット / スマホ)
========================================= */

#container { width: 100%; }
#content {
    width: 96%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 0;
}

/* --- PCレイアウト（画面幅1024px以上） --- */
@media (min-width: 1024px) {
    #content-inner {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap !important; 
        justify-content: space-between !important;
        align-items: flex-start !important; 
    }
    
    #wrapper, #content-inner > #main {
        width: 64% !important;
        flex: 0 0 64% !important;     
        max-width: 64% !important;
        min-width: 0 !important;      
        display: block !important;
        box-sizing: border-box !important;
    }
    #wrapper > #main {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: block !important;
    }

    #box2 {
        width: 33% !important;
        flex: 0 0 33% !important;     
        max-width: 33% !important;
        min-width: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
        background-color: #ffffff !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        padding: 30px !important;
    }
}

/* --- タブレット・スマホレイアウト（画面幅1023px以下） --- */
@media (max-width: 1023px) {
    #content-inner, #wrapper, #main, #box2 {
        display: block !important;
        flex: none !important;
    }
    #box2 {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 40px;
        background-color: #ffffff !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        padding: 30px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 767px) {
    body { -webkit-text-size-adjust: 100% !important; }
    #content { padding: 20px 0 !important; }
    #wrapper { padding: 0 10px !important; }
    #box2 { 
        margin: 40px 10px 0 !important; 
        padding: 20px !important;
        width: calc(100% - 20px) !important;
    }
}


/* =========================================
   3. カスタムヘッダー & ロゴ周り
========================================= */

#custom-header-wrapper {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    background-color: var(--accent-color);
    padding: 50px 0; 
    text-align: center;
    margin-bottom: 40px; 
}

.header-logo-link { display: inline-block; }

#custom-header-wrapper svg {
    width: 100%;
    max-width: 800px !important; 
    height: auto !important;
    vertical-align: middle;
}

.header-description {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin: 20px 0 0 0;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    #custom-header-wrapper {
        padding: 30px 0;
        margin-bottom: 25px;
    }
    #custom-header-wrapper svg {
        max-width: 90% !important; 
    }
    .header-description {
        font-size: 12px;
        margin-top: 15px;
    }
}


/* =========================================
   4. アーカイブ＆トップ：不要要素の非表示
========================================= */

.page-index .entry-content,
.page-archive .entry-content,
.page-archive .archive-entry-body,
.page-index .date,
.page-archive .date,
.page-archive .archive-date,
.page-index .entry-footer,
.page-archive .entry-footer,
.page-archive .categories,
.archive-entry .categories,
.archive-entries .categories,
.page-index #main-inner,
.page-index .pager {
    display: none !important;
}

.page-archive #main-inner {
    padding-top: 10px !important;
}

@media (min-width: 1024px) {
    .page-archive #main,
    .archive-entries {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
        justify-content: flex-start !important;
        width: 100% !important; 
    }
    .page-archive .entry,
    .archive-entry {
        width: calc(33.333% - 14px) !important; 
        flex: 0 0 auto !important;
        min-width: 250px !important; 
        margin-bottom: 20px !important;
    }
}

@media (max-width: 767px) {
    .page-archive #main,
    .archive-entries { display: block !important; }
    .page-archive .entry,
    .archive-entry {
        width: 100% !important; 
        margin-bottom: 30px !important;
    }
}

.page-index .entry,
.page-archive .entry,
.archive-entry {
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.entry-thumb-link,
.archive-entry-header .entry-thumb-link {
    order: 1 !important;
    display: block !important;
    width: calc(100% - 20px) !important;
    margin: 10px auto 0 !important;
    border-radius: 6px !important;
    aspect-ratio: 16 / 9 !important; 
    overflow: hidden !important;
    background-color: #eee;
}
.entry-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
}

.entry-header,
.archive-entry-header {
    order: 2 !important;
    padding: 15px !important;
}
.entry-title,
.archive-entry-header .entry-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}
@media (max-width: 767px) {
    .entry-title,
    .archive-entry-header .entry-title,
    .entry-title a {
        font-size: 20px !important; 
        line-height: 1.4 !important;
    }
}


/* =========================================
   5. トップページ：横スクロールカテゴリー表示
========================================= */

#custom-top-page, .category-section {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.category-section { margin-bottom: 50px; }

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}
.category-header h2 {
    position: relative;
    padding: 0.5em 0 0.5em 0.8em;
    color: var(--accent-color);
    font-size: 1.6rem;
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color); 
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}
.category-header h2::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 6px; 
    height: 1.4em;
    background-color: var(--accent-color);
    border-radius: 3px;
}
.category-header .more-link {
    margin-left: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.horizontal-scroll-container {
    display: flex !important;
    flex-wrap: nowrap !important; 
    overflow-x: auto !important;
    gap: 15px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
}

.horizontal-scroll-container::-webkit-scrollbar { height: 8px; }
.horizontal-scroll-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.horizontal-scroll-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.horizontal-card {
    flex: 0 0 220px !important; 
    max-width: 220px !important;
    width: 220px !important;
    min-width: 220px !important; 
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.horizontal-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #eee;
    border-bottom: 1px solid #eee;
}
.horizontal-card-content { padding: 12px; }

.horizontal-card-title {
    font-size: 1.25rem !important; 
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .category-header h2 { font-size: 1.3rem; padding: 0.4em 0 0.4em 0.8em; }
    .category-header .more-link { font-size: 0.8rem; padding-bottom: 8px; }
    .horizontal-card {
        flex: 0 0 160px !important;
        max-width: 160px !important;
        width: 160px !important;
        min-width: 160px !important; 
    }
    .horizontal-card-title { font-size: 1.15rem !important; }
}


/* =========================================
   6. 記事本文ページの設定・装飾
========================================= */

.page-entry #main {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.page-entry .entry-header {
    padding: 0 0 30px;
    text-align: left;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.page-entry .entry-date,
.page-entry .date {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    color: #777 !important;
    background: #f5f5f5 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.05em;
    font-weight: bold;
}
.page-entry .entry-date a { color: #777 !important; }

.page-entry .entry-categories a {
    display: inline-block !important;
    background-color: #fff !important;
    color: var(--accent-color) !important;
    font-weight: bold !important;
    font-size: 12px !important; 
    padding: 3px 10px !important;
    border: 1px solid var(--accent-color) !important; 
    border-radius: 4px !important;
    margin: 0 5px 10px 0 !important;
    box-sizing: border-box !important;
}
.page-entry .entry-categories a:hover {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    opacity: 1 !important;
}

.page-entry .entry-title {
    font-size: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}
.page-entry .entry-content {
    padding: 0;
    font-size: 18px !important;
    line-height: 1.9 !important;
    color: #333 !important;
}
.page-entry .entry-content p { margin-bottom: 2em; }
.page-entry .entry-content blockquote {
    border-left: 5px solid #ddd;
    padding-left: 20px;
    margin: 30px 0;
    color: #666;
    font-style: italic;
}

@media (max-width: 767px) {
    .page-entry .entry-content,
    .page-entry .entry-content p {
        font-size: 18px !important; 
        line-height: 2.0 !important; 
    }
}

/* --- 記事内見出し（h2, h3, h4） --- */
.entry-content h2 {
    position: relative;
    padding: 0.5em 0 0.5em 0.8em;
    color: var(--accent-color) !important;
    font-size: 1.6rem !important;
    font-weight: bold;
    border-bottom: 4px solid var(--accent-color) !important; 
    margin: 60px 0 30px !important;
    line-height: 1.4;
}
.entry-content h2::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 6px; 
    height: 1.4em;
    background-color: var(--accent-color) !important;
    border-radius: 3px;
}

.entry-content h3 {
    position: relative;
    padding: 0.4em 0 0.4em 0.8rem !important;
    color: var(--accent-color) !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #eaeaea !important; 
    margin: 50px 0 25px !important;
    line-height: 1.4;
}
.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 6px;
    height: 1.4em;
    background-color: var(--accent-color) !important;
    border-radius: 3px !important; 
}

.entry-content h4 {
    padding: 0.2em 0 0.2em 1.2rem !important;
    color: var(--accent-color) !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    margin: 40px 0 20px !important;
    position: relative;
    border: none !important; 
}
.entry-content h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px !important;
    height: 8px !important;
    background-color: var(--accent-color) !important;
    border-radius: 50% !important; 
}

/* ★パンくずリスト */
.breadcrumb {
    font-size: 13px !important;
    color: #888 !important;
    padding: 10px 15px !important;
    background: #fff !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
}
.breadcrumb a {
    color: #555 !important;
    text-decoration: underline !important;
    text-decoration-color: #ccc !important;
}
.page-entry .breadcrumb { display: none !important; }


/* =========================================
   7. 前の記事・次の記事 ページャー
========================================= */
.page-entry .pager {
    display: flex !important;
    justify-content: space-between;
    gap: 15px;
    margin: 50px 0;
    padding: 0;
}
.page-entry .pager a {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.page-entry .pager .pager-prev a::before {
    content: "« 前の記事";
    font-size: 12px;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}
.page-entry .pager .pager-next a::before {
    content: "次の記事 »";
    font-size: 12px;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    text-align: right;
}
.page-entry .pager .pager-next a {
    text-align: right;
}
.page-entry .pager a:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}


/* =========================================
   8. 関連記事（記事下部用：サムネイル左・タイトル右・下段カテゴリ）
========================================= */
#main .hatena-module-related-entries {
    margin-top: 50px;
}
#main .hatena-module-related-entries .urllist-snippet {
    display: none !important;
}
#main .hatena-module-related-entries .urllist-item {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #eaeaea !important;
}

#main .hatena-module-related-entries .urllist-item-inner {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    align-items: stretch !important;
    width: 100% !important;
}

#main .hatena-module-related-entries .urllist-image {
    flex: 0 0 160px !important;
    margin: 0 !important;
}
#main .hatena-module-related-entries .urllist-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

#main .hatena-module-related-entries .urllist-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 !important;
    min-width: 0 !important; 
}
#main .hatena-module-related-entries .urllist-title-link {
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
}

/* JSで追加したカテゴリラベル（記事下用） */
#main .related-category-wrapper {
    margin-top: auto !important; 
    width: 100% !important;
    text-align: left !important;
}
#main .related-category-wrapper a {
    display: block !important;
    background-color: transparent !important;
    color: #666 !important;
    font-size: 12px !important;
    font-weight: normal !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    border: none !important;
}

@media (max-width: 767px) {
    #main .hatena-module-related-entries .urllist-item-inner {
        gap: 10px !important;
    }
    #main .hatena-module-related-entries .urllist-image {
        flex: 0 0 120px !important; 
    }
    #main .hatena-module-related-entries .urllist-title-link {
        font-size: 14px !important;
    }
}


/* =========================================
   9. コメント欄＆ブックマークコメント
========================================= */

.comment-box {
    margin-top: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.comment-box ul { padding: 0; }
.comment { 
    margin-bottom: 20px; 
    padding-bottom: 20px; 
    border-bottom: 1px dashed #ddd; 
}
.comment-user-name { font-weight: bold; color: var(--accent-color); }
.comment-content { font-size: 15px; margin-top: 10px; line-height: 1.6; }

.comment-box ul, .comment-box li,
.bookmark-comments ul, .bookmark-comments li,
#bkmk-comments ul, #bkmk-comments li {
    list-style: none !important;
}
.comment-box li::before,
.bookmark-comments li::before,
#bkmk-comments li::before {
    content: none !important;
    display: none !important;
}

.leave-comment-title {
    display: inline-block;
    background: var(--accent-color) !important;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: 1px solid transparent !important; 
    box-sizing: border-box !important;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease !important;
}
.leave-comment-title:hover { 
    background: #fff !important; 
    color: var(--accent-color) !important; 
    opacity: 1 !important;
    border: 1px solid var(--accent-color) !important; 
}

#bbookmark-wrapper, .bookmark-comments, #bkmk-comments {
    margin-top: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


/* =========================================
   10. サイドバー & モジュール全般
========================================= */

.hatena-module {
    background: transparent !important; 
    padding: 0 !important; 
    margin-bottom: 50px !important; 
    border-radius: 0 !important;
    box-shadow: none !important; 
    border: none !important;
}
.hatena-module:last-child { margin-bottom: 0 !important; }

.hatena-module-body { margin-top: 20px !important; }

.hatena-module-title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #212121 !important;
    margin-bottom: 0 !important; 
    padding: 0 0 8px 0 !important;
    border: none !important;
    border-bottom: 2px solid var(--accent-color) !important; 
    border-radius: 0 !important; 
    line-height: 1.4 !important;
    background-color: transparent !important;
    letter-spacing: 0.05em;
}

/* サイドバー内の文字サイズ */
.hatena-module-body,
.hatena-module-body p,
.custom-profile-module p,
.custom-sponsor-module p,
.custom-youtube-module p,
.custom-bookmark-module p {
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.hatena-module-body a,
.urllist-title-link,
.recent-entries-title-link,
.recent-comments-title-link {
    font-size: 14px !important;
    font-weight: bold !important;
    transition: opacity 0.3s ease !important;
}

.hatena-module-category .hatena-urllist li a,
.hatena-urllist li a {
    font-weight: normal !important; 
}

.hatena-module-body a:hover,
.hatena-urllist li a:hover,
.urllist-title-link:hover,
.recent-entries-title-link:hover,
.recent-comments-title-link:hover {
    opacity: 0.6 !important;
}

.hatena-module ul,
.hatena-module li,
.hatena-urllist li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.hatena-module li::before,
.hatena-urllist li::before {
    content: none !important;
    display: none !important;
}
.hatena-urllist li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}
.hatena-module li a {
    display: inline-block;
    padding: 2px 0;
}


/* -----------------------------------------
   ★ 新着記事 ＆ サイドバー「こちらの記事もどうぞ」
   （サムネイルなし、左寄せ、カテゴリを下に表示）
----------------------------------------- */
.hatena-module-custom-newcontents .urllist-item,
.hatena-module-custom-othercontents .urllist-item {
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px dotted #ccc !important;
}
.hatena-module-custom-newcontents .urllist-item-inner,
.hatena-module-custom-othercontents .urllist-item-inner {
    display: grid !important;
    grid-template-columns: 1fr !important; 
    gap: 4px 0 !important; 
    align-items: start !important;
}

.hatena-module-custom-newcontents .urllist-image,
.hatena-module-custom-othercontents .urllist-image {
    display: none !important;
}

.hatena-module-custom-newcontents .urllist-title-link,
.hatena-module-custom-othercontents .urllist-title-link {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important;
    text-align: left !important;
    font-weight: bold !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #333 !important;
}

.hatena-module-custom-newcontents .categories,
.hatena-module-custom-othercontents .categories,
.hatena-module-custom-newcontents .related-category-wrapper,
.hatena-module-custom-othercontents .related-category-wrapper {
    grid-column: 1 / 2 !important; 
    grid-row: 2 / 3 !important;
    margin: 4px 0 0 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important; 
}

.hatena-module-custom-newcontents .categories a,
.hatena-module-custom-othercontents .categories a,
.hatena-module-custom-newcontents .related-category-wrapper a,
.hatena-module-custom-othercontents .related-category-wrapper a {
    font-weight: normal !important; 
    font-size: 11px !important;     
    color: #666 !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: opacity 0.3s ease !important;
}

.hatena-module-custom-newcontents .categories a:hover,
.hatena-module-custom-othercontents .categories a:hover,
.hatena-module-custom-newcontents .related-category-wrapper a:hover,
.hatena-module-custom-othercontents .related-category-wrapper a:hover {
    background-color: transparent !important;
    color: var(--accent-color) !important;
    opacity: 0.6 !important;
    border: none !important;
}

/* アイコン等の余計な要素を全て完全に消去 */
.hatena-module-custom-newcontents .categories a::before,
.hatena-module-custom-othercontents .categories a::before,
.hatena-module-custom-newcontents .related-category-wrapper a::before,
.hatena-module-custom-othercontents .related-category-wrapper a::before,
.hatena-module-custom-othercontents .bookmark-count,
.hatena-module-custom-othercontents .urllist-bookmark-count,
.hatena-module-custom-othercontents img.b-icon {
    content: none !important;
    display: none !important;
}


/* -----------------------------------------
   ★ 新着コメント
----------------------------------------- */
.hatena-module-custom-newcomment a,
.hatena-module-recent-comments a,
.hatena-module-custom-newcomment .hatena-urllist a,
.hatena-module-recent-comments .hatena-urllist a {
    font-weight: bold !important;
    text-decoration: none !important;
    display: inline-block; 
    margin-bottom: 5px;
    color: #333 !important;
}


/* -----------------------------------------
   ★ メディア掲載
----------------------------------------- */
.hatena-module-custom-medialink .hatena-module-body a {
    font-weight: bold !important;
    text-decoration: none !important;
}


/* -----------------------------------------
   カテゴリーから探す（ボタン・ホバー色反転）
----------------------------------------- */
.hatena-module-custom-Category02 .hatena-urllist {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
}
.hatena-module-custom-Category02 .hatena-urllist li {
    border-bottom: none !important;
    padding: 0 !important;
    width: auto !important;
}
.hatena-module-custom-Category02 .hatena-urllist li a {
    display: inline-block !important;
    background-color: #fff !important;
    color: var(--accent-color) !important;
    font-weight: bold !important;
    padding: 6px 14px !important;
    box-sizing: border-box !important;
    border: 1px solid var(--accent-color) !important; 
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}
.hatena-module-custom-Category02 .hatena-urllist li a:hover {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    opacity: 1 !important;
    border: 1px solid var(--accent-color) !important; 
}
.hatena-module-custom-Category02 .hatena-urllist li a .category-count {
    font-size: 10px !important;
    margin-left: 4px !important;
}


/* -----------------------------------------
   人気記事トップ10（カテゴリー幅いっぱい）
----------------------------------------- */
.hatena-module-entries-access-ranking .urllist-item,
.hatena-module-custom-top10 .urllist-item {
    margin-bottom: 12px !important; 
    padding-bottom: 12px !important; 
    border-bottom: 1px solid #eaeaea !important;
}
.hatena-module-entries-access-ranking .urllist-item-inner,
.hatena-module-custom-top10 .urllist-item-inner {
    display: grid !important;
    grid-template-columns: 85px 1fr !important; 
    gap: 4px 12px !important; 
    align-items: start !important;
}
.hatena-module-entries-access-ranking .urllist-image,
.hatena-module-custom-top10 .urllist-image {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin: 0 !important;
}
.hatena-module-entries-access-ranking .urllist-image img,
.hatena-module-custom-top10 .urllist-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    aspect-ratio: 16 / 9 !important;
}
.hatena-module-entries-access-ranking .urllist-content,
.hatena-module-custom-top10 .urllist-content {
    display: contents !important; 
}
.hatena-module-entries-access-ranking .urllist-title-link,
.hatena-module-custom-top10 .urllist-title-link {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-weight: bold !important;
    font-size: 14px !important; 
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.hatena-module-entries-access-ranking .categories,
.hatena-module-custom-top10 .categories {
    grid-column: 1 / 3 !important; 
    grid-row: 2 / 3;
    margin: 4px 0 0 0 !important;
    display: block !important;
}
.hatena-module-entries-access-ranking .categories a,
.hatena-module-custom-top10 .categories a {
    display: block !important;
    text-align: center !important;
    background-color: transparent !important;
    color: #666 !important;
    font-size: 11px !important; 
    font-weight: normal !important;
    padding: 4px 0 !important;
    border-radius: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    border: none !important; 
    transition: all 0.3s ease !important;
}
.hatena-module-entries-access-ranking .categories a:hover,
.hatena-module-custom-top10 .categories a:hover {
    background-color: transparent !important;
    color: var(--accent-color) !important;
    opacity: 0.6 !important;
    border: none !important; 
}


/* -----------------------------------------
   サイドバー：プロフィールデザイン
----------------------------------------- */
.profile-icon {
    text-align: center;
    margin-bottom: 20px;
}
.profile-icon svg {
    width: 100px;
    height: 100px;
}
.profile-name {
    font-size: 16px !important;
    font-weight: bold !important;
    text-align: center !important;
    margin: 10px 0 25px !important;
    color: #333 !important;
}

.custom-profile-module { color: #333 !important; }
.custom-profile-module p { margin-bottom: 1.5em !important; }

.custom-profile-sns {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin-top: 20px;
}
.custom-profile-sns .sns-catch {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px !important;
}
.custom-profile-sns .sns-sub {
    font-size: 11px !important; 
    color: #666;
    margin-bottom: 0 !important;
}

.sns-btn-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}
.sns-btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px !important;
    font-weight: bold;
    color: #fff !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    border: 1px solid transparent !important; 
    transition: all 0.3s ease !important;
}

.sns-btn.hatena,
.sns-btn.contact-btn { 
    background-color: var(--accent-color) !important; 
    border-color: var(--accent-color) !important;
}
.sns-btn.hatena:hover,
.sns-btn.contact-btn:hover {
    background-color: #fff !important;
    color: var(--accent-color) !important;
    opacity: 1 !important;
    border: 1px solid var(--accent-color) !important; 
}

.sns-btn.x-twitter { background-color: #000 !important; border-color: #000 !important; }
.sns-btn.x-twitter:hover {
    background-color: #fff !important;
    color: #000 !important;
    opacity: 1 !important;
    border: 1px solid #000 !important;
}

.sns-btn.yt { background-color: #ff0000 !important; border-color: #ff0000 !important; }
.sns-btn.yt:hover {
    background-color: #fff !important;
    color: #ff0000 !important;
    opacity: 1 !important;
    border: 1px solid #ff0000 !important;
}

.sns-btn.insta { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; 
    border-color: #cc2366 !important; 
}
.sns-btn.insta:hover {
    background: #fff !important;
    color: #cc2366 !important;
    opacity: 1 !important;
    border: 1px solid #cc2366 !important;
}
.sns-btn.contact-btn { padding: 10px 25px; font-size: 14px !important; }


/* -----------------------------------------
   ★ サイドバー：他サイト＆YouTubeデザイン
----------------------------------------- */
.youtube-banner-area,
.othersite-banner-area {
    padding: 15px 0;
    text-align: center;
}
.youtube-channel-name {
    font-size: 14px !important; 
    font-weight: bold !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}
.othersite-banner-area a {
    display: block !important;
    text-align: center !important;
}

.custom-othersite-module svg {
    display: block !important;
    width: 100% !important;
    max-width: 250px !important;
    height: auto !important;
    margin: 0 auto !important;
}
.custom-othersite-module svg path,
.custom-othersite-module svg rect,
.custom-othersite-module svg polygon,
.custom-othersite-module svg circle {
    fill: #111111 !important;
}

.youtube-ad-area { padding: 10px 0; }


/* -----------------------------------------
   検索ボックスのデザイン＆ボタン色反転
----------------------------------------- */
.hatena-module-search-box .search-form {
    display: flex !important;
    width: 100% !important;
}
.hatena-module-search-box .search-module-input {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px 0 0 4px !important;
    outline: none !important;
}
.hatena-module-search-box .search-module-input:focus {
    border-color: var(--accent-color) !important;
}
.hatena-module-search-box .search-module-button {
    padding: 0 20px !important;
    font-size: 16px !important;
    background-color: var(--accent-color) !important;
    color: #fff !important;
    box-sizing: border-box !important;
    border: 1px solid var(--accent-color) !important;
    border-radius: 0 4px 4px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
.hatena-module-search-box .search-module-button:hover {
    background-color: #fff !important;
    color: var(--accent-color) !important;
    opacity: 1 !important;
    border: 1px solid var(--accent-color) !important;
}


/* =========================================
   11. ボタン等へのホバー透過・装飾「無効化」処理
========================================= */
.horizontal-card:hover,
.sns-btn:hover,
.page-archive .entry:hover,
.archive-entry:hover,
.header-logo-link:hover,
.footer-logo-svg a:hover,
.page-entry .entry-categories a:hover,
.hatena-module-entries-access-ranking .categories a:hover,
.hatena-module-custom-top10 .categories a:hover,
.hatena-module-custom-Category02 .hatena-urllist li a:hover,
.hatena-module-search-box .search-module-button:hover,
.leave-comment-title:hover {
    opacity: 1 !important;
    text-decoration: none !important;
}


/* =========================================
   12. カスタムフッター
========================================= */
#footer, .footer-address { display: none !important; }

#custom-footer-wrapper {
    width: 100vw !important; 
    margin-left: calc(50% - 50vw) !important;
    background-color: var(--accent-color);
    color: #cccccc;
    padding: 60px 0 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 100;
}

.custom-footer-container {
    max-width: 1200px;
    width: 94%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 50px;
}
.footer-column { flex: 1; min-width: 250px; }

.footer-tagline {
    width: 100% !important;
    text-align: center !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 40px !important;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-svg { margin-bottom: 20px; display: inline-block; }
.footer-logo-svg svg {
    width: 100%;
    max-width: 300px !important; 
    height: auto !important;
    display: block;
}
.footer-logo-svg svg path,
.footer-logo-svg svg circle,
.footer-logo-svg svg rect,
.footer-logo-svg svg polygon,
.footer-logo-svg svg ellipse {
    fill: #ffffff !important;
}

.footer-description { line-height: 1.8; opacity: 0.8; }
.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #cccccc;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: #ffffff !important; 
    transform: translateX(5px);
    opacity: 1 !important; 
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 25px 0;
    font-size: 0.8rem;
    color: #999999;
    background-color: #1a1a1a;
}
.footer-copyright p { margin: 0; }

@media (max-width: 767px) {
    .custom-footer-container { flex-direction: column; gap: 30px; }
    .footer-column { width: 100%; text-align: left; }
    .footer-heading { margin-bottom: 15px; }
    .footer-tagline { font-size: 1rem !important; margin-bottom: 30px !important; }
    .footer-logo-svg svg { max-width: 200px !important; }
}

/* =========================================
   13. はてな・Google 自動配置広告の保護設定
========================================= */
.google-auto-placed,
ins.adsbygoogle {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 20px auto !important;
    clear: both !important;
    display: block !important;
    overflow: hidden !important;
}

/* =========================================
   14. Google AdSense 手動配置用余白
========================================= */
.GoogleAd { margin-bottom: 10px !important; }