/* ============================================
   今日のトレンド カスタマイズCSS（v2.5）
   v2.4ベース ＋ 以下の修正:

   [v2.5 修正]
   ⑬ ホームでアイキャッチが表示されないバグ修正
      → page-archive セレクタが page-index にも適用されていた問題
      → :not(.page-index) を追加して解消
   ⑭ 関連記事：画像のないliを非表示にして空セルを防止

   [v2.4 からの継続]

   ① パンくずリスト（トップ＞経済＞...）を非表示
   ② 記事ページのカテゴリバッジを日付の横に配置
   ③ 2つ目の関連記事セクションを非表示
   ④ コメント欄と次記事ナビのバランス調整
   ⑤ フッターを「このブログについて」のみに簡素化
   ⑦ ホームカードをアイキャッチのみ表示に
   ⑧ スマホ表示の不具合修正
   ⑨ カテゴリーページ：日付＋テーマ → 記事タイトル
   ⑩ 関連記事：アイキャッチのみ表示
   ⑪ コメント欄下の次記事リンク非表示
   ⑫ フッターリンクを横並びに

   設定場所：デザイン → カスタマイズ → デザインCSS
   ============================================ */


/* --- カラー変数 --- */
:root {
  --header-bg: #ffffff;
  --header-text: #1a1a2e;
  --header-desc: #888888;
  --header-border: #e8e8e8;
  --nav-bg: #f0f1f3;
  --nav-text: #333333;
  --nav-text-hover: #ffffff;
  --nav-border: #2b7cd9;
  --accent: #2b7cd9;
  --accent-hover: #1e5ea8;
  --accent-light: rgba(43, 124, 217, 0.08);
  --primary: #1a1a2e;
  --text: #333333;
  --text-light: #666666;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}


/* --- 全体ベース --- */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}


/* ===========================
   ★ サイドバー・2カラム構造を保護
   =========================== */
#content-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 0;
}
#wrapper {
  flex: 1;
  min-width: 0;
}
#box2 {
  width: 300px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  #content-inner {
    display: block;
    padding: 12px 16px 0;
  }
  #box2 {
    width: 100%;
  }
}


/* ===========================
   [v2.4] ① パンくずリスト非表示
   =========================== */
#top-box {
  display: none !important;
}


/* ===========================
   ヘッダー領域（白背景）
   =========================== */
#blog-title {
  background: var(--header-bg);
  padding: 24px 20px 20px;
  text-align: center;
  border-bottom: 1px solid var(--header-border);
}
#title a {
  color: var(--header-text) !important;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}
#blog-description {
  color: var(--header-desc);
  font-size: 13px;
  margin-top: 6px;
}


/* ===========================
   メニュー領域（グレー背景・中央配置）
   =========================== */
#global-nav {
  background: var(--nav-bg);
  border-bottom: 3px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 999;
}
#global-nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
#global-nav ul li a {
  display: block;
  padding: 12px 22px;
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
#global-nav ul li a:hover {
  background: var(--accent);
  color: var(--nav-text-hover);
}
#nav-toggle {
  display: none;
  cursor: pointer;
  padding: 12px 16px;
  color: var(--nav-text);
  font-size: 24px;
  background: none;
  border: none;
  line-height: 1;
}


/* ===========================
   おすすめ記事カード
   =========================== */
#pickup-articles {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
#pickup-articles a {
  display: block;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}
#pickup-articles a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
#pickup-articles a img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
#pickup-articles a span {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}


/* ===========================
   [v2.6] ⑦ ホーム記事一覧
   日付＋テーマ → アイキャッチ｜記事タイトル
   =========================== */
