/* 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 - Atlassian Inspired */
  --font-family-base: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Ubuntu', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --font-family-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', 'Consolas', 'Roboto Mono', monospace;
  --font-family-display: 'Charlie Display', var(--font-family-base);
  
  /* 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;
}

/* ===== 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);
  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);
}

/* ===== テーブル ===== */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

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

/* ===== Modern Sidebar System ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: sticky;
  top: calc(var(--space-20) + var(--space-4)); /* Offset for header */
  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;
}

.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); }
}

/* 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;
  }
}

/* ===== 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) !important;
  font-weight: var(--font-weight-medium);
}

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

/* 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);
}

.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-top: var(--spacing-3xl);
}

.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);
}

.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);
}

/* 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);
  }
}
