/* AIコンパス by ALLFORCES - メインスタイルシート */

/* ===== AI Compass Design System - Color Tokens ===== */
:root {
  /* Primary Brand Colors - Deep Navy (信頼性・専門性) */
  --brand-primary: #1a365d;
  --brand-primary-hover: #153052;
  --brand-primary-pressed: #0f2440;
  --brand-primary-light: #4a7ab5;
  --brand-primary-lighter: #a3c4e8;
  --brand-primary-lightest: #e8f0fb;

  /* Secondary Brand Colors - Teal (イノベーション) */
  --brand-secondary: #0d9488;
  --brand-secondary-hover: #0a7a70;
  --brand-secondary-pressed: #065f58;
  --brand-secondary-light: #2dd4bf;
  --brand-secondary-lighter: #99f6e4;
  --brand-secondary-lightest: #e6fffa;

  /* Accent Colors */
  --brand-accent-orange: #f59e0b;
  --brand-accent-orange-light: #fbbf24;
  --brand-accent-purple: #7c3aed;
  --brand-accent-purple-light: #a78bfa;

  /* Legacy variable mapping for inline styles in pages */
  --primary-green: var(--brand-secondary);
  --primary-green-dark: var(--brand-secondary-hover);
  --secondary-blue: var(--brand-primary);
  
  /* Semantic Colors */
  --color-success: #0d9488;
  --color-success-light: #e6fffa;
  --color-warning: #f59e0b;
  --color-warning-light: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-light: #fef2f2;
  --color-info: #1a365d;
  --color-info-light: #e8f0fb;
  
  /* Neutral Colors - Atlassian's refined gray scale */
  --color-neutral-0: #ffffff;
  --color-neutral-100: #f7f8f9;
  --color-neutral-200: #f1f2f4;
  --color-neutral-300: #dfe1e6;
  --color-neutral-400: #b3b9c4;
  --color-neutral-500: #8993a4;
  --color-neutral-600: #6b778c;
  --color-neutral-700: #505f79;
  --color-neutral-800: #42526e;
  --color-neutral-900: #253858;
  --color-neutral-1000: #091e42;
  
  /* High Contrast Semantic Color System */
  --text-default: var(--color-neutral-1000);      /* Highest contrast for body text */
  --text-subtle: var(--color-neutral-700);        /* Medium contrast for secondary text */
  --text-muted: var(--color-neutral-600);         /* Low contrast for hints and labels */
  --text-disabled: var(--color-neutral-400);      /* Disabled state text */
  --text-inverse: var(--color-neutral-0);         /* White text on dark backgrounds */
  
  --surface-default: var(--color-neutral-0);      /* Main content backgrounds */
  --surface-raised: var(--color-neutral-100);     /* Card and elevated surfaces */
  --surface-sunken: var(--color-neutral-200);     /* Input fields, code blocks */
  --surface-overlay: rgba(9, 30, 66, 0.8);       /* Modal overlays */
  
  --border-default: var(--color-neutral-300);     /* Standard borders */
  --border-subtle: var(--color-neutral-200);      /* Subtle dividers */
  --border-strong: var(--color-neutral-400);      /* Emphasis borders */
  --border-inverse: var(--color-neutral-0);       /* Light borders on dark backgrounds */
  
  --link-color: var(--brand-primary);
  --link-hover-color: var(--brand-primary-hover);
  --link-visited-color: var(--brand-accent-purple);
  
  --focus-ring: var(--brand-primary-light);
  --focus-ring-offset: var(--color-neutral-0);
  
  /* Shadow System - High Contrast */
  --shadow-small: 0 1px 3px rgba(9, 30, 66, 0.2), 0 0 1px rgba(9, 30, 66, 0.1);
  --shadow-medium: 0 4px 8px rgba(9, 30, 66, 0.15), 0 0 1px rgba(9, 30, 66, 0.1);
  --shadow-large: 0 8px 16px rgba(9, 30, 66, 0.15), 0 0 1px rgba(9, 30, 66, 0.1);
  --shadow-extra-large: 0 12px 24px rgba(9, 30, 66, 0.15), 0 0 1px rgba(9, 30, 66, 0.1);
  
  /* Legacy support - mapping to new colors */
  --primary-color: var(--brand-primary);
  --primary-dark: var(--brand-primary-hover);
  --secondary-color: var(--color-neutral-600);
  --accent-color: var(--brand-accent-orange);
  --success-color: var(--color-success);
  --warning-color: var(--color-warning);
  --error-color: var(--color-danger);
  --white: var(--color-neutral-0);
  --gray-50: var(--color-neutral-100);
  --gray-100: var(--color-neutral-200);
  --gray-200: var(--color-neutral-300);
  --gray-300: var(--color-neutral-300);
  --gray-400: var(--color-neutral-400);
  --gray-500: var(--color-neutral-500);
  --gray-600: var(--color-neutral-600);
  --gray-700: var(--color-neutral-700);
  --gray-800: var(--color-neutral-800);
  --gray-900: var(--color-neutral-1000);
  
  /* Typography System - Distinctive Editorial */
  --font-family-base: 'Manrope', 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --font-family-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Consolas', monospace;
  --font-family-display: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* Spacing System - 4px base unit */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* Border Radius System */
  --radius-sm: 0.125rem;  /* 2px */
  --radius-base: 0.25rem; /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-3xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;
  
  /* Elevation System - Atlassian Style */
  --elevation-100: 0 1px 1px rgb(9 30 66 / 0.25), 0 0 1px rgb(9 30 66 / 0.31);
  --elevation-200: 0 3px 5px rgb(9 30 66 / 0.2), 0 0 1px rgb(9 30 66 / 0.31);
  --elevation-300: 0 8px 12px rgb(9 30 66 / 0.15), 0 0 1px rgb(9 30 66 / 0.31);
  --elevation-400: 0 5px 10px rgb(9 30 66 / 0.15), 0 0 1px rgb(9 30 66 / 0.31);
  --elevation-500: 0 10px 18px rgb(9 30 66 / 0.15), 0 0 1px rgb(9 30 66 / 0.31);
  
  /* Layout System */
  --max-width-container: 1440px;
  --max-width-content: 1200px;
  --max-width-text: 720px;
  --max-width-xs: 20rem;   /* 320px */
  --max-width-sm: 24rem;   /* 384px */
  --max-width-md: 28rem;   /* 448px */
  --max-width-lg: 32rem;   /* 512px */
  --max-width-xl: 36rem;   /* 576px */
  
  /* Animation System */
  --transition-fast: 150ms cubic-bezier(0.2, 0, 0.38, 0.9);
  --transition-medium: 300ms cubic-bezier(0.2, 0, 0.38, 0.9);
  --transition-slow: 500ms cubic-bezier(0.2, 0, 0.38, 0.9);
  
  /* Legacy support - gradual migration */
  --max-width: var(--max-width-content);
  --content-width: var(--max-width-text);
  --border-radius: var(--radius-lg);
  --border-radius-lg: var(--radius-xl);
  --border-radius-xl: var(--radius-2xl);
  --shadow-sm: var(--elevation-100);
  --shadow-md: var(--elevation-200);
  --shadow-lg: var(--elevation-300);
  --spacing-xs: var(--space-1);
  --spacing-sm: var(--space-2);
  --spacing-md: var(--space-4);
  --spacing-lg: var(--space-6);
  --spacing-xl: var(--space-8);
  --spacing-2xl: var(--space-12);
  --spacing-3xl: var(--space-16);
  --spacing-4xl: var(--space-24);
  --transition-normal: var(--transition-medium);
}

/* ===== Modern Reset & Base Styles ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--text-default);
  background-color: var(--surface-raised);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Modern Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-neutral-900);
  margin: 0 0 var(--space-4) 0;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--font-size-4xl); font-weight: var(--font-weight-extrabold); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }

p {
  margin: 0 0 var(--space-4) 0;
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

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

a:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

/* ===== Modern Header System ===== */
.site-header {
  background: var(--color-neutral-0);
  border-bottom: 1px solid var(--color-neutral-300);
  box-shadow: var(--elevation-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
}

.site-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  font-family: var(--font-family-display);
  text-decoration: none;
  color: var(--text-default);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: all var(--transition-fast);
}

.site-title:hover {
  color: var(--brand-primary);
  transform: none;
  text-decoration: none;
}

.site-title:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: var(--space-1);
  border-radius: var(--radius-md);
}

.ai-icon {
  width: var(--space-8);
  height: var(--space-8);
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  color: var(--color-neutral-0);
  box-shadow: var(--elevation-200);
}

.site-logo {
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--elevation-200);
  border: 1px solid var(--color-neutral-300);
}

.site-title-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.025em;
}

/* ===== Modern Navigation System ===== */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.site-nav a {
  color: var(--color-neutral-700);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
}

.site-nav a:hover {
  color: var(--brand-primary);
  background-color: var(--brand-primary-lightest);
  text-decoration: none;
}

.site-nav a:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.corporate-link {
    background: var(--brand-primary) !important;
    color: var(--color-neutral-0) !important;
    font-weight: var(--font-weight-semibold) !important;
    box-shadow: var(--elevation-100);
}

.corporate-link:hover {
  background: var(--brand-primary-hover) !important;
  box-shadow: var(--elevation-200);
  transform: translateY(-1px) !important;
}

/* ===== Mobile Menu Toggle (hidden on desktop) ===== */
.mobile-menu-toggle {
  display: none;
}

/* ===== Modern Dropdown Navigation ===== */
.site-nav .dropdown {
  position: relative;
}

.site-nav .dropdown-toggle {
  cursor: pointer;
  user-select: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-nav .dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
  opacity: 0.7;
}

.site-nav .dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.site-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav .dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  background: var(--color-neutral-0);
  border-radius: var(--radius-xl);
  box-shadow: var(--elevation-400);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-var(--space-2));
  transition: all var(--transition-medium);
  z-index: 1000;
  border: 1px solid var(--color-neutral-300);
  padding: var(--space-2);
  display: block !important;
  flex-direction: column !important;
}

.site-nav .dropdown-menu ul {
  display: block !important;
  flex-direction: column !important;
  gap: var(--space-1) !important;
}

.site-nav .dropdown-menu li {
  display: block !important;
  width: 100%;
  flex: none !important;
}

.site-nav .dropdown-menu a {
  color: var(--color-neutral-700) !important;
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4) !important;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-lg) !important;
  transition: all var(--transition-fast);
  white-space: nowrap;
  gap: var(--space-2);
}

.site-nav .dropdown-menu a:hover {
  background: var(--brand-primary-lightest) !important;
  color: var(--brand-primary) !important;
  transform: none;
}

.site-nav .dropdown-menu a:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ===== Modern Main Content Layout ===== */
.main-container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}

.content {
  background: var(--color-neutral-0);
  border-radius: var(--radius-2xl);
  box-shadow: var(--elevation-200);
  border: 1px solid var(--color-neutral-300);
  overflow: hidden;
  min-height: 400px;
}

/* ===== Modern Article Styles ===== */
.post {
  padding: var(--space-12) var(--space-10);
}

.post-header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 2px solid var(--color-neutral-300);
}

.post-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-neutral-900);
  margin: 0 0 var(--space-6) 0;
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  color: var(--color-neutral-600);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  flex-wrap: wrap;
}

.post-date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tag {
  background: var(--brand-primary);
  color: var(--color-neutral-0);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.tag:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--elevation-200);
}

.post-content {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-neutral-800);
}

/* テキスト要素のみ読みやすい幅に制約（テーブル等は全幅使用） */
.post-content > p,
.post-content > ul,
.post-content > ol,
.post-content > blockquote,
.post-content > dl {
  max-width: var(--max-width-text);
}

/* ===== タイポグラフィ ===== */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--gray-900);
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.post-content h1 { font-size: 2.25rem; }
.post-content h2 {
  font-size: 1.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-primary);
}
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

.post-content p {
  margin: 1.5rem 0;
}

.post-content a {
  color: var(--brand-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.post-content a:hover {
  border-bottom-color: var(--brand-primary);
}

/* ===== コードブロック ===== */
.post-content pre {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  font-family: var(--font-family-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 2rem 0;
}

.post-content code {
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  background: var(--gray-100);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--gray-800);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ===== リスト ===== */
.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin: 0.5rem 0;
}

/* ===== 引用 ===== */
.post-content blockquote {
  border-left: 4px solid var(--brand-primary);
  background: var(--gray-50);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: var(--gray-600);
}

/* ===== テーブル ===== */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.post-content table:not(.rouge-table) {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
  table-layout: auto;
}

.table-wrapper table {
  margin: 0;
  box-shadow: none;
  min-width: 100%;
}

.post-content th,
.post-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.post-content td {
  white-space: normal;
  word-break: break-word;
}

.post-content th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
}

.post-content tr:hover {
  background: var(--color-neutral-50, #fafafa);
}

.post-content tr:last-child td {
  border-bottom: none;
}

/* rouge-table (code blocks) はテーブルスタイルを上書きしない */
.post-content .rouge-table {
  box-shadow: none;
  margin: 0;
  background: transparent;
  border-radius: 0;
}
.post-content .rouge-table td {
  border-bottom: none;
  padding: 0;
}
.post-content .rouge-table tr:hover {
  background: transparent;
}

/* ===== Modern Sidebar System ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-self: start;
}

.widget {
  background: var(--color-neutral-0);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--elevation-200);
  border: 1px solid var(--color-neutral-300);
  transition: all var(--transition-medium);
}

.widget:hover {
  box-shadow: var(--elevation-300);
  border-color: var(--brand-primary-lighter);
}

.widget-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-neutral-900);
  margin: 0 0 var(--space-6) 0;
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--brand-primary);
  position: relative;
}

.widget-title::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: var(--space-12);
  height: 3px;
  background: var(--brand-secondary);
  border-radius: var(--radius-full);
}

.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.recent-posts li {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.recent-posts li:hover {
  background: var(--color-neutral-100);
  border-color: var(--brand-primary-lighter);
  transform: translateX(var(--space-1));
}

.recent-posts a {
  color: var(--color-neutral-800);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-snug);
  transition: color var(--transition-fast);
  display: block;
  overflow-wrap: break-word;
  word-break: break-word;
}

.recent-posts a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.recent-posts .post-date {
  font-size: var(--font-size-xs);
  color: var(--color-neutral-500);
  margin-top: var(--space-2);
  font-weight: var(--font-weight-regular);
}

/* ===== Modern Footer System ===== */
.site-footer {
  background: var(--color-neutral-900);
  color: var(--color-neutral-200);
  padding: var(--space-16) 0 var(--space-8) 0;
  margin-top: var(--space-20);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 50%, var(--brand-accent-orange) 100%);
}

.footer-container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  text-align: left;
}

