/* ==========================================================
   IBJ会員データページ（/member-data/）専用
   enlabo-hp-v1 の member-data.astro / DonutChart / VBarChart から移植。
   LP共通の style.css と衝突しないよう、すべて .md 配下に限定する。
   ========================================================== */

.md {
  padding: 48px 0 24px;
}

.md-lead {
  margin: 0 0 8px;
  line-height: 1.9;
}

.md-lead-note {
  font-size: 13px;
  color: var(--color-text-sub);
  margin: 0 0 40px;
}

.md .block { margin-bottom: 48px; }

/* セクション見出し（薄い帯・中央寄せ） */
.md .sec-head {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 9px 16px;
  margin-bottom: 12px;
}
.md .sec-head h2 { font-size: 18px; margin: 0; }
.md .time { text-align: right; font-size: 12px; color: var(--color-text-mute); margin: 0 0 4px; }
.md .block-note { font-size: 14px; color: var(--color-text-sub); margin: 12px 0 0; }
.md .block-note.center { text-align: center; }
.md .block-note a { color: var(--color-accent-dark); text-decoration: underline; }
.md .src { font-size: 12px; color: var(--color-text-mute); margin: 10px 0 0; }

/* 2カラム（男女比/年齢、婚姻/学歴）。狭い画面では1カラム */
.md .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
@media (max-width: 720px) { .md .two-col { grid-template-columns: 1fr; } }

.md .donut-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.md .mt { margin-top: 16px; }

/* No.1 ボックス */
.md .hero-box {
  background: #eef6f0;
  border: 1px solid #d6e8dd;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.md .no1-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #3f8a5f;
  border: 2px solid #cfe3d6;
  border-radius: 50%;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}
.md .no1-top { font-size: 13px; font-weight: 700; }
.md .no1-main { font-size: 27px; font-weight: 800; line-height: 1; }
.md .hero-stats { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.md .hero-stat { display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; justify-content: center; }
.md .hero-stat .hs-label { font-size: 15px; font-weight: 700; width: 100%; text-align: center; }
.md .hero-stat .hs-num { font-size: 32px; font-weight: 800; color: #d6608a; font-variant-numeric: tabular-nums; }
.md .hero-stat .hs-unit { font-size: 15px; }
.md .hero-stat .hs-note { font-size: 12px; color: var(--color-text-mute); width: 100%; text-align: center; }
.md .no1-src { text-align: center; }

.md .stat-cards {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px;
}
.md .stat-cards li {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 18px 16px;
  text-align: center; display: flex; flex-direction: column; gap: 2px;
}
.md .stat-cards .num { font-size: 26px; font-weight: 700; color: var(--color-accent-dark); font-variant-numeric: tabular-nums; line-height: 1.2; }
.md .stat-cards .unit { font-size: 13px; color: var(--color-text-mute); }
.md .stat-cards .stat-label { font-size: 14px; margin-top: 5px; }
.md .stat-cards .stat-note { font-size: 12px; color: var(--color-text-mute); }

/* 職業の2カラムリスト */
.md .job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .md .job-cols { grid-template-columns: 1fr; } }
.md .job-head { font-size: 15px; color: #fff; text-align: center; padding: 8px; border-radius: var(--radius-sm); margin: 0 0 8px; }
.md .job-head.male { background: #4a7fc0; }
.md .job-head.female { background: #d98080; }

.md .dotlist { list-style: none; padding: 0; margin: 0; }
.md .dotlist li { display: flex; align-items: baseline; gap: 8px; padding: 7px 3px; border-bottom: 1px dotted var(--color-border); }
.md .dotlist li span { white-space: nowrap; }
.md .dotlist li b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }

.md .data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.md .data-table th, .md .data-table td { border-bottom: 1px solid var(--color-border); padding: 9px 8px; text-align: left; }
.md .data-table th { color: var(--color-text-mute); font-weight: 600; }
.md .data-table td:not(:first-child), .md .data-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

.md .notes ul { font-size: 13px; color: var(--color-text-sub); padding-left: 20px; list-style: disc; }
.md .notes li { margin-bottom: 4px; }

/* ドーナツグラフ */
.md .donut {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  margin-inline: auto;
  font-family: var(--font-sans);
}
.md .donut .center { font-size: 17px; font-weight: 700; fill: var(--color-text); }
.md .donut .seg {
  font-size: 9px;
  font-weight: 700;
  fill: #2a2a2a;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 2.4px;
}

/* 縦棒グラフ */
.md .vbar { width: 100%; height: auto; display: block; font-family: var(--font-sans); }
.md .vbar .axis { stroke: var(--color-border); stroke-width: 1.5; }
.md .vbar .val { font-size: 12px; fill: var(--color-text); font-variant-numeric: tabular-nums; }
.md .vbar .cat { font-size: 11px; fill: var(--color-text-mute); }
.md .vbar .unit { font-size: 11px; fill: var(--color-text-mute); }
.md .legend {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--color-text-sub);
}
.md .legend li { display: flex; align-items: center; gap: 6px; }
.md .swatch { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }

/* 末尾の相談導線 */
.md-cta { text-align: center; padding: 16px 0 64px; }
.md-cta-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