.page-index .archive-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 16px 20px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.page-index .archive-entry:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.page-index .archive-entry-header {
  display: contents !important;
}
.page-index .archive-entry-header .date {
  order: 1;
}
.page-index .archive-entry > .categories {
  order: 1;
  margin: 0 0 0 8px;
  flex: 1 0 calc(100% - 130px);
}
.page-index .entry-thumb-link {
  order: 2;
  display: block !important;
  width: 150px !important;
  min-width: 150px;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
  margin-right: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page-index .entry-thumb-link img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.page-index .entry-thumb-link .entry-thumb {
  width: 150px !important;
  height: 0 !important;
  padding-bottom: 66.67% !important;
  background-size: cover !important;
  background-position: center !important;
}
.page-index .archive-entry-header .entry-title {
  order: 3;
  flex: 1 1 calc(100% - 180px);
  min-width: 0;
  margin-top: 8px;
}
.page-index .archive-entry-body {
  order: 10;
  display: none !important;
}
.page-index .archive-entry .social-buttons,
.page-index .archive-entry .bookmark-count {
  display: none;
}

/* 記事一覧（非ホームページ / デフォルト） */
.archive-entry {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 16px 20px;
  transition: box-shadow 0.2s;
}
.archive-entry:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.entry-title a {
  color: var(--primary) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.entry-title a:hover {
  color: var(--accent) !important;
}


/* ===========================
   [v2.4] ⑨ カテゴリーページ
   レイアウト：日付＋テーマ → 記事タイトル
   =========================== */
.page-archive:not(.page-index) .archive-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  padding: 16px 20px;
}

/* headerをcontentsにして日付・タイトルを直接flexに参加させる */
.page-archive:not(.page-index) .archive-entry-header {
  display: contents;
}

/* 日付：1行目・先頭 */
.page-archive:not(.page-index) .archive-entry-header .date {
  order: 1;
}

/* カテゴリバッジ：日付の横（1行目） */
.page-archive:not(.page-index) .archive-entry > .categories {
  order: 2;
  margin: 0;
}

/* タイトル：2行目・全幅 */
.page-archive:not(.page-index) .archive-entry-header .entry-title {
  order: 3;
  width: 100%;
  margin-top: 4px;
}

/* 本文・サムネイル・ソーシャルは非表示 */
.page-archive:not(.page-index) .archive-entry-body {
  order: 10;
  display: none !important;
}
.page-archive:not(.page-index) .entry-thumb-link {
  order: 10;
  display: none !important;
}
.page-archive:not(.page-index) .archive-entry .social-buttons,
.page-archive:not(.page-index) .archive-entry .bookmark-count {
  display: none;
}


/* ===========================
   カテゴリバッジ（記事内用）
   =========================== */
.categories a {
  display: inline-block;
  background: var(--accent);
  color: var(--white) !important;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 4px;
  transition: background 0.2s;
}
.categories a:hover {
  background: var(--accent-hover);
}


/* ===========================
   [v2.4] ② 記事ページ：カテゴリバッジを日付の横に配置
   =========================== */
.page-entry .entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.page-entry .entry-header .date.entry-date {
  order: 1;
}
.page-entry .entry-header .entry-categories {
  order: 2;
  margin: 0;
}
.page-entry .entry-header .entry-title {
  order: 3;
  width: 100%;
  margin-top: 4px;
}
.page-entry .entry-header .customized-header {
  order: 4;
  width: 100%;
}


/* ===========================
   日付
   =========================== */
.date a {
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 13px;
}


/* ===========================
   記事本文
   =========================== */
.entry-content {
  font-size: 16px;
  line-height: 2.0;
  color: var(--text);
}
.entry-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  border-left: 5px solid var(--accent);
  padding: 8px 0 8px 16px;
  margin: 36px 0 16px;
  background: var(--accent-light);
  border-radius: 0;
}
.entry-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 0;
  border-bottom: 2px dashed var(--border);
  margin: 28px 0 12px;
}
.entry-content h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin: 20px 0 8px;
}


/* ===========================
   目次
   =========================== */
.table-of-contents {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 20px 20px 40px;
  margin: 20px 0;
}
.table-of-contents::before {
  content: "目次";
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 8px;
  margin-left: -20px;
}
.table-of-contents a {
  color: var(--text) !important;
  text-decoration: none;
  font-size: 14px;
  line-height: 2.0;
}
.table-of-contents a:hover {
  color: var(--accent) !important;
}


/* ===========================
   引用
   =========================== */
blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0;
  color: var(--text-light);
}


/* ===========================
   SNSシェアボタン
   =========================== */
.social-buttons {
  text-align: center;
  margin: 24px 0;
}


/* ===========================
   [v2.4] ③ 2つ目の関連記事を非表示
   =========================== */
.customized-footer .hatena-module-related-entries {
  display: none !important;
}


/* ===========================
   [v2.4] ⑩ 関連記事：アイキャッチのみ表示
   =========================== */
.related-entries-title-link {
  display: none !important;
}

.hatena-module-related-entries .hatena-urllist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hatena-module-related-entries .hatena-urllist li {
  margin: 0;
  padding: 0;
}
.related-entries-image-link {
  display: block;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.related-entries-image-link img {
  width: 100%;
  height: auto;
  display: block;
}

/* [v2.5] ⑭ 画像リンクがないliは非表示（空セル防止） */
.hatena-module-related-entries .hatena-urllist li:not(:has(.related-entries-image-link)) {
  display: none;
}


/* ===========================
   [v2.4] ⑪ コメント欄下の次記事リンクを非表示
   =========================== */
.page-entry .pager-permalink {
  display: none !important;
}


/* ===========================
   [v2.4] ④ コメント欄のバランス調整
   =========================== */
.comment-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.comment-box .leave-comment-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.pager-permalink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pager-permalink a {
  display: inline-block;
  background: var(--white);
  color: var(--primary) !important;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pager-permalink a:hover {
  background: var(--accent);
  color: var(--white) !important;
}


/* ===========================
   ★ サイドバー全体
   =========================== */
#box2 {
  padding-left: 24px;
}

.hatena-module {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}

.hatena-module-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 12px;
}


