/* ============================================================================
 * Challenge Pages CSS
 * .chg コンテナで名前空間化して既存 CSS との衝突を回避
 * ========================================================================= */

.chg {
  --chg-teal: var(--sky, #1C93D2);
  --chg-teal-light: var(--sky-pale, #EAF4FB);
  --chg-teal-dark: #14719f;
  --chg-text: var(--navy, #1B224C);
  --chg-muted: #5a6a7a;
  --chg-border: #e2e8f0;
  --chg-radius: 8px;
}

/* ===== HERO （.pm-mock * リセットを打ち勝つよう !important 併用） ===== */
.pm-mock section.chg-hero { padding: 40px 24px 32px !important; background: var(--paper, #f5f9fd); border-bottom: 1px solid var(--chg-border); }
.pm-mock section.chg-hero .chg-hero__wrap { max-width: 1100px; margin: 0 auto !important; padding: 0 !important; }
.pm-mock section.chg-hero .chg-hero__eyebrow {
  font-family: 'Poppins', var(--mono, monospace);
  font-size: 12px !important; letter-spacing: .12em !important;
  color: var(--sky, #1C93D2) !important; font-weight: 700 !important;
  margin: 0 0 14px !important; text-transform: uppercase; display: block;
}
.pm-mock section.chg-hero h1.chg-hero__h1 {
  font-size: 48px !important; font-weight: 900 !important;
  line-height: 1.35 !important; letter-spacing: -.01em !important;
  color: var(--navy, #1B224C) !important;
  margin: 0 0 20px !important; padding: 0 !important;
  font-family: var(--jp, sans-serif) !important;
}
@media (max-width: 767px) {
  .pm-mock section.chg-hero h1.chg-hero__h1 {
    font-size: 30px !important; line-height: 1.4 !important;
  }
}
.pm-mock section.chg-hero .chg-hero__lead {
  font-size: 16px !important; line-height: 1.9 !important;
  color: var(--chg-muted) !important; max-width: 780px;
  margin: 0 !important;
}
.pm-mock section.chg-hero .chg-hero__crumbs {
  font-size: 12px !important; color: var(--chg-muted);
  margin: 0 0 24px !important;
  line-height: 1.4 !important;
}
.pm-mock section.chg-hero .chg-hero__crumbs a,
.pm-mock section.chg-hero .chg-hero__crumbs span {
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: var(--chg-muted) !important;
  text-decoration: none !important;
  font-weight: 400 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
  background: none !important;
  border: none !important;
}
.pm-mock section.chg-hero .chg-hero__crumbs a:hover { color: var(--sky, #1C93D2) !important; }
.pm-mock section.chg-hero .chg-hero__crumbs span:not([aria-current]) { margin: 0 6px !important; }

/* ===== PAGE LAYOUT ===== */
.chg-page-wrap { max-width: 1000px; margin: 0 auto; padding: 20px 24px 40px; display: block; }
.chg-col-main { width: 100%; min-width: 0; font-size: 15px; line-height: 1.85; color: var(--chg-text); }
/* サイドバー本体は非表示（related は末尾に移動済）、ただし CTA は fixed なので生存させる */
.chg-col-side { display: contents; }
.chg-side__related { display: none; }

@media (max-width: 1023px) {
  .chg-page-wrap { max-width: 100%; padding: 20px 20px 32px; }
  .chg-col-side { display: block; margin-top: 32px; }
  .chg-side__related { display: block; }
}

/* ===== CONTENT ELEMENTS （記事本文内の要素） ===== */
.chg-col-main h2 { font-size: 22px; font-weight: 700; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--chg-teal); color: var(--chg-text); }
.chg-col-main h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: var(--chg-text); }
.chg-col-main h4 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
.chg-col-main p { margin-bottom: 16px; color: var(--chg-muted); line-height: 1.85; }
.chg-col-main ul, .chg-col-main ol { margin: 8px 0 18px 22px; }
.chg-col-main li { margin-bottom: 6px; color: var(--chg-muted); }
.chg-col-main strong { color: var(--chg-text); }

/* ===== LEAD（記事冒頭のリード） ===== */
.chg-lead { background: var(--chg-teal-light); border-left: 4px solid var(--chg-teal); padding: 18px 22px; border-radius: 0 var(--chg-radius) var(--chg-radius) 0; margin: 20px 0 28px; font-size: 14.5px; line-height: 1.85; color: var(--chg-text); }

/* ===== CTA INLINE ===== */
.chg .cta-inline { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--chg-border); border-bottom: 1px solid var(--chg-border); margin: 24px 0; font-size: 14px; color: var(--chg-teal-dark); font-weight: 600; text-decoration: none; }
.chg .cta-inline:hover { color: var(--chg-teal); }

/* ===== CAUSE CARDS （旧レイアウト・fallback） ===== */
.chg .cause-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.chg .cause-card { border: 1px solid var(--chg-border); border-radius: var(--chg-radius); padding: 22px; background: #fff; text-align: center; }
.chg .cause-card .num { font-size: 28px; font-weight: 800; color: var(--chg-teal); opacity: .35; margin-bottom: 8px; }
.chg .cause-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.chg .cause-card p { font-size: 12.5px; color: var(--chg-muted); margin: 0; line-height: 1.7; }

/* ===== CIRCLES （3つの理由：上部に円+番号、タイトル、説明文の縦型カード） ===== */
.chg-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 48px;
  padding: 32px 0 8px;    /* 円のはみ出しぶん上に余白 */
  align-items: stretch;
}
.chg-circles__item {
  position: relative;
  background: #fff;
  border: 1px solid var(--chg-border);
  border-radius: 12px;
  padding: 48px 24px 28px;   /* 円のはみ出しぶん top */
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
/* 上部の円 + 番号 */
.chg-circles__num {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sky, #1C93D2);
  border: 4px solid #fff;
  color: #fff;
  font-family: 'Poppins', var(--mono, monospace);
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(28,147,210,.28);
  letter-spacing: .02em;
}
/* タイトル（アクセントカラー） */
.chg-circles__title {
  font-size: 17px; font-weight: 800;
  color: var(--sky, #1C93D2);
  line-height: 1.5;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--chg-border);
}
/* 説明文 */
.chg-circles__desc {
  font-size: 13.5px;
  color: var(--chg-muted);
  line-height: 1.85;
  text-align: left;
  margin: 0;
}

/* タブレット */
@media (max-width: 1023px) {
  .chg-circles { gap: 16px; }
  .chg-circles__item { padding: 42px 18px 22px; }
  .chg-circles__title { font-size: 15px; }
  .chg-circles__desc { font-size: 12.5px; }
}

/* モバイル：縦積み */
@media (max-width: 767px) {
  .chg-circles { grid-template-columns: 1fr; gap: 32px; margin: 40px 0; padding-top: 32px; }
  .chg-circles__item { padding: 44px 24px 24px; }
  .chg-circles__title { font-size: 16px; }
  .chg-circles__desc { font-size: 13.5px; }
}

/* ===== FEATURE ROWS （3つの理由・3つの失敗 alternating レイアウト） ===== */
.chg-feature-rows { margin: 20px 0 32px; }
.chg-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}
.chg-feature-row:last-child { margin-bottom: 0; }
/* 偶数行を反転（image → text） */
.chg-feature-row:nth-child(even) .chg-feature-row__text { order: 2; }
.chg-feature-row:nth-child(even) .chg-feature-row__visual { order: 1; }

.chg-feature-row__text { }
.chg-feature-row__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--chg-text); color: #fff;
  border-radius: 50%;
  font-family: var(--mono, monospace);
  font-size: 14px; font-weight: 800;
  margin-bottom: 16px;
}
.chg-feature-row__title {
  font-size: 20px; font-weight: 800; color: var(--chg-text);
  line-height: 1.55; margin-bottom: 14px;
}
.chg-feature-row__desc {
  font-size: 14px; color: var(--chg-muted); line-height: 1.9;
}
.chg-feature-row__desc ul { margin: 12px 0 0 0; padding-left: 0; list-style: none; }
.chg-feature-row__desc ul li {
  font-size: 13.5px; color: var(--chg-muted); line-height: 1.75;
  padding: 4px 0 4px 20px; position: relative;
}
.chg-feature-row__desc ul li::before {
  content: "•"; position: absolute; left: 6px; top: 4px;
  color: var(--chg-teal); font-weight: 700;
}

/* Visual side (画像 or プレースホルダ) */
.chg-feature-row__visual {
  border-radius: 12px;
  overflow: hidden;
  background: var(--chg-teal-light);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}
.chg-feature-row__visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* プレースホルダ（画像未設定時） */
.chg-feature-row__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  border: 2px dashed rgba(28, 147, 210, .3);
  background: #fff;
  color: var(--chg-teal-dark);
  font-size: 12px;
}
.chg-feature-row__placeholder svg { width: 40px; height: 40px; opacity: .5; }

/* モバイル：縦積み */
@media (max-width: 800px) {
  .chg-feature-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .chg-feature-row:nth-child(even) .chg-feature-row__text { order: 0; }
  .chg-feature-row:nth-child(even) .chg-feature-row__visual { order: 0; }
  .chg-feature-row__title { font-size: 17px; }
  .chg-feature-row__desc { font-size: 13.5px; }
  .chg-feature-row__num { width: 36px; height: 36px; font-size: 13px; margin-bottom: 12px; }
}

/* ===== COMPARE TABLE ===== */
.chg .compare-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 24px 0; border: 1px solid var(--chg-border); border-radius: var(--chg-radius); overflow: hidden; }
.chg .compare-table th { background: var(--chg-teal-dark); color: #fff; padding: 12px 14px; text-align: center; font-size: 12.5px; font-weight: 700; }
.chg .compare-table th:first-child { text-align: left; }
.chg .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--chg-border); text-align: center; vertical-align: top; }
.chg .compare-table td:first-child { text-align: left; font-weight: 600; color: var(--chg-text); }
.chg .compare-table tr:last-child td { border-bottom: none; }
.chg .compare-table td:last-child { background: var(--chg-teal-light); color: var(--chg-teal-dark); font-weight: 600; }

/* ===== CTA BLOCK ===== */
.chg .cta-block { background: var(--chg-teal-light); border: 2px solid var(--chg-teal); border-radius: var(--chg-radius); padding: 32px 24px; text-align: center; margin: 32px 0; }
.chg .cta-block .headline { font-size: 17px; font-weight: 700; color: var(--chg-teal-dark); margin-bottom: 6px; }
.chg .cta-block .sub { font-size: 13px; color: var(--chg-muted); margin-bottom: 16px; }
.chg .cta-block .btn { display: inline-block; background: var(--chg-teal); color: #fff; padding: 12px 32px; border-radius: 6px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.chg .cta-block .btn:hover { background: var(--chg-teal-dark); }

/* ===== STEP ITEMS ===== */
.chg .step-items { margin: 24px 0; }
.chg .step-item {
  position: relative;
  display: flex; gap: 18px;
  margin-bottom: 24px;
  align-items: flex-start;
}
/* STEP 番号の縦線（連結感） */
.chg .step-item::before {
  content: "";
  position: absolute;
  left: 19px;             /* 40px 円の中心 - 線幅1 */
  top: 44px;              /* 円の下端 + 少し */
  bottom: -24px;          /* margin-bottom分だけ次のitemまで伸ばす */
  width: 2px;
  background: var(--chg-teal);
  opacity: .35;
  z-index: 0;
}
/* 最終ステップは、数字の下だけに短く出す */
.chg .step-item:last-child::before {
  bottom: auto;
  height: 20px;
}
.chg .step-num {
  position: relative; z-index: 1;
  width: 40px; height: 40px;
  background: var(--chg-teal); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.chg .step-body { flex: 1; }
.chg .step-body strong { font-size: 15px; color: var(--chg-text); display: block; margin-bottom: 4px; }
.chg .step-body p { font-size: 13.5px; margin-bottom: 4px; }
.chg .step-body a { font-size: 12.5px; color: var(--chg-teal-dark); text-decoration: none; }
.chg .step-body a:hover { color: var(--chg-teal); }

/* ===== CASE CARDS （名前空間化） ===== */
.chg .case-card { border: 1px solid var(--chg-border); border-radius: var(--chg-radius); padding: 22px; margin-bottom: 14px; background: #fff; }
.chg .case-card .tag { font-size: 11px; background: var(--chg-teal-light); color: var(--chg-teal-dark); padding: 3px 10px; border-radius: 4px; font-weight: 600; display: inline-block; margin-bottom: 10px; }
.chg .case-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.chg .case-card p { font-size: 13px; margin-bottom: 8px; }
.chg .case-card a { font-size: 12.5px; color: var(--chg-teal-dark); text-decoration: none; font-weight: 600; }

/* ===== FAQ （名前空間化） ===== */
.chg .faq-item { border: 1px solid var(--chg-border); border-radius: var(--chg-radius); margin-bottom: 8px; overflow: hidden; }
.chg .faq-q { padding: 14px 18px; font-size: 14px; font-weight: 700; background: #f8fafc; }
.chg .faq-a { padding: 14px 18px; font-size: 13px; color: var(--chg-muted); border-top: 1px solid var(--chg-border); line-height: 1.85; }

/* ===== CTA FOOTER BANNER ===== */
.chg .cta-footer-banner { background: linear-gradient(135deg, var(--chg-teal) 0%, var(--chg-teal-dark) 100%); color: #fff; border-radius: var(--chg-radius); padding: 36px 28px; text-align: center; margin: 40px 0; }
.chg .cta-footer-banner h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: #fff; border: none; padding: 0; }
.chg .cta-footer-banner p { color: rgba(255, 255, 255, .9); font-size: 14px; margin-bottom: 20px; }
.chg .cta-footer-banner .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.chg .cta-footer-banner .btn-w { background: #fff; color: var(--chg-teal-dark); padding: 12px 28px; border-radius: 6px; font-weight: 700; font-size: 14px; text-decoration: none; }
.chg .cta-footer-banner .btn-o { background: transparent; color: #fff; padding: 12px 28px; border-radius: 6px; font-weight: 600; font-size: 14px; border: 2px solid rgba(255, 255, 255, .5); text-decoration: none; }

/* ===== NEXT STEPS ===== */
.chg-next { margin: 40px 0; }
.chg-next h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--chg-teal); }
.chg-next__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chg-next__link { border: 1px solid var(--chg-border); border-radius: var(--chg-radius); padding: 20px; text-align: center; text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
.chg-next__link:hover { border-color: var(--chg-teal); transform: translateY(-2px); }
.chg-next__link .label { font-size: 11px; color: var(--chg-muted); margin-bottom: 6px; display: block; }
.chg-next__link .title { font-size: 14px; color: var(--chg-teal-dark); font-weight: 700; }

/* ===== SIDEBAR ===== */
.chg-col-side { position: relative; }

/* デスクトップ：右端 fixed 追従（header 下、mock-side-tab の内側） */
@media (min-width: 1024px) {
  .pm-mock .chg-side__cta {
    position: fixed;
    right: 24px;    /* サイドタブ廃止（v0.95.0）に伴い右端の余白のみ */
    top: 140px;     /* header高 92px + 48px 余白（ヘッダーとしっかり分離） */
    width: 210px;
    z-index: 90;
    box-shadow: 0 12px 32px -10px rgba(28, 147, 210, .35);
  }
  /* WP 管理バーがあるとき（32px 高）は下にずらす */
  body.admin-bar .pm-mock .chg-side__cta { top: 172px; }
}
/* 基本（モバイル含む）：通常カード */
.pm-mock .chg-side__cta {
  border: 2px solid var(--chg-teal); border-radius: var(--chg-radius);
  padding: 18px; text-align: center;
  background: var(--chg-teal-light);
  margin-bottom: 20px;
  box-sizing: border-box;
}
.pm-mock .chg-side__cta p {
  font-size: 13px; font-weight: 700;
  color: var(--chg-teal-dark);
  margin: 0 0 10px; line-height: 1.6;
}
.pm-mock .chg-side__cta .btn {
  display: block; background: var(--chg-teal); color: #fff;
  padding: 11px; border-radius: 6px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
}
.pm-mock .chg-side__cta .btn:hover { background: var(--chg-teal-dark); }
.chg-side__cta p { font-size: 13.5px; font-weight: 700; color: var(--chg-teal-dark); margin-bottom: 10px; line-height: 1.6; }
.chg-side__cta .btn { display: block; background: var(--chg-teal); color: #fff; padding: 11px; border-radius: 6px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.chg-side__cta .btn:hover { background: var(--chg-teal-dark); }
.chg-side__related { border: 1px solid var(--chg-border); border-radius: var(--chg-radius); padding: 18px; background: #fff; margin-bottom: 20px; }
.chg-side__related h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--chg-text); }
.chg-side__related ul { list-style: none; padding: 0; margin: 0; }
.chg-side__related li { padding: 8px 0; border-bottom: 1px solid var(--chg-border); }
.chg-side__related li:last-child { border-bottom: none; }
.chg-side__related a { font-size: 12.5px; color: var(--chg-teal-dark); text-decoration: none; line-height: 1.5; }
.chg-side__related a:hover { color: var(--chg-teal); }

/* ===== RELATED SERVICES（記事末尾） ===== */
.chg-related-services { margin: 40px 0; }
.chg-related-services h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--chg-teal); }
.chg-related-services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.chg-related-services__link {
  padding: 14px 18px;
  border: 1px solid var(--chg-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--chg-teal-dark);
  font-size: 13.5px; font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.chg-related-services__link:hover { border-color: var(--chg-teal); transform: translateX(3px); }
@media (max-width: 640px) {
  .chg-related-services__grid { grid-template-columns: 1fr; }
}

/* ===== ARCHIVE / CATEGORY LIST ===== */
.chg-archive-hero { padding: 60px 24px 40px; text-align: center; background: linear-gradient(135deg, var(--chg-teal-light) 0%, #fff 100%); }
.chg-archive-hero__eyebrow { font-family: var(--mono, monospace); font-size: 12px; letter-spacing: .12em; color: var(--chg-teal-dark); font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.chg-archive-hero__h1 { font-size: 30px; font-weight: 900; color: var(--chg-text); margin-bottom: 12px; }
.chg-archive-hero__lead { font-size: 14.5px; color: var(--chg-muted); max-width: 700px; margin: 0 auto; line-height: 1.85; }
.chg-archive-list { max-width: 1100px; margin: 40px auto; padding: 0 24px; }
.chg-archive-cat { margin-bottom: 48px; }
.chg-archive-cat__title { font-size: 22px; font-weight: 800; color: var(--chg-text); margin-bottom: 4px; padding-left: 12px; border-left: 4px solid var(--chg-teal); }
.chg-archive-cat__desc { font-size: 13px; color: var(--chg-muted); margin: 6px 0 20px 16px; }
.chg-archive-cat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chg-archive-card { border: 1px solid var(--chg-border); border-radius: var(--chg-radius); padding: 22px 20px; background: #fff; text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
.chg-archive-card:hover { border-color: var(--chg-teal); transform: translateY(-3px); }
.chg-archive-card__title { font-size: 15px; font-weight: 700; color: var(--chg-text); margin-bottom: 8px; line-height: 1.5; }
.chg-archive-card__excerpt { font-size: 12.5px; color: var(--chg-muted); line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .chg-page-wrap { flex-direction: column; }
  .chg-col-side { width: 100%; order: 2; }
  .chg-col-main { order: 1; }
  .chg-side__cta { position: static; box-shadow: none; }
  .chg .cause-cards { grid-template-columns: 1fr; }
  .chg-next__links { grid-template-columns: 1fr; }
  .chg .compare-table { display: block; overflow-x: auto; }
  .chg .cta-footer-banner .btns { flex-direction: column; align-items: stretch; }
  .chg-archive-cat__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chg-hero { padding: 32px 20px 20px; }
  .chg-hero__h1 { font-size: 22px; }
  .chg-hero__lead { font-size: 13.5px; }
  .chg-page-wrap { padding: 24px 20px; }
  .chg-col-main h2 { font-size: 18px; }
  .chg-col-main h3 { font-size: 15.5px; }
  .chg-archive-hero { padding: 40px 20px 28px; }
  .chg-archive-hero__h1 { font-size: 24px; }
}
/* ==================================================================
 * v0.96.0 — 課題別ページ本文（モック取り込み分）
 *   投稿本文に入るモック由来のブロック。既にある .cause-card /
 *   .compare-table / .step-items / .case-card はそのまま使い、
 *   足りなかった分だけここに足す。
 * ================================================================== */

/* ---- 図版（インラインSVG＋キャプション）---- */
.chg .chg-col-main .fig{
  margin:26px 0;border:1px solid var(--chg-border);background:#fff;
  padding:18px 18px 14px;
}
.chg .chg-col-main .fig svg{display:block;width:100%;height:auto;}
.chg .chg-col-main .fig figcaption{
  margin-top:12px;font-size:12.5px;font-weight:700;
  color:var(--chg-text);line-height:1.7;
}

/* ---- 結論を先に置くリード文 ---- */
.chg .chg-col-main .lead-answer{
  margin:16px 0 20px;padding:16px 20px;
  background:#F2F7FC;border-left:4px solid var(--chg-teal);
  font-size:15.5px;line-height:1.95;color:#22304A;
}
.chg .chg-col-main .lead-answer b{
  background:linear-gradient(transparent 62%, #CFE4F7 62%);padding:0 2px;font-weight:700;
}

/* ---- 表（table.price / table.sol-table 共通）---- */
.chg .chg-col-main .tablewrap{margin:22px 0;overflow-x:auto;border:1px solid var(--chg-border);background:#fff;}
.chg .chg-col-main table.price,
.chg .chg-col-main table.sol-table{width:100%;min-width:560px;border-collapse:collapse;}
.chg .chg-col-main table.price th,
.chg .chg-col-main table.price td,
.chg .chg-col-main table.sol-table th,
.chg .chg-col-main table.sol-table td{
  border-bottom:1px solid var(--chg-border);
  padding:14px 16px;font-size:14px;line-height:1.9;text-align:left;vertical-align:top;
}
.chg .chg-col-main table.price thead th,
.chg .chg-col-main table.sol-table thead th{
  background:var(--chg-text);color:#fff;font-weight:700;font-size:13.5px;letter-spacing:.04em;
}
.chg .chg-col-main table.price tbody th[scope="row"]{
  background:#F5F8FB;font-weight:700;color:var(--chg-text);
  border-left:3px solid var(--chg-teal);
}
.chg .chg-col-main table.price tbody tr:nth-child(even),
.chg .chg-col-main table.sol-table tbody tr:nth-child(even){background:#FAFCFE;}
.chg .chg-col-main table.price tbody tr:last-child th,
.chg .chg-col-main table.price tbody tr:last-child td,
.chg .chg-col-main table.sol-table tbody tr:last-child td{border-bottom:none;}
.chg .chg-col-main table.price a,
.chg .chg-col-main table.sol-table a{color:var(--chg-teal-dark);text-decoration:underline;}

/* ---- 表・図の下の注記 ---- */
.chg .chg-col-main .price-note,
.chg .chg-col-main .note-small{
  margin:12px 0 0;padding-left:12px;border-left:2px solid #D5E0EC;
  font-size:12.5px;line-height:1.85;color:#8090A2;
}

/* ---- 補足ブロック ---- */
.chg .chg-col-main .callout{
  padding:18px 20px;background:var(--chg-teal-light);
  border:1px solid var(--chg-border);border-left:4px solid var(--chg-teal);
  font-size:14.5px;line-height:1.95;
}
.chg .chg-col-main .callout b{color:var(--chg-text);}

/* ---- STEP 一覧（legacy-industry）---- */
.chg .chg-col-main .steps{display:flex;flex-direction:column;gap:10px;margin:20px 0;}
.chg .chg-col-main .step{
  display:grid;grid-template-columns:96px minmax(0,1fr);gap:0 18px;
  background:#fff;border:1px solid var(--chg-border);border-left:3px solid var(--chg-teal);
  padding:16px 20px;
}
.chg .chg-col-main .step-no{
  font-family:'Inter','Poppins',sans-serif;font-size:12px;font-weight:700;
  letter-spacing:.1em;color:var(--chg-teal-dark);padding-top:3px;
}
.chg .chg-col-main .step-body h4{margin:0 0 6px;font-size:16px;font-weight:700;color:var(--chg-text);line-height:1.6;}
.chg .chg-col-main .step-body p{margin:0;font-size:14px;line-height:1.9;}

/* ---- 事例カードの業種タグ ---- */
.chg .chg-col-main .case-tag{
  display:inline-block;margin-bottom:8px;padding:3px 10px;
  background:#F5F8FB;border:1px solid var(--chg-border);
  font-size:11.5px;font-weight:700;color:var(--chg-muted);letter-spacing:.02em;
}

@media (max-width:760px){
  .chg .chg-col-main .fig{padding:14px 12px 10px;}
  .chg .chg-col-main .step{grid-template-columns:1fr;gap:6px;}
  .chg .chg-col-main .lead-answer{font-size:14.5px;padding:14px 16px;}
}

/* ==================================================================
 * v0.97.0 — 課題別ページ個別のデザイン調整
 *   ① SVG図の viewBox 欠落を修正（抽出側）→ CSS は高さの保険だけ
 *   ② FAQ を details 化。既定は閉じ、先頭だけ開く
 *   ③ 右の浮遊CTAを廃止（テンプレートから削除）
 *   ④ 本文の文字を一段大きく、読み幅も広げる
 *   ⑤ 原因カードの数字を右下へ大きく透過配置
 *   ⑥ 支援事例をカード型グリッドに（色は抑えめ）
 * ================================================================== */

/* ---- ④ 読み幅と文字サイズ ---- */
.chg-page-wrap{max-width:1160px;}
.chg-col-main{font-size:17px;line-height:1.95;}
.chg-col-main h2{font-size:28px;margin:44px 0 16px;padding-bottom:10px;}
.chg-col-main h3{font-size:21px;margin:28px 0 12px;}
.chg-col-main h4{font-size:18px;margin:24px 0 10px;}
.chg-col-main p{font-size:17px;line-height:1.95;margin-bottom:18px;}
.chg-col-main li{font-size:17px;line-height:1.95;}

.chg .chg-col-main .lead-answer{font-size:18px;line-height:2;padding:20px 24px;}
.chg .chg-col-main table.price th,
.chg .chg-col-main table.price td,
.chg .chg-col-main table.sol-table th,
.chg .chg-col-main table.sol-table td{font-size:15.5px;padding:15px 18px;}
.chg .chg-col-main table.price thead th,
.chg .chg-col-main table.sol-table thead th{font-size:14.5px;}
.chg .chg-col-main .price-note,
.chg .chg-col-main .note-small{font-size:13.5px;}
.chg .chg-col-main .callout{font-size:16.5px;}
.chg .chg-col-main .step-body h4{font-size:18px;margin:0 0 8px;}
.chg .chg-col-main .step-body p{font-size:15.5px;}
.chg .chg-col-main .fig figcaption{font-size:13.5px;}
.chg .compare-table th,.chg .compare-table td{font-size:15px;}
.chg .step-item h4{font-size:17px;}
.chg .step-item p{font-size:15px;}

/* SVG が潰れないよう最低限の保険 */
.chg .chg-col-main .fig svg{min-height:120px;}

/* ---- ⑤ 原因カード：数字を右下に大きく透過 ---- */
.chg .cause-cards{gap:14px;margin:26px 0;}
.chg .cause-card{
  position:relative;overflow:hidden;text-align:left;
  padding:24px 26px 28px;border-radius:0;
  /* 数字を右下に収めるための最低高さ。本文が短いカードでも
     数字の上端が見切れて上に寄って見えるのを防ぐ */
  min-height:210px;
}
.chg .cause-card .num{
  position:absolute;right:-8px;bottom:-34px;margin:0;
  font-family:'Poppins','Inter',sans-serif;
  font-size:210px;font-weight:800;line-height:1;
  color:var(--chg-teal);opacity:.12;pointer-events:none;user-select:none;
}
.chg .cause-card h4{position:relative;z-index:1;font-size:17px;margin:0 0 10px;line-height:1.55;}
.chg .cause-card p{position:relative;z-index:1;font-size:15px;line-height:1.9;margin:0;}

/* ---- ⑥ 支援事例：カード型グリッド（色は抑えめ）---- */
.chg .chg-col-main .case-cards{
  display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:24px 0;
}
.chg .case-card{
  display:flex;flex-direction:column;
  border:1px solid var(--chg-border);border-radius:0;background:#fff;
  padding:0;margin:0;
}
.chg .case-card:hover{box-shadow:0 14px 30px rgba(27,34,76,.08);}
.chg .case-card .tag,
.chg .case-card .case-tag{
  display:block;margin:0;border:0;border-radius:0;
  background:var(--chg-text);color:#fff;
  padding:11px 20px;font-size:12.5px;font-weight:700;letter-spacing:.04em;line-height:1.5;
}
.chg .case-card h4{margin:18px 20px 10px;font-size:17px;line-height:1.6;}
.chg .case-card p{margin:0 20px 10px;font-size:14.5px;line-height:1.9;}
.chg .case-card p:last-of-type{margin-bottom:20px;}
.chg .case-card a{margin:0 20px 18px;font-size:14px;}

/* ---- ② FAQ：details 化 ---- */
.chg .faq-item{overflow:hidden;}
.chg .faq-q{
  position:relative;display:block;cursor:pointer;list-style:none;
  padding:18px 52px 18px 22px;font-size:16.5px;line-height:1.7;
}
.chg .faq-q::-webkit-details-marker{display:none;}
.chg .faq-q::after{
  content:"";position:absolute;right:22px;top:50%;
  width:10px;height:10px;margin-top:-7px;
  border-right:2px solid var(--chg-teal);border-bottom:2px solid var(--chg-teal);
  transform:rotate(45deg);transition:transform .2s;
}
.chg .faq-item[open] .faq-q::after{transform:rotate(-135deg);margin-top:-2px;}
.chg .faq-item[open] .faq-q{color:var(--chg-teal-dark);}
.chg .faq-a{padding:18px 22px;font-size:15.5px;line-height:1.95;}

@media (max-width:1023px){
  .chg .chg-col-main .case-cards{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .chg-col-main{font-size:15.5px;}
  .chg-col-main h2{font-size:22px;}
  .chg-col-main h3{font-size:18px;}
  .chg-col-main p,.chg-col-main li{font-size:15.5px;}
  .chg .cause-card{min-height:170px;}
  .chg .cause-card .num{font-size:160px;right:-6px;bottom:-26px;}
}

/* ==================================================================
 * v0.98.0 — 全体を一段大きく
 *   基準は「図表の中の文字」。SVGは viewBox の座標系なので、拡大するには
 *   図の表示幅を広げるしかない（font-size を個別に上げると座標がずれて
 *   文字が重なる）。そこでページ幅を広げて図を大きく描き、
 *   本文はその中で読み幅を保つ、という組み方にする。
 *
 *   図の表示幅 約1,316px → viewBox 900 に対して約1.46倍。
 *   モック側の本文級（11.5px）が実寸で約16.8px になり、本文とほぼ同じ大きさ。
 * ================================================================== */

.chg-page-wrap{max-width:1400px;padding:24px 24px 48px;}

/* 見出し・本文・図表をすべて同じ幅に揃える（v0.98.1）
   見出しの下線だけ手前で切れて崩れて見えるため、読み幅の制限はかけない */
.chg-col-main > *{max-width:none;}

/* ---- 本文まわり ---- */
.chg-col-main{font-size:20px;line-height:1.95;}
.chg-col-main h2{font-size:34px;margin:52px 0 18px;padding-bottom:12px;}
.chg-col-main h3{font-size:25px;margin:34px 0 14px;}
.chg-col-main h4{font-size:21px;margin:28px 0 12px;}
.chg-col-main p{font-size:20px;line-height:1.95;margin-bottom:22px;}
.chg-col-main li{font-size:20px;line-height:1.95;}

.chg .chg-col-main .lead-answer{font-size:21px;line-height:2;padding:24px 28px;}
.chg .chg-col-main .callout{font-size:19px;padding:22px 26px;}
.chg .chg-col-main .price-note,
.chg .chg-col-main .note-small{font-size:15px;}
.chg .chg-col-main .fig{padding:22px 22px 18px;}
.chg .chg-col-main .fig figcaption{font-size:15.5px;margin-top:14px;}

/* ---- 表 ---- */
.chg .chg-col-main table.price th,
.chg .chg-col-main table.price td,
.chg .chg-col-main table.sol-table th,
.chg .chg-col-main table.sol-table td{font-size:17.5px;padding:18px 20px;}
.chg .chg-col-main table.price thead th,
.chg .chg-col-main table.sol-table thead th{font-size:16.5px;}
.chg .compare-table{font-size:17px;}
.chg .compare-table th{font-size:16px;padding:15px 16px;}
.chg .compare-table td{padding:15px 16px;font-size:17px;}

/* ---- 原因カード（数字も比率を保って拡大）---- */
.chg .cause-cards{gap:16px;margin:30px 0;}
.chg .cause-card{min-height:250px;padding:28px 30px 32px;}
.chg .cause-card h4{font-size:20px;margin:0 0 12px;}
.chg .cause-card p{font-size:17.5px;line-height:1.9;}
.chg .cause-card .num{font-size:250px;right:-10px;bottom:-40px;}

/* ---- STEP ---- */
.chg .chg-col-main .step{grid-template-columns:120px minmax(0,1fr);padding:20px 24px;}
.chg .chg-col-main .step-no{font-size:14px;}
.chg .chg-col-main .step-body h4{font-size:21px;margin:0 0 10px;}
.chg .chg-col-main .step-body p{font-size:18px;}
.chg .step-item h4{font-size:20px;}
.chg .step-item p{font-size:17.5px;}

/* ---- 支援事例 ---- */
.chg .case-card .tag,
.chg .case-card .case-tag{font-size:14.5px;padding:13px 24px;}
.chg .case-card h4{margin:22px 24px 12px;font-size:20px;}
.chg .case-card p{margin:0 24px 12px;font-size:17px;}
.chg .case-card p:last-of-type{margin-bottom:24px;}

/* ---- FAQ ---- */
.chg .faq-q{font-size:19.5px;padding:22px 60px 22px 26px;}
.chg .faq-q::after{right:26px;width:12px;height:12px;}
.chg .faq-a{font-size:18px;padding:22px 26px;}

/* ---- HERO（v0.98.2：本文と同じ1400px幅・文字も一段拡大）----
   既存のHEROルールは全て !important なので、こちらも !important で上書きする */
.pm-mock section.chg-hero{padding:52px 24px 44px !important;}
.pm-mock section.chg-hero .chg-hero__wrap{max-width:1400px !important;}
.pm-mock section.chg-hero .chg-hero__eyebrow{font-size:15px !important;letter-spacing:.14em !important;}
.pm-mock section.chg-hero .chg-hero__crumbs,
.pm-mock section.chg-hero .chg-hero__crumbs a,
.pm-mock section.chg-hero .chg-hero__crumbs span{font-size:15px !important;}
.pm-mock section.chg-hero h1.chg-hero__h1{font-size:64px !important;line-height:1.35 !important;margin:18px 0 22px !important;}
.pm-mock section.chg-hero h1.chg-hero__h1 .chg-hero__h1-sub{
  display:inline-block;font-size:.62em;font-weight:700;color:var(--chg-muted);line-height:1.5;margin-top:6px;}
.pm-mock section.chg-hero .chg-hero__lead{font-size:22px !important;line-height:1.95 !important;max-width:1000px !important;}

/* ---- CTA・関連 ---- */
.chg .cta-footer-banner h3{font-size:26px;}
.chg .cta-footer-banner p{font-size:17px;}
.chg .cta-footer-banner .btn-w{font-size:17px;padding:15px 34px;}

@media (max-width:1023px){
  .chg-page-wrap{max-width:100%;}
  .chg-col-main{font-size:18px;}
  .chg-col-main h2{font-size:27px;}
  .chg-col-main h3{font-size:21px;}
  .chg-col-main p,.chg-col-main li{font-size:18px;}
  .pm-mock section.chg-hero h1.chg-hero__h1{font-size:42px !important;}
  .pm-mock section.chg-hero .chg-hero__lead{font-size:19px !important;}
}
@media (max-width:760px){
  .chg-col-main{font-size:16.5px;}
  .chg-col-main h2{font-size:23px;}
  .chg-col-main h3{font-size:19px;}
  .chg-col-main p,.chg-col-main li{font-size:16.5px;}
  .chg .chg-col-main .lead-answer{font-size:17px;}
  .chg .cause-card{min-height:180px;}
  .chg .cause-card .num{font-size:170px;bottom:-28px;}
  .chg .faq-q{font-size:17px;padding:18px 48px 18px 20px;}
  .chg .faq-a{font-size:16px;}
  .pm-mock section.chg-hero h1.chg-hero__h1{font-size:28px !important;line-height:1.45 !important;}
  .pm-mock section.chg-hero .chg-hero__lead{font-size:16px !important;}
}

/* ==================================================================
 * FAQ の「Q」マーク（v1.19.2）
 * ------------------------------------------------------------------
 * 課題別ページは top-mock.css の .pm-mock .faq-q::before（"Q"）を
 * 受け取るが、テンプレート側でも本文の先頭に "Q. " を出していたため、
 * 「QQ.」と重なって潰れて見えていた。
 * テンプレートの "Q. " / "A. " を外し、マークだけを残す。
 * .chg .faq-q は display:block なので、マークを inline-block にして
 * 余白と縦位置を整える。
 * ================================================================== */
.chg .faq-q::before{
  display:inline-block;
  margin-right:10px;
  font-size:.86em;
  line-height:1;
  vertical-align:2px;
}

/* =============================================================
 * v1.88.0  文字サイズの統一（typography.css の8段階に寄せる）
 * -------------------------------------------------------------
 * 見出し 28 / 22・リード 21・本文 18・ボックス内 16・注記/タグ 14。
 * 0.5px 刻みと 14px 未満をなくすための上書き。自動で役割を判定して
 * 生成しているので、元の指定は書き換えていない。
 * 見た目がおかしい箇所は、このブロックの該当行を消せば元に戻る。
 * ヘッダー・ナビ・ボタン・数値の強調・ヒーローは対象外。
 * ============================================================= */

.chg-col-main{font-size:16px}
.chg-col-main h3{font-size:18px}
.chg-col-main h4{font-size:18px}
.chg-lead{font-size:18px}
.chg .cause-card h4{font-size:18px}
.chg .cause-card p{font-size:16px}
.chg-circles__title{font-size:18px}
.chg-circles__desc{font-size:18px}
.chg-feature-row__title{font-size:22px}
.chg-feature-row__desc{font-size:18px}
.chg-feature-row__desc ul li{font-size:18px}
.chg .compare-table{font-size:14px}
.chg .compare-table th{font-size:14px}
.chg .cta-block .headline{font-size:18px}
.chg .cta-block .sub{font-size:14px}
.chg .step-body strong{font-size:16px}
.chg .step-body p{font-size:16px}
.chg .step-body a{font-size:14px}
.chg .case-card .tag{font-size:14px}
.chg .case-card h4{font-size:18px}
.chg .case-card p{font-size:16px}
.chg .case-card a{font-size:14px}
.chg .faq-q{font-size:18px}
.chg .faq-a{font-size:18px}
.chg .cta-footer-banner h3{font-size:22px}
.chg .cta-footer-banner p{font-size:18px}
.chg-next h3{font-size:22px}
.chg-next__link .label{font-size:14px}
.chg-next__link .title{font-size:18px}
.pm-mock .chg-side__cta p{font-size:18px}
.chg-side__cta p{font-size:18px}
.chg-side__related h4{font-size:18px}
.chg-side__related a{font-size:14px}
.chg-related-services__link{font-size:14px}
.chg-archive-cat__desc{font-size:18px}
.chg-archive-card__title{font-size:18px}
.chg-archive-card__excerpt{font-size:16px}
.chg .chg-col-main .fig figcaption{font-size:14px}
.chg .chg-col-main .lead-answer{font-size:18px}
.chg .chg-col-main table.price td{font-size:16px}
.chg .chg-col-main table.sol-table td{font-size:16px}
.chg .chg-col-main table.price thead th{font-size:14px}
.chg .chg-col-main table.sol-table thead th{font-size:14px}
.chg .chg-col-main .price-note{font-size:14px}
.chg .chg-col-main .note-small{font-size:14px}
.chg .chg-col-main .callout{font-size:16px}
.chg .chg-col-main .step-no{font-size:14px}
.chg .chg-col-main .step-body h4{font-size:18px}
.chg .chg-col-main .step-body p{font-size:16px}
.chg .chg-col-main .case-tag{font-size:14px}
.chg-col-main p{font-size:16px}
.chg-col-main li{font-size:16px}
.chg .compare-table td{font-size:16px}
.chg .step-item h4{font-size:18px}
.chg .step-item p{font-size:16px}
.chg .case-card .case-tag{font-size:14px}

@media (max-width: 1023px){
  .chg-circles__title{font-size:18px}
  .chg-circles__desc{font-size:18px}
}

@media (max-width:1023px){
  .chg-col-main h2{font-size:28px}
  .chg-col-main h3{font-size:22px}
  .chg-col-main p{font-size:16px}
  .chg-col-main li{font-size:16px}
}

@media (max-width:900px){
  .chg-col-main{font-size:14.5px}
  .chg-col-main h3{font-size:16px}
  .chg-col-main h4{font-size:16px}
  .chg-lead{font-size:16px}
  .chg .cause-card h4{font-size:16px}
  .chg .cause-card p{font-size:14.5px}
  .chg-circles__title{font-size:16px}
  .chg-circles__desc{font-size:16px}
  .chg-feature-row__title{font-size:19px}
  .chg-feature-row__desc{font-size:16px}
  .chg-feature-row__desc ul li{font-size:16px}
  .chg .compare-table{font-size:13px}
  .chg .compare-table th{font-size:13px}
  .chg .cta-block .headline{font-size:16px}
  .chg .cta-block .sub{font-size:13px}
  .chg .step-body strong{font-size:14.5px}
  .chg .step-body p{font-size:14.5px}
  .chg .step-body a{font-size:13px}
  .chg .case-card .tag{font-size:13px}
  .chg .case-card h4{font-size:16px}
  .chg .case-card p{font-size:14.5px}
  .chg .case-card a{font-size:13px}
  .chg .faq-q{font-size:16px}
  .chg .faq-a{font-size:16px}
  .chg .cta-footer-banner h3{font-size:19px}
  .chg .cta-footer-banner p{font-size:16px}
  .chg-next h3{font-size:19px}
  .chg-next__link .label{font-size:13px}
  .chg-next__link .title{font-size:16px}
  .pm-mock .chg-side__cta p{font-size:16px}
  .chg-side__cta p{font-size:16px}
  .chg-side__related h4{font-size:16px}
  .chg-side__related a{font-size:13px}
  .chg-related-services__link{font-size:13px}
  .chg-archive-cat__desc{font-size:16px}
  .chg-archive-card__title{font-size:16px}
  .chg-archive-card__excerpt{font-size:14.5px}
  .chg .chg-col-main .fig figcaption{font-size:13px}
  .chg .chg-col-main .lead-answer{font-size:16px}
  .chg .chg-col-main table.price td{font-size:14.5px}
  .chg .chg-col-main table.sol-table td{font-size:14.5px}
  .chg .chg-col-main table.price thead th{font-size:13px}
  .chg .chg-col-main table.sol-table thead th{font-size:13px}
  .chg .chg-col-main .price-note{font-size:13px}
  .chg .chg-col-main .note-small{font-size:13px}
  .chg .chg-col-main .callout{font-size:14.5px}
  .chg .chg-col-main .step-no{font-size:13px}
  .chg .chg-col-main .step-body h4{font-size:16px}
  .chg .chg-col-main .step-body p{font-size:14.5px}
  .chg .chg-col-main .case-tag{font-size:13px}
  .chg-col-main p{font-size:14.5px}
  .chg-col-main li{font-size:14.5px}
  .chg .compare-table td{font-size:14.5px}
  .chg .step-item h4{font-size:16px}
  .chg .step-item p{font-size:14.5px}
  .chg .case-card .case-tag{font-size:13px}
}

@media (max-width: 800px){
  .chg-feature-row__title{font-size:16px}
  .chg-feature-row__desc{font-size:16px}
}

@media (max-width: 767px){
  .chg-circles__desc{font-size:16px}
}

@media (max-width:760px){
  .chg-col-main{font-size:16px}
  .chg-col-main h2{font-size:16px}
  .chg-col-main h3{font-size:16px}
  .chg-col-main p{font-size:14.5px}
  .chg-col-main li{font-size:14.5px}
  .chg .faq-q{font-size:16px}
}

@media (max-width: 640px){
  .chg-col-main h2{font-size:16px}
  .chg-col-main h3{font-size:16px}
}
