---
// 見本の冊子（病院）：搬送ロボットを入れる前の判断材料を、仮の病院1つについて1冊にまとめた見本（2026-11-21）
// 病院は5つの現場の試算の「中規模病院」（mid・同じ階・試算の既定の条件）。数字と図面はすべて試算（public/sim/service-robot-sites.html）から読む。
// 3Dの1日の数（急に止まった・ひやりなど）は src/data/hospital_day.json（LOG534）から読む。試算とは図面と速さが少し違う版なので、そう注記する（エイイチ 2026-11-21 了承）。
// 入口は記事からだけ。トップ・ヘッダー・SNS からはつながない。印刷すると A4 の冊子になる。
// 本番の条件・例外のときの対応の値は Claude が置いた案。「案」と書いて載せる（エイイチ 2026-11-21 了承）。
// 見た目は見本の冊子（店）/sample-serving-robot-store とそろえる。
import Base from '../layouts/Base.astro';
import { SITE, AUTHOR } from '../lib/seo';
import { META, find, planSvg, DEF } from '../lib/hospitalSim';
import day from '../data/hospital_day.json';

const SC = 'mid';
const S = META.scales[SC];
const n = [0, 1, 2, 3].map((r) => find({ robots: r }));
const batch = find({ robots: 1, dispatch: 'batch' });
const speeds = [0.6, 0.9, 1.2].map((v) => ({ v, r: find({ robots: 1, speed: v }) }));
const elev = [0, 1, 2, 3].map((r) => find({ robots: r, floors: 'elev' }));
const items = Math.round(n[0].items); // 試算で1日に出た荷物の数（30回の平均）

