/* 研究支援実績ページの図解（インラインSVG）。styles.css の後に読み込む */

/* 詳細ページの図解 */
.case-figure { margin: 0 0 40px; padding: 28px 28px 18px; background: white; border: 1px solid #c6dce5; border-radius: 6px; box-shadow: 0 16px 48px #0e22370a; }
.case-section:not(.is-tinted) .case-figure { margin: 40px 0 0; background: #fbfdfe; }
.fig-scroll { overflow-x: auto; }
.case-figure svg { display: block; width: 100%; height: auto; }
.case-figure figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #dce5e9; font-size: 13px; color: #486176; line-height: 1.8; }
.case-figure figcaption b { font: 500 11px/1.8 var(--label-font); color: var(--brand-deep); letter-spacing: .1em; }

/* 一覧カードのサムネイル図 */
.case-thumb { margin: -32px -32px 24px; padding: 18px 24px; background: linear-gradient(120deg, #e8f2f5, #f5f9fa); border-bottom: 1px solid #d3e0e6; border-radius: 4px 4px 0 0; }
.case-thumb svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }

/* 一覧ページのヒーロー図 */
.hero-figure { margin: 0; padding: 24px; background: #ffffffd0; border: 1px solid #c6dce5; border-radius: 6px; box-shadow: 0 16px 48px #0e22370a; }
.hero-figure svg { display: block; width: 100%; height: auto; }

/* SVG内の部品 */
.case-figure text, .case-thumb text, .hero-figure text { font-family: var(--base-font); }
.f-panel { fill: #f2f7f9; stroke: #d3e3ea; }
.f-box { fill: white; stroke: #c6dce5; stroke-width: 1.5; }
.f-core { fill: #e3f3f8; stroke: var(--brand); stroke-width: 2; }
.f-hot { fill: #fff3e6; stroke: var(--accent); stroke-width: 2; }
.f-navy { fill: #0e2237; }
.f-brand { fill: var(--brand); }
.f-soft { fill: #bfe2ec; }
.f-pale { fill: #e3eff3; }
.f-accent { fill: var(--accent); }
.f-accent-soft { fill: #ffd9b0; }
.f-line { fill: none; stroke: #9dbfcc; stroke-width: 1.5; }
.f-flow { fill: none; stroke: var(--brand); stroke-width: 2; }
.f-flow-hot { fill: none; stroke: var(--accent); stroke-width: 2; }
.f-dash { stroke-dasharray: 5 5; }
.f-axis { fill: none; stroke: #8aa5b4; stroke-width: 1.2; }
.f-plot { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.f-plot-hot { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.f-plot-mute { fill: none; stroke: #b4c9d3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-check { fill: none; stroke: white; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.f-t { font-size: 15px; font-weight: 700; fill: #0e2237; }
.f-s { font-size: 12px; fill: #577087; }
.f-l { font: 500 11px var(--label-font); letter-spacing: .1em; fill: var(--brand-deep); }
.f-m { font: 500 12px var(--label-font); fill: #0e2237; }
.f-w { fill: white; }
.f-o { fill: #c25f00; }
.f-c { text-anchor: middle; }
.f-r { text-anchor: end; }

@media (max-width: 600px) {
  .case-figure { padding: 18px 16px 14px; }
  .fig-scroll { padding-bottom: 6px; }
  .fig-scroll svg { min-width: 680px; }
  .case-thumb { margin: -24px -24px 20px; padding: 14px 16px; }
  .hero-figure { padding: 16px; }
}
