/* app.css — 日影・斜線チェッカー独自の部品（共通の見た目は style.css＝天空率チェッカーと同じ） */
#status { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 80; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.seg2 button { margin: 0; padding: 9px 2px; font-size: 15px; }
.seg3 button.on { background: var(--green); color: #fff; }
.chkline { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 8px; cursor: pointer; }
button.mini { width: auto; margin: 0; padding: 5px 8px; font-size: 12px; flex: none; }
#btnSite.on, #btnRoad.on, #btnNorth.on { background: #7c3aed; border-color: #7c3aed; color: #fff; } /* なぞり中は紫（3D のなぞりの線と同じ色） */
.trow { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.trow input[type=range] { flex: 1; accent-color: var(--blue); }
#timeVal { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.rrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; padding: 4px 2px; border-bottom: 1px solid var(--line); }
.rrow .k { color: var(--dim); font-weight: 600; }
.rrow .v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rrow .v.ok { color: var(--green); } .rrow .v.ng { color: var(--red); } .rrow .v.na { color: var(--mute); font-weight: 600; }
#verdict.na { color: var(--dim); border-color: var(--panel-bd); background: var(--chip); }
#secBox { margin-top: 10px; }
#secSvg svg { width: 100%; height: auto; display: block; margin-top: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
#panel details { margin-top: 8px; font-size: 12.5px; } #panel details summary { cursor: pointer; color: var(--dim); }
#panel .vtab th, #panel .vtab td { padding: 3px 2px; font-size: 11.5px; }
.vgrid .vcell .ctl input { width: 100%; }
.dlabel.sh { color: #475569; font-size: 10.5px; }
.dlabel.iso { color: #b91c1c; font-size: 10.5px; }
.dlabel.line { color: #2a8282; }
.dlabel.lline { color: #1e40af; }  /* 5m/10mライン（線と同じ青） */
.dlabel.crit { color: #b91c1c; font-weight: 800; }
#ovLeg { margin: 6px 2px 0; font-size: 12.5px; color: #334155; display: flex; align-items: center; gap: 6px; } /* 斜線を超える部分の凡例（3D の橙）VOX#10359 */
#ovLeg[hidden] { display: none; }
#ovLeg .sw { display: inline-block; width: 14px; height: 10px; background: #f97316; opacity: .75; border-radius: 2px; }
.cmpLink { display: inline-block; margin: 6px 0 2px; font-size: 12.5px; color: #2A8282; text-decoration: underline; } /* 比較の測定面 VOX#10356 #10 */
.cmpLink[hidden] { display: none; }
.cmpLink.on { font-weight: 700; }
#resBody .rrow.cmp { margin-top: 4px; padding-top: 6px; border-top: 1px solid #e5e7eb; }
.dlabel.crit.ok { color: var(--green); } /* 斜線の余裕は結果の表と同じ色（赤は超過だけ） */
.dlabel.edge { color: #15803d; }
body.picking #viewport canvas { cursor: crosshair; }
#previewBox { position: fixed; inset: 0; z-index: 300; background: rgba(15,23,42,.55); display: flex; flex-direction: column; }
#previewBox[hidden] { display: none; }
.pvbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #1e293b; color: #fff; font-weight: 700; }
.pvbar button { width: auto; margin: 0; padding: 6px 16px; }
#pvPages { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
#pvPages svg { background: #fff; width: min(1400px, 96vw); height: auto; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.stephead[data-step="1"]::after { display: none; }
.stephead[data-step="1"] { cursor: default; }
#cursorTag { position: fixed; z-index: 260; pointer-events: none; background: #1f2937; color: #f8fafc; font-size: 12.5px; font-weight: 600; line-height: 1.4; padding: 3px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
#cursorTag[hidden] { display: none; }
#exportToast[hidden] { display: none; }
#labels, #exportToast, #navHint, #cursorTag { user-select: none; -webkit-user-select: none; }

#muSeg { grid-template-columns: 1fr 1fr; }

/* ボリュームチェックから開いたとき（建物の DXF だけを待つ） */
#backVol { display: block; margin: 0 0 8px; font-size: 13px; }
#backVol[hidden] { display: none; }
.dlabel.half { color: #94a3b8; font-weight: 400; } /* 時刻日影の 30 分の札は薄く */
/* 日影用の平均地盤面の算定（［算定］で開く・VOX#10082） */
#btnAg { margin-left: auto; align-self: center; }
#btnAg.on { background: var(--b3-teal, #3BA5A5); color: #fff; border-color: transparent; }
#agBlock { margin: 6px 0 4px; padding: 6px 6px 8px; border-left: 3px solid var(--b3-teal, #3BA5A5); background: #f3faf9; }
#agBlock .lrow { margin-top: 0; }
#agList .zfield { padding: 2px 4px; }
#agList .ctl { margin-top: 0; gap: 4px; }
#agList .ctl input { width: 100%; min-width: 0; }
#agList .agDel { padding: 2px 6px; font-size: 12px; }
input.agAuto { color: #2a8282; font-weight: 700; }

/* 自動に戻す（丸い矢印のボタン・VOX#10423）: 文字なし・合わせると「自動に戻す」 */
button.mini.iconBtn { width: 28px; height: 28px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
button.mini.iconBtn[hidden] { display: none; }
button.mini.iconBtn svg { width: 15px; height: 15px; }

/* 住所から緯度（［住所から］で開く。照合はブラウザ内だけ） */
#btnLatAddr { margin-left: auto; align-self: center; }
#btnLatAddr.on { background: var(--b3-teal, #3BA5A5); color: #fff; border-color: transparent; }
#latFrom { margin-top: 3px; font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#latFrom[hidden], #latAddr[hidden], #latAddrMsg[hidden] { display: none; }
#latAddr { margin-top: 6px; padding: 8px; border: 1px solid var(--panel-bd); border-radius: 6px; background: var(--field); }
#latAddr .ctl { margin-top: 0; gap: 6px; }
#latAddr .ctl input { flex: 1; min-width: 0; width: auto; }
#latAddr .ctl button { width: auto; margin: 0; padding: 6px 12px; font-size: 13px; flex: none; }
#latAddrMsg { margin-top: 6px; font-size: 12.5px; color: var(--red); }
#latAddrList { list-style: none; margin: 6px 0 0; padding: 0; }
#latAddrList:empty { display: none; }
#latAddrList li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 4px; font-size: 12.5px; border-top: 1px solid var(--line); cursor: pointer; }
#latAddrList li:last-child { border-bottom: 1px solid var(--line); }
#latAddrList li:hover, #latAddrList li:focus { background: var(--chip); outline: none; }
#latAddrList li .nm { min-width: 0; overflow-wrap: anywhere; }
#latAddrList li .la { color: var(--dim); flex: none; font-variant-numeric: tabular-nums; }
#latAddr .src { margin-top: 6px; font-size: 10.5px; line-height: 1.4; }
#latAddr .src span { display: inline-block; white-space: nowrap; } /* 狭い幅では「国土交通省」の前で折り返す */
#latAddr .src a { color: var(--dim); text-decoration: none; }
#latAddr .src a:hover { text-decoration: underline; }

/* 購入の最終確認・完了（天空率チェッカーの #buy・#done の写し・2026-11-21 VOX#10565） */
#buy { position: fixed; inset: 0; z-index: 310; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.45); }
#buy[hidden], #buy [hidden] { display: none; }
#buy .box { width: 480px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; background: var(--panel); border: 1px solid var(--panel-bd); border-radius: 12px; padding: 18px 20px 16px; box-shadow: var(--shadow); }
#buy .t { font-size: 16.5px; font-weight: 800; color: var(--txt); line-height: 1.4; }
#buy .buyTbl { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13.5px; color: var(--txt); }
#buy .buyTbl th { width: 5.5em; text-align: left; font-weight: 700; color: var(--mute); padding: 4px 8px 4px 0; vertical-align: top; white-space: nowrap; border-bottom: 1px solid var(--panel-bd); }
#buy .buyTbl td { padding: 4px 0; border-bottom: 1px solid var(--panel-bd); text-align: left; white-space: nowrap; }
#buy .buyTbl tr.sum td { font-weight: 800; font-size: 15px; }
#buy .terms { margin-top: 10px; height: min(240px, 30vh); overflow-y: auto; border: 1px solid var(--panel-bd); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; line-height: 1.6; color: var(--txt); background: var(--field); }
#buy .terms h2 { font-size: 13px; margin: 12px 0 4px; } #buy .terms :is(h1, h2.th1) { font-size: 15px; margin: 0 0 6px; } #buy .terms p, #buy .terms li { margin: 4px 0; } #buy .terms ul, #buy .terms ol { padding-left: 18px; }
#buy .terms:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
#buy .buyLinks { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; }
#buy .ck { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--txt); cursor: pointer; }
#buy .ck input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); cursor: pointer; }
#buy .row2 { margin-top: 14px; } #buy .row2 button { margin-top: 0; }
#buy .bl { margin: 10px 0 0; font-size: 14px; color: var(--txt); } #buy .bl.err { color: #b91c1c; font-size: 13px; }
#done { position: fixed; inset: 0; z-index: 320; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.45); } #done[hidden] { display: none; }
#done .box { width: 460px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--panel-bd); border-radius: 14px; padding: 28px 24px 20px; box-shadow: var(--shadow); text-align: center; }
#done .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--b3-teal); color: #fff; font-size: 34px; line-height: 56px; font-weight: 800; }
#done .t { font-size: 22px; font-weight: 800; color: var(--txt); line-height: 1.4; }
#done .id { font-size: 14px; color: var(--mute); }
#done .btn { display: block; width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
#done .btn[hidden] { display: none; }
#done button { width: 100%; }
#done .redl { width: 100%; display: flex; flex-direction: column; gap: 6px; } #done .redl[hidden] { display: none; }
#done .redl .rl { font-size: 14px; font-weight: 700; color: var(--txt); text-align: left; }
#done .redl .rs { font-size: 12px; color: #4b5563; text-align: left; }
#done .redl .row { display: flex; gap: 6px; }
#done .redl input { flex: 1; min-width: 0; box-sizing: border-box; padding: 7px 8px; font-size: 12px; border: 1px solid var(--panel-bd); border-radius: 6px; background: #fff; color: var(--txt); }
#done .redl button { width: auto; flex: none; padding: 7px 12px; font-size: 13px; }
#pvPages img { background: #fff; width: min(1400px, 96vw); height: auto; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
/* 価格（課金ON のときだけ・天空率チェッカーと同じ「一律¥1,100（税込）」） */
.stepprice { margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--mute); white-space: nowrap; }
.stepprice[hidden], .exportPrice[hidden] { display: none; }
.step[data-wrap="6"]:not(.todo) .stepprice { display: none; }
.exportPrice { margin-top: 5px; font-size: 12.5px; line-height: 1.4; color: var(--dim, #4b5563); text-align: center; white-space: nowrap; }