const f1 = (x: number) => x.toFixed(1);
const pct = (x: number) => Math.round(x * 100);
const mins = (x: number) => Math.round(x);
const cut = mins(n[0].staff_tr_min) - mins(n[1].staff_tr_min);
const cutPct = Math.round((1 - n[1].staff_tr_min / n[0].staff_tr_min) * 100);
// 道を使う時間（試算の routes.windows は 7:30 からの分）
const hm = (m: number) => { const t = 450 + m; return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, '0')}`; };
const routeRows = ['r1', 'r2', 'r3'].map((r) => ({ name: S.routes[r], m: S.dist_m[r], when: META.routes[r].windows.map(([a, b]: number[]) => `${hm(a)}〜${hm(b)}`).join('・') }));
const dayN = Object.fromEntries(day.summary.map((s: any) => [s.label, s.value]));
const clip = day.clips.find((c: any) => c.id === 'p1141')!;

const title = '搬送ロボット 導入前の判断材料（見本）';
const description = `660床の病院（仮）の外来の階で、検体と薬剤を運ぶ搬送ロボットを何台入れると何が変わるかを試算でまとめた見本。1台で職員が搬送に使う時間は1日${mins(n[0].staff_tr_min)}分から${mins(n[1].staff_tr_min)}分に。ただし荷物が届くまでは延びる。本番の条件と例外のときの対応まで。`;
const CTA = '/message?topic=physical-ai';
const jsonLd = [{
  '@context': 'https://schema.org', '@type': 'Report', name: title, description, url: SITE + '/sample-hospital-robot',
  author: AUTHOR, inLanguage: 'ja', isBasedOn: SITE + '/sim/service-robot-sites.html',
}];
---
<Base title={`${title} | Pixels to Motors`} description={description} path="/sample-hospital-robot" jsonLd={jsonLd}>
  <div class="bk">
    <section class="fv sheet" aria-labelledby="fv-h">
      <div class="fv-in">
        <div class="fv-text">
          <p class="tag">見本 ・ 仮の病院で作った冊子です</p>
          <h1 id="fv-h">搬送ロボット<br>導入前の判断材料</h1>
          <p class="store">{S.label}（{S.beds}床）<span>外来の階 ・ 同じ階だけ ・ 7:30〜16:30</span></p>
          <div class="answer">
            <p class="a-h">この病院への答え</p>
            <p class="a-main">1台で、職員が搬送に使う時間は<span class="nw">1日<b>{mins(n[0].staff_tr_min)}</b><small>分</small> → <b>{mins(n[1].staff_tr_min)}</b><small>分</small>。</span></p>
            <p class="a-sub">ただし、荷物が届くまでは{f1(n[0].wait_mean)}分から{f1(n[1].wait_mean)}分に延びます。届く早さを今に近づけるなら2台です。</p>
          </div>
        </div>
        <figure class="plan hplan">
          <Fragment set:html={planSvg(SC)} />
          <figcaption>この病院の外来の階。黒い線が3つの道、黒い四角が荷物を積む台・受け取る台、灰色が職員だけの所。実在の病院ではなく、慈恵医大柏病院の形を参考に起こした仮の図面です</figcaption>
        </figure>
      </div>
    </section>

    <section class="sheet" id="cond" aria-labelledby="cond-h">
      <div class="wrap">
        <h2 id="cond-h">この病院の条件</h2>
        <table class="tbl routes">
          <thead><tr><th scope="col">道</th><th scope="col">片道</th><th scope="col">使う時間</th></tr></thead>
          <tbody>{routeRows.map((r) => <tr><td>{r.name}</td><td class="num"><b>{r.m}</b>m</td><td>{r.when}</td></tr>)}</tbody>
        </table>
        <dl class="cond c4">
          <div><dt>運ぶ物</dt><dd>検体と薬剤</dd></div>
          <div><dt>荷物（1日）</dt><dd>約 <b>{items}</b>件</dd></div>
          <div><dt>ロボットの速さ</dt><dd><b>{DEF.speed}</b>m/秒<br><span>仮置き</span></dd></div>
          <div><dt>途中で止まる割合</dt><dd><b>{pct(DEF.stop_rate)}</b>%<br><span>仮置き・半分は人が助けに行く</span></dd></div>
        </dl>
        <p class="note">出発地の職員は、運ぶ以外の仕事で6割の時間手がふさがっている前提です（仮置き）。数字は1日を30回回した平均です。</p>
      </div>
    </section>

    <section class="sheet band-tint" id="robots" aria-labelledby="robots-h">
      <div class="wrap">
        <div class="head">
          <h2 id="robots-h">1台で、職員の搬送の時間が{cutPct}%減る</h2>
          <p>荷物の量と道はそのまま、ロボットの台数だけを変えた結果です。</p>
        </div>
        <div class="cmp" role="table" aria-label="ロボットの台数ごとの結果">
          <div class="cmp-row cmp-h" role="row">
            <span role="columnheader"></span>
            {n.map((_, i) => <span role="columnheader" class={i === 1 ? 'pick' : undefined}>{i}<small>台</small></span>)}
          </div>
          <div class="cmp-row" role="row">
            <span role="rowheader">職員が搬送に使った時間<br><small class="rh">1日</small></span>
            {n.map((r, i) => <span role="cell" class={i === 1 ? 'pick' : undefined}><b>{mins(r.staff_tr_min)}</b><small>分</small></span>)}
          </div>
          <div class="cmp-row" role="row">
            <span role="rowheader">荷物が出てから<br>届くまで</span>
            {n.map((r, i) => <span role="cell" class={i === 1 ? 'pick' : undefined}><b>{f1(r.wait_mean)}</b><small>分</small></span>)}
          </div>
          <div class="cmp-row" role="row">
            <span role="rowheader">15分を超えて<br>届いた荷物</span>
            {n.map((r, i) => <span role="cell" class={i === 1 ? 'pick' : undefined}><b>{pct(r.late_share)}</b><small>%</small></span>)}
          </div>
          <div class="cmp-row" role="row">
            <span role="rowheader">ロボットが<br>人を呼んだ回数</span>
            {n.map((r, i) => <span role="cell" class={i === 1 ? 'pick' : undefined}>{i === 0 ? '―' : <><b>{f1(r.calls)}</b><small>回</small></>}</span>)}
          </div>
        </div>
        <div class="reads">
          <p><b>減る{cut}分は、病院の発表の幅に入ります。</b>慈恵医大柏病院は、搬送ロボットで1日66〜172分減ったと発表しています（答え合わせに使い、試算の入力には使っていません）。</p>
          <p><b>1台だと、届くまでが延びます。</b>ロボットが戻るまで次の荷物が待つためです。2台にすると{f1(n[2].wait_mean)}分に戻り、3台目からはほとんど変わりません。</p>
        </div>
      </div>
    </section>

    <section class="sheet" id="dispatch" aria-labelledby="dis-h">
      <div class="wrap">
        <div class="head">
          <h2 id="dis-h">この病院は「すぐ出す」</h2>
          <p>1台のとき、荷物が出たらすぐ出発するか、3件たまるか最初の荷物が10分待つまでまとめるか。</p>
        </div>
        <div class="busy">
          <div class="b-col on">
            <p class="b-k">すぐ出す</p>
            <p class="b-n">{f1(n[1].wait_mean)}<small>分</small></p>
            <p class="b-v">15分を超えた荷物 {pct(n[1].late_share)}%</p>
          </div>
          <span class="b-vs">と</span>
          <div class="b-col">
            <p class="b-k">まとめて出す</p>
            <p class="b-n">{f1(batch.wait_mean)}<small>分</small></p>
            <p class="b-v">15分を超えた荷物 {pct(batch.late_share)}%</p>
          </div>
        </div>
        <p class="note">まとめると職員の時間は1日{mins(n[1].staff_tr_min)}分 → {mins(batch.staff_tr_min)}分と少し減りますが、荷物の{pct(batch.late_share)}%が15分を超えます。15分は目安として置いた線で、病院の基準ではありません。</p>
      </div>
    </section>

    <section class="sheet band-tint" id="speed" aria-labelledby="sp-h">
      <div class="wrap">
        <div class="head">
          <h2 id="sp-h">速さと、廊下で起きること</h2>
          <p>速くすれば早く届きます。病院が知りたいのは、そのとき廊下で何がどれくらい起きるかです。</p>
        </div>
        <div class="sp3">
          {speeds.map((s) => <div class="sp"><p class="b-k">{s.v}<small>m/秒</small></p><p class="c-n">{f1(s.r.wait_mean)}<small>分</small></p><p>15分を超えた荷物 {pct(s.r.late_share)}%</p></div>)}
        </div>
        <div class="next">
          <img src={clip.poster} alt="3Dの病院の曲がり角で、搬送ロボットがスタッフと患者に出会う場面" width="1280" height="720">
          <div>
            <h3>3Dで1日回すと（0.6m/秒・1台）</h3>
            <dl class="cnt">
              <div><dt>急に止まった</dt><dd><b>{dayN['急に止まった']}</b>回</dd></div>
              <div><dt>ひやり</dt><dd><b>{dayN['ひやり（走っている間）']}</b>回</dd></div>
              <div><dt>立ち往生</dt><dd><b>{dayN['立ち往生']}</b>回</dd></div>
            </dl>
            <p>画像は11:41、曲がり角で急に止まった・人がよけさせられた・ひやりが3秒の間に重なった場面です。速さを上げたときの回数は、同じ3Dで数えます（この見本は0.6m/秒だけ）。</p>
            <p class="cap">3Dは同じく慈恵医大柏病院の形を参考にした外来の階ですが、試算とは図面と便の数え方が少し違います（3Dは1日{dayN['便']}便）。<a href={day.log.href}>3Dの1日の記録</a></p>
          </div>
        </div>
      </div>
    </section>

    <section class="sheet" id="elev" aria-labelledby="el-h">
      <div class="wrap">
        <div class="head">
          <h2 id="el-h">階をまたぐなら、まず同じ階から</h2>
          <p>同じ道でエレベーターを使うと、人もロボットも待ちます。ロボットは人と一緒に乗れないので待ちが長めです。</p>
        </div>
        <table class="tbl">
          <thead><tr><th scope="col"></th>{elev.map((_, i) => <th scope="col" class="num">{i}台</th>)}</tr></thead>
          <tbody>
            <tr><th scope="row">職員が搬送に使った時間（1日）</th>{elev.map((r) => <td class="num"><b>{mins(r.staff_tr_min)}</b>分</td>)}</tr>
            <tr><th scope="row">届くまで</th>{elev.map((r) => <td class="num"><b>{f1(r.wait_mean)}</b>分</td>)}</tr>
            <tr><th scope="row">15分を超えた荷物</th>{elev.map((r) => <td class="num"><b>{pct(r.late_share)}</b>%</td>)}</tr>
          </tbody>
        </table>
        <p class="note">職員の時間は大きく減りますが、3台にしても荷物の{pct(elev[3].late_share)}%が15分を超えます。同じ階で回し方を固めてから広げます。</p>
      </div>
    </section>

    <section class="sheet band-tint" id="cost" aria-labelledby="cost-h">
      <div class="wrap">
        <h2 id="cost-h">費用</h2>
        <p>この試算では費用を出していません。機種と契約で大きく変わるため、見積もりの段階で入れます。補助金は病院の種別で使えるものが違うので、候補を調べて挙げます（申請書の作成は行政書士に頼みます）。</p>
      </div>
    </section>

    <section class="sheet" id="rules" aria-labelledby="rules-h">
      <div class="wrap">
        <div class="head">
          <h2 id="rules-h">入れる前に決めておくこと<span class="draft">案</span></h2>
          <p>試算の数字だけでは回りません。本番で何を任せ、どこで止めるかを先に決めます。</p>
        </div>
        <table class="tbl">
          <tbody>
            <tr><th scope="row">任せる仕事</th><td>同じ階の3つの道で、検体と薬剤を運ぶ</td></tr>
            <tr><th scope="row">至急</th><td>空いているロボットがいなければ、看護補助者が歩いて運ぶ</td></tr>
            <tr><th scope="row">出し方</th><td>すぐ出す</td></tr>
            <tr><th scope="row">受け取り</th><td>カードの認証で引き出しを開ける。受け取ったら自動で閉まる</td></tr>
            <tr><th scope="row">現場の担当</th><td>出発地ごとに1人、止まったときに助けに行く人を決める</td></tr>
            <tr><th scope="row">うまくいっている線</th><td>届くまで平均10分以内・15分を超えた荷物5%以下・人を呼ぶ回数1日3回以下</td></tr>
            <tr><th scope="row">止める条件</th><td>人に当たった／検体・薬剤の渡し間違い／ひやりが1日20回を超える日が続く</td></tr>
          </tbody>
        </table>
      </div>
    </section>

    <section class="sheet band-tint" id="exceptions" aria-labelledby="ex-h">
      <div class="wrap">
        <div class="head">
          <h2 id="ex-h">止まったとき、誰が何をするか<span class="draft">案</span></h2>
          <p>どれも3Dで場面を作って確かめています。<a href="/series8#scenes">3Dの場面を見る</a></p>
        </div>
        <table class="tbl ex">
          <thead><tr><th scope="col">起きること</th><th scope="col">誰が</th><th scope="col">どうする</th></tr></thead>
          <tbody>
            <tr><td>届け先で受け取る人が来ない</td><td>ロボット・届け先の職員</td><td>呼び直す。来なければ出発地へ知らせる</td></tr>
            <tr><td>認証に失敗した</td><td>受け取る職員</td><td>カードをかざし直す。開かなければ番号を入れる</td></tr>
            <tr><td>患者に話しかけられた</td><td>ロボット</td><td>画面と声で答え、止まりすぎずに進む</td></tr>
            <tr><td>車いす・ストレッチャーと廊下で出会った</td><td>ロボット</td><td>端に寄って止まり、先に通す</td></tr>
            <tr><td>途中で止まった</td><td>出発地の担当</td><td>助けに行く（試算では止まったうち半分）</td></tr>
          </tbody>
        </table>
      </div>
    </section>

    <section class="sheet" id="limits" aria-labelledby="lim-h">
      <div class="wrap">
        <h2 id="lim-h">この試算で言えないこと</h2>
        <ul class="lim">
          <li>検査部の処理の山・至急の割り込み・夜間の搬送・病棟の物品の補充は、まだ入れていません。</li>
          <li>職員の忙しさ・止まる割合・速さなどは仮置きです。現場で測ると、その病院の数字に置き換えられます。</li>
          <li>図面は仮の病院です。実在の病院ではありません。</li>
        </ul>
        <p class="src">数字の出どころ：<a href="/sim/service-robot-sites.html#hospital">5つの現場の試算（病院）</a>・<a href={day.log.href}>3Dの病院の1日（LOG534）</a></p>
      </div>
    </section>

    <section class="sheet band-ink" id="next" aria-labelledby="next-h">
      <div class="wrap next-in">
        <div>
          <h2 id="next-h">この冊子を、あなたの病院で</h2>
          <p>図面と、運ぶ物・道・時間帯を送ってください。現場を見て時間を測り、この形でお返しします。</p>
        </div>
        <div><a class="btn cta" href={CTA} data-ev="見本の冊子（病院）：自分の病院で作ってもらう">自分の病院で作ってもらう<i class="ms" aria-hidden="true">arrow_forward</i></a></div>
      </div>
    </section>
  </div>
</Base>

<style>
  /* 見本の冊子（店）と同じ値。差し色の橙は CTA だけ。選んだ台数（1台）は列ごと黒く塗る */
  .bk {
    --paper: #f4f5f7; --sheet: #fff; --ink: #121418; --muted: #5c616b; --rule: #e2e4e9; --tint: #e9ebef;
    --gut: max(16px, env(safe-area-inset-left, 0px));
    background: var(--sheet); color: var(--ink); font-family: "Inter", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
    font-size: 16px; line-height: 1.8; letter-spacing: .02em; -webkit-font-smoothing: antialiased;
  }
  .bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
  .bk h1, .bk h2, .bk h3 { margin: 0; letter-spacing: 0; text-wrap: balance; }
  .bk p { margin: 0; }
  .bk section { padding-block: 72px; }
  .bk .wrap { max-width: calc(1000px + 2 * var(--gut)); margin: 0 auto; padding-inline: var(--gut); display: grid; gap: 32px; }
  .bk h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3; font-weight: 700; }
  .head { display: grid; gap: 10px; }
  .head p { color: var(--muted); }
  .note { font-size: .85rem; color: var(--muted); }
  .band-tint { background: var(--tint); }
  .band-ink { background: var(--ink); color: #e8eaf0; }
  .band-ink h2 { color: #fff; }
  .draft { display: inline-block; margin-left: 12px; padding: 0 8px; font-size: .9rem; font-weight: 700; vertical-align: middle; border: 1.5px solid currentColor; border-radius: 4px; line-height: 1.6; }

  /* 最初の画面 */
  .fv { padding-block: 56px 64px; background: var(--paper); }
  .fv-in { max-width: calc(1000px + 2 * var(--gut)); margin: 0 auto; padding-inline: var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
  .fv-text { display: grid; gap: 20px; }
  .tag { font-size: .85rem; font-weight: 700; color: var(--muted); }
  .fv h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.2; font-weight: 700; }
  .store { font-weight: 700; display: grid; }
  .store span { font-weight: 400; font-size: .9rem; color: var(--muted); }
  .answer { background: var(--ink); color: #fff; border-radius: 4px; padding: 22px 24px; display: grid; gap: 8px; }
  .a-h { font-size: .8rem; font-weight: 700; color: #b9bec8; }
  .a-main { font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
  .a-main b { font-family: "Inter", sans-serif; font-size: 2.4rem; line-height: 1; margin: 0 2px; }
  .a-main small { font-size: .5em; }
  .nw { white-space: nowrap; }
  .a-sub { font-size: .92rem; color: #dfe2e8; }
  .plan { margin: 0; display: grid; gap: 8px; }
  .plan img { width: 100%; height: auto; background: #fff; border-radius: 4px; display: block; }
  .plan figcaption { font-size: .8rem; color: var(--muted); }

  /* 条件 */
  .cond { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
  .cond > div { padding: 16px 16px 0 0; }
  .cond > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
  .cond dt { font-size: .8rem; color: var(--muted); }
  .cond dd { margin: 4px 0 0; line-height: 1.6; }
  .cond b, .cmp b, .b-n, .c-n { font-family: "Inter", sans-serif; font-weight: 700; }
  .cond b { font-size: 1.5rem; }
  .cond dd span { font-size: .8rem; color: var(--muted); }

  /* 台数ごと */
  .cmp { display: grid; background: var(--sheet); border-radius: 4px; overflow: hidden; }
  .cmp-row { display: grid; grid-template-columns: minmax(10rem, 1.4fr) repeat(4, minmax(0, 1fr)); }
  .cmp-row + .cmp-row { border-top: 1px solid var(--rule); }
  .cmp-row > span { padding: 14px 16px; text-align: right; }
  .cmp-row > span:first-child { text-align: left; font-size: .9rem; line-height: 1.5; }
  .cmp-row .rh { color: var(--muted); }
  .cmp-h > span { font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.3rem; }
  .cmp b { font-size: 1.5rem; }
  .cmp small { font-size: .75rem; margin-left: 2px; }
  .cmp .pick { background: var(--ink); color: #fff; }
  .cmp .bad b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
  .reads { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .reads b { display: block; margin-bottom: 4px; }

  /* 混む日 */
  .busy { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: 760px; }
  .b-col { border: 2px solid var(--ink); border-radius: 4px; padding: 22px 24px; display: grid; gap: 4px; }
  .b-col.on { background: var(--ink); color: #fff; }
  .b-k { font-size: .9rem; font-weight: 700; }
  .b-n { font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.05; }
  .b-n small { font-size: .4em; margin-left: 4px; }
  .b-v { font-weight: 700; }
  .b-ar { font-size: 32px; }
  .next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; margin-top: 8px; }
  .next img { width: 100%; height: auto; border-radius: 4px; display: block; }
  .next > div { display: grid; gap: 10px; }
  .next h3 { font-size: 1.3rem; }
  .cap { font-size: .78rem; color: var(--muted); }

  /* 費用 */
  .costs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .c-card { background: var(--sheet); border-radius: 4px; padding: 24px; display: grid; gap: 10px; align-content: start; }
  .c-k { font-weight: 700; }
  .c-n { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; }
  .c-n small { font-size: .42em; margin-left: 4px; }
  .c-n small.pre { margin: 0 4px 0 0; }
  .c-card p:last-child { font-size: .92rem; color: #2a2d33; }

  /* 表 */
  .tbl { width: 100%; border-collapse: collapse; background: var(--sheet); border-top: 2px solid var(--ink); }
  .tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: .95rem; line-height: 1.7; }
  .tbl tbody th { width: 11rem; font-weight: 700; }
  .tbl thead th { font-size: .8rem; color: var(--muted); font-weight: 700; }
  .tbl.ex td:first-child { font-weight: 700; width: 17rem; }
  .tbl.ex td:nth-child(2) { width: 10rem; }
  .band-tint .tbl { border-radius: 0; }

  /* 言えないこと */
  .lim { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
  .src { font-size: .85rem; color: var(--muted); }
  .src a { color: var(--ink); }

  /* 次に */
  .next-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .next-in > div:first-child { display: grid; gap: 12px; max-width: 36rem; }
  .btn { border-radius: 4px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 12px 20px; font-size: .95rem; }
  .btn.cta { background: #f2600c; border: 1.5px solid #f2600c; color: #fff; transition: background .15s, border-color .15s, color .15s, transform .2s; }
  .btn.cta:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-1px); }
  .btn .ms { font-size: 18px; }
  @media (prefers-reduced-motion: reduce) { .btn.cta:hover { transform: none; } }

  @media (max-width: 760px) {
    .bk section { padding-block: 52px; }
    .fv-in, .reads, .costs, .next, .next-in { grid-template-columns: 1fr; }
    .cond { grid-template-columns: 1fr 1fr; }
    .cond > div, .cond > div + div { padding: 14px 0 0; border-left: 0; }
    .cmp-row { grid-template-columns: 7.5rem repeat(4, minmax(0, 1fr)); }
    .cmp-row > span { padding: 12px 8px; }
    .cmp-row > span:first-child { font-size: .8rem; }
    .cmp b { font-size: 1.05rem; }
    .cmp-row { grid-template-columns: 6.2rem repeat(4, minmax(0, 1fr)); }
    .cmp-row > span { padding: 12px 4px; white-space: nowrap; }
    .cmp-row > span:first-child { white-space: normal; padding-left: 10px; font-size: .74rem; }
    .cmp-row > span:first-child br { display: none; }
    .cmp small { font-size: .62rem; margin-left: 1px; }
    .cmp-row > span:last-child { padding-right: 8px; }
    .busy { grid-template-columns: 1fr; }
    .b-ar { transform: rotate(90deg); justify-self: center; }
    .tbl.ex thead { display: none; }
    .tbl.ex tr { display: grid; padding: 10px 0; border-bottom: 1px solid var(--rule); }
    .tbl.ex td { border: 0; padding: 2px 16px; width: auto !important; }
    .tbl tbody th { width: 7rem; }
  }


  /* 病院だけの部品 */
  .hplan :global(svg) { width: 100%; height: auto; background: #fff; border-radius: 4px; display: block; padding: 8px; }
  .c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tbl .num { text-align: right; white-space: nowrap; }
  .tbl .num b { font-family: "Inter", sans-serif; font-size: 1.15rem; }
  .routes td:first-child { font-weight: 700; }
  .b-vs { font-weight: 700; color: var(--muted); }
  .sp3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
  .sp { background: var(--sheet); border-radius: 4px; padding: 18px 20px; display: grid; gap: 6px; }
  .sp .b-k small { font-size: .75em; margin-left: 2px; }
  .sp p:last-child { font-size: .88rem; color: var(--muted); }
  .cnt { margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 28px; }
  .cnt dt { font-size: .8rem; color: var(--muted); }
  .cnt dd { margin: 0; }
  .cnt b { font-family: "Inter", sans-serif; font-size: 2rem; line-height: 1.1; }
  .bk .head a, .cap a { color: var(--ink); }
  @media (max-width: 760px) {
    .c4 { grid-template-columns: 1fr 1fr; }
    .sp3 { grid-template-columns: 1fr; }
    .b-vs { justify-self: center; }
    #elev .tbl th, #elev .tbl td { padding: 10px 6px; font-size: .8rem; }
  }

  /* 印刷（A4 の冊子）。サイトの枠とハコブくんは出さない */
  @page { size: A4; margin: 14mm 14mm 16mm; }
  @media print {
    :global(.site-header), :global(body > footer), :global(footer.site-footer), :global(.hk-wrap), :global([class*="hk-"]) { display: none !important; }
    :global(html), :global(body) { background: #fff !important; }
    .bk { font-size: 10.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .bk section { padding-block: 0 0; margin-bottom: 9mm; break-inside: avoid; }
    .bk .wrap, .fv-in { padding-inline: 0; gap: 14px; }
    .fv { padding-block: 0; background: #fff; break-after: page; }
    .fv-in { grid-template-columns: 1fr; gap: 24px; }
    .fv h1 { font-size: 26pt; }
    .band-tint { background: #fff; }
    .band-tint .cmp, .c-card, .sp { border: 1px solid var(--rule); }
    #speed { break-before: page; }
    #exceptions { break-before: page; }
    .bk h2 { font-size: 16pt; }
    .band-ink { background: #fff; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 6mm; }
    .band-ink h2 { color: var(--ink); }
    .next-in { grid-template-columns: 1fr; }
    .btn.cta::after { content: " pixelstomotors.com/message"; font-weight: 400; }
    .btn .ms { display: none; }
  }
</style>