.footer-section h3 {
  color: var(--color-neutral-0);
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -var(--space-2);
  left: 0;
  width: var(--space-8);
  height: 2px;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}

.footer-section p {
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-section a {
  color: var(--color-neutral-200);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-section a:hover {
  color: var(--color-neutral-0);
  transform: translateX(var(--space-1));
}

.footer-section a:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-neutral-800);
  font-size: var(--font-size-sm);
  text-align: center;
  color: var(--color-neutral-300);
}

/* ===== Modern Responsive Design System ===== */

/* Large Tablets & Small Desktops */
@media (max-width: 1200px) {
  .header-container {
    padding: var(--space-4) var(--space-4);
  }
  
  .main-container {
    max-width: var(--max-width-content);
    padding: var(--space-8) var(--space-4);
    gap: var(--space-10);
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .sidebar {
    order: 2; /* Move sidebar below content */
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
  }
  
  .widget {
    padding: var(--space-6);
  }
  
  .post {
    padding: var(--space-10) var(--space-8);
  }
}

/* Large Mobile Devices */
@media (max-width: 768px) {
  .header-container {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-4);
  }
  
  .site-title {
    font-size: var(--font-size-lg);
  }
  
  .site-title-text {
    display: none; /* Hide text on small screens, keep logo */
  }
  
  .site-nav ul {
    gap: var(--space-1);
    flex-wrap: wrap;
  }
  
  .site-nav a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
  }
  
  .main-container {
    padding: var(--space-6) var(--space-4);
    gap: var(--space-6);
  }
  
  .post {
    padding: var(--space-8) var(--space-6);
  }
  
  .post-title {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
  }
  
  .post-meta {
    gap: var(--space-4);
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
  }
  
  .widget {
    padding: var(--space-6);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  
  /* Typography scaling */
  .post-content h1 { font-size: var(--font-size-3xl); }
  .post-content h2 { font-size: var(--font-size-2xl); }
  .post-content h3 { font-size: var(--font-size-xl); }
  .post-content h4 { font-size: var(--font-size-lg); }

  /* Mobile table scrolling — wrapper handles overflow, table keeps layout */
  .post-content table:not(.rouge-table) {
    min-width: 400px;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
  }

  .post-content th,
  .post-content td {
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-sm);
  }

  /* Mobile code blocks */
  .post-content pre {
    padding: 1rem;
    font-size: 0.8rem;
    margin: 1.5rem -1rem;
    border-radius: 0;
  }

  /* Mobile hamburger menu */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    padding: 0;
    order: 3;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-neutral-700);
    position: relative;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: inherit;
    left: 0;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle span::before { top: -6px; }
  .mobile-menu-toggle span::after { top: 6px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-neutral-0);
    box-shadow: var(--elevation-400);
    border-top: 1px solid var(--color-neutral-200);
    z-index: 999;
    padding: var(--space-4);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: var(--space-3) var(--space-4) !important;
    font-size: var(--font-size-base) !important;
    border-bottom: 1px solid var(--color-neutral-100);
  }

  .site-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-neutral-50);
    border-radius: var(--radius-lg);
    margin: var(--space-1) 0;
    display: none;
  }

  .site-nav .dropdown.is-open .dropdown-menu {
    display: block !important;
  }

  .site-nav .dropdown-menu a {
    padding: var(--space-2) var(--space-6) !important;
    font-size: var(--font-size-sm) !important;
  }

  .header-container {
    position: relative;
  }

  /* Table of Contents mobile */
  .toc-container {
    margin: 1rem 0;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .header-container {
    padding: var(--space-3);
  }
  
  .site-nav ul {
    gap: var(--space-1);
  }
  
  .site-nav a {
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-xs);
  }
  
  .main-container {
    padding: var(--space-4) var(--space-3);
  }
  
  .post {
    padding: var(--space-6) var(--space-4);
  }
  
  .post-title {
    font-size: var(--font-size-2xl);
  }
  
  .post-content {
    font-size: var(--font-size-base);
  }
  
  .widget {
    padding: var(--space-5);
  }
  
  .widget-title {
    font-size: var(--font-size-lg);
  }
  
  /* Enhanced touch targets */
  .site-nav a,
  .recent-posts a,
  .footer-section a {
    min-height: 44px; /* iOS recommended touch target */
    display: flex;
    align-items: center;
  }
}

/* ===== Table of Contents ===== */
.toc-container {
  margin: 1.5rem 2rem 2rem;
}

.toc-details {
  background: var(--color-neutral-50, #f9fafb);
  border: 1px solid var(--color-neutral-200, #e5e7eb);
  border-radius: var(--radius-xl, 12px);
  padding: 0;
  overflow: hidden;
}

.toc-summary {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-neutral-700, #374151);
  background: var(--color-neutral-100, #f3f4f6);
  border-bottom: 1px solid var(--color-neutral-200, #e5e7eb);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-summary::before {
  content: '\25B8';
  transition: transform 0.2s;
}

.toc-details[open] .toc-summary::before {
  transform: rotate(90deg);
}

.toc-summary::-webkit-details-marker {
  display: none;
}

.toc-list {
  padding: 1rem 1.5rem 1rem 2.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-list li {
  line-height: 1.5;
}

.toc-list a {
  color: var(--color-neutral-600, #4b5563);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  border-bottom: none !important;
}

.toc-list a:hover {
  color: var(--brand-primary, #4f46e5);
}

/* ===== Modern Animations & Interactions ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(var(--space-6));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-var(--space-8));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* Smooth page transitions */
.post {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.hero-section {
  animation: fadeInUp 1s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.article-card,
.widget {
  animation: slideInLeft 0.6s cubic-bezier(0.2, 0, 0.38, 0.9);
  animation-fill-mode: both;
}

.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.3s; }
.article-card:nth-child(5) { animation-delay: 0.4s; }
.article-card:nth-child(6) { animation-delay: 0.5s; }

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 50%, var(--color-neutral-200) 100%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
}

/* Interactive feedback */
.interactive-element:hover {
  animation: pulse 0.3s ease-in-out;
}

/* Focus management for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--brand-primary);
  color: var(--color-neutral-0);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
  z-index: 1000;
}

.skip-to-content:focus {
  top: 6px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-stats .stat:hover,
  .article-card:hover,
  .widget:hover {
    transform: none !important;
  }
}

/* ===== ユーティリティクラス ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }

.tag-note {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ===== メディア向け新スタイル ===== */

/* ===== Modern Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 70%, var(--brand-accent-purple) 100%);
    color: var(--color-neutral-0);
    padding: var(--space-20) var(--space-6);
    margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-6)) var(--space-16);
    text-align: center;
    border-radius: 0 0 var(--radius-3xl) var(--radius-3xl);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4xIj48Y2lyY2xlIGN4PSIzMCIgY3k9IjMwIiByPSIyIi8+PC9nPjwvZz48L3N2Zz4=');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-tight);
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
    color: inherit;
}

.hero-content p {
    font-size: var(--font-size-xl);
    opacity: 1;
    max-width: 720px;
    margin: 0 auto var(--space-12);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-regular);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    margin-top: var(--space-12);
    flex-wrap: wrap;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    transition: all var(--transition-medium);
}

.hero-stats .stat:hover {
    transform: translateY(-var(--space-1));
    background: rgba(255, 255, 255, 0.15);
}

.hero-stats .stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-none);
    color: var(--color-neutral-0);
}

.hero-stats .stat-label {
    font-size: var(--font-size-sm);
    opacity: 1;
    margin-top: var(--space-2);
    font-weight: var(--font-weight-medium);
}

/* ===== Modern Search Section ===== */
.search-section {
    padding: var(--space-16) 0;
    background: var(--color-neutral-100);
    margin: var(--space-16) calc(-1 * var(--space-6)) var(--space-16);
    border-radius: var(--radius-2xl);
    position: relative;
}

.search-container {
    max-width: var(--max-width-text);
    margin: 0 auto;
    padding: 0 var(--space-6);
    text-align: center;
}

.search-container h2 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-8);
}

.search-form {
    display: flex;
    gap: var(--space-3);
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-neutral-0);
    padding: var(--space-2);
    border-radius: var(--radius-2xl);
    box-shadow: var(--elevation-200);
    border: 1px solid var(--color-neutral-300);
}

.search-input {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    background: transparent;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    background: var(--brand-primary-lightest);
}

.search-input::placeholder {
    color: var(--color-neutral-500);
}

.search-button {
    padding: var(--space-4) var(--space-6);
    background: var(--brand-primary);
    color: var(--color-neutral-0);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-semibold);
    min-width: var(--space-12);
}

.search-button:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--elevation-200);
}

.search-button:active {
    transform: translateY(0);
}

/* ============================================
   ACCESSIBILITY & CONTRAST IMPROVEMENTS
   ============================================ */

/* High contrast text and backgrounds */
.article-meta,
.post-meta,
.featured-meta,
.related-post-meta {
  color: var(--text-subtle) !important;
  font-weight: var(--font-weight-medium);
}

/* Ensure sufficient contrast for links */
a {
  color: var(--link-color);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover-color);
}

a:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Better contrast for muted text */
.text-muted,
.article-excerpt,
.post-excerpt,
.related-post-excerpt {
  color: var(--text-default);
}

/* Card backgrounds for better readability */
.article-card,
.featured-main-card,
.featured-secondary-card,
.related-post,
.featured-post {
  background: var(--surface-default) !important;
  border: 1px solid var(--border-subtle);
}

/* Better visibility for category badges */
.featured-category-badge,
.secondary-category-badge,
.category-badge {
  background: var(--brand-primary) !important;
  color: var(--text-inverse) !important;
  font-weight: var(--font-weight-semibold);
}

/* Improved button contrast for featured read-more */
.featured-read-more {
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--brand-primary);
}

.featured-read-more:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

/* Navigation improvements */
.site-nav a {
  color: var(--text-default);
  font-weight: var(--font-weight-medium);
}

.site-nav a:hover {
  color: var(--brand-primary);
}

/* Section titles with better contrast */
.section-title {
  color: var(--text-default) !important;
  font-weight: var(--font-weight-bold);
}

/* Footer text improvements */
.footer-section {
  color: var(--color-neutral-200);
}

.footer-section a {
  color: var(--color-neutral-200);
}

.footer-section a:hover {
  color: var(--color-neutral-0);
}

/* ===== Modern Section System ===== */
/* ============================================
   FEATURED ARTICLES SECTION - IMPROVED LAYOUT
   ============================================ */

.featured-section {
    margin-bottom: var(--space-20);
}

/* Featured Guides Section */
.guides-section {
    margin-bottom: var(--space-20);
    padding: var(--space-12) 0;
}

.guides-section .section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: -0.5rem;
    margin-bottom: var(--space-8);
}

.guides-pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.guide-pillar-card {
    background: var(--card-bg, #fff);
    border: 2px solid var(--primary, #4f46e5);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-6);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.guide-pillar-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--primary, #4f46e5);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 12px;
    letter-spacing: 0.05em;
}

.guide-pillar-icon {
    margin: var(--space-4) 0 var(--space-3) 0;
}

.guide-pillar-icon svg,
.guide-icon-svg {
    width: 36px;
    height: 36px;
    color: var(--primary, #4f46e5);
}

.guide-pillar-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: var(--space-2);
}

.guide-pillar-title a {
    color: var(--text-primary, #1a1a2e);
    text-decoration: none;
}

.guide-pillar-title a:hover {
    color: var(--primary, #4f46e5);
}

.guide-pillar-description {
    font-size: 0.88rem;
    color: var(--text-secondary, #555);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.guide-pillar-meta {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    display: flex;
    gap: var(--space-3);
}

.guides-sub-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    padding-left: 4px;
    border-left: 3px solid var(--primary, #4f46e5);
    padding-left: 12px;
}

.guides-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.guide-comparison-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    padding: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-comparison-card:hover {
    border-color: var(--primary, #4f46e5);
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.08);
}

.guide-comparison-badge {
    background: var(--accent, #f59e0b);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.guide-comparison-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: var(--space-1);
}

.guide-comparison-title a {
    color: var(--text-primary, #1a1a2e);
    text-decoration: none;
}

.guide-comparison-title a:hover {
    color: var(--primary, #4f46e5);
}

.guide-comparison-excerpt {
    font-size: 0.82rem;
    color: var(--text-secondary, #555);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .guides-pillar-grid {
        grid-template-columns: 1fr;
    }
    .guides-comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .guides-pillar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.articles-section,
.categories-section {
    margin-bottom: var(--space-20);
}

/* Featured Container Layout */
.featured-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .featured-container {
        grid-template-columns: 2fr 1fr;
        gap: var(--space-10);
    }
}

/* Main Featured Article Card */
.featured-main-card {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-8);
    background: var(--surface-default);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-small);
    transition: all 0.2s ease;
    height: fit-content;
}

.featured-main-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--brand-primary);
}

.featured-main-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary-lightest), var(--brand-primary-lighter));
    border: 2px solid var(--brand-primary-light);
    border-radius: var(--border-radius-lg);
    font-size: 2.5rem;
}

.featured-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.featured-main-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.featured-category-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: var(--brand-primary);
    color: var(--color-neutral-0);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.featured-meta-items {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--text-subtle);
}

.featured-date,
.featured-reading-time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.featured-main-title {
    margin: 0;
    line-height: 1.3;
}

.featured-main-title a {
    color: var(--text-default);
    text-decoration: none;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    transition: color 0.2s ease;
}

