/* データのグラフ（scripts/insights.mjs）のまとまり。部品の見た目は charts.css。しゃぼん玉の台紙（bubble.css）の上に載せる */
.ins { margin: 26px 0 10px; }
.ins .ins-h { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin: 0 0 4px; }
.ins .ins-h::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px; background:
  linear-gradient(to top, var(--c-seq) 0 100%) 2px 100% / 3px 45% no-repeat,
  linear-gradient(to top, var(--c-seq) 0 100%) 7.5px 100% / 3px 80% no-repeat,
  linear-gradient(to top, var(--c-seq) 0 100%) 13px 100% / 3px 60% no-repeat; opacity: .9; }
.ins.ins-home > .sh2 { margin-bottom: 4px; }
.ins-lead { margin: 0 0 12px; font-size: .86rem; color: var(--muted); line-height: 1.6; }

/* 大きな数字：スマホは2つずつ、広い画面は横に並べる */
.ins .fstats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0 0 12px; }
.ins .fstat { padding: 12px 10px 10px; background: var(--surface); box-shadow: var(--sheet-sh); }
.ins .fstat b { font-variant-numeric: normal; color: var(--primary-ink, var(--ink)); }
.ins .fstat span { line-height: 1.4; }
.ins .fstat small { line-height: 1.4; margin-top: 3px; }
.fstat span, .fstat small { text-wrap: balance; }
/* 3つのときは、スマホでも横に3つ */
.ins .fstats:has(> .fstat:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 図の並び（広い画面は2列。数が奇数なら最後は横いっぱい） */
.ins .figs, .ins-g .figs { gap: 12px; }
.ins .figs .fig, .ins-g .figs .fig { margin: 0; min-width: 0; }
@media (min-width: 720px) { .ins .figs.two > .fig:last-child:nth-child(odd), .ins-g .figs.two > .fig:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.ins .fig, .ins-g .fig { line-height: 1.5; overflow-wrap: anywhere; }
.ins-g .fig .fstats { margin: 0 0 10px; }

/* 分布の下の文（まん中と、図の外の数） */
.ins-sum { margin: 8px 0 0; font-size: .78rem; line-height: 1.55; }
.ins-sum b { font-variant-numeric: tabular-nums; }

/* 図の中の小見出し（2つ・3つを並べた内訳の帯や横棒） */
.ins-subh { margin: 12px 0 5px; font-size: .8rem; font-weight: 700; line-height: 1.45; }
.ins-duo > .ins-subh:first-child, .ins-sub > .ins-subh:first-child { margin-top: 0; }
.ins-duo .stk-l { margin-bottom: 2px; }
.ins-sub { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--c-grid); }

/* 読みものの中：本文の行間を引き継がない */
.article .ins-g { margin: 14px 0 18px; font-size: 1rem; letter-spacing: 0; }
.article .ins-g .fig { margin: 0; }
.article .ins-g p { margin: 0; }
.article .ins-g .ins-sum, .article .ins-g .fig-src { margin-top: 8px; }
.article .ins-g .ins-subh { margin: 12px 0 5px; }
.article .ins-g .ins-duo > .ins-subh:first-child, .article .ins-g .ins-sub > .ins-subh:first-child { margin-top: 0; }

/* 続きへのリンク・母数の一文 */
.ins-more { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: .88rem; font-weight: 700; }
.ins-foot { margin: 6px 0 0; font-size: .72rem; color: var(--muted); }

/* ブランドどうし：数字の並びは横いっぱい。広い画面では項目を2列に */
.ins-vs > .fig { margin: 0 0 12px; }
@media (min-width: 720px) {
  .ins-vs .pr2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .ins-vs .pr2-k { grid-column: 1 / -1; }
}
