/* ========================================
   ベースタイポグラフィ
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 
               'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f5f7fa 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* タイポグラフィ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: #1a1a1a;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.75em;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1em;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0052a3;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

time {
  color: #666;
}

/* ========================================
   レイアウト
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
  background: #ffffff;
  color: #2c3e50;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e5e5;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand a {
  display: block;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.nav-brand a:hover {
  opacity: 0.8;
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
  position: static;
}

.nav-link {
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: #f8f9fa;
  color: #004aad;
}

.nav-link.active {
  background-color: #004aad;
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: #2c3e50;
  transition: all 0.3s ease;
}

/* 固定ヘッダーのためのスペーサー */
body {
  padding-top: 70px;
}

/* ========================================
   パンくずリスト
   ======================================== */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: #666;
}

.breadcrumb a {
  color: #0066cc;
}

.breadcrumb span {
  margin: 0 8px;
  color: #999;
}

/* ========================================
   ページヘッダー
   ======================================== */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.page-header .meta {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

.taxonomy-icon {
  margin-right: 8px;
}

/* ========================================
   検索UI
   ======================================== */
.search-container {
  margin-bottom: 40px;
  padding: 24px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-hint {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #666;
}

/* ========================================
   記事カードUI
   ======================================== */
.article-list {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}

.article-card {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
  transform: translateY(-2px);
}

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

.article-card h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.article-card h2 a {
  color: #1a1a1a;
  text-decoration: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.article-card h2 a:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.article-card .meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.article-card .meta a {
  color: #0066cc;
}

.article-card .excerpt {
  color: #555;
  margin-bottom: 12px;
  line-height: 1.6;
}

.article-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.tag a {
  color: #ffffff;
  text-decoration: none;
}

.tag a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ========================================
   パンくずリスト
   ======================================== */
.breadcrumb {
  background: #f8f9fa;
  padding: 16px 0;
  margin-bottom: 0;
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: #999;
}

.breadcrumb-item a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #0052a3;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #333;
  font-weight: 500;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.article-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 56px;
  min-height: 320px;
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.95), rgba(0, 47, 108, 0.9));
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.85), rgba(0, 47, 108, 0.7));
  z-index: 1;
}

.article-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0 96px;
  color: #ffffff;
}

.article-hero__badge {
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.article-hero__content h1 {
  font-size: clamp(2rem, 2.6vw + 1.2rem, 3rem);
  margin: 20px 0 16px;
  line-height: 1.3;
  color: #ffffff;
  font-weight: 700;
}

.article-hero__lead {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.95);
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   記事レイアウト
   ======================================== */
.main {
  padding-bottom: 60px;
}

.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 0;
}

/* サイドバーが空の場合は非表示 */
.article-sidebar:empty {
  display: none;
}

/* サイドバーが非表示の場合、レイアウトを1カラムに */
.article-layout:has(.article-sidebar:empty),
.article-layout:has(.article-sidebar[style*="display: none"]) {
  grid-template-columns: 1fr;
}

/* サイドバー */
.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* 目次 */
.article-toc {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(15, 35, 95, 0.12);
  border: 1px solid rgba(15, 35, 95, 0.1);
  position: sticky;
  top: 100px;
}

.article-toc-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f235f;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 74, 173, 0.15);
}

.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.article-toc ol li {
  padding-left: 20px;
  position: relative;
}

.article-toc ol li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #004aad, #00a2d6);
}

.article-toc a {
  text-decoration: none;
  color: #2d3a64;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: all 0.2s ease;
  display: block;
  padding: 4px 0;
}

.article-toc a:hover {
  color: #004aad;
  padding-left: 8px;
}

/* 記事の要点と重要数値 */
.article-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 2px solid #f0f0f0;
}

.summary-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(15, 35, 95, 0.1);
  border: 1px solid rgba(15, 35, 95, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(15, 35, 95, 0.15);
}

.summary-card h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #0f235f;
  font-weight: 700;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.summary-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  align-items: start;
  font-weight: 500;
  color: #2d3a64;
  line-height: 1.6;
}

.summary-list li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #004aad, #00a2d6);
  color: #fff;
  font-size: 0.9rem;
  margin-top: 2px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 74, 173, 0.3);
}

.summary-facts {
  display: grid;
  gap: 16px;
}

.fact-card {
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.1), rgba(0, 162, 214, 0.1));
  border: 1px solid rgba(0, 74, 173, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.1);
}

.fact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.15);
  border-color: rgba(0, 74, 173, 0.3);
}

.fact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f235f;
  margin-bottom: 6px;
  font-weight: 600;
}

.fact-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #00204d;
  margin-bottom: 6px;
  line-height: 1.2;
}

.fact-description {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
}

.article-detail h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.article-detail .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.article-detail .meta time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-detail .meta time::before {
  content: '📅';
  font-size: 0.85em;
}