.featured-main-title a:hover {
    color: var(--brand-primary);
}

.featured-main-excerpt {
    color: var(--text-default);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

.featured-main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.featured-author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.author-icon {
    font-size: var(--font-size-base);
}

.featured-read-more {
    padding: var(--space-2) var(--space-4);
    background: var(--brand-primary);
    color: var(--color-neutral-0);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.featured-read-more:hover {
    background: var(--brand-primary-hover);
    transform: translateX(4px);
}

/* Secondary Featured Articles Grid */
.featured-secondary-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.featured-secondary-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.featured-secondary-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-small);
    border-color: var(--brand-primary-light);
}

.featured-secondary-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-sunken);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xl);
}

.featured-secondary-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.featured-secondary-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.secondary-category-badge {
    padding: var(--space-1) var(--space-2);
    background: var(--brand-secondary-lightest);
    color: var(--brand-secondary-hover);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-sm);
    text-transform: capitalize;
}

.secondary-date {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.featured-secondary-title {
    margin: 0;
    line-height: 1.4;
}

.featured-secondary-title a {
    color: var(--text-default);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    transition: color 0.2s ease;
}

.featured-secondary-title a:hover {
    color: var(--brand-primary);
}

.featured-secondary-excerpt {
    color: var(--text-default);
    font-size: var(--font-size-xs);
    line-height: 1.5;
}

/* Mobile Responsive Design */
@media (max-width: 767px) {
    .featured-main-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
    }
    
    .featured-main-icon {
        align-self: center;
        margin-bottom: var(--space-4);
    }
    
    .featured-main-footer {
        flex-direction: column;
        gap: var(--space-4);
        align-items: center;
    }
    
    .featured-secondary-card {
        padding: var(--space-4);
    }
    
    .featured-secondary-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-12);
    position: relative;
}

.section-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-neutral-900);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-2);
    left: 0;
    width: var(--space-12);
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: var(--radius-full);
}

.section-icon {
    font-size: var(--font-size-2xl);
    filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.1));
}

.section-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
}

.section-link:hover {
    color: var(--brand-primary-hover);
    background: var(--brand-primary-lightest);
    border-color: var(--brand-primary-lighter);
    transform: translateX(var(--space-1));
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1.6fr 1fr;
    }
}

.featured-main {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.featured-main:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-secondary);
}

.featured-secondary {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

@media (max-width: 1023px) {
    .featured-secondary {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Article Card */
.article-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 360px;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-secondary);
}

.article-card.small {
    flex-direction: row;
    height: auto;
    min-height: 140px;
    max-height: 180px;
}

.article-image {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: bold;
    height: 160px;
    flex-shrink: 0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
    overflow: hidden;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
}

.article-image.small {
    height: 100%;
    min-width: 120px;
    max-width: 120px;
    font-size: 2rem;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    margin-right: 0;
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content.small {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-category {
    background: var(--brand-secondary);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.article-date,
.article-reading-time {
    color: var(--gray-600);
}

.article-title {
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.article-title a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color var(--transition-fast);
    /* Handle long titles gracefully */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-title.small a {
    font-size: 1.1rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
}

.article-title a:hover {
    color: var(--brand-secondary);
}

.article-excerpt {
    color: var(--text-default);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: auto;
    flex-wrap: wrap;
}

.article-author {
    color: var(--text-subtle);
    font-size: 0.9rem;
}

.article-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.tag {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--brand-secondary);
    color: var(--white);
}

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-3xl) 0;
    padding: 0 1rem;
}

.pagination-link {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--white);
    color: var(--brand-secondary);
    text-decoration: none;
    border: 2px solid var(--brand-secondary);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pagination-link:hover {
    background: var(--brand-secondary);
    color: var(--white);
}

.pagination-numbers {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--brand-secondary);
    color: var(--white);
}

.pagination-ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-weight: 600;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.category-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-secondary);
}

.category-header {
    padding: var(--spacing-xl);
    align-items: flex-start;
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.category-icon-large {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    border-radius: var(--border-radius-lg);
    color: var(--white);
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: inherit;
    margin-bottom: var(--spacing-sm);
}

.category-description {
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.category-count {
    background: var(--brand-secondary);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.category-posts {
    padding: var(--spacing-lg);
}

.category-post {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
    gap: var(--spacing-md);
}

.category-post:last-child {
    border-bottom: none;
}

.category-post-title {
    color: var(--text-default);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
    transition: color var(--transition-fast);
}

.category-post-title:hover {
    color: var(--brand-secondary);
}

.category-post-date {
    color: var(--text-subtle);
    font-size: 0.8rem;
    white-space: nowrap;
}

.category-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.category-link {
    color: var(--brand-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.category-link:hover {
    color: var(--brand-secondary-hover);
    text-decoration: underline;
}

/* Enhanced Media Queries */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .main-container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .featured-secondary {
    gap: 0.75rem;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .site-nav ul {
    gap: 1rem;
  }
  
  .site-nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .site-title {
    font-size: 1.3rem;
  }
  
  .site-logo {
    width: 35px;
    height: 35px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .article-card {
    min-height: 340px;
  }
  
  .article-image {
    height: 120px;
    font-size: 2rem;
  }
  
  .article-content {
    padding: 1.2rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .category-header {
    flex-direction: column;
    text-align: center;
  }
  
  .category-icon-large {
    margin: 0 auto;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .pagination-nav {
    flex-wrap: wrap;
  }
  
  .article-card.small {
    flex-direction: column;
  }
  
  .article-image.small {
    height: 120px;
    width: 100%;
    min-width: auto;
  }
}

/* ===== プリント用スタイル ===== */
@media print {
  .site-header,
  .sidebar,
  .site-footer {
    display: none;
  }
  
  .main-container {
    grid-template-columns: 1fr;
    max-width: none;
    padding: 0;
  }
  
  .content {
    box-shadow: none;
    border-radius: 0;
  }
}

/* ===== カテゴリページ共通スタイル ===== */
.category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-hover) 100%);
    color: var(--white);
    border-radius: var(--border-radius-xl);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.category-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: inherit;
}

.category-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

.category-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-stats .stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--brand-secondary);
    padding-bottom: 0.5rem;
}

.featured-article {
    margin-bottom: 4rem;
}

.featured-post {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.featured-content {
    padding: 2.5rem;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-subtle);
}

.featured-date {
    font-weight: 600;
}

.featured-post h3 {
    margin-bottom: 1.5rem;
}

.featured-post h3 a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.featured-post h3 a:hover {
    color: var(--brand-secondary);
}

.featured-post p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.featured-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.articles-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-date {
    background: var(--brand-secondary);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    text-align: center;
}

.article-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.article-date .month {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-content {
    flex: 1;
    padding: 1.5rem;
}

.article-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-subtle);
}

.article-title {
    margin-bottom: 1rem;
}

.article-title a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-title a:hover {
    color: var(--brand-secondary);
}

.article-excerpt {
    color: var(--text-default);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    color: var(--gray-600);
}

/* ============================================
   CATEGORY PAGES - IMPROVED DESIGN
   ============================================ */

.category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8);
}

.category-header {
    text-align: center;
    margin-bottom: var(--space-16);
    padding: var(--space-16) var(--space-8);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    color: var(--color-neutral-0);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.category-header > * {
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.category-header h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: inherit;
}

.category-header p {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: inherit;
}

.category-stats {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
}

.category-stats .stat {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--border-radius-lg);
    font-weight: var(--font-weight-semibold);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.category-stats .stat:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-default);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--brand-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-accent-orange);
    border-radius: var(--border-radius-sm);
}

/* Featured Article */
.featured-article {
    margin-bottom: var(--space-20);
}

.featured-post {
    background: var(--surface-default);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.featured-content {
    padding: var(--space-12);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.featured-date {
    font-weight: var(--font-weight-semibold);
    color: var(--brand-primary);
}

.reading-time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.featured-post h3 {
    margin-bottom: var(--space-6);
}

.featured-post h3 a {
    color: var(--text-default);
    text-decoration: none;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.featured-post h3 a:hover {
    color: var(--brand-primary);
}

.featured-post p {
    color: var(--text-subtle);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    font-size: var(--font-size-lg);
}

.featured-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.article-card {
    display: flex;
    background: var(--surface-default);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-small);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--brand-primary-light);
}

.article-date {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
    color: var(--color-neutral-0);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.article-date .day {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.article-date .month {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-1);
    opacity: 0.9;
}

.article-content {
    flex: 1;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-meta {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--text-subtle);
}

.article-title {
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.article-title a {
    color: var(--text-default);
    text-decoration: none;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: var(--brand-primary);
}

.article-excerpt {
    color: var(--text-default);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    font-size: var(--font-size-sm);
}

.article-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    background: var(--surface-raised);
    color: var(--text-subtle);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--brand-primary-lightest);
    color: var(--brand-primary);
    border-color: var(--brand-primary-light);
}

.no-posts {
    text-align: center;
    padding: var(--space-20);
    background: var(--surface-raised);
    border-radius: var(--border-radius-lg);
    color: var(--text-muted);
    border: 2px dashed var(--border-subtle);
}

.no-posts p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
}

.no-posts a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}

.no-posts a:hover {
    text-decoration: underline;
}

/* Category Page Responsive Design */
@media (max-width: 768px) {
    .category-page {
        padding: var(--space-4);
    }
    
    .category-header {
        padding: var(--space-12) var(--space-4);
        margin-bottom: var(--space-12);
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    .category-header h1 {
        font-size: var(--font-size-3xl);
        line-height: 1.2;
    }
    
    .category-header p {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-6);
    }
    
    .category-stats {
        gap: var(--space-4);
        flex-direction: column;
        align-items: center;
    }
    
    .category-stats .stat {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
        white-space: nowrap;
    }
    
    .featured-content {
        padding: var(--space-8);
    }
    
    .featured-post h3 a {
        font-size: var(--font-size-xl);
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-date {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-3);
        padding: var(--space-4);
        min-width: auto;
    }
    
    .article-date .day {
        font-size: var(--font-size-xl);
    }
    
    .article-date .month {
        font-size: var(--font-size-xs);
    }
    
    .article-content {
        padding: var(--space-6);
    }
    
    .article-title a {
        font-size: var(--font-size-base);
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .category-header h1 {
        font-size: var(--font-size-2xl);
    }
    
    .category-stats {
        gap: var(--space-3);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .featured-post h3 a {
        font-size: var(--font-size-lg);
    }
}

/* ============================================
   POST LAYOUTS & TYPOGRAPHY
   ============================================ */

/* Post Header & Breadcrumbs */
.post-breadcrumbs {
  margin-bottom: var(--space-6);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-2);
  color: var(--border-default);
}

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

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

.breadcrumb-list li:last-child {
  color: var(--text-default);
  font-weight: var(--font-weight-medium);
}

/* Post Header */
.post-header {
  margin-bottom: var(--space-12);
}

.post-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-6);
  color: var(--text-default);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.post-meta > div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-meta svg {
  color: var(--brand-primary);
}

.post-category .category-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xs);
  color: var(--text-default);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.post-excerpt {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  color: var(--text-subtle);
  padding: var(--space-6);
  background: var(--surface-sunken);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--brand-primary);
  margin-bottom: var(--space-8);
}

/* Post Content */
.post-content {
  line-height: 1.7;
  color: var(--text-default);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--text-default);
}

.post-content h1 { font-size: var(--font-size-3xl); }
.post-content h2 { font-size: var(--font-size-2xl); }
.post-content h3 { font-size: var(--font-size-xl); }
.post-content h4 { font-size: var(--font-size-lg); }
.post-content h5 { font-size: var(--font-size-base); }
.post-content h6 { font-size: var(--font-size-sm); }

.post-content p {
  margin-bottom: var(--space-4);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.post-content li {
  margin-bottom: var(--space-2);
}

.post-content blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-6);
  background: var(--surface-sunken);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--border-radius);
  font-style: italic;
  color: var(--text-subtle);
}

.post-content code {
  padding: var(--space-1) var(--space-2);
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  color: var(--text-default);
}

.post-content pre {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  overflow-x: auto;
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.post-content pre code {
  padding: 0;
  background: transparent;
  border: none;
  font-size: inherit;
}

/* Post Footer */
.post-footer {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

/* Social Share */
.social-share {
  margin-bottom: var(--space-12);
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
}

.share-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-default);
}

.share-icon {
  font-size: var(--font-size-xl);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.share-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
  color: var(--surface-default);
}

.share-twitter { background: #0a7abf; }
.share-facebook { background: #365899; }
.share-linkedin { background: #005e8a; }
.share-hatena { background: #007db3; }

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.share-button:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.nav-previous,
.nav-next {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-small);
}

.nav-link {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  text-decoration: none;
  color: var(--text-default);
  height: 100%;
}

.nav-link:hover {
  background: var(--brand-primary);
  color: var(--surface-default);
}

.nav-link:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-direction {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.nav-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-subtle);
}

.nav-link:hover .nav-label {
  color: var(--surface-default);
  opacity: 0.8;
}

.nav-title {
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

.nav-next .nav-direction {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

/* Related Posts */
.related-posts {
  margin-top: var(--space-16);
  padding: var(--space-8);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
}

.related-posts-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.related-posts-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-default);
}

.related-icon {
  font-size: var(--font-size-3xl);
}

.related-posts-subtitle {
  color: var(--text-muted);
  font-size: var(--font-size-base);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.related-post {
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.related-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--brand-primary);
}

.related-post-link {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.related-post-link:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.related-post-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-sunken);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xl);
}

.related-post-content {
  flex: 1;
}

.related-post-title {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  color: var(--text-default);
}

.related-post-excerpt {
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--text-subtle);
}

