/*
Theme Name: Cocoon Child
Template: cocoon-master
Version: 7.4.4
Last updated: 2026-05-07
Description: シニアの暮らし案内所 kurashi-annai.jp 専用スタイルシート

Changelog v7.4.0:
  - Phase B-2: 図解タップ拡大コンポーネント新設（セクション19）
    - .ka-figure-zoom / .ka-figure-modal 系
    - スマホ可読性ルール v1.0 ルール3-7 準拠
    - 既存の .ka-figure（16記事の挿絵用）はそのまま温存・命名衝突なし
  - 記事015を新ルール準拠で全面改修（SVG図解3点・タップ拡大）

Changelog v7.3.0:
  - Phase B-1: 仕事ラボ カテゴリトップ FEATUREDカードを全面リニューアル
    - 旧: 背景画像方式（thumb領域に画像）→ 新: 白背景＋上カラーバー＋テキスト主体
    - スマホ可読性ルール v1.0 準拠（本文14px以上、行間1.85、desc 30〜40字、タップ領域確保）
    - カード色分け（modifier --c01〜--c04）:
        --c01 ネイビー(#1a2b4a) / --c02 ティール(#2c5f5d)
        --c03 ゴールドブラウン(#8b6f47) / --c04 ダークグリーン(#3d5a4c)
    - 廃止: .ka-work-card__thumb / __thumb-fallback / __thumb--XXX 系すべて
    - 廃止: 18-8 カードサムネイル個別画像URL定義
  - 18-7 スマホ対応を新カード構造に合わせ調整

Changelog v7.2.1:
  - iframe シミュレーター埋め込み用クラス追加(.ka-work-sim__iframe / セクション18-10)

Changelog v7.2.0:
  - 仕事ラボカテゴリトップ専用スタイル追加(ka-work-* / セクション18)
  - 年収の壁シミュレーターv2.0専用スタイル追加(ka-sim2-* / セクション17)
  - 記事036用スタイル追加(セクション16)
  - 衝突回避リネーム実施:
      ka-summary系(036) → ka-keylist系
      ka-summary-table → ka-keytable
      ka-related(036) → ka-related-list
      (既存16記事の.ka-summary / .ka-related は完全保持)
  - ka-table は既存定義に統合(036からのアクセスも問題なし)

Changelog v7.1.1: ka-summary 内の <p> タグ白色強制、<strong> ゴールド強調
Changelog v7.1: ka-stance-notice / ka-related 追加
*/

/* ============================================
   1. Googleフォント読み込み
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Noto+Serif+JP:wght@300;400;700&display=swap');

/* ============================================
   2. CSS変数
   ============================================ */
:root {
  --navy: #1a2b4a;
  --navy-sub: #34486a;
  --navy-dark: #0f1a2e;
  --gold: #c8a05a;
  --gold-light: #d6b77a;
  --gold-dark: #a8803a;
  --cream: #faf9f6;
  --cream-bd: #e5e0d5;
  --white: #ffffff;
  --text: #2a3a4a;
  --text-sub: #5a6a7a;
  --text-mute: #7a8899;
  --border: #e8ebf0;
  --lab-work: #1a2b4a;
  --lab-money: #2874a6;
  --lab-academy: #196f3d;
  --lab-love: #b9511e;
  --stance: #fff8e1;
  --stance-text: #5d4037;
  --teal: #2c5f5d;
  --teal-dark: #1a3838;
  --beige: #d6c9b5;
  --paper: #faf9f6;
  --paper-warm: #faf3e0;
  --gray-soft: #5f5e5a;
  --green-soft: #e8f0ed;
}

/* ============================================
   3. ベース
   ============================================ */
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--navy); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; height: auto; }

/* ============================================
   4. ヘッダー
   ============================================ */
#header-container {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 100 !important;
}
#header {
  background: var(--white) !important;
  padding: 24px 0 !important;
  display: block !important;
  visibility: visible !important;
}
.tagline {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 10px !important;
  color: var(--gold) !important;
  letter-spacing: 0.3em !important;
  text-align: center !important;
  margin-bottom: 8px !important;
  display: block !important;
  visibility: visible !important;
}
.site-name-text {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  letter-spacing: 0.05em !important;
  display: inline-block !important;
  visibility: visible !important;
}
.logo-header {
  text-align: center !important;
  display: block !important;
  visibility: visible !important;
}
#navi {
  background: var(--white) !important;
  border-top: 1px solid var(--border) !important;
}
#navi .navi-in { background: var(--white) !important; }
#navi .navi-in > ul > li > a {
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  padding: 14px 20px !important;
  background: var(--white) !important;
}
#navi .navi-in > ul > li > a:hover {
  color: var(--gold-dark) !important;
  background: var(--cream) !important;
}

/* ============================================
   5. フッター
   ============================================ */
#footer {
  background: var(--navy-dark) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  padding: 40px 20px !important;
}
#footer a { color: rgba(255, 255, 255, 0.75) !important; }
#footer a:hover { color: var(--gold) !important; }
#footer .site-name-text { color: var(--white) !important; font-size: 16px !important; }
.source-org.copyright {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 12px !important;
}

/* ============================================
   6. 固定ページ「ホーム」のCocoon要素非表示
   ============================================ */
.page-id-24 .entry-title,
.page-id-24 .article-title,
.page-id-24 .date-tags,
.page-id-24 .post-date,
.page-id-24 .post-update,
.page-id-24 .author-info,
.page-id-24 .sns-share,
.page-id-24 .sns-follow,
.page-id-24 .breadcrumb,
.page-id-24 #breadcrumb,
.page-id-24 .comment-area,
.page-id-24 .pager-post-navi,
.page-id-24 .related-entries {
  display: none !important;
}
.page-id-24 #main,
.page-id-24 #content,
.page-id-24 #content-in {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
.page-id-24 .entry-content,
.page-id-24 .article,
.page-id-24 .post {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.page-id-24 #sidebar { display: none !important; }

/* ============================================
   7. ヒーローセクション(トップページ用)
   ============================================ */
.kh-hero {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: var(--navy);
}
.kh-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 1;
}
.kh-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(15, 26, 46, 0.65) 0%,
    rgba(15, 26, 46, 0.35) 50%,
    rgba(15, 26, 46, 0.1) 100%);
  z-index: 2;
}
.kh-hero__content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.kh-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.kh-hero__eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold-light);
}
.kh-hero__eyebrow-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.3em;
  white-space: nowrap;
}
.kh-hero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.45;
  margin: 0 0 20px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  max-width: 580px;
}
.kh-hero__title em { font-style: normal; color: var(--gold-light); }
.kh-hero__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.9;
  margin: 0 0 36px;
  max-width: 500px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.kh-hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.kh-btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 16px 32px;
  text-decoration: none;
  min-width: 220px;
  text-align: center;
  transition: background 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.kh-btn-primary:hover { background: var(--gold-dark); color: var(--white); opacity: 1; }
