@charset "utf-8";
/* =========================================
   皆んなの役に立ちたい｜NEWSと雑学【CSS】（Ver.009）
========================================= */

/* =========================================
   0. 【コメント削除しない！】 AdSense手動
========================================= */
/* 手動で挿入したGoogle AdSense広告の上下の余白（隙間）を設定 */
.googleAD {
    padding-top: 10px;    /* 上の余白 */
    padding-bottom: 10px; /* 下の余白 */
}

/* =========================================
   1. はてな特有のテキストタイトル・不要要素を【完全非表示】
========================================= */
/* 邪魔になるはてなブログのデフォルト要素をすべて消去 */
#blog-title, #title-editarea, h1#title, .header-title-inner,
.header-image-enable h1#title, .hatena-notify, .hatena-system-notice, 
.system-notice-container, .hatena-message-frame {
    display: none !important; font-size: 0 !important; opacity: 0 !important;
    height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important;
}
body .leave-comment-title, body .comment-box, body .hatena-star-container,
body .hatena-star-star-container, body .social-buttons, body .hatena-module-profile,
body #globalheader-container, body .entry-footer .author, body .entry-footer-time,
body .entry-footer .date, body.page-index #main-inner, body .entry-thumb,
body .entry-thumb-link, body .urllist-image, body .page-archive .entry-feature-wrapper,
body .entry-content img {
    display: none !important;
}
.mobile-only-search, .sp-only { 
    display: none !important; 
}

/* =========================================
   2. ベースリセット ＆ 基本フォント設定
========================================= */
html, body {
    width: 100% !important; max-width: 100% !important; height: auto !important;
}
* { 
    margin: 0; padding: 0; box-sizing: border-box; 
}
body {
    color: #000000;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5; /* サイト全体の背景色 */
    letter-spacing: 0.03em;
}
a { 
    color: #000000; text-decoration: none; transition: all 0.3s ease; 
}

/* =========================================
   3. PCレイアウト構成（メインとサイドバー）
========================================= */
body #container, body #content, body #content-inner, body #wrapper, body #main, body #box2 {
    overflow: visible !important;
}
.entry { margin-bottom: 40px; }
body #container { width: 100% !important; max-width: 100% !important; }
body #content { width: 92% !important; max-width: none !important; margin: 40px auto; }
body #content-inner { 
    display: flex !important; flex-direction: row-reverse !important; justify-content: space-between !important; 
    align-items: flex-start !important; width: 100% !important; 
}
body #wrapper { 
    width: 74% !important; background-color: #ffffff; padding: 30px; float: none !important; margin-top: 0 !important; 
}
body #box2 { 
    width: 24% !important; float: none !important; margin-top: 0 !important; 
}

/* =========================================
   4. ヘッダーロゴ ＆ スプラッシュロゴ調整
========================================= */
.custom-header svg,
.sp-logo-area svg { 
    width: 100% !important; max-width: none !important; height: auto !important; 
    display: block !important; visibility: visible !important; opacity: 1 !important;
    transition: opacity 0.3s ease; 
}
a.header-logo-link:hover svg { opacity: 0.7; }

/* フッターロゴの完全撤廃 */
#custom-footer .footer-logo-wrapper { 
    display: none !important; 
}

/* =========================================
   4.2 PC用 新グローバルヘッダー（黒帯）
========================================= */
#pc-global-header {
    background-color: #212121; /* ダークグレーの黒帯 */
    color: #ffffff;
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1050; 
}
.pc-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 92%;
    margin: 0 auto;
    padding: 12px 0; 
}
.pc-header-logo {
    width: 260px; 
}
.pc-header-logo svg {
    width: 100%;
    height: auto;
    display: block;
    filter: invert(1); /* 枠線と雑の文字を綺麗に白黒反転 */
    transition: opacity 0.3s ease;
}
.pc-header-logo a:hover svg {
    opacity: 0.7;
}

/* PC用ナビゲーションメニュー */
.pc-header-nav .pc-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px; 
    align-items: center;
}
.pc-header-nav .pc-nav-list > li {
    position: relative; 
}
.pc-header-nav .pc-nav-list > li > a {
    display: block;
    padding: 15px 0; 
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}
.pc-header-nav .pc-nav-list > li > a:hover {
    opacity: 0.6; 
}
.pc-header-nav .pc-nav-list li.has-child > a::after {
    content: "▼";
    font-size: 0.6em;
    margin-left: 6px;
    color: #aaaaaa;
    vertical-align: middle;
}

