@charset "UTF-8";

/* =====================================
   基本スタイル
   ===================================== */
body {
    background-color: #eaeaea;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
    display: block;
}

ul.dropdown-menu,
ul.show,
li.nav-item {
    font-size: 12px;
    font-weight: bold;
}


h1.sitename{
    margin-bottom:0;
    line-height:0;
    font-weight:250;
    letter-spacing:3px;
    font-size:20px;
    color:#FFF;
}

.site-description {
    font-size: 20px;
    font-weight: normal;
    color: rgb(255 255 255 / 85%);
}
/* スマホ時は説明文を非表示 */
@media (max-width: 991.98px) {
    .site-description {
        display: none !important;
    }
}
/* ダークモード対応 */
html.dark-mode .site-description,
body.dark-mode .site-description {
    color: rgba(255, 255, 255, 0.7);
}


h1.sitename{
    margin-bottom:0;
    line-height:0;
}

a.pickup {
    color: #ff0000;
    font-weight: bold;
}

@font-face {
  font-family: 'bootstrap-icons';
  src: url('/css/font/fonts/bootstrap-icons.woff2') format('woff2');
  font-display: swap; /* or optional */
}

/* =====================================
   記事一覧
   ===================================== */
.article-row {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 5px 0;
    display: block;
    transition: background-color 0.2s;
    margin: 0;
    position: relative;
}

.article-row:hover {
    background-color: #f8f9fa;
}

.article-row:first-child {
    border-top: 1px solid #e0e0e0;
}