.kh-btn-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 15px 32px;
  text-decoration: none;
  min-width: 220px;
  text-align: center;
  transition: all 0.2s;
}
.kh-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
  color: var(--white);
  opacity: 1;
}

/* ============================================
   8. ミッションセクション
   ============================================ */
.kh-mission {
  background: var(--cream);
  padding: 80px 40px;
  text-align: center;
  border-top: 1px solid var(--cream-bd);
  border-bottom: 1px solid var(--cream-bd);
}
.kh-section-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--gold-dark);
  letter-spacing: 0.35em;
  margin-bottom: 18px;
  display: block;
}
.kh-mission__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin: 0 0 20px;
}
.kh-mission__title em { font-style: normal; color: var(--gold-dark); }
.kh-mission__desc { font-size: 15px; color: var(--text-sub); line-height: 2.1; margin: 0; }
.kh-mission__divider { width: 1px; height: 40px; background: var(--gold); margin: 30px auto; opacity: 0.5; }
.kh-mission__stats { display: flex; justify-content: center; gap: 60px; margin-top: 32px; flex-wrap: wrap; }
.kh-stat { text-align: center; }
.kh-stat__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
.kh-stat__label { font-size: 12px; color: var(--text-mute); letter-spacing: 0.1em; }

/* ============================================
   9. 4ラボセクション
   ============================================ */
.kh-labs { background: var(--white); padding: 80px 0 60px; }
.kh-labs__head { text-align: center; padding: 0 40px 40px; }
.kh-labs__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}
.kh-labs__line { width: 40px; height: 1px; background: var(--gold); margin: 0 auto; }
.kh-lab-featured {
  display: block;
  background: var(--navy);
  color: var(--white);
  padding: 40px 48px;
  text-decoration: none;
  position: relative;
  border-left: 5px solid var(--gold);
  max-width: 1100px;
  margin: 0 auto 8px;
  transition: background 0.2s;
}
.kh-lab-featured:hover { background: var(--navy-sub); color: var(--white); opacity: 1; }
.kh-lab-featured__tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  display: block;
}
.kh-lab-featured__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.kh-lab-featured__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
  display: block;
}
.kh-lab-featured__arrow {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 32px;
  font-family: 'Cormorant Garamond', serif;
}
.kh-lab-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.kh-lab-card {
  display: block;
  background: var(--cream);
  padding: 28px 24px;
  text-decoration: none;
  border-top: 4px solid var(--border);
  transition: background 0.2s;
}
.kh-lab-card:hover { background: var(--white); opacity: 1; }
.kh-lab-card--money { border-top-color: var(--lab-money); }
.kh-lab-card--academy { border-top-color: var(--lab-academy); }
.kh-lab-card--love { border-top-color: var(--lab-love); }
.kh-lab-card--new { border-top-color: var(--gold); }
.kh-lab-card__name {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.kh-lab-card__desc { display: block; font-size: 13px; color: var(--text-mute); line-height: 1.7; }

/* ============================================
   10. 新着記事セクション
   ============================================ */
.kh-articles {
  background: var(--white);
  padding: 80px 40px;
  border-top: 1px solid var(--border);
}
.kh-articles__inner { max-width: 900px; margin: 0 auto; }
.kh-articles__head { text-align: center; margin-bottom: 40px; }
.kh-articles__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}
.kh-articles__line { width: 40px; height: 1px; background: var(--gold); margin: 0 auto; }
.kh-article-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  align-items: flex-start;
  transition: background 0.2s;
}
.kh-article-item:hover {
  background: var(--cream);
  opacity: 1;
  padding-left: 12px;
  padding-right: 12px;
}
.kh-article-item:last-child { border-bottom: none; }
.kh-article-item__thumb {
  width: 120px;
  height: 90px;
  background: var(--cream);
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}
.kh-article-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-article-item__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.kh-article-item__body { flex: 1; min-width: 0; }
.kh-article-item__cat {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--lab-work);
  border: 1px solid var(--lab-work);
  padding: 3px 10px;
  margin-bottom: 8px;
  background: var(--white);
}
.kh-article-item__cat--money { color: var(--lab-money); border-color: var(--lab-money); }
.kh-article-item__cat--academy { color: var(--lab-academy); border-color: var(--lab-academy); }
.kh-article-item__cat--love { color: var(--lab-love); border-color: var(--lab-love); }
.kh-article-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 6px;
  display: block;
}
.kh-article-item__date {
  font-size: 12px;
  color: var(--text-mute);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.05em;
  display: block;
}

/* ============================================
   11. 編集長セクション
   ============================================ */
.kh-editor { background: var(--navy); padding: 80px 40px; color: var(--white); }
.kh-editor__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.kh-editor__en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.35em;
  margin-bottom: 20px;
  display: block;
}
.kh-editor__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}
.kh-editor__role { font-size: 14px; color: rgba(255, 255, 255, 0.75); margin: 0 0 28px; }
.kh-editor__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 2.1;
  margin: 0 0 32px;
  text-align: left;
}
.kh-editor__link {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  padding: 14px 36px;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s;
}
.kh-editor__link:hover { background: var(--gold); color: var(--navy); opacity: 1; }

/* ============================================
   12. 記事本文ベース
   ============================================ */
.entry-content { font-size: 18px; line-height: 1.9; }
.entry-content p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text);
}
.entry-content strong { color: var(--gold-dark); font-weight: 700; }
.entry-content h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  border-left: 5px solid var(--gold);
  background: var(--cream);
  padding: 14px 20px;
  margin: 48px 0 24px;
  line-height: 1.5;
  border-radius: 0 6px 6px 0;
}
.entry-content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--cream-bd);
  padding-bottom: 10px;
  margin: 40px 0 18px;
  line-height: 1.5;
}
.entry-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

/* ============================================
   13. 記事用コンポーネント(ka-prefix)
   ============================================ */

/* --- 13-1. 著者ボックス(記事冒頭) --- */
.ka-author {
  background: var(--cream);
  border-left: 5px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 22px 26px;
  margin: 0 0 40px;
}
.ka-author .ka-author__title,
.ka-author p.ka-author__title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 11px !important;
  color: var(--gold-dark) !important;
  letter-spacing: 0.2em !important;
  margin: 0 0 4px !important;
  opacity: 1 !important;
}
.ka-author .ka-author__name,
.ka-author p.ka-author__name {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin: 0 0 14px !important;
  opacity: 1 !important;
}
.ka-author ul { margin: 0; padding-left: 18px; }
.ka-author li { font-size: 15px; margin-bottom: 6px; color: var(--text); }

/* --- 13-2. リード文 --- */
.ka-lead {
  background: var(--white);
  border: 1px solid var(--cream-bd);
  border-top: 3px solid var(--navy);
  padding: 22px 26px;
  margin: 0 0 40px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.ka-lead p { color: var(--text) !important; }

/* --- 13-3. チェックリスト --- */
.ka-check {
  background: var(--white);
  border: 1px solid var(--cream-bd);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 28px 0;
}
.ka-check .ka-check__title,
.ka-check p.ka-check__title {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin: 0 0 14px !important;
  opacity: 1 !important;
}
.ka-check ul { margin: 0; padding: 0; list-style: none; }
.ka-check li {
  padding: 10px 0 10px 30px;
  position: relative;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.ka-check li:last-child { border-bottom: none; }
.ka-check li::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--navy);
  border-radius: 3px;
  position: absolute;
  left: 0;
  top: 13px;
}

