---
// TOP の6番目「現場に入れる前に確かめる」（2026-12-01）。サービスロボット導入シミュレーションを1つの節にまとめた。
// 伝えることは1つ：アームで分かったことを、店や病院の大きさで入れる前に確かめている。
// 触れる1本（配膳ロボットの店を3Dで動かす）と、読む1本（ロボットが現場で止まる瞬間の図鑑）だけを置く（Neon との協議）。
// 前に TOP にあった、事故の責任のシミュレーション2つ・3Dで見る現場の場面・解説動画・導入前ガイドは、/series8・/adoption/serving・/robot-stops に残る。
import { media } from '../lib/media';
const CARDS = [
  { href: '/sim/serving-robot-3d', blank: true, img: '/site/sim/browser-test.webp', alt: '配膳ロボットのシミュレーションの画面。3Dの店の中をスタッフ・お客さん・ロボットが動く',
    tag: '触れる', h: '配膳ロボットの店を3Dで動かす', p: 'スタッフとロボットの台数、混み具合を選ぶと、ファミレスの1日がその場で回ります。', go: '開く ↗', ev: '配膳3D' },
  { href: '/robot-stops', img: media('/media/robot_stops_02_second_robot_v2.jpg'), alt: '店を真上から見たシミュレーションの画面。2台の配膳ロボットが一本道で向かい合って止まっている',
    tag: '読む', h: 'ロボットが現場で止まる瞬間の図鑑', p: '配膳・病院の搬送・ロボットアームが止まった12の場面と、入れる前に確かめること。', go: '読む', ev: '図鑑' },
];
---
<section class="sec" id="field" data-ev-area="TOP現場"><div class="panel">
  <h2 class="sec-h">現場に入れる前に確かめる | Before Deployment</h2>
  <div class="fd">
    <div class="fd-text">
      <p class="fd-lead">AI に覚えさせる手間は、<br class="br-pc">そのまま現場に入れる手間になる。</p>
      <p class="fd-body">だから、店や病院にロボットを入れる前に、その一日を3Dで回して、どこで止まり、何人で回るかを確かめています。</p>
      <a class="fd-btn" href="/series8" data-ev="TOP現場:導入シミュレーション">サービスロボット導入シミュレーションを見る<i class="ms" aria-hidden="true">arrow_forward</i></a>
    </div>
    <ul class="fd-cards">
      {CARDS.map((c) => (
        <li>
          <a class="fd-card" href={c.href} target={c.blank ? '_blank' : undefined} rel={c.blank ? 'noopener' : undefined} data-ev={`TOP現場:${c.ev}`}>
            <img src={c.img} alt={c.alt} loading="lazy" />
            <span class="fd-tag">{c.tag}</span>
            <span class="fd-h">{c.h}</span>
            <span class="fd-p">{c.p}</span>
            <span class="fd-go">{c.go}{!c.blank && <i class="ms" aria-hidden="true">arrow_forward</i>}</span>
          </a>
        </li>
      ))}
    </ul>
  </div>
</div></section>

<style>
  .fd { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 48px; align-items: center; }
  .fd-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
  .fd-lead { margin: 0; font: 700 24px/1.6 var(--sans); color: var(--ink, #242424); word-break: auto-phrase; text-wrap: pretty; }
  .fd-body { margin: 0; font: 400 15px/1.85 var(--sans); color: #333; text-wrap: pretty; }
  .fd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 8px; background: var(--ink, #242424); color: #fff; font: 600 15px/20px var(--sans); text-decoration: none; }
  .fd-btn:hover { opacity: .85; }
  .fd-btn .ms { font-size: 18px; }
  .fd-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .fd-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; box-sizing: border-box; background: #f7f7f7; border-radius: 8px; color: var(--ink, #242424); text-decoration: none; transition: background .2s; }
  .fd-card:hover { background: #ececec; }
  .fd-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
  .fd-tag { align-self: flex-start; padding: 1px 8px; border-radius: 4px; background: #e6e6e6; color: #333; font: 600 12px/20px var(--sans); }
  .fd-h { font: 700 17px/1.5 var(--sans); }
  .fd-p { flex: 1; font: 400 13px/1.8 var(--sans); color: #444; }
  .fd-go { font: 600 14px/1.5 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
  .fd-go .ms { font-size: 16px; vertical-align: -3px; margin-left: 4px; }
  @media (max-width: 1023px) {
    .fd { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .br-pc { display: none; }
  }
  @media (max-width: 599px) {
    .fd-lead { font-size: 20px; }
    .fd-cards { grid-template-columns: minmax(0, 1fr); }
  }
</style>