.related-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.related-reading-time {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.related-post-tags {
  display: flex;
  gap: var(--space-2);
}

.tag-small {
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
}

/* Post Page Responsive Design */
@media (max-width: 768px) {
  .post-title {
    font-size: var(--font-size-2xl);
  }
  
  .post-meta {
    gap: var(--space-4);
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .related-post-link {
    flex-direction: column;
    text-align: center;
  }
  
  .related-post-icon {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .breadcrumb-list {
    font-size: var(--font-size-xs);
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .share-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .share-button {
    justify-content: center;
  }
}

/* ==========================================================================
   Component Styles - Consulting & Services
   ========================================================================== */

/* Consulting CTA Component */
.consulting-cta {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover, #2d4a7c));
  color: white;
  border-radius: var(--radius-xl);
  text-align: center;
  padding: var(--space-10) var(--space-8);
  margin: var(--space-12) 0;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.consulting-cta--post {
  margin: var(--space-10) 0;
  border-radius: var(--radius-lg);
}

.consulting-cta--sidebar {
  padding: var(--space-6) var(--space-4);
}

.consulting-cta--home {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.consulting-cta__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  line-height: 1.3;
  color: inherit;
}

.consulting-cta__description {
  font-size: var(--font-size-base);
  opacity: 1;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.consulting-cta__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  background-color: var(--brand-accent-orange);
  color: var(--neutral-1000, #1a1a1a);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.38, 0.9);
  text-decoration: none;
  font-size: var(--font-size-base);
  line-height: 1;
}

.btn-primary:hover {
  background-color: #e8900a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  background-color: transparent;
  color: white;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.38, 0.9);
  text-decoration: none;
  font-size: var(--font-size-base);
  line-height: 1;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Newsletter Signup */
.newsletter-signup {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
}

.newsletter-signup__form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-signup__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-family: inherit;
}

.newsletter-signup__input:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.newsletter-signup--sidebar {
  padding: var(--space-6);
}

.newsletter-signup--sidebar .newsletter-signup__form {
  flex-direction: column;
}

/* Service Banner */
.service-banner {
  background-color: var(--brand-primary-lightest, #e8edf5);
  border-bottom: 1px solid var(--brand-primary-lighter, #c3d1e8);
  padding: var(--space-2) var(--space-4);
  text-align: center;
  font-size: var(--font-size-sm);
}

.service-banner__badge {
  display: inline-block;
  background-color: var(--brand-primary);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-banner__text {
  margin-left: var(--space-2);
}

.service-banner__link {
  color: var(--brand-primary);
  font-weight: var(--font-weight-semibold);
  margin-left: var(--space-3);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.service-banner__link:hover {
  color: var(--brand-secondary);
}

/* Contact Form */
.contact-form .form-group {
  margin-bottom: var(--space-6);
}

.contact-form label {
  display: block;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--text-default);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-family: inherit;
  background-color: var(--surface-default);
  color: var(--text-default);
  transition: all 0.2s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .required {
  color: var(--danger, #dc2626);
}

/* Navigation CTA */
.nav-cta {
  background-color: var(--brand-accent-orange);
  color: var(--neutral-1000, #1a1a1a);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.38, 0.9);
  display: inline-block;
}

.nav-cta:hover {
  background-color: var(--brand-accent-orange-light, #fbbf24);
  transform: translateY(-1px);
  box-shadow: var(--shadow-small);
}

/* Service Page Styles */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

.service-card {
  background-color: var(--surface-default);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all 0.3s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
  border-color: var(--brand-secondary);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--brand-secondary);
}

.service-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
  color: var(--text-default);
}

.service-card__description {
  font-size: var(--font-size-base);
  color: var(--text-default);
  line-height: 1.6;
}

/* Case Study Cards */
.case-study-card {
  background-color: var(--surface-default);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
}

.case-study-card__header {
  background-color: var(--brand-primary);
  color: white;
  padding: var(--space-6);
}

.case-study-card__company {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: var(--space-2);
}

.case-study-card__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: inherit;
}

.case-study-card__body {
  padding: var(--space-6);
}

.case-study-card__stats {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.case-study-card__stat {
  text-align: center;
}

.case-study-card__stat-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-secondary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.case-study-card__stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.case-study-card__description {
  font-size: var(--font-size-base);
  color: var(--text-default);
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .consulting-cta {
    padding: var(--space-8) var(--space-6);
  }

  .consulting-cta__title {
    font-size: var(--font-size-xl);
  }

  .consulting-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .newsletter-signup__form {
    flex-direction: column;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .case-study-card__stats {
    flex-direction: column;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .consulting-cta {
    padding: var(--space-6) var(--space-4);
    margin: var(--space-8) 0;
  }

  .consulting-cta__title {
    font-size: var(--font-size-lg);
  }

  .service-banner {
    font-size: var(--font-size-xs);
    padding: var(--space-2) var(--space-3);
  }

  .service-banner__text,
  .service-banner__link {
    display: block;
    margin-left: 0;
    margin-top: var(--space-1);
  }
}

/* Hero Section Enhancements */
.hero-tagline {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--brand-secondary-lightest, #e6fffa);
  margin-bottom: var(--space-2);
}

.hero-description {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-6);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

/* Consulting Teaser Section */
.consulting-teaser-section {
  margin: var(--space-12) 0;
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    max-width: 280px;
  }
}

/* ==========================================================================
   Contact / Services / Company Page Styles
   ========================================================================== */

/* Contact Page */
.contact-page {
  max-width: 900px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-10);
}

.contact-info-sidebar {
  background-color: var(--surface-raised);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

/* Services Page */
.services-page .page-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.services-page .page-header h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-4);
}

.process-section {
  margin: var(--space-12) 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: var(--space-6);
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: white;
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--space-4);
}

/* Company Page */
.company-page {
  max-width: 800px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
}

.company-table th,
.company-table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  text-align: left;
}

.company-table th {
  width: 30%;
  background-color: var(--surface-raised);
  font-weight: var(--font-weight-semibold);
  color: var(--text-default);
}

/* Disclaimer Page */
.disclaimer-page {
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer-page section {
  margin-bottom: var(--space-8);
}

.disclaimer-page h2 {
  font-size: var(--font-size-xl);
  border-bottom: 2px solid var(--brand-primary);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    border-bottom: none;
    padding-bottom: var(--space-1);
  }
}

/* ============================================
   EDITORIAL MAGAZINE REDESIGN - HOME PAGE
   テックマガジン × エディトリアル
   ============================================ */

/* --- Editorial Design Tokens --- */
:root {
  --font-editorial-heading: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-editorial-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --color-gold-amber: #c4a265;
  --color-gold-amber-light: #d4bc8a;
  --color-gold-amber-dark: #b08f52;
  --color-charcoal: #1c1c1e;
  --color-charcoal-light: #2c2c2e;
  --color-charcoal-warm: #252527;
  --color-warm-gray: #f5f3ef;
  --color-warm-gray-dark: #e8e4dd;
  --color-ink: #0a0a0b;
  --color-paper: #faf9f7;
  --editorial-accent-bar: 3px;
  --editorial-grid-gap: clamp(1rem, 2vw, 2rem);
}

/* --- Editorial Scroll Animations --- */
@keyframes editorialFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes editorialSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes editorialScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes accentGrow {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ed-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ed-reveal-delay-1 { transition-delay: 0.1s; }
.ed-reveal-delay-2 { transition-delay: 0.2s; }
.ed-reveal-delay-3 { transition-delay: 0.3s; }
.ed-reveal-delay-4 { transition-delay: 0.4s; }

/* --- Editorial Hero Section --- */
.ed-hero {
  background: var(--color-charcoal);
  color: var(--color-paper);
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.ed-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(196, 162, 101, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(26, 54, 93, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.ed-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 0h1v1H0zM20 0h1v1h-1zM0 20h1v1H0zM20 20h1v1h-1z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ed-hero-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--space-6) clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.ed-hero-overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-amber);
  margin-bottom: var(--space-6);
}

.ed-hero-overline::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-gold-amber);
}

.ed-hero-title {
  font-family: var(--font-editorial-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--color-paper);
  max-width: 800px;
}

.ed-hero-subtitle {
  font-family: var(--font-editorial-body);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  color: rgba(250, 249, 247, 0.65);
  max-width: 600px;
  margin-bottom: var(--space-10);
}

/* Hero Featured Article */
.ed-hero-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .ed-hero-featured {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-12);
  }
}

.ed-hero-featured-main {
  position: relative;
}

.ed-hero-featured-cat {
  display: inline-block;
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-amber);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-gold-amber);
  margin-bottom: var(--space-4);
}

.ed-hero-featured-title {
  font-family: var(--font-editorial-heading);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-4);
}

.ed-hero-featured-title a {
  color: var(--color-paper);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ed-hero-featured-title a:hover {
  color: var(--color-gold-amber);
}

.ed-hero-featured-excerpt {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-sm);
  line-height: 1.8;
  color: rgba(250, 249, 247, 0.55);
  margin-bottom: var(--space-6);
}

.ed-hero-featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  color: rgba(250, 249, 247, 0.4);
}

.ed-hero-featured-meta a {
  color: var(--color-gold-amber);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.ed-hero-featured-meta a:hover {
  opacity: 0.8;
}

/* Hero Side Articles */
.ed-hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ed-hero-side-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.ed-hero-side-item:last-child {
  border-bottom: none;
}

.ed-hero-side-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ed-hero-side-cat {
  font-family: var(--font-editorial-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-amber-light);
  margin-bottom: var(--space-2);
}

.ed-hero-side-title {
  font-family: var(--font-editorial-heading);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.ed-hero-side-title a {
  color: rgba(250, 249, 247, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.ed-hero-side-title a:hover {
  color: var(--color-gold-amber);
}

.ed-hero-side-date {
  font-family: var(--font-editorial-body);
  font-size: 0.7rem;
  color: rgba(250, 249, 247, 0.3);
  margin-top: var(--space-2);
}

/* --- Stats Bar --- */
.ed-stats-bar {
  background: var(--brand-primary);
  color: var(--color-paper);
  margin: 0;
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
}

.ed-stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--editorial-accent-bar);
  background: linear-gradient(90deg, var(--color-gold-amber), var(--brand-secondary), var(--color-gold-amber));
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
}

.ed-stats-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.ed-stat {
  position: relative;
}

.ed-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(-1 * var(--space-4));
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.ed-stat-number {
  font-family: var(--font-editorial-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-2);
  color: var(--color-gold-amber-light);
}

.ed-stat-label {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  color: rgba(250, 249, 247, 0.6);
  text-transform: uppercase;
  font-weight: 500;
}

/* --- Editorial Search --- */
.ed-search {
  background: var(--color-warm-gray);
  margin: 0;
  padding: var(--space-10) clamp(1.5rem, 4vw, 4rem);
}

.ed-search-inner {
  max-width: 640px;
  margin: 0 auto;
}

.ed-search-form {
  display: flex;
  gap: 0;
  background: var(--color-paper);
  border: 2px solid var(--color-warm-gray-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s;
}

.ed-search-form:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.ed-search-input {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  border: none;
  background: transparent;
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-base);
  color: var(--color-ink);
}

.ed-search-input:focus {
  outline: none;
}

.ed-search-input::placeholder {
  color: var(--color-neutral-400);
  font-style: italic;
}

.ed-search-btn {
  padding: var(--space-4) var(--space-6);
  background: var(--brand-primary);
  color: var(--color-paper);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-search-btn:hover {
  background: var(--brand-primary-hover);
}

/* --- Editorial Section Headers --- */
.ed-section {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem);
  max-width: var(--max-width-container, 1400px);
  margin-left: auto;
  margin-right: auto;
}

.ed-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-default);
}

.ed-section-title {
  font-family: var(--font-editorial-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
  position: relative;
}

.ed-section-title::before {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-gold-amber);
  margin-bottom: var(--space-3);
}

.ed-section-link {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-sm);
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s, gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.ed-section-link:hover {
  color: var(--color-gold-amber-dark);
  gap: var(--space-3);
}

/* --- Featured Guides: Asymmetric Grid --- */
.ed-guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--editorial-grid-gap);
}

@media (min-width: 768px) {
  .ed-guides-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }
  .ed-guides-grid .ed-guide-card:first-child {
    grid-row: 1 / 3;
  }
}

.ed-guide-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.85), rgba(22, 22, 24, 0.95));
  border: 1px solid rgba(196, 162, 101, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s;
  overflow: hidden;
  color: #e8e6e1;
}

.ed-guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--editorial-accent-bar);
  height: 0;
  background: var(--color-gold-amber);
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--color-gold-amber);
}

.ed-guide-card:hover::before {
  height: 100%;
}

.ed-guide-badge {
  display: inline-block;
  font-family: var(--font-editorial-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-paper);
  background: var(--brand-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.ed-guide-badge--comparison {
  background: var(--color-gold-amber-dark);
}

.ed-guide-icon {
  margin-bottom: var(--space-4);
}

.ed-guide-icon svg {
  width: 32px;
  height: 32px;
  color: var(--brand-primary);
}

.ed-guide-title {
  font-family: var(--font-editorial-heading);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: var(--space-3);
}

.ed-guide-title a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.2s;
}

.ed-guide-title a:hover {
  color: var(--brand-primary);
}

.ed-guide-desc {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--text-subtle);
  margin-bottom: var(--space-4);
}

.ed-guide-meta {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  display: flex;
  gap: var(--space-4);
}

/* --- Magazine Article Grid --- */
.ed-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--editorial-grid-gap);
}

.ed-article-card {
  background: var(--color-paper);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.ed-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.ed-article-visual {
  height: 140px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--color-charcoal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ed-article-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
}

.ed-article-visual svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

.ed-article-cat-float {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  font-family: var(--font-editorial-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-paper);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

.ed-article-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ed-article-date {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ed-article-title {
  font-family: var(--font-editorial-heading);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

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

.ed-article-title a:hover {
  color: var(--brand-primary);
}

.ed-article-excerpt {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--text-subtle);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ed-article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.ed-article-author {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.ed-article-read {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.ed-article-read:hover {
  color: var(--color-gold-amber-dark);
  gap: var(--space-2);
}

/* --- Category Showcase --- */
.ed-categories {
  background: var(--color-charcoal);
  margin: 0;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem);
  color: var(--color-paper);
}

.ed-categories-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.ed-categories .ed-section-title {
  color: var(--color-paper);
}

.ed-categories .ed-section-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ed-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--editorial-grid-gap);
}

.ed-cat-card {
  background: var(--color-charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s,
              background 0.3s;
  overflow: hidden;
}

.ed-cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 162, 101, 0.2);
  background: var(--color-charcoal-warm);
}

.ed-cat-card:hover::after {
  transform: scaleX(1);
}

.ed-cat-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.ed-cat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 162, 101, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.ed-cat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-gold-amber);
}