/* --- 13-4. 例文ボックス --- */
.ka-example {
  background: #fffdf9;
  border: 1px solid rgba(200, 160, 90, 0.3);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 8px 8px;
  padding: 22px 26px;
  margin: 28px 0;
}
.ka-example .ka-example__label,
.ka-example p.ka-example__label {
  display: inline-block !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  padding: 4px 12px !important;
  margin: 0 0 14px !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}
.ka-example__badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 3px;
}
.ka-example .ka-example__text,
.ka-example div.ka-example__text {
  background: var(--white) !important;
  border-left: 3px solid var(--gold);
  padding: 16px 20px !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  margin: 14px 0 !important;
  color: var(--text) !important;
}
.ka-example .ka-example__comment,
.ka-example p.ka-example__comment {
  background: var(--cream) !important;
  border-left: 3px solid var(--gold-light);
  padding: 14px 18px !important;
  font-size: 15px !important;
  margin-top: 12px !important;
  line-height: 1.8 !important;
  color: var(--text) !important;
}
.ka-example .ka-example__comment-label,
.ka-example span.ka-example__comment-label {
  display: block !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 11px !important;
  color: var(--gold-dark) !important;
  letter-spacing: 0.2em !important;
  margin: 0 0 6px !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* --- 13-5. NGボックス --- */
.ka-ng {
  background: #fff8f6;
  border: 1px solid rgba(185, 81, 30, 0.25);
  border-top: 3px solid var(--lab-love);
  border-radius: 0 0 8px 8px;
  padding: 18px 22px;
  margin: 18px 0;
}
.ka-ng .ka-ng__label,
.ka-ng p.ka-ng__label {
  display: inline-block !important;
  background: var(--lab-love) !important;
  color: var(--white) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
  padding: 4px 12px !important;
  margin: 0 0 12px !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}
.ka-ng .ka-ng__title,
.ka-ng p.ka-ng__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--lab-love) !important;
  margin: 0 0 8px !important;
  opacity: 1 !important;
}
.ka-ng .ka-ng__body,
.ka-ng p.ka-ng__body {
  font-size: 15px !important;
  margin: 0 !important;
  line-height: 1.85 !important;
  color: var(--text) !important;
}
.ka-ng ul { margin: 0; padding-left: 22px; }
.ka-ng li { font-size: 15px; margin-bottom: 6px; color: var(--text); line-height: 1.8; }

/* --- 13-6. ポイントボックス --- */
.ka-point {
  background: var(--cream);
  border-left: 5px solid var(--gold);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}
.ka-point .ka-point__title,
.ka-point p.ka-point__title,
.ka-point .ka-point__label,
.ka-point p.ka-point__label {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin: 0 0 8px !important;
  opacity: 1 !important;
}
.ka-point p { color: var(--text); }

/* --- 13-7. まとめボックス(紺背景) ※既存16記事用、保持 --- */
.ka-summary {
  background: var(--navy);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 36px 0;
}
.ka-summary .ka-summary__title,
.ka-summary p.ka-summary__title {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  margin: 0 0 18px !important;
  opacity: 1 !important;
  line-height: 1.6 !important;
}
.ka-summary ul { margin: 0; padding-left: 22px; }
.ka-summary li {
  font-size: 15px !important;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.85 !important;
}
.ka-summary p {
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.95 !important;
  margin: 12px 0 0 !important;
}
.ka-summary p:first-child { margin-top: 0 !important; }
.ka-summary p strong { color: var(--gold-light) !important; font-weight: 700 !important; }

/* --- 13-8. CTAボックス --- */
.ka-cta {
  background: var(--cream);
  border: 1px solid var(--cream-bd);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 8px 8px;
  padding: 30px 28px;
  margin: 44px 0;
  text-align: center;
}
.ka-cta .ka-cta__title,
.ka-cta p.ka-cta__title {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin: 0 0 10px !important;
  opacity: 1 !important;
}
.ka-cta .ka-cta__desc,
.ka-cta p.ka-cta__desc {
  font-size: 14px !important;
  color: var(--text-mute) !important;
  margin: 0 0 22px !important;
  line-height: 1.8 !important;
  opacity: 1 !important;
}
.ka-cta p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  margin: 0 0 12px;
  text-align: left;
}
.ka-cta p:last-child { margin-bottom: 0; }

/* --- 13-9. ボタン --- */
.btn-main {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 14px 34px;
  text-decoration: none;
  min-height: 44px;
  text-align: center;
  transition: background 0.2s;
}
.btn-main:hover { background: var(--navy-sub); color: var(--white); opacity: 1; }
.btn-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 34px;
  text-decoration: none;
  min-height: 44px;
  text-align: center;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--gold-dark); color: var(--white); opacity: 1; }

/* --- 13-10. 著者フッター(記事末・紺背景) --- */
.ka-author-ft {
  background: var(--navy);
  border-radius: 6px;
  padding: 32px 36px;
  margin: 44px 0 0;
}
.ka-author-ft,
.ka-author-ft p,
.ka-author-ft span { color: var(--white) !important; }
.ka-author-ft .ka-author-ft__name,
.ka-author-ft p.ka-author-ft__name {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  margin: 0 0 6px !important;
  opacity: 1 !important;
}
.ka-author-ft .ka-author-ft__role,
.ka-author-ft p.ka-author-ft__role {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 12px !important;
  color: #e6c88c !important;
  letter-spacing: 0.2em !important;
  margin: 0 0 18px !important;
  opacity: 1 !important;
}
.ka-author-ft .ka-author-ft__desc,
.ka-author-ft p.ka-author-ft__desc {
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 2 !important;
  margin: 0 !important;
  opacity: 1 !important;
}

/* --- 13-11. テーブル(共通・全記事で利用) --- */
.ka-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}
.ka-table th {
  background: var(--navy);
  color: var(--white) !important;
  padding: 14px 18px;
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
}
.ka-table td {
  padding: 14px 18px;
  border: 1px solid var(--cream-bd);
  vertical-align: top;
  line-height: 1.7;
  color: var(--text);
}
.ka-table tr:nth-child(even) td { background: var(--cream); }
.ka-table .good { color: var(--lab-academy) !important; font-weight: 700; }
.ka-table .bad { color: var(--lab-love) !important; font-weight: 700; }

/* --- 13-12. アコーディオン(FAQ) --- */
.ka-acc {
  border: 1px solid var(--cream-bd);
  border-radius: 6px;
  margin: 12px 0;
  overflow: hidden;
}
.ka-acc summary {
  background: var(--cream);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}
