/* 画面3：スマホモード（現地歩行検証・点検）。色と立体の部品は screen1.css を使い、ここでは白いスマホの枠と、スマホの中の並べ方を足す。 */

body.s3 { overflow: auto; display: flex; align-items: center; justify-content: center; gap: 48px; min-height: 100%; padding: 76px 24px 24px; }

/* ---------------- パソコンで開いたときの説明 ---------------- */
.s3-side { max-width: 330px; display: grid; gap: 12px; font-size: 0.86rem; color: #3b4352; }
.s3-side__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: #1e2c45; }
.s3-side__brand .brand__mark { width: 30px; height: 30px; }
.s3-side h1 { margin: 0; font-size: 1.35rem; color: #1e2c45; }
.s3-side ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.s3-side__sync { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #1f7a45; }
.s3-side__sync i, .ph-sync i { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.is-flash i { animation: s3flash 0.9s ease-out 2; }
@keyframes s3flash { 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.05); background: #86efac; } }
.s3-side .btn { justify-self: start; }

/* ---------------- 白いスマホの枠 ---------------- */
.phone { flex: none; width: 400px; height: min(860px, calc(100vh - 100px)); min-height: 680px; padding: 13px; border-radius: 56px;
  background: linear-gradient(145deg, #ffffff 0%, #f1f0ed 45%, #dedbd5 100%);
  box-shadow: 18px 22px 48px rgba(90, 84, 74, 0.35), -10px -10px 30px rgba(255, 255, 255, 0.95), inset 2px 2px 2px #fff, inset -3px -3px 6px rgba(160, 154, 144, 0.45); }
.phone__screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 0 14px 12px;
  background: radial-gradient(130% 60% at 50% 0%, #fbfaf8 0%, #f1efeb 70%); box-shadow: inset 0 0 0 1px rgba(180, 174, 164, 0.5), inset 0 2px 8px rgba(0, 0, 0, 0.08); }

.ph-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 16px; font-size: 0.8rem; color: #1e2c45; flex: none; }
.ph-notch { position: absolute; left: 50%; top: 9px; width: 104px; height: 28px; margin-left: -52px; border-radius: 16px; background: #15181d; }
.ph-icons { font-size: 0.7rem; }

.ph-head { display: flex; align-items: center; gap: 9px; flex: none; }
.ph-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(180deg, #3d547e, #1d2b44); box-shadow: 0 3px 8px rgba(30, 44, 69, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.ph-mark svg { width: 18px; height: 18px; }
.ph-head__text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.ph-head__text b { font-size: 0.9rem; color: #1e2c45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-head__text small { font-size: 0.66rem; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-sync { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; color: #1f7a45; padding: 4px 9px; border-radius: 999px; background: linear-gradient(145deg, #fbfaf8, #ebe8e3); box-shadow: var(--raise); }

.ph-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #e9e7e2; box-shadow: var(--well); flex: none; }
.ph-tabs button { border: 0; cursor: pointer; padding: 9px 4px; border-radius: 11px; font-weight: 700; font-size: 0.86rem; color: var(--muted); background: none; }
.ph-tabs button[aria-selected="true"] { color: #1e2c45; background: linear-gradient(145deg, #ffffff, #efede9); box-shadow: 2px 2px 6px rgba(163, 158, 150, 0.5), -1px -1px 3px #fff, inset 0 1px 0 #fff; }

.ph-prog { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; color: #3b4352; flex: none; }
.ph-prog i { height: 12px; border-radius: 99px; background: #e3e1dc; box-shadow: var(--well); overflow: hidden; }
.ph-prog b { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #9fd0ff, #3f7fd9); transition: width 0.6s cubic-bezier(.2, .9, .3, 1.2); }
.ph-prog.is-daily b { background: linear-gradient(90deg, #8ee6b1, #1f9d55); }
.ph-prog em { font-style: normal; font-size: 1rem; color: #1e2c45; font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.ph-prog em.is-up { animation: s3up 0.7s ease-out; }
@keyframes s3up { 0% { transform: scale(1.35); color: #1f9d55; } 100% { transform: none; } }

.ph-bar { display: flex; align-items: center; gap: 8px; flex: none; }
.ph-gps { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.66rem; font-weight: 700; color: #2c4f86; }
.ph-gps span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-gps i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9aa1ab; }
.ph-gps.is-on i { background: #2f7be0; box-shadow: 0 0 0 3px rgba(47, 123, 224, 0.25); animation: s3flash 2s infinite; }
.ph-floors { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #e9e7e2; box-shadow: var(--well); }
.ph-floors button { border: 0; cursor: pointer; padding: 3px 8px; border-radius: 8px; font-size: 0.72rem; font-weight: 700; color: var(--muted); background: none; }
.ph-floors button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #4d88dd, #2f68bd); box-shadow: 0 2px 5px rgba(44, 99, 181, 0.35); }

/* クリアブルーの平面図 */
.ph-plan { position: relative; flex: 1 1 200px; min-height: 170px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(232, 244, 255, 0.95), rgba(206, 228, 252, 0.9)); box-shadow: var(--well), inset 0 0 0 1px rgba(120, 170, 230, 0.35); }
.ph-plan svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.ph-plan .lbl { paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 60px; stroke-linejoin: round; }
.ph-plan .room, .ph-plan .room-sel { fill-opacity: 0.88; }
.ph-plan .room-sel { stroke: #2f7be0; stroke-width: 120px; }
.ph-plan .ph-me-halo { animation: s3halo 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes s3halo { 0% { opacity: 0.45; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.5); } }
.ph-plan .ph-goal { animation: s3goal 1.4s ease-in-out infinite; }
@keyframes s3goal { 50% { opacity: 0.35; } }

/* いまの場所 */
.ph-card { flex: none; display: grid; gap: 4px; padding: 10px 12px 11px; border-radius: 16px; background: linear-gradient(145deg, var(--card-a), var(--card-b)); box-shadow: var(--emboss); }
.ph-step { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 0.68rem; font-weight: 700; color: var(--muted); }
.ph-link { border: 0; background: none; cursor: pointer; font-size: 0.72rem; font-weight: 700; color: var(--blue-dark); }
.ph-target { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 1.08rem; color: #1e2c45; line-height: 1.3; }
.ph-target .pinb { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; font-size: 0.74rem; color: #fff; transform: rotate(-45deg); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.ph-target .pinb span { transform: rotate(45deg); }
.ph-target small { font-size: 0.7rem; color: var(--muted); font-weight: 700; }
.pin-patrol { background: linear-gradient(160deg, #6fe0a2, #1f9d55); }
.pin-check { background: linear-gradient(160deg, #94c2ff, #3f7fd9); }
.pin-repair { background: linear-gradient(160deg, #ffc27a, #e07b14); }
.pin-urgent { background: linear-gradient(160deg, #ff8d9b, #d6283b); animation: blink 1s infinite; }
.ph-q { margin: 0; font-size: 0.76rem; color: #3b4352; }
.ph-q b { color: #1e2c45; }
.ph-q .is-done { color: #1f7a45; }
.ph-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-photos:empty { display: none; }
.ph-shot { position: relative; margin: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--raise); background: #ddd; }
.ph-shot svg, .ph-shot .photo-real { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; }
.ph-shot .photo-real img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-shot .photo-real span { display: none; }
.ph-shot figcaption { position: absolute; left: 5px; top: 5px; padding: 1px 6px; border-radius: 5px; font-size: 0.6rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.5); }
.ph-shot button { position: absolute; right: 5px; bottom: 5px; border: 0; cursor: pointer; padding: 3px 7px; border-radius: 8px; font-size: 0.64rem; font-weight: 700; color: #1e2c45; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.ph-photo-st { grid-column: 1 / -1; margin: 0; font-size: 0.64rem; font-weight: 700; color: var(--muted); }
.ph-photo-st code { font-size: 0.62rem; padding: 1px 5px; border-radius: 4px; color: #fff; background: #0d9488; }
.ph-photo-st code.is-est { background: #d6801c; }

/* 下の立体ボタン */
.ph-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: none; }
.ph-btn { border: 0; cursor: pointer; padding: 16px 6px; border-radius: 18px; font-size: 1.05rem; font-weight: 700; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 16px rgba(30, 44, 69, 0.28), 0 2px 3px rgba(30, 44, 69, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.2); transition: transform 0.1s; }
.ph-btn:active { transform: translateY(2px) scale(0.98); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.3); }
.ph-btn:disabled { filter: grayscale(0.8) brightness(1.2); opacity: 0.55; cursor: default; }
.ph-btn--ok { background: linear-gradient(180deg, #6aa3ef 0%, #3f7fd9 55%, #2f68bd 100%); }
.ph-btn--care { background: linear-gradient(180deg, #ffb062 0%, #e88a2a 55%, #c96d12 100%); }
.s3[data-tab="daily"] .ph-btn--ok { background: linear-gradient(180deg, #5fd391 0%, #23a35b 55%, #187d44 100%); }
.ph-nav { display: flex; align-items: center; justify-content: space-between; flex: none; font-size: 0.7rem; color: var(--muted); font-weight: 700; }
.ph-nav button { border: 0; background: none; cursor: pointer; padding: 2px 4px; font-size: 0.76rem; font-weight: 700; color: #3b4352; }

/* 下から出るシート */
.ph-sheet { position: absolute; inset: 0; z-index: 10; display: flex; align-items: flex-end; background: rgba(20, 26, 36, 0.32); }
.ph-sheet__panel { width: 100%; display: grid; gap: 10px; padding: 16px 16px 20px; border-radius: 24px 24px 0 0; background: linear-gradient(180deg, #fbfaf8, #efede9); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18); }
.ph-sheet__panel--tall { max-height: 78%; grid-template-rows: auto minmax(0, 1fr) auto; }
.ph-sheet h3 { font-size: 1rem; color: #1e2c45; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ph-chips button { border: 0; cursor: pointer; padding: 8px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #3b4352; background: linear-gradient(145deg, #fdfcfa, #e9e6e1); box-shadow: var(--raise); }
.ph-chips button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #ffb062, #c96d12); box-shadow: 0 3px 8px rgba(201, 109, 18, 0.35); }
.ph-sheet textarea { resize: none; font: inherit; font-size: 0.86rem; }
.ph-sheet__btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.ph-list { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: 5px; align-content: start; }
.ph-list li button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 7px 10px; border-radius: 11px; text-align: left; font-size: 0.8rem; font-weight: 700; color: #1e2c45; background: linear-gradient(145deg, #fdfcfa, #ebe8e3); box-shadow: var(--raise); }
.ph-list li button.is-cur { outline: 2px solid #3f7fd9; }
.ph-list li em { margin-left: auto; font-style: normal; font-size: 0.7rem; color: var(--muted); }
.ph-list li em.st-ok, .ph-list li em.st-match { color: #1f7a45; }
.ph-list li em.st-care, .ph-list li em.st-fix { color: #c26a12; }
.ph-list li.ph-list__sep { font-size: 0.7rem; color: var(--muted); font-weight: 700; padding: 4px 2px 0; }

.ph-empty { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; gap: 10px; padding: 30px; text-align: center; font-size: 0.84rem; color: #3b4352; background: rgba(248, 247, 244, 0.97); }
.ph-empty .btn { justify-self: center; }
.ph-toast { position: absolute; left: 14px; right: 14px; bottom: 150px; z-index: 30; margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 0.8rem; font-weight: 700; text-align: center; color: #fff; background: rgba(30, 44, 69, 0.92); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

/* 本物のスマホで開いたときは、枠を外して画面いっぱいに */
@media (max-width: 560px) {
  body.s3 { display: block; padding: 0; }
  .s3-side { display: none; }
  .phone { width: 100%; height: calc(100dvh - 46px); min-height: 0; padding: 0; border-radius: 0; box-shadow: none; background: none; }
  .phone__screen { border-radius: 0; box-shadow: none; padding: env(safe-area-inset-top) 12px calc(10px + env(safe-area-inset-bottom)); }
  .ph-status { display: none; }
  .ph-head { padding-top: 8px; }
}
@media (max-width: 1000px) and (min-width: 561px) { .s3-side { display: none; } }

/* ---------------- 修繕 Before/After × GPS ---------------- */
.ph-repair-btn { display: grid; gap: 1px; width: 100%; margin-top: 8px; border: 0; cursor: pointer; padding: 8px 10px; border-radius: 12px; text-align: left; font-size: 0.8rem; font-weight: 700; color: #6b4e00; background: linear-gradient(145deg, #fffbea, #f5e9bd); box-shadow: 2px 2px 6px rgba(163, 158, 150, 0.5), -1px -1px 3px #fff; }
.ph-repair-btn small { font-size: 0.64rem; color: #8a6a10; }
.rp-body { display: grid; gap: 8px; overflow: auto; min-height: 0; }
.rp-gps { margin: 0; font-size: 0.7rem; line-height: 1.45; color: #3b4352; padding: 6px 8px; border-radius: 10px; background: #eef8f1; }
.rp-gps b { color: #0f766e; } .rp-gps b.is-off { color: #c81e33; }
.rp-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.rp-row .well-input { padding: 7px 9px; font-size: 0.8rem; }
.rp-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp-slot { position: relative; display: grid; grid-template-rows: 104px auto; border-radius: 12px; overflow: hidden; background: #f1f0ec; box-shadow: var(--well); }
.rp-slot img { width: 100%; height: 104px; object-fit: cover; display: block; }
.rp-empty { display: grid; place-content: center; font-size: 0.74rem; font-weight: 700; color: #4b5563; border: 1.5px dashed #c9c4bb; border-radius: 10px; margin: 4px; }
.rp-chip { position: absolute; left: 4px; top: 80px; font-style: normal; font-size: 0.6rem; font-weight: 700; color: #fff; padding: 2px 6px; border-radius: 6px; background: rgba(13, 148, 136, 0.92); }
.rp-chip.is-off { background: rgba(214, 40, 59, 0.94); }
.rp-slot__btns { display: flex; gap: 4px; padding: 4px; flex-wrap: wrap; }
.rp-slot__btns button { flex: 1; border: 0; cursor: pointer; padding: 5px 4px; border-radius: 8px; font-size: 0.68rem; font-weight: 700; color: #1e2c45; background: linear-gradient(145deg, #fff, #e8e5e0); box-shadow: 1px 1px 3px rgba(163, 158, 150, 0.55); }
.rp-slot__btns small { font-size: 0.62rem; color: var(--muted); padding: 4px; }
.rp-st { margin: 0; font-size: 0.7rem; font-weight: 700; color: #3b4352; }
.rp-st code { font-size: 0.64rem; color: #fff; background: #1e2c45; padding: 1px 5px; border-radius: 4px; }

/* スマホ：ボタンのダブルタップ拡大を止めて、押した瞬間に反応させる */
button, select, .btn { touch-action: manipulation; }

/* hidden 属性はどの部品でも必ず隠す（display 指定に負けないように） */
[hidden] { display: none !important; }

/* スマホモード（位置情報をオン）画面：題名・位置情報バッジ・A／B の入り口・A の取り込み・信三の案内 */
.ph-mode { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0; flex: none; font-size: 0.72rem; color: #1e2c45; }
.ph-gps-badge { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 0.62rem; font-weight: 800; color: #6b7280; background: #eceae6; box-shadow: var(--well); }
.ph-gps-badge.is-on { color: #fff; background: linear-gradient(180deg, #3f8fe8, #2563c9); box-shadow: 0 0 0 3px rgba(47, 123, 224, 0.2); }
.ph-gps-badge.is-off { color: #8a2d00; background: #fde8d6; }
.ph-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: none; }
.ph-ab button { display: flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 8px; border-radius: 13px; text-align: left; font: inherit; font-size: 0.66rem; font-weight: 700; line-height: 1.35; color: var(--muted); background: linear-gradient(145deg, #ffffff, #efede9); box-shadow: 2px 2px 6px rgba(163, 158, 150, 0.45), -1px -1px 3px #fff; }
.ph-ab button i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 0.8rem; color: #fff; background: #9aa1ab; }
.ph-ab button[aria-selected="true"] { color: #1e2c45; box-shadow: inset 2px 2px 5px rgba(163, 158, 150, 0.45), inset -1px -1px 3px #fff; }
.ph-ab button[aria-selected="true"] i { background: linear-gradient(180deg, #4d88dd, #2f68bd); }
body[data-ab="A"] .ph-tabs, body[data-ab="A"] .ph-prog, body[data-ab="A"] .ph-card, body[data-ab="A"] .ph-acts, body[data-ab="A"] .ph-nav { display: none; }
.ph-a { flex: none; display: grid; gap: 6px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(145deg, var(--card-a), var(--card-b)); box-shadow: var(--emboss); }
.ph-a[hidden] { display: none; }
.ph-a__title { margin: 0; font-size: 0.86rem; }
.ph-a__floor { margin: 0; font-size: 0.72rem; }
.ph-a__floor small { color: var(--muted); }
.ph-a__st { margin: 0; font-size: 0.66rem; line-height: 1.5; color: #4b5563; }
.ph-a__pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-a__pages figure { position: relative; margin: 0; border-radius: 9px; overflow: hidden; background: #fff; box-shadow: var(--well); }
.ph-a__pages img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-a__pages figcaption { padding: 2px 5px; font-size: 0.56rem; color: #4b5563; }
.ph-a__pages button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; cursor: pointer; font-size: 0.7rem; color: #fff; background: rgba(30, 44, 69, 0.7); }
.ph-shinzo { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 2px; padding: 6px 8px; border-radius: 12px; font-size: 0.68rem; font-weight: 700; line-height: 1.45; color: #1e3a6b; background: #e7f0fd; }
.ph-shinzo__face { flex: none; font-size: 0.95rem; line-height: 1.2; }

/* B 🧭 目印ナビ */
.ph-tabs { grid-template-columns: repeat(3, 1fr); }
.ph-tabs button { font-size: 0.78rem; }
body[data-tab="nav"] .ph-card, body[data-tab="nav"] .ph-acts, body[data-tab="nav"] .ph-nav { display: none; }
.lm-card { flex: none; display: grid; gap: 5px; padding: 10px 12px 9px; border-radius: 16px; background: linear-gradient(145deg, var(--card-a), var(--card-b)); box-shadow: var(--emboss); }
.lm-head { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: #3b4352; }
.lm-dots { display: inline-flex; gap: 3px; flex: 1; flex-wrap: wrap; }
.lm-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d9d5cd; }
.lm-dots i.is-done { background: #0d9488; } .lm-dots i.is-cur { background: #c99400; box-shadow: 0 0 0 2px rgba(201, 148, 0, 0.3); }
.lm-head em { font-style: normal; font-weight: 700; color: #0f766e; }
.lm-need { margin: 0; font-size: 0.68rem; color: var(--muted); }
.lm-ask { padding: 8px 9px; border-radius: 12px; background: #fff7e8; box-shadow: inset 0 0 0 1.5px #f2b705; }
.lm-ask p { margin: 0 0 6px; font-size: 0.76rem; font-weight: 700; line-height: 1.5; color: #3b2f05; }
.lm-ask__btns { display: grid; gap: 6px; }
.lm-ask__btns .ph-btn, .lm-acts .ph-btn { padding: 9px 8px; font-size: 0.82rem; }
.lm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lm-acts .ph-btn:only-child { grid-column: 1 / -1; }
.lm-nav { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: var(--muted); font-weight: 700; }
.lm-nav button { border: 0; background: none; cursor: pointer; padding: 2px 4px; font-size: 0.76rem; font-weight: 700; color: #3b4352; }
body[data-ab="A"] .lm-card { display: none; }

/* 信三のモード（QRの枝）と、引き継いだ部屋 */
.sh-mode { margin: 0; padding: 6px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 700; line-height: 1.4; color: #fff; background: linear-gradient(180deg, #2f6cc4, #2357a3); flex: none; }
.sh-rooms { margin: 0; padding: 5px 10px; border-radius: 10px; font-size: 0.7rem; font-weight: 700; line-height: 1.5; color: #1e2c45; background: #eef4fd; box-shadow: inset 0 0 0 1px #c9d6ea; flex: none; }
/* 親指ワンタップ操作ドック：信三の指示文（大きな太字）→ そのすぐ下に特大シャッター */
.lm-card { gap: 7px; }
.lm-say { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 1.05rem; font-weight: 800; line-height: 1.5; color: #1e2c45; }
.lm-say__face { flex: none; font-size: 1.3rem; line-height: 1.2; }
.lm-shutter { width: 100%; min-height: 70px; border: 0; border-radius: 22px; cursor: pointer; padding: 10px 14px; font-size: 1.02rem; font-weight: 800; line-height: 1.35; color: #fff;
  background: linear-gradient(180deg, #ef4458, #c81e33); box-shadow: 0 6px 16px rgba(200, 30, 51, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35); touch-action: manipulation; }
.lm-shutter:active { transform: translateY(1px) scale(0.99); box-shadow: 0 3px 8px rgba(200, 30, 51, 0.35); }
.lm-shutter.is-door { background: linear-gradient(180deg, #4e8fe8, #2357a3); box-shadow: 0 6px 16px rgba(35, 87, 163, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.lm-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.lm-sub { flex: 1 1 auto; min-height: 40px; border: 0; border-radius: 12px; cursor: pointer; padding: 6px 10px; font-size: 0.78rem; font-weight: 700; color: #3b4352; background: #f1f0ec; box-shadow: var(--well); }
.lm-sub.is-strong { min-height: 48px; color: #1e2c45; background: #fff6d6; box-shadow: inset 0 0 0 1.5px #f2b705; }
.lm-sub.is-warn { color: #b45309; background: #fdf3e6; box-shadow: inset 0 0 0 1.5px #f0b56a; }
.lm-ask p { font-size: 0.95rem; }
.lm-ask__btns .ph-btn { min-height: 54px; font-size: 0.95rem; }
.sh-start__text { margin: 0 0 12px; font-size: 0.92rem; font-weight: 700; line-height: 1.65; color: #1e2c45; }
.sh-start__btns { display: grid; gap: 10px; }
.sh-start__btns .ph-btn { min-height: 56px; font-size: 0.95rem; }

/* ワンタイムQR */
.sh-ott { margin: 0; padding: 5px 10px; border-radius: 10px; font-size: 0.72rem; font-weight: 700; color: #1f7a45; background: #eaf7ef; box-shadow: inset 0 0 0 1px #9ed9b4; flex: none; }
.ott-block { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(30, 44, 69, 0.82); }
.ott-block__panel { max-width: 320px; padding: 20px 18px; border-radius: 18px; background: #fff; text-align: center; font-size: 0.95rem; font-weight: 700; line-height: 1.6; color: #b42318; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
.ott-block__icon { margin: 0 0 6px; font-size: 2rem; }

/* デモ機での表示はここまで */
.demo-end h3 { font-size: 1.15rem; color: #b45309; }
.demo-end__text { margin: 0 0 14px; font-size: 0.9rem; font-weight: 700; line-height: 1.7; color: #1e2c45; }
.demo-end__go { display: flex; align-items: center; justify-content: center; min-height: 64px; text-decoration: none; font-size: 1rem; text-align: center; padding: 8px 12px; }
.demo-end__sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.demo-end__sub .btn { flex: 1 1 auto; min-height: 44px; }

/* A・B 二択の再現精度 */
.ab-acc { display: block; margin-top: 2px; font-style: normal; font-size: 0.66rem; font-weight: 800; }
.ab-acc.is-a { color: #2357a3; } .ab-acc.is-b { color: #1f7a45; }
.ph-ab button[aria-selected="true"] .ab-acc { color: inherit; opacity: 0.95; }
.sh-start__btns small { font-size: 0.74rem; font-weight: 700; opacity: 0.95; }
/* 枝分かれ式：A・B をえらんだら、えらばなかった方をしまう */
.ph-ab__change { display: none !important; }
body[data-ab-chosen="1"] .ph-ab { grid-template-columns: minmax(0, 1fr) auto; }
body[data-ab-chosen="1"] .ph-ab [data-ab][aria-selected="false"] { display: none; }
body[data-ab-chosen="1"] .ph-ab .ph-ab__change { display: flex !important; align-items: center; justify-content: center; font-size: 0.66rem; color: #1f4f96; padding: 6px 10px; }
/* QRのロール（role=occupant 館内通報／role=owner オーナー閲覧） */
.role-sheet { z-index: 30; align-items: stretch; background: rgba(20, 26, 36, 0.4); }
.role-panel { border-radius: 0; height: 100%; overflow-y: auto; align-content: start; padding-top: 44px; }
.role-badge { margin: 0; font-size: 0.7rem; font-weight: 700; color: #1f4f96; }
.role-say { margin: 0; padding: 8px 10px; border-radius: 12px; background: #eef7f4; font-size: 0.9rem; font-weight: 700; line-height: 1.6; color: #1e2c45; }
.role-floors { display: flex; flex-wrap: wrap; gap: 6px; }
.role-floor { font: inherit; font-weight: 800; min-width: 48px; height: 40px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); cursor: pointer; }
.role-floor[aria-pressed="true"] { background: #1e2c45; color: #fff; }
.role-plan { min-height: 180px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #d9dee8; overflow: hidden; cursor: crosshair; touch-action: manipulation; }
.role-plan svg { display: block; width: 100%; height: auto; max-height: 260px; }
.role-memo { font-size: 0.9rem; }
.role-shutter { font: inherit; width: 100%; min-height: 70px; border: 0; border-radius: 18px; font-size: 1.02rem; font-weight: 900; color: #fff; background: linear-gradient(180deg, #8a93a3, #6b7380); cursor: pointer; }
.role-shutter.is-ready { background: linear-gradient(180deg, #ef4458, #c81e33); box-shadow: 0 6px 16px rgba(200, 30, 51, 0.4); }
.role-msg { margin: 0; font-size: 0.86rem; font-weight: 700; }
.role-msg.is-ok { padding: 8px 10px; border-radius: 10px; background: #e6f6ec; color: #136c3a; }
.role-msg.is-warn { color: #a3101f; }
.role-go[hidden] { display: none; }
.role-site { margin: 0; font-size: 1rem; font-weight: 900; }
.role-owner h4 { margin: 10px 0 4px; font-size: 0.86rem; }
.role-list { margin: 0; padding-left: 18px; font-size: 0.8rem; line-height: 1.6; }
.ph-a__note { margin: 8px 0 0; padding: 6px 9px; border-radius: 10px; background: #fff7e0; color: #6b4a00; font-size: 0.7rem; line-height: 1.55; }
.ph-a__tob { font: inherit; width: 100%; margin-top: 8px; padding: 9px 10px; border: 1.5px dashed #2c63b5; border-radius: 12px; background: #fff; color: #1f4f96; font-size: 0.74rem; font-weight: 800; line-height: 1.45; text-align: left; cursor: pointer; }
.ph-a__mix { margin: 6px 0 0; font-size: 0.7rem; line-height: 1.5; color: #1f4f96; }

/* 2026-11-15：画面の高さが足りないとき（390×844 のスマホ・デモ総合入口の枠など）に、下の「✓ 合っている／✎ 直す」の帯が
   スマホ枠の外へ押し出されて見えなくなっていたのを直す。部屋カードの中身だけをスクロールさせ、操作の帯は常に見える位置に残す。
   平面図も高さに合わせて少し縮む（最小 120px）。 */
.ph-card { flex: 0 1 auto; min-height: 96px; overflow-y: auto; overscroll-behavior: contain; }
.ph-plan { flex: 1 1 170px; min-height: 120px; }

/* PC画面との連動の表示と、大きな「📷 写真撮影」ボタン（js/screen3-sync.js） */
.s3-pcsync { margin: 0; padding: 5px 10px; border-radius: 10px; font-size: 0.7rem; font-weight: 800; color: #1d4f91; background: #e6f1ff; flex: none; }
.s3-pcsync[data-mode="manage"] { color: #1f6b4a; background: #e3f6ee; }
.s3-bigcam { flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; color: #fff; background: linear-gradient(180deg, #ff8a3d, #e5602a); box-shadow: 0 6px 14px rgba(229, 96, 42, 0.35); }
.s3-bigcam:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(229, 96, 42, 0.35); }
.s3-bigcam:focus-visible { outline: 3px solid #1e2c45; outline-offset: 2px; }
.s3-bigcam__ic { font-size: 1.7rem; line-height: 1; }
.s3-bigcam__tx { display: grid; text-align: left; line-height: 1.25; }
.s3-bigcam__tx b { font-size: 1.15rem; }
.s3-bigcam__tx small { font-size: 0.66rem; font-weight: 700; opacity: 0.92; }
body[data-tab="nav"] .s3-bigcam, body[data-ab="A"] .s3-bigcam { display: none; }
/* 2026-11-15：業務画面に件数などの宣伝表示は出さない */
#s3-db { display: none !important; }
body[data-pc="manage"] .ph-ab { display: none !important; }
