@font-face { font-family: "Noto Sans JP"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-jp-japanese-400-normal.woff2") format("woff2"); unicode-range: U+3000-30FF, U+31F0-31FF, U+4E00-9FFF, U+FF00-FFEF; }
@font-face { font-family: "Noto Sans JP"; font-weight: 700; font-display: swap; src: url("../fonts/noto-sans-jp-japanese-700-normal.woff2") format("woff2"); unicode-range: U+3000-30FF, U+31F0-31FF, U+4E00-9FFF, U+FF00-FFEF; }
@font-face { font-family: "Noto Sans JP"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-jp-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Noto Sans JP"; font-weight: 700; font-display: swap; src: url("../fonts/noto-sans-jp-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

:root {
  color-scheme: light;
  --bg: #e9e7e3;
  --card-a: #f8f7f4;
  --card-b: #ecebe7;
  --text: #1f2530;
  --muted: #6b7079;
  --navy: #233349;
  --blue: #3f7fd9;
  --blue-dark: #2c63b5;
  --ok: #1f9d55;
  --red: #d6283b;
  --turq: #40e0d0;
  --emboss: 8px 8px 20px rgba(163, 158, 150, 0.45), -6px -6px 16px rgba(255, 255, 255, 0.9), inset 1px 1px 0 rgba(255, 255, 255, 0.95), inset -1px -1px 0 rgba(200, 195, 186, 0.35);
  --raise: 4px 4px 10px rgba(163, 158, 150, 0.5), -3px -3px 8px rgba(255, 255, 255, 0.95), inset 0 1px 0 #fff;
  --press: inset 3px 3px 7px rgba(163, 158, 150, 0.55), inset -3px -3px 7px rgba(255, 255, 255, 0.9);
  --well: inset 4px 4px 10px rgba(163, 158, 150, 0.42), inset -4px -4px 10px rgba(255, 255, 255, 0.85);
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: radial-gradient(1200px 700px at 70% 0%, #f1f0ed 0%, var(--bg) 60%); line-height: 1.5; overflow-x: hidden; overflow-y: auto; }   /* v24：PCでもマウスホイール・スクロールバーで最下部まで縦にスクロールできる（hidden だとホイールが効かない） */
button, input { font: inherit; color: inherit; }
h2, h3, p, dl, dd, ol { margin: 0; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
body.is-busy { cursor: progress; }

/* ---------------- 立体の部品 ---------------- */

.card {
  position: relative;
  min-height: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--card-a), var(--card-b));
  box-shadow: var(--emboss);
  padding: 14px 16px;
}
.card__title { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; color: #2a3446; display: flex; align-items: center; gap: 8px; }
.card__title small { font-size: 0.75rem; font-weight: 700; color: var(--blue-dark); padding: 1px 8px; border-radius: 999px; background: #e7eef9; box-shadow: inset 0 1px 2px rgba(44, 99, 181, 0.15); }
.well { position: relative; border-radius: 12px; box-shadow: var(--well); background: #eeede9; overflow: hidden; }
.well--dark { background: radial-gradient(120% 90% at 50% 35%, #12284a 0%, #0a1830 55%, #060f20 100%); box-shadow: inset 3px 3px 10px rgba(0, 0, 0, 0.55), inset -2px -2px 6px rgba(255, 255, 255, 0.08), 0 1px 0 #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 9px 16px; font-weight: 700; font-size: 0.9rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn--light { color: #2a3446; background: linear-gradient(145deg, #fdfcfa, #e8e5e0); box-shadow: var(--raise); }
.btn--light:active { box-shadow: var(--press); }
.btn--navy, .btn--blue, .btn--snap {
  color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 0 6px 14px rgba(30, 44, 69, 0.32), 0 2px 3px rgba(30, 44, 69, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}
.btn--navy { background: linear-gradient(180deg, #3d547e 0%, #273a5a 55%, #1d2b44 100%); }
.btn--blue { background: linear-gradient(180deg, #6aa3ef 0%, #3f7fd9 55%, #2f68bd 100%); }
.btn--navy:active, .btn--blue:active, .btn--snap:active { box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.15); }
.btn--navy:disabled, .btn--blue:disabled { filter: grayscale(0.7) brightness(1.15); opacity: 0.6; }
.btn--sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 10px; }
.btn--xs { padding: 5px 10px; font-size: 0.78rem; border-radius: 9px; }
.btn--wide { width: 100%; }

.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; box-shadow: var(--well); background: #ebe9e5; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { color: #1e2c45; background: linear-gradient(145deg, #ffffff, #efede9); box-shadow: 2px 2px 5px rgba(163, 158, 150, 0.5), -1px -1px 3px #fff, inset 0 1px 0 #fff; }
.seg button:disabled { opacity: 0.5; cursor: default; }
.seg--sm button { padding: 3px 10px; font-size: 0.75rem; }

.tag { font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #e7eef9; color: var(--blue-dark); box-shadow: inset 0 1px 2px rgba(44, 99, 181, 0.15); white-space: nowrap; }
.tag.is-raw { background: #eeece8; color: var(--muted); }
.tag--dark { background: #13284a; color: #8ff3e8; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4); }
.mini { font-size: 0.75rem; color: var(--muted); }
.hint { font-size: 0.8rem; color: var(--muted); }

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

.top { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #3d547e, #1d2b44); box-shadow: 0 5px 12px rgba(30, 44, 69, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; color: #1e2c45; }
.crumbs { display: flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 0.82rem; color: var(--muted); }
.crumbs b { color: #2a3446; }
.sources { list-style: none; display: flex; gap: 8px; margin: 0 0 0 18px; padding: 0; }
.sources li { display: flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #4b5563; background: linear-gradient(145deg, #fbfaf8, #ebe8e3); box-shadow: var(--raise); }
.sources i { width: 8px; height: 8px; border-radius: 50%; background: #c3c9d2; }
.sources .is-ok i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.sources .is-wait i { background: #f2b705; animation: blink 1s infinite; }
.sources .is-ng i { background: var(--red); }
.top__spacer { flex: 1; }
.btn--decide { flex-direction: column; gap: 0; padding: 6px 22px; line-height: 1.2; min-width: 190px; }
.btn--decide span { font-size: 1rem; }
.btn--decide small { font-size: 0.68rem; opacity: 0.85; font-weight: 700; }
.btn--decide[aria-disabled="true"] { filter: grayscale(0.8) brightness(1.2); opacity: 0.7; }
.btn--decide.is-ready { animation: ready 2.2s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 6px 22px rgba(63, 127, 217, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.32); } }
@keyframes blink { 50% { opacity: 0.3; } }
.brand__name { white-space: nowrap; }
/* HPの埋め込み（iframe）など、幅の狭い画面では出典を丸印だけにして1行に収める */
@media (max-width: 1240px) {
  .top { gap: 8px; padding: 0 12px; }
  .sources { margin-left: 4px; gap: 4px; }
  .sources li { padding: 6px; }
  .sources li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #reset-btn { padding: 6px 10px; font-size: 0.74rem; }
  .btn--decide { min-width: 0; padding: 5px 14px; }
}

/* ---------------- 3列 ---------------- */

.layout { height: calc(100vh - 64px); display: grid; grid-template-columns: 300px minmax(360px, 410px) minmax(0, 1fr); gap: 18px; padding: 4px 20px 20px; }
.col { min-height: 0; display: grid; gap: 16px; }
@media (max-width: 1240px) { .layout { grid-template-columns: 270px minmax(300px, 320px) minmax(0, 1fr); gap: 12px; padding: 4px 12px 12px; } }
.col--left { grid-template-rows: minmax(0, 1fr); padding-bottom: 74px; }
.col--mid { grid-template-rows: minmax(0, 1.18fr) minmax(0, 1fr) auto; }
.col--right { grid-template-rows: minmax(0, 1fr) minmax(0, 1.05fr); }
.card--scroll { overflow: auto; scrollbar-width: thin; }

/* --- 左：物件情報 --- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.chip-btn { border: 0; cursor: pointer; padding: 5px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #3b4352; background: linear-gradient(145deg, #fdfcfa, #e9e6e1); box-shadow: var(--raise); }
.chip-btn[aria-pressed="true"] { color: var(--blue-dark); box-shadow: var(--press); background: #eef2f8; }
.fld { display: grid; gap: 4px; margin-bottom: 10px; font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.fld__row { display: flex; gap: 6px; }
.well-input { width: 100%; min-width: 0; border: 0; border-radius: 10px; padding: 8px 10px; font-size: 0.86rem; font-weight: 700; color: var(--text); background: #efeeea; box-shadow: var(--well); }
.well-input:focus { outline: 2px solid rgba(63, 127, 217, 0.5); }
select.well-input { cursor: pointer; padding-right: 6px; }
.step-no { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; font-style: normal; font-size: 0.64rem; color: #fff; background: linear-gradient(180deg, #4d88dd, #2f68bd); box-shadow: 0 1px 3px rgba(44, 99, 181, 0.4); vertical-align: 1px; }
.fld__row--steps { gap: 8px; }
.fld__row--steps .fld { margin-bottom: 10px; }
.fld--grow { flex: 1; min-width: 0; }
.fld--pref { flex: none; width: 104px; }
.fld__row--floors { align-items: center; gap: 5px; font-size: 0.74rem; color: #3b4352; }
.fld__row--floors .well-input { width: 52px; flex: none; padding: 6px 6px; text-align: center; }
.fld__src { margin-left: auto; font-size: 0.64rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.db-hint { margin: 2px 0 0; padding: 5px 9px; border-radius: 9px; font-size: 0.7rem; font-weight: 700; line-height: 1.4; color: #1f7a45; background: #eaf7ef; box-shadow: var(--well); }
.db-hint.is-wait { color: var(--muted); background: #f1f0ec; }
.db-hint.is-ng { color: #b45309; background: #fdf3e6; }
.db-cands { margin-top: 2px; font-size: 0.76rem; padding: 6px 8px; }
.addr-sugg { display: grid; gap: 4px; margin-top: 4px; padding: 6px 8px; border-radius: 10px; background: #f4f7fb; box-shadow: var(--well); }
.addr-sugg__h { margin: 0; font-size: 0.68rem; font-weight: 700; color: #1e2c45; }
.addr-sugg__h--gsi { color: #0f766e; }
.addr-sugg__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.addr-chip { border: 0; cursor: pointer; padding: 3px 8px; border-radius: 999px; font: inherit; 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); }
.addr-chip:hover { color: #2c63b5; }
.addr-chip--ex { color: #2c63b5; }
.addr-chip--gsi { color: #0f766e; background: linear-gradient(145deg, #f2fbf7, #dff1e9); }
.s1-db { display: grid; gap: 2px; margin: 0 0 8px; padding: 6px 9px; border-radius: 10px; font-size: 0.7rem; font-weight: 700; color: #1f7a45; background: #eaf7ef; box-shadow: var(--well); }
.s1-db small { font-size: 0.6rem; font-weight: 500; line-height: 1.45; color: #4b5563; }
.sub-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.sub-chips:empty { display: none; }
.sub-chip { border: 0; cursor: pointer; padding: 4px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; color: #3b4352; background: #f1f0ec; box-shadow: var(--well); }
.sub-chip[aria-pressed="true"] { color: #1e2c45; background: linear-gradient(145deg, #ffffff, #efede9); box-shadow: var(--raise); outline: 2px solid rgba(63, 127, 217, 0.45); }
.use-line { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.8rem; font-weight: 700; color: #1e2c45; }
.use-line #use-label { flex: 1; min-width: 0; }
.use-line__btn { flex: none; padding: 2px 8px; border: 1px solid #c9d3e0; border-radius: 8px; font: inherit; font-size: 0.68rem; font-weight: 700; color: #2a4a7c; background: #f4f6f9; cursor: pointer; }
.use-more { margin-top: 6px; }
.use-more[hidden] { display: none; }
.fld--use:not(.is-open) .grade-row__try { display: none; }
.grade-row { display: grid; gap: 5px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #f1f0ec; box-shadow: var(--well); }
.grade-row:empty { display: none; }
.grade-row p { margin: 0; }
.grade-row__text { font-size: 0.7rem; font-weight: 700; color: #3b4352; }
.grade-row__try { display: flex; flex-wrap: wrap; gap: 5px; }
.grade-row__gate { font-size: 0.7rem; font-weight: 700; color: #b42318; line-height: 1.5; }
.grade-row__gate.is-ok { color: #1f7a45; }
.grade-row__gate .btn { margin-top: 3px; }
.ph-link-btn { border: 0; background: none; cursor: pointer; padding: 0; font-size: 0.68rem; font-weight: 700; color: var(--blue-dark); text-decoration: underline; }
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 12px; }
.readouts div { padding: 6px 9px; border-radius: 10px; background: #f1f0ec; box-shadow: var(--well); min-width: 0; }
.readouts div:first-child { grid-column: 1 / -1; }
.readouts dt { font-size: 0.66rem; font-weight: 700; color: var(--muted); }
.readouts dd { font-size: 0.82rem; font-weight: 700; color: #1e2c45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ro-back { display: block; margin-top: 3px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font-size: 0.7rem; font-weight: 700; color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
body.is-leaving { opacity: 0.6; transition: opacity 0.18s; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill { border: 0; cursor: pointer; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #4b5563; background: linear-gradient(145deg, #fdfcfa, #e9e6e1); box-shadow: 2px 2px 5px rgba(163, 158, 150, 0.45), -2px -2px 4px #fff; }
.pill[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #4d88dd, #2f68bd); box-shadow: 0 3px 8px rgba(44, 99, 181, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.sep { border: 0; height: 2px; margin: 14px 0 12px; border-radius: 2px; box-shadow: inset 0 1px 1px rgba(163, 158, 150, 0.45), 0 1px 0 #fff; }
.mode-tabs { display: grid; gap: 10px; margin-top: 10px; }
.mode {
  position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; text-align: left; border: 0; cursor: pointer; padding: 11px 12px; border-radius: 14px;
  background: linear-gradient(145deg, #fdfcfa, #e9e6e1); box-shadow: var(--raise);
}
.mode__icon { grid-row: span 2; font-size: 1.5rem; display: grid; place-items: center; }
.mode b { font-size: 0.88rem; color: #1e2c45; }
.mode small { font-size: 0.7rem; color: var(--muted); line-height: 1.35; }
.mode em { position: absolute; top: -7px; right: 10px; font-style: normal; font-size: 0.66rem; font-weight: 700; color: #fff; padding: 1px 8px; border-radius: 999px; background: linear-gradient(180deg, #f0a43c, #d6801c); box-shadow: 0 2px 5px rgba(214, 128, 28, 0.4); }
.mode[aria-pressed="true"] { box-shadow: var(--press), 0 0 0 2px rgba(63, 127, 217, 0.55); background: #eef3fa; }
.tools { margin-top: 12px; display: grid; gap: 8px; }
.now-floor { display: flex; align-items: baseline; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.now-floor b { font-size: 1.2rem; color: #1e2c45; }
.now-floor small { margin-left: auto; font-size: 0.68rem; }
.row2 { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; font-weight: 700; color: #3b4352; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 11px; box-shadow: var(--well); }
.stepper button { width: 28px; height: 28px; border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; background: linear-gradient(145deg, #fff, #ebe8e3); box-shadow: 2px 2px 4px rgba(163, 158, 150, 0.5), -1px -1px 3px #fff; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.rooms { list-style: none; padding: 0; display: grid; gap: 5px; max-height: 168px; overflow: auto; }
.rooms li { display: grid; grid-template-columns: 1fr 86px 26px; gap: 5px; }
.rooms__x { border: 0; cursor: pointer; border-radius: 8px; font-weight: 700; color: #6b7280; background: linear-gradient(145deg, #fdfcfa, #e9e6e1); box-shadow: 2px 2px 4px rgba(163, 158, 150, 0.45), -1px -1px 3px #fff; }
.rooms__x:hover { color: #b42318; }
.rooms .well-input { padding: 5px 8px; font-size: 0.78rem; }
.rooms .area { position: relative; }
.rooms .area span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.72rem; color: var(--muted); }
.rooms .area input { padding-right: 24px; }
.pal-title { display: flex; align-items: center; justify-content: space-between; font-size: 0.74rem; font-weight: 700; color: var(--muted); margin-top: 4px; }
.palette { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stamp { display: flex; align-items: center; gap: 6px; border: 0; cursor: grab; padding: 7px 8px; border-radius: 11px; font-size: 0.76rem; font-weight: 700; color: #2a3446; background: linear-gradient(145deg, #fdfcfa, #e9e6e1); box-shadow: var(--raise); }
.stamp span { font-size: 1.05rem; }
.stamp:active { box-shadow: var(--press); cursor: grabbing; }

/* --- 中：ライブ --- */
.live { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 9px; padding: 12px 14px; }
.live__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric { display: flex; align-items: baseline; gap: 6px; font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.metric b { font-size: 1.15rem; color: #1e2c45; font-variant-numeric: tabular-nums; }
.map { cursor: grab; touch-action: none; }
.map:active { cursor: grabbing; }
.map__tiles { position: absolute; inset: 0; overflow: hidden; }
.tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; user-select: none; pointer-events: none; }
.t-base { z-index: 1; }
.t-rain { z-index: 2; opacity: 0.85; }
.t-risk { z-index: 3; opacity: 0.72; }
.map__over { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; }
.map__over .nb { fill: rgba(64, 190, 200, 0.06); stroke: rgba(22, 120, 150, 0.55); stroke-width: 1; cursor: pointer; }
.map__over .nb:hover { fill: rgba(63, 127, 217, 0.18); }
.map__over .tg { fill: rgba(63, 127, 217, 0.2); stroke: #2d6cdf; stroke-width: 2.5; stroke-dasharray: 7 4; animation: march 1s linear infinite; }
.map__over .tg.locked { fill: rgba(30, 44, 69, 0.3); stroke: #1e2c45; stroke-width: 3; stroke-dasharray: none; animation: none; filter: drop-shadow(0 2px 4px rgba(30, 44, 69, 0.5)); }
@keyframes march { to { stroke-dashoffset: -22; } }
.map__over .tg-upper { fill: rgba(255, 255, 255, 0.18); stroke: #ffffff; stroke-width: 1.6; stroke-dasharray: 4 3; pointer-events: none; }
.map__over .tg-upper-t { fill: #fff; font-size: 9px; font-weight: 800; font-family: var(--font); paint-order: stroke; stroke: rgba(30, 44, 69, 0.75); stroke-width: 2.5px; pointer-events: none; }
.map__over .tg-upper-t.is-cut { fill: #ffe7b8; }
.map__over .tg-front { stroke: #ffb020; stroke-width: 4; stroke-linecap: round; pointer-events: none; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6)); }
.map__over .tg-road { fill: #8a3b00; font-size: 10px; font-weight: 800; font-family: var(--font); paint-order: stroke; stroke: rgba(255, 255, 255, 0.95); stroke-width: 3px; pointer-events: none; }
.map__over .map-north text { fill: #1e2c45; font-size: 11px; font-weight: 800; font-family: var(--font); paint-order: stroke; stroke: rgba(255, 255, 255, 0.95); stroke-width: 3.5px; }
.tg-label rect { fill: #2d6cdf; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.tg-label.locked rect { fill: #1e2c45; }
.tg-label text { fill: #fff; font-size: 11px; font-weight: 700; font-family: var(--font); }
.site-pin circle { fill: var(--red); stroke: #fff; stroke-width: 2; }
.site-pin .ring { fill: none; stroke: var(--red); stroke-width: 2; animation: ring 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(4); opacity: 0; } }
.map__zoom { position: absolute; z-index: 6; right: 8px; top: 8px; display: grid; gap: 4px; }
.map__zoom button { width: 28px; height: 28px; border: 0; border-radius: 9px; cursor: pointer; font-weight: 700; background: linear-gradient(145deg, #fff, #ebe8e3); box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 #fff; }
.credit { position: absolute; z-index: 6; right: 6px; bottom: 4px; font-size: 0.62rem; color: #333; background: rgba(255, 255, 255, 0.78); padding: 0 5px; border-radius: 4px; }
.map__state { position: absolute; z-index: 6; left: 8px; bottom: 6px; font-size: 0.7rem; font-weight: 700; color: #1e2c45; background: rgba(255, 255, 255, 0.86); padding: 2px 8px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.map.is-locked .map__state { background: #1e2c45; color: #fff; }
.map.is-locking::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: 12px; box-shadow: inset 0 0 0 4px #2d6cdf; animation: lockflash 0.9s ease-out forwards; }
@keyframes lockflash { from { opacity: 1; } to { opacity: 0; } }

#plateau-view { cursor: grab; touch-action: none; }
#plateau-view.is-grabbing { cursor: grabbing; }
#plateau-view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dark-note { position: absolute; inset: 0; display: grid; place-items: center; color: #8ff3e8; font-size: 0.8rem; }
.plateau .grid { stroke: rgba(64, 224, 208, 0.12); stroke-width: 0.6px; vector-effect: non-scaling-stroke; }
.plateau .grid.major { stroke: rgba(64, 224, 208, 0.26); }
.plateau polygon { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.plateau .pn { fill: rgba(40, 190, 200, 0.1); stroke: rgba(64, 224, 208, 0.42); stroke-width: 0.6px; }
.plateau .pn.top { fill: rgba(64, 224, 208, 0.2); }
.plateau .pt { fill: rgba(64, 224, 208, 0.32); stroke: #8ff7ea; stroke-width: 1.4px; filter: drop-shadow(0 0 6px rgba(64, 224, 208, 0.9)); }
.plateau .pt.top { fill: rgba(143, 247, 234, 0.6); }
.plateau .pt.b { opacity: 0.6; }
.pl-lbl { fill: #b6fff6; font-weight: 700; font-family: var(--font); paint-order: stroke; stroke: #06223a; stroke-width: 1500px; }

.wx { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 120px; }
.wx__map { min-height: 120px; }
.wx-pin { position: absolute; z-index: 5; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(214, 40, 59, 0.3); }
.wx__stats { display: grid; gap: 3px; align-content: center; }
.wx__stats div { display: flex; justify-content: space-between; gap: 6px; font-size: 0.76rem; padding: 3px 9px; border-radius: 8px; background: #f1f0ec; box-shadow: var(--well); }
.wx__stats dt { color: var(--muted); font-weight: 700; white-space: nowrap; }
.wx__stats dd { font-weight: 700; color: #1e2c45; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.risk-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; background: #e9edf2; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); vertical-align: 0; }
#wx-risk.is-alert span { color: var(--red); }
.onair { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 0.7rem; color: #fff; background: linear-gradient(180deg, #ef4458, #c81e33); box-shadow: 0 2px 5px rgba(200, 30, 51, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.onair i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.wx__link { align-items: center; padding: 6px 8px; border-radius: 10px; background: #f1f0ec; box-shadow: var(--well); }
.wx__link .mini { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.lvl { font-size: 0.72rem; color: var(--ok); }
.lvl--watch { color: #c26a12; }
.lvl--alert { color: var(--red); animation: blink 1s infinite; }
.wx__link.is-alert { background: #fdeef0; box-shadow: inset 0 0 0 1.5px rgba(214, 40, 59, 0.5), var(--well); }

/* --- 右：③ 3D --- */
.viewer { overflow: hidden; padding: 0; }
.viewer__title { position: absolute; z-index: 5; left: 16px; top: 13px; }
.viewer__tools { position: absolute; z-index: 6; right: 12px; top: 10px; display: flex; gap: 6px; }
.tool { width: 32px; height: 32px; border: 0; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: #2a3446; font-weight: 700; background: linear-gradient(145deg, #fdfcfa, #e8e5e0); box-shadow: var(--raise); }
.tool svg { width: 17px; height: 17px; }
.tool:active { box-shadow: var(--press); }
.stage--3d { position: absolute; inset: 10px; border-radius: 14px; background: radial-gradient(90% 80% at 55% 45%, #fbfcfd 0%, #eef2f6 55%, #e3e8ee 100%); box-shadow: var(--well); cursor: grab; touch-action: none; overflow: hidden; }
.stage--3d.is-grabbing { cursor: grabbing; }
.stage--3d svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage--3d.is-ghost svg { opacity: 0.8; }
.growth {
  position: absolute; z-index: 5; left: 22px; top: 44px; width: 250px; padding: 9px 12px 10px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 238, 234, 0.92)); box-shadow: var(--raise); backdrop-filter: blur(6px);
}
.growth__head { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.74rem; font-weight: 700; color: #3b4352; }
.growth__head b { font-size: 1.5rem; color: var(--blue-dark); font-variant-numeric: tabular-nums; line-height: 1.1; }
.growth__bar { display: block; height: 10px; margin: 5px 0 4px; border-radius: 999px; box-shadow: var(--well); background: #e7e5e1; overflow: hidden; }
.growth__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #7fb2f2, #3f7fd9 60%, #2c63b5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: width 0.6s cubic-bezier(.3, 1.4, .5, 1); }
.growth small { font-size: 0.68rem; color: var(--muted); }
.growth.is-full .growth__head b { color: var(--ok); }
.growth.is-full .growth__bar i { background: linear-gradient(90deg, #6fd39a, #1f9d55); }
.growth.is-bump { animation: bump 0.45s; }
@keyframes bump { 40% { transform: scale(1.05); } }
.floor-stack { position: absolute; z-index: 5; right: 22px; top: 52px; display: grid; gap: 5px; }
.floor-stack button { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 64px; border: 0; cursor: pointer; padding: 5px 9px; border-radius: 10px; font-size: 0.78rem; background: linear-gradient(145deg, #fdfcfa, #e8e5e0); box-shadow: var(--raise); color: #4b5563; }
.floor-stack button i { font-style: normal; color: var(--ok); font-weight: 700; }
.floor-stack button.is-raw { color: #9aa1ab; }
.floor-stack button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #4d88dd, #2f68bd); box-shadow: 0 3px 8px rgba(44, 99, 181, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.floor-stack button[aria-selected="true"] i { color: #fff; }
.floor-stack button:disabled { cursor: default; opacity: 0.6; }
.viewer--3d .viewer__tools { top: auto; bottom: 20px; right: 22px; }
.chip { position: absolute; z-index: 5; font-size: 0.72rem; font-weight: 700; color: #3b4352; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); box-shadow: 2px 2px 6px rgba(163, 158, 150, 0.45); }
.chip:empty { display: none; }
.chip span + span { margin-left: 10px; }
.chip--bl { left: 22px; bottom: 20px; }
.viewer--3d.has-shape .stage--3d { bottom: calc(var(--shape-h, 0px) + 10px); }
.viewer--3d.has-shape .chip--bl, .viewer--3d.has-shape .chip--br { bottom: calc(var(--shape-h, 0px) + 20px); }
.shape-bar { position: absolute; z-index: 6; left: 10px; right: 10px; bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 4px 8px; border-radius: 10px; font-size: 0.68rem; line-height: 1.3; color: #3b4352; background: rgba(255, 255, 255, 0.94); box-shadow: 1px 2px 6px rgba(120, 128, 140, 0.3); }
.shape-bar[hidden] { display: none; }
.shape-bar__grp { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.shape-bar .step-no { width: 16px; height: 16px; font-size: 0.52rem; }
.shape-seg { display: inline-flex; border-radius: 7px; overflow: hidden; border: 1px solid #c9d3e0; }
.shape-seg button { padding: 2px 7px; border: 0; font: inherit; font-weight: 700; color: #4a5568; background: #f4f6f9; cursor: pointer; white-space: nowrap; }
.shape-seg button + button { border-left: 1px solid #c9d3e0; }
.shape-seg button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #4d88dd, #2f68bd); }
.shape-seg button:disabled { color: #a0a8b4; cursor: not-allowed; }
.shape-bar select { padding: 1px 2px; border: 1px solid #c9d3e0; border-radius: 6px; font: inherit; background: #fff; }
.shape-bar select:disabled { color: #8a93a0; background: #f1f3f6; }
.shape-bar__area b { color: #2a4a7c; }
.shape-bar__area em { font-style: normal; color: #8a5a00; font-weight: 700; }
.shape-bar__why { margin-left: auto; padding: 2px 8px; border: 1px solid #c9d3e0; border-radius: 7px; font: inherit; font-weight: 700; color: #2a4a7c; background: #f4f6f9; cursor: pointer; }
.shape-why { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); max-height: 46vh; overflow: auto; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: 0 10px 26px rgba(30, 44, 69, 0.28); font-size: 0.68rem; }
.shape-why[hidden] { display: none; }
.shape-why__title { margin: 0 0 4px; font-weight: 700; color: #1e2c45; }
.shape-why ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.shape-why li { display: grid; grid-template-columns: 30px 1fr; gap: 6px; align-items: start; }
.shape-why li b { text-align: center; border-radius: 6px; padding: 1px 0; font-size: 0.6rem; color: #fff; background: #94a3b8; }
.shape-why li b.is-hi { background: #1f7a45; } .shape-why li b.is-mid { background: #2f68bd; } .shape-why li b.is-ref { background: #b7791f; } .shape-why li b.is-ng { background: #b42318; }
.shape-why li em { display: block; font-style: normal; font-weight: 700; color: #2a4a7c; }
.shape-why__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 0; }
.shape-why__in input { width: 80px; padding: 2px 4px; border: 1px solid #c9d3e0; border-radius: 6px; font: inherit; }
.shape-why__in select { padding: 1px 2px; border: 1px solid #c9d3e0; border-radius: 6px; font: inherit; }
.acrylic .compass { font-weight: 800; fill: #1e2c45; stroke: rgba(255, 255, 255, 0.92); paint-order: stroke; pointer-events: none; }
.acrylic .compass.is-keep { fill: #1f5fbf; }
.acrylic .compass.is-cut { fill: #8a5a00; }
.acrylic .compass.road { fill: #1e2c45; }
.acrylic .road3d__band { fill: rgba(150, 158, 170, 0.42); stroke: rgba(110, 118, 130, 0.6); stroke-width: 1; }
.acrylic .road3d__walk { fill: rgba(210, 214, 220, 0.38); }
.acrylic .road3d__line { stroke: rgba(255, 255, 255, 0.85); stroke-width: 2; stroke-dasharray: 10 7; }
.acrylic .road3d__lead { stroke: #1e2c45; stroke-width: 1.5; stroke-dasharray: 4 3; opacity: 0.7; }
.acrylic .road3d__edge { stroke: #1f5fbf; stroke-width: 3; stroke-linecap: round; }
.model .ox-flood.top, .model .ox-flood.front { fill: rgba(240, 190, 90, 0.75); }
.compass-tag { position: absolute; z-index: 7; left: 22px; margin: 0; padding: 2px 8px; border-radius: 8px; font-size: 0.7rem; font-weight: 800; color: #1e2c45; background: rgba(255, 255, 255, 0.9); box-shadow: 0 1px 4px rgba(30, 44, 69, 0.2); pointer-events: none; }
.compass-tag[hidden] { display: none; }
.compass-tag.is-bottom { bottom: 18px; }
.compass-tag.is-keep { color: #1f5fbf; }
.compass-tag.is-cut { color: #8a5a00; }
.chip--br { right: 66px; bottom: 22px; }

/* アクリル・クリスタルガラスの模型。塗りはすべてグラデーション（screen1-acrylic.js の MATERIALS）。線の太さは画面上で一定。 */
.acrylic polygon { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.model .grid { stroke: rgba(70, 95, 130, 0.12); stroke-width: 0.6px; vector-effect: non-scaling-stroke; }
.model .grid.major { stroke: rgba(70, 95, 130, 0.24); }
.model .axis { stroke-width: 1.6px; vector-effect: non-scaling-stroke; opacity: 0.75; }
.model .ax-x { stroke: #d23c4e; }
.model .ax-y { stroke: #21a05a; }
.model .ax-z { stroke: #2d6cdf; }
.model .ground-shadow { fill: rgba(40, 60, 90, 0.22); }
.model .ao polygon { fill: rgba(28, 48, 80, 0.2); }
.model .fl-ice .ao polygon { fill: rgba(14, 60, 130, 0.24); }
.model .b { opacity: 0.55; }

/* 床スラブ：上面はやわらかい光、前面は濃く、側面は明るい（2トーンの厚み） */
.model .slab { stroke: rgba(70, 98, 132, 0.55); stroke-width: 0.8px; }
.model .slab.top { fill: url(#s1-slab-top); stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.1px; }
.model .slab.front { fill: url(#s1-slab-front); }
.model .slab.end { fill: url(#s1-slab-end); }
.model .slab.bot { fill: rgba(120, 145, 175, 0.2); stroke: none; }
.model .slab.ice.top { fill: url(#s1-slab-top-ice); }
.model .slab.ice.front { fill: url(#s1-slab-front-ice); stroke: rgba(30, 80, 150, 0.6); }
.model .slab.ice.end { fill: url(#s1-slab-end-ice); stroke: rgba(30, 80, 150, 0.6); }
.model .slab.roof.top { fill: url(#s1-crystal); stroke: rgba(255, 255, 255, 0.95); }
.model .slab.terrace.top { fill: rgba(196, 203, 214, 0.62); stroke: rgba(120, 132, 150, 0.7); stroke-dasharray: 6 4; }
.model .slab.roof.front, .model .slab.roof.end { fill: url(#s1-crystal-end); }
.model .sel > .slab.top { stroke: #2d6cdf; stroke-width: 2px; }

/* 外壁：斜めの反射光が走る透明ガラス */
.model .ow { fill: url(#s1-glass); stroke: rgba(84, 118, 158, 0.42); stroke-width: 0.7px; }
.model .ow.end { fill: url(#s1-glass-end); }
.model .ow.top { fill: url(#s1-rim); stroke: rgba(84, 118, 158, 0.55); }
.model .fl-ice .ow { stroke: rgba(46, 104, 178, 0.5); }

/* 内壁・階段・設備：未確定はクリスタル、確定はアイスブルー */
.model .iw.crystal, .model .st.crystal, .model .ev.crystal, .model .fx.crystal, .model .ox.crystal { fill: url(#s1-crystal); stroke: rgba(110, 132, 160, 0.42); stroke-width: 0.6px; }
.model .crystal.end { fill: url(#s1-crystal-end); }
.model .crystal.top { fill: rgba(255, 255, 255, 0.85); }
.model .iw.ice, .model .ev.ice, .model .fx.ice, .model .ox.ice { fill: url(#s1-ice); stroke: rgba(30, 96, 180, 0.62); stroke-width: 0.7px; }
.model .ice.end { fill: url(#s1-ice-end); }
.model .ice.top { fill: url(#s1-ice-top); stroke: rgba(30, 96, 180, 0.7); }
.model .st.ice { fill: url(#s1-ice-end); stroke: rgba(30, 90, 170, 0.6); stroke-width: 0.5px; }
.model .st.ice.top { fill: url(#s1-ice-top); }
.model .ev.ice { fill: rgba(150, 140, 230, 0.32); }
.model .fl-ice { filter: drop-shadow(0 0 3px rgba(90, 170, 255, 0.45)); }
.model .stage-drag .fl-ice { filter: none; }
.model .ox-parking.top { fill: rgba(210, 220, 232, 0.6); }
.model .canopy { fill: url(#s1-glass-end); stroke: rgba(84, 118, 158, 0.55); stroke-width: 0.6px; }
.model .canopy.top { fill: url(#s1-rim); }
.model .door { fill: url(#s1-ice-end); stroke: rgba(40, 80, 130, 0.6); stroke-width: 0.6px; opacity: 0.7; }
.model .scan { fill: url(#s1-scan); stroke: #9cecff; stroke-width: 1.4px; filter: drop-shadow(0 0 6px rgba(120, 220, 255, 0.9)); }
.model .hl { fill: rgba(63, 127, 217, 0.5); stroke: #2d6cdf; stroke-width: 1.6px; }
.model .urg, .model .urg.end, .model .urg.top { fill: rgba(232, 58, 80, 0.55); stroke: #d6283b; stroke-width: 1.4px; animation: urg 1s ease-in-out infinite; }
.model .urg.top { fill: rgba(255, 150, 162, 0.85); }
@keyframes urg { 50% { opacity: 0.45; } }
.model .under { opacity: 0.75; }

/* 点検の済んだ部屋・設備が、ガラスの中で点灯する（画面2） */
.model .lit.lit-ok { fill: url(#s1-lit-ok); stroke: rgba(22, 150, 80, 0.7); stroke-width: 0.8px; }
.model .lit.lit-eq { fill: url(#s1-lit-eq); stroke: rgba(30, 110, 210, 0.7); stroke-width: 0.8px; }
.model .lit.lit-care { fill: url(#s1-lit-care); stroke: rgba(210, 110, 20, 0.8); stroke-width: 0.9px; }
.model .lit.lit-urgent { fill: url(#s1-lit-urgent); stroke: #d6283b; stroke-width: 1px; animation: urg 1s ease-in-out infinite; }
.model .lit.lit-ok.top { fill: rgba(196, 255, 220, 0.82); }
.model .lit.lit-eq.top { fill: rgba(200, 232, 255, 0.85); }
.model .lit.lit-care.top { fill: rgba(255, 226, 186, 0.88); }
.model .lit.lit-urgent.top { fill: rgba(255, 190, 198, 0.9); }.model .hit { fill: transparent; stroke: none; cursor: pointer; }
.model .hit:hover { fill: rgba(63, 127, 217, 0.05); }
.stage--3d.is-grabbing .ao, .stage--3d.is-grabbing .ground-shadow { filter: none; opacity: 0.35; }
.stage--3d.is-grabbing .fl-ice { filter: none; }

/* --- 右：④ 2D平面図 --- */
.viewer--2d .viewer__title { gap: 10px; }
.floor-tabs { position: absolute; z-index: 6; left: 16px; top: 42px; }
.floor-tabs button.is-built { color: var(--ok); }
.floor-tabs button[aria-pressed="true"].is-built { color: #1f7a45; }
.viewer--2d .viewer__tools { top: 12px; }
.stage--plan {
  position: absolute; inset: 82px 12px 12px; border-radius: 14px; overflow: hidden; touch-action: none;
  background-color: #fbfcfd;
  background-image:
    linear-gradient(rgba(70, 100, 140, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 100, 140, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(70, 100, 140, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 100, 140, 0.06) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  box-shadow: var(--well);
}
.stage--plan.is-grabbing { cursor: grabbing; }
.stage--plan > svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.stage-note { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 0.8rem; font-weight: 700; color: #3b4352; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--raise); white-space: nowrap; }
.plan2d text { font-family: var(--font); }
.plan2d .dims text { stroke: none; }
.plan2d .room { transition: fill-opacity 0.2s; }
.plan2d [data-room] { cursor: pointer; }
.plan2d .room:hover, .plan2d .room-sel { fill: #3f7fd9 !important; fill-opacity: 0.28 !important; }
.plan2d .lbl { pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 90px; stroke-linejoin: round; }
.puzzle.is-live .blk { cursor: grab; }
.puzzle .blk-x { cursor: pointer; }
.drop-hint { outline: 3px dashed var(--blue); outline-offset: -8px; }

.start { position: absolute; z-index: 6; left: 50%; top: calc(50% + 34px); transform: translate(-50%, -50%); width: min(640px, 88%); display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.mode-big, .shoot-cta .mode-big {
  position: relative; display: grid; justify-items: start; gap: 4px; text-align: left; border: 0; cursor: pointer; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #ecebe7); box-shadow: 10px 10px 24px rgba(140, 135, 128, 0.45), -6px -6px 16px rgba(255, 255, 255, 0.95), inset 0 1px 0 #fff;
  transition: transform 0.15s;
}
.mode-big:hover { transform: translateY(-2px); }
.mode-big span { font-size: 1.8rem; }
.mode-big b { font-size: 1rem; color: #1e2c45; }
.mode-big small { font-size: 0.74rem; color: var(--muted); line-height: 1.45; }
.mode-big em { position: absolute; top: -8px; right: 14px; font-style: normal; font-size: 0.7rem; font-weight: 700; color: #fff; padding: 1px 9px; border-radius: 999px; background: linear-gradient(180deg, #f0a43c, #d6801c); box-shadow: 0 2px 5px rgba(214, 128, 28, 0.4); }
.mode-big--sub { background: linear-gradient(145deg, #fbfaf8, #e9e6e1); }
.shoot-cta { position: absolute; inset: 0; display: grid; place-items: center; }
.shoot-cta .mode-big { max-width: 380px; }
.shoot-cta { grid-auto-flow: column; justify-content: center; align-items: center; gap: 18px; padding: 12px; }
.pair-card { display: grid; gap: 6px; width: 300px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(145deg, #ffffff, #eef2f7); box-shadow: 6px 6px 14px rgba(163, 158, 150, 0.45), -4px -4px 10px rgba(255, 255, 255, 0.9); border: 1px dashed #9db4d6; }
.pair-card__title { margin: 0; font-size: 0.76rem; font-weight: 700; color: #1e2c45; line-height: 1.4; }
.pair-card__title em { margin-left: 6px; padding: 0 7px; border-radius: 999px; font-style: normal; font-size: 0.66rem; color: #fff; background: linear-gradient(180deg, #4d88dd, #2f68bd); white-space: nowrap; }
.pair-card__body { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: center; }
.pair-card__qr { position: relative; width: 104px; height: 104px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #d8dee8; display: grid; place-items: center; font-size: 0.72rem; color: #8a93a0; }
.pair-card__qr svg, .pair-card__qr img { width: 100%; height: 100%; }
.pair-card__qr.is-expired svg, .pair-card__qr.is-expired img { opacity: 0.18; }
.pair-card__qr.is-wait { background: repeating-linear-gradient(45deg, #f2f4f8 0 6px, #e8ecf2 6px 12px); }
.pair-card__stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); padding: 1px 8px; border-radius: 6px; font-size: 0.66rem; font-weight: 700; color: #c0392b; background: rgba(255, 255, 255, 0.92); border: 1.5px solid #c0392b; white-space: nowrap; }
.pair-card__over { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.74rem; font-weight: 700; color: #4a5568; }
.pair-card__meta { margin: 0; font-size: 0.72rem; color: #3b4352; line-height: 1.6; }
.pair-card__meta b { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.04em; color: #1e2c45; }
.pair-card__meta .btn { margin-top: 2px; }
.pair-card__note { margin: 0; font-size: 0.66rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 1280px) { .shoot-cta { grid-auto-flow: row; } }

.snapbar { position: absolute; z-index: 7; left: 50%; bottom: 26px; transform: translateX(-50%); }
.btn--snap { flex-direction: column; gap: 0; padding: 10px 30px; border-radius: 16px; font-size: 1.05rem; line-height: 1.25; background: linear-gradient(180deg, #7cb0f5 0%, #4482dc 50%, #2a5fb0 100%); }
.btn--snap small { font-size: 0.68rem; opacity: 0.9; }
.btn--snap:not(:disabled) { animation: ready 2.4s ease-in-out infinite; }
.btn--snap:disabled { filter: grayscale(0.6); opacity: 0.6; animation: none; }
.comparebar { position: absolute; z-index: 7; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 16px; background: linear-gradient(145deg, rgba(253, 252, 250, 0.96), rgba(234, 231, 226, 0.96)); box-shadow: var(--emboss); white-space: nowrap; }
.comparebar .seg button { padding: 6px 14px; font-size: 0.85rem; }
.comparebar input[type="range"] { width: 90px; accent-color: var(--navy); }
.comparebar b { color: var(--blue-dark); }
.zoom { position: absolute; z-index: 7; right: 22px; bottom: 22px; display: grid; gap: 6px; }

/* パズル作成ツールバー（④ の図面のすぐ上に2段で常設） */
.pz-bar { position: absolute; z-index: 8; left: 12px; right: 12px; top: 78px; display: grid; gap: 5px; padding: 6px 8px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(253, 252, 250, 0.98), rgba(236, 233, 228, 0.98)); box-shadow: var(--raise); }
.pz-bar__row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pz-bar__row + .pz-bar__row { align-items: flex-start; }
.pz-bar__row + .pz-bar__row > .pz-bar__lbl, .pz-bar__row + .pz-bar__row > .btn { margin-top: 3px; }
.pz-bar__floor { flex: none; min-width: 34px; padding: 3px 8px; border-radius: 9px; text-align: center; font-size: 0.86rem; color: #fff; background: linear-gradient(180deg, #34507d, #1e2c45); box-shadow: 0 2px 5px rgba(30, 44, 69, 0.3); }
.pz-bar__lbl { flex: none; display: grid; line-height: 1.15; font-size: 0.74rem; font-weight: 700; color: #3b4352; }
.pz-bar__lbl small { font-size: 0.6rem; color: var(--muted); }
.pz-bar .stepper { flex: none; }
.pz-bar .stepper button { width: 24px; height: 24px; }
.pz-bar .stepper select { border: 0; background: none; font: inherit; font-weight: 700; font-size: 0.82rem; padding: 0 2px; color: #1e2c45; cursor: pointer; }
.pz-bar__sep { flex: none; width: 1px; align-self: stretch; margin: 2px 2px; background: rgba(120, 112, 100, 0.3); }
.pz-bar .well-input { padding: 5px 8px; font-size: 0.78rem; }
.pz-bar__name { flex: 1 1 150px; min-width: 110px; }
.pz-bar__area { position: relative; flex: none; width: 82px; }
.pz-bar__area input { padding-right: 24px !important; }
.pz-bar__area span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.72rem; color: var(--muted); }
.pz-bar .btn--xs { flex: none; white-space: nowrap; }
.pz-bar .seg--sm button { padding: 3px 8px; font-size: 0.7rem; }
.pz-pal { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; padding: 1px; }
.pz-pal .stamp { flex: none; height: 26px; padding: 0 7px; font-size: 0.68rem; gap: 3px; white-space: nowrap; line-height: 1; }
.pz-pal .stamp span { font-size: 0.86rem; }
.pz-bar__row + .pz-bar__row { align-items: center; }
.pz-bar__row + .pz-bar__row > .pz-bar__lbl, .pz-bar__row + .pz-bar__row > .btn { margin-top: 0; }
.pz-bar__row--pal .pz-bar__lbl small { display: none; }
@media (max-width: 1500px) {
  .pz-bar { gap: 4px; padding: 5px 7px; }
  .pz-bar__row { gap: 5px; }
  .pz-bar__row--pal > .pz-bar__lbl { display: none; }
  .pz-bar .well-input { padding: 4px 6px; font-size: 0.74rem; }
  .pz-bar__name { flex: 1 1 110px; min-width: 90px; }
  .pz-bar__area { width: 70px; }
  .pz-bar .btn--xs { padding: 4px 8px; font-size: 0.7rem; }
  .pz-bar .seg--sm button { padding: 3px 6px; font-size: 0.66rem; }
  .pz-bar > .pz-bar__row:first-child > .pz-bar__lbl { display: none; }
  .pz-bar .lng { display: none; }
  .pz-pal { gap: 3px; }
  .pz-pal .stamp { height: 24px; padding: 0 5px; font-size: 0.64rem; }
  .pz-pal .stamp span { font-size: 0.8rem; }
  .pz-bar__sep { display: none; }
}
.viewer--2d.is-pz .floor-tabs { top: 44px; }
.pz-edit { position: absolute; z-index: 9; display: flex; align-items: center; gap: 5px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 10px 26px rgba(30, 44, 69, 0.28), inset 0 0 0 1.5px rgba(176, 135, 58, 0.55); }
.pz-edit .well-input { padding: 5px 8px; font-size: 0.8rem; }
.pz-edit > .well-input { width: 130px; }
.pz-edit__del { color: #b42318; }

.compare { position: absolute; inset: 8px 8px 70px; display: grid; }
.compare__pane { grid-area: 1 / 1; position: relative; min-width: 0; min-height: 0; }
.compare__pane > svg { position: absolute; inset: 28px 4px 4px; width: calc(100% - 8px); height: calc(100% - 32px); }
.compare__tag { position: absolute; top: 2px; left: 6px; z-index: 2; padding: 2px 11px; border-radius: 999px; background: linear-gradient(180deg, #a0978a, #847b6f); color: #fff; font-size: 0.74rem; font-weight: 700; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.compare__tag.is-after { background: linear-gradient(180deg, #5b97ea, #2f68bd); }
.compare__before .photo-plan { transform: perspective(900px) rotateX(9deg) rotateY(-6deg) rotateZ(-2.5deg) scale(0.94); }
.compare.is-before .compare__after, .compare.is-after .compare__before { display: none; }
.compare.is-overlay .compare__before { z-index: 2; opacity: var(--before-op, 0.55); pointer-events: none; }
.compare.is-overlay .compare__before .compare__tag { left: auto; right: 6px; }
.shade { opacity: 0; transition: opacity 0.6s; }
.is-raw .shade, .photo-plan .shade { opacity: 1; }
.compare__after .shade { opacity: 0; }

.morph-layer { position: absolute; inset: 8px; z-index: 5; pointer-events: none; }
.morph-layer svg { width: 100%; height: 100%; }
.after-fade { position: absolute; inset: 8px; opacity: 0; transition: opacity 0.5s; }
.after-fade.is-in { opacity: 1; }
.after-fade > svg { width: 100%; height: 100%; }

.sheet-grid { position: absolute; inset: 10px 12px 84px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); grid-auto-rows: max-content; gap: 14px 12px; overflow: auto; padding: 8px 4px; }
.page-photo { margin: 0; transition: transform 0.7s cubic-bezier(.2, .9, .3, 1.2), opacity 0.6s, filter 0.6s; animation: shutter 0.35s ease-out both; }
.page-photo .bookpage { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.page-photo.is-raw { transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)); filter: saturate(0.85) brightness(0.97); }
.page-photo.is-raw .bookpage { box-shadow: 8px 10px 18px rgba(30, 24, 14, 0.35); }
.page-photo figcaption { margin-top: 5px; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-align: center; }
.page-photo.is-plan figcaption { color: var(--blue-dark); }
.page-photo.to-vault { opacity: 0; }
@keyframes shutter { from { opacity: 0; transform: scale(1.12); filter: brightness(2.2); } }
.flybox { position: fixed; z-index: 80; pointer-events: none; transition: transform 0.75s cubic-bezier(.5, 0, .3, 1), opacity 0.75s; }
.flybox .bookpage { width: 100%; height: auto; display: block; }
#vault-btn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--navy); color: #fff; display: inline-grid; place-items: center; font-size: 0.72rem; }
#vault-btn.is-bump { animation: bump 0.35s; }

.complete {
  position: absolute; z-index: 8; right: 100px; top: 50px; width: 250px; padding: 16px; border-radius: 18px; text-align: center; display: grid; gap: 6px; justify-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 236, 232, 0.96)); box-shadow: var(--emboss); animation: pop 0.45s cubic-bezier(.3, 1.5, .5, 1);
}
.complete__pct { font-size: 2rem; font-weight: 700; color: var(--ok); line-height: 1; }
.complete__title { font-size: 1.05rem; font-weight: 700; color: #1e2c45; }
.complete__sub { font-size: 0.74rem; color: var(--muted); }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } }

/* ---------------- 共通データ箱のインジケーター ---------------- */

.link-ind {
  position: fixed; z-index: 30; left: 20px; bottom: 20px; width: 300px; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; cursor: pointer;
  padding: 10px 14px; border-radius: 16px; background: linear-gradient(145deg, var(--card-a), var(--card-b)); box-shadow: var(--emboss);
}
.link-ind__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #c3c9d2; box-shadow: var(--well); }
.link-ind.is-on .link-ind__dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(63, 127, 217, 0.18); animation: blink 2s infinite; }
.link-ind.is-ready .link-ind__dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.2); }
.link-ind.is-alert .link-ind__dot { background: var(--red); box-shadow: 0 0 0 4px rgba(214, 40, 59, 0.2); }
.link-ind__text { display: grid; gap: 1px; min-width: 0; }
.link-ind__text b { font-size: 0.8rem; color: #1e2c45; }
.link-ind__text span { font-size: 0.7rem; color: var(--muted); line-height: 1.35; }
.link-ind.is-on .link-ind__text b { color: var(--blue-dark); }
.link-ind.is-ready .link-ind__text b { color: #1f7a45; }

.dialog { border: 0; border-radius: 20px; padding: 22px; width: min(560px, 92vw); background: linear-gradient(145deg, var(--card-a), var(--card-b)); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }
.dialog::backdrop { background: rgba(20, 28, 40, 0.35); backdrop-filter: blur(2px); }
.dialog h2 { font-size: 1.05rem; margin-bottom: 4px; }
.dialog > .btn { margin-top: 14px; }
.dialog--wide { width: min(860px, 94vw); max-height: 88vh; }
.vault-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.vault-list figure { margin: 0; font-size: 0.78rem; color: var(--muted); }
.vault-list .bookpage { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: var(--raise); }
.ledger { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; margin-top: 12px; }
.ledger__sec { padding: 12px; border-radius: 14px; background: #f1f0ec; box-shadow: var(--well); min-width: 0; }
.ledger__sec h3 { font-size: 0.85rem; margin: 0 0 8px; color: #1e2c45; }
.ledger__kv { display: grid; gap: 4px; }
.ledger__kv div { display: grid; grid-template-columns: 112px 1fr; gap: 6px; font-size: 0.76rem; }
.ledger__kv dt { color: var(--muted); font-weight: 700; }
.ledger__kv dd { font-weight: 700; word-break: break-all; }
.ledger__spots { list-style: none; padding: 0; display: grid; gap: 3px; max-height: 44vh; overflow: auto; }
.ledger__spots li { display: grid; grid-template-columns: 22px 30px 1fr auto auto; gap: 6px; align-items: center; font-size: 0.76rem; padding: 3px 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.7); }
.ledger__spots small { color: var(--muted); }
.ledger__spots code { font-size: 0.66rem; color: #6b7280; }
.ledger__spots i, .ledger__legend i { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 0.66rem; font-weight: 700; }
.pin-patrol i { background: #1f9d55; }
.pin-check i { background: #3f7fd9; }
.pin-repair i { background: #e07b14; }
.pin-urgent i { background: var(--red); animation: blink 1s infinite; }
.ledger__legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 0.72rem; color: var(--muted); }
.ledger__legend span { display: inline-flex; align-items: center; gap: 4px; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: 70vw; padding: 10px 18px; border-radius: 14px; font-size: 0.85rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, #33476a, #1e2c45); box-shadow: 0 10px 24px rgba(30, 44, 69, 0.4); }

/* ---------------- 法定点検期日（画面1） ---------------- */
.law-wrap { max-height: 60vh; overflow: auto; margin-top: 8px; }
.law-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.law-table th, .law-table td { padding: 6px 7px; border-bottom: 1px solid #e3e1dc; text-align: left; vertical-align: middle; }
.law-table th { font-size: 0.72rem; color: var(--muted); }
.law-table small { color: var(--muted); font-weight: 700; }
.law-table .well-input { width: 148px; padding: 6px 8px; font-size: 0.8rem; }
.law-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: #fff; background: #8a93a3; white-space: nowrap; }
.law-chip.lv-month { background: #1f9d55; } .law-chip.lv-ten { background: #2c63b5; } .law-chip.lv-five { background: #f5d33b; color: #4a3a00; } .law-chip.lv-eve { background: #d6283b; } .law-chip.lv-over { background: #a3101f; }
.law-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }

/* ① 外枠の手での微調整（タップでえらぶ・ふちをドラッグ・正面の辺をタップ） */
.map__over .nb { touch-action: none; }
.map__over .tg-real { fill: none; stroke: rgba(255, 176, 32, 0.85); stroke-width: 1.4; stroke-dasharray: 3 3; pointer-events: none; }
.map__over .tg[data-h] { cursor: move; }
.map__over .tg-h { cursor: grab; }
.map__over .tg-h circle { fill: rgba(255, 255, 255, 0.92); stroke: #2d6cdf; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.map__over .tg-h .dot { fill: #2d6cdf; stroke: none; filter: none; }
.map__over .tg-h.is-front circle { stroke: #ffb020; }
.map__over .tg-h.is-front .dot { fill: #ffb020; }
.map__over .tg-rot { cursor: grab; }
.map__over .tg-rot circle { fill: #1e2c45; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.map__over .tg-rot text { fill: #fff; font-size: 14px; font-weight: 800; pointer-events: none; }
.ol-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 700; color: #1e2c45; min-width: 0; }
.ol-bar[hidden] { display: none; }
.ol-num, .ol-road { display: inline-flex; align-items: center; gap: 4px; }
.ol-num input { width: 4.2em; }
.ol-road { flex: 1 1 auto; min-width: 0; } .ol-road input { width: 100%; min-width: 4em; }
.ol-bar input { font: inherit; font-weight: 700; padding: 3px 5px; border: 0; border-radius: 8px; background: #fff; box-shadow: var(--press); color: inherit; }
.ol-bar button { font: inherit; cursor: pointer; border: 0; border-radius: 9px; padding: 3px 7px; white-space: nowrap; color: #1e2c45; background: linear-gradient(145deg, #fff, #ebe8e3); box-shadow: var(--raise); touch-action: manipulation; }
.ol-bar button:disabled, .ol-bar input:disabled { opacity: 0.45; cursor: default; }
.ol-rot { display: inline-flex; gap: 3px; }
.ol-src { display: none; }
/* iPad・スマホ：地図・3D・平面図をドラッグしてもページがスクロールしない */
#model-view, #plan-view, .stage, .map, #plateau-view { touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.live { grid-template-rows: auto minmax(0, 1fr) auto auto; }
/* ① 地図は外枠を指で合わせる場所なので、低い画面（iPad 横向き・HP のデモ枠）でも高さを確保する */
.col--mid { grid-template-rows: minmax(320px, 1.45fr) minmax(190px, 0.85fr) auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.map { min-height: 150px; }

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

/* ③ 3D：完成度（育成度）はタイトル横の1行ピルにし、3D の描画領域はヘッダーの下に独立させる（立体図・前面道路の文字に重ねない） */
.viewer--3d .growth {
  top: 8px; right: 16px; left: auto; width: auto; max-width: 62%;
  padding: 4px 10px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden;
}
.viewer--3d .growth__head { flex: none; gap: 6px; align-items: baseline; font-size: 0.7rem; white-space: nowrap; }
.viewer--3d .growth__head b { font-size: 0.95rem; line-height: 1; }
.viewer--3d .growth__bar { flex: none; width: 56px; height: 7px; margin: 0; }
.viewer--3d #growth-note { flex: 1 1 auto; min-width: 0; font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer--3d .stage--3d { top: 42px; }
.viewer--3d .floor-stack { top: 50px; right: 14px; }
/* 幅が狭いときは、説明文を省いて「完成度 0% ▬」だけにする */
@media (max-width: 1280px) { .viewer--3d #growth-note { display: none; } }
@media (max-width: 1280px) {
  .viewer--3d .growth__head > span { display: none; }
  .viewer--3d .growth__head::before { content: "完成度"; }
}

/* ③ 3D：寸法チップは小さく、3D内の文字や「向きを戻す」ボタンに重ならない位置に */
.viewer--3d .chip--br { right: 64px; bottom: 22px; font-size: 0.66rem; padding: 3px 9px; background: rgba(255, 255, 255, 0.78); pointer-events: none; }
.viewer--3d.has-shape .chip--br { bottom: calc(var(--shape-h, 0px) + 22px); }
.viewer--3d .chip--bl { font-size: 0.68rem; padding: 3px 9px; pointer-events: none; }
/* 「向きを戻す」ボタンが下の操作バー（18・19・20）に隠れて押せなかったのを直す：バーの上に出す */
.viewer--3d.has-shape .viewer__tools { bottom: calc(var(--shape-h, 0px) + 16px); }

/* ④ 横長表示（長い辺を横に）：奥側（背面側）の案内は右上 */
.compass-tag.is-bottom.is-land { left: auto; right: 22px; bottom: auto; }

/* 建物名・住所を入れる前の初期画面：② 紺地・③ グリッドに X・Y・Z の座標軸だけ */
.blank3d .axis { stroke-width: 3px; vector-effect: non-scaling-stroke; opacity: 0.95; }
.blank3d .ax-x { stroke: #e2475a; }
.blank3d .ax-y { stroke: #27b067; }
.blank3d .ax-z { stroke: #3d7ff0; }
.blank3d .axl { font-weight: 800; paint-order: stroke; stroke-width: 500px; stroke-linejoin: round; }
.blank3d .axl-x { fill: #e2475a; }
.blank3d .axl-y { fill: #27b067; }
.blank3d .axl-z { fill: #3d7ff0; }
.plateau.blank3d .axl { stroke: #0b1a33; }
.model.blank3d .axl { stroke: #ffffff; }
.blank-note { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #1e2c45; background: rgba(255, 255, 255, 0.92); box-shadow: var(--raise); white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.stage-note.is-blank { bottom: auto; top: 50%; transform: translate(-50%, -50%); white-space: normal; text-align: center; max-width: min(90%, 460px); }
.chip-btn.chip-blank { font-weight: 800; }

/* 初期入力モード画面（①〜④）：左列の手順の見出しと、④ QRコード */
.s1-step { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 6px; font-size: 0.78rem; font-weight: 800; line-height: 1.45; color: #1e2c45; }
.s1-step:first-of-type { margin-top: 4px; }
.s1-step__no { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 0.8rem; color: #fff; background: linear-gradient(180deg, #4d88dd, #2f68bd); box-shadow: 0 1px 3px rgba(44, 99, 181, 0.4); }
.s1-step.is-done .s1-step__no { background: linear-gradient(180deg, #3fae6e, #23854f); }
.s1-step__st { margin: 0 0 8px 28px; padding: 6px 9px; border-radius: 10px; font-size: 0.68rem; line-height: 1.5; color: #4b5563; background: rgba(255, 255, 255, 0.6); box-shadow: var(--well); }
.s1-step__st.is-ok { color: #1f7a45; background: #eaf7ef; }
.s1-qr { display: grid; gap: 8px; }
.s1-qr__box { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: #fff; box-shadow: var(--well); }
.s1-qr__box[hidden] { display: none; }
.s1-qr__code { width: 112px; height: 112px; image-rendering: pixelated; }
.s1-qr__box.is-expired .s1-qr__code { opacity: 0.25; }
.s1-qr__meta { margin: 0; font-size: 0.66rem; line-height: 1.55; color: #4b5563; overflow-wrap: anywhere; }
.s1-qr__meta b { color: #1e2c45; }
.s1-qr__routes { margin: 0; padding-left: 1.1em; font-size: 0.68rem; line-height: 1.55; color: #4b5563; }
.s1-qr__routes li + li { margin-top: 3px; }
.s1-qr__note { margin: 0; font-size: 0.62rem; line-height: 1.5; color: #8a5a00; }
.s1-qr__note:empty { display: none; }
a.btn[hidden] { display: none; }

/* 全国建物DB（bldg-db/1）の接続と照合モード */
.sources .is-off i { background: #9aa3b2; }
#ro-dbmode.is-3d { color: #2f6cc4; font-weight: 700; }
#ro-dbmode.is-2d { color: #b45309; font-weight: 700; }
.s1-step.is-focus { animation: s1focus 1s ease-out 3; border-radius: 8px; }
@keyframes s1focus { 50% { box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.6); background: #fff6d6; } }
/* 公的データの印：4つ（国土地理院・PLATEAU・全国建物DB・気象庁）を1行に。幅が足りないときは詰める */
.sources li { white-space: nowrap; flex: none; }
@media (max-width: 1600px) { .sources { gap: 4px; margin-left: 8px; } .sources li { padding: 3px 7px; gap: 4px; font-size: 0.68rem; } }

/* AIサポート「信三」の問いかけ（③の入力のすぐ下） */
.s1-shinzo { display: grid; gap: 6px; margin: 0 0 8px 28px; }
.s1-shinzo__item { padding: 7px 9px; border-radius: 10px; background: #fff7e8; box-shadow: inset 0 0 0 1.5px #f2b705; }
.s1-shinzo__item.is-note { background: #f1f5fb; box-shadow: inset 0 0 0 1px #c9d6ea; }
.s1-shinzo__item p { margin: 0 0 5px; font-size: 0.7rem; line-height: 1.55; color: #3b2f05; font-weight: 700; }
.s1-shinzo__item.is-note p { color: #2c4f86; font-weight: 400; margin: 0; }
.s1-shinzo__acts { display: flex; flex-wrap: wrap; gap: 5px; }
.s1-shinzo__acts:empty { display: none; }

/* ④ QR：信三・丁寧サポート枝＋部屋明細 */
.s1-qr__opt { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 2px; font-size: 0.72rem; font-weight: 700; color: #1e2c45; cursor: pointer; }
.s1-qr__opt input { margin-top: 2px; }
.s1-qr__rooms { margin: 0 0 6px; padding: 6px 9px; border-radius: 10px; font-size: 0.68rem; line-height: 1.55; color: #1f7a45; background: #eaf7ef; }
.s1-qr__rooms:empty { display: none; }
.s1-qr__rooms.is-off { color: var(--muted); background: #f1f0ec; }

/* 平面図をつくる2つの方法の再現精度（二択の精度バッジ） */
.s1-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.s1-acc__card { display: grid; gap: 3px; align-content: start; padding: 9px 10px; border-radius: 12px; background: #fff; box-shadow: var(--raise); }
.s1-acc__card b { font-size: 0.74rem; color: #1e2c45; line-height: 1.35; }
.s1-acc__pct { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 0.86rem; font-weight: 800; color: #fff; }
.s1-acc__card.is-a .s1-acc__pct { background: linear-gradient(180deg, #4e8fe8, #2357a3); }
.s1-acc__card.is-b .s1-acc__pct { background: linear-gradient(180deg, #3fae6e, #1f7a45); }
.s1-acc__card small { font-size: 0.66rem; font-weight: 700; color: #3b4352; }
.s1-acc__card p { margin: 2px 0 0; font-size: 0.64rem; line-height: 1.55; color: #4b5563; }
.s1-acc-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 8px 28px; font-size: 0.66rem; font-weight: 700; color: #3b4352; }
.s1-acc-mini--qr { margin: 4px 0 0; justify-content: center; }
.s1-acc-mini span.is-a b { color: #2357a3; } .s1-acc-mini span.is-b b { color: #1f7a45; }
.s1-acc-mini .vs { color: var(--muted); font-size: 0.6rem; }
/* ④ QR の枠：QR（左）と説明（右）、その下に切り替えボタンと再現精度を横いっぱいに */
.s1-qr__box { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
.s1-qr__box .s1-qr__code { width: 112px !important; height: 112px !important; }
.s1-qr__box > :not(.s1-qr__code):not(.s1-qr__meta) { grid-column: 1 / -1; }

/* ===== 2026-11-15 01:44 公開API LIVE 連動バッジ・② PLATEAU 3D の大型化・キキクル重ね合わせ ===== */
.live-badge { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #eef1f4; color: #4a5568; box-shadow: var(--well); }
.live-badge.is-live { background: #e6f6ec; color: #136c3a; }
.live-badge.is-mock { background: #f3f1ea; color: #6b5a2a; }
.live-badge.is-wait { background: #eef2fa; color: #2c4f8c; }
.metric .live-badge { margin-left: 6px; flex: 0 1 auto; min-width: 0; }
.live__foot .metric { display: flex; align-items: baseline; gap: 4px; min-width: 0; flex-wrap: wrap; }
.wx-badges { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.kk-layer { display: flex; gap: 3px; flex-wrap: wrap; }
.kk-layer button { flex: 1 1 auto; }
.t-hazard { opacity: 0.72; }

/* ② 建物の3D画面：主役として高さ 400px（以前の約2倍）。中の列はスクロール */
.col--mid { grid-template-rows: 340px max-content max-content; }
.live:has(#kk-layer) { grid-template-rows: auto auto auto minmax(150px, auto) auto; }
.live:has(#kk-layer) .wx { min-height: 150px; }
.live:has(#plateau-stage) { grid-template-rows: auto auto auto; }
.pl-stage { position: relative; height: 400px; min-height: 360px; }
.pl-stage #plateau-view { position: absolute; inset: 0; }
.pl-tools { position: absolute; z-index: 4; right: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 16px); }
.pl-tools button { font: inherit; font-size: 0.78rem; font-weight: 800; min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid rgba(143, 247, 234, 0.45); border-radius: 10px; color: #dffcf8; background: rgba(8, 24, 48, 0.78); cursor: pointer; touch-action: manipulation; }
.pl-tools button:hover { background: rgba(20, 60, 100, 0.9); }
.pl-tools .pl-full-btn { color: #0b1a33; background: linear-gradient(145deg, #a9fff4, #5fe3d3); border-color: transparent; }
.pl-zoom { position: absolute; z-index: 4; left: 10px; bottom: 8px; font-size: 0.7rem; font-weight: 800; color: #8ff3e8; background: rgba(8, 24, 48, 0.7); padding: 1px 8px; border-radius: 999px; pointer-events: none; }
/* 🔍 特大（全画面）表示 */
.card.is-full, .card.is-full:has(#plateau-stage) { position: fixed; z-index: 90; inset: 16px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; box-shadow: 0 30px 80px rgba(6, 15, 32, 0.55); }
.card.is-full .pl-stage { height: auto; min-height: 0; }
body.pl-full-open::after { content: ""; position: fixed; inset: 0; z-index: 89; background: rgba(6, 15, 32, 0.55); }
.wx__stats dd { max-width: 150px; }

/* 10秒LIVE更新：統合ステータス帯は中の列の一番上に貼り付け、HUD は PLATEAU 3D の四隅に */
.lc-host { position: sticky; top: 0; z-index: 8; }
.col--mid { grid-template-rows: auto 410px max-content max-content; }
.live__head { flex-wrap: wrap; row-gap: 4px; }
.lc-subhead { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.8rem; color: #1e2c45; }
.pl-hud { position: absolute; z-index: 5; margin: 0; max-width: 62%; padding: 3px 9px; border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.66rem; font-weight: 700; line-height: 1.4; color: #b8fff5; background: rgba(6, 18, 38, 0.62); box-shadow: 0 0 0 1px rgba(95, 227, 211, 0.35), 0 0 12px rgba(95, 227, 211, 0.25); text-shadow: 0 0 6px rgba(95, 227, 211, 0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; animation: hud-glow 2.4s ease-in-out infinite; }
.pl-hud--tl { left: 8px; top: 48px; }
.pl-hud--bl { left: 8px; bottom: 8px; }
.pl-hud--br { right: 8px; bottom: 8px; max-width: 46%; }
.pl-hud.is-alert { color: #ffd0d6; text-shadow: 0 0 6px rgba(255, 59, 78, 0.9); box-shadow: 0 0 0 1px rgba(255, 59, 78, 0.6); }
.pl-zoom { left: 10px; top: 14px; bottom: auto; }
.pl-stage .pl-hud--bl { max-width: 40%; }
@keyframes hud-glow { 50% { box-shadow: 0 0 0 1px rgba(95, 227, 211, 0.6), 0 0 18px rgba(95, 227, 211, 0.45); } }
.pl-hud--tl { max-width: calc(100% - 16px); white-space: normal; }
/* 枝分かれ式：えらんだ方法（A＝竣工図の撮影／B＝ブロックパズル）の先だけを見せる */
.mode-change { display: none; font: inherit; font-size: 0.72rem; font-weight: 700; justify-self: start; padding: 4px 10px; border: 0; border-radius: 8px; background: #eef2f8; color: #1f4f96; cursor: pointer; }
body[data-route] .mode-change { display: inline-block; }
/* v23：二択ではなく「ブロックパズル一択＋精度を上げる竣工図照合」。どちらの経路でも両方を出す（照合は小さな補助ボタン） */
.mode--acc { margin-left: 18px; margin-top: -4px; padding-top: 8px; padding-bottom: 8px; border-style: dashed; background: #fafbfd; }
.mode--acc::before { content: "↳"; position: absolute; left: -16px; top: 10px; color: #8a90a6; font-weight: 700; }
.mode--acc b { font-size: 0.8rem; }
body[data-route="A"] .s1-acc__card.is-b, body[data-route="B"] .s1-acc__card.is-a { display: none; }
body[data-route="A"] .s1-acc, body[data-route="B"] .s1-acc { grid-template-columns: minmax(0, 1fr); }
body[data-route="A"] .s1-acc-mini .is-b, body[data-route="B"] .s1-acc-mini .is-a, body[data-route] .s1-acc-mini .vs { display: none; }
.s1-acc__note { margin: 6px 0 0; font-size: 0.68rem; line-height: 1.55; color: #6b4a00; background: #fff7e0; border-radius: 8px; padding: 5px 8px; }
.s1-acc__note--b { color: #1f4f96; background: #eef4ff; }
.s1-to-b { font: inherit; display: block; width: 100%; margin-top: 6px; padding: 7px 9px; border: 1px dashed #2c63b5; border-radius: 10px; background: #fff; color: #1f4f96; font-size: 0.7rem; font-weight: 800; line-height: 1.45; text-align: left; cursor: pointer; }
.s1-to-b:hover { background: #eef4ff; }
.s1-acc__mix { margin: 5px 0 0; font-size: 0.66rem; line-height: 1.5; color: #1f4f96; }
/* ④ この先をどの端末で進めるか（枝①：この端末のまま・QR不要／枝②：別の端末・別の人へ） */
.s1-route2 { display: grid; gap: 8px; }
.s1-route2[hidden], .s1-here[hidden], .s1-other[hidden], .s1-share[hidden] { display: none !important; }
.s1-route2__q { margin: 0; font-size: 0.78rem; font-weight: 800; color: #1e2c45; }
.s1-big { font: inherit; display: grid; gap: 2px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 14px; border: 1px solid #d5dce8; background: #fff; cursor: pointer; }
.s1-big b { font-size: 0.82rem; color: #1e2c45; line-height: 1.4; }
.s1-big small { font-size: 0.68rem; color: var(--muted); }
.s1-big:hover { background: #f3f7fd; border-color: #b9cdee; }
.s1-big--here { border: 2px solid #2c63b5; background: linear-gradient(145deg, #f3f8ff, #e6efff); }
.s1-big--go { border-color: #2c63b5; }
.s1-here, .s1-other { display: grid; gap: 8px; }
.s1-here__lead { margin: 0; font-size: 0.72rem; font-weight: 700; color: #1f4f96; }
.s1-back { justify-self: start; }
.s1-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; }
/* スマホ幅（768px以下）でアクセスしているときは「この端末のまま」をいちばん強く */
@media (max-width: 768px) {
  .s1-big--here { padding: 16px 14px; box-shadow: 0 6px 18px rgba(44, 99, 181, 0.28); }
  .s1-big--here b { font-size: 0.98rem; }
  .s1-big--here::before { content: "おすすめ（スマホ1台で完結）"; justify-self: start; font-size: 0.66rem; font-weight: 800; color: #fff; background: #2c63b5; border-radius: 999px; padding: 1px 9px; }
}
.grade-row__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.72rem; font-weight: 700; }
.grade-row__pick small { flex: 1 1 100%; font-weight: 600; color: var(--muted); }
.prot-chip { font: inherit; font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; border: 1px solid #cfd6e2; background: #fff; cursor: pointer; }
.prot-chip[aria-pressed="true"] { color: #fff; border-color: transparent; }
.prot-chip.prot-B[aria-pressed="true"] { background: #1f9d55; } .prot-chip.prot-A[aria-pressed="true"] { background: #2c63b5; } .prot-chip.prot-S[aria-pressed="true"] { background: #1e2c45; }
/* ① 所有・管理の形（🏢 単独所有／🏛️ 区分所有） */
.own { display: grid; gap: 6px; margin: 8px 0 4px; }
.own__q { margin: 0; font-size: 0.74rem; font-weight: 800; color: #1e2c45; }
.own__pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.own__btn { font: inherit; display: grid; gap: 1px; text-align: left; padding: 7px 9px; border-radius: 12px; border: 1px solid #d5dce8; background: #fff; cursor: pointer; }
.own__btn b { font-size: 0.76rem; color: #1e2c45; } .own__btn small { font-size: 0.64rem; color: var(--muted); }
.own__btn[aria-pressed="true"] { border-color: #2c63b5; box-shadow: inset 0 0 0 1px #2c63b5; background: #f3f8ff; }
.own__sec { display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: #f6f8fb; }
.own__sec[hidden] { display: none; }
.own__lbl { margin: 0; font-size: 0.7rem; font-weight: 700; }
.own__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.own__list li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) 24px; gap: 4px; }
.own__list .well-input { font-size: 0.72rem; padding: 5px 7px; }
.own__del { border: 0; background: none; cursor: pointer; color: #a3101f; font-weight: 800; }
.own__note { margin: 0; font-size: 0.64rem; }
.own .btn--xs { justify-self: start; }
/* スマホ幅（768px以下）：3列をたてに並べ、ページ全体を上下にスクロール（スマホ1台で初期入力） */
@media (max-width: 768px) {
  body { overflow: auto; height: auto; }
  .layout { display: block; height: auto; padding: 4px 8px 80px; }
  .layout > .col { display: grid; gap: 12px; margin-bottom: 12px; padding-bottom: 0; overflow: visible; }
  .col--left, .col--mid, .col--right { grid-template-rows: none !important; }
  .col--right .viewer { min-height: 420px; }
  header.top { flex-wrap: wrap; height: auto; row-gap: 6px; padding: 6px 8px; }
  header.top > *:not(.brand) { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 768px) {
  .use-line, .grade-row, .grade-row__head, .grade-row__text { flex-wrap: wrap; white-space: normal; max-width: 100%; min-width: 0; }
  .grade-badge { white-space: normal; max-width: 100%; }
  .card { min-width: 0; max-width: 100%; }
}

/* ===== 2026-11-15 16:20 社長指示：初期入力モードのシンプル化（断捨離と主役の拡大） =====
   ・初期入力に関係しないもの（気象庁・キキクルの画面、LIVE更新の帯、全国建物DBの件数表示）は出さない。
   ・① 国土地理院の地図・② PLATEAU 3D（中央の列）と、③ 3D立体図・④ 各階の平面図（右の列）を大きく。
   ・スマホへ渡すQRコードを大きく。 */
#s1-db, #src-bldgdb, #src-jma, #lc-strip, .col--mid > article[aria-labelledby="wx-title"] { display: none !important; }
.layout { grid-template-columns: 290px minmax(340px, 0.8fr) minmax(0, 1.35fr); gap: 16px; }
@media (max-width: 1240px) { .layout { grid-template-columns: 260px minmax(300px, 0.8fr) minmax(0, 1.2fr); gap: 12px; } }
.col--mid { grid-template-rows: minmax(320px, 1.15fr) minmax(260px, 1fr); }
.col--right { grid-template-rows: minmax(0, 1fr) minmax(0, 1.1fr); }
#qr-canvas.s1-qr__code { width: 200px !important; height: 200px !important; }
.s1-qr__box { grid-template-columns: 200px 1fr; }

/* 5ステップ（js/screen1-gates.js）：いまのステップだけ開く */
.s1-gate { margin: 0 0 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.55); box-shadow: var(--raise); }
.s1-gate__head { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; text-align: left;
  padding: 11px 12px; min-height: 48px; font: inherit; font-weight: 800; font-size: 0.86rem; color: #1e2c45; border-radius: 14px; }
.s1-gate__head:focus-visible { outline: 3px solid #3f7fd9; outline-offset: 2px; }
.s1-gate__no { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 0.74rem; color: #fff; background: linear-gradient(180deg, #34507d, #1e2c45); }
.s1-gate__tt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.s1-gate__tt small { font-size: 0.66rem; font-weight: 700; color: #6b7487; }
.s1-gate.is-locked .s1-gate__head { cursor: not-allowed; opacity: 0.55; }
.s1-gate.is-locked .s1-gate__ok { background: none; font-size: 0.9rem; }
.s1-gate__lead { margin: 0 0 8px; font-size: 0.74rem; line-height: 1.6; color: #3b4352; }
.s1-gate__go { display: block; width: 100%; margin-top: 12px; min-height: 52px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 800; font-size: 0.92rem;
  color: #fff; background: linear-gradient(180deg, #3f7fd9, #2457a8); box-shadow: 0 6px 14px rgba(36, 87, 168, 0.35); }
.s1-gate__go.is-done { background: linear-gradient(180deg, #3fae6e, #23854f); box-shadow: 0 4px 10px rgba(35, 133, 79, 0.3); }
.s1-gate__go.is-done::after { content: "　✓ 済み"; }
.pz-size { display: inline-flex; gap: 4px; }
.s1-gate__ok { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; color: #fff; background: #c9cfd8; }
.s1-gate.is-done .s1-gate__ok { background: linear-gradient(180deg, #3fae6e, #23854f); }
.s1-gate.is-done .s1-gate__no { background: linear-gradient(180deg, #3fae6e, #23854f); }
.s1-gate.is-open { background: #fff; box-shadow: 0 0 0 2px #3f7fd9, var(--raise); }
.s1-gate__head::after { content: "▾"; flex: none; color: #6b7487; transition: transform .2s; }
.s1-gate.is-open .s1-gate__head::after { transform: rotate(180deg); }
.s1-gate__body { padding: 0 12px 12px; }
.s1-gate__body > .s1-step { display: none; }   /* 見出しはステップの見出しに置きかえ（is-done の判定には使い続ける） */
.s1-gate__body > .card__title { display: none; }
.s1-gate__next { display: none; width: 100%; margin-top: 10px; min-height: 44px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 800; font-size: 0.86rem;
  color: #fff; background: linear-gradient(180deg, #4f86d6, #2c63b5); box-shadow: 0 4px 10px rgba(44, 99, 181, 0.3); }

/* ブロックパズル中：④ 平面図を特大に、③ 3D立体図をその隣に（地図とPLATEAUは外枠を決めたあとなので隠す） */
body.is-puzzle .layout { grid-template-columns: 290px minmax(0, 1fr); }
body.is-puzzle .col--mid { display: none; }
body.is-puzzle .col--right { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); grid-template-rows: minmax(0, 1fr); }
body.is-puzzle .growth small { display: none; }
body.is-puzzle .growth { max-width: 58%; }
body.is-puzzle .pz-bar { top: 70px; padding: 10px 12px; gap: 8px; }
body.is-puzzle .pz-bar .stepper button { width: 36px; height: 36px; font-size: 1.1rem; }
body.is-puzzle .pz-bar .stepper select { font-size: 1rem; }
body.is-puzzle .pz-bar .well-input { padding: 9px 10px; font-size: 0.9rem; }
body.is-puzzle .pz-bar .btn--xs { min-height: 40px; padding: 0 14px; font-size: 0.86rem; }
body.is-puzzle .pz-pal { gap: 8px; }
body.is-puzzle .pz-pal .stamp { height: 42px; padding: 0 14px; font-size: 0.86rem; font-weight: 800; border-radius: 12px; border: 2px solid transparent; }
body.is-puzzle .pz-pal .stamp span { font-size: 1.15rem; }
.pz-pal .stamp[data-kind="wc"] { background: #e6f1ff; border-color: #8ab6ec; color: #1d4f91; }
.pz-pal .stamp[data-kind="ev"] { background: #efe8ff; border-color: #a996e0; color: #4b3a8f; }
.pz-pal .stamp[data-kind="stair"] { background: #fff1de; border-color: #f0b46a; color: #8a4f0c; }
.pz-pal .stamp[data-kind="pantry"] { background: #e3f6ee; border-color: #7ccaa6; color: #1f6b4a; }
.pz-pal .stamp[data-kind="machine"] { background: #f1f1f1; border-color: #b4b4b4; color: #3d3d3d; }
.pz-pal .stamp[data-kind="tank"] { background: #e0f6fb; border-color: #74c4d8; color: #145f73; }
.pz-pal .stamp[data-kind="ac"] { background: #e9f7e0; border-color: #9ccf7a; color: #3b6b1d; }
.pz-pal .stamp[data-kind="parking"] { background: #fde8ea; border-color: #ea9aa2; color: #8f2733; }

/* STEP 1 の追加項目（js/screen1-gate1.js） */
.g1x { display: grid; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(120, 112, 100, 0.35); }
.g1x__row { display: grid; gap: 5px; }
.g1x__row.is-locked { opacity: 0.45; }
.g1x__lbl { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 800; color: #1e2c45; }
.g1x__no { flex: none; min-width: 26px; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: 0.66rem; text-align: center; color: #fff; background: #34507d; }
.g1x__ids { display: grid; gap: 6px; }
.g1x .well-input { padding: 8px 10px; font-size: 0.82rem; }
.g1x__seg { display: flex; flex-wrap: wrap; gap: 6px; }
.g1x__seg--8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g1x__seg button { min-height: 36px; padding: 6px 10px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 800; color: #1e2c45; background: #eef1f5; box-shadow: var(--raise); }
.g1x__seg button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #3f7fd9, #2457a8); }
.g1x__seg button:disabled { cursor: not-allowed; }
/* STEP 1 の入力の 3D立体図への反映（js/screen1-gate1.js） */
.viewer--3d { position: relative; }
.g1-3d { position: absolute; z-index: 5; left: 14px; top: 56px; display: grid; grid-template-columns: 74px minmax(0, 180px); gap: 6px; align-items: start; pointer-events: none; }
.g1-3d__rose { width: 74px; height: 74px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.g1-3d__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.g1-3d__chip { font-size: 0.64rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.92); color: #1e2c45; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.g1-3d__chip.is-entr { color: #b4461b; } .g1-3d__chip.is-front { color: #b91c1c; } .g1-3d__chip.is-ev { color: #4b3a8f; } .g1-3d__chip.is-bsmt { color: #1f6b4a; }

/* 2026-11-15 22:28 社長指示：STEP 1 の正面辺・入口・EV を ③ 3D立体モデルの建物の中に描く */
.acrylic .mk3d line.mk-front { stroke: #dc2626; stroke-width: 4.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px rgba(220, 38, 38, 0.55)); }
.acrylic .mk3d line.mk-front--post { stroke-width: 2.5px; stroke-dasharray: 4 3; }
.acrylic .mk3d polygon.mk-ev { fill: rgba(124, 58, 237, 0.30); stroke: #6d28d9; stroke-width: 1.4px; }
.acrylic .mk3d polygon.mk-ev.top { fill: rgba(124, 58, 237, 0.55); }
.acrylic .mk3d polygon.mk-entr { fill: #f97316; stroke: #c2410c; stroke-width: 1.2px; }
.acrylic .mk3d polygon.mk-entr--side { fill: #ea580c; }
.acrylic .compass.mk-l-front { fill: #dc2626; }
.acrylic .compass.mk-l-entr { fill: #c2410c; }
.acrylic .compass.mk-l-ev { fill: #5b21b6; }
/* 手順の番号（開発用）は画面に出さない */
.step-no, .g1x__no { display: none !important; }

/* v24：STEP 1〜3 は公開データ領域（どなたでも体験可能） */
.s1-public { margin: 8px 0 4px; padding: 8px 10px; border-radius: 8px; background: #eaf6ee; border: 1px solid #b9e2c6; color: #14532d; font-size: 0.74rem; font-weight: 700; line-height: 1.6; }
/* v24：EV・階段・トイレを別々の離れた場所に複数置く（EV-1・EV-2） */
.pz-bar__row--multi { display: grid; gap: 4px; }
.pz-multi { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-multi__tip { margin: 0; font-size: 0.68rem; line-height: 1.5; color: #4a5068; }
