:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --ink: #1F2A30;
  --muted: #5B6770;
  --line: #E3DDD2;
  --accent: #C8412B;
  --accent-soft: #F8E6E1;
  /* 薄い背景（-soft）の上に置く文字の色。文字と背景の色の差を 4.5 以上にするため、少しだけ濃くした（accent-ink 4.77、no-ink 4.84、caution-ink 4.97） */
  --accent-ink: #B63B27;
  --ok: #2F7A4F;
  --ok-soft: #E4F2EA;
  --caution: #9A6412;
  --caution-soft: #FBF0DC;
  --caution-ink: #8F5D11;
  --no: #C8412B;
  --no-soft: #FBE7E3;
  --no-ink: #B63B27;
  --wait: #5B6770;
  --wait-soft: #EDEFF1;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}
/* 版の印（2026-09-16 新旧のファイルが混ざらない仕様書 M2）。画面には出さない。公開用では build_public.py がキャッシュ名に書きかえる */
:root { --telltable-build: "telltable-22965e0531"; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
button:focus-visible, summary:focus-visible { outline: 3px solid #2B6CB0; outline-offset: 2px; }

/* ---------------------------------------------------------------- ヘッダー */

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--ink); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.brand-mark {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 8px; background: var(--accent); font-size: 18px;
}
.lang { flex: none; display: flex; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; color: #fff; padding: 4px 12px;
  min-height: 34px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------- 選択画面 */

main { max-width: 560px; margin: 0 auto; padding: 20px 16px 120px; }
h1 { font-size: 28px; line-height: 1.3; margin: 8px 0; }
h2 { font-size: 18px; margin: 28px 0 10px; }
.intro p { color: var(--muted); margin: 0; }
.hint { color: var(--muted); font-size: 14px; margin: -4px 0 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 16px; min-height: 44px; cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 12px 14px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.item.is-selected { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.item-toggle { cursor: pointer; min-height: 56px; }
.item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.item-name { font-weight: 700; }
.item-hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
/* 食材を選ぶ画面だけの1文（2026-09-15 案A）。名前とボタンの下の2段目に、行の幅いっぱいで出す */
.item.has-setup-note { flex-wrap: wrap; row-gap: 6px; }
.item.has-setup-note > .item-setup-note { order: 1; flex: 1 0 100%; margin: 0; }

.check {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; border: 1.5px solid var(--line); color: #fff; font-weight: 700;
}
.item-toggle.is-selected .check { background: var(--accent); border-color: var(--accent); }

.segmented { flex: none; display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg { border: 0; background: var(--surface); padding: 6px 10px; min-height: 40px; min-width: 54px; cursor: pointer; font-size: 14px; }
.seg + .seg { border-left: 1.5px solid var(--line); }
.seg[aria-checked="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.seg-severe[aria-checked="true"] { background: var(--accent); }

/* まとめたアレルギーの「1つずつ選ぶ」と「そのほかのアレルギー」の開閉 */
.item-group { display: grid; gap: 4px; }
.item-parts > summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px;
  min-height: 44px; padding: 8px 14px; cursor: pointer; list-style: none;
  color: var(--accent); font-weight: 700; font-size: 14px;
}
.item-parts > summary::-webkit-details-marker { display: none; }
.item-parts > summary::before { content: "▸"; width: 1em; }
.item-parts[open] > summary::before { content: "▾"; }
.item-group-other .item-parts > summary { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.item-parts-chosen { color: var(--ink); font-weight: 400; }
.item-parts-hint { margin: 0 0 8px 14px; color: var(--muted); font-size: 13px; }
.item-parts-list { margin: 0 0 4px 14px; }

.disclaimer { color: var(--muted); font-size: 13px; margin-top: 28px; }
.publisher { margin: 12px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: center;
  padding: 16px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 65%, rgba(247, 244, 238, 0));
}
.primary {
  width: 100%; max-width: 528px; min-height: 52px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer;
}
.primary:disabled { background: #C9C3B8; cursor: not-allowed; }
.link { border: 0; background: none; color: var(--accent); padding: 8px 0; cursor: pointer; font-weight: 700; }

/* ---------------------------------------------------------------- ロック */

.icon { width: 18px; height: 18px; flex: none; }
.icon-lg { width: 26px; height: 26px; }
.bottom-actions { display: flex; gap: 8px; width: 100%; max-width: 528px; }
.bottom-actions .primary { flex: 1; }
.secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  border: 1.5px solid var(--ink); background: var(--surface); font-weight: 700; cursor: pointer;
}
.secondary:disabled { opacity: .45; cursor: not-allowed; }
.secondary.on-dark { min-height: 44px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }

.lock-banner {
  display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 14px;
  background: var(--ink); color: #fff; border-radius: var(--radius);
}
.lock-banner-text { flex: 1; min-width: 0; }
.lock-banner-text p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .8); }

/* 有料パスの入口（上のバーのボタンと、最初の画面の上の帯。パスを有効にしたら出さない） */
.pass-head {
  min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .8); background: transparent; color: #fff;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.pass-top {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px;
  background: var(--ink); color: #fff; border-radius: var(--radius);
}
.pass-top-text { flex: 1; min-width: 0; }
.pass-top-text p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.pass-top-text .pass-top-title { font-size: 15px; font-weight: 700; color: #fff; }

/* 選んだ内容のまとめ（確認画面とロック中の選択画面で使う） */
.summary-box {
  display: grid; gap: 10px; margin-top: 12px; padding: 12px 14px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.summary-title { margin: 0; font-size: 13px; color: var(--muted); }
.summary-list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.summary-list li {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
}
.summary-list .badge { margin-left: 6px; font-size: 12px; }
.summary-empty { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* 確認画面 */
.overlay-panel.sheet { max-height: calc(100vh - 48px); overflow-y: auto; text-align: left; }
.sheet .overlay-sub { margin: 0; }
.notice-title { font-size: 16px; margin: 18px 0 6px; }
.notice-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; line-height: 1.55; }
.consent {
  display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; padding: 12px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer;
}
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lock-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }

.dialog { border-top-color: var(--ink); }
.dialog-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.dialog-actions { display: flex; gap: 8px; }
.dialog-actions button { flex: 1; }

/* ---------------------------------------------------------------- カード */

.staff-card {
  margin-top: 8px; padding: 20px 18px;
  background: var(--surface); border: 1.5px solid var(--line); border-top: 6px solid var(--accent);
  border-radius: var(--radius); font-size: 19px; line-height: 1.7;
}
.card-title { font-size: 24px; margin: 0 0 8px; line-height: 1.4; }
.card-lead { margin: 0 0 12px; }
.card-severe { background: var(--no-soft); border-left: 5px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.card-severe strong { color: var(--accent); font-size: 21px; }
.card-severe p { margin: 4px 0 0; }
.card-heading { font-size: 16px; color: var(--muted); margin: 20px 0 6px; }
.card-reason { margin: 0 0 10px; }
.card-reason-label { display: block; font-size: 14px; color: var(--muted); }
.card-reason-line { display: block; }
.card-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.card-list li { padding-left: 14px; border-left: 3px solid var(--line); }
.card-item { font-size: 23px; font-weight: 700; }
.badge {
  display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 14px; vertical-align: middle;
}
.card-hidden { display: block; font-size: 15px; color: var(--muted); line-height: 1.5; }
.card-question { font-weight: 700; margin: 20px 0 4px; }
.card-closing { margin: 0; font-size: 16px; }

.translation { margin-top: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.translation summary { cursor: pointer; font-weight: 700; }
.translation .card-title { font-size: 18px; margin-top: 12px; }
.translation .card-severe strong { font-size: 16px; }
.translation .card-item { font-size: 16px; }
.translation .card-hidden, .translation .card-closing { font-size: 14px; }

/* ---------------------------------------------------------------- 店員の回答 */

/* 答えのボタン7つは、お店の方だけの画面（.staff-screen。このファイルの下の方）に移した（2026-09-14） */

/* 店員の答えを無料で試せる回数の案内と、使い切ったときの表示（2026-09-13 社長の指示） */
.hint.trial-note { margin: 10px 0 0; }
/* 使い切ったとき：答えのボタンと質問カードは見せたまま薄くし、押せなくする。
   使えないことを示す見た目なので、色の差（4.5 以上）の決まりの例外にする。薄くしない部分（店員への日本語・案内・ボタン）では守る */
.is-used-up .dim { opacity: .4; }
/* 使い切ったあと、店員への日本語（見出し）はさらに薄くする。英語は .4 のまま（2026-09-13 社長の指示） */
#reply-section.is-used-up #replies-title .dim { opacity: .15; }
/* お試しを使い切ったら、質問カードの日本語だけぼかし、店員に見せて使えないようにする（英語は読める。2026-09-13 社長の回答 B） */
#ask.is-used-up .question-ja { filter: blur(5px); user-select: none; -webkit-user-select: none; }
.question:disabled { cursor: not-allowed; }
.trial-lock { display: inline-flex; vertical-align: middle; margin-left: 8px; color: var(--ink); }
.trial-lock .icon { width: 22px; height: 22px; }
.trial-staff {
  margin: 0 0 10px; padding: 14px; font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius);
}
.trial-used-up { display: grid; gap: 10px; margin-top: 12px; }
.trial-note-strong { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }

/* 答えを押したあとの窓（緑の ✓ の色を含む）は、お店の方だけの画面に置きかえた（2026-09-14）。下はほかのダイアログで使う形 */
.overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(31, 42, 48, .6); }
.overlay-panel { width: 100%; max-width: 440px; background: var(--surface); border-radius: 20px; padding: 24px; text-align: center; border-top: 8px solid var(--wait); }
.overlay-sub { color: var(--muted); margin: 0 0 20px; }

/* ---------------------------------------------------------------- SOS・緊急時カード */

.top-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.sos {
  border: 0; border-radius: 999px; padding: 4px 12px; min-height: 34px; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 800; letter-spacing: .04em;
}
.emergency-panel { text-align: left; border-top-color: var(--accent); max-height: calc(100vh - 48px); overflow-y: auto; }
.emergency-ja p { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.emergency-ja .em-help { font-size: 16px; color: var(--muted); }
.emergency-ja .em-call { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.4; }
.emergency-en { margin-top: 12px; padding-top: 10px; border-top: 1.5px solid var(--line); font-size: 14px; color: var(--muted); }
.emergency-en p { margin: 0 0 4px; }
.emergency-en .em-call { font-weight: 700; color: var(--ink); }
.emergency-hint { margin: 12px 0; }
.call-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.dialog-actions a { flex: 1; }
/* 緊急時カードの層と小さな SOS の見た目は app.js の LAYER_CSS（新旧のファイルが混ざらない仕様書 M1）。ここに書かない。この styles.css の z-index は 40 未満 */

/* ---------------------------------------------------------------- 質問カード */

.ask { margin-top: 8px; }
.pass-badge {
  display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 6px;
  background: var(--ink); color: #fff; font-size: 12px; vertical-align: middle;
}
.question-list { display: grid; gap: 8px; }
.question {
  display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.question-ja { font-weight: 700; line-height: 1.5; }
.question-en { color: var(--muted); font-size: 13px; line-height: 1.4; }
/* 質問カードを押したあとの画面は、お店の方だけの画面（.staff-screen）で出す（2026-09-14） */

/* ---------------------------------------------------------------- 食品表示のチェック語リスト */

.labels { margin-top: 8px; }
.secondary.wide { width: 100%; }
.label-how { margin: 8px 0 4px; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.label-entry {
  margin-top: 10px; padding: 12px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
.label-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label-name { margin: 0; font-size: 17px; }
.label-status { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-mandatory .label-status { background: var(--ok-soft); color: var(--ok); }
.status-recommended .label-status { background: var(--caution-soft); color: var(--caution-ink); }
.status-none .label-status { background: var(--no-soft); color: var(--no-ink); }
.label-words { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.label-word {
  padding: 2px 10px; border-radius: 8px; font-size: 20px; font-weight: 700;
  background: var(--bg); border: 1px solid var(--line);
}
.label-examples { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.label-examples-label { font-weight: 700; }
.label-note { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
/* ハラールの注意（探す言葉の一覧とは別に出す） */
.label-halal { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--wait-soft); font-size: 14px; line-height: 1.55; }
.label-source { margin: 12px 0 0; }
.label-actions { margin-top: 16px; }

/* ---------------------------------------------------------------- 家族・同行者のプロフィール */

.profiles { margin-top: 20px; }
.profiles-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.profiles-head h2 { margin: 0; }
.chip-icon { display: inline-flex; margin-right: 4px; vertical-align: -3px; }
.chip-icon .icon { width: 14px; height: 14px; }
.add-chip { border-style: dashed; color: var(--muted); }
.chip:disabled { opacity: .5; cursor: not-allowed; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.link.small { font-size: 14px; padding: 4px 0; }
.link:disabled { color: var(--muted); opacity: .6; cursor: not-allowed; }
.hint-inline { font-size: 13px; color: var(--muted); }
.text-input {
  display: block; width: 100%; min-height: 48px; margin: 8px 0 16px; padding: 8px 12px;
  border: 1.5px solid var(--ink); border-radius: 10px; font: inherit; background: var(--surface);
}
.review-person { margin: 0 0 6px; font-weight: 700; color: var(--accent); }
.card-people { margin: 4px 0 8px; }
.card-person { margin-top: 16px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.card-person-name { font-size: 20px; margin: 0 0 2px; }
.emergency-people { margin-bottom: 12px; }

/* ---------------------------------------------------------------- フィードバック */

.feedback-link { display: block; margin-top: 8px; }
.report-wording { display: block; margin: 4px 0 8px; text-align: left; }
.feedback-kinds { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; }
.feedback-label { display: block; margin: 12px 0 6px; padding: 0; font-size: 14px; font-weight: 700; }
.feedback-kinds .chip { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.feedback-message { min-height: 120px; margin: 0 0 8px; resize: vertical; line-height: 1.5; }
.feedback-warning { margin: 0; }
.feedback-status {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 700;
}
.feedback-status.is-error { background: var(--caution-soft); color: var(--caution-ink); }

/* ---------------------------------------------------------------- 有料パス・このアプリについて・規約へのリンク */

.footer-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 8px; }
a.link { display: inline-block; text-decoration: none; }
.pass-small a, .about-line a, .consent-links a { color: var(--accent); font-weight: 700; }
.consent-links { margin: -8px 0 16px; font-size: 14px; }
.pass-line { margin: 0 0 4px; font-weight: 700; }
.pass-small { margin: 8px 0 0; font-size: 14px; line-height: 1.55; }
.wrap-anywhere { overflow-wrap: anywhere; } /* メールアドレスの長い語で横にはみ出さない（passSupport。2026-09-16 法務部 第7節） */
.pass-note { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--wait-soft); font-size: 14px; }
.pass-buy { display: flex; align-items: center; justify-content: center; margin: 16px auto 0; text-decoration: none; }
.pass-key-form { margin-top: 8px; }
.pass-key-form .text-input { margin-bottom: 8px; letter-spacing: .03em; }
.pass-active { margin: 8px 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.pass-active p { margin: 4px 0 0; color: var(--ink); font-size: 14px; }
.pass-actions { margin-top: 16px; }
.about-line { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }

/* 利用規約・プライバシーポリシーのページ（make_legal_pages.py が作る） */
.legal-back { flex: none; color: #fff; text-decoration: none; font-weight: 700; }
.legal { padding-bottom: 48px; }
.legal h1 { font-size: 24px; margin: 16px 0 4px; }
.legal h2 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; }
.legal ol, .legal ul { margin: 6px 0; padding-left: 22px; }
.legal a { color: var(--accent); overflow-wrap: anywhere; }
.legal section + section { margin-top: 40px; padding-top: 12px; border-top: 1.5px solid var(--line); }
.legal-langs { font-size: 14px; font-weight: 700; }
.legal-draft {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--caution-soft); color: var(--caution-ink); font-size: 14px; font-weight: 700;
}
.table-wrap { overflow-x: auto; margin: 8px 0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; line-height: 1.55; }
.legal th, .legal td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface); }

/* SOS の日本語の音声 */
.sos-voice { margin-top: 12px; }
.sos-voice-button { max-width: none; }
.sos-voice-button.is-playing { background: var(--ink); min-height: 64px; font-size: 20px; }
.sos-voice-hint { margin: 8px 0 0; }
#sos-voice-error { margin: 8px 0 0; }

/* チェック語リストの出典 */
.label-sources-title { margin: 12px 0 4px; font-weight: 700; }
.label-sources { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; }
.label-sources a { color: var(--accent); overflow-wrap: anywhere; }
.label-sources-note { margin: 6px 0 0; }

/* ---------------------------------------------------------------- 重いアレルギーの見せ方（2026-09-14 社長の決定「案AB」）
   カードのいちばん上の帯と、重い食材の行の太い枠。色だけに頼らないよう、形（三角のしるし）・太い枠・大きさ・位置でも分ける。
   濃い地 #9E2F1D と白い文字の差は約 7.3（白黒で見ても差が大きい）。緑・チェック印は使わない */
.warn-icon { display: block; flex: none; width: 1em; height: 1em; }

/* カードのいちばん上の帯 */
.severe-band { margin: -4px 0 16px; padding: 12px 14px 14px; border-radius: 10px; background: #9E2F1D; color: #fff; }
/* 「重いアレルギーがあります」（11文字）が、390px・360px で1行に収まる大きさにする（最後の1文字だけ次の行に落ちないように） */
.severe-band-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: clamp(18px, calc((100vw - 142px) / 11), 26px); font-weight: 800; line-height: 1.3; }
.severe-band-title .warn-icon { width: 30px; height: 30px; }
.severe-band-person { margin-top: 10px; }
.severe-band-name { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.severe-band-items { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.severe-band-items li {
  max-width: 100%; padding: 2px 12px; border-radius: 8px; overflow-wrap: anywhere;
  background: #fff; color: var(--ink); font-size: 26px; font-weight: 800; line-height: 1.4;
}
.severe-band-body { margin: 10px 0 0; font-size: 18px; font-weight: 700; line-height: 1.6; }
.translation .severe-band { margin-top: 12px; }
.translation .severe-band-title { font-size: 18px; }
.translation .severe-band-title .warn-icon { width: 22px; height: 22px; }
.translation .severe-band-name, .translation .severe-band-body { font-size: 14px; }
.translation .severe-band-items li { font-size: 16px; }

/* 答えのボタンの上と、質問カードの上にくり返す帯 */
.severe-strip { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #9E2F1D; color: #fff; text-align: left; }
.severe-strip-title { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 20px; font-weight: 800; line-height: 1.4; }
.severe-strip-title .warn-icon { width: 26px; height: 26px; margin-top: 1px; }
.severe-strip-items { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; }
.severe-strip-name { flex-basis: 100%; font-size: 15px; font-weight: 700; line-height: 1.3; }
.severe-strip-item {
  max-width: 100%; padding: 0 10px; border-radius: 6px; overflow-wrap: anywhere;
  background: #fff; color: var(--ink); font-size: 19px; font-weight: 800; line-height: 1.5;
}

/* 重い食材の行（先に並べ、太い枠・大きい文字・しるし） */
.card-list li.is-severe { padding: 8px 12px; border: 4px solid #9E2F1D; border-radius: 10px; }
.card-list li.is-severe + li:not(.is-severe) { margin-top: 10px; }
.row-warn { display: inline-block; vertical-align: -5px; margin-right: 6px; color: #9E2F1D; }
.row-warn .warn-icon { width: 28px; height: 28px; }
.card-list li.is-severe .card-item { font-size: 27px; }
.badge.badge-severe { padding: 1px 10px; background: #9E2F1D; font-size: 17px; font-weight: 800; }
.card-person.is-severe-person .card-person-name { font-size: 22px; }
.translation .row-warn .warn-icon { width: 18px; height: 18px; }
.translation .card-list li.is-severe .card-item { font-size: 17px; }
.translation .badge.badge-severe { font-size: 13px; }
/* 緊急時カード：行の中で囲む（inline-flex だと枠ごと次の行に送られ、カードが高くなって上の「助けてください。」が隠れた） */
.em-severe {
  display: inline; padding: 0 4px; border: 3px solid #9E2F1D; border-radius: 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.em-severe .warn-icon { display: inline-block; width: 0.95em; height: 0.95em; margin-right: 3px; vertical-align: -0.12em; }
.emergency-en .em-severe { border-width: 2px; }

/* ---------------------------------------------------------------- お店の方だけの画面（2026-09-14 店員回答の画面の作り直し）
   設計書と見本（development/reports/2026-09-14_店員回答の画面の作り直し_設計書.md・…_見本/mock.html）の形。
   食べる判断に関わる画面なので、緑と ✓ は使わない。「i」は白い地に灰色の線と文字（「…」の灰色の塗りと見分ける。灰色と白の差 約5.9）。
   答えのボタン7つ（確認のあとの6つ）の大きさは、mini（375×629）の1画面に入る設計のまま（9/14 社長に確かめた） */

/* 旅行者の画面（カード）の下に固定の「答えのボタンを表示」。お店の方も押すので、日本語も英語と同じ大きさにし、2段がゆったり入る高さにする（9/14 社長の要望） */
.staff-bar { flex-direction: column; align-items: center; gap: 6px; }
.show-staff {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 68px; padding: 6px 16px; font-size: 17px; line-height: 1.25;
}
.show-staff-line { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.show-staff-ja { font-size: 17px; font-weight: 700; }
.show-staff.is-ja { font-size: 20px; }
.show-staff .trial-lock { margin: 0; color: inherit; }
/* 下のボタンの分、カードの画面の下の余白を足す（ボタンの帯 約96px ＋ホーム画面に置いたときの下の余白） */
#card { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
/* 確認中は、ボタンの上に今の verdict_wait を出す（法務部 直すとよい3）。その分の余白も足す */
#card.is-waiting { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.staff-wait-note {
  width: 100%; max-width: 528px; margin: 0; padding: 6px 10px;
  border: 1.5px solid var(--line); border-left: 6px solid var(--wait); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.4;
}

.staff-screen {
  position: fixed; inset: 0; z-index: 30; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); color: var(--ink); text-align: left;
}
.staff-inner { max-width: 560px; margin: 0 auto; }
.staff-head { display: flex; align-items: flex-start; gap: 8px; }
.staff-title { flex: 1; margin: 0; padding-top: 1px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.staff-back {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 12px;
  background: var(--surface); font-size: 15px; font-weight: 700; line-height: 1.15; cursor: pointer;
}
.staff-back small { font-size: 12px; font-weight: 400; color: var(--muted); }
/* お店の方だけの画面の小さな SOS の見た目は app.js の LAYER_CSS（新旧のファイルが混ざらない仕様書 M1）。ここに書かない */

/* 何の食材についての答えか。重い食材は今の帯（severeStrip）を1行に詰める */
.staff-screen .severe-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 6px 0 0; padding: 5px 10px; }
.staff-screen .severe-strip.is-group { display: block; }
.staff-screen .severe-strip-title { align-items: center; gap: 6px; font-size: 17px; line-height: 1.45; }
.staff-screen .severe-strip-title .warn-icon { width: 20px; height: 20px; margin-top: 0; }
.staff-screen .severe-strip-items { gap: 3px 6px; margin: 0; }
.staff-screen .severe-strip.is-group .severe-strip-items { margin-top: 3px; }
.staff-screen .severe-strip-name { font-size: 14px; }
.staff-screen .severe-strip-item { padding: 0 8px; font-size: 17px; line-height: 1.45; }
.staff-subject {
  margin: 6px 0 0; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 15px; font-weight: 700; line-height: 1.45;
}
.staff-subject-name { display: block; font-size: 14px; }
.staff-subject-part + .staff-subject-part { margin-left: 1em; }
.staff-subject-head { color: var(--muted); font-size: 14px; font-weight: 400; }
/* お店の方が読む小さい日本語は 14px 以上にする（9/14 社長の要望。見本は 13px） */
.staff-hint { margin: 4px 0 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }
/* 社長の案の案内は、上の案内と同じ扱い（灰色）。unsure のボタンだけを目立たせない（法務部の条件） */
.staff-guide { margin-top: -2px; }
.staff-first { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }

/* 答えのボタン（日本語だけ。文は今のまま）。9/14 社長の決定：1画面の余りを使ってひと回り大きくする（見本 16px・高さ 44px・余白 7px・間 5px・印 26px から）。
   確認のあとの6つ・質問カードの答えも同じ大きさ。文が短くなっても崩れないよう、高さは min-height で決め、文の長さに頼らない */
.staff-screen { --sr-font: 17px; --sr-min: 54px; --sr-pad-y: 10px; --sr-gap: 7px; --sr-sym: 30px; }
.staff-replies { display: grid; gap: var(--sr-gap); }
.staff-reply {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: var(--sr-min); padding: var(--sr-pad-y) 10px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font-size: var(--sr-font); font-weight: 700; line-height: 1.35; text-align: left; cursor: pointer;
}
.staff-reply .staff-sym { width: var(--sr-sym); height: var(--sr-sym); }
/* 短い2行の文は、行ごとに改行する（2行目も1行目と同じ大きさ・太さ・濃さ。法務部の条件） */
.staff-reply-line { display: block; }
.staff-sym {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-size: 15px; font-weight: 700; line-height: 1;
}
.staff-sym.tone-wait { background: var(--wait); }
.staff-sym.tone-caution { background: var(--caution); }
.staff-sym.tone-no { background: var(--no); }
.staff-sym.tone-info { background: var(--surface); color: var(--muted); border: 2px solid var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.staff-sym-small { width: 20px; height: 20px; font-size: 12px; }
.staff-sym-small.tone-info { font-size: 13px; }

/* 押したあと・確認中・質問カードの結果（上の線と印の色は答えの種類に合わせる。i は灰色） */
.staff-screen.is-result { border-top: 8px solid var(--wait); padding-top: 10px; }
.staff-screen.tone-info { border-top-color: var(--muted); }
.staff-screen.tone-caution { border-top-color: var(--caution); }
.staff-screen.tone-no { border-top-color: var(--no); }
.res-head { display: flex; align-items: center; gap: 10px; }
.res-sym { width: 44px; height: 44px; font-size: 24px; }
.res-sym.tone-info { border-width: 3px; font-size: 26px; }
.res-label { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.res-label:focus { outline: none; }
.res-label small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.res-about { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.res-about-line { margin: 0; }
.res-about-en { margin-top: 2px; color: var(--muted); font-size: 13px; }
.res-about-name { margin-right: 6px; font-weight: 700; }
.res-about-part + .res-about-part { margin-left: 1em; }
.res-about-head { color: var(--muted); }
.res-about-ja .res-about-part { font-weight: 700; }
.res-about-ja .res-about-head { font-weight: 400; }
.res-about-severe {
  padding: 0 4px; border: 2px solid #9E2F1D; border-radius: 6px; color: var(--ink); font-weight: 800;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.res-ja {
  margin: 8px 0 0; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 17px; font-weight: 700; line-height: 1.45;
}
.res-en { margin: 6px 0 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.res-q { display: block; color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.45; }
.res-en .res-q { font-size: 14px; line-height: 1.4; }
.res-a { display: block; }
.res-verdict { margin: 8px 0 0; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.45; }
.staff-screen.tone-caution .res-verdict { color: var(--caution-ink); }
.staff-screen.tone-no .res-verdict { color: var(--no-ink); }
.wait-verdict {
  margin-top: 10px; padding: 8px 10px; border-left: 6px solid var(--wait); border-radius: 8px;
  background: var(--surface); font-size: 18px; font-weight: 800; line-height: 1.4;
}
.res-note { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--caution-soft); font-size: 13px; line-height: 1.45; }
.res-actions { display: flex; gap: 8px; margin-top: 10px; }
.res-actions button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 4px 8px; border-radius: 999px; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer;
}
.res-actions small { font-size: 12px; font-weight: 400; }
.res-redo { border: 1.5px solid var(--ink); background: var(--surface); }
.res-close { border: 0; background: var(--ink); color: #fff; }
/* 確認中の画面のお店の方向けの大きなボタン（黒。緑は使わない） */
.staff-go {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 64px;
  margin-top: 10px; padding: 8px 12px; border: 0; border-radius: 14px; background: var(--ink); color: #fff;
  font-size: 18px; font-weight: 800; line-height: 1.35; cursor: pointer;
}
.staff-go small { font-size: 13px; font-weight: 400; opacity: .9; }
/* 順番つき（① 最初の答え：点線・灰色・小さく → ② 最新の答え：押したあとと同じ大きさ） */
.res-first { margin: 8px 0 0; padding: 5px 10px 6px; border: 1.5px dashed var(--muted); border-radius: 10px; color: var(--muted); }
.res-first p { margin: 0; }
.step-lbl { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.35; }
.step-lbl [lang="en"] { font-weight: 400; }
.step-no { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; }
.step-lbl.is-latest { margin-top: 2px; color: var(--ink); font-size: 14px; }
.step-lbl.is-latest + .res-ja { margin-top: 4px; }
.first-ja { font-size: 14px; line-height: 1.4; }
.first-en { font-size: 13px; line-height: 1.35; }
.res-arrow { margin: 0 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.2; }

/* 質問カード（日本語だけ。はい／いいえ／分からないは色分けしない） */
.staff-question { margin: 10px 0 0; font-size: 24px; font-weight: 700; line-height: 1.5; }
/* はい／いいえ／分からないは、答えのボタンと同じ大きさにそろえる（9/14 社長の決定） */
.staff-answers { display: grid; gap: var(--sr-gap); margin: 12px 0 0; }
.staff-answer {
  width: 100%; min-height: var(--sr-min); padding: var(--sr-pad-y) 10px; border: 1.5px solid var(--ink); border-radius: 12px;
  background: var(--surface); font-size: var(--sr-font); font-weight: 700; line-height: 1.35; cursor: pointer;
}

/* ---------------------------------------------------------------- お願いの文とアレルギー表の質問カード（2026-09-15。社長の仮の決定1〜4）
   食べる判断に関わる所なので、緑・✓・「OK」と、注意の黄色の箱は使わない */
/* お願いの文：赤い帯のいちばん下に、細い白い線で区切って1回だけ。14px・太字・白。しるしや色は足さない */
.staff-screen .severe-strip-request {
  flex-basis: 100%; margin: 2px 0; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .55);
  font-size: 14px; font-weight: 700; line-height: 1.45;
}
.staff-screen .severe-strip.is-group .severe-strip-request { margin-top: 6px; }
/* 重いアレルギーのときだけ、答えのボタン（確認のあとの6つも）の上下の余白を 10px → 9px。すべてのボタンを同じだけ詰める（法務部 問い2 の条件3） */
.staff-inner.is-severe { --sr-pad-y: 9px; }
/* アレルギー表の質問カード：お店の方への案内（法務部 必須2。質問より小さく、ボタンより上） */
.staff-chart-guide { margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
/* アレルギー表の答えのあと、行動の文のすぐ下の箱（白い地・灰色の線。たたまない） */
.chart-notes {
  margin: 8px 0 0; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.45;
}
.chart-notes-title { margin: 0; font-size: 14px; font-weight: 700; }
.chart-notes-list { margin: 2px 0 0; padding-left: 18px; }
.res-next { margin: 8px 0 0; color: var(--ink); font-size: 14px; line-height: 1.45; }
/* 旅行者の画面：お店の方の画面に出るお願いの文を、旅行者の言葉で（注意の文 .disclaimer と同じ 13px・灰色。それより目立たせない） */
.staff-request { margin: 0 0 12px; padding: 2px 0 2px 10px; border-left: 3px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.45; }
.staff-request p { margin: 0; }

/* ---------------------------------------------------------------- お店の方の画面を収める（2026-09-15 社長の決定「案C」。収める設計書の見本 mock.html の PLAN_A〜C の数のまま）
   iPhone 13 mini 375×629 と Android 360×640 で、お店の方が押す画面をはみ出し0にする。文・並び・印・色は変えない。
   下限：お店の方の日本語 14px、答えのボタン 16px、押せる高さ 44px。赤い帯の題・札・お願いの文の字は変えない（法務部 問い1）。
   150% で縮めるのは app.js（お店の方が押す画面だけ）。小さな SOS の見た目は app.js の LAYER_CSS のまま、ここに書かない */
/* 詰める（案A）：余白・行の高さ・印の大きさ */
.staff-screen { padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); --sr-min: 48px; --sr-pad-y: 6px; --sr-gap: 5px; --sr-sym: 24px; }
.staff-screen .staff-head { gap: 6px; }
.staff-screen .severe-strip { margin-top: 4px; padding: 4px 8px; }
.staff-screen .severe-strip.is-group .severe-strip-items { margin-top: 2px; }
.staff-screen .severe-strip-name { flex-basis: auto; margin-right: 2px; }
.staff-screen .severe-strip-request { margin: 1px 0 0; padding-top: 3px; line-height: 1.4; }
.staff-screen .severe-strip.is-group .severe-strip-request { margin-top: 3px; }
.staff-screen .staff-subject { margin-top: 4px; padding: 3px 8px; line-height: 1.35; }
.staff-screen .staff-first { margin-top: 2px; }
.staff-screen .staff-hint { margin: 3px 0 4px; line-height: 1.35; }
.staff-screen .staff-guide { margin-top: 2px; }
.staff-screen .staff-inner.is-severe { --sr-pad-y: 6px; }
.staff-screen .staff-replies { margin-top: 5px; }
.staff-screen .staff-reply { gap: 8px; padding-left: 8px; padding-right: 8px; line-height: 1.3; }
.staff-screen .staff-question { margin-top: 6px; line-height: 1.4; }
.staff-screen .staff-chart-guide { margin-top: 4px; line-height: 1.45; }
.staff-screen .staff-answers { margin-top: 8px; }
.staff-screen .staff-answer { line-height: 1.3; }
.staff-screen.is-result { border-top-width: 6px; padding-top: 6px; }
.staff-screen .res-sym { width: 36px; height: 36px; font-size: 20px; }
.staff-screen .res-about { margin-top: 4px; line-height: 1.35; }
.staff-screen .res-ja { margin-top: 5px; padding: 5px 8px; line-height: 1.4; }
.staff-screen .res-en { margin-top: 4px; line-height: 1.25; }
.staff-screen .res-q { line-height: 1.35; }
.staff-screen .res-en .res-q { line-height: 1.35; }
.staff-screen .res-verdict { margin-top: 5px; line-height: 1.4; }
.staff-screen .chart-notes { margin-top: 5px; padding: 4px 8px; line-height: 1.38; }
.staff-screen .res-note { margin-top: 5px; padding: 4px 8px; line-height: 1.4; }
.staff-screen .res-actions { margin-top: 6px; }
.staff-screen .res-actions button { min-height: 46px; }
.staff-screen .wait-verdict { margin-top: 6px; padding: 6px 8px; }
.staff-screen .staff-go { margin-top: 6px; min-height: 56px; }
.staff-screen .res-first { margin-top: 5px; padding: 3px 8px 4px; }
/* 字を1段（案B）：答えのボタンと質問カードの答え 16px、質問 20px、表の案内・何の食材か 14px、旅行者の行動の文 15px、英語の答え 20px */
.staff-screen { --sr-font: 16px; --sr-min: 46px; }
/* 全員分の帯：呼び名と札を同じ行にし、入るなら人を同じ行に続ける。1人の札が1行に入らないときは、その人のかたまりの中で折り返す（札を横で切らない。法務部 必須4） */
.staff-screen .severe-strip.is-group { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 2px; }
.staff-screen .severe-strip.is-group .severe-strip-title,
.staff-screen .severe-strip.is-group .severe-strip-request { flex-basis: 100%; }
.staff-screen .severe-strip.is-group .severe-strip-items { margin-top: 0; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.staff-screen .staff-question { font-size: 20px; }
.staff-screen .staff-chart-guide { font-size: 14px; }
.staff-screen .staff-subject { font-size: 14px; }
.staff-screen .res-verdict { font-size: 15px; }
.staff-screen .res-en { font-size: 20px; }
.staff-screen .res-ja { font-size: 16px; }
.staff-screen .wait-verdict { font-size: 17px; }
.staff-screen .staff-go { font-size: 17px; }
/* 入らないときだけ一段詰める（案C。app.js が測って is-fit2 を付ける）：全部のボタンを高さ 44px・上下 5px・間 4px、行の高さを少し。字の大きさは変えない。
   お願いの文の行の高さは 1.35 より詰めない（法務部 問い3） */
.staff-screen.is-fit2 { --sr-min: 44px; --sr-gap: 4px; }
.staff-screen.is-fit2 .staff-inner,
.staff-screen.is-fit2 .staff-inner.is-severe { --sr-pad-y: 5px; }
.staff-screen.is-fit2 .staff-reply,
.staff-screen.is-fit2 .staff-answer { line-height: 1.25; }
.staff-screen.is-fit2 .staff-subject { line-height: 1.3; padding: 2px 8px; }
.staff-screen.is-fit2 .severe-strip-request { line-height: 1.35; }
.staff-screen.is-fit2 .staff-hint { line-height: 1.3; }
.staff-screen.is-fit2 .staff-question { line-height: 1.35; }
.staff-screen.is-fit2 .staff-chart-guide { line-height: 1.4; }
.staff-screen.is-fit2 .res-verdict { line-height: 1.35; }
.staff-screen.is-fit2 .chart-notes { line-height: 1.3; }
.staff-screen.is-fit2 .res-note { line-height: 1.3; }
.staff-screen.is-fit2 .res-about { line-height: 1.3; }
.staff-screen.is-fit2 .res-ja { padding: 4px 8px; line-height: 1.35; }
.staff-screen.is-fit2 .res-en { line-height: 1.2; }
.staff-screen.is-fit2 .wait-verdict { padding: 4px 8px; }
.staff-screen.is-fit2 .staff-go { min-height: 50px; padding: 4px 12px; line-height: 1.25; }

@media (max-width: 400px) {
  .brand-name { display: none; }
  .item { flex-wrap: wrap; }
}

/* 幅が 320px より狭いとき（表示を150%にしたときなど）：上の SOS と並びが右にはみ出し、「パス」のボタンが「食」の印に重なっていた。
   ボタンの左右の余白と間だけを少し詰める。文字の大きさ・色・高さは変えない。320px 以上の見た目は変わらない。
   規約などのページ（body.legal-page）の上の並びは変えない（2026-09-14 開発部） */
@media (max-width: 319px) {
  body:not(.legal-page) > .topbar { padding-left: 10px; padding-right: 10px; }
  .top-actions { gap: 4px; }
  .lang button, .sos { padding-left: 8px; padding-right: 8px; }
  .pass-head { padding: 0 8px; }
}
