/* ===== リセット & 変数 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --navy: #0A2342;
  --navy2: #0d2e57;
  --gold: #F0B429;
  --gold2: #e5a800;
  --mint: #4ECDC4;
  --white: #ffffff;
  --gray50: #f8fafc;
  --gray100: #f1f5f9;
  --gray200: #e2e8f0;
  --gray400: #94a3b8;
  --gray600: #475569;
  --gray800: #1e293b;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(10,35,66,0.10);
  --shadow-lg: 0 8px 40px rgba(10,35,66,0.16);
}
body {
  font-family: 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: var(--gray800);
  background: var(--gray50);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
section[id] { scroll-margin-top: 80px; }

/* ===== ヘッダー ===== */
.site-header {
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 12px rgba(10,35,66,0.25);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}
.logo-icon { font-size: 1.4rem; }
.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.logo-text small {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.75;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--gold); }
.btn-x-nav {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-x-nav:hover { background: var(--gold2) !important; transform: translateY(-1px); }

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルナビ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  right: 0;
  width: 260px;
  background: var(--navy2);
  padding: 16px 0;
  z-index: 290;
  box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  padding: 14px 28px;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); color: var(--gold); }
.mobile-nav-x {
  margin: 12px 20px 0 !important;
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  border-bottom: none !important;
  text-align: center;
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 280;
}
.mobile-nav-overlay.open { display: block; }

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, #1a4080 100%);
  color: white;
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  font-size: 280px;
  opacity: 0.04;
  right: -30px;
  top: -40px;
  pointer-events: none;
  line-height: 1;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(240,180,41,0.18);
  color: var(--gold);
  border: 1px solid rgba(240,180,41,0.35);
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  font-size: 1rem;
  opacity: 0.82;
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px 32px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.75rem;
  opacity: 0.7;
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(240,180,41,0.4);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240,180,41,0.5);
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
  color: white;
}

/* ===== プロフィールセクション ===== */
.profile-section {
  background: white;
  padding: 64px 24px;
  border-bottom: 1px solid var(--gray200);
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold2);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  max-width: 860px;
  margin: 0 auto;
}
.profile-avatar {
  position: relative;
  flex-shrink: 0;
}
.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, #1a4080 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 6px 24px rgba(10,35,66,0.2);
}
.avatar-x-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: #000;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border: 2px solid white;
  text-decoration: none;
  transition: background 0.2s;
}
.avatar-x-badge:hover { background: #333; }
.profile-body { flex: 1; }
.profile-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}
.profile-role {
  font-size: 0.88rem;
  color: var(--gray600);
  margin-bottom: 16px;
}
.profile-bio {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--gray800);
  margin-bottom: 20px;
}
.profile-bio strong { color: var(--navy); }
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.ptag {
  display: inline-block;
  background: var(--gray100);
  color: var(--gray800);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--gray200);
}
.btn-follow-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-follow-x:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ===== カテゴリタブ ===== */
.categories {
  background: white;
  border-bottom: 1px solid var(--gray200);
  position: sticky;
  top: 64px;
  z-index: 200;
}
.categories .container { padding: 0 24px; }
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  padding: 6px 16px;
  border: 1.5px solid var(--gray200);
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray600);
  transition: all 0.2s;
  white-space: nowrap;
}
.cat-btn:hover { border-color: var(--navy); color: var(--navy); }
.cat-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ===== コンテンツレイアウト ===== */
.main-content { padding: 40px 0 80px; }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.posts-area { min-width: 0; }