/* ===========================
   サイドバー：検索ボックス
   =========================== */
.hatena-module-search-box .search-form {
  display: flex;
  gap: 0;
}
.hatena-module-search-box input.search-module-input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.hatena-module-search-box input.search-module-input:focus {
  border-color: var(--accent);
}
.hatena-module-search-box input.search-module-button {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.hatena-module-search-box input.search-module-button:hover {
  background: var(--accent-hover);
}


/* ===========================
   サイドバー：プロフィール
   =========================== */
.hatena-module-profile .profile-icon {
  display: block;
  margin: 0 auto 8px;
}
.hatena-module-profile .profile-icon img {
  border-radius: 50%;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid var(--border);
}
.hatena-module-profile .id {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 8px;
}
.hatena-module-profile .id a {
  color: var(--accent) !important;
  text-decoration: none;
}
.hatena-module-profile .id a:hover {
  text-decoration: underline;
}
.hatena-module-profile .profile-description {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
  margin-top: 8px;
}
.hatena-module-profile .profile-description a {
  color: var(--accent) !important;
  text-decoration: none;
  font-weight: 600;
}
.hatena-module-profile .profile-description a:hover {
  text-decoration: underline;
}

.hatena-follow-button-box {
  text-align: center;
  margin: 12px 0;
}
.hatena-follow-button-box .btn-subscribe {
  display: inline-block;
  background: var(--accent) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.hatena-follow-button-box .btn-subscribe:hover {
  background: var(--accent-hover) !important;
}


/* ===========================
   サイドバー：最新記事リスト
   =========================== */
.hatena-module-recent-entries ul,
.hatena-module-entries-access-ranking ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hatena-module-recent-entries ul li,
.hatena-module-entries-access-ranking ul li {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.hatena-module-recent-entries ul li:last-child,
.hatena-module-entries-access-ranking ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.hatena-module-recent-entries ul li:first-child,
.hatena-module-entries-access-ranking ul li:first-child {
  padding-top: 0;
}
.hatena-module-recent-entries ul li a,
.hatena-module-entries-access-ranking ul li a {
  color: var(--text) !important;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.6;
  display: block;
  transition: color 0.2s;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hatena-module-recent-entries ul li a:hover,
.hatena-module-entries-access-ranking ul li a:hover {
  color: var(--accent) !important;
}


/* ===========================
   サイドバー：カテゴリーリスト
   =========================== */
.hatena-module-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.hatena-module-category ul li {
  border-bottom: 1px solid var(--border);
}
.hatena-module-category ul li:last-child {
  border-bottom: none;
}
.hatena-module-category ul li a {
  display: block;
  background: none;
  color: var(--text) !important;
  padding: 10px 4px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.hatena-module-category ul li a:hover {
  background: var(--accent-light);
  color: var(--accent) !important;
}


/* ===========================
   サイドバー：このブログについて等のリンク
   =========================== */
.hatena-module-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hatena-module-links ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.hatena-module-links ul li:last-child {
  border-bottom: none;
}
.hatena-module-links ul li a {
  color: var(--accent) !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.hatena-module-links ul li a:hover {
  text-decoration: underline;
}


/* ===========================
   サイドバー：スマホ時は余白調整
   =========================== */
@media (max-width: 768px) {
  #box2 {
    padding-left: 0;
    margin-top: 24px;
  }
}


/* ===========================
   ページャー（ホーム一覧用）
   =========================== */
.pager:not(.pager-permalink) a {
  background: var(--white);
  color: var(--primary) !important;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.pager:not(.pager-permalink) a:hover {
  background: var(--accent);
  color: var(--white) !important;
}


/* ===========================
   ブログカード
   =========================== */
.embed-citation {
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow);
}


/* ===========================
   [v2.4] ⑤ フッター簡素化
   =========================== */
#custom-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 32px 20px 20px;
  margin-top: 40px;
}
#custom-footer .footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: block;
  text-align: center;
}
#custom-footer .footer-inner > div:first-child {
  display: none;
}
#custom-footer .footer-inner > div:nth-child(3) {
  display: none;
}
#custom-footer h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* [v2.4] ⑫ フッターリンクを横並びに */
#custom-footer .footer-inner > div:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  margin-bottom: 16px;
}
#custom-footer .footer-inner > div:nth-child(2) h4 {
  width: 100%;
  text-align: center;
}
#custom-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.6;
  display: inline-block;
}
#custom-footer a:hover {
  color: var(--accent);
}
#custom-footer .copyright {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}


