@charset "UTF-8";
/*
 Theme Name: SANGO Child
 Theme URI: https://saruwakakun.design
 Author: SARUWAKA
 Author URI: https://saruwakakun.com
 Template: sango-theme
 Version: 3.0
*/
/*こちらはSANGOの子テーマ用CSSです。以下にCSSを記入していきましょう。*/
/*
 * おとなの建築塾 — SANGO カスタムCSS
 * WordPress テーマ: SANGO
 * 管理画面 → 外観 → カスタマイズ → 追加CSS に貼り付け
 *
 * コンセプト: プロフェッショナル × 信頼感 × 読みやすさ
 * メインカラー: ダークネイビー (#1a2744)
 * アクセントカラー: ゴールド (#c8a84b)
 */

/* ===========================
   1. カラー変数定義
   =========================== */
:root {
  --color-primary: #1a2744;       /* ダークネイビー（信頼・専門性） */
  --color-primary-light: #2a3d6b; /* ライトネイビー */
  --color-accent: #c8a84b;        /* ゴールド（合格・達成感） */
  --color-accent-light: #e8d08a;  /* ライトゴールド */
  --color-text: #2c2c2c;          /* メインテキスト */
  --color-text-light: #555;       /* サブテキスト */
  --color-bg: #f8f9fb;            /* ページ背景 */
  --color-bg-card: #ffffff;       /* カード背景 */
  --color-border: #e0e4ee;        /* ボーダー */
  --color-success: #2e7d32;       /* 成功・合格グリーン */
  --color-warning: #f57f17;       /* 注意オレンジ */
  --font-size-base: 16px;
  --line-height-base: 1.8;
  --border-radius: 6px;
}

/* ===========================
   2. グローバルスタイル
   =========================== */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

/* リンクカラー */
a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===========================
   3. ヘッダー
   =========================== */
#header,
.sng-header {
  background: var(--color-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* サイトタイトル */
.sng-site-title a,
#header .site-name a {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* グローバルナビ */
.sng-nav a,
#header nav a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}
.sng-nav a:hover,
#header nav a:hover {
  color: var(--color-accent) !important;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  text-decoration: none;
}

/* ===========================
   4. 記事タイトル・ヘッダー
   =========================== */
.article-title,
.entry-title,
h1.post-title {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  border-left: 5px solid var(--color-accent);
  padding-left: 16px;
  margin-bottom: 24px;
}

/* ===========================
   5. 見出しスタイル
   =========================== */

/* H2 */
.entry-content h2 {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  padding: 14px 20px;
  margin: 40px 0 20px;
  border-radius: var(--border-radius);
  position: relative;
}
.entry-content h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 6px;
}

/* H3 */
.entry-content h3 {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  padding: 10px 0 10px 16px;
  border-left: 4px solid var(--color-accent);
  margin: 32px 0 16px;
  background: linear-gradient(to right, rgba(200, 168, 75, 0.08), transparent);
}

/* H4 */
.entry-content h4 {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 6px;
  margin: 24px 0 12px;
}

/* ===========================
   6. 本文テキスト
   =========================== */
.entry-content p {
  margin: 0 0 20px;
  color: var(--color-text);
}

/* 強調テキスト */
.entry-content strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ===========================
   7. テーブル
   =========================== */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.entry-content table th {
  background: var(--color-primary);
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.entry-content table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.entry-content table tr:nth-child(even) td {
  background: #f5f7fb;
}
.entry-content table tr:last-child td {
  border-bottom: none;
}
.entry-content table tr:hover td {
  background: rgba(200, 168, 75, 0.06);
}

/* ===========================
   8. リスト
   =========================== */
.entry-content ul {
  padding-left: 0;
  list-style: none;
  margin: 16px 0 24px;
}
.entry-content ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px dotted var(--color-border);
}
.entry-content ul li:last-child {
  border-bottom: none;
}
.entry-content ul li::before {
  content: "▶";
  color: var(--color-accent);
  font-size: 10px;
  position: absolute;
  left: 4px;
  top: 10px;
}