/* ===== 記事グリッド ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.post-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid var(--gray200);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.card-top-bar {
  height: 3px;
  background: var(--gray200);
}
.post-card[data-cat*="節約"] .card-top-bar { background: linear-gradient(90deg, var(--gold), #f5d060); }
.post-card[data-cat*="投資"] .card-top-bar { background: linear-gradient(90deg, var(--mint), #2dd4bf); }
.post-card[data-cat*="シミュ"] .card-top-bar { background: linear-gradient(90deg, #818cf8, #6366f1); }
.post-card[data-cat*="体験"] .card-top-bar { background: linear-gradient(90deg, #f9a8d4, #ec4899); }
.post-card[data-cat*="ライフ"] .card-top-bar { background: linear-gradient(90deg, #86efac, #22c55e); }
.post-card[data-cat*="基礎"] .card-top-bar { background: linear-gradient(90deg, #93c5fd, #3b82f6); }
.card-badge { padding: 14px 16px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--gray100);
  color: var(--navy);
}
.badge.投資 { background: rgba(78,205,196,0.15); color: #0d7c75; }
.badge.節約 { background: rgba(240,180,41,0.15); color: #946c00; }
.badge.シミュ { background: rgba(99,102,241,0.12); color: #4338ca; }
.badge.体験 { background: rgba(236,72,153,0.1); color: #9d174d; }
.badge.ライフ { background: rgba(34,197,94,0.12); color: #166534; }
.badge.基礎 { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.card-body { padding: 12px 16px 16px; flex: 1; }
.card-title {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--gray800);
}
.card-excerpt {
  font-size: 0.83rem;
  color: var(--gray600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  padding: 10px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray100);
  gap: 8px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-date { font-size: 0.74rem; color: var(--gray400); }
.card-reading-time {
  font-size: 0.74rem;
  color: var(--gray400);
}
.card-x-btn {
  font-size: 0.78rem;
  background: var(--navy);
  color: white;
  padding: 5px 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-x-btn:hover { background: var(--gold); color: var(--navy); }
.loading {
  text-align: center;
  padding: 60px;
  color: var(--gray600);
  grid-column: 1 / -1;
}

/* ===== サイドバー ===== */
.sidebar {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray200);
  padding: 20px;
}
.sb-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.sb-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, #1a4080 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.sb-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}
.sb-desc {
  font-size: 0.75rem;
  color: var(--gray600);
  line-height: 1.5;
}
.btn-sb-follow {
  display: block;
  text-align: center;
  background: #000;
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-sb-follow:hover { background: #222; transform: translateY(-1px); }
.sb-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.sb-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-cat-list li { margin: 0; }
.sb-cat-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--gray600);
  cursor: pointer;
  transition: all 0.15s;
}
.sb-cat-btn:hover { background: var(--gray100); color: var(--navy); }
.sidebar-follow-card { background: var(--navy); border-color: var(--navy); }
.sb-follow-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.sb-follow-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 0;
}
.btn-block { display: block; width: 100%; text-align: center; margin-top: 12px; }

/* ===== フォローCTAバナー ===== */
.follow-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0f3460 100%);
  padding: 64px 24px;
  color: white;
}
.follow-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 860px;
  margin: 0 auto;
}
.fb-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}
.fb-text h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 12px;
}
.fb-sub {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.7;
}
.fb-cta { flex-shrink: 0; text-align: center; }
.btn-follow-large {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 16px 36px;
  border-radius: 32px;
  font-weight: 900;
  font-size: 1.05rem;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(240,180,41,0.4);
  text-decoration: none;
}
.btn-follow-large:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,180,41,0.5);
}
.fb-note {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 10px;
}

/* ===== お問い合わせセクション ===== */
.contact-section {
  background: var(--gray50);
  padding: 80px 24px;
  border-top: 1px solid var(--gray200);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}
.contact-info h2 {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-desc {
  font-size: 0.92rem;
  color: var(--gray600);
  line-height: 1.8;
  margin-bottom: 28px;
}
.contact-methods { display: flex; flex-direction: column; gap: 14px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--gray200);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
a.contact-method:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-1px); }
.cm-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cm-title { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.cm-note { font-size: 0.78rem; color: var(--gray600); }

/* フォーム */
.contact-form-wrap {
  background: white;
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray200);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray800);
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge-required {
  font-size: 0.68rem;
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.badge-optional {
  font-size: 0.68rem;
  background: var(--gray100);
  color: var(--gray600);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--gray200);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--gray800);
  background: var(--gray50);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,35,66,0.08);
  background: white;
}
.form-group textarea { resize: vertical; }
.btn-submit {
  padding: 14px 32px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-submit:hover { background: var(--navy2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.contact-success { text-align: center; padding: 40px 20px; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.contact-success h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.contact-success p { font-size: 0.92rem; color: var(--gray600); line-height: 1.8; }

/* ===== モーダル ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: white;
  border-radius: 16px;
  max-width: 740px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: sticky;
  top: 16px;
  left: calc(100% - 50px);
  float: right;
  margin: 16px 16px 0 0;
  background: var(--gray100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  z-index: 10;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--gray200); }
.modal-content { padding: 16px 32px 24px; }
.modal-content h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; color: var(--navy); }
.modal-content .post-meta {
  font-size: 0.8rem;
  color: var(--gray600);
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.modal-content .post-body { font-size: 0.95rem; line-height: 1.9; }
.modal-footer {
  padding: 16px 32px 24px;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--gray200);
}
.btn-x-share {
  flex: 1;
  padding: 12px;
  background: #000;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-x-share:hover { background: #333; }
.btn-copy {
  flex: 1;
  padding: 12px;
  background: var(--gray100);
  color: var(--gray800);
  border: 1px solid var(--gray200);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-copy:hover { background: var(--gray200); }
.xpost-box { padding: 32px; max-width: 500px; }
.xpost-box h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--navy); font-weight: 800; }
.xpost-textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--gray200);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.7;
  resize: none;
  height: 180px;
  font-family: inherit;
  color: var(--gray800);
}
.xpost-actions { display: flex; gap: 12px; margin-top: 16px; }
.xpost-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
}

/* ===== Markdownレンダリング ===== */
.post-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gray200);
}
.post-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 8px;
}
.post-body p { margin-bottom: 14px; }
.post-body ul, .post-body ol {
  margin: 12px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-body li { line-height: 1.7; }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 8px 16px;
  color: var(--gray600);
  background: var(--gray50);
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-style: italic;
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--gray200);
  margin: 24px 0;
}
.post-body strong { font-weight: 700; color: var(--navy); }
.post-body em { font-style: italic; }
.post-body code {
  background: var(--gray100);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}