.article-detail .meta .author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-detail .meta .author::before {
  content: '✍️';
  font-size: 0.85em;
}

.article-detail .meta .category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-detail .meta .category::before {
  content: '📁';
  font-size: 0.85em;
}

.article-detail .meta a {
  color: #0066cc;
  font-weight: 500;
  transition: color 0.2s ease;
}

.article-detail .meta a:hover {
  color: #0052a3;
}

.hero-image-container {
  margin-bottom: 40px;
  margin-top: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.hero-image-container:hover .hero-image {
  transform: scale(1.02);
}

/* 本文中の画像 */
.article-content .body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.article-content .body {
  line-height: 1.9;
  color: #2d2d2d;
  font-size: 1.0625rem;
}

/* セクションスタイル */
.article-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
}

.article-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.article-content .body h2 {
  font-size: 2rem;
  margin-top: 56px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid #004aad;
  font-weight: 700;
  color: #0f235f;
  line-height: 1.3;
  position: relative;
}

.article-content .body h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #004aad, #00a2d6);
}

.article-content .body h3 {
  font-size: 1.625rem;
  margin-top: 40px;
  margin-bottom: 18px;
  font-weight: 600;
  color: #0f235f;
  line-height: 1.4;
  padding-left: 16px;
  border-left: 4px solid #004aad;
}

.article-content .body h4 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #2d2d2d;
}

.article-content .body h5 {
  font-size: 1.125rem;
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #2d2d2d;
}

.article-content .body h6 {
  font-size: 1rem;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2d2d2d;
}

.article-content .body p {
  margin-bottom: 1.8em;
  line-height: 2;
  color: #2d3a64;
  font-size: 1.0625rem;
}

.article-content .body strong {
  font-weight: 600;
  color: #1a1a1a;
}

.article-content .body em {
  font-style: italic;
  color: #2d2d2d;
}

.article-content .body mark {
  background-color: #fff3cd;
  color: #856404;
  padding: 2px 4px;
  border-radius: 3px;
}

.article-content .body small {
  font-size: 0.875em;
  color: #666;
}

.article-content .body sub,
.article-content .body sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.article-content .body sup {
  top: -0.5em;
}

.article-content .body sub {
  bottom: -0.25em;
}

.article-content .body kbd {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 2px #fff;
  color: #333;
  display: inline-block;
  font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace;
  font-size: 0.9em;
  padding: 2px 6px;
}

.article-content .body samp {
  font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace;
  font-size: 0.9em;
  color: #d63384;
}

.article-content .body var {
  font-style: italic;
  color: #0f235f;
}

.article-content .body abbr {
  text-decoration: underline dotted;
  cursor: help;
  color: #0066cc;
}

.article-content .body cite {
  font-style: italic;
  color: #666;
}

.article-content .body q {
  quotes: '"' '"' "'" "'";
  font-style: italic;
  color: #555;
}

.article-content .body q::before {
  content: open-quote;
}

.article-content .body q::after {
  content: close-quote;
}

.article-content .body ul {
  list-style-type: disc;
  margin-left: 32px;
  margin-bottom: 1.8em;
  padding-left: 12px;
}

.article-content .body ol,
.body ol,
article .body ol {
  list-style: none !important;
  counter-reset: list-counter;
  margin-left: 0;
  margin-bottom: 1.8em;
  padding-left: 0;
}

.article-content .body ol li,
.body ol li,
article .body ol li {
  counter-increment: list-counter;
  margin-bottom: 0.8em;
  line-height: 2;
  color: #2d3a64;
  position: relative;
  padding-left: 2.5em;
  list-style: none !important;
}

.article-content .body ol li::before,
.body ol li::before,
article .body ol li::before {
  content: counter(list-counter) !important;
  position: absolute;
  left: 0;
  top: 0;
  color: #004aad !important;
  font-weight: 700 !important;
  font-size: 1.2em !important;
  line-height: 2;
  min-width: 1.5em;
  display: inline-block;
  z-index: 1;
}

.article-content .body li {
  margin-bottom: 0.8em;
  line-height: 2;
  color: #2d3a64;
}

.article-content .body li ul,
.article-content .body li ol {
  margin-top: 0.6em;
  margin-bottom: 0.6em;
}

.article-content .body a {
  color: #0066cc;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-weight: 500;
}

.article-content .body a:hover {
  color: #0052a3;
  text-decoration: underline;
}

.article-content .body blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 4px solid #0066cc;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-style: italic;
  color: #555;
}

.article-content .body blockquote p {
  margin-bottom: 0.8em;
}

.article-content .body blockquote p:last-child {
  margin-bottom: 0;
}

/* 図表とキャプション */
.article-content .body figure {
  margin: 32px 0;
  text-align: center;
}