.ka-acc summary::-webkit-details-marker { display: none; }
.ka-acc summary::after {
  content: "＋";
  font-size: 20px;
  color: var(--gold-dark);
  flex-shrink: 0;
  font-weight: 300;
}
.ka-acc[open] summary::after { content: "－"; }
.ka-acc summary:hover { background: #f2ede3; }
.ka-acc__body {
  padding: 20px 22px;
  background: var(--white);
  border-top: 1px solid var(--cream-bd);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.ka-acc p {
  padding: 18px 22px;
  background: var(--white);
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}

/* --- 13-13. 図解・画像(ka-figure) --- */
.ka-figure { margin: 36px 0; text-align: center; }
.ka-figure figcaption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 10px;
  letter-spacing: 0.1em;
}
.ka-figure svg { max-width: 100%; height: auto; }
.ka-figure p { color: inherit !important; margin: 0 0 0.3em 0; }
.ka-figure div { color: inherit; }

/* --- 13-14. スタンス前置きボックス(ka-stance-notice) --- */
.ka-stance-notice {
  background: var(--stance);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.ka-stance-notice .ka-stance-notice__title,
.ka-stance-notice p.ka-stance-notice__title {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--stance-text) !important;
  margin: 0 0 12px !important;
  opacity: 1 !important;
}
.ka-stance-notice p {
  line-height: 1.9 !important;
  color: var(--text) !important;
  font-size: 15px !important;
  margin: 0 0 8px !important;
}
.ka-stance-notice p:last-child { margin-bottom: 0 !important; }

/* --- 13-15. あわせて読みたい(ka-related) ※既存16記事用、保持 --- */
.ka-related {
  background: var(--cream);
  border: 1px solid var(--cream-bd);
  border-left: 4px solid var(--navy);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.ka-related .ka-related__title,
.ka-related p.ka-related__title {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin: 0 0 12px !important;
  opacity: 1 !important;
  letter-spacing: 0.05em !important;
}
.ka-related .ka-related__title::before,
.ka-related p.ka-related__title::before {
  content: "▶ ";
  color: var(--gold);
  font-size: 0.85em;
  margin-right: 4px;
}
.ka-related ul { margin: 0; padding-left: 0; list-style: none; }
.ka-related li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
  color: var(--text);
}
.ka-related li:last-child { margin-bottom: 0; }
.ka-related li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-dark);
  font-weight: 700;
}
.ka-related li a {
  color: var(--navy) !important;
  text-decoration: none;
  border-bottom: 1px dotted var(--navy);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.ka-related li a:hover {
  color: var(--gold-dark) !important;
  border-bottom-color: var(--gold-dark);
  opacity: 1;
}

/* ============================================
   14. スマホ対応(767px以下) ※共通部分
   ============================================ */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-name-text { font-size: 16px !important; }

  .kh-hero { height: auto; min-height: auto; }
  .kh-hero__image { position: relative; height: 280px; object-position: center center; }
  .kh-hero__overlay { background: linear-gradient(180deg, rgba(15, 26, 46, 0.2) 0%, rgba(15, 26, 46, 0.5) 100%); }
  .kh-hero__content {
    position: relative;
    background: var(--navy);
    padding: 40px 24px;
    align-items: center;
    text-align: center;
    height: auto;
  }
  .kh-hero__eyebrow { justify-content: center; }
  .kh-hero__title { font-size: 26px; max-width: 100%; }
  .kh-hero__sub { font-size: 14px; max-width: 100%; }
  .kh-hero__buttons { flex-direction: column; width: 100%; }
  .kh-btn-primary, .kh-btn-secondary { width: 100%; min-width: 0; }

  .kh-mission { padding: 50px 22px; }
  .kh-mission__title { font-size: 20px; }
  .kh-mission__stats { gap: 30px; }
  .kh-stat__number { font-size: 28px; }

  .kh-labs { padding: 50px 0 40px; }
  .kh-lab-featured { padding: 30px 24px; }
  .kh-lab-featured__title { font-size: 20px; }
  .kh-lab-featured__arrow { right: 18px; font-size: 24px; }
  .kh-lab-grid { gap: 4px; }
  .kh-lab-card { padding: 20px 18px; }
  .kh-lab-card__name { font-size: 15px; }

  .kh-articles { padding: 50px 22px; }
  .kh-article-item { gap: 14px; padding: 18px 0; }
  .kh-article-item__thumb { width: 88px; height: 66px; }
  .kh-article-item__title { font-size: 14px; }

  .kh-editor { padding: 50px 22px; }
  .kh-editor__name { font-size: 22px; }
  .kh-editor__desc { font-size: 14px; }

  .entry-content h2 { font-size: 19px; padding: 12px 16px; }
  .entry-content h3 { font-size: 17px; }
  .ka-table { font-size: 13px; }
  .ka-table th, .ka-table td { padding: 10px 12px; }
  .ka-author-ft { padding: 24px 22px; }
  .ka-author-ft__desc { font-size: 14px !important; }
  .ka-summary .ka-summary__title,
  .ka-summary p.ka-summary__title { font-size: 18px !important; line-height: 1.5 !important; }
  .ka-figure { margin: 24px 0; }

  .ka-stance-notice { padding: 16px 18px; margin: 22px 0; }
  .ka-stance-notice p { font-size: 14px !important; }
  .ka-related { padding: 16px 18px; margin: 22px 0; }
  .ka-related li { font-size: 14px; }
}

/* ============================================
   15. フッターリンク
   ============================================ */
.kh-footer-links {
  background: var(--navy);
  border-top: 1px solid rgba(200, 160, 90, 0.3);
  padding: 28px 24px;
  text-align: center;
}
.kh-footer-links__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}
.kh-footer-links a {
  color: rgba(250, 249, 246, 0.55) !important;
  font-size: 12px;
  text-decoration: none !important;
  letter-spacing: 0.08em;
  font-family: 'Noto Serif JP', serif;
  transition: color 0.2s;
}
.kh-footer-links a:hover { color: var(--gold) !important; }
.kh-footer-links span { color: rgba(200, 160, 90, 0.4); font-size: 10px; }
@media (max-width: 600px) {
  .kh-footer-links__inner { flex-direction: column; gap: 14px; }
  .kh-footer-links span { display: none; }
  .kh-footer-links a { font-size: 13px; padding: 4px 0; }
}

/* ============================================
   16. 記事036専用コンポーネント(年収の壁ガイド)
   v7.2.0で新規追加。衝突回避のため一部リネーム済み。
   ka-keylist (旧ka-summary・カードグリッド型)
   ka-keytable (旧ka-summary-table)
   ka-related-list (旧ka-related・記事リスト型)
   ============================================ */