.entry-content ol {
  padding-left: 24px;
  margin: 16px 0 24px;
}
.entry-content ol li {
  padding: 4px 0;
  line-height: 1.7;
}

/* ===========================
   9. ボックス（注意・ポイント）
   =========================== */

/* ポイントボックス */
.point-box,
.sng-box-merit {
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.05), rgba(200, 168, 75, 0.05));
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin: 24px 0;
  position: relative;
}
.point-box::before {
  content: "POINT";
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  position: absolute;
  top: -12px;
  left: 16px;
}

/* 警告ボックス */
.warning-box,
.sng-box-attention {
  background: rgba(245, 127, 23, 0.06);
  border: 2px solid var(--color-warning);
  border-radius: var(--border-radius);
  padding: 18px 22px;
  margin: 24px 0;
}

/* ===========================
   10. 水平線（セクション区切り）
   =========================== */
.entry-content hr {
  border: none;
  border-top: 2px solid var(--color-accent);
  margin: 40px 0;
  opacity: 0.4;
}

/* ===========================
   11. サイドバー
   =========================== */
.widget-title,
.sng-widget-title {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  letter-spacing: 0.05em;
}

/* ===========================
   12. アフィリエイト（おすすめ教材）セクション
   =========================== */
.affiliate-section {
  background: linear-gradient(135deg, #1a2744 0%, #2a3d6b 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 32px 0;
}
.affiliate-section h3 {
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  background: transparent !important;
}
.affiliate-section p,
.affiliate-section li {
  color: rgba(255,255,255,0.9);
}
.affiliate-section a {
  color: var(--color-accent) !important;
}
.affiliate-section a:hover {
  color: var(--color-accent-light) !important;
}

/* アフィリエイトCTAボタン */
.affiliate-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary) !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(200, 168, 75, 0.3);
}
.affiliate-btn:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 168, 75, 0.4);
}

/* ===========================
   13. フッター
   =========================== */
#footer,
.sng-footer {
  background: var(--color-primary) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 40px 0 20px;
}
#footer a,
.sng-footer a {
  color: rgba(255, 255, 255, 0.7) !important;
}
#footer a:hover,
.sng-footer a:hover {
  color: var(--color-accent) !important;
}

/* コピーライト */
.sng-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-align: center;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===========================
   14. カテゴリーバッジ
   =========================== */
.cat-label,
.entry-categories a {
  background: var(--color-primary-light);
  color: #ffffff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
}

/* ===========================
   15. 記事カード（一覧ページ）
   =========================== */
.entry-card,
.card-entry {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.entry-card:hover,
.card-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(26, 39, 68, 0.12);
  border-color: var(--color-accent);
}

/* ===========================
   16. レスポンシブ対応
   =========================== */
@media (max-width: 768px) {
  .article-title,
  .entry-title,
  h1.post-title {
    font-size: 22px;
  }
  .entry-content h2 {
    font-size: 18px;
    padding: 12px 16px;
  }
  .entry-content h3 {
    font-size: 16px;
  }
  .entry-content table {
    font-size: 13px;
    display: block;
    overflow-x: auto;
  }
  .affiliate-section {
    padding: 20px;
  }
}

/* ===========================
   17. 目次（Table of Contents）
   =========================== */
#toc_container,
.toc_wrap {
  background: #f5f7fb;
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin: 24px 0;
}
#toc_container .toc_title,
.toc_title {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
#toc_container ul,
.toc_list {
  list-style: none;
  padding-left: 0;
}
#toc_container ul li::before {
  content: "§";
  color: var(--color-accent);
  margin-right: 8px;
}

/* ===========================
   18. パンくずリスト
   =========================== */
.breadcrumb,
#breadcrumb {
  font-size: 13px;
  color: var(--color-text-light);
  padding: 8px 0;
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--color-text-light);
}
.breadcrumb a:hover {
  color: var(--color-primary);
}

/* ===========================
   19. シェアボタン
   =========================== */
.share-buttons a {
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}
.share-buttons a:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