.article-content {
    padding: 0 5px;
    position: relative;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.article-time {
    flex-shrink: 0;
    min-width: 40px;
    font-size: 12px;
    border-right: solid 1px;
}

.article-link {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 17px;
	font-weight: bold;
    line-height: 1.5;
    display: block;
    margin-bottom: 3px;
    padding-right: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.article-link-pickup{
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    display: block;
    margin-bottom: 3px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.pickup2{
    padding-right:0px;
}

.article-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.article-meta {
    position: absolute;
    right: 15px;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* PC用メタ（右側絶対配置） - 廃止 */

/* サイト名・カテゴリ（タイトル下、右寄せ） */
.article-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5px 2px;
    gap: 6px;
}

.site-name-bottom {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.site-name-bottom:hover {
    color: #0066cc;
}

/* カテゴリバッジ */
.article-category-badge {
    font-size: 10px;
    color: #fff;
    background-color: #6c757d;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.4;
    transition: background-color 0.2s;
}

.article-category-badge:hover {
    background-color: #555;
    color: #fff;
}

.site-name {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 125px;
}

/* クリック数バー */
.click-bar-container {
    height: 1px;
    border-radius: 0;
    overflow: hidden;
    margin-top: 1px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.click-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8787 100%);
    transition: width 0.3s ease;
    border-radius: 0;
}

/* クリック済み記事 */
.article-row.article-clicked {
    background-color: #f5f5f5;
}

.article-row.article-clicked:hover {
    background-color: #eeeeee;
}

.article-row.article-clicked .article-link {
    color: #999;
	font-weight: normal;
}

.article-row.article-clicked .site-name {
    color: #aaa;
}

.article-row.article-clicked .site-name-bottom {
    color: #aaa;
}

/* 非表示ボタン */
.hide-site-btn {
    transition: opacity 0.2s;
}

.article-row:hover .hide-site-btn {
    opacity: 1;
}

.hide-site-btn:hover {
    color: #dc3545 !important;
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
    .article-meta {
        display: none;
    }

    .article-link {
        font-size: 15px;
		font-weight: bold;
    }

    .site-name-bottom {
        font-size: 11px;
        max-width: 160px;
    }
}

/* PC表示時の調整 */
@media (min-width: 769px) {
    .article-meta-bottom {
        padding-right: 10px;
    }
}

/* サイト詳細ページ クリック数（flexアイテム） */
.article-clicks-count {
    flex-shrink: 0;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid #e0e0e0;
}

/* ダークモード対応 */
html.dark-mode .article-clicks-count,
body.dark-mode .article-clicks-count {
    color: #999;
    border-left-color: #444;
}



/* =====================================
   サイドバー
   ===================================== */
.sidebar {
  min-width: 0;
}

.sidebar-section {
    background: white;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.list-group-item {
    border: none;
    padding: 8px 0;
    font-size: 13px;
}

/* =====================================
   ナビゲーション・ヘッダー
   ===================================== */
.navbar {
    margin-bottom: 0px;
    min-height: 50px;
}

.navbar i {
    width: 1.25em;
    display: inline-block;
}

h4 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
}

h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
}

h1.guide{
    font-size:18px;
    font-weight: bold;
    color: #333;
}

h1.blog_title{
	font-size:18px;
	font-weight: bold;
	color: #333;
}


section {
    margin-bottom: 20px;
}

section h4 {
    margin-bottom: 0;
}

section h2 {
    margin-bottom: 0;
}

/* ロゴ回転アニメーション */
.navbar-logo {
    transition: transform 0.6s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: rotate(360deg);
}

/* =====================================
   2段ナビゲーション
   ===================================== */
/* 1段目のナビゲーション */
.navbar.fixed-top:not(.category-nav) {
    top: 0;
    z-index: 1030;
}

/* 2段目のカテゴリナビゲーション（PC時のみ） */
.navbar.category-nav {
    z-index: 1029;
}

/* =====================================
   パンくずリスト
   ===================================== */
.bg-light {
    background-color: #494949 !important;
}

.breadcrumb {
    font-size: 0.875rem;
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

.breadcrumb-item a {
    color: #FFF !important;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #FFF;
}

/* PC時のレイアウト */
@media (min-width: 992px) {
    /* 2段目のカテゴリナビゲーション */
    .navbar.category-nav {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* パンくずリストの位置 */
    nav.breadcrumb {
        margin-top: 100px; /* 56px × 2 */
    }
    
    /* 日付区切りの位置 */
    .date-separator {
        top: 100px; /* 56px + 56px + 50px（パンくず分） */
    }
}

/* スマホ・タブレット時 */
@media (max-width: 991.98px) {
    /* カテゴリナビは非表示（横スクロールバーに移行） */
    .navbar.category-nav {
        display: none !important;
    }
    
    /* パンくずリストの位置（メインナビ50px + カテゴリバー40px） */
    nav.breadcrumb {
        margin-top: 90px;
    }
    
    /* 日付区切りの位置 */
    .date-separator {
        top: 90px;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.75rem;
    }

    .breadcrumb-item {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* =====================================
   日付区切り
   ===================================== */
.date-separator {
    background: #f0f0f0;
    border-top: 2px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 5px 5px;
    margin: 0;
    position: sticky;
    z-index: 810;
}

.date-text {
    font-size: 13px;
    font-weight: bold;
    color: #555;
}

/* =====================================
   ページネーション
   ===================================== */
.pagination + p,
p.text-muted.text-sm,
nav p,
nav .text-sm {
    display: none !important;
}

.pagination {
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-item {
    margin: 2px;
}

@media (max-width: 576px) {
    .pagination {
        font-size: 0.875rem;
    }

    .pagination .page-link {
        padding: 0.375rem 0.625rem;
        min-width: 32px;
        text-align: center;
    }

    .pagination .page-item:not(.active):not(.disabled):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
        display: none;
    }
}

@media (max-width: 768px) {
    .pagination {
        font-size: 0.9rem;
    }

    .pagination .page-link {
        padding: 0.5rem 0.75rem;
    }
}

/* =====================================
   カード・その他
   ===================================== */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.6;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.article-row small {
    font-size: 11px;
}

/* =====================================
   トースト通知
   ===================================== */
.custom-toast-container {
    z-index: 114514 !important;
    margin-bottom: 50px !important;
}

/* =====================================
   スマホ用固定フッターナビ
   ===================================== */
.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #212529;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-footer-nav a {
    flex: 1;
    text-align: center;
    color: #adb5bd;
    text-decoration: none;
    font-size: 11px;
}

.mobile-footer-nav a i {
    font-size: 20px;
    display: block;
    line-height: 1;
}

.mobile-footer-nav a span {
    display: block;
    margin-top: 2px;
}

.mobile-footer-nav a.active {
    color: #ffffff;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 56px;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 56px;
    }
}

/* =====================================
   スマホ用 横スクロールカテゴリバー
   ===================================== */
.mobile-category-scroll {
    position: fixed;
    top: 50px; /* メインナビバーの高さ */
    left: 0;
    right: 0;
    background: #343a40;
    border-bottom: 1px solid #4a4a4a;
    z-index: 1029;
}

.mobile-category-scroll-inner {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0 8px;
    gap: 4px;
}

.mobile-category-scroll-inner::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* カテゴリボタン共通 */
.mobile-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.875rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
    -webkit-tap-highlight-color: transparent; /* iOS タップハイライト無効 */
    touch-action: manipulation; /* ダブルタップズーム無効 */
    user-select: none; /* テキスト選択無効 */
}

.mobile-cat-btn:hover,
.mobile-cat-btn:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-cat-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.mobile-cat-btn i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.mobile-cat-btn.active i {
    transform: rotate(180deg);
}

/* ドロップダウンコンテナ */
.mobile-cat-dropdown {
    position: static;
}

/* サブメニュー - 固定位置オーバーレイ */
.mobile-cat-submenu {
    display: none;
    position: fixed;
    top: 92px; /* メインナビ50px + カテゴリバー40px + パンくず35px */
    left: 0;
    right: 0;
    background: #2d3238;
    border-bottom: 1px solid #4a4a4a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.mobile-cat-submenu.show {
    display: block !important;
    z-index: 114514;
}

.mobile-cat-submenu a {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #3d4349;
}

.mobile-cat-submenu a:last-child {
    border-bottom: none;
}

.mobile-cat-submenu a:hover,
.mobile-cat-submenu a:active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* PC表示時はカテゴリスクロールバーを非表示 */
@media (min-width: 992px) {
    .mobile-category-scroll {
        display: none !important;
    }
}

/* =====================================
   ダークモード
   ===================================== */
html.dark-mode,
html.dark-mode body,
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* ナビゲーション */
html.dark-mode .navbar-dark,
body.dark-mode .navbar-dark {
    background-color: #000 !important;
}

html.dark-mode footer,
body.dark-mode footer {
    background-color: #000 !important;
}

/* 記事一覧 */
html.dark-mode .article-row,
body.dark-mode .article-row {
    border-bottom: 1px solid #333;
    background-color: #1a1a1a;
}

html.dark-mode .article-row:hover,
body.dark-mode .article-row:hover {
    background-color: #2a2a2a;
}

html.dark-mode .article-link,
body.dark-mode .article-link {
    color: #e0e0e0;
}

html.dark-mode .article-link:hover,
body.dark-mode .article-link:hover {
    color: #5ba3ff;
}

html.dark-mode .site-name,
body.dark-mode .site-name {
    color: #999;
}

html.dark-mode .article-meta a.site-name:hover,
body.dark-mode .article-meta a.site-name:hover {
    color: #5ba3ff;
}

html.dark-mode .article-row.article-clicked,
body.dark-mode .article-row.article-clicked {
    background-color: #1f1f1f;
    opacity: 0.6;
}

html.dark-mode .article-row.article-clicked:hover,
body.dark-mode .article-row.article-clicked:hover {
    background-color: #2a2a2a;
}

html.dark-mode .click-bar-container,
body.dark-mode .click-bar-container {
    background-color: #333;
}

/* サイト名（下段） - ダークモード */
html.dark-mode .site-name-bottom,
body.dark-mode .site-name-bottom {
    color: #999;
}

html.dark-mode .site-name-bottom:hover,
body.dark-mode .site-name-bottom:hover {
    color: #5ba3ff;
}

html.dark-mode .article-category-badge,
body.dark-mode .article-category-badge {
    background-color: #444;
    color: #ccc;
}

html.dark-mode .article-category-badge:hover,
body.dark-mode .article-category-badge:hover {
    background-color: #555;
    color: #fff;
}

html.dark-mode .article-row.article-clicked .site-name-bottom,
body.dark-mode .article-row.article-clicked .site-name-bottom {
    color: #666;
}

/* 日付区切り */
html.dark-mode .date-separator,
body.dark-mode .date-separator {
    background-color: #2a2a2a;
    border-left-color: #5ba3ff;
}

html.dark-mode .date-text,
body.dark-mode .date-text {
    color: #e0e0e0;
}

/* サイドバー */
html.dark-mode .sidebar-section,
body.dark-mode .sidebar-section {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

html.dark-mode .sidebar-title,
body.dark-mode .sidebar-title {
    border-bottom-color: #5ba3ff;
}

html.dark-mode .list-group-item,
body.dark-mode .list-group-item {
    background-color: #2a2a2a;
    border-color: #333;
    color: #e0e0e0;
}

html.dark-mode .list-group-item:hover,
body.dark-mode .list-group-item:hover {
    background-color: #333;
}

html.dark-mode .list-group-item-action:hover,
body.dark-mode .list-group-item-action:hover {
    color: #5ba3ff;
}

/* カード */
html.dark-mode .card,
body.dark-mode .card {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #333;
}

html.dark-mode .card-header,
body.dark-mode .card-header {
    background-color: #1f1f1f;
    border-bottom-color: #333;
    color: #e0e0e0;
}

html.dark-mode .card-body,
body.dark-mode .card-body {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

/* ボタン・リンク */
html.dark-mode .btn-link,
body.dark-mode .btn-link {
    color: #999;
}

html.dark-mode .btn-link:hover,
body.dark-mode .btn-link:hover {
    color: #5ba3ff;
}

/* テキスト */
html.dark-mode .text-muted,
body.dark-mode .text-muted {
    color: #999 !important;
}

html.dark-mode .text-success,
body.dark-mode .text-success {
    color: #4ade80 !important;
}

html.dark-mode .text-primary,
body.dark-mode .text-primary {
    color: #5ba3ff !important;
}

html.dark-mode .text-danger,
body.dark-mode .text-danger {
    color: #ff6b6b !important;
}

html.dark-mode .fw-bold,
body.dark-mode .fw-bold {
    color: #e0e0e0;
}

/* 見出し */
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff !important;
}

/* ボーダー */
html.dark-mode .border-danger,
body.dark-mode .border-danger {
    border-color: #ff6b6b !important;
}

html.dark-mode .border-primary,
body.dark-mode .border-primary {
    border-color: #5ba3ff !important;
}

html.dark-mode .border-bottom,
body.dark-mode .border-bottom {
    border-bottom-color: inherit !important;
}

/* アラート */
html.dark-mode .alert-info,
body.dark-mode .alert-info {
    background-color: #1a3a4a;
    border-color: #2a5a7a;
    color: #b0d0e0;
}

/* フォーム */
html.dark-mode .form-check-input,
body.dark-mode .form-check-input {
    background-color: #333;
    border-color: #555;
}

html.dark-mode .form-check-input:checked,
body.dark-mode .form-check-input:checked {
    background-color: #5ba3ff;
    border-color: #5ba3ff;
}

html.dark-mode .form-select,
html.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .form-control {
    background-color: #2a2a2a;
    border-color: #555;
    color: #e0e0e0;
}

html.dark-mode .form-select:focus,
html.dark-mode .form-control:focus,
body.dark-mode .form-select:focus,
body.dark-mode .form-control:focus {
    background-color: #333;
    border-color: #5ba3ff;
    color: #e0e0e0;
}

html.dark-mode .form-select option,
body.dark-mode .form-select option {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

html.dark-mode .form-label,
body.dark-mode .form-label {
    color: #e0e0e0;
}

/* ドロップダウン */
html.dark-mode .dropdown-menu,
body.dark-mode .dropdown-menu {
    background-color: #2a2a2a;
    border-color: #333;
}

html.dark-mode .dropdown-item,
body.dark-mode .dropdown-item {
    color: #e0e0e0;
}

html.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:hover {
    background-color: #333;
    color: #5ba3ff;
}

html.dark-mode .dropdown-divider,
body.dark-mode .dropdown-divider {
    border-top-color: #333;
}

/* ページネーション */
html.dark-mode .pagination .page-link,
body.dark-mode .pagination .page-link {
    background-color: #2a2a2a;
    border-color: #333;
    color: #e0e0e0;
}

html.dark-mode .pagination .page-link:hover,
body.dark-mode .pagination .page-link:hover {
    background-color: #333;
    color: #5ba3ff;
}

html.dark-mode .pagination .page-item.active .page-link,
body.dark-mode .pagination .page-item.active .page-link {
    background-color: #5ba3ff;
    border-color: #5ba3ff;
}

html.dark-mode .pagination .page-item.disabled .page-link,
body.dark-mode .pagination .page-item.disabled .page-link {
    background-color: #1f1f1f;
    color: #555;
}

/* テーブル */
html.dark-mode table,
body.dark-mode table {
    color: #e0e0e0;
}

html.dark-mode .table,
body.dark-mode .table {
    color: #e0e0e0;
    border-color: #333;
}

html.dark-mode .table thead,
body.dark-mode .table thead {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

html.dark-mode .table thead th,
body.dark-mode .table thead th {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border-color: #333;
}

html.dark-mode .table-light,
body.dark-mode .table-light {
    background-color: #1f1f1f !important;
    color: #e0e0e0 !important;
}

html.dark-mode .table tbody tr,
body.dark-mode .table tbody tr {
    background-color: #2a2a2a;
    border-color: #333;
}

html.dark-mode .table tbody td,
body.dark-mode .table tbody td {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #333;
}

html.dark-mode .table-hover tbody tr:hover,
body.dark-mode .table-hover tbody tr:hover {
    background-color: #333 !important;
}

html.dark-mode .table-hover tbody tr:hover td,
body.dark-mode .table-hover tbody tr:hover td {
    background-color: #333 !important;
}

/* バッジ */
html.dark-mode .badge,
body.dark-mode .badge {
    color: #fff;
}

html.dark-mode .badge.bg-warning,
body.dark-mode .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

html.dark-mode .badge.bg-secondary,
body.dark-mode .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

html.dark-mode .badge.bg-info,
body.dark-mode .badge.bg-info {
    background-color: #00bcd4 !important;
    color: #000 !important;
}

html.dark-mode .badge.bg-success,
body.dark-mode .badge.bg-success {
    background-color: #28a745 !important;
    color: #fff !important;
}

html.dark-mode .badge.bg-primary,
body.dark-mode .badge.bg-primary {
    background-color: #5ba3ff !important;
    color: #000 !important;
}

/* リンク */
html.dark-mode a,
body.dark-mode a {
    color: #FFF;
}

html.dark-mode a:hover,
body.dark-mode a:hover {
    color: #7db8ff;
}

/* パンくずリスト - ダークモード */
.dark-mode a.pickup {
    color: #ff0000;
    font-weight: bold;
}

.dark-mode .bg-light {
    background-color: #1a1a1a !important;
}

.dark-mode .breadcrumb {
    color: #FFF !important;
    background-color: transparent;
}

.dark-mode .breadcrumb-item a {
    color: #FFF !important;
}

.dark-mode .breadcrumb-item.active {
    color: #FFF;
}

/* ダークモード - 横スクロールカテゴリバー */
html.dark-mode .mobile-category-scroll,
body.dark-mode .mobile-category-scroll {
    background: #1a1a1a;
    border-bottom-color: #333;
}

html.dark-mode .mobile-cat-submenu,
body.dark-mode .mobile-cat-submenu {
    background: #1f1f1f;
    border-color: #333;
}

html.dark-mode .mobile-cat-submenu a,
body.dark-mode .mobile-cat-submenu a {
    border-bottom-color: #2a2a2a;
}

/* =====================================
   サムネイル画像
   ===================================== */

/* デフォルトは非表示（imgタグはあるが見えない状態） */
.article-thumbnail {
    display: none;
}

/* ユーザーがLocalStorageでONにすると body.thumbnails-enabled が付く */
body.thumbnails-enabled .article-thumbnail {
    display: block;
    float: right;             /* タイトル右側に画像、テキストが回り込む */
    width: 100px;
    height: 75px;
    object-fit: cover;        /* 縦横比を保ちつつ枠に合わせて切り取る */
    border-radius: 4px;
    margin-left: 8px;
    margin-bottom: 4px;
    background: #f0f0f0;      /* 読み込み中の背景色 */
}

/* floatのclearfix(画像が次の記事にはみ出ないように) */
body.thumbnails-enabled .article-row::after {
    content: "";
    display: block;
    clear: both;
}

/* スマホ用に小さく */
@media (max-width: 576px) {
    body.thumbnails-enabled .article-thumbnail {
        width: 70px;
        height: 53px;
    }
}

/* ダークモード時の背景 */
html.dark-mode body.thumbnails-enabled .article-thumbnail,
body.dark-mode .article-thumbnail {
    background: #2a2a2a;
}
/* =====================================
   タブレット横画面以上でコンテンツ幅を確保
   container-xxl の Bootstrap 既定では 992-1199px で 960px に絞られるため、
   iPad横画面でも PC と同等の広さを使えるよう上書き
   ===================================== */
@media (min-width: 992px) {
    .container-xxl {
        max-width: 1320px;
    }
}

/* 人気記事セクション・表示非表示 */
body.popular-articles-hidden .popular-section {
    display: none !important;
}


/* =====================================
   ダークモードをネイビー系に変更
   ===================================== */

/* 全体の背景 */
html.dark-mode,
html.dark-mode body,
body.dark-mode,
html.dark-mode .article-row,
body.dark-mode .article-row {
    background-color: #16273d;
}

/* 一段奥の面 */
html.dark-mode .card-header,
body.dark-mode .card-header,
html.dark-mode .article-row.article-clicked,
body.dark-mode .article-row.article-clicked,
html.dark-mode .table thead,
html.dark-mode .table thead th,
body.dark-mode .table thead,
body.dark-mode .table thead th,
html.dark-mode .table-light,
body.dark-mode .table-light,
html.dark-mode .pagination .page-item.disabled .page-link,
body.dark-mode .pagination .page-item.disabled .page-link {
    background-color: #1d3050;
}

/* 一段手前に浮かせる面 */
html.dark-mode .sidebar-section,
body.dark-mode .sidebar-section,
html.dark-mode .card,
body.dark-mode .card,
html.dark-mode .card-body,
body.dark-mode .card-body,
html.dark-mode .list-group-item,
body.dark-mode .list-group-item,
html.dark-mode .article-row:hover,
body.dark-mode .article-row:hover,
html.dark-mode .dropdown-menu,
body.dark-mode .dropdown-menu,
html.dark-mode .form-select,
html.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .form-control {
    background-color: #264066;
}

/* ナビとフッター */
/*html.dark-mode .navbar-dark,
body.dark-mode .navbar-dark,
html.dark-mode footer,
body.dark-mode footer {
    background-color: #102036 !important;
}*/

/* 枠線 */
html.dark-mode .article-row,
body.dark-mode .article-row {
    border-bottom-color: #32496b;
}

/* =====================================
   トップへ戻るボタン
   ===================================== */
#back-to-top {
    position: fixed;          /* スクロールしても画面の同じ位置に固定 */
    right: 10px;              /* 画面の右端から20px */
    bottom: 70px;             /* 画面の下端から20px */
    z-index: 1040;            /* ナビより手前に出す */
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;       /* 円形に */
    background-color: #264066;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;               /* 最初は見えない */
    visibility: hidden;       /* 最初は反応しない */
    transition: opacity 0.3s, visibility 0.3s;
}

/* スクロールして表示状態になったとき */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #32496b;
}

@media (min-width: 768px) {
    .stat-divider {
        border-right: 1px solid var(--bs-border-color);
    }
}

/* ===== ブログ記事カード（見出し・アイキャッチ・本文をまとめて白背景に） ===== */
.blog-article {
    background: #ffffff;
    color: #212529;
    padding: 1.5rem;
    border-radius: 8px;
}
/* カード内の文字色を濃いめに固定（ダークモードで薄くならないように） */
.blog-article h1,
.blog-article h2,
.blog-article h3,
.blog-article h4,
.blog-article h5,
.blog-article h6,
.blog-article p,
.blog-article li,
.blog-article strong {
    color: #212529 !important;
}
.blog-article .text-muted { color: #6c757d !important; }

/* アイキャッチ画像 */
.blog-article header img {
    max-width: 100%;
    height: auto;
}

/* 本文（カードの中なので背景は透明でOK） */
.blog-body {
    line-height: 1.9;
    overflow-wrap: anywhere;   /* 長いURL等で横に伸びるのを防ぐ */
}
.blog-body img,
.blog-body iframe,
.blog-body video,
.blog-body embed,
.blog-body object {
    max-width: 100%;           /* 画像・埋め込みが枠からはみ出さない */
}
.blog-body img {
    height: auto;
    display: block;
    margin: 1rem auto;         /* 画像は中央寄せ */
    border-radius: 4px;
}
.blog-body iframe { border: 0; }
.blog-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;          /* 広い表は横スクロール */
    border-collapse: collapse;
}
.blog-body a { color: #0d6efd; }
.blog-body blockquote {
    border-left: 4px solid #dee2e6;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    color: #555;
    background: #f8f9fa;
}
.blog-body pre {
    background: #f5f5f5;
    color: #212529;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}
.blog-body code { background: #f5f5f5; color: #212529; }

/* ===== ダークモード時：記事カードを右サイドバーと同じ濃紺背景に ===== */
body.dark-mode .blog-article {
    background: #264066;          /* サイドバーと同じ濃紺 */
    color: #e0e0e0;
}
body.dark-mode .blog-article h1,
body.dark-mode .blog-article h2,
body.dark-mode .blog-article h3,
body.dark-mode .blog-article h4,
body.dark-mode .blog-article h5,
body.dark-mode .blog-article h6,
body.dark-mode .blog-article p,
body.dark-mode .blog-article li,
body.dark-mode .blog-article strong {
    color: #e0e0e0 !important;   /* 濃紺の上で読める明るい文字 */
}
body.dark-mode .blog-article .text-muted,
body.dark-mode .blog-article time {
    color: #9fb3d1 !important;   /* 日付などのグレーも明るめに */
}
body.dark-mode .blog-article a,
body.dark-mode .blog-body a {
    color: #7db3ff;              /* 濃紺で映える明るい青 */
}
body.dark-mode .blog-body blockquote {
    background: rgba(255, 255, 255, 0.06);
    color: #cdd6e4;
    border-left-color: #5ba3ff;
}
body.dark-mode .blog-body pre,
body.dark-mode .blog-body code {
    background: #1d3050;         /* カードより一段暗い濃紺 */
    color: #e0e0e0;
}
