/* ============================================
   株式会社SOL - ブログ記事装飾CSS
   file: sol-blog.css
   
   ● カテゴリ別カラー設定は :root 内で一括管理
   ● 全記事共通のスタイルは .entry-content / .post-content に適用
   ● 新カテゴリ追加時は :root に変数を追加 + .cat-xxx を1つ追加するだけ
   ============================================ */

/* ─── カラー設定（ここを変更すれば全体に反映） ─── */
:root {
  /* SOLコーポレートカラー */
  --sol-primary: #D4A017;
  --sol-accent: #333333;
  --sol-primary-light: #f0e2a6;
  --sol-primary-very-light: #f9f2d9;
  --sol-primary-marker: rgba(212, 160, 23, 0.25);
  --sol-primary-shadow: rgba(212, 160, 23, 0.35);

  /* カテゴリ別カラー（追加・変更はここだけ） */
  --cat-staffing-bg: linear-gradient(135deg, #1e3a5f, #2c5282);
  --cat-staffing-border: #2c5282;
  --cat-cleaning-bg: linear-gradient(135deg, #276749, #38a169);
  --cat-cleaning-border: #38a169;
  --cat-default-bg: linear-gradient(135deg, #4a5568, #718096);
  --cat-default-border: #718096;
}


/* ============ アイキャッチ冒頭表示 ============ */
.sol-eyecatch-header {
  width: 100%;
  margin: 0 0 32px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.sol-eyecatch-header img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============ カテゴリバッジ ============ */
.sol-category-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.05em;
  color: #ffffff;
}

/*
  カテゴリ追加方法:
  1. :root に --cat-xxx-bg と --cat-xxx-border を追加
  2. 下記のように .cat-xxx を追加
  3. sol_blog_publisher.py の CAT_CLASS に追加
*/

/* 人材紹介 */
.sol-category-badge.cat-staffing {
  background: var(--cat-staffing-bg);
  border: 1px solid var(--cat-staffing-border);
}

/* 清掃業 */
.sol-category-badge.cat-cleaning {
  background: var(--cat-cleaning-bg);
  border: 1px solid var(--cat-cleaning-border);
}

/* フォールバック（その他すべてのカテゴリ） */
.sol-category-badge.cat-default {
  background: var(--cat-default-bg);
  border: 1px solid var(--cat-default-border);
}


/* ============ 見出し ============ */

/* --- H2 --- */
.article-h2 {
  position: relative;
  padding: 16px 20px 16px 24px;
  margin: 48px 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--sol-primary-light) 0%, var(--sol-primary-very-light) 100%);
  border-left: 5px solid var(--sol-primary);
  border-radius: 0 8px 8px 0;
}

/* --- H3 --- */
.article-h3 {
  padding: 12px 16px;
  margin: 36px 0 18px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--sol-accent);
  border-bottom: 3px solid var(--sol-primary);
}


/* ============ 本文 ============ */
.entry-content p,
.post-content p {
  line-height: 1.9;
  margin-bottom: 1.5em;
  color: #333;
}


/* ============ リスト ============ */
.entry-content ul,
.post-content ul {
  margin: 16px 0 24px 20px;
}
.entry-content ul li,
.post-content ul li {
  position: relative;
  padding: 6px 0 6px 8px;
  line-height: 1.8;
}
.entry-content ul li::marker,
.post-content ul li::marker {
  color: var(--sol-primary);
  font-weight: bold;
}
.entry-content ol li,
.post-content ol li {
  padding: 6px 0;
  line-height: 1.8;
}


/* ============ 強調 ============ */
.entry-content strong,
.post-content strong {
  background: linear-gradient(transparent 60%, var(--sol-primary-marker) 60%);
  padding: 0 2px;
}


/* ============ 画像（箸休め） ============ */
.article-infographic {
  margin: 32px auto;
  text-align: center;
}
.article-infographic img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}


/* ============ CTA ============ */
.post-cta {
  margin: 48px 0 32px;
  padding: 32px;
  background: linear-gradient(135deg, var(--sol-primary-very-light) 0%, #ffffff 100%);
  border: 2px solid var(--sol-primary);
  border-radius: 16px;
  text-align: center;
}
.post-cta h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--sol-accent);
}
.post-cta p {
  margin: 0 0 20px;
  color: #555;
  line-height: 1.8;
}
.post-cta a {
  display: inline-block;
  padding: 14px 40px;
  background: var(--sol-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--sol-primary-shadow);
}
.post-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--sol-primary-shadow);
  opacity: 0.9;
}


/* ============ コードブロック ============ */
.entry-content pre,
.post-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.9rem;
}
.entry-content code,
.post-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--sol-accent);
}


/* ============ テーブル ============ */
.entry-content table,
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.entry-content th,
.post-content th {
  background: var(--sol-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.entry-content td,
.post-content td {
  padding: 10px 16px;
  border-bottom: 1px solid #e0e0e0;
}
.entry-content tr:nth-child(even),
.post-content tr:nth-child(even) {
  background: #f9f9f9;
}


/* ============ レスポンシブ ============ */
@media screen and (max-width: 768px) {
  .article-h2 { font-size: 1.25rem; padding: 14px 16px 14px 18px; }
  .article-h3 { font-size: 1.1rem; }
  .post-cta { padding: 24px 16px; }
  .post-cta a { padding: 12px 32px; font-size: 0.95rem; }
  .sol-eyecatch-header { border-radius: 8px; margin: 0 0 24px 0; }
}
