/* ==========================================================================
   退職代行・法務比較ナビ - 共通スタイルシート
   高速表示・モバイル最適化・非属人ファクトチェックデザイン
   ========================================================================== */

:root {
  --primary: #1e3a8a;       /* 信頼のネイビー */
  --primary-light: #3b82f6; /* 明るいブルー */
  --primary-bg: #eff6ff;    /* 淡いブルー背景 */
  --accent: #ea580c;        /* 視認性の高いCTAオレンジ */
  --accent-hover: #c2410c;
  --success: #15803d;       /* 承認・安心のグリーン */
  --success-bg: #f0fdf4;
  --warning: #b45309;       /* 注意喚起のアンバー */
  --warning-bg: #fffbeb;
  --danger: #b91c1c;        /* 法律違反・非弁警戒レッド */
  --danger-bg: #fef2f2;
  --text-main: #1f2937;     /* 本文ダークグレー */
  --text-muted: #6b7280;    /* 補足グレー */
  --border-color: #e5e7eb;  /* 境界線 */
  --bg-page: #f8fafc;       /* 全体背景 */
  --bg-card: #ffffff;       /* カード背景 */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* 広告明記バー（ステマ規制完全対応） */
.ad-disclosure-bar {
  background-color: #f3f4f6;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 12px;
}

/* ヘッダー */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--primary-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo span {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-main);
}
.nav-links a:hover {
  color: var(--primary-light);
}

/* メインコンテナ */
.main-wrapper {
  max-width: 1040px;
  margin: 24px auto 60px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 860px) {
  .main-wrapper {
    grid-template-columns: 720px 1fr;
  }
}

.content-area {
  background: var(--bg-card);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

@media (min-width: 640px) {
  .content-area {
    padding: 36px 32px;
  }
}

/* 記事ヘッダー */
.article-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.article-category {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 24px;
  line-height: 1.4;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .article-title {
    font-size: 28px;
  }
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 本文見出し */
.content-area h2 {
  font-size: 21px;
  color: var(--primary);
  border-left: 6px solid var(--primary);
  padding: 8px 14px;
  background: var(--primary-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 36px 0 18px;
  line-height: 1.4;
}

.content-area h3 {
  font-size: 18px;
  color: #1e293b;
  border-bottom: 2px solid var(--primary-bg);
  padding-bottom: 6px;
  margin: 28px 0 14px;
}

.content-area p {
  margin-bottom: 18px;
}

.content-area ul, .content-area ol {
  margin: 0 0 20px 24px;
}

.content-area li {
  margin-bottom: 8px;
}

/* 目次（TOC） */
.toc-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0 32px;
}

.toc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 6px;
  font-size: 14px;
}

.toc-list li a {
  color: var(--text-main);
}
.toc-list li a:hover {
  color: var(--primary-light);
}

/* アラート・ファクトチェックボックス */
.box-fact {
  background-color: #f8fafc;
  border-left: 5px solid var(--primary-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  border: 1px solid var(--border-color);
  border-left-width: 5px;
}

.box-fact-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 8px;
}

.box-law {
  background-color: var(--warning-bg);
  border: 1px solid #fde68a;
  border-left: 5px solid var(--warning);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  color: #78350f;
}

.box-law-title {
  font-weight: 800;
  color: #92400e;
  font-size: 15px;
  margin-bottom: 6px;
}

/* 比較テーブル（レスポンシブ） */
.table-scroll {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  min-width: 600px;
}

.compare-table th, .compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.compare-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.compare-table tr:hover td {
  background-color: #f8fafc;
}

.badge-official {
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.badge-union {
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.badge-lawyer {
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

/* 商材カード & CTAボタン */
.service-card {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 28px 0;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
}

.service-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
  margin: 14px 0;
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.service-specs div span {
  font-weight: 700;
  color: #475569;
}

.cta-button {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, #c2410c 100%);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
  margin-top: 14px;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
  filter: brightness(1.05);
}

.cta-subtext {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* フローチャート / 手順 */
.step-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  position: relative;
}

.step-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: -16px;
  width: 2px;
  background: #cbd5e1;
}

.step-title {
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 4px;
}

/* サイドバー */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-bg);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.sidebar-links {
  list-style: none;
  font-size: 14px;
}

.sidebar-links li {
  margin-bottom: 10px;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 6px;
}

.sidebar-links li:last-child {
  border-bottom: none;
}

/* フッター */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 16px 20px;
  font-size: 13px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid #1e293b;
  padding-top: 16px;
  color: #64748b;
}