.ed-cat-name {
  font-family: var(--font-editorial-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.ed-cat-count {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  color: var(--color-gold-amber-light);
  margin-top: var(--space-1);
}

.ed-cat-desc {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: rgba(250, 249, 247, 0.5);
  margin-bottom: var(--space-4);
}

.ed-cat-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-4);
}

.ed-cat-post {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: var(--space-3);
}

.ed-cat-post:last-child {
  border-bottom: none;
}

.ed-cat-post-title {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-sm);
  color: rgba(250, 249, 247, 0.75);
  text-decoration: none;
  transition: color 0.2s;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.ed-cat-post-title:hover {
  color: var(--color-gold-amber);
}

.ed-cat-post-date {
  font-family: var(--font-editorial-body);
  font-size: 0.7rem;
  color: rgba(250, 249, 247, 0.25);
  flex-shrink: 0;
}

.ed-cat-link {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  color: var(--color-gold-amber);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.ed-cat-link:hover {
  opacity: 0.75;
}

/* --- Newsletter CTA --- */
.ed-newsletter {
  background: var(--color-warm-gray);
  margin: 0;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
}

.ed-newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 L50 0 L100 50 L50 100Z' fill='none' stroke='%23000' stroke-opacity='0.02' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ed-newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.ed-newsletter-title {
  font-family: var(--font-editorial-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--space-4);
}

.ed-newsletter-desc {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--text-subtle);
  margin-bottom: var(--space-8);
}

.ed-newsletter-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.ed-btn {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  border: none;
}

.ed-btn--primary {
  background: var(--brand-primary);
  color: var(--color-paper);
}

.ed-btn--primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.25);
}

.ed-btn--outline {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.ed-btn--outline:hover {
  background: var(--brand-primary);
  color: var(--color-paper);
  transform: translateY(-2px);
}

/* --- Consulting Section (Editorial Style) --- */
.ed-consulting {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem);
  max-width: var(--max-width-container, 1400px);
  margin-left: auto;
  margin-right: auto;
}

.ed-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--editorial-grid-gap);
}

.ed-service-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.9), rgba(22, 22, 24, 0.95));
  border: 1px solid rgba(196, 162, 101, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #e8e6e1;
}

.ed-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.ed-service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary-lightest), rgba(196, 162, 101, 0.1));
  border-radius: var(--radius-xl);
}

.ed-service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brand-primary);
}

.ed-service-title {
  font-family: var(--font-editorial-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--space-3);
}

.ed-service-desc {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--text-subtle);
}

/* --- Editorial Comparison Grid --- */
.ed-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--editorial-grid-gap);
  margin-top: var(--space-6);
}

.ed-comparison-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.85), rgba(22, 22, 24, 0.95));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ed-comparison-card:hover {
  border-color: var(--color-gold-amber);
  box-shadow: 0 4px 16px rgba(196, 162, 101, 0.08);
}

.ed-comparison-badge {
  font-family: var(--font-editorial-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-paper);
  background: var(--color-gold-amber-dark);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.ed-comparison-content {
  flex: 1;
}

.ed-comparison-title {
  font-family: var(--font-editorial-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: var(--space-2);
}

.ed-comparison-title a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.2s;
}

.ed-comparison-title a:hover {
  color: var(--brand-primary);
}

.ed-comparison-excerpt {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  line-height: 1.6;
  color: var(--text-subtle);
}

/* --- Mobile Responsive for Editorial --- */
@media (max-width: 767px) {
  .ed-hero-inner {
    padding: var(--space-10) var(--space-4) var(--space-6);
  }

  .ed-stats-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .ed-stat:not(:last-child)::after {
    display: none;
  }

  .ed-stat-number {
    font-size: 1.5rem;
  }

  .ed-articles-grid {
    grid-template-columns: 1fr;
  }

  .ed-cat-grid {
    grid-template-columns: 1fr;
  }

  .ed-newsletter-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ed-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   EDITORIAL DESIGN SYSTEM - GLOBAL EXPANSION
   ヘッダー / フッター / サイドバー / 記事ページ
   ============================================ */

/* --- Global Typography Override --- */
body {
  font-family: var(--font-editorial-body);
}

h1, h2, h3 {
  font-family: var(--font-editorial-heading);
}

h4, h5, h6 {
  font-family: var(--font-editorial-body);
  font-weight: 700;
}

/* ============================================
   HEADER - Editorial Dark Navy
   ============================================ */
.ed-header {
  background: var(--color-charcoal);
  border-bottom: none;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.ed-header .header-container {
  padding: var(--space-3) var(--space-6);
}

.ed-site-title {
  color: var(--color-paper);
}

.ed-site-title .site-title-text {
  font-family: var(--font-editorial-heading);
  font-weight: 700;
  color: var(--color-paper);
  letter-spacing: 0.02em;
}

.ed-site-title:hover {
  color: var(--color-gold-amber);
}

.ed-site-title:hover .site-title-text {
  color: var(--color-gold-amber);
}

.ed-site-title .site-logo {
  border-color: var(--color-gold-amber);
  box-shadow: 0 0 0 2px rgba(196, 162, 101, 0.2);
}

/* Navigation - Editorial (higher specificity to override .site-nav a) */
.ed-header .ed-nav a,
.ed-header .site-nav a,
.ed-nav.site-nav a {
  color: rgba(250, 249, 247, 0.9) !important;
  font-family: var(--font-editorial-body);
  font-weight: 500;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
}

.ed-header .ed-nav a:hover,
.ed-header .site-nav a:hover,
.ed-nav.site-nav a:hover {
  color: var(--color-paper) !important;
  background: rgba(196, 162, 101, 0.12) !important;
}

.ed-header .ed-nav .dropdown-menu,
.ed-nav.site-nav .dropdown-menu {
  background: var(--color-charcoal-light);
  border: 1px solid rgba(196, 162, 101, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ed-header .ed-nav .dropdown-menu a,
.ed-nav.site-nav .dropdown-menu a {
  color: rgba(250, 249, 247, 0.85);
}

.ed-header .ed-nav .dropdown-menu a:hover,
.ed-nav.site-nav .dropdown-menu a:hover {
  color: var(--color-paper);
  background: rgba(196, 162, 101, 0.15);
}

/* Nav CTA Button */
.ed-nav-cta {
  background: var(--color-gold-amber) !important;
  color: var(--color-charcoal) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-full) !important;
  padding: var(--space-2) var(--space-5) !important;
  transition: background 0.2s, transform 0.2s !important;
}

.ed-nav-cta:hover {
  background: var(--color-gold-amber-light) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(196, 162, 101, 0.3) !important;
}

/* Mobile Menu - Editorial */
.ed-header .mobile-menu-toggle span,
.ed-header .mobile-menu-toggle span::before,
.ed-header .mobile-menu-toggle span::after {
  background: var(--color-paper);
}

@media (max-width: 1024px) {
  .ed-header .site-nav.is-open {
    background: var(--color-charcoal);
    border-top: 1px solid rgba(196, 162, 101, 0.15);
  }

  .ed-header .site-nav.is-open a {
    color: rgba(250, 249, 247, 0.85);
  }

  .ed-header .site-nav.is-open a:hover {
    color: var(--color-gold-amber);
  }
}

/* ============================================
   FOOTER - Editorial Dark Charcoal
   ============================================ */
.ed-footer {
  background: var(--color-charcoal);
  color: rgba(250, 249, 247, 0.7);
}

.ed-footer::before {
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-gold-amber) 0%,
    var(--color-gold-amber-light) 50%,
    var(--color-gold-amber) 100%);
}

.ed-footer-section h3 {
  font-family: var(--font-editorial-heading);
  color: var(--color-paper);
  font-weight: 700;
}

.ed-footer-section h3::after {
  background: var(--color-gold-amber);
}

.ed-footer-section a {
  color: rgba(250, 249, 247, 0.65);
}

.ed-footer-section a:hover {
  color: var(--color-gold-amber);
}

.ed-footer-bottom {
  border-top-color: rgba(196, 162, 101, 0.15);
  color: rgba(250, 249, 247, 0.45);
}

.ed-footer-bottom a {
  color: var(--color-gold-amber);
  text-decoration: none;
}

.ed-footer-bottom a:hover {
  color: var(--color-gold-amber-light);
}

/* ============================================
   SIDEBAR - Editorial Widgets
   ============================================ */
.ed-widget {
  background: var(--color-paper);
  border: 1px solid var(--color-warm-gray-dark);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.ed-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold-amber);
  opacity: 0;
  transition: opacity 0.3s;
}

.ed-widget:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--color-gold-amber);
}

.ed-widget:hover::before {
  opacity: 1;
}

.ed-widget-title {
  font-family: var(--font-editorial-heading);
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-gold-amber);
  position: relative;
}

.ed-widget-title::before {
  background: var(--color-gold-amber-dark);
}

.ed-recent-posts a {
  font-family: var(--font-editorial-body);
}

.ed-recent-posts li:hover {
  background: rgba(196, 162, 101, 0.06);
  border-color: rgba(196, 162, 101, 0.2);
}

.ed-widget-link {
  color: var(--color-gold-amber-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.ed-widget-link:hover {
  color: var(--color-gold-amber);
}

.ed-widget-about p {
  font-family: var(--font-editorial-body);
  line-height: 1.75;
  color: var(--text-subtle);
}

/* ============================================
   POST PAGE - Editorial Article Design
   ============================================ */

/* Post Header */
.ed-post-header {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-warm-gray-dark);
}

/* Category Label above title */
.ed-post-category-label {
  margin-bottom: var(--space-4);
}

.ed-post-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--color-charcoal);
  color: var(--color-gold-amber);
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

/* Title */
.ed-post-title {
  font-family: var(--font-editorial-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-6);
}

/* Meta information */
.ed-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-warm-gray-dark);
  border-bottom: 1px solid var(--color-warm-gray-dark);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--text-subtle);
}

.ed-post-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-editorial-body);
}

.ed-post-meta-item svg {
  color: var(--color-gold-amber);
  flex-shrink: 0;
}

/* Tags */
.ed-tag {
  background: var(--color-charcoal);
  color: var(--color-paper);
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
}

.ed-tag:hover {
  background: var(--color-gold-amber-dark);
  transform: translateY(-1px);
}

.ed-tag-small {
  background: var(--color-charcoal);
  color: var(--color-paper);
  font-family: var(--font-editorial-body);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

/* Excerpt */
.ed-post-excerpt {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--text-subtle);
  padding: var(--space-6);
  background: var(--color-warm-gray);
  border-left: 4px solid var(--color-gold-amber);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Post Content */
.ed-post-content {
  font-family: var(--font-editorial-body);
  font-size: var(--font-size-lg);
  line-height: 1.85;
  color: var(--color-ink);
}

.ed-post-content h1,
.ed-post-content h2,
.ed-post-content h3 {
  font-family: var(--font-editorial-heading);
}

.ed-post-content h2 {
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-gold-amber);
  margin-top: var(--space-12);
}

.ed-post-content h3 {
  position: relative;
  padding-left: var(--space-4);
}

.ed-post-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  background: var(--color-gold-amber);
  border-radius: var(--radius-full);
}

.ed-post-content blockquote {
  border-left: 4px solid var(--color-gold-amber);
  background: var(--color-warm-gray);
  font-family: var(--font-editorial-heading);
  font-style: normal;
  color: var(--color-charcoal);
}

