/*
Theme Name: エンマちは小金持ち
Theme URI: https://ennmati-ni-tomoney.online
Author: エンマち
Description: エンマちは小金持ちブログ専用テーマ
Version: 1.0
License: Private
*/

/* ========================================
   カラー変数
======================================== */
:root {
  --color-main:    #1e3a5f;
  --color-link:    #2a6099;
  --color-accent:  #b83228;
  --color-text:    #1c1c1c;
  --color-muted:   #6b6b6b;
  --color-bg:      #ffffff;
  --color-white:   #ffffff;
  --color-border:  #e2e6ed;
  --shadow:        0 2px 6px rgba(0, 0, 0, 0.05);
  --radius:        4px;
  --font:          'Noto Sans JP', sans-serif;
}

/* ========================================
   リセット
======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-main);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header::after {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(to right,
    #e04040 0% 25%,
    #4480d8 25% 50%,
    #3a9a3a 50% 75%,
    #e0a030 75% 100%
  );
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  min-height: 56px;
  gap: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 16px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.85;
  text-decoration: none;
}

.site-logo-img-wide {
  height: 84px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.site-tagline {
  font-size: 11px;
  color: #8a7a68;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2px;
  padding: 0 10px;
  overflow: visible;
}

.header-nav > a,
.header-nav > .nav-dropdown {
  flex: 1;
  min-width: 56px;
}

.header-nav > a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #444;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}

.header-nav > a.nav-two-line {
  flex-direction: column;
  gap: 0px;
  align-items: center;
}

.header-nav > a.nav-two-line span {
  display: block;
  text-align: center;
  line-height: 1.4;
}

.header-nav > a:hover {
  background: #f0f0f0;
  color: var(--color-main);
  text-decoration: none;
}

.header-nav > a.current {
  background: #e8edf8;
  color: var(--color-main);
  font-weight: 800;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #444;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: center;
}

.nav-dropdown > a:hover,
.nav-dropdown:hover > a {
  background: #f0f0f0;
  color: var(--color-main);
  text-decoration: none;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #faf6f0;
  border: 1px solid #c8bfb0;
  border-top: 3px solid #c8906a;
  min-width: 160px;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #3a2a10;
  border-bottom: 1px solid #e0d8cc;
  text-decoration: none;
  transition: background-color 0.15s ease;
  letter-spacing: 0.03em;
  text-align: left;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.nav-dropdown-menu a:nth-child(1) { border-left: 4px solid #e04040; color: #c02828; padding-left: 14px; }
.nav-dropdown-menu a:nth-child(2) { border-left: 4px solid #4480d8; color: #2860b8; padding-left: 14px; }
.nav-dropdown-menu a:nth-child(3) { border-left: 4px solid #3a9a3a; color: #287828; padding-left: 14px; }
.nav-dropdown-menu a:nth-child(4) { border-left: 4px solid #e0a030; color: #b87a10; padding-left: 14px; }
.nav-dropdown-menu a:nth-child(1):hover { background: rgba(224, 64, 64, 0.06); }
.nav-dropdown-menu a:nth-child(2):hover { background: rgba(68, 128, 216, 0.06); }
.nav-dropdown-menu a:nth-child(3):hover { background: rgba(58, 154, 58, 0.06); }
.nav-dropdown-menu a:nth-child(4):hover { background: rgba(224, 160, 48, 0.06); }

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 12px;
  gap: 4px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.hamburger-btn:hover { background: rgba(0, 0, 0, 0.06); }

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #3a2a10;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.dropdown-arrow {
  display: inline-block;
  font-size: 9px;
  margin-left: 5px;
  transition: transform 0.25s ease;
  vertical-align: middle;
}

/* ========================================
   スマホナビ
======================================== */
@media (max-width: 860px) {
  .header-inner {
    justify-content: space-between;
    min-height: 84px;
  }

  .site-logo-img-wide { height: 62px; }
  .site-tagline { display: none; }
  .hamburger-btn { display: flex; }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 99;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .header-nav.open { display: flex; }

  .header-nav > a,
  .header-nav > .nav-dropdown {
    flex: none;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .header-nav > a {
    justify-content: center;
    text-align: center;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #1a1a1a;
    background: transparent;
  }

  .header-nav > a:hover,
  .header-nav > a:active {
    background: rgba(30, 58, 95, 0.05);
    color: var(--color-main);
  }

  .nav-dropdown > a {
    justify-content: center;
    text-align: center;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #1a1a1a;
    border-left: none;
    width: 100%;
    background: transparent;
  }

  .nav-dropdown > a:hover,
  .nav-dropdown:hover > a {
    background: rgba(30, 58, 95, 0.05);
    color: var(--color-main);
  }

  .dropdown-arrow {
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
  }

  .nav-dropdown.open .dropdown-arrow { transform: rotate(90deg); }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    background: rgba(248, 248, 248, 0.9);
  }

  .nav-dropdown-menu a {
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #333;
  }

  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 98;
}