/* --- 16-1. キー数値カード集 (旧 ka-summary) --- */
.ka-keylist { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.ka-keylist__card {
  display: flex; gap: 16px;
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: 8px;
  padding: 16px 20px;
}
.ka-keylist__num {
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  min-width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ka-keylist__body { flex: 1; }
.ka-keylist__title { font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 6px; line-height: 1.5; }
.ka-keylist__desc { font-size: 13px; color: var(--gray-soft); line-height: 1.7; margin: 0; }

/* --- 16-2. フローチャート --- */
.ka-flow {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}
.ka-flow__step { margin-bottom: 16px; }
.ka-flow__step:last-child { margin-bottom: 0; }
.ka-flow__q {
  font-weight: 700;
  background: var(--navy);
  color: #faf9f6 !important;
  padding: 10px 16px;
  border-radius: 4px;
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
}
.ka-flow__label {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
}
.ka-flow__result {
  font-size: 16px;
  color: var(--text);
  margin: 0;
}
.ka-flow__answers { display: flex; gap: 10px; flex-wrap: wrap; }
.ka-flow__answer { flex: 1; min-width: 200px; padding: 10px 14px; border-radius: 6px; }
.ka-flow__answer--yes { background: var(--green-soft); border-left: 3px solid var(--teal); }
.ka-flow__answer--no { background: #f5f3ed; border-left: 3px solid var(--gray-soft); }
.ka-flow__result a { color: var(--teal); font-weight: 500; }

/* --- 16-3. 出典 --- */
.ka-source {
  font-size: 12px;
  color: var(--gray-soft);
  padding: 8px 12px;
  background: #f5f3ed;
  border-radius: 4px;
  margin: 12px 0 20px;
  line-height: 1.6;
}
.ka-source a { color: var(--teal); word-break: break-all; }

/* --- 16-4. 早見表 --- */
.ka-readyref {
  background: var(--paper-warm);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0;
}
.ka-readyref__title { font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 10px; }
.ka-readyref__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--cream);
}
.ka-readyref__table th,
.ka-readyref__table td { border: 1px solid var(--beige); padding: 8px 10px; text-align: left; }
.ka-readyref__table th { background: var(--navy); color: var(--cream); }
.ka-readyref__note { font-size: 11px; color: var(--gray-soft); margin-top: 8px; line-height: 1.6; }

/* --- 16-5. 計算式ボックス --- */
.ka-formula {
  background: var(--cream);
  border: 2px solid var(--teal);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  text-align: center;
}
.ka-formula__line { font-size: 15px; color: var(--navy); margin: 6px 0; }
.ka-formula__ok { color: var(--teal); font-weight: 700; }
.ka-formula__ng { color: #a32d2d; font-weight: 700; }
.ka-formula__calc {
  font-size: 14px;
  color: var(--gray-soft);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--beige);
}

/* --- 16-6. 計算例 --- */
.ka-calc-example {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin: 20px 0;
}
.ka-calc-example__title { font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 10px; }
.ka-calc-example__steps { padding-left: 20px; margin: 0 0 10px; font-size: 14px; line-height: 1.9; }
.ka-calc-example__steps li { margin-bottom: 4px; }
.ka-calc-example__conclusion {
  background: var(--teal);
  color: #faf9f6 !important;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}

/* --- 16-7. シミュレーターCTA(記事内) --- */
.ka-tool-cta {
  background: var(--green-soft);
  border: 2px solid var(--teal);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
}
.ka-tool-cta--main { border-width: 3px; }
.ka-tool-cta__lead { font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 6px; }
.ka-tool-cta__body { font-size: 14px; color: var(--text); margin-bottom: 12px; line-height: 1.7; }
.ka-tool-cta__btn { text-align: center; margin: 0; }
.ka-tool-cta__link {
  display: inline-block;
  background: var(--teal);
  color: var(--cream);
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.ka-tool-cta__link:hover { background: var(--teal-dark); color: var(--cream); opacity: 1; }

/* --- 16-8. SVG図解枠(共通プロパティ集約) --- */
.ka-svg-key-numbers,
.ka-svg-shotokuzei,
.ka-svg-zaishoku,
.ka-svg-spread {
  background: var(--cream);
  border-radius: 8px;
  padding: 20px 16px;
  margin: 24px 0;
}
.ka-svg-key-numbers { border: 2px solid var(--navy); padding: 24px 16px; }
.ka-svg-shotokuzei,
.ka-svg-zaishoku,
.ka-svg-spread { border: 1px solid var(--beige); }

.ka-svg-key-numbers__title,
.ka-svg-shotokuzei__title,
.ka-svg-zaishoku__title,
.ka-svg-spread__title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.ka-svg-key-numbers__title { margin-bottom: 16px; }

.ka-svg-shotokuzei__sub,
.ka-svg-zaishoku__sub,
.ka-svg-spread__sub {
  text-align: center;
  font-size: 12px;
  color: var(--gray-soft);
  margin-bottom: 16px;
}

/* --- 16-9. キー比較テーブル (旧 ka-summary-table) --- */
.ka-keytable {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.ka-keytable th,
.ka-keytable td {
  border: 1px solid var(--beige);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.ka-keytable th { background: var(--navy); color: var(--cream); font-weight: 700; }
.ka-keytable tr.ka-row-highlight td { background: var(--paper-warm); }
.ka-keytable tr.ka-row-highlight strong { color: var(--navy); }

/* --- 16-10. Q&A --- */
.ka-qa { margin: 20px 0; }
.ka-qa__item {
  background: var(--cream);
  border-left: 4px solid var(--teal);
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: 4px;
}
.ka-qa__q { font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 15px; }
.ka-qa__a { color: var(--text); line-height: 1.7; font-size: 14px; margin: 0; }
.ka-qa__q::before { content: "Q. "; color: var(--gold); font-weight: 700; }
.ka-qa__a::before { content: "A. "; color: var(--teal); font-weight: 700; }

/* --- 16-11. 関連記事リスト型 (旧 ka-related・036用) --- */
.ka-related-list {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: 8px;
  padding: 20px;
  margin: 32px 0 24px;
}
.ka-related-list__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.ka-related-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ka-related-list__items li {
  padding: 8px 0;
  border-bottom: 1px solid #e8e4d6;
}
.ka-related-list__items li:last-child { border-bottom: none; }
.ka-related-list__items a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}
.ka-related-list__items a:hover { text-decoration: underline; }

/* --- 16-12. 免責事項 --- */
.ka-disclaimer {
  background: #f5f3ed;
  border-left: 4px solid var(--gray-soft);
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-soft);
  border-radius: 4px;
}
.ka-disclaimer__title { font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 8px; }

/* ============================================
   17. シミュレーターv2.0専用 (ka-sim2-*)
   v7.2.0で新規追加。完全独立スコープ。
   ============================================ */

.ka-sim2-wrap * { box-sizing: border-box; margin: 0; padding: 0; }

.ka-sim2-wrap {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--cream);
  border: 2px solid var(--navy);
  border-radius: 12px;
  overflow: hidden;
  max-width: 720px;
  margin: 40px auto;
  box-shadow: 0 4px 24px rgba(26,43,74,0.10);
}

.ka-sim2-header { background: var(--navy); padding: 28px 32px 24px; text-align: center; }
.ka-sim2-header__label {
  display: inline-block;
  background: var(--gold);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.ka-sim2-header__title {
  color: var(--cream);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}
.ka-sim2-header__title span { color: var(--gold); }
.ka-sim2-header__sub { color: rgba(250,249,246,0.75); font-size: 13px; }
.ka-sim2-header__version {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(250,249,246,0.6);
  border: 1px solid rgba(250,249,246,0.3);
  padding: 2px 10px;
  border-radius: 12px;
}

.ka-sim2-body { padding: 32px; }

.ka-sim2-step { margin-bottom: 28px; }
.ka-sim2-step.is-hidden { display: none; }
.ka-sim2-step__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ka-sim2-step__num {
  background: var(--navy);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.ka-sim2-step__text { font-size: 15px; font-weight: 700; color: var(--navy); }
.ka-sim2-step__hint { font-size: 12px; color: var(--gray-soft); margin-left: 4px; }

.ka-sim2-radio-group { display: flex; flex-direction: column; gap: 8px; }
.ka-sim2-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid var(--beige);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ka-sim2-radio-label:hover { border-color: var(--gold); background: var(--paper-warm); }
.ka-sim2-radio-label input { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }
.ka-sim2-radio-label input:checked + span { color: var(--navy); font-weight: 700; }
.ka-sim2-radio-label span { font-size: 15px; color: var(--text); flex: 1; }

.ka-sim2-input-row { display: flex; align-items: center; gap: 8px; max-width: 240px; }
.ka-sim2-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--beige);
  border-radius: 6px;
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
  text-align: right;
  background: #ffffff;
  transition: border-color 0.15s;
}
.ka-sim2-input:focus { outline: none; border-color: var(--gold); }
.ka-sim2-input-unit { font-size: 14px; color: var(--gray-soft); white-space: nowrap; }

.ka-sim2-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.ka-sim2-btn:hover { background: var(--navy-sub); }
.ka-sim2-btn:active { transform: translateY(1px); }
.ka-sim2-btn:disabled { background: #c4c0b8; cursor: not-allowed; }
.ka-sim2-btn-note { text-align: center; font-size: 12px; color: var(--gray-soft); margin-top: 8px; }

.ka-sim2-result {
  background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  border-top: 3px solid var(--gold);
  padding: 28px 32px;
  display: none;
}
.ka-sim2-result.is-shown { display: block; }
.ka-sim2-result__header { text-align: center; margin-bottom: 20px; }

.ka-sim2-type {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--navy);
  border-radius: 30px;
  margin-bottom: 12px;
}
.ka-sim2-type__badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ka-sim2-type__name { color: var(--cream); font-size: 15px; font-weight: 700; }
.ka-sim2-type__sub { display: block; font-size: 12px; color: var(--gray-soft); margin-top: 6px; }

.ka-sim2-main {
  text-align: center;
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 24px 20px;
  margin-bottom: 20px;
}
.ka-sim2-main__label {
  font-size: 13px;
  color: var(--gray-soft);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.ka-sim2-main__amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}
.ka-sim2-main__amount span { font-size: 18px; }
.ka-sim2-main__hours { font-size: 13px; color: var(--gray-soft); }

.ka-sim2-walls { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ka-sim2-wall-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border-left: 3px solid var(--beige);
  font-size: 14px;
}
.ka-sim2-wall-amount.is-current { border-left-color: var(--gold); background: var(--paper-warm); }
.ka-sim2-wall-name { font-weight: 700; color: var(--navy); min-width: 90px; }
.ka-sim2-wall-desc { color: var(--gray-soft); font-size: 12px; }
.ka-sim2-wall-when {
  font-size: 11px;
  color: var(--gold);
  background: rgba(200,160,90,0.1);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.ka-sim2-message {
  background: var(--green-soft);
  border-left: 4px solid var(--teal);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 20px;
}
.ka-sim2-message__title { font-weight: 700; color: var(--teal); font-size: 14px; margin-bottom: 4px; }
.ka-sim2-message__text { font-size: 13px; color: var(--text); line-height: 1.7; }

.ka-sim2-cta {
  background: var(--paper-warm);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.ka-sim2-cta__lead { font-size: 13px; color: var(--text); margin-bottom: 8px; line-height: 1.6; }
.ka-sim2-cta__link {
  display: inline-block;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.ka-sim2-cta__link:hover { background: var(--navy-sub); color: var(--cream); opacity: 1; }

.ka-sim2-disclaimer {
  font-size: 11px;
  color: var(--gray-soft);
  line-height: 1.7;
  background: #f5f3ed;
  padding: 12px 16px;
  border-radius: 4px;
}
.ka-sim2-disclaimer__sources {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dotted var(--beige);
  word-break: break-all;
}
.ka-sim2-disclaimer__sources a { color: var(--teal); }

.ka-sim2-divider { height: 1px; background: var(--beige); margin: 28px 0 20px; }
.ka-sim2-footer { text-align: center; }
.ka-sim2-footer__text { font-size: 12px; color: var(--gray-soft); }

@media (max-width: 600px) {
  .ka-sim2-wrap { margin: 24px 12px; border-radius: 8px; }
  .ka-sim2-header { padding: 20px 20px 18px; }
  .ka-sim2-header__title { font-size: 17px; }
  .ka-sim2-body { padding: 22px 20px; }
  .ka-sim2-result { padding: 22px 20px; }
  .ka-sim2-main__amount { font-size: 26px; }
  .ka-sim2-input-row { max-width: none; }
}

/* ============================================
   18. 仕事ラボ カテゴリトップ専用 (ka-work-*)
   v7.2.0で新規追加。category-work.php 用。
   ============================================ */

.ka-work-hub {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  color: var(--navy);
  line-height: 1.8;
}
.ka-work-hub * { box-sizing: border-box; }
.ka-work-hub p { margin: 0 0 1em; }

/* --- 18-1. ヒーロー --- */
.ka-work-hero {
  background: var(--teal);
  color: var(--cream);
  padding: 80px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 0 60px;
}
.ka-work-hero::before,
.ka-work-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
}
.ka-work-hero::before { top: 50px; }
.ka-work-hero::after { bottom: 40px; }
.ka-work-hero__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 400;
  text-transform: uppercase;
}
.ka-work-hero__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin: 0 0 20px;
  color: var(--cream);
}
.ka-work-hero__subtitle {
  font-size: 15px;
  color: rgba(250,249,246,0.85);
  letter-spacing: 0.05em;
  margin: 0;
  font-weight: 400;
}

/* --- 18-2. 道案内ブロック --- */
.ka-work-intro {
  max-width: 760px;
  margin: 0 auto 70px;
  padding: 0 24px;
  text-align: center;
}
.ka-work-intro__heading {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 16px;
  font-weight: 400;
  text-transform: uppercase;
}
.ka-work-intro__text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  margin: 0;
}
.ka-work-intro__text strong { color: var(--navy); font-weight: 700; }

/* --- 18-3. セクション見出し（共通） --- */
.ka-work-section-head,
.ka-work-archive-head { text-align: center; }
.ka-work-section-head { margin-bottom: 36px; }
.ka-work-archive-head {
  max-width: 1080px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.ka-work-section-head__label,
.ka-work-archive-head__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 400;
  text-transform: uppercase;
}
.ka-work-section-head__title,
.ka-work-archive-head__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
  margin: 0;
}
.ka-work-section-head__sub,
.ka-work-archive-head__sub {
  font-size: 14px;
  color: var(--text-sub);
  margin: 8px 0 0;
}