.ed-post-content a {
  color: var(--color-gold-amber-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.ed-post-content a:hover {
  color: var(--color-gold-amber);
  border-bottom-color: var(--color-gold-amber);
}

/* Table of Contents */
.ed-toc {
  margin: var(--space-8) 0;
}

.ed-toc-details {
  background: var(--color-warm-gray);
  border: 1px solid var(--color-warm-gray-dark);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}

.ed-toc-summary {
  font-family: var(--font-editorial-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-ink);
  padding: var(--space-5) var(--space-6);
  background: var(--color-warm-gray);
  border-bottom: 1px solid var(--color-warm-gray-dark);
  cursor: pointer;
}

.ed-toc-summary::before {
  color: var(--color-gold-amber);
}

.ed-toc-list {
  padding: var(--space-4) var(--space-6) var(--space-5);
}

.ed-toc-list a {
  font-family: var(--font-editorial-body);
  color: var(--text-subtle);
  transition: color 0.2s;
}

.ed-toc-list a:hover {
  color: var(--color-gold-amber-dark);
}

/* ============================================
   POST FOOTER - Share / Navigation
   ============================================ */
.ed-post-footer {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-warm-gray-dark);
}

/* Social Share */
.ed-social-share {
  background: var(--color-warm-gray);
  border: 1px solid var(--color-warm-gray-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-10);
  text-align: center;
}

.ed-share-heading {
  font-family: var(--font-editorial-heading);
  font-size: var(--font-size-xl);
  color: var(--color-ink);
  margin-bottom: var(--space-5);
  justify-content: center;
}

.ed-share-buttons {
  justify-content: center;
}

.ed-share-button {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-family: var(--font-editorial-body);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-paper);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ed-share-twitter { background: var(--color-charcoal); }
.ed-share-facebook { background: #1877f2; }
.ed-share-linkedin { background: #0a66c2; }
.ed-share-hatena { background: #00a4de; }

.ed-share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Post Navigation */
.ed-post-navigation {
  margin-bottom: var(--space-12);
}

.ed-nav-previous,
.ed-nav-next {
  background: var(--color-paper);
  border: 1px solid var(--color-warm-gray-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.ed-nav-previous::before,
.ed-nav-next::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold-amber);
  opacity: 0;
  transition: opacity 0.3s;
}

.ed-nav-previous:hover,
.ed-nav-next:hover {
  border-color: var(--color-gold-amber);
  box-shadow: 0 4px 20px rgba(196, 162, 101, 0.1);
}

.ed-nav-previous:hover::before,
.ed-nav-next:hover::before {
  opacity: 1;
}

.ed-nav-link {
  font-family: var(--font-editorial-body);
}

.ed-nav-link .nav-label {
  font-family: var(--font-editorial-body);
  color: var(--color-gold-amber-dark);
  font-weight: 600;
  font-size: var(--font-size-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ed-nav-link .nav-title {
  font-family: var(--font-editorial-heading);
  font-weight: 700;
}

.ed-nav-link:hover {
  background: var(--color-charcoal);
  color: var(--color-paper);
}

.ed-nav-link:hover .nav-label {
  color: var(--color-gold-amber);
}

/* ============================================
   RELATED POSTS - Magazine Card Grid
   ============================================ */
.ed-related-posts {
  background: var(--color-charcoal);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  margin-top: var(--space-16);
}

.ed-related-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.ed-related-title {
  font-family: var(--font-editorial-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-paper);
}

.ed-related-subtitle {
  color: rgba(250, 249, 247, 0.6);
  font-family: var(--font-editorial-body);
}

.ed-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.ed-related-card {
  background: var(--color-charcoal-light);
  border: 1px solid rgba(196, 162, 101, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s,
              border-color 0.3s;
  position: relative;
}

.ed-related-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold-amber);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}

.ed-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(196, 162, 101, 0.25);
}

.ed-related-card:hover::after {
  transform: scaleX(1);
}

.ed-related-link {
  color: var(--color-paper);
}

.ed-related-link:hover {
  color: var(--color-paper);
}

.ed-related-icon {
  background: rgba(196, 162, 101, 0.1);
  border-radius: var(--radius-lg);
}

.ed-related-post-title {
  font-family: var(--font-editorial-heading);
  color: var(--color-paper);
  font-weight: 700;
}

.ed-related-card .related-post-excerpt {
  color: rgba(250, 249, 247, 0.6);
}

.ed-related-meta {
  color: rgba(250, 249, 247, 0.45);
}

.ed-related-meta time {
  color: var(--color-gold-amber);
}

/* ============================================
   BREADCRUMBS - Editorial Style Override
   ============================================ */
.ed-post-breadcrumbs .breadcrumb-list a {
  color: var(--color-gold-amber-dark);
}

.ed-post-breadcrumbs .breadcrumb-list a:hover {
  color: var(--color-gold-amber);
}

/* ============================================
   RESPONSIVE - Editorial Post/Header/Footer
   ============================================ */
@media (max-width: 768px) {
  .ed-post-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .ed-post-meta {
    gap: var(--space-3);
  }

  .ed-social-share {
    padding: var(--space-5);
  }

  .ed-share-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .ed-share-button {
    justify-content: center;
  }

  .ed-related-posts {
    padding: var(--space-6);
  }

  .ed-related-grid {
    grid-template-columns: 1fr;
  }

  .ed-related-card .related-post-link {
    flex-direction: row;
    text-align: left;
  }

  .ed-related-card .related-post-icon {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .ed-header .header-container {
    padding: var(--space-2) var(--space-3);
  }

  .ed-site-title .site-title-text {
    font-size: var(--font-size-base);
  }
}

/* ============================================
   CATEGORY PAGES - Editorial Design
   ============================================ */
.ed-category-page .category-header {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-charcoal-light) 100%);
  color: var(--color-paper);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem) 2rem;
  position: relative;
  overflow: hidden;
}

.ed-category-page .category-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold-amber);
}

.ed-category-page .category-header h1 {
  font-family: var(--font-editorial-heading);
  font-weight: 700;
  color: var(--color-paper);
  letter-spacing: 0.02em;
}

.ed-category-page .category-header p {
  font-family: var(--font-editorial-body);
  color: rgba(250, 249, 247, 0.8);
}

.ed-category-page .category-stats .stat {
  background: rgba(196, 162, 101, 0.15);
  color: var(--color-gold-amber);
  font-family: var(--font-editorial-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
}

.ed-category-page .section-title {
  font-family: var(--font-editorial-heading);
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-gold-amber);
}

.ed-category-page .featured-post {
  background: var(--color-paper);
  border: 1px solid var(--color-warm-gray-dark);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.ed-category-page .featured-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold-amber);
}

.ed-category-page .featured-post:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--color-gold-amber);
}

.ed-category-page .featured-post h3 a {
  font-family: var(--font-editorial-heading);
  color: var(--color-ink);
}

.ed-category-page .featured-post h3 a:hover {
  color: var(--color-gold-amber-dark);
}

.ed-category-page .featured-post p {
  font-family: var(--font-editorial-body);
}

.ed-category-page .article-card {
  background: var(--color-paper);
  border: 1px solid var(--color-warm-gray-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s,
              border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.ed-category-page .article-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold-amber);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}

.ed-category-page .article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--color-gold-amber);
}

.ed-category-page .article-card:hover::after {
  transform: scaleX(1);
}

.ed-category-page .article-date {
  background: var(--color-charcoal);
  color: var(--color-paper);
  font-family: var(--font-editorial-body);
}

.ed-category-page .article-title a {
  font-family: var(--font-editorial-heading);
  color: var(--color-ink);
}

.ed-category-page .article-title a:hover {
  color: var(--color-gold-amber-dark);
}

.ed-category-page .article-excerpt {
  font-family: var(--font-editorial-body);
}

.ed-category-page .article-content {
  font-family: var(--font-editorial-body);
}

.ed-category-page .no-posts {
  text-align: center;
  padding: var(--space-16);
  color: var(--text-subtle);
  font-family: var(--font-editorial-body);
}

.ed-category-page .no-posts a {
  color: var(--color-gold-amber-dark);
  font-weight: 600;
}

/* --- Home Page Layout Override --- */
body.layout-home .main-container {
  grid-template-columns: 1fr;
  max-width: 100%;
  padding: 0;
}

