/* 一元帳の等級バッジと関係者確認ゲート（画面1・画面2・画面3 共通）。色と立体の部品は screen1.css の変数を使う。 */

.grade-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; color: #fff;
  box-shadow: 0 3px 8px rgba(30, 44, 69, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.grade-badge small { font-size: 0.66rem; font-weight: 700; opacity: 0.92; }
.grade-S { background: linear-gradient(180deg, #2d3f63 0%, #1b2742 60%, #121b30 100%); }
.grade-A { background: linear-gradient(180deg, #f1a14a 0%, #d97a17 60%, #b9620c 100%); }
.grade-B { background: linear-gradient(180deg, #5fd391 0%, #23a35b 60%, #187d44 100%); }

.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(18, 24, 36, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gate__card { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 9px; padding: 20px 22px 18px; border-radius: 22px;
  background: linear-gradient(145deg, #fbfaf8, #ecebe7); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 1px 1px 0 #fff; border-top: 6px solid #d97a17; }
.gate--S .gate__card { border-top-color: #1b2742; }
.gate__grade { margin: 0; }
.gate__title { margin: 0; font-size: 1.12rem; line-height: 1.4; color: #b42318; }
.gate__sub { margin: 0; font-size: 0.78rem; font-weight: 700; color: #3b4352; }
.gate__site { margin: 0; font-size: 0.76rem; color: var(--muted); font-weight: 700; }
.gate__fld { display: grid; gap: 3px; font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.gate__fld .well-input.is-ng { outline: 2px solid rgba(214, 40, 59, 0.6); }
.gate__check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 2px 0 0; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.gate__check .is-ok { color: #1f7a45; }
.gate__check code { font-size: 0.7rem; padding: 1px 7px; border-radius: 6px; background: #eef2f8; color: #2c4f86; }
.gate__err { margin: 0; padding: 7px 10px; border-radius: 10px; font-size: 0.78rem; font-weight: 700; color: #b42318; background: #fdecee; }
.gate__btns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 4px; }
.gate__demo { border: 0; cursor: pointer; padding: 7px 10px; border-radius: 10px; font-size: 0.74rem; font-weight: 700; color: #2c63b5; background: #eaf1fb; box-shadow: inset 0 0 0 1.5px rgba(44, 99, 181, 0.35); }
.gate__demo:hover { background: #dfeaf9; }
.gate__note { margin: 0; font-size: 0.66rem; color: var(--muted); }
body.is-gated main, body.is-gated .phone__screen > :not(.ph-empty) { filter: blur(3px); }
.grade-slot { flex: none; display: inline-flex; margin-left: 8px; }
.grade-slot:empty { display: none; }
.ph-head .grade-slot { margin-left: 0; }
.ph-head .grade-badge { padding: 2px 8px; font-size: 0.66rem; }

/* 2026-11-15：長い保護区分の説明（nowrap）で格子の列が広がり、カードの中身が右にはみ出して横にずれていたのを直す */
.gate__card { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.gate__card > * { min-width: 0; }
.gate__grade .grade-badge { display: flex; align-items: center; gap: 8px; white-space: nowrap; max-width: 100%; }
.gate__grade .grade-badge small { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
/* v24：公開デモでの実在建物は「関係者以外立ち入り禁止」の案内（入力の誤りではない） */
.gate__lock { margin: 0; padding: 12px 14px; border-radius: 12px; background: #f3f1fa; border: 1px solid #c9c0e3; color: #1e2c45; font-size: 0.78rem; line-height: 1.7; display: grid; gap: 6px; }
.gate__lock[hidden] { display: none; }
.gate__lock-h { margin: 0; font-size: 0.86rem; color: #554587; }
.gate__lock p { margin: 0; }
.gate__lock-go { justify-self: stretch; text-align: center; white-space: normal; line-height: 1.5; }
