/* ============================================================
   転職カルテ メインCSS
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #1a2a3a; background: #f5f7fa; font-size: 14px; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

:root {
  --navy:        #1c3a5f;
  --navy-hover:  #254e82;
  --teal:        #1d8c8c;
  --teal-hover:  #28a0a0;
  --teal-light:  #e6f5f5;
  --blue-bg:     #edf4fb;
  --gray-border: #dde5ed;
  --gray-text:   #6b8299;
  --mid-text:    #3a5068;
}

/* ===== HEADER ===== */
.site-header {
  background: #fff; border-bottom: 1px solid var(--gray-border);
  height: 68px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 6px rgba(28,58,95,.07);
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 44px; height: 44px; background: var(--navy); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 300; flex-shrink: 0;
}
.logo-text-wrap { line-height: 1.25; }
.logo-small { font-size: 11px; color: var(--gray-text); }
.logo-big   { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-size: 13.5px; font-weight: 600; color: #1a2a3a;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s; white-space: nowrap;
}
.site-nav a:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ===== HERO（トップページ）===== */
.hero { position: relative; }
.hero-bg-img { width: 100%; height: auto; display: block; }
.hero-btns {
  position: absolute; top: 81%; left: 5%;
  display: flex; gap: 12px; flex-wrap: wrap; z-index: 2;
}
.btn-fill {
  background: var(--navy); color: #fff; padding: 13px 22px; border-radius: 7px;
  font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 8px rgba(28,58,95,.26); transition: background .2s, transform .15s;
}
.btn-fill:hover { background: var(--navy-hover); transform: translateY(-1px); }
.btn-stroke {
  background: rgba(255,255,255,.88); color: var(--navy); border: 2px solid var(--navy);
  padding: 11px 22px; border-radius: 7px; font-size: 13.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.btn-stroke:hover { background: var(--navy); color: #fff; }
.hero-inner {
  position: absolute; top: 50%; right: 2%; transform: translateY(-50%);
  width: 22%; min-width: 220px; max-width: 280px; z-index: 2;
}
.situation-panel {
  background: #fff; border-radius: 12px; padding: 18px 16px;
  box-shadow: 0 3px 18px rgba(28,58,95,.12);
}
.sp-title { font-size: 12.5px; font-weight: 700; color: var(--teal); margin-bottom: 12px; }
.sp-list { list-style: none; }
.sp-list li {
  padding: 7px 0; border-bottom: 1px solid #f0f4f8;
  font-size: 12.5px; color: #1a2a3a;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: color .15s;
}
.sp-list li:last-child { border-bottom: none; }
.sp-list li:hover { color: var(--teal); }
.sp-item-inner { display: flex; align-items: center; gap: 7px; }
.ic-sm {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue-bg);
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
  overflow: hidden;
}
.ic-sm img { width: 18px; height: 18px; object-fit: contain; }
.nc-icon img { width: 20px; height: 20px; object-fit: contain; }
.sit-card-ico img { width: 26px; height: 26px; object-fit: contain; }
.aff-logo-wrap {
  width: 80px; height: 38px; flex-shrink: 0;
  overflow: hidden; border-radius: 6px;
  background: #f5f7fa;
  display: flex; align-items: center; justify-content: center;
}
.aff-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.ch { color: var(--gray-text); font-size: 12px; }
.btn-all-sp {
  display: block; background: var(--teal); color: #fff; text-align: center;
  padding: 9px; border-radius: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 700;
  transition: background .2s;
}
.btn-all-sp:hover { background: var(--teal-hover); }

/* ===== MAIN WRAP ===== */
.main-wrap { max-width: 1220px; margin: 0 auto; padding: 28px 24px 0; }

/* ===== NAV CARDS ===== */
.nav-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 28px; }
.nav-card { background: #fff; border: 1px solid var(--gray-border); border-radius: 12px; padding: 18px 16px; transition: box-shadow .2s; }
.nav-card:hover { box-shadow: 0 4px 16px rgba(28,58,95,.08); }
.nc-header { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-border); }
.nc-icon { width: 32px; height: 32px; background: var(--blue-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.nc-title { font-size: 15px; font-weight: 800; color: var(--navy); }
.nc-list { list-style: none; }
.nc-list li { padding: 6.5px 0; border-bottom: 1px solid #f2f5f8; font-size: 12.5px; color: #1a2a3a; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: color .15s; }
.nc-list li:last-child { border-bottom: none; }
.nc-list li:hover, .nc-list li a:hover { color: var(--teal); }
.nc-list li a { display: flex; align-items: center; justify-content: space-between; width: 100%; color: inherit; }
.nc-item-inner { display: flex; align-items: center; gap: 7px; }

/* ===== SECTION TITLE ===== */
.sec-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 14px; padding-bottom: 9px; border-bottom: 2px solid var(--navy); }

/* ===== TWO-COL（トップ）===== */
.two-col { display: grid; grid-template-columns: 1fr 288px; gap: 20px; margin-bottom: 28px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cmp-table th, .cmp-table td { border: 1px solid var(--gray-border); padding: 9px 10px; text-align: center; vertical-align: middle; }
.cmp-table th.empty-th { background: #fff; }
.cmp-table th { font-weight: 700; color: #1a2a3a; }
.th-h  { background: #e8f0f8; } .th-ph { background: #e6f5ee; }
.th-ds { background: #fef3e8; } .th-en { background: #f0e8f8; } .th-hv { background: #e6f8f4; }
.cmp-table td.row-lbl { text-align: left; font-weight: 700; background: #fff; white-space: nowrap; }
.cmp-table tbody tr:nth-child(even) td:not(.row-lbl) { background: #f8fafb; }
.th-ico { font-size: 16px; display: block; margin-bottom: 3px; }
.tbl-note { font-size: 11px; color: var(--gray-text); margin-top: 8px; }
.aff-card { background: #fff; border: 1px solid var(--gray-border); border-radius: 12px; padding: 18px 16px; }
.aff-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f4f8; }
.aff-item:last-of-type { border-bottom: none; }
.aff-logo { width: 76px; height: 38px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; line-height: 1.3; text-align: center; flex-shrink: 0; }
.aff-logo.mynavi  { background: #fff0f0; color: #cc2200; border: 1px solid #f8c0b8; }
.aff-logo.pharma  { background: #f0faf5; color: #1a8050; border: 1px solid #a8dfc0; }
.aff-logo.yakujob { background: #eef4ff; color: #1a48cc; border: 1px solid #aac0f0; }
.aff-info { flex: 1; } .aff-name { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.aff-desc { font-size: 11px; color: var(--gray-text); line-height: 1.5; }
.btn-detail { background: var(--navy); color: #fff; padding: 6px 10px; border-radius: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; display: inline-block; transition: background .2s; margin-top: 2px; }
.btn-detail:hover { background: var(--navy-hover); }
.aff-all { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--teal); font-size: 13px; font-weight: 700; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-border); }

/* ===== SIT CARDS ===== */
.sit-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 28px; }
.sit-card { background: #fff; border: 1px solid var(--gray-border); border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color .2s, box-shadow .2s; text-decoration: none; color: inherit; }
.sit-card:hover { border-color: var(--teal); box-shadow: 0 2px 10px rgba(29,140,140,.12); }
.sit-card-ico { width: 40px; height: 40px; background: var(--blue-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.sit-card-lbl  { font-size: 13.5px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.sit-card-dest { font-size: 11.5px; color: var(--teal); font-weight: 500; }

/* ===== ARTICLES（トップ）===== */
.articles-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.articles-row h2 { font-size: 16px; font-weight: 800; color: var(--navy); }
.link-all { font-size: 13px; color: var(--teal); font-weight: 600; }
.link-all:hover { color: var(--teal-hover); }
.articles-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 52px; }
.art-card { background: #fff; border: 1px solid var(--gray-border); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; text-decoration: none; color: inherit; }
.art-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.art-thumb { width: 100%; height: 118px; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.art-thumb-1 { background: linear-gradient(135deg,#d6e8f8,#becee8); }
.art-body { padding: 12px 12px 14px; }
.art-tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 700; margin-bottom: 6px; background: var(--blue-bg); color: var(--navy); }
.art-title { font-size: 12.5px; font-weight: 700; color: #1a2a3a; line-height: 1.6; }

/* ===== 記事ページ ===== */
.page-wrap { max-width: 1160px; margin: 0 auto; padding: 24px 20px 60px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-text); margin-bottom: 20px; }
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.main-col { background: #fff; border-radius: 12px; padding: 32px 36px 40px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }

/* 記事ヘッダー */
.article-header { display: grid; grid-template-columns: 1fr 240px; gap: 24px; margin-bottom: 24px; }
.article-tag-row { margin-bottom: 10px; }
.article-h1 { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.4; margin-bottom: 10px; }
.article-desc { font-size: 13px; color: var(--gray-text); line-height: 1.7; margin-bottom: 14px; }
.article-meta { display: flex; gap: 18px; font-size: 12px; color: var(--gray-text); }
.article-hero-img { border-radius: 10px; overflow: hidden; height: 180px; background: linear-gradient(135deg,#d6e8f8,#b8d0e8); display: flex; align-items: center; justify-content: center; font-size: 40px; }

/* カルテボックス */
.karte-box { background: var(--blue-bg); border: 1px solid #c8dff0; border-radius: 10px; padding: 18px 20px; margin-bottom: 28px; }
.karte-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.karte-row { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid #d0e4f0; padding: 10px 0; }
.karte-row:last-child { border-bottom: none; }
.karte-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--navy); }
.karte-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.ki-pink { background: #fde8f0; } .ki-orange { background: #fdf0e0; }
.ki-blue { background: #e0eef8; } .ki-green { background: #e0f5ee; }
.karte-text { font-size: 13px; color: #2a4060; line-height: 1.6; padding-left: 8px; }

/* 目次 */
.toc-box { border: 1px solid var(--gray-border); border-radius: 10px; padding: 18px 20px; margin-bottom: 32px; background: #fafcfe; }
.toc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.toc-title { font-size: 14px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 7px; }
.toc-toggle { font-size: 12px; color: var(--teal); cursor: pointer; }
.toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.toc-item { font-size: 13px; color: var(--teal); padding: 3px 0; border-bottom: 1px dashed #d0e4f0; }
.toc-item a { color: var(--teal); } .toc-item a:hover { color: var(--navy); }
.toc-item.sub { padding-left: 14px; color: #3a6088; font-size: 12px; }

/* 本文 */
.article-body h2, .article-content h2 { font-size: 20px; font-weight: 800; color: var(--navy); border-left: 4px solid var(--teal); padding: 8px 0 8px 14px; margin: 36px 0 16px; line-height: 1.4; }
.article-body h3, .article-content h3 { font-size: 16px; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--blue-bg); padding-bottom: 6px; margin: 24px 0 12px; }
.article-body p, .article-content p { font-size: 14px; line-height: 1.9; color: #2a3a4a; margin-bottom: 16px; }
.article-body ul, .article-content ul { padding-left: 20px; margin-bottom: 16px; }
.article-body li, .article-content li { font-size: 14px; padding: 4px 0; line-height: 1.8; }
.article-h2 { font-size: 20px; font-weight: 800; color: var(--navy); border-left: 4px solid var(--teal); padding: 8px 0 8px 14px; margin: 36px 0 16px; }
.article-h3 { font-size: 16px; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--blue-bg); padding-bottom: 6px; margin: 24px 0 12px; }

/* 情報ボックス */
.info-box { background: var(--blue-bg); border: 1px solid #c0d8f0; border-radius: 8px; padding: 16px 18px; margin: 18px 0; }
.info-box-title { font-size: 13px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.info-box ul { list-style: none; } .info-box li { font-size: 13px; color: #2a4060; padding: 4px 0; border-bottom: 1px solid #d0e4f0; display: flex; align-items: baseline; gap: 8px; }
.info-box li:last-child { border-bottom: none; } .info-box li::before { content: '・'; color: var(--teal); font-weight: 700; }
.info-box-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.info-note { font-size: 11px; color: var(--gray-text); margin-top: 10px; }

/* チェックリスト */
.checklist-box { border: 1px solid #b0d8b0; border-radius: 8px; padding: 16px 18px; margin: 18px 0; background: #f5fcf5; }
.checklist-title { font-size: 13px; font-weight: 700; color: #1a6040; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.checklist-box ul { list-style: none; }
.checklist-box li { font-size: 13px; color: #2a4060; padding: 5px 0; display: flex; align-items: flex-start; gap: 8px; border-bottom: 1px solid #c8e8c8; }
.checklist-box li:last-child { border-bottom: none; }
.check-icon { color: var(--teal); font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* まとめ */
.summary-box { background: #f0f6fb; border: 2px solid var(--teal); border-radius: 10px; padding: 20px 22px; margin: 28px 0; }
.summary-title { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.summary-box ul { list-style: none; }
.summary-box li { font-size: 13.5px; color: #2a4060; padding: 5px 0; display: flex; align-items: flex-start; gap: 8px; border-bottom: 1px solid #c8dff0; }
.summary-box li:last-child { border-bottom: none; }
.summary-box li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* 記事下CTA */
.article-bottom-cta { margin: 32px 0; }
.cta-box-full { background: var(--teal-light); border: 1px solid #a8d8d8; border-radius: 10px; padding: 22px 24px; }
.cta-box-full-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.cta-box-full-sub { font-size: 13px; color: var(--gray-text); margin-bottom: 14px; }
.btn-cta-full { display: inline-block; background: var(--teal); color: #fff; padding: 12px 24px; border-radius: 7px; font-size: 14px; font-weight: 700; transition: background .2s; }
.btn-cta-full:hover { background: var(--teal-hover); }

/* 関連記事 */
.related-posts { margin-top: 36px; }
.related-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 14px; padding-bottom: 9px; border-bottom: 2px solid var(--navy); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* ===== サイドバー ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
.sb-card { background: #fff; border: 1px solid var(--gray-border); border-radius: 12px; padding: 18px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.sb-title { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.pop-article { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #f0f4f8; }
.pop-article:last-of-type { border-bottom: none; }
.pop-rank { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pop-rank.r1 { background: #c8960a; } .pop-rank.r2 { background: #7a8a9a; } .pop-rank.r3 { background: #a06840; }
.pop-thumb { width: 54px; height: 42px; border-radius: 6px; background: linear-gradient(135deg,#d0e4f8,#b8cce0); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; overflow: hidden; }
.pop-info { flex: 1; min-width: 0; }
.pop-title { font-size: 12px; font-weight: 600; color: var(--navy); line-height: 1.5; margin-bottom: 4px; display: block; }
.pop-title:hover { color: var(--teal); }
.pop-tag { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 600; background: var(--blue-bg); color: var(--teal); }
.sb-link { font-size: 12px; color: var(--teal); display: flex; align-items: center; gap: 3px; }
.sb-link:hover { color: var(--navy); }
.cta-box { background: var(--teal-light); border: 1px solid #a8d8d8; border-radius: 12px; padding: 18px 16px; text-align: center; }
.cta-box-title { font-size: 14px; font-weight: 800; color: var(--navy); line-height: 1.5; margin-bottom: 6px; }
.cta-box-sub { font-size: 12px; color: var(--gray-text); margin-bottom: 14px; line-height: 1.6; }
.cta-box-img { width: 80px; height: 64px; margin: 0 auto 14px; background: linear-gradient(135deg,#c0ddf0,#a8c8e0); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.btn-cta { display: block; background: var(--teal); color: #fff; padding: 11px; border-radius: 7px; font-size: 13px; font-weight: 700; transition: background .2s; }
.btn-cta:hover { background: var(--teal-hover); }
.tool-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f0f4f8; font-size: 13px; color: var(--navy); font-weight: 600; cursor: pointer; }
.tool-item:last-of-type { border-bottom: none; }
.tool-item:hover { color: var(--teal); }
.tool-item-left { display: flex; align-items: center; gap: 8px; }
.tool-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--blue-bg); display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: #fff; padding: 44px 40px 28px; }
.footer-inner { max-width: 1220px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.f-logo-mark { width: 40px; height: 40px; background: rgba(255,255,255,.15); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.f-logo-small { font-size: 10px; color: rgba(255,255,255,.5); }
.f-logo-big   { font-size: 17px; font-weight: 800; color: #fff; }
.footer-desc  { font-size: 12px; color: rgba(255,255,255,.62); line-height: 1.85; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { font-size: 12px; color: rgba(255,255,255,.58); padding: 4px 0; }
.footer-col li:hover, .footer-col a:hover { color: rgba(255,255,255,.95); }
.footer-col a { color: rgba(255,255,255,.58); }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; color: rgba(255,255,255,.38); text-align: center; }

/* WordPress本文デフォルトスタイル */
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.article-content blockquote { border-left: 4px solid var(--teal); padding: 12px 16px; background: var(--blue-bg); border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 13.5px; color: #2a4060; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.article-content table th, .article-content table td { border: 1px solid var(--gray-border); padding: 8px 12px; }
.article-content table th { background: var(--blue-bg); font-weight: 700; color: var(--navy); }

/* ============================================================
   タブレット（〜1024px）
   ============================================================ */
@media screen and (max-width: 1024px) {
  .hero-inner { width: 30%; min-width: 200px; }
  .nav-cards { grid-template-columns: 1fr 1fr !important; }
  .two-col { grid-template-columns: 1fr !important; }
  .articles-grid { grid-template-columns: repeat(2,1fr) !important; }
  .sit-cards { grid-template-columns: repeat(2,1fr) !important; }
  .content-layout { grid-template-columns: 1fr !important; }
  .sidebar { position: static !important; }
}

/* ============================================================
   スマホ（〜768px）
   ============================================================ */
@media screen and (max-width: 768px) {

  /* ── ヘッダー：2行レイアウト ── */
  .site-header {
    height: auto !important;
    padding: 8px 14px !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  .site-logo { flex: 0 0 auto; }
  .logo-mark { width: 34px !important; height: 34px !important; font-size: 17px !important; }
  .logo-big { font-size: 15px !important; }
  .logo-small { font-size: 10px !important; }
  .site-nav {
    flex: 0 0 100%;
    display: flex !important;
    gap: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid #eee;
    padding-top: 6px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a {
    font-size: 11px !important;
    padding: 4px 10px !important;
    white-space: nowrap !important;
    border-bottom: none !important;
    flex-shrink: 0;
  }

  /* ── ヒーロー：縦積みに完全変換 ── */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    background: #edf4fb;
  }
  .hero-bg-img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    order: 1;
    flex-shrink: 0;
  }
  .hero-btns {
    order: 2;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px 16px !important;
    gap: 10px !important;
    background: #edf4fb;
    width: 100% !important;
  }
  .btn-fill {
    justify-content: center !important;
    font-size: 14px !important;
    padding: 14px !important;
    width: 100% !important;
  }
  .btn-stroke {
    justify-content: center !important;
    font-size: 14px !important;
    padding: 12px !important;
    width: 100% !important;
  }
  .hero-inner {
    order: 3;
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px 20px !important;
    background: #edf4fb;
  }
  .situation-panel {
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(28,58,95,.1) !important;
  }

  /* ── メインコンテンツ ── */
  .main-wrap { padding: 14px 12px 0 !important; }

  /* ナビカード：1列 */
  .nav-cards { grid-template-columns: 1fr !important; gap: 10px !important; margin-bottom: 16px !important; }

  /* 比較表：横スクロール */
  .two-col { grid-template-columns: 1fr !important; gap: 14px !important; margin-bottom: 18px !important; }
  .cmp-table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .cmp-table { font-size: 11px !important; min-width: 500px; }
  .cmp-table th, .cmp-table td { padding: 7px 5px !important; }

  /* 状況カード：2列 */
  .sit-cards { grid-template-columns: repeat(2,1fr) !important; gap: 8px !important; }
  .sit-card { padding: 12px 10px !important; gap: 8px !important; }
  .sit-card-ico { width: 32px !important; height: 32px !important; font-size: 15px !important; }
  .sit-card-lbl { font-size: 12px !important; }
  .sit-card-dest { font-size: 10px !important; }

  /* 記事グリッド：2列 */
  .articles-row h2 { font-size: 14px !important; }
  .articles-grid { grid-template-columns: repeat(2,1fr) !important; gap: 10px !important; margin-bottom: 24px !important; }
  .art-thumb { height: 90px !important; font-size: 24px !important; }
  .art-title { font-size: 11.5px !important; }
  .art-body { padding: 8px !important; }

  /* ── 記事ページ ── */
  .page-wrap { padding: 12px 12px 40px !important; }
  .breadcrumb { font-size: 11px; flex-wrap: wrap; }
  .content-layout { grid-template-columns: 1fr !important; gap: 16px !important; }
  .sidebar { position: static !important; }
  .main-col { padding: 16px 14px 24px !important; border-radius: 10px !important; }
  .article-header { grid-template-columns: 1fr !important; gap: 14px !important; }
  .article-hero-img { height: 180px !important; }
  .article-h1 { font-size: 19px !important; }
  .article-meta { flex-direction: column !important; gap: 4px !important; }
  .karte-row { grid-template-columns: 85px 1fr !important; }
  .toc-grid { grid-template-columns: 1fr !important; }
  .related-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .article-body h2, .article-content h2 { font-size: 17px !important; }
  .article-body h3, .article-content h3 { font-size: 14px !important; }
  .info-box-2col { grid-template-columns: 1fr !important; }

  /* ── フッター ── */
  .site-footer { padding: 28px 16px 18px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .footer-grid > div:first-child { grid-column: 1 / -1 !important; }
  .footer-col h4 { font-size: 12px; }
  .footer-col li { font-size: 11px; }
  .f-logo-big { font-size: 15px !important; }
  .footer-desc { font-size: 11px !important; }
}