body.layout-home .content {
  overflow-x: hidden;
  overflow-y: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

body.layout-home .sidebar {
  display: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LUXURY EDITORIAL DARK THEME
   Design Direction: Bloomberg × Monocle × Nikkei Design
   Atmospheric, refined, premium — not just "dark mode"
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* --- 1. CSS Variable Remapping (Dark Foundation) --- */
:root {
  --text-default: #e8e6e1;
  --text-subtle: rgba(232, 230, 225, 0.65);
  --text-muted: rgba(232, 230, 225, 0.45);
  --text-disabled: rgba(232, 230, 225, 0.25);
  --text-inverse: #111113;

  --surface-default: #111113;
  --surface-raised: #1a1a1d;
  --surface-sunken: #0a0a0c;

  --border-default: rgba(196, 162, 101, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(196, 162, 101, 0.18);
  --border-inverse: rgba(232, 230, 225, 0.15);

  --link-color: #c4a265;
  --link-hover-color: #d4bc8a;
  --link-visited-color: #c8a870;

  /* --- Brand Colors (muted warm tones for dark) --- */
  --brand-primary: #c4a265;
  --brand-primary-hover: #d4bc8a;
  --brand-primary-pressed: #b08f52;
  --brand-primary-light: rgba(196, 162, 101, 0.2);
  --brand-primary-lighter: rgba(196, 162, 101, 0.12);
  --brand-primary-lightest: rgba(196, 162, 101, 0.06);

  --brand-secondary: #7ab5ad;
  --brand-secondary-hover: #96ccc5;
  --brand-secondary-pressed: #5e9e95;
  --brand-secondary-light: rgba(122, 181, 173, 0.2);
  --brand-secondary-lighter: rgba(122, 181, 173, 0.1);
  --brand-secondary-lightest: rgba(122, 181, 173, 0.05);

  --brand-accent-orange: #d4bc8a;
  --brand-accent-orange-light: #e0d0a8;
  --brand-accent-purple: #9b8ec4;
  --brand-accent-purple-light: #b5aad4;

  --primary-color: #c4a265;
  --primary-dark: #b08f52;
  --secondary-color: rgba(232, 230, 225, 0.5);
  --accent-color: #d4bc8a;

  /* --- Editorial Tokens (inverted for dark) --- */
  --color-ink: #e8e6e1;
  --color-charcoal: #1a1a1d;
  --color-charcoal-light: #222225;
  --color-charcoal-warm: #1e1e21;

  /* --- Neutral Scale (inverted for dark) --- */
  --color-neutral-0: #111113;
  --color-neutral-100: #161618;
  --color-neutral-200: #1e1e21;
  --color-neutral-300: rgba(232, 230, 225, 0.1);
  --color-neutral-400: rgba(232, 230, 225, 0.2);
  --color-neutral-500: rgba(232, 230, 225, 0.4);
  --color-neutral-600: rgba(232, 230, 225, 0.55);
  --color-neutral-700: rgba(232, 230, 225, 0.65);
  --color-neutral-800: rgba(232, 230, 225, 0.8);
  --color-neutral-900: #e8e6e1;
  --color-neutral-1000: #e8e6e1;

  --white: #111113;
  --gray-50: #161618;
  --gray-100: #1e1e21;
  --gray-200: rgba(232, 230, 225, 0.08);
  --gray-300: rgba(232, 230, 225, 0.12);
  --gray-400: rgba(232, 230, 225, 0.2);
  --gray-500: rgba(232, 230, 225, 0.35);
  --gray-600: rgba(232, 230, 225, 0.55);
  --gray-700: rgba(232, 230, 225, 0.7);
  --gray-800: rgba(232, 230, 225, 0.85);
  --gray-900: #e8e6e1;

  --color-warm-gray: #1e1e21;
  --color-warm-gray-dark: rgba(232, 230, 225, 0.08);
  --color-paper: #e8e6e1;

  /* --- Semantic Colors --- */
  --color-success: #2dd4bf;
  --color-warning: #d4bc8a;
  --color-danger: #f87171;
  --color-info: #93c5fd;

  --color-success-light: rgba(45, 212, 191, 0.12);
  --color-warning-light: rgba(245, 215, 142, 0.12);
  --color-danger-light: rgba(248, 113, 113, 0.12);
  --color-info-light: rgba(147, 197, 253, 0.12);

  /* --- Focus & Misc --- */
  --focus-ring: #c4a265;
  --focus-ring-offset: #111113;

  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(196, 162, 101, 0.04);
  --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 162, 101, 0.06);
  --shadow-extra-large: 0 16px 48px rgba(0, 0, 0, 0.5);
  --elevation-100: 0 1px 4px rgba(0, 0, 0, 0.4);
  --elevation-200: 0 4px 12px rgba(0, 0, 0, 0.4);
  --elevation-300: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* --- 2. Base Body & Atmosphere --- */
body {
  background: #0e0e10 !important;
  color: #e8e6e1 !important;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(196, 162, 101, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(26, 54, 93, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* --- 3. Main Content Area --- */
.content {
  background: rgba(22, 22, 24, 0.6) !important;
  border-color: rgba(196, 162, 101, 0.06) !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.main-container {
  background: transparent;
}

/* --- 4. Card System (Glass-morphism + Subtle Glow) --- */
.service-card,
.process-step,
.stat-card,
.overview-card,
.media-card,
.contact-form-area,
.info-card,
.case-study-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.9), rgba(22, 22, 24, 0.95)) !important;
  border: 1px solid rgba(196, 162, 101, 0.08) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease !important;
}

.service-card:hover,
.overview-card:hover,
.media-card:hover,
.info-card:hover,
.case-study-card:hover {
  border-color: rgba(196, 162, 101, 0.2) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(196, 162, 101, 0.04) !important;
  transform: translateY(-2px) !important;
}

/* --- 5. Company table --- */
.company-table th {
  background: rgba(22, 22, 24, 0.8) !important;
  border-color: rgba(196, 162, 101, 0.08) !important;
}

.company-table td {
  border-color: rgba(255, 255, 255, 0.04) !important;
}

/* --- 6. Article Post Styles --- */
.post { color: #e8e6e1; }
.post-title, .post-header h1 { color: #e8e6e1 !important; font-family: var(--font-family-display); }
.post-meta, .post-meta span, .post-meta time { color: rgba(232, 230, 225, 0.5) !important; letter-spacing: 0.03em; }
.post-header { border-bottom-color: rgba(196, 162, 101, 0.12) !important; }
.post-content, .post-content p, .post-content li { color: rgba(232, 230, 225, 0.88); line-height: 1.85; }
.post-content h2, .post-content h3, .post-content h4 { color: #e8e6e1 !important; font-family: var(--font-family-display); }
.post-content a { color: #c4a265 !important; text-decoration-color: rgba(212, 152, 61, 0.3) !important; }
.post-content a:hover { color: #d4bc8a !important; text-decoration-color: rgba(245, 215, 142, 0.5) !important; }

.post-content blockquote {
  border-left: 3px solid #c4a265 !important;
  background: rgba(196, 162, 101, 0.04) !important;
  color: rgba(232, 230, 225, 0.75);
  font-style: italic;
  padding: 1.25rem 1.5rem !important;
}

.post-content code {
  background: rgba(30, 30, 33, 0.8) !important;
  color: #d4bc8a !important;
  border: 1px solid rgba(196, 162, 101, 0.1);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.post-content pre {
  background: #0a0a0c !important;
  border: 1px solid rgba(196, 162, 101, 0.1) !important;
  border-radius: 8px;
}

.post-content table th {
  background: rgba(22, 22, 24, 0.8) !important;
  color: #e8e6e1 !important;
  border-color: rgba(196, 162, 101, 0.08) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.post-content table td {
  border-color: rgba(255, 255, 255, 0.04) !important;
  color: rgba(232, 230, 225, 0.85);
}

.post-content hr { border-color: rgba(196, 162, 101, 0.08) !important; }

/* --- 7. Sidebar & Widgets --- */
.sidebar, .ed-sidebar { color: #e8e6e1; }

.widget, .ed-widget {
  background: linear-gradient(180deg, rgba(26, 26, 29, 0.8), rgba(22, 22, 24, 0.9)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  border-radius: 12px !important;
}

.widget-title, .ed-widget-title {
  color: #e8e6e1 !important;
  border-bottom: 2px solid rgba(196, 162, 101, 0.25) !important;
  font-family: var(--font-family-display);
  letter-spacing: 0.04em;
}

.widget a, .ed-widget a { color: rgba(232, 230, 225, 0.75) !important; transition: color 0.2s ease !important; }
.widget a:hover, .ed-widget a:hover { color: #c4a265 !important; }

/* --- 8. Breadcrumbs --- */
.breadcrumbs {
  background: rgba(14, 14, 16, 0.95) !important;
  border-bottom: 1px solid rgba(196, 162, 101, 0.06) !important;
  backdrop-filter: blur(12px);
}

.breadcrumb-item a { color: rgba(212, 152, 61, 0.8) !important; }
.breadcrumb-item a:hover { color: #d4bc8a !important; background: rgba(196, 162, 101, 0.08) !important; }
.breadcrumb-current span { color: rgba(232, 230, 225, 0.6) !important; }
.breadcrumb-separator { color: rgba(232, 230, 225, 0.2) !important; }

/* --- 9. Footer --- */
.site-footer, .ed-footer {
  background: #0a0a0c !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
  color: rgba(232, 230, 225, 0.55) !important;
}

.site-footer p, .ed-footer p,
.ed-footer-section p {
  color: rgba(232, 230, 225, 0.5) !important;
}

.site-footer h3, .ed-footer h3,
.ed-footer-section h3 {
  color: rgba(232, 230, 225, 0.85) !important;
}

.site-footer a, .ed-footer a { color: rgba(232, 230, 225, 0.5) !important; }
.site-footer a:hover, .ed-footer a:hover { color: #c4a265 !important; }

/* --- 10. Search --- */
.search-container, .search-form input {
  background: rgba(22, 22, 24, 0.8) !important;
  border-color: rgba(196, 162, 101, 0.1) !important;
  color: #e8e6e1 !important;
}

.search-form input::placeholder { color: rgba(232, 230, 225, 0.3) !important; }

.search-input-large {
  background: rgba(22, 22, 24, 0.8) !important;
  border: 1px solid rgba(196, 162, 101, 0.12) !important;
  color: #e8e6e1 !important;
  border-radius: 12px !important;
}

.search-input-large:focus {
  border-color: rgba(196, 162, 101, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.08), 0 0 20px rgba(196, 162, 101, 0.05) !important;
}

.search-input-large::placeholder { color: rgba(232, 230, 225, 0.3) !important; }

.search-result {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.8), rgba(22, 22, 24, 0.9)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  border-radius: 12px !important;
  transition: border-color 0.3s ease !important;
}

.search-result:hover {
  border-color: rgba(196, 162, 101, 0.15) !important;
}

mark {
  background: rgba(196, 162, 101, 0.2) !important;
  color: #d4bc8a !important;
  border-radius: 2px;
}

/* --- 11. Tags --- */
.tag-link, .tag-badge, .tag {
  background: rgba(196, 162, 101, 0.06) !important;
  color: rgba(232, 230, 225, 0.7) !important;
  border: 1px solid rgba(196, 162, 101, 0.1) !important;
  transition: all 0.2s ease !important;
}

.tag-link:hover, .tag-badge:hover, .tag:hover {
  background: rgba(196, 162, 101, 0.12) !important;
  color: #c4a265 !important;
  border-color: rgba(196, 162, 101, 0.25) !important;
}

/* --- 12. Category Pages --- */
.ed-category-page h1, .ed-category-page h2 { color: #e8e6e1 !important; font-family: var(--font-family-display); }
.ed-category-page .ed-cat-article-excerpt { color: rgba(232, 230, 225, 0.6); }

/* --- 13. Pagination --- */
.pagination-number {
  color: rgba(232, 230, 225, 0.5) !important;
  transition: all 0.2s ease !important;
}

.pagination-number:hover, .pagination-number.active {
  background: linear-gradient(135deg, #c4a265, #b08f52) !important;
  color: #0e0e10 !important;
  box-shadow: 0 2px 8px rgba(196, 162, 101, 0.2) !important;
}

.pagination-link {
  background: transparent !important;
  border: 1px solid rgba(196, 162, 101, 0.2) !important;
  color: #c4a265 !important;
  transition: all 0.2s ease !important;
}

.pagination-link:hover {
  background: linear-gradient(135deg, #c4a265, #b08f52) !important;
  color: #0e0e10 !important;
}

/* --- 14. Consulting CTA --- */
.consulting-cta {
  background: linear-gradient(135deg, rgba(26, 26, 29, 0.9), rgba(22, 22, 24, 0.95)) !important;
  border: 1px solid rgba(196, 162, 101, 0.1) !important;
  color: #e8e6e1 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* --- 15. Newsletter --- */
.newsletter-widget input {
  background: rgba(22, 22, 24, 0.8) !important;
  border: 1px solid rgba(196, 162, 101, 0.12) !important;
  color: #e8e6e1 !important;
  border-radius: 8px !important;
}

/* --- 16. Editorial Components --- */
.ed-post { color: #e8e6e1; }
.ed-post-header { border-bottom-color: rgba(196, 162, 101, 0.1) !important; }
.ed-post-title { color: #e8e6e1 !important; font-family: var(--font-family-display); }
.ed-post-content { color: rgba(232, 230, 225, 0.88); }
.ed-post-content h2, .ed-post-content h3 { color: #e8e6e1 !important; font-family: var(--font-family-display); }

.ed-guide-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.85), rgba(22, 22, 24, 0.95)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ed-guide-card:hover {
  border-color: rgba(196, 162, 101, 0.18) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(196, 162, 101, 0.04) !important;
  transform: translateY(-3px) !important;
}

.ed-article-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.85), rgba(22, 22, 24, 0.95)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ed-article-card:hover {
  border-color: rgba(196, 162, 101, 0.18) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(-2px) !important;
}

.ed-search {
  background: rgba(14, 14, 16, 0.8) !important;
  border-radius: 12px !important;
}

.ed-newsletter {
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.06), rgba(26, 54, 93, 0.08)) !important;
  border: 1px solid rgba(196, 162, 101, 0.1) !important;
  color: #e8e6e1 !important;
  border-radius: 12px !important;
}

.ed-newsletter-title, .ed-newsletter-desc { color: #e8e6e1 !important; }

.ed-search-input {
  background: rgba(22, 22, 24, 0.8) !important;
  border: 1px solid rgba(196, 162, 101, 0.1) !important;
  color: #e8e6e1 !important;
}

.ed-search-input::placeholder { color: rgba(232, 230, 225, 0.3) !important; }

/* --- 17. TOC --- */
.toc-container, .ed-toc, .ed-toc-details {
  background: rgba(22, 22, 24, 0.8) !important;
  border: 1px solid rgba(196, 162, 101, 0.08) !important;
  color: #e8e6e1 !important;
  border-radius: 12px !important;
}

.ed-toc-list a, .toc-link { color: rgba(232, 230, 225, 0.7) !important; }
.ed-toc-list a:hover, .toc-link:hover { color: #c4a265 !important; }

/* --- 18. Social Share --- */
.ed-share-button {
  background: rgba(22, 22, 24, 0.8) !important;
  color: #e8e6e1 !important;
  border: 1px solid rgba(196, 162, 101, 0.08) !important;
  transition: all 0.2s ease !important;
}

.ed-share-button:hover {
  border-color: rgba(196, 162, 101, 0.2) !important;
  background: rgba(196, 162, 101, 0.06) !important;
}

/* --- 19. Related Posts --- */
.ed-related-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.85), rgba(22, 22, 24, 0.95)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  transition: all 0.3s ease !important;
}

.ed-related-card:hover {
  border-color: rgba(196, 162, 101, 0.15) !important;
  transform: translateY(-2px) !important;
}

.ed-related-title { color: #e8e6e1 !important; }

/* --- 20. Post Navigation --- */
.ed-nav-link {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.8), rgba(22, 22, 24, 0.9)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  color: #e8e6e1 !important;
  transition: all 0.3s ease !important;
}

.ed-nav-link:hover {
  border-color: rgba(196, 162, 101, 0.2) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* --- 21. Article Cards --- */
.article-card, .recent-post-item {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.85), rgba(22, 22, 24, 0.95)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  transition: all 0.3s ease !important;
}

.article-card:hover {
  border-color: rgba(196, 162, 101, 0.2) !important;
  transform: translateY(-2px) !important;
}

/* --- 22. Archive Page --- */
.archive-filters {
  background: rgba(14, 14, 16, 0.8) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
}

.filter-select {
  background: rgba(26, 26, 29, 0.8) !important;
  border: 1px solid rgba(196, 162, 101, 0.1) !important;
  color: #e8e6e1 !important;
  border-radius: 8px !important;
}

.archive-article {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.85), rgba(22, 22, 24, 0.95)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  transition: border-color 0.3s ease !important;
}

.archive-article:hover {
  border-color: rgba(196, 162, 101, 0.15) !important;
}

.article-category {
  background: rgba(196, 162, 101, 0.08) !important;
  color: #c4a265 !important;
  border-radius: 4px !important;
}

/* --- 23. Legal Pages --- */
.legal-page h1 {
  border-bottom: 2px solid rgba(196, 162, 101, 0.2) !important;
  font-family: var(--font-family-display);
}

.legal-content h2 {
  border-bottom-color: rgba(196, 162, 101, 0.08) !important;
  font-family: var(--font-family-display);
}

.legal-content a {
  color: #c4a265 !important;
}

/* --- 24. About Page --- */
.about-hero {
  background: linear-gradient(160deg, #161618 0%, #111113 40%, rgba(196, 162, 101, 0.04) 100%) !important;
}

.mission-section {
  background: rgba(22, 22, 24, 0.6) !important;
}

.editorial-note {
  background: rgba(196, 162, 101, 0.03) !important;
  border-left: 3px solid rgba(196, 162, 101, 0.3) !important;
}

.about-company-section {
  background: rgba(14, 14, 16, 0.6) !important;
}

.about-company-links .btn-outline {
  color: #c4a265 !important;
  border-color: rgba(196, 162, 101, 0.25) !important;
}

/* --- 25. Services Page --- */
.services-hero {
  background: linear-gradient(160deg, #161618 0%, #111113 40%, rgba(196, 162, 101, 0.04) 100%) !important;
}

.process-section {
  background: rgba(14, 14, 16, 0.6) !important;
}

.services-cta {
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.06), rgba(14, 14, 16, 0.9)) !important;
  border: 1px solid rgba(196, 162, 101, 0.1) !important;
}

.service-features li {
  border-bottom-color: rgba(255, 255, 255, 0.03) !important;
}

.service-features li::before {
  color: #c4a265 !important;
}

.process-arrow {
  color: rgba(196, 162, 101, 0.4) !important;
}

.step-number {
  background: linear-gradient(135deg, #c4a265, #b08f52) !important;
  color: #0e0e10 !important;
  box-shadow: 0 2px 8px rgba(196, 162, 101, 0.2) !important;
}

.stat-number {
  color: #c4a265 !important;
  font-family: var(--font-family-display);
}

/* --- 26. Contact Page --- */
.contact-hero {
  background: linear-gradient(160deg, #161618 0%, #111113 40%, rgba(196, 162, 101, 0.04) 100%) !important;
}

.info-card h3 {
  border-bottom: 2px solid rgba(196, 162, 101, 0.2) !important;
  font-family: var(--font-family-display);
}

.faq-list li::before { color: #c4a265 !important; }
.info-link { color: #c4a265 !important; }

/* --- 27. Company Page --- */
.company-hero {
  background: linear-gradient(160deg, #161618 0%, #111113 40%, rgba(196, 162, 101, 0.04) 100%) !important;
}

.company-table td a { color: #c4a265 !important; }
.inline-list li::before { color: rgba(196, 162, 101, 0.6) !important; }
.media-name { color: #c4a265 !important; }
.media-link { color: #c4a265 !important; }

.company-cta {
  background: linear-gradient(160deg, rgba(196, 162, 101, 0.08) 0%, #0e0e10 60%) !important;
  border-top: 1px solid rgba(196, 162, 101, 0.1) !important;
}

/* --- 28. Case Studies --- */
.coming-soon {
  background: rgba(22, 22, 24, 0.6) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
}

.case-studies-cta .consulting-cta {
  background: linear-gradient(135deg, rgba(26, 26, 29, 0.9), rgba(22, 22, 24, 0.95)) !important;
}

/* --- 29. Buttons (Premium Feel) --- */
.btn-primary {
  background: linear-gradient(135deg, #c4a265, #b08f52) !important;
  color: #0e0e10 !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 2px 8px rgba(196, 162, 101, 0.15) !important;
  transition: all 0.3s ease !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c4a265, #c4a265) !important;
  box-shadow: 0 4px 16px rgba(196, 162, 101, 0.25) !important;
  transform: translateY(-1px) !important;
}

.btn-outline {
  border: 1px solid rgba(196, 162, 101, 0.3) !important;
  color: #c4a265 !important;
  background: transparent !important;
  transition: all 0.3s ease !important;
}

.btn-outline:hover {
  background: rgba(196, 162, 101, 0.08) !important;
  border-color: rgba(196, 162, 101, 0.5) !important;
  color: #d4bc8a !important;
}

/* --- 30. Section Headings --- */
.section-content h2 {
  color: #e8e6e1 !important;
  border-bottom: 2px solid rgba(196, 162, 101, 0.2) !important;
  font-family: var(--font-family-display);
}

/* --- 31. Form Inputs --- */
.contact-form-area input,
.contact-form-area textarea,
.contact-form-area select {
  background: rgba(22, 22, 24, 0.8) !important;
  border: 1px solid rgba(196, 162, 101, 0.1) !important;
  color: #e8e6e1 !important;
  border-radius: 8px !important;
  transition: border-color 0.3s ease !important;
}

.contact-form-area input:focus,
.contact-form-area textarea:focus,
.contact-form-area select:focus {
  border-color: rgba(196, 162, 101, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.06) !important;
  outline: none !important;
}

.contact-form-area input::placeholder,
.contact-form-area textarea::placeholder {
  color: rgba(232, 230, 225, 0.3) !important;
}

/* --- 32. Dropdown Menus --- */
.dropdown-menu {
  background: rgba(22, 22, 24, 0.98) !important;
  border: 1px solid rgba(196, 162, 101, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(16px) !important;
  border-radius: 12px !important;
}

.dropdown-menu a {
  color: rgba(232, 230, 225, 0.8) !important;
  transition: all 0.15s ease !important;
}

.dropdown-menu a:hover {
  background: rgba(196, 162, 101, 0.06) !important;
  color: #c4a265 !important;
}

/* --- 33. Header Enhancement --- */
.site-header, .ed-header {
  background: rgba(14, 14, 16, 0.92) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(196, 162, 101, 0.06) !important;
}

.site-header.scrolled, .ed-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4) !important;
}

/* --- 34. Home Page Editorial Sections --- */
.ed-hero {
  background: linear-gradient(180deg, #111113 0%, rgba(196, 162, 101, 0.02) 50%, #111113 100%) !important;
}

.ed-stats-bar {
  background: rgba(14, 14, 16, 0.8) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  backdrop-filter: blur(8px) !important;
}

.ed-category-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.85), rgba(22, 22, 24, 0.95)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ed-category-card:hover {
  border-color: rgba(196, 162, 101, 0.18) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-3px) !important;
}

.ed-consulting-section {
  background: linear-gradient(160deg, rgba(196, 162, 101, 0.03) 0%, #111113 40%) !important;
  border-top: 1px solid rgba(196, 162, 101, 0.06) !important;
}

.ed-consulting-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.9), rgba(22, 22, 24, 0.95)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  transition: all 0.3s ease !important;
}

.ed-consulting-card:hover {
  border-color: rgba(196, 162, 101, 0.15) !important;
  transform: translateY(-2px) !important;
}

.ed-cta-section {
  background: linear-gradient(160deg, rgba(196, 162, 101, 0.05) 0%, #0e0e10 50%) !important;
  border-top: 1px solid rgba(196, 162, 101, 0.06) !important;
}

/* --- 35. Staggered Page Load Animation --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.ed-hero,
.ed-stats-bar,
.ed-guide-card,
.ed-article-card,
.ed-category-card,
.ed-consulting-card {
  animation: fadeSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.ed-hero { animation-delay: 0s; }
.ed-stats-bar { animation-delay: 0.1s; }
.ed-guide-card:nth-child(1) { animation-delay: 0.15s; }
.ed-guide-card:nth-child(2) { animation-delay: 0.2s; }
.ed-guide-card:nth-child(3) { animation-delay: 0.25s; }
.ed-article-card:nth-child(1) { animation-delay: 0.15s; }
.ed-article-card:nth-child(2) { animation-delay: 0.2s; }
.ed-article-card:nth-child(3) { animation-delay: 0.25s; }
.ed-article-card:nth-child(4) { animation-delay: 0.3s; }

/* --- 36. Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0e0e10;
}

::-webkit-scrollbar-thumb {
  background: rgba(196, 162, 101, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 162, 101, 0.25);
}

/* --- 37. Selection Color --- */
::selection {
  background: rgba(196, 162, 101, 0.2);
  color: #d4bc8a;
}

/* --- 38. Suggestion Tags (Search) --- */
.suggestion-tag {
  background: rgba(196, 162, 101, 0.06) !important;
  color: rgba(232, 230, 225, 0.7) !important;
  border: 1px solid rgba(196, 162, 101, 0.1) !important;
  transition: all 0.2s ease !important;
}

.suggestion-tag:hover {
  background: rgba(196, 162, 101, 0.12) !important;
  color: #c4a265 !important;
  border-color: rgba(196, 162, 101, 0.25) !important;
}

/* --- 39. Search Button --- */
.search-button-large {
  background: linear-gradient(135deg, #c4a265, #b08f52) !important;
  color: #0e0e10 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(196, 162, 101, 0.15) !important;
}

.search-button-large:hover {
  background: linear-gradient(135deg, #c4a265, #c4a265) !important;
  box-shadow: 0 4px 16px rgba(196, 162, 101, 0.25) !important;
}

/* --- 40. No Results --- */
.no-results {
  background: rgba(22, 22, 24, 0.6) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  color: rgba(232, 230, 225, 0.6) !important;
}

/* --- 41. CTA Buttons (Company/Services pages) --- */
.cta-button.primary {
  background: linear-gradient(135deg, #c4a265, #b08f52) !important;
  color: #0e0e10 !important;
}

.cta-button.primary:hover {
  background: linear-gradient(135deg, #c4a265, #c4a265) !important;
}

.cta-button.secondary {
  background: transparent !important;
  color: #e8e6e1 !important;
  border: 1px solid rgba(232, 230, 225, 0.2) !important;
}

.cta-button.secondary:hover {
  border-color: rgba(196, 162, 101, 0.4) !important;
  color: #c4a265 !important;
}

/* --- 42. Service Card Icon Enhancement --- */
.service-icon {
  color: #c4a265;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.service-icon svg {
  color: #c4a265;
}

/* --- 43. Process Step Enhancement --- */
.process-step {
  border-radius: 12px !important;
}

.process-step:hover {
  border-color: rgba(196, 162, 101, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* --- 44. Stat Card Enhancement --- */
.stat-card {
  border-radius: 12px !important;
  text-align: center;
}

/* --- 45. Search Header & Page Titles --- */
.search-header h1,
.search-page h1 {
  color: #e8e6e1 !important;
  font-family: var(--font-family-display);
}

.search-results-header h2 {
  color: rgba(232, 230, 225, 0.7) !important;
}

.search-suggestions h3 {
  color: rgba(232, 230, 225, 0.6) !important;
}

/* --- 46. Loading Spinner --- */
.loading-spinner {
  border-color: rgba(196, 162, 101, 0.1) !important;
  border-left-color: #c4a265 !important;
}

/* --- 47. Company Page CTA Text --- */
.company-cta .section-content h2 {
  color: #e8e6e1 !important;
  border: none !important;
}

.company-cta p {
  color: rgba(232, 230, 225, 0.7) !important;
}

/* --- 48. Home Page Cards (ed-comparison, ed-service, ed-guide) --- */
.ed-comparison-card,
.ed-service-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.9), rgba(22, 22, 24, 0.95)) !important;
  border: 1px solid rgba(196, 162, 101, 0.06) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: #e8e6e1 !important;
}

.ed-comparison-card:hover,
.ed-service-card:hover {
  border-color: rgba(196, 162, 101, 0.18) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(196, 162, 101, 0.04) !important;
  transform: translateY(-3px) !important;
}

.ed-comparison-card h4,
.ed-comparison-card h3,
.ed-service-card h3,
.ed-service-card h4 {
  color: #e8e6e1 !important;
}

.ed-comparison-card p,
.ed-service-card p {
  color: rgba(232, 230, 225, 0.65) !important;
}

.ed-comparison-card a,
.ed-service-card a {
  color: #c4a265 !important;
}

/* --- 49. Guide Card background fix --- */
.ed-guide-card {
  background: linear-gradient(145deg, rgba(26, 26, 29, 0.85), rgba(22, 22, 24, 0.95)) !important;
}

/* --- 50. Home section backgrounds --- */
.ed-consulting {
  background: linear-gradient(160deg, rgba(196, 162, 101, 0.03) 0%, #0e0e10 40%) !important;
  border-top: 1px solid rgba(196, 162, 101, 0.06);
}

.ed-categories {
  background: rgba(14, 14, 16, 0.6) !important;
}

/* --- 51. Language Switcher --- */
.lang-switcher {
  margin-left: 0.5rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(196, 162, 101, 0.3);
  border-radius: 6px;
  color: #c4a265 !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(196, 162, 101, 0.1);
  border-color: rgba(196, 162, 101, 0.5);
  color: #e8a843 !important;
}

.lang-flag {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.lang-label {
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .lang-toggle {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROGRAMMATIC SEO PAGES (pSEO)
   Industry × Region guide pages, hub pages, index page
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* --- pSEO Index Page (/ai-solutions/) --- */
.pseo-index {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}
.pseo-index > h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.pseo-index > p {
  color: var(--text-subtle);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.pseo-industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}
.pseo-industry-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pseo-industry-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-medium);
}
.pseo-industry-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.pseo-industry-card h2 a {
  color: var(--link-color);
  text-decoration: none;
}
.pseo-industry-card h2 a:hover {
  text-decoration: underline;
}
.pseo-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.pseo-industry-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin: 0.75rem 0 0.4rem;
  text-transform: none;
}
.pseo-industry-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-default);
}
.pseo-industry-card li {
  margin-bottom: 0.2rem;
}
.pseo-source {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.pseo-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--link-color);
  text-decoration: none;
}
.pseo-link:hover {
  text-decoration: underline;
}

/* --- pSEO Hub Page (/ai-solutions/{industry}/) --- */
.pseo-hub {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}
.pseo-hub > h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.pseo-hub-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 10px;
}
.pseo-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pseo-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}
.pseo-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.pseo-hub section {
  margin-bottom: 2rem;
}
.pseo-hub section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.pseo-hub ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}
.pseo-hub li {
  margin-bottom: 0.35rem;
}
.pseo-region-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.pseo-region-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-default);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pseo-region-link:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-lightest);
}
.pseo-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- pSEO Detail Page (Industry × Region) --- */
.pseo-industry-region {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Breadcrumb */
.pseo-industry-region .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pseo-industry-region .breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.4rem;
  color: var(--text-disabled);
}
.pseo-industry-region .breadcrumb a {
  color: var(--text-subtle);
  text-decoration: none;
}
.pseo-industry-region .breadcrumb a:hover {
  color: var(--link-color);
}

/* Hero */
.pseo-hero h1 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.pseo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.pseo-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--brand-primary-lightest);
  border: 1px solid var(--brand-primary-lighter);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-primary);
}
.pseo-meta time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Summary Box */
.pseo-summary-box {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--brand-primary);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.pseo-summary-box h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.pseo-summary-box p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 0.5rem;
}
.pseo-local-context {
  color: var(--text-subtle);
  font-style: italic;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  margin-top: 0.75rem !important;
}

/* Sections */
.pseo-section {
  margin-bottom: 2.5rem;
}
.pseo-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Challenge Cards */
.pseo-challenges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.pseo-challenge-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.pseo-challenge-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-default);
}

/* Use Case Cards */
.pseo-usecases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.pseo-usecase-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.pseo-usecase-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--brand-primary);
}

/* Insight */
.pseo-insight {
  background: var(--brand-primary-lightest);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-default);
  line-height: 1.6;
}

/* Subsidy List */
.pseo-subsidy-list {
  list-style: none;
  padding: 0;
}
.pseo-subsidy-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}
.pseo-subsidy-list li:last-child {
  border-bottom: none;
}

/* Steps */
.pseo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.pseo-step {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
}
.pseo-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.pseo-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.pseo-step p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-subtle);
  margin: 0;
}

/* Related Posts in pSEO */
.pseo-related-posts {
  display: grid;
  gap: 0.5rem;
}
.pseo-related-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.pseo-related-card a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--link-color);
  text-decoration: none;
}
.pseo-related-card a:hover {
  text-decoration: underline;
}
.pseo-related-card time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 1rem;
}

/* Cross-links */
.pseo-crosslinks h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.pseo-crosslink-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.pseo-crosslink-list a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-default);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.pseo-crosslink-list a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* CTA */
.pseo-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  margin-top: 2rem;
}
.pseo-cta h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border: none;
  padding: 0;
}
.pseo-cta p {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}
.pseo-cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}
.pseo-cta-button:hover {
  background: var(--brand-primary-hover);
  color: var(--text-inverse);
}
.pseo-cta-sub {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.pseo-cta-sub a {
  color: var(--link-color);
}

/* --- pSEO Industry Guide Banner (in blog posts) --- */
.pseo-post-banner {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.pseo-post-banner h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.pseo-post-banner p {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin: 0 0 0.75rem;
}
.pseo-post-banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pseo-post-banner-links a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-default);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.pseo-post-banner-links a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .pseo-industry-grid {
    grid-template-columns: 1fr;
  }
  .pseo-challenges,
  .pseo-usecases,
  .pseo-steps {
    grid-template-columns: 1fr;
  }
  .pseo-hub-stats {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
  }
  .pseo-hero h1 {
    font-size: 1.3rem;
  }
  .pseo-region-grid {
    gap: 0.35rem;
  }
  .pseo-region-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ---------------------------------------------------------------
   Hub & Spoke: ダブルハブ（技術 + 理由）リンクカード
   記事末尾のトピカル権威性強化用ウィジェット
   --------------------------------------------------------------- */
.hub-link.ed-hub-link {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
.hub-link-inner {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.hub-link-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.hub-link-card {
  position: relative;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #6366f1;
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hub-link-card:hover {
  border-left-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}
.hub-link-card.hub-link-reason {
  border-left-color: #f59e0b;
}
.hub-link-card.hub-link-reason:hover {
  border-left-color: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}
.hub-link-axis {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.hub-link-card.hub-link-reason .hub-link-axis {
  color: #b45309;
  background: #fef3c7;
}
.hub-link-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.35rem 0;
}
.hub-link-title a {
  color: #1c1c1e;
  text-decoration: none;
}
.hub-link-title a:hover {
  color: #4f46e5;
  text-decoration: underline;
}
.hub-link-card.hub-link-reason .hub-link-title a:hover {
  color: #d97706;
}
.hub-link-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

@media (max-width: 640px) {
  .hub-link.ed-hub-link {
    padding: 1.125rem;
    margin: 1.5rem 0;
  }
  .hub-link-card {
    padding: 0.875rem 1rem;
  }
  .hub-link-title {
    font-size: 0.975rem;
  }
  .hub-link-description {
    font-size: 0.825rem;
  }
}