#nav-overlay.open { display: block; }

/* ========================================
   メインレイアウト
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

/* ========================================
   セクション見出し
======================================== */
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.01em;
  padding: 2px 0 2px 14px;
  border-left: 4px solid var(--color-main);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #e03030;
  font-size: 13px;
  font-weight: 900;
  padding: 0;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* ========================================
   新着/人気タブ
======================================== */
.home-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 24px;
  gap: 0;
}

.home-tab {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 800;
  color: #888;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.home-tab:hover { color: var(--color-main); }

.home-tab.active {
  color: var(--color-main);
  border-bottom-color: var(--color-main);
}

/* ========================================
   カテゴリフィルター
======================================== */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 5px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-main);
  border-color: var(--color-main);
  color: var(--color-white);
  text-decoration: none;
}

/* ========================================
   記事カード
======================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: transparent;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.article-card:hover { box-shadow: var(--shadow); }

.article-card-thumb {
  width: 100%;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.article-card:hover .article-card-thumb img { transform: scale(1.02); }

.article-card-thumb .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf1fb;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.article-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 2px;
  color: #ffffff;
  letter-spacing: 0.03em;
  display: inline-block;
  text-decoration: none;
}

.tag:hover { opacity: 0.85; text-decoration: none; color: #fff; }

.tag-earn    { background: #1a7a4a; }
.tag-save    { background: #2a7a2a; }
.tag-invest  { background: #0070a0; }
.tag-guard   { background: #6a3aaa; }
.tag-mobile  { background: #1e3a5f; }
.tag-gadget  { background: #7a5200; }
.tag-card    { background: #aa2020; }
.tag-ai      { background: #0050aa; }
.tag-trick   { background: #7a006a; }
.tag-side    { background: #2a6a1a; }
.tag-default { background: #888888; }

.header-right { display: flex; align-items: center; gap: 16px; }

.twitter-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.twitter-icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.pr-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  background: #fff1f1;
  color: #b83228;
  border: 1px solid #f5b4b4;
  border-radius: 2px;
  letter-spacing: 0.03em;
}

.article-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.article-card-title a {
  color: var(--color-text);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-title a:hover {
  color: var(--color-link);
  text-decoration: none;
}

.article-card-excerpt { display: none; }

.article-card-meta {
  font-size: 12px;
  color: var(--color-muted);
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

/* ========================================
   サイドバー
======================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.widget-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}

.widget-body { padding: 16px; }

.profile-widget {
  padding: 20px 16px;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  border: 2px solid var(--color-border);
}

.profile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.profile-desc {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.85;
  margin-bottom: 10px;
  text-align: left;
}

.profile-note {
  font-size: 11px;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: left;
}

.profile-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a8cff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 32px;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity 0.15s ease;
  letter-spacing: 0.04em;
}

.profile-btn:hover { opacity: 0.82; text-decoration: none; color: #fff; }

.profile-x-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.profile-x-icon:hover { opacity: 0.75; text-decoration: none; color: #fff; }

.related-site-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

/* 記事内ボタン（水色） */
.ennmachi-btn-wrap {
  text-align: center;
  margin: 24px 0;
}
.ennmachi-btn-sky {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  color: #fff !important;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(2, 136, 209, 0.35);
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.ennmachi-btn-sky:hover {
  opacity: 0.85;
  box-shadow: 0 6px 18px rgba(2, 136, 209, 0.45);
  color: #fff !important;
  text-decoration: none !important;
}

.related-site-link:hover {
  border-color: var(--color-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.related-site-thumb {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: #e8edf8;
}

.related-site-name { font-size: 13px; font-weight: 700; color: var(--color-text); margin: 10px 12px 4px; }
.related-site-desc { font-size: 12px; color: var(--color-muted); line-height: 1.7; margin: 0 12px 8px; }
.related-site-arrow { font-size: 12px; font-weight: 700; color: var(--color-main); margin: 0 12px 12px; }

.widget-article-list { display: flex; flex-direction: column; }

.widget-article-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.widget-article-list li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-article-list li:first-child { padding-top: 0; }

.widget-article-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
}

.widget-article-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  background: #e8edf8;
}

.widget-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.widget-article-info {
  flex: 1;
  min-width: 0;
}

.widget-article-title {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.widget-article-item:hover .widget-article-title { color: var(--color-link); }

.widget-article-list a {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
  font-weight: 500;
  transition: color 0.2s ease;
}

.widget-article-list a:hover { color: var(--color-link); text-decoration: none; }

.widget-article-list .meta { font-size: 11px; color: var(--color-muted); margin-top: 3px; }

.category-list { display: flex; flex-direction: column; }
.category-list li { border-bottom: 1px solid var(--color-border); }
.category-list li:last-child { border-bottom: none; }

.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.category-list li a:hover { color: var(--color-link); text-decoration: none; }
.category-list .count { color: var(--color-muted); font-size: 12px; font-weight: 400; }

/* サイドバー カテゴリアコーディオン */
.cat-accordion-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  user-select: none;
}
.cat-accordion-trigger:hover { color: var(--color-link); }
.cat-accordion-trigger .cat-label { flex: 1; }
.cat-accordion-trigger .count { color: var(--color-muted); font-size: 12px; font-weight: 400; }
.cat-accordion-arrow {
  font-size: 9px;
  color: #aaa;
  transition: transform 0.2s ease;
  margin-left: 2px;
}
.cat-accordion-item.open .cat-accordion-arrow { transform: rotate(180deg); }
.cat-accordion-body {
  display: none;
  padding: 2px 0 4px 0;
  border-bottom: none;
}
.cat-accordion-item.open .cat-accordion-body { display: block; }
.cat-accordion-body li { border-bottom: none; }
.cat-accordion-body li a {
  padding: 6px 0 6px 12px;
  font-size: 12px;
  color: #555;
  border-left: 4px solid #ddd;
}

/* お金の力トリガーカラー */
.cat-accordion-trigger {
  border-left: 4px solid #e0a030;
  padding-left: 12px;
  color: #b87a10;
}
.cat-accordion-trigger:hover { color: #8a5a08; }

/* アコーディオン内サブカテゴリカラー（詳細度を上げて確実に適用） */
.category-list .cat-slug-earn   a { border-left-color: #e04040 !important; color: #c02828 !important; }
.category-list .cat-slug-save   a { border-left-color: #4480d8 !important; color: #2860b8 !important; }
.category-list .cat-slug-invest a { border-left-color: #3a9a3a !important; color: #287828 !important; }
.category-list .cat-slug-guard  a { border-left-color: #e0a030 !important; color: #b87a10 !important; }

/* 外側カテゴリカラー */
.category-list .cat-slug-trick  a { border-left: 4px solid #9030a0 !important; color: #7a0090 !important; padding-left: 12px !important; }
.category-list .cat-slug-mobile a { border-left: 4px solid #1e3a5f !important; color: #1e3a5f !important; padding-left: 12px !important; }
.category-list .cat-slug-card   a { border-left: 4px solid #d03030 !important; color: #b02020 !important; padding-left: 12px !important; }
.category-list .cat-slug-gadget a { border-left: 4px solid #a06020 !important; color: #805000 !important; padding-left: 12px !important; }
.category-list .cat-slug-ai     a { border-left: 4px solid #0070c0 !important; color: #0050a0 !important; padding-left: 12px !important; }

/* ========================================
   フッター
======================================== */
.site-footer {
  background: #f8f8f8;
  border-top: 1px solid #e5e0da;
  padding: 36px 24px;
  margin-top: 64px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-muted);
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.footer-icon-link:hover { background: rgba(0, 0, 0, 0.06); color: var(--color-text); text-decoration: none; }

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 16px;
}

.footer-nav a {
  color: #6b6b6b;
  font-size: 13px;
  padding: 4px 16px;
  border-right: 1px solid #d8d4cf;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-nav a:first-child { border-left: 1px solid #d8d4cf; }
.footer-nav a:hover { color: var(--color-main); text-decoration: none; }

.footer-copy { font-size: 12px; color: #6b6b6b; line-height: 1.9; }

/* ========================================
   ページネーション
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span,
.page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.pagination a:hover,
.page-numbers:hover {
  background: var(--color-main);
  color: var(--color-white);
  border-color: var(--color-main);
  text-decoration: none;
}

.pagination .current,
.page-numbers.current {
  background: var(--color-main);
  color: var(--color-white);
  border-color: var(--color-main);
}

/* ========================================
   記事ページ：パンくず
======================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--color-link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ========================================
   記事ページ：アイキャッチ
======================================== */
.article-eyecatch {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-eyecatch img { width: 100%; height: auto; display: block; }

/* ========================================
   記事ページ：ヘッダー
======================================== */
.article-header { margin-bottom: 20px; }

.article-head-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.article-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  color: var(--color-muted);
  padding-top: 6px;
}
.article-date-year { font-size: 13px; font-weight: 600; }
.article-date-md   { font-size: 26px; font-weight: 800; letter-spacing: 0.02em; }

.article-tags { margin-top: 8px; margin-bottom: 10px; }
.article-updated { font-size: 12px; color: var(--color-muted); margin-left: 6px; }

.article-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 0;
  letter-spacing: 0.01em;
}



.article-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--color-muted);
}

/* PR表記 */
.pr-notice {
  font-size: 12px;
  color: var(--color-muted);
  background: #f5f7fa;
  border-left: 3px solid var(--color-border);
  padding: 8px 12px;
  margin-bottom: 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ========================================
   目次
======================================== */
.toc-box {
  background: #f5f7fa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.toc-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-main);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-main);
}

.toc-list { padding-left: 20px; margin: 0; list-style: decimal; }
.toc-list li { font-size: 14px; line-height: 1.8; color: var(--color-text); }
.toc-list li ol { padding-left: 16px; margin-top: 4px; list-style: decimal; }
.toc-list a { color: var(--color-link); text-decoration: none; }
.toc-list a:hover { text-decoration: underline; }

/* ========================================
   記事本文エリア
======================================== */
.article-main { min-width: 0; }

.article-main h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: var(--color-main);
  padding: 14px 18px;
  margin: 48px 0 20px;
  letter-spacing: 0.02em;
  border-radius: 0;
  border-top: 4px solid #0a1f3a;
  border-bottom: 4px solid #0a1f3a;
  box-shadow:
    inset 0 5px 0 rgba(255,255,255,0.22),
    inset 0 -5px 0 rgba(255,255,255,0.22);
}

.article-main h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  border-left: 4px solid var(--color-main);
  padding: 4px 0 4px 12px;
  margin: 32px 0 14px;
}

.article-main h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px dashed var(--color-border);
  padding-bottom: 6px;
  margin: 24px 0 12px;
}

.article-main p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--color-text);
  margin-bottom: 16px;
}

.article-main strong { font-weight: 700; color: var(--color-text); }

.marker { background: linear-gradient(transparent 50%, #fff176 50%); }
.text-red   { color: #c02828; font-weight: 700; }
.text-blue  { color: #2860b8; font-weight: 700; }
.text-green { color: #287828; font-weight: 700; }

.article-main ul,
.article-main ol {
  margin: 16px 0;
  padding-left: 24px;
  list-style: disc;
  line-height: 2;
}

.article-main ol { list-style: decimal; }

/* ========================================
   吹き出し
======================================== */
.balloon {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
}

.balloon-speaker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  width: 64px;
}

.balloon-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.balloon-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
}

.balloon-content {
  position: relative;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
  max-width: calc(100% - 84px);
}

.balloon-content p { margin: 0; font-size: 14px; }

.balloon-left { flex-direction: row; }

.balloon-content-left {
  background: #f0f0f0;
  color: var(--color-text);
}

.balloon-content-left::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 16px;
  border: 6px solid transparent;
  border-right-color: #f0f0f0;
}

.balloon-right { flex-direction: row-reverse; }

.balloon-content-right {
  background: #e8f4e8;
  color: var(--color-text);
  text-align: left;
}

.balloon-content-right::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 16px;
  border: 6px solid transparent;
  border-left-color: #e8f4e8;
}

/* ========================================
   ボックス類
======================================== */
.point-box {
  background: #e8edf8;
  border: 1px solid #b8c8e8;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
}

.point-box-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-main);
  margin-bottom: 10px;
}

.point-box ul { padding-left: 20px; margin: 0; list-style: disc; }
.point-box li { font-size: 14px; line-height: 1.8; }

.caution-box {
  background: #fff3f3;
  border: 1px solid #f0b8b8;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
}

.caution-box-title {
  font-size: 14px;
  font-weight: 800;
  color: #c02828;
  margin-bottom: 10px;
}

.summary-box {
  background: #f5f7fa;
  border: 2px solid var(--color-main);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}

.summary-box-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-main);
  margin-bottom: 12px;
}

.summary-box ul { padding-left: 20px; margin: 0; list-style: disc; }
.summary-box li { font-size: 14px; line-height: 1.9; }

/* ========================================
   比較表
======================================== */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
}

.table-wrap::before {
  content: 'スクロールできます';
  display: block;
  font-size: 11px;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.article-table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: 14px;
}

.article-table th {
  background: var(--color-main);
  color: #fff;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}

.article-table td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: center;
  vertical-align: middle;
}

.article-table tr:nth-child(even) td { background: #f5f7fa; }

/* ========================================
   CTAボタン
======================================== */
.cta-wrap { text-align: center; margin: 28px 0; }

.cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.cta-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }

/* ========================================
   SNSシェアボタン
======================================== */
.share-buttons { margin: 40px 0 24px; text-align: center; }
.share-label { font-size: 13px; font-weight: 700; color: var(--color-muted); margin-bottom: 12px; }

.share-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.share-btn:hover { opacity: 0.82; text-decoration: none; }
.share-x { background: #000; color: #fff; }
.share-x:hover { color: #fff; }
.share-line { background: #06c755; color: #fff; }
.share-line:hover { color: #fff; }

/* ========================================
   前後記事
======================================== */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.article-nav a {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.article-nav a:hover { background: #f0f4f9; color: var(--color-link); text-decoration: none; }
.article-nav a.prev { text-align: left; }
.article-nav a.next { text-align: right; }

/* ========================================
   プロフィールページ
======================================== */
.prof-wrap { max-width: 680px; }
.prof-balloon { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
.prof-balloon-avatar { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.prof-balloon-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.prof-balloon-name { font-size: 11px; color: #666; margin-top: 4px; text-align: center; }
.prof-balloon-text {
  background: #e8f4e8;
  border-radius: 0 12px 12px 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
}
.prof-balloon-text::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 16px;
  border: 6px solid transparent;
  border-right-color: #e8f4e8;
}
.prof-section { margin-bottom: 28px; }
.prof-h2 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--color-main);
  border-left: 4px solid #0a1f3a;
  padding: 8px 14px;
  margin-bottom: 14px;
}
.prof-power-list { display: flex; flex-direction: column; gap: 8px; }
.prof-power-item { padding: 12px 16px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.prof-power-item.earn   { background: #fff0f0; border-left: 4px solid #e04040; color: #c02828; }
.prof-power-item.save   { background: #f0f4ff; border-left: 4px solid #4480d8; color: #2860b8; }
.prof-power-item.invest { background: #f0fff0; border-left: 4px solid #3a9a3a; color: #287828; }
.prof-power-item.guard  { background: #fff8e8; border-left: 4px solid #e0a030; color: #b87a10; }
.prof-text { font-size: 14px; line-height: 1.9; color: #333; }

/* 記事本文内 4つの力カラー */
.article-power-earn, .article-power-save, .article-power-invest, .article-power-guard {
  padding: 12px 16px; border-radius: 6px; font-size: 15px; font-weight: 600; margin: 6px 0 !important;
}
.article-power-earn   { background: #fff0f0; border-left: 4px solid #e04040; color: #c02828; }
.article-power-save   { background: #f0f4ff; border-left: 4px solid #4480d8; color: #2860b8; }
.article-power-invest { background: #f0fff0; border-left: 4px solid #3a9a3a; color: #287828; }
.article-power-guard  { background: #fff8e8; border-left: 4px solid #e0a030; color: #b87a10; }

/* ========================================
   WordPress ブロックエディタ対応
======================================== */
.article-main .wp-block-image { margin: 20px 0; }
.article-main figure { margin: 20px 0; }
.article-main figcaption { font-size: 12px; color: var(--color-muted); text-align: center; margin-top: 6px; }

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 800px) {
  .container {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
  }

  .sidebar { order: 2; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 20px; }

  .article-main h2 {
    font-size: 17px;
    margin: 28px 0 12px;
  }

  .article-main h3 { font-size: 16px; }
  .article-nav { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }

  .balloon-icon { width: 48px; height: 48px; }
  .balloon-content { max-width: calc(100% - 72px); }
}

@media (max-width: 520px) {
  .articles-grid { grid-template-columns: 1fr; }
  .article-card-thumb { height: 160px; }
}