/* PC用プルダウンメニュー */
.pc-sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #212121; 
    border-top: 3px solid #ffffff; 
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1060;
}
.pc-header-nav .pc-nav-list li.has-child:hover .pc-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.pc-sub-menu li {
    border-bottom: 1px solid #333333;
}
.pc-sub-menu li:last-child {
    border-bottom: none;
}
.pc-sub-menu li a {
    display: block;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}
.pc-sub-menu li a:hover {
    background: #333333; 
    opacity: 1 !important;
}

/* =========================================
   4.5 旧グローバルナビ（スマホ用の土台として維持）
========================================= */
#global-nav {
    position: -webkit-sticky; position: sticky; top: 0; width: 92% !important; margin: 20px auto 0 !important;
    background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); border-bottom: 1px solid #dddddd;
    z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.nav-inner { width: 100%; margin: 0 auto; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; width: 100%; align-items: center; }
.nav-item { position: relative; flex: 1; display: flex; }
.nav-item > a {
    display: flex; align-items: center; justify-content: center; width: 100%; padding: 15px 5px; 
    font-size: 0.9rem; font-weight: bold; color: #111111; text-decoration: none !important; transition: opacity 0.3s ease; height: 100%;
}
.nav-item > a:hover { opacity: 0.6; }
.nav-item:not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 14px; background-color: #dddddd; 
}
.nav-icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: middle; }
.nav-item.has-child > a::after {
    content: "▼"; font-size: 0.6em; margin-left: 6px; color: #888888; transition: transform 0.3s ease;
}
.sub-menu {
    position: absolute; top: 100%; left: -1px; width: 240px; background: #ffffff; border: 1px solid #dddddd;
    border-top: 2px solid #111111; box-shadow: 0 4px 10px rgba(0,0,0,0.08); list-style: none; padding: 0; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 1001;
}
.nav-item.has-child:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li { border-bottom: 1px solid #eeeeee; margin: 0; }
.sub-menu li:last-child { border-bottom: none; }
.sub-menu li a {
    display: block; padding: 12px 20px; color: #111111; font-size: 0.9rem; font-weight: bold;
    text-decoration: none !important; transition: background 0.3s ease; justify-content: flex-start;
}
.sub-menu li a:hover { background: #f5f5f5; opacity: 0.8; }
#nav-toggle { display: none; }

/* =========================================
   4.8 キャッチフレーズ ＆ 無限横スクロール
========================================= */
#hero-area {
    width: 100%;
    background-color: #ffffff;
    padding-bottom: 30px;
    overflow: hidden; 
}
#custom-catchphrase {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #212121; 
    padding: 30px 15px 20px 15px;
    margin: 0;
    letter-spacing: 0.1em;
    user-select: none; 
    -webkit-user-select: none;
}
#marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex; 
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 25s linear infinite; 
    will-change: transform; 
}
.marquee-track:hover {
    animation-play-state: paused; 
}
.marquee-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 100px;
    margin: 0 10px; /* ここを含めて1個あたりピッタリ240pxになります */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    flex-shrink: 0; 
    transform: translateZ(0); 
}
.marquee-item:hover {
    transform: translateY(-4px); 
}
.news-style { background-color: #5599ff; }
.trivia-style { background-color: #ffcc00; }

.item-text {
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    font-weight: bold;
    text-align: center;
    padding: 0 15px;
    line-height: 1.3;
    white-space: normal; 
}
.news-style .item-text { color: #ffffff; }
.trivia-style .item-text { color: #212121; }

.bg-mark {
    position: absolute;
    right: -5px;
    bottom: -15px;
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.15; 
    z-index: 1;
    pointer-events: none; 
}
.news-style .bg-mark { color: #ffffff; }
.trivia-style .bg-mark { color: #ffffff; }

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    /* 1セット分の正確なピクセル幅（8個×240px=1920px）を移動させ、無駄なくループさせる完璧な計算式 */
    100% { transform: translateX(-1920px); } 
}
.custom-sp-search { display: none; }


/* =========================================
   5. ★完全新規★ 新トップページ（記事一覧）デザイン
========================================= */
#custom-top-page.new-top-layout {
    width: 100%;
    margin-top: 20px;
}

/* --- カテゴリタブ（上部の横並びメニュー） --- */
.top-category-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 3px solid #212121; /* 黒い太線 */
    padding-bottom: 10px;
    margin-bottom: 40px;
    list-style: none;
    overflow-x: auto; /* スマホで横スクロール可能に */
    white-space: nowrap;
}
.top-category-tabs .tab-item {
    padding: 8px 22px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 30px; /* カプセル型 */
    color: #212121;
    transition: all 0.3s ease;
}
/* アクティブなタブ（黒背景・白文字） */
.top-category-tabs .tab-item.active {
    background-color: #212121;
    color: #ffffff;
}
.top-category-tabs .tab-item:not(.active):hover {
    background-color: #e0e0e0;
}

/* --- 2カラムレイアウト（左：メイン、右：サイドバー） --- */
.top-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}
.top-main-column {
    width: 65%; /* 左側の幅 */
}
.top-side-column {
    width: 32%; /* 右側の幅 */
}

/* --- セクションヘッダー（見出し部分） --- */
.section-header, .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 15px;
}
.section-header h2, .widget-header h3 {
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #111111;
}
.crown-icon { font-size: 1.5rem; }
.more-link {
    font-size: 0.85rem;
    font-weight: bold;
    color: #666666;
    text-decoration: none;
}
.more-link:hover { color: #111111; }

/* --- 左側：人気記事リスト --- */
.popular-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.popular-item {
    display: flex;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px solid #eeeeee;
    gap: 20px;
}
.popular-item:first-child { padding-top: 0; }

/* 1～3位の六角形バッジ */
.rank-hexagon {
    width: 55px;
    height: 60px;
    background-color: #333333;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); /* 六角形に切り抜く魔法 */
    flex-shrink: 0;
}

/* 4～6位の通常数字 */
.rank-normal {
    width: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #111111;
    flex-shrink: 0;
}

/* 記事の詳細部分 */
.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.item-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: #111111;
    line-height: 1.5;
    text-decoration: none !important;
}
.item-title:hover { opacity: 0.6; }
.item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}
.item-cat {
    background-color: #333333;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}
.item-date {
    color: #aaaaaa;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* 4～6位のデザイン（画像のように1行に横並びさせる） */
.popular-item:nth-child(n+4) {
    align-items: center;
    padding: 15px 0;
}
.popular-item:nth-child(n+4) .item-details {
    flex-direction: row; /* 横並びに変更 */
    align-items: center;
    justify-content: space-between;
}
.popular-item:nth-child(n+4) .item-title {
    font-size: 0.95rem; /* 少し小さく */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 長いタイトルは「…」で省略 */
    flex: 1;
    margin-right: 20px;
}

/* --- 右側：サイドバーウィジェット --- */
.side-widget {
    background-color: #f7f7f7; /* 薄いグレーの背景 */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.pickup-badge {
    background-color: #212121;
    color: #ffffff;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    transform: skew(-10deg); /* ピックアップの斜めバッジ */
    display: inline-block;
    letter-spacing: 1px;
}

/* ピックアップリスト */
.pickup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pickup-list li {
    border-bottom: 1px dashed #dddddd;
    padding: 15px 0;
}
.pickup-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.pickup-list a {
    font-size: 0.95rem;
    font-weight: bold;
    color: #111111;
    line-height: 1.5;
}
.pickup-list a:hover { opacity: 0.6; }

/* カテゴリ別ランキングリスト */
.category-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-rank-list li {
    border-bottom: 1px dashed #dddddd;
}
.category-rank-list li:last-child {
    border-bottom: none;
}
.category-rank-list a {
    display: flex;
    align-items: center;
    padding: 15px 0;
    gap: 15px;
    transition: transform 0.3s ease;
}
.category-rank-list a:hover {
    transform: translateX(5px); /* ホバーで少し右へ動く */
    opacity: 0.8;
}
.cat-rank-num {
    width: 24px;
    height: 24px;
    background-color: #212121;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}
.cat-rank-texts {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}
.cat-name {
    font-weight: bold;
    font-size: 0.95rem;
    width: 90px; /* カテゴリ名を固定幅にして説明文の開始位置を揃える */
}
.cat-desc {
    font-size: 0.75rem;
    color: #666666;
}
.cat-arrow {
    font-weight: bold;
    color: #aaaaaa;
}

/* =========================================
   6. 記事ページ＆サイドバー（その他共通モジュール）
========================================= */
/* PCサイドバーの白箱デザイン */
.sidebar-box { 
    background-color: #ffffff !important; 
    padding: 30px 25px !important; 
    margin-bottom: 25px !important; 
    border: none !important; 
    box-shadow: none !important; 
    border-radius: 0 !important; 
}
#box2 .hatena-module-title { 
    font-size: 1.3rem; border-left: 4px solid #111111; padding-left: 10px; 
    font-weight: bold; color: #000000; margin-top: 10px; margin-bottom: 25px; 
}

/* ======== 記事ページ（詳細画面）のデザイン ======== */
.entry-date { display: block; margin-bottom: 15px; }
.entry-date a { display: inline-block; font-size: 0.8rem; color: #888888; letter-spacing: 1.5px; padding-bottom: 2px; border-bottom: 1px solid #dddddd; }
.entry-date a:hover { color: #111111; border-color: #111111; }
.entry-date a::before { content: "DATE: "; font-size: 0.75rem; color: #aaaaaa; }
header.entry-header .entry-title { margin-bottom: 15px; }
.entry-categories { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 15px; margin-bottom: 20px; }
.hatena-module-category .hatena-module-body ul { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0; }
.hatena-module-category .hatena-module-body li { margin: 0; }
.hatena-module-category .hatena-module-body li a, .entry-categories a { 
    display: block; background-color: #111111; color: #ffffff; padding: 4px 14px; border-radius: 4px; font-size: 0.8rem; border: 1px solid #111111; margin: 0; 
}
.hatena-module-category .hatena-module-body li a:hover, .entry-categories a:hover { 
    background-color: #ffffff; color: #111111; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

/* 記事本文の余白と行間を最適化 */
.entry-content p { line-height: 1.9; margin-bottom: 2em; font-size: 16px; }
.entry-content ul:not(.table-of-contents), .entry-content ol { padding-left: 1.5em; margin-left: 0.5em; margin-bottom: 2.5em; }
.entry-content ul:not(.table-of-contents) li, .entry-content ol li { line-height: 1.8; margin-bottom: 0.8em; font-size: 16px; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { color: #000000; line-height: 1.5; font-weight: bold; }
.entry-content h2 { margin: 3.5em 0 1em; font-size: 1.5rem; border-bottom: 2px solid #000000; padding-bottom: 0.5em; }
.entry-content h3 { margin: 4em 0 1.2em; font-size: 1.3rem; border-left: 4px solid #111111; padding-left: 10px; }
.entry-content h4 { margin: 3em 0 1em; font-size: 1.1rem; border-bottom: 1px solid #252525; padding-bottom: 0.5em; }
.entry-content { word-break: break-word; overflow-wrap: break-word; }
.entry-content table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content img, .entry-content iframe, .entry-content pre { max-width: 100%; height: auto; }
.entry-content pre { white-space: pre-wrap; overflow-x: auto; }

/* ======== 記事内テキスト装飾・ボックスUI ======== */
.marker-yellow { background: linear-gradient(transparent 60%, #ffff66 40%); font-weight: bold; }
.voice-box { background-color: #f0f0f0; padding: 20px 25px; border-radius: 8px; position: relative; margin: 2.5em 0; font-size: 0.95rem; color: #333333; line-height: 1.8; }
.voice-box::after { content: ""; position: absolute; bottom: -10px; left: 30px; border-width: 10px 10px 0 10px; border-style: solid; border-color: #f0f0f0 transparent transparent transparent; }
.voice-box::before { content: "VOICE"; display: block; font-size: 0.75rem; font-weight: bold; color: #888888; margin-bottom: 10px; letter-spacing: 1px; }
.voice-box p { margin-bottom: 0 !important; }
.action-box { background-color: #ffffff; border-left: 5px solid #111111; box-shadow: 0 4px 15px rgba(0,0,0,0.06); padding: 25px; margin: 3.5em 0; }
.action-box-title { font-size: 1.1rem; font-weight: bold; color: #111111; border-bottom: 1px dashed #dddddd; padding-bottom: 12px; margin-bottom: 18px; display: flex; align-items: center; }
.action-box-title::before { content: "?"; margin-right: 8px; font-size: 1.2rem; }
.action-box p:last-child, .action-box ul:last-child { margin-bottom: 0 !important; }

/* ======== 記事ページ内の目次 ======== */
.entry-content .table-of-contents { background-color: #f9f9f9; border: 1px solid #dddddd; border-radius: 4px; padding: 20px 25px; margin: 10px 0 10px 0; list-style-type: none; }
.entry-content .table-of-contents::before { content: "目次"; display: block; font-size: 1.1rem; font-weight: bold; color: #111111; border-bottom: 2px solid #111111; padding-bottom: 5px; margin-bottom: 15px; }
.entry-content .table-of-contents li { margin-bottom: 10px; font-size: 0.95rem; font-weight: bold; line-height: 1.5; }
.entry-content .table-of-contents li:last-child { margin-bottom: 0; }
.entry-content .table-of-contents li a { color: #111111; text-decoration: none; position: relative; padding-left: 1.2em; display: inline-block; }
.entry-content .table-of-contents li a:hover { opacity: 0.6; }
.entry-content .table-of-contents li a::before { content: "＞"; position: absolute; left: 0; top: 0; color: #aaaaaa; font-size: 0.8em; }
.entry-content .table-of-contents ul { list-style-type: none; padding-left: 20px; margin-top: 5px; margin-bottom: 0; }
.entry-content .table-of-contents ul li { font-weight: normal; font-size: 0.9rem; margin-bottom: 8px; }

/* ======== サイドバーモジュール全般 ======== */
.hatena-module-search-box .hatena-module-title { display: none !important; } 
.hatena-module .hatena-module-body ul { list-style: none; padding-left: 0; }
.hatena-module .hatena-module-body li { margin-bottom: 15px; line-height: 1.4; }
.hatena-module .hatena-module-body a:hover { opacity: 0.6; }
.hatena-module .urllist-date-link a { display: block; font-size: 0.75rem; color: #999999; margin-bottom: 4px; } 

.sidebar-cat-link { display: inline-block; font-size: 11px; color: #666; background: #f1f1f1; padding: 3px 8px; margin: 3px 5px 3px 0; border-radius: 4px; }
.sidebar-cat-link:hover { background: #e5e5e5; opacity: 0.8; }
#random-today-news a.sidebar-news-title { font-weight: bold; color: #333; display: block; }
#random-today-news a.sidebar-news-title:hover { opacity: 0.7; }

/* PCサイドバー検索デザイン */
.hatena-module-search-box .search-form { width: 100%; display: flex; align-items: stretch; margin-bottom: 0; }
.hatena-module-search-box .search-module-input { flex: 1 1 auto; width: calc(100% - 80px) !important; min-width: 0 !important; padding: 10px 12px; border: 1px solid #111111; border-radius: 4px 0 0 4px; font-size: 1rem; outline: none; }
.hatena-module-search-box .search-module-button { flex: 0 0 80px !important; width: 80px !important; background-color: #111111; color: #ffffff; border: none; padding: 0; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 1rem; }
.hatena-module-search-box .search-module-button:hover { opacity: 0.8; }

/* ======== 記事要約（ズバリ！枠） ======== */
.article-summary-box { background-color: #f9f9f9; border: 2px solid #111111; border-radius: 4px; margin: 10px 0 40px 0; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.article-summary-box .summary-header { background-color: #111111; color: #ffffff; padding: 10px 15px; display: flex; align-items: center; margin: 0; }
.article-summary-box .summary-icon { width: 26px; height: 26px; margin-right: 8px; }
.article-summary-box .summary-heading { font-size: 1.1rem; font-weight: bold; color: #ffffff; border-bottom: none; margin: 0; padding: 0; letter-spacing: 1px; }
.article-summary-box .summary-body { padding: 20px 25px; font-size: 1.05rem; color: #111111; font-weight: 600; line-height: 1.7; }

/* ======== ページャー ======== */
body.page-entry .pager { display: flex; justify-content: space-between; gap: 15px; margin: 50px 0 30px; padding: 30px 0 0 0; border-top: 2px dashed #dddddd; }
body.page-entry .pager .pager-prev, body.page-entry .pager .pager-next { flex: 1; display: flex; width: 50%; }
body.page-entry .pager a {
    display: flex; flex-direction: column; justify-content: center; width: 100%; background-color: #f9f9f9; border: 1px solid #eeeeee; border-radius: 6px; padding: 20px; text-decoration: none !important; color: #111111; transition: all 0.3s ease; font-size: 0.95rem !important; font-weight: bold; line-height: 1.5 !important; white-space: normal !important; word-break: break-word !important;
}
body.page-entry .pager a:hover { background-color: #ffffff; border-color: #111111; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateY(-2px); }
body.page-entry .pager .pager-arrow { display: none !important; }
body.page-entry .pager .pager-prev a::before { content: "《 前の記事"; display: block; font-size: 0.75rem; color: #888888; margin-bottom: 8px; font-weight: bold; line-height: 1.5; }
body.page-entry .pager .pager-next a::before { content: "次の記事 》"; display: block; font-size: 0.75rem; color: #888888; margin-bottom: 8px; font-weight: bold; text-align: right; line-height: 1.5; }
body.page-entry .pager .pager-next a { text-align: right; }

/* ======== 関連記事エリア ======== */
.custom-related-entries { margin-top: 50px; padding-top: 25px; border-top: 2px dashed #dddddd; }
.custom-related-entries .hatena-module-title { font-size: 1.3rem; border-left: 4px solid #111111; padding-left: 10px; font-weight: bold; color: #000000; margin-bottom: 20px; }
.custom-related-entries .related-entries-list { list-style: none; padding: 0; margin: 0; }
.custom-related-entries .related-entries-item { border-bottom: 1px solid #eeeeee; padding: 14px 0; margin-bottom: 0; display: flex; flex-direction: column; }
.custom-related-entries .related-entries-item:last-child { border-bottom: none; }
.custom-related-entries .related-entries-meta { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.custom-related-entries .related-entries-date { font-size: 0.8rem; color: #888888; margin-right: 12px; }
.custom-related-entries .related-entries-cats { display: flex; flex-wrap: wrap; align-items: center; }
.custom-related-entries .related-cat-link { display: inline-block; font-size: 11px; color: #666666 !important; background: #f1f1f1; padding: 3px 8px; border-radius: 4px; text-decoration: none !important; line-height: 1.5; margin: 0 5px 0 0; font-weight: normal; }
.custom-related-entries .related-cat-link:hover { background: #e5e5e5; opacity: 0.8; }
.custom-related-entries .urllist-title-link { font-size: 1.05rem; font-weight: bold; color: #111111; text-decoration: none !important; line-height: 1.5; transition: opacity 0.3s ease; }
.custom-related-entries .urllist-title-link:hover { opacity: 0.6; text-decoration: none !important; }
.hatena-module-related-entries:not(.custom-related-entries) { display: none !important; }
.page-page .entry-title { display: none !important; }

/* ======== フッターエリア ======== */
#custom-footer { background-color: #212121; color: #ffffff; padding-top: 50px; margin-top: 60px; }
#custom-footer a { color: #ffffff; transition: opacity 0.3s ease; }
#custom-footer a:hover { opacity: 0.6; }

.footer-desc-wrapper { 
    width: 92%; max-width: none; margin: 0 auto 50px; 
    border-bottom: 1px solid #444444; padding-bottom: 40px; 
}
.footer-desc-top { text-align: center; font-size: 1.2rem; font-weight: bold; letter-spacing: 1.5px; }

.footer-inner { 
    display: flex; flex-wrap: wrap; 
    width: 92%; max-width: none; 
    margin: 0 auto; 
    padding: 0 0 50px 0; 
    gap: 20px; justify-content: space-between; 
}
.footer-col { flex: 1 1 12%; min-width: 140px; margin-bottom: 20px; } 
.col-info { flex: 1.5 1 20%; min-width: 220px; } 

.footer-about-title { font-weight: bold; font-size: 1.1rem; margin-bottom: 15px; }
.footer-about ul { list-style: none; }
.footer-about li { margin-bottom: 10px; font-size: 0.85rem; }

.footer-cat-group { margin-bottom: 40px; }
.footer-cat-title { font-weight: bold; font-size: 1.1rem; margin-bottom: 20px; position: relative; }

/* フッターバッジの装飾（左の装飾線のみ維持） */
.footer-inner .footer-col:nth-child(2) .footer-cat-title,
.footer-inner .footer-col:nth-child(3) .footer-cat-title,
.footer-inner .footer-col:nth-child(4) .footer-cat-title,
.footer-local-topic .footer-about-title {
    border-left: 3px solid #5599ff; padding-left: 8px;
}

/* フッターバッジの装飾（左の装飾線とテキスト色のみ維持） */
.footer-inner .footer-col:nth-child(5) .footer-cat-title,
.footer-inner .footer-col:nth-child(6) .footer-cat-title {
    border-left: 3px solid #ffcc00; padding-left: 8px; color: #ffeb99; 
}

.footer-cat-list { list-style: none; font-size: 0.85rem; padding: 0; margin: 0; }
.footer-cat-list li { margin-bottom: 15px; line-height: 1.4; }

.footer-copyright { background-color: #111111; color: #ffffff; border-top: 1px solid #444444; text-align: center; padding: 15px 10px; font-size: 0.8rem; }


/* ==========================================
   7. スマホ用レスポンシブデザイン（絶対に触らない・現行ママ）
========================================== */
@media screen and (max-width: 768px), screen and (max-device-width: 768px) {
    .pc-only { display: none !important; } 
    .sp-only { display: block !important; }
    .sidebar-top-box { display: none !important; }

    #custom-catchphrase {
        font-size: 0.95rem !important;
        padding: 20px 15px 15px 15px !important;
    }
    #marquee-container {
        padding: 0 0 20px 0 !important;
    }
    .marquee-item {
        width: 160px !important;
        height: 80px !important;
        margin: 0 6px !important;
        border-radius: 8px !important;
    }
    .item-text {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
    }
    .bg-mark {
        font-size: 90px !important;
        right: -5px !important;
        bottom: -10px !important;
    }
    
    .sp-logo-area { display: block !important; position: relative !important; padding: 15px 15px 25px 15px !important; text-align: center !important; margin-bottom: 0 !important; background-color: #ffffff !important; box-sizing: border-box !important; width: 100% !important; }
    .sp-logo-area svg { width: 75% !important; max-width: 240px !important; margin: 0 auto !important; display: block !important; }
    .sp-logo-area::before { content: "" !important; display: block !important; position: absolute !important; left: 0 !important; right: 0 !important; bottom: 8px !important; height: 1px !important; background-color: #dddddd !important; }
    .sp-logo-area::after { content: "" !important; display: block !important; position: absolute !important; left: 15px !important; right: 15px !important; bottom: 0 !important; height: 1px !important; background-color: #dddddd !important; }

    .custom-sp-search { display: block !important; width: 100% !important; margin: 0 0 20px 0 !important; padding: 10px 15px 25px 15px !important; background-color: #ffffff !important; box-sizing: border-box !important; }
    .custom-sp-search .search-form { display: flex !important; width: 90% !important; max-width: 400px !important; margin: 0 auto !important; padding: 0 !important; }
    .custom-sp-search .search-module-input { flex: 1 !important; width: 100% !important; min-width: 0 !important; height: 42px !important; padding: 10px 12px !important; border: 1px solid #111111 !important; border-radius: 4px 0 0 4px !important; font-size: 15px !important; box-sizing: border-box !important; margin: 0 !important; outline: none !important; -webkit-appearance: none; }
    .custom-sp-search .search-module-button { flex: 0 0 60px !important; width: 60px !important; height: 42px !important; padding: 0 !important; background-color: #111111 !important; color: #ffffff !important; border: none !important; border-radius: 0 4px 4px 0 !important; font-weight: normal !important; font-size: 15px !important; box-sizing: border-box !important; margin: 0 !important; cursor: pointer; -webkit-appearance: none; }
    
    .hatena-module-search-box { display: none !important; }

    #global-nav { height: 54px !important; border-bottom: 1px solid #dddddd !important; background-color: rgba(255, 255, 255, 0.98) !important; display: flex !important; justify-content: flex-end !important; align-items: center !important; padding: 0 15px !important; margin: 0 !important; width: 100% !important; }
    
    #nav-toggle.sp-only { display: flex !important; position: absolute !important; top: 50% !important; right: 15px !important; transform: translateY(-50%) !important; width: 40px !important; height: 40px !important; background: transparent !important; border: none !important; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; box-shadow: none !important; padding: 0; z-index: 2000; }
    #nav-toggle span { display: block; width: 24px; height: 2px; background: #111111; transition: all 0.3s ease; }
    #nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #nav-toggle.is-active span:nth-child(2) { opacity: 0; }
    #nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-list { position: absolute !important; top: 54px !important; left: 0 !important; width: 100% !important; height: auto !important; max-height: calc(100vh - 60px) !important; background: rgba(255, 255, 255, 0.98) !important; border-top: 1px solid #dddddd !important; flex-direction: column !important; padding: 0 !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important; display: none !important; right: auto !important; transition: none !important; z-index: 1999; overflow-y: auto; }
    .nav-list.is-active { display: flex !important; }
    .nav-item { display: flex !important; flex-direction: column !important; align-items: stretch !important; border-right: none !important; border-left: none !important; border-bottom: 1px solid #eeeeee !important; width: 100% !important; margin: 0 !important; }
    .nav-item:last-child { border-bottom: none !important; }
    .nav-item:not(:last-child)::after { display: none !important; }
    .nav-item > a { display: flex !important; align-items: center !important; justify-content: flex-start !important; padding: 16px 20px !important; font-size: 1rem !important; width: 100% !important; }
    .nav-item.has-child > a { justify-content: flex-start !important; } 
    .nav-item.has-child > a::after { margin-left: auto !important; }
    .nav-item.has-child.is-open > a::after { transform: rotate(180deg); }
    
    .sub-menu { position: static !important; width: 100% !important; display: none !important; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none !important; border: none !important; border-top: 1px dashed #dddddd !important; background: #f9f9f9 !important; padding: 0 !important; margin: 0 !important; }
    .sub-menu.is-active { display: block !important; }
    .sub-menu li { width: 100% !important; }
    .sub-menu li a { padding: 12px 20px 12px 30px !important; font-size: 0.95rem !important; justify-content: flex-start !important; width: 100% !important; }

    body #container { display: flex !important; flex-direction: column !important; width: 100% !important; overflow: visible !important; }
    body #top-editarea { order: 1 !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    #global-nav { order: 2 !important; }
    body #content { order: 3 !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    body #content-inner { display: flex !important; flex-direction: column !important; width: 100% !important; overflow: visible !important; }
    body #wrapper { order: 1 !important; width: 100% !important; margin: 0 0 20px 0 !important; padding: 25px 15px !important; border-radius: 0 !important; overflow: visible !important; }
    body #box2 { order: 2 !important; width: 100% !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }

    #box2 .hatena-module {
        width: 100% !important; background-color: #ffffff !important; margin: 0 0 20px 0 !important; padding: 25px 15px 16px 15px !important; box-sizing: border-box !important; border-radius: 0 !important; border: none !important; box-shadow: none !important; overflow: visible !important;
    }

    /* 旧トップページ用（※新トップ用が適用されるため非表示扱いですが保護） */
    .top-random-box { margin-top: 25px !important; margin-bottom: 40px !important; } 
    .top-row { flex-direction: column !important; gap: 40px !important; } 
    .top-row.two-columns .top-col { width: 100% !important; }
    .two-col-list { flex-direction: column !important; }
    .two-col-list li { width: 100% !important; }

    /* 新トップページのスマホ用レスポンシブ対応 */
    .top-content-flex {
        flex-direction: column;
        gap: 50px;
    }
    .top-main-column, .top-side-column {
        width: 100%;
    }
    /* 4～6位のアイテムを1行ではなく縦並びに調整 */
    .popular-item:nth-child(n+4) .item-details {
        flex-direction: column;
        align-items: flex-start;
    }
    .popular-item:nth-child(n+4) .item-title {
        white-space: normal;
    }
    .cat-rank-texts {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .cat-name { width: auto; }
    
    .article-summary-box { overflow: visible !important; }
    .article-summary-box .summary-header { font-size: 1rem !important; padding: 8px 12px !important; }
    .article-summary-box .summary-body { padding: 15px !important; font-size: 0.95rem !important; }
    .archive-entry { margin-bottom: 40px !important; padding-bottom: 30px !important; border-bottom: 1px solid #ddd !important; }
    .entry-title { font-size: 22px !important; line-height: 1.4 !important; margin-bottom: 15px !important; }
    .entry-content p, .summary-body { font-size: 16px !important; line-height: 1.9 !important; margin-bottom: 2em !important; }
    .entry-content .table-of-contents { padding: 15px !important; }
    
    body.page-entry .pager { flex-direction: column !important; display: flex !important; gap: 15px !important; margin: 40px 0 20px !important; padding-top: 20px !important; }
    body.page-entry .pager .pager-prev, body.page-entry .pager .pager-next { width: 100% !important; display: flex !important; }
    body.page-entry .pager .pager-prev a, body.page-entry .pager .pager-next a { padding: 15px !important; }
    body.page-entry .pager a::after { font-size: 0.9rem !important; }
    
    body #footer { width: 100% !important; padding: 40px 0 50px 0 !important; margin: 0 !important; box-sizing: border-box !important; background-color: #212121 !important; }
    .footer-desc-wrapper { width: 90% !important; padding-bottom: 30px !important; margin-bottom: 30px !important; }
    .footer-desc-top { font-size: 0.95rem !important; text-align: center !important; }
    .footer-inner { display: flex !important; flex-direction: column !important; width: 100% !important; padding: 0 20px 30px 20px !important; gap: 30px !important; }
    .footer-col { width: 100% !important; min-width: 0 !important; }
    
    .footer-logo-wrapper { display: none !important; }
    
    .footer-about-title, .footer-cat-title, .footer-cat-list { text-align: left !important; }
    
    #breadcrumb, .breadcrumb, .page-archive #breadcrumb { font-size: 0.8rem !important; margin-bottom: 15px !important; padding: 0 2px !important; }
}

/* =========================================
   8. パンくずリスト（SEO対策用）
========================================= */
#breadcrumb, .breadcrumb, .page-archive #breadcrumb {
    font-size: 0.85rem; color: #888888; margin-top: 15px !important; margin-bottom: 20px !important; margin-left: 15px !important; padding: 0 !important; line-height: 1.5; letter-spacing: 0.5px;
}
#breadcrumb a, .breadcrumb a, .page-archive #breadcrumb a { color: #333333; text-decoration: none; font-weight: bold; transition: opacity 0.3s ease; }
#breadcrumb a:hover, .breadcrumb a:hover, .page-archive #breadcrumb a:hover { opacity: 0.6; }
.breadcrumb-child { margin: 0 4px; color: #aaaaaa; }

/* =========================================
   9. スプラッシュ画面（ローディング）
========================================= */
#splash-screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; background-color: #ffffff; z-index: 999999; display: flex; justify-content: center; align-items: center; 
    animation: splashFadeOut 0.6s ease 1.5s forwards; 
    pointer-events: none; 
}
#splash-screen svg {
    width: 80% !important; max-width: 320px !important; height: auto !important; 
    animation: splashPulse 1.5s infinite; 
}
@keyframes splashPulse {
    0% { transform: scale(0.98); opacity: 0.9; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(0.98); opacity: 0.9; }
}
@keyframes splashFadeOut {
    0% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; z-index: -1; }
}