/* --- 18-4. おすすめ記事カード（v7.3.0：白背景・テキスト主体） --- */
.ka-work-pickup {
  max-width: 1080px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.ka-work-pickup__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* カード本体：白背景、上にカラーバー */
.ka-work-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--cream-bd);
  border-top: 4px solid var(--navy); /* デフォルト。modifierで上書き */
  border-radius: 0;
  padding: 28px 26px 24px;
  text-decoration: none;
  color: inherit;
  min-height: 200px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ka-work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 43, 74, 0.10);
  text-decoration: none;
  color: inherit;
}

/* NEWバッジ：右上 */
.ka-work-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: #ffffff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 600;
  z-index: 2;
}

/* ナンバー：左上、小さめ */
.ka-work-card__num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1;
}

/* タイトル：日本語主軸・大きめ */
.ka-work-card__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.55;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

/* desc：30〜40字想定・スマホで14px以上 */
.ka-work-card__desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.85;
  margin: 0 0 18px;
  flex: 1;
}

/* 「記事を読む →」CTA */
.ka-work-card__cta {
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.ka-work-card__cta::after {
  content: "→";
  transition: transform 0.2s ease;
}
.ka-work-card:hover .ka-work-card__cta::after {
  transform: translateX(4px);
}

/* カラーバー（カテゴリ別 modifier）
   01 年収の壁：ネイビー
   02 派遣・公的支援：ティール
   03 コールセンター：ゴールドブラウン
   04 マンション管理：ダークグリーン */
.ka-work-card--c01 { border-top-color: #1a2b4a; }
.ka-work-card--c02 { border-top-color: #2c5f5d; }
.ka-work-card--c03 { border-top-color: #8b6f47; }
.ka-work-card--c04 { border-top-color: #3d5a4c; }

.ka-work-card--c01:hover { border-top-color: #0f1a2e; }
.ka-work-card--c02:hover { border-top-color: #1a3838; }
.ka-work-card--c03:hover { border-top-color: #6b5435; }
.ka-work-card--c04:hover { border-top-color: #2a4035; }


/* --- 18-5. シミュレーター・ハブ箱（折りたたみ・主役級） --- */
.ka-work-sim-wrap {
  max-width: 1080px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.ka-work-sim {
  background: var(--teal);
  color: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.ka-work-sim summary {
  list-style: none;
  cursor: pointer;
  padding: 56px 32px 50px;
  text-align: center;
  position: relative;
  transition: background 0.25s ease;
}
.ka-work-sim summary::-webkit-details-marker { display: none; }
.ka-work-sim summary:hover { background: rgba(255,255,255,0.04); }
.ka-work-sim summary::before,
.ka-work-sim summary::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background: var(--gold);
}
.ka-work-sim summary::before { top: 36px; }
.ka-work-sim summary::after { bottom: 28px; }
.ka-work-sim__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 400;
  text-transform: uppercase;
}
.ka-work-sim__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.ka-work-sim__desc {
  font-size: 14px;
  color: rgba(250,249,246,0.85);
  margin: 0 auto 32px;
  max-width: 480px;
  line-height: 1.85;
}
.ka-work-sim__trigger {
  display: inline-block;
  padding: 14px 38px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}
.ka-work-sim summary:hover .ka-work-sim__trigger {
  background: var(--gold);
  color: var(--teal);
}
.ka-work-sim[open] .ka-work-sim__trigger-text-closed { display: none; }
.ka-work-sim:not([open]) .ka-work-sim__trigger-text-open { display: none; }
.ka-work-sim__body {
  background: var(--cream);
  color: var(--navy);
  padding: 8px 0 0;
}
.ka-work-sim__after {
  background: var(--teal);
  padding: 24px 32px 40px;
  text-align: center;
  border-top: 1px solid rgba(200, 160, 90, 0.2);
}
.ka-work-sim__after-text {
  font-size: 13px;
  color: rgba(250,249,246,0.7);
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}
.ka-work-sim__after-link {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.ka-work-sim__after-link:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
}

/* --- 18-6. サイトTOPへの導線 --- */
.ka-work-tophome {
  max-width: 760px;
  margin: 60px auto 80px;
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--cream-bd);
  border-bottom: 1px solid var(--cream-bd);
}
.ka-work-tophome__text {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}
.ka-work-tophome__link {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.ka-work-tophome__link:hover {
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
}

/* --- 18-7. ka-work スマホ対応 --- */
@media (max-width: 700px) {
  .ka-work-hero { padding: 60px 20px 50px; margin-bottom: 40px; }
  .ka-work-hero::before { top: 36px; }
  .ka-work-hero::after { bottom: 28px; }
  .ka-work-hero__title { font-size: 24px; }
  .ka-work-hero__subtitle { font-size: 13px; }
  .ka-work-hero__label { font-size: 12px; margin-bottom: 18px; }

  .ka-work-intro { margin-bottom: 50px; padding: 0 20px; }
  .ka-work-intro__text { font-size: 14px; line-height: 1.85; }

  .ka-work-pickup { margin-bottom: 60px; padding: 0 20px; }
  .ka-work-pickup__grid { grid-template-columns: 1fr; gap: 16px; }
  .ka-work-section-head__title,
  .ka-work-archive-head__title { font-size: 19px; }
  .ka-work-card { padding: 24px 22px 22px; min-height: 0; }
  .ka-work-card__num { font-size: 13px; margin-bottom: 10px; }
  .ka-work-card__title { font-size: 17px; line-height: 1.55; }
  .ka-work-card__desc { font-size: 14px; line-height: 1.85; }
  .ka-work-card__cta { font-size: 13px; }
  .ka-work-card__badge { top: 12px; right: 12px; font-size: 10px; padding: 2px 8px; }
  .ka-work-archive-head { padding: 0 20px; }

  .ka-work-sim-wrap { margin-bottom: 60px; padding: 0 20px; }
  .ka-work-sim summary { padding: 44px 20px 40px; }
  .ka-work-sim summary::before { top: 28px; }
  .ka-work-sim summary::after { bottom: 22px; }
  .ka-work-sim__title { font-size: 20px; }
  .ka-work-sim__desc { font-size: 13px; margin-bottom: 24px; }
  .ka-work-sim__trigger { padding: 12px 28px; font-size: 13px; }
  .ka-work-sim__after { padding: 20px 20px 32px; }

  .ka-work-tophome { margin: 40px auto 60px; padding: 32px 20px; }
}

/* --- 18-8.（廃止）カードサムネイル個別画像 ---
   v7.3.0 でカードを白背景・テキスト主体に刷新したため、
   .ka-work-card__thumb--XXX 系の背景画像定義はすべて廃止。
   本セクションは互換のためのメモのみ残す。 */

/* --- 18-9. 記事なし時のメッセージ --- */
.ka-work-empty {
  text-align: center;
  color: var(--text-sub);
  padding: 40px 0;
}

/* --- 18-10. iframe シミュレーター埋め込み --- */
.ka-work-sim__iframe {
  width: 100%;
  height: 1400px;
  border: none;
  display: block;
  background: var(--cream);
}
@media (max-width: 700px) {
  .ka-work-sim__iframe { height: 1500px; }
}

/* ============================================================
   style.css v7.4.0 追加パッチ
   セクション19：図解タップ拡大コンポーネント（ka-figure-zoom系）
   ============================================================
   追加日：2026-05-07
   目的：スマホ可読性ルール v1.0 ルール3-7 準拠
        全図解にタップ拡大機能を提供する共通コンポーネント。

   命名衝突回避：
     既存の .ka-figure（既存16記事の挿絵用）はそのまま温存。
     新コンポーネントは .ka-figure-zoom 系として完全独立。

   設置方法：style.css 末尾（セクション18-10の直後）に追加。
   ============================================================ */

/* --- 19-1. タップ拡大対応の図解枠 --- */
.ka-figure-zoom {
  margin: 36px 0;
  cursor: zoom-in;
  position: relative;
}

.ka-figure-zoom__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--cream-bd);
  border-radius: 6px 6px 0 0;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-sub);
  letter-spacing: 0.02em;
  font-weight: 500;
  min-height: 36px;
}

.ka-figure-zoom__inner {
  background: #ffffff;
  border: 1px solid var(--cream-bd);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 16px 12px 20px;
  text-align: center;
}

.ka-figure-zoom__inner svg {
  max-width: 100%;
  height: auto;
}

.ka-figure-zoom__caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 12px;
  letter-spacing: 0.1em;
}

/* --- 19-2. 拡大表示モーダル（dialog要素） --- */
.ka-figure-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 26, 46, 0.96);
  z-index: 9999;
}

.ka-figure-modal::backdrop {
  background: rgba(15, 26, 46, 0.92);
}

.ka-figure-modal[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ka-figure-modal__close {
  position: fixed;
  top: 16px;
  right: 16px;
  min-width: 88px;
  min-height: 44px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 22px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.15s, transform 0.1s;
}

.ka-figure-modal__close:hover { background: var(--gold-dark); color: #ffffff; }
.ka-figure-modal__close:active { transform: scale(0.96); }

.ka-figure-modal__content {
  width: 100%;
  height: 100%;
  padding: 60px 16px 24px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

.ka-figure-modal__content svg {
  max-width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
}

/* スマホ調整 */
@media (max-width: 600px) {
  .ka-figure-zoom { margin: 24px 0; }
  .ka-figure-zoom__hint { font-size: 13px; padding: 7px 12px; }
  .ka-figure-zoom__inner { padding: 12px 8px 16px; }
  .ka-figure-modal__close {
    top: 12px;
    right: 12px;
    min-width: 84px;
    min-height: 44px;
    font-size: 13px;
  }
  .ka-figure-modal__content { padding: 60px 8px 16px; }
}

/* ============================================================
   style.css v7.4.0 追加パッチ：セクション20
   ka-table レスポンシブ対応（横スクロール＋1列目固定）
   ============================================================
   追加日：2026-05-07
   目的：シニア向け可読性改善
        スマホで表が読みにくい問題を、横比較を維持したまま解決。
        - 横スクロールヒント（文字で明示）
        - 1列目をsticky固定（行追跡を容易に）
        - 右端シャドウで「続きがある」サイン

   設置方法：style.css 末尾（セクション19の後）に追加。

   利用方法（HTML側）：
     既存の <table class="ka-table"> を以下で囲むだけ。

     <div class="ka-table-wrap">
       <table class="ka-table">
         ...既存のtable中身...
       </table>
     </div>

   既存の ka-table 単体使用は引き続き動作（ラッパー無しでもOK）。
   ============================================================ */

/* --- 20-1. ラッパー基本（PC/スマホ共通） --- */
.ka-table-wrap {
  margin: 28px 0;
}

/* PCではラッパーは透明：既存ka-tableのデザインそのまま */
@media (min-width: 768px) {
  .ka-table-wrap .ka-table { margin: 0; }
}

/* --- 20-2. スマホ用レスポンシブ（767px以下） --- */
@media (max-width: 767px) {
  /* スクロールヒント帯 */
  .ka-table-wrap::before {
    content: "← 横にスライドして全列を見られます →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--text-mute);
    background: var(--cream);
    border: 1px solid var(--cream-bd);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 8px;
    letter-spacing: 0.02em;
  }

  /* スクロール領域 */
  .ka-table-wrap__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--cream-bd);
    border-top: none;
    border-radius: 0 0 6px 6px;
    position: relative;
    /* スクロールバーを薄く出す（iOS Safari は隠れがちなので明示） */
    scrollbar-width: thin;
  }
  .ka-table-wrap__scroll::-webkit-scrollbar {
    height: 6px;
  }
  .ka-table-wrap__scroll::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: 3px;
  }
  .ka-table-wrap__scroll::-webkit-scrollbar-track {
    background: var(--cream);
  }

  /* 表本体 */
  .ka-table-wrap .ka-table {
    margin: 0;
    min-width: 640px;  /* 全列を確実に表示 */
    font-size: 14px;
    border: none;
  }

  .ka-table-wrap .ka-table th,
  .ka-table-wrap .ka-table td {
    padding: 12px 14px;
    white-space: nowrap;  /* 改行を抑える */
  }

  /* 最終列（説明文が長くなりがち）は折り返し許可 */
  .ka-table-wrap .ka-table td:last-child,
  .ka-table-wrap .ka-table th:last-child {
    white-space: normal;
    min-width: 200px;
  }

  /* --- 1列目を固定（sticky） --- */
  .ka-table-wrap .ka-table th:first-child,
  .ka-table-wrap .ka-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    /* 固定列の右側に区切り感を出す */
    box-shadow: 4px 0 8px -4px rgba(26, 43, 74, 0.15);
  }

  /* 1列目のヘッダ（th）はネイビー背景なのでそのまま */
  .ka-table-wrap .ka-table thead th:first-child {
    background: var(--navy);
  }

  /* 1列目の本文セル（td）は背景白を明示（透けないように） */
  .ka-table-wrap .ka-table tbody td:first-child {
    background: #ffffff;
    font-weight: 700;
    color: var(--navy);
  }
  /* 偶数行の1列目だけクリーム背景に */
  .ka-table-wrap .ka-table tbody tr:nth-child(even) td:first-child {
    background: var(--cream);
  }
}

/* --- 20-3. 既存 ka-table の単体使用も引き続き保護 ---
   ラッパー無しの ka-table は従来通り動作。CSSは触らない。
   既存16記事への影響ゼロ。 */

/* ============================================
   End of stylesheet v7.4.4
   ============================================ */
