/* 製造業のページ (2026-11-19 Shusuke「全部同じフォーマットで面白くない。工場なら工場のイラスト」)。
   構成: 工場の絵のヒーロー → ある工場の1日 (時系列＋人物) → 生産の進み具合の板 → 原価の内訳 → Q&A。色は site.css の :root だけ */

/* ---------- ヒーローの絵 ---------- */
.mf-hero-art { position: relative; padding: 0 0 40px; }
.mf-hero-frame { background: #fff; border-radius: 28px; padding: 18px 18px 6px; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.mf-hero-frame .illust { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--sky); }
.mf-hero-call { position: absolute; left: -22px; bottom: 6px; display: flex; gap: 12px; align-items: center; background: var(--yellow); color: var(--navy); border-radius: 18px; padding: 12px 16px 12px 12px; box-shadow: 0 14px 30px rgba(0,0,0,.25); max-width: 300px; }
.mf-hero-call p { margin: 0; color: var(--navy); }
.mf-hero-call small { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.4; }
.mf-hero-call b { display: block; font: 900 15px/1.45 var(--font-display); }
.mf-ring { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--yellow); animation: mf-ring 2.4s ease-in-out infinite; }
.mf-ring svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes mf-ring { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-14deg); } 74% { transform: rotate(12deg); } 82% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .mf-ring { animation: none; } }
.mf-hero-who { position: absolute; right: -6px; bottom: 0; width: 104px; background: #fff; border-radius: 50%; padding: 8px 8px 0; box-shadow: 0 14px 30px rgba(0,0,0,.25); overflow: hidden; aspect-ratio: 1; }
.mf-hero-who .person { width: 100%; height: auto; display: block; }

/* ---------- ある工場の1日 ---------- */
.mf-day-sec { padding-top: 90px; }
.mf-day { list-style: none; margin: 50px auto 0; padding: 0; max-width: 900px; position: relative; display: grid; gap: 22px; }
.mf-day::before { content: ""; position: absolute; left: 148px; top: 30px; bottom: 30px; width: 3px; background: var(--sky-2); border-radius: 2px; }
.mf-ev { position: relative; display: grid; grid-template-columns: 82px 132px 1fr; gap: 0 4px; align-items: start; }
.mf-ev time { text-align: right; padding: 26px 14px 0 0; font: 800 22px/1 var(--font-latin); color: var(--brand); }
.mf-ava { position: relative; z-index: 1; justify-self: center; width: 96px; height: 96px; border-radius: 50%; background: #fff; border: 4px solid var(--sky-2); overflow: hidden; padding: 8px 6px 0; }
.mf-ev.hot .mf-ava { border-color: #f0d2bd; }
.mf-ava .person { width: 100%; height: auto; display: block; }
.mf-ev-body { background: var(--paper); border-radius: 22px; padding: 18px 22px 18px; box-shadow: 0 8px 24px rgba(20,40,80,.06); min-width: 0; }
.mf-ev-body small { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--steel); background: var(--sky); border-radius: 999px; padding: 1px 10px; }
.mf-ev.hot .mf-ev-body small { color: #b4561b; background: #fdf0e3; }
.mf-ev-body b { display: block; margin-top: 6px; font: 900 18px/1.5 var(--font-display); color: var(--ink); }
.mf-ev-body p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.mf-ev-body p.mf-say { position: relative; margin-top: 10px; background: var(--sky); color: var(--ink); font-weight: 700; border-radius: 14px; padding: 9px 14px; font-size: 14.5px; }
.mf-cause { margin: 40px auto 0; max-width: 820px; display: flex; gap: 16px; align-items: center; background: var(--paper); border: 2px solid var(--yellow); border-radius: 22px; padding: 20px 24px; }
.mf-cause p { font-size: 15px; color: var(--ink); line-height: 1.85; }
.mf-cause b { color: var(--brand); }

/* ---------- 生産の進み具合の板 ---------- */
.mf-board { margin-top: 50px; background: var(--sky); border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px var(--sky-2); }
.mf-board-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: var(--brand); color: #fff; }
.mf-board-bar span { display: flex; gap: 6px; }
.mf-board-bar span i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); }
.mf-board-bar b { font: 900 15px var(--font-display); }
.mf-board-bar small { margin-left: auto; font-size: 11.5px; color: #d9e8f6; }
.mf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 18px; position: relative; }
.mf-col { background: rgba(255,255,255,.55); border-radius: 18px; padding: 12px; display: grid; align-content: start; gap: 10px; position: relative; }
.mf-col:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 22px; border: 6px solid transparent; border-left: 8px solid var(--steel); }
.mf-col h4 { margin: 0 0 2px; display: flex; align-items: center; gap: 6px; font: 900 15px/1.3 var(--font-display); color: var(--brand); }
.mf-col h4 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mf-col h4 em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-soft); background: #fff; border-radius: 999px; padding: 1px 8px; }
.mf-job { position: relative; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 4px 12px rgba(20,40,80,.07); border-left: 5px solid var(--steel); }
.mf-job small { display: block; font: 700 11px var(--font-latin); color: var(--ink-soft); letter-spacing: .04em; }
.mf-job b { display: block; font: 900 15px/1.4 var(--font-display); color: var(--ink); }
.mf-job span { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.mf-job.hot { border-left-color: #b4561b; background: #fffaf6; box-shadow: 0 0 0 2px #f0d2bd, 0 8px 18px rgba(180,86,27,.15); }
.mf-job.hot span { color: #b4561b; font-weight: 700; }
.mf-hot { position: absolute; right: 8px; top: -9px; font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: #b4561b; border-radius: 999px; padding: 1px 9px; }
.mf-prog { display: block; margin-top: 8px; height: 6px; border-radius: 3px; background: var(--sky-2); overflow: hidden; }
.mf-prog i { display: block; height: 100%; border-radius: 3px; background: #1d7a52; }
.mf-job.hot .mf-prog i { background: #b4561b; }
.mf-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mf-points li { display: flex; gap: 14px; align-items: flex-start; }
.mf-points b { display: block; font: 900 16.5px/1.5 var(--font-display); color: var(--ink); }
.mf-points p { margin-top: 4px; font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* ---------- 原価の内訳 ---------- */
.mf-cost-grid { margin-top: 50px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.mf-cost { background: var(--paper); border-radius: 26px; padding: 26px 26px 22px; box-shadow: 0 10px 30px rgba(20,40,80,.06); }
.mf-cost-head { display: flex; align-items: baseline; gap: 10px; }
.mf-cost-head b { font: 900 17px var(--font-display); color: var(--brand); }
.mf-cost-head small { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); background: var(--sky); border-radius: 999px; padding: 1px 10px; }
.mf-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
.mf-legend li { display: flex; align-items: center; gap: 6px; }
.mf-legend i { width: 14px; height: 14px; border-radius: 4px; }
.mf-legend i.m, .mf-track i.m { background: var(--brand); }
.mf-legend i.t, .mf-track i.t { background: var(--steel); }
.mf-legend i.o, .mf-track i.o { background: #9fc0dc; }
.mf-legend i.p { width: 3px; height: 16px; border-radius: 0; background: var(--navy); }
.mf-crows { margin-top: 18px; display: grid; gap: 18px; }
.mf-crow { display: grid; grid-template-columns: 54px 1fr; gap: 4px 12px; align-items: center; }
.mf-crow b { font: 900 14px var(--font-display); color: var(--ink); }
.mf-crow em { grid-column: 2; font-style: normal; font-size: 12.5px; font-weight: 800; color: #1d7a52; }
.mf-crow.bad em { color: #b4561b; }
.mf-crow.mid em { color: var(--ink-soft); }
/* 売値の線は全行で同じ位置 (左から 80%) */
.mf-track { position: relative; display: flex; height: 30px; border-radius: 8px; background: repeating-linear-gradient(90deg, #f3f7fb 0 10px, #fff 10px 20px); }
.mf-track i { height: 100%; }
.mf-track i:first-child { border-radius: 8px 0 0 8px; }
.mf-track i:last-child { border-radius: 0 8px 8px 0; }
.mf-track::after { content: ""; position: absolute; left: 80%; top: -6px; bottom: -6px; width: 3px; background: var(--navy); border-radius: 2px; }
.mf-crow.bad .mf-track i.o { box-shadow: inset 0 0 0 2px #b4561b; }
.mf-crow.bad .mf-track { box-shadow: 0 0 0 2px #f0d2bd; }
.mf-cost-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }
.mf-cost-note b { color: #b4561b; }
.mf-cost-scene .scene { background: var(--paper); padding: 20px 18px 14px; }
.mf-cost-scene .scene .who { max-width: 280px; }
.mf-cost-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.mf-cost-steps li { background: var(--paper); border-radius: 14px; padding: 10px 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; word-break: normal; }
.mf-cost-steps b { color: var(--brand); }
.mf-cost-copy > p { margin-top: 16px; font-size: 15px; color: var(--ink); }
.mf-cost-copy > p b { color: var(--brand); }

/* ---------- Q&A ---------- */
.mf-qa { margin: 46px auto 0; max-width: 860px; display: grid; gap: 16px; }
.mf-qa-item { background: var(--sky); border-radius: 22px; padding: 20px 24px; }
.mf-q, .mf-a { display: flex; gap: 14px; align-items: flex-start; }
.mf-q span, .mf-a span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 800 16px/1 var(--font-latin); }
.mf-q span { background: var(--brand); color: #fff; }
.mf-a span { background: var(--yellow); color: var(--navy); }
.mf-q b { font: 900 17px/1.5 var(--font-display); color: var(--ink); padding-top: 4px; }
.mf-a { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }
.mf-a span { margin-top: 2px; }

@media (max-width: 900px) {
  .mf-hero-art { max-width: 460px; }
  .mf-cols { grid-template-columns: 1fr 1fr; }
  .mf-col:nth-child(2)::after { display: none; }
  .mf-points { grid-template-columns: 1fr; }
  .mf-cost-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mf-hero-call { left: -8px; max-width: 250px; }
  .mf-hero-call b { font-size: 14px; }
  .mf-hero-who { width: 84px; right: -4px; }
  .mf-day::before { left: 33px; top: 20px; }
  .mf-ev { grid-template-columns: 66px 1fr; gap: 8px 12px; }
  .mf-ev time { grid-column: 2; grid-row: 1; align-self: center; text-align: left; padding: 0; font-size: 20px; }
  .mf-ava { grid-column: 1; grid-row: 1; width: 66px; height: 66px; border-width: 3px; padding: 6px 4px 0; }
  .mf-ev-body { grid-column: 1 / -1; grid-row: 2; padding: 16px 18px; }
  .mf-ev-body b { font-size: 16.5px; }
  .mf-cause { flex-direction: column; align-items: flex-start; padding: 18px; }
  .mf-cols { padding: 12px; gap: 10px; }
  .mf-col { padding: 10px 8px; }
  .mf-col::after { display: none; }
  .mf-job { padding: 9px 9px; }
  .mf-job b { font-size: 14px; }
  .mf-board-bar small { margin-left: 0; width: 100%; }
  .mf-cost { padding: 20px 16px 18px; }
  .mf-crow { grid-template-columns: 46px 1fr; gap: 4px 8px; }
  .mf-qa-item { padding: 18px 16px; }
  .mf-q b { font-size: 16px; }
}