.article-content .body figure img {
  margin: 0;
}

.article-content .body figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  text-align: center;
}

/* 補足情報 */
.article-content .body aside {
  margin: 24px 0;
  padding: 16px 20px;
  background-color: #f8f9fa;
  border-left: 4px solid #0066cc;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #555;
}

/* 折りたたみ要素 */
.article-content .body details {
  margin: 24px 0;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.article-content .body summary {
  font-weight: 600;
  color: #0f235f;
  cursor: pointer;
  padding: 8px;
  margin: -16px -16px 16px -16px;
  border-radius: 8px 8px 0 0;
  transition: background-color 0.2s ease;
}

.article-content .body summary:hover {
  background-color: #f0f0f0;
}

.article-content .body details[open] summary {
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 12px;
}

.article-content .body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content .body hr {
  border: none;
  border-top: 2px solid #e5e5e5;
  margin: 40px 0;
}

.article-content .body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  overflow-x: auto;
  display: block;
}

.article-content .body table thead {
  background-color: #f8f9fa;
}

.article-content .body table th,
.article-content .body table td {
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  text-align: left;
}

.article-content .body table th {
  font-weight: 600;
  color: #1a1a1a;
}

.article-content .body code {
  background-color: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace;
  color: #d63384;
  border: 1px solid #e5e5e5;
}

.article-content .body pre {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.6em;
  border: 1px solid #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content .body pre code {
  background-color: transparent;
  padding: 0;
  color: #d4d4d4;
  border: none;
  font-size: 0.9em;
  line-height: 1.6;
}

/* 定義リスト */
.article-content .body dl,
.body dl,
article .body dl {
  margin: 24px 0;
  padding: 0;
}

.article-content .body dt,
.body dt,
article .body dt {
  font-weight: 600;
  color: #0f235f;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.article-content .body dt:first-child {
  margin-top: 0;
}

.article-content .body dd,
.body dd,
article .body dd {
  margin-left: 24px;
  margin-bottom: 12px;
  color: #2d3a64;
  line-height: 1.8;
}

/* ステップガイド（選び方のポイント） */
.selection-guide,
.article-content .body .selection-guide,
.body .selection-guide {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-step,
.article-content .body .guide-step,
.body .guide-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.guide-step:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.step-number,
.article-content .body .step-number,
.body .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #004aad, #00a2d6);
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.5em !important;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

.step-content,
.article-content .body .step-content,
.body .step-content {
  flex: 1;
}

.step-content h3,
.article-content .body .step-content h3,
.body .step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f235f;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.step-content p,
.article-content .body .step-content p,
.body .step-content p {
  margin: 0;
  line-height: 1.8;
  color: #2d3a64;
  font-size: 1rem;
}

/* FAQセクション */
.faq-section {
  margin-top: 48px;
  padding: 32px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 35, 95, 0.08);
  border: 1px solid rgba(15, 35, 95, 0.04);
}

.faq-section h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: #0f235f;
  font-weight: 700;
}

.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f235f;
  margin-bottom: 12px;
  line-height: 1.5;
}

.faq-item p {
  color: #2d3a64;
  line-height: 1.8;
  margin: 0;
}

.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #f0f0f0;
}