.md-table-wrap { overflow-x: auto; margin: 16px 0; }
.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.md-table th {
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
}
.md-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--gray200);
  vertical-align: top;
}
.md-table tr:nth-child(even) td { background: var(--gray50); }
.md-table tr:hover td { background: rgba(10,35,66,0.03); }

/* ===== フッター ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-x-link {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.footer-x-link:hover { opacity: 0.8; }
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-top: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr 260px; }
}
@media (max-width: 900px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .follow-banner-inner { flex-direction: column; text-align: center; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .profile-card { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
  .profile-tags { justify-content: center; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 20px 64px; }
  .hero-stats { padding: 14px 16px; }
  .stat-item { padding: 0 16px; }
  .posts-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 16px; }
  .modal-footer { flex-direction: column; padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .hero-ctas { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ===== アフィリエイト表示 ===== */
.affiliate-hero-section { background: #fffbeb; border-top: 1px solid #fde68a; border-bottom: 1px solid #fde68a; padding: 20px 0; }
.affiliate-label { font-size: 0.72rem; font-weight: 700; color: #92400e; letter-spacing: 0.05em; margin-bottom: 12px; }
.affiliate-hero-row { display: flex; gap: 16px; flex-wrap: wrap; }
.affiliate-hero-card { background: white; border-radius: 10px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); min-width: 220px; max-width: 320px; flex: 1; }
.ahc-banner { margin-bottom: 8px; line-height: 0; }
.ahc-banner img { max-width: 100%; border-radius: 6px; }
.ahc-name { font-size: 0.8rem; font-weight: 700; color: #1e293b; margin-bottom: 2px; }
.ahc-desc { font-size: 0.75rem; color: #64748b; }

/* サイドバーアフィリエイト */
.sidebar-affiliate-card { padding: 14px 16px !important; }
.sb-affiliate-label { font-size: 0.68rem; font-weight: 700; color: #92400e; letter-spacing: 0.04em; margin-bottom: 4px; }
.sb-affiliate-name { font-size: 0.82rem; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.sb-affiliate-banner { line-height: 0; margin-bottom: 6px; }
.sb-affiliate-banner img { max-width: 100%; border-radius: 6px; }
.sb-affiliate-desc { font-size: 0.75rem; color: #64748b; line-height: 1.5; }

/* 記事下アフィリエイト */
.article-affiliate-section { margin-top: 32px; padding-top: 24px; border-top: 2px dashed #fde68a; }
.article-aff-label { font-size: 0.72rem; font-weight: 700; color: #92400e; letter-spacing: 0.05em; margin-bottom: 12px; }
.article-aff-row { display: flex; gap: 14px; flex-wrap: wrap; }
.article-aff-card { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 14px; flex: 1; min-width: 200px; }
.article-aff-card img { max-width: 100%; border-radius: 6px; }
.article-aff-name { font-size: 0.8rem; font-weight: 700; color: #1e293b; margin-top: 8px; }
.article-aff-desc { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