/* ===========================
   トップへ戻るボタン
   =========================== */
#scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(43,124,217,0.4);
  display: none;
  z-index: 998;
  transition: transform 0.2s;
}
#scroll-top:hover {
  transform: scale(1.1);
  background: var(--accent-hover);
}


/* ===========================
   はてなデフォルト要素
   =========================== */
#globalheader-container {
  background: var(--header-bg) !important;
}


/* ==============================
   [v2.4] ⑧ レスポンシブ（スマホ対応）強化
   ============================== */
@media (max-width: 768px) {
  #nav-toggle {
    display: block;
  }
  #global-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  #global-nav ul.is-open {
    display: flex;
  }
  #global-nav .nav-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #global-nav ul li {
    width: 100%;
    border-top: 1px solid var(--border);
  }
  #global-nav ul li a {
    padding: 14px 20px;
    font-size: 14px;
  }

  #pickup-articles {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 12px;
    margin: 12px auto;
  }
  #pickup-articles a img {
    height: 80px;
  }
  #pickup-articles a span {
    font-size: 11px;
    padding: 6px 8px;
  }

  #title a {
    font-size: 20px;
  }
  #blog-title {
    padding: 16px 16px 14px;
  }

  .page-index .archive-entry {
    display: block;
    padding: 0;
    margin-bottom: 10px;
    border-radius: 6px;
  }
  .page-index .archive-entry-header {
    display: none !important;
  }
  .page-index .archive-entry > .categories {
    display: none;
  }
  .page-index .entry-thumb-link {
    width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 6px 6px 0 0 !important;
  }
  .page-index .entry-thumb-link .entry-thumb {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 56.25% !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .page-index .archive-entry-body {
    display: none !important;
  }

  .page-archive:not(.page-index) .archive-entry {
    padding: 12px 14px;
  }

  .archive-entry {
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
  }
  .entry-title a {
    font-size: 15px;
    line-height: 1.5;
  }

  .entry-content {
    font-size: 15px;
    line-height: 1.9;
  }
  .entry-content h3 {
    font-size: 17px;
    padding: 6px 0 6px 12px;
    margin: 28px 0 12px;
  }
  .entry-content h4 {
    font-size: 15px;
    margin: 20px 0 10px;
  }

  .categories a {
    font-size: 10px;
    padding: 2px 10px;
  }

  .page-entry .entry-header {
    gap: 4px;
  }

  #box2 {
    padding: 0;
    margin-top: 20px;
  }
  .hatena-module {
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 12px;
  }

  .hatena-module-category ul li a {
    padding: 8px 4px;
    font-size: 13px;
  }

  #custom-footer {
    padding: 24px 16px 16px;
    margin-top: 24px;
  }

  .pager-permalink {
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }
  .pager-permalink a {
    max-width: 100%;
    text-align: center;
    padding: 10px 16px;
  }

  .pager:not(.pager-permalink) {
    text-align: center;
    padding: 16px 0;
  }
  .pager:not(.pager-permalink) a {
    font-size: 12px;
    padding: 6px 16px;
  }
}


/* ==============================
   タブレット対応
   ============================== */
/* --- アイキャッチ hover effects --- */
.page-index .entry-thumb-link:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.page-index .entry-thumb-link:hover .entry-thumb {
  filter: brightness(1.05);
}

/* --- タイトル行間 改善 --- */
.page-index .entry-title a {
  line-height: 1.4 !important;
  letter-spacing: -0.01em;
}

/* --- カード全体 hover --- */
.page-index .archive-entry:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* --- SNS アイコンボタン (X + Instagram) --- */
.profile-sns-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.profile-sns-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.profile-sns-icons a:hover {
  transform: scale(1.12);
}
.profile-sns-icons .sns-x {
  background: #000;
}
.profile-sns-icons .sns-x:hover {
  background: #333;
}
.profile-sns-icons .sns-x svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.profile-sns-icons .sns-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.profile-sns-icons .sns-instagram:hover {
  background: linear-gradient(45deg, #e08323, #d5582c, #cb1733, #bb1356, #ab0878);
}
.profile-sns-icons .sns-instagram svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

@media (min-width: 769px) and (max-width: 1024px) {
  #pickup-articles {
    grid-template-columns: repeat(2, 1fr);
  }
  #box2 {
    width: 250px;
  }
  #content-inner {
    padding: 16px 20px 0;
  }
}