.article-footer .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-footer .tags strong {
  margin-right: 8px;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.article-footer .tag {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.article-footer .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.article-footer .tag a {
  color: #ffffff;
  text-decoration: none;
}

.article-footer .tag a:hover {
  color: #ffffff;
  text-decoration: none;
}

.article-detail .tags {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-detail .tags strong {
  margin-right: 8px;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

/* おすすめの相談窓口セクション */
.consultation-section,
.article-content .consultation-section,
.body .consultation-section {
  margin-top: 56px;
  margin-bottom: 48px;
  padding: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15, 35, 95, 0.1);
  border: 1px solid rgba(15, 35, 95, 0.08);
}

.consultation-section h2,
.article-content .consultation-section h2,
.body .consultation-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f235f;
  margin: 0 0 20px 0;
  padding-bottom: 16px;
  border-bottom: 3px solid #004aad;
  position: relative;
}

.consultation-section h2::before,
.article-content .consultation-section h2::before,
.body .consultation-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #004aad, #00a2d6);
}

.consultation-section p,
.article-content .consultation-section p,
.body .consultation-section p {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #2d3a64;
  margin: 0;
}

/* ========================================
   記事ナビゲーション
   ======================================== */
.article-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.nav-prev,
.nav-next {
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  transition: background-color 0.2s ease;
}

.nav-next {
  text-align: right;
}

.nav-prev:hover,
.nav-next:hover {
  background-color: #f0f0f0;
}

.nav-label {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-prev a,
.nav-next a {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: none;
}

.nav-prev a:hover,
.nav-next a:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* ========================================
   検索結果なし
   ======================================== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results p {
  margin-bottom: 8px;
}

.no-results-hint {
  font-size: 0.9rem;
  color: #999;
}

/* ========================================
   フッター
   ======================================== */
.footer {
  background: #2c3e50;
  color: #ffffff;
  padding: 60px 0 30px;
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.footer-section {
  text-align: left;
}

.footer-brand {
  padding-right: 40px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.footer-brand p {
  color: #bdc3c7;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

.footer-legal {
  min-width: 200px;
}

.footer-legal h4 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
  display: inline-block;
}

.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal ul li {
  margin-bottom: 12px;
}

.footer-legal ul li a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
  display: block;
  padding: 4px 0;
}

.footer-legal ul li a:hover {
  color: #3498db;
  transform: translateX(5px);
}

.footer-nav {
  min-width: 200px;
}

.footer-nav h4 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
  display: inline-block;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li {
  margin-bottom: 12px;
}

.footer-nav ul li a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
  display: block;
  padding: 4px 0;
}

.footer-nav ul li a:hover {
  color: #3498db;
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: #95a5a6;
  margin: 5px 0;
  font-size: 14px;
}

/* ========================================
   記事一覧ページ（リストページ）
   ======================================== */

/* ヒーローセクション（マガジンTOP用） */
.hero.articles {
  background-color: #004aad;
  height: 30vh;
  min-height: 200px;
  max-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  padding-bottom: 40px;
  margin-top: 0;
}

.hero-image-container {
  width: 90%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-image-desktop {
  display: block;
}

.hero-image-mobile {
  display: none;
}

/* メインコンテンツ */
.main {
  padding: 60px 0;
  background: #f8f9fa;
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin: 0;
}

/* 最新記事セクション */
.latest-articles {
  margin-bottom: 60px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-content {
  padding: 20px;
}

.article-card .article-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.article-card .article-category {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.article-card .article-date {
  color: #6c757d;
}

.article-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* フィルターセクション */
.filter-section {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-tags .tag {
  padding: 8px 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tags .tag:hover {
  border-color: #3498db;
  color: #3498db;
}

.filter-tags .tag.active {
  background: #3498db;
  border-color: #3498db;
  color: white;
}

/* カテゴリー別記事 */
.category-articles {
  margin-bottom: 60px;
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.category-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.category-header {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 20px 24px;
  margin: 0;
}

.category-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: white;
}

.category-header p {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.9;
}

.category-section .article-list {
  padding: 0;
  margin: 0;
}

.list-article {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.list-article:last-child {
  border-bottom: none;
}

.list-article:hover {
  background: #f8f9fa;
}

.list-article-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.list-article .article-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-article .article-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
}

.list-article .article-category {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.list-article .article-date {
  color: #6c757d;
}

.list-article .article-text h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.3;
}

.list-article .article-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
}

/* ご利用上の注意 */
.disclaimer {
  background: white;
  border-top: 2px solid #3498db;
  padding: 40px 0;
  margin-top: 60px;
}

.disclaimer-content {
  text-align: center;
}

.disclaimer h2 {
  color: #3498db;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.disclaimer-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.disclaimer-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #34495e;
  line-height: 1.7;
}

.disclaimer-text ul {
  list-style: none;
  padding: 0;
}

.disclaimer-text li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: #5a6c7d;
  line-height: 1.6;
}

.disclaimer-text li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
}

/* ========================================
   レスポンシブ
   ======================================== */

@media (max-width: 1200px) {
  .article-layout {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .article-summary {
    grid-template-columns: 1fr;
  }

  .summary-facts {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-content {
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  .nav-menu {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 1;
  }

  .nav-link {
    font-size: 11px;
    padding: 8px 10px;
    white-space: nowrap;
    min-width: fit-content;
  }

  .nav-toggle {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    padding-right: 0;
  }

  .article-hero {
    border-radius: 0;
    margin-bottom: 40px;
  }

  .article-hero__content {
    padding: 60px 0;
  }

  .article-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-sidebar {
    position: static;
    max-height: none;
    top: auto;
  }

  .article-toc {
    position: static;
    top: auto;
  }

  .summary-card {
    padding: 28px;
  }

  .summary-card,
  .article-content .body {
    padding: 24px;
  }

  .article-content .body {
    font-size: 1rem;
  }

  .article-content .body h2 {
    font-size: 1.5rem;
    margin-top: 36px;
  }

  .article-content .body h3 {
    font-size: 1.25rem;
    margin-top: 28px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .article-card h2 {
    font-size: 1.25rem;
  }

  .article-navigation {
    grid-template-columns: 1fr;
  }

  .nav-next {
    text-align: left;
  }

  .article-detail .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .key-figure-value {
    font-size: 1.5rem;
  }
}
