:root { color-scheme: dark; --background:#041022; --panel:#071a32; --line:#21416a; --muted:#9ab5d1; --text:#edf6ff; --cyan:#15e7ff; --blue:#42a4ff; font: 15px/1.5 "Yu Gothic UI", Meiryo, sans-serif; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(ellipse at 80% 60%,#092042 0, #041022 66%); color:var(--text); }
button,input,select { font:inherit; }
button { cursor:pointer; }
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible { outline:2px solid var(--cyan); outline-offset:3px; }
button[disabled] { opacity:.62; cursor:wait; }
[hidden] { display:none !important; }
.topbar { display:flex; align-items:center; gap:18px; padding:10px 22px; min-height:62px; border-bottom:1px solid var(--line); background:#06152a; }
.brand-mark { width:29px; height:16px; transform:skew(-24deg); border-radius:3px; background:linear-gradient(90deg,#e7fcff 0 42%, transparent 43% 56%,#399afa 57% 100%); }
.brand { font-size:17px; font-weight:700; white-space:nowrap; }
.current { padding:8px 4px; color:#c1f7ff; border-bottom:2px solid var(--cyan); white-space:nowrap; }
.spacer { flex:1; }
main { padding:19px 22px 22px; }
h1 { margin:0 0 15px; padding-left:15px; position:relative; font-size:clamp(24px,3vw,41px); letter-spacing:.025em; line-height:1.25; }
h1::before { content:""; position:absolute; left:0; width:6px; top:4px; bottom:3px; border-radius:2px; background:var(--cyan); }
h2,h3 { margin:0; }
h2 { font-size:18px; }
.workspace { display:grid; grid-template-columns:minmax(300px, 31%) minmax(0,1fr); gap:16px; min-height:635px; height:calc(100dvh - 157px); }
.sidebar { display:flex; flex-direction:column; gap:13px; min-width:0; min-height:0; }
.panel { background:linear-gradient(130deg,#0a203d,#06152b 85%); border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 30px #0003; }
.applicant { padding:13px 15px; }
.panel-title { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:11px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; }
label { display:grid; gap:3px; font-size:12px; color:#bbd1e8; min-width:0; }
select,input[type="time"],input[type="number"] { width:100%; padding:6px 7px; min-height:36px; color:var(--text); background:#071529; border:1px solid #3a587b; border-radius:6px; }
.across { grid-column:1/-1; }
.subtle { color:var(--muted); font-size:12px; }
.commute { margin-top:10px; font-size:12px; }
summary { cursor:pointer; color:#94d8fa; }
.commute .form-grid { margin-top:9px; }
.commute p { margin:6px 0 0; }
.button, .text-button { border:1px solid #345a82; border-radius:7px; padding:6px 11px; background:#0a213d; color:#e0f2ff; white-space:nowrap; }
.button:hover { border-color:#51d4f6; background:#0d3155; }
.primary { background:#06487b; border-color:#298bc2; }
.text-button { background:transparent; border:none; padding:3px 0; color:#96d0f3; font-size:12px; }
.candidates { flex:1; min-height:160px; padding:12px; display:flex; flex-direction:column; }
.results { overflow:auto; display:flex; flex-direction:column; gap:8px; padding:2px 2px 4px; }
.result { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; text-align:left; padding:10px 9px; border:1px solid #2b4b71; border-radius:9px; color:var(--text); background:linear-gradient(115deg,#0d2442,#091931); }
.result:hover { border-color:#60cbed; }
.result.selected { background:linear-gradient(115deg,#0466ae,#073153 85%); border-color:#1cddff; box-shadow:inset 0 0 16px #08bcfe33,0 0 8px #02d6ff38; }
.result-company,.result-title { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.result-company { font-weight:700; font-size:15px; }
.result-title { color:#b9cde1; font-size:12px; margin-top:1px; }
.score { justify-self:end; align-self:center; font-size:24px; line-height:1; font-weight:700; color:#9ceaff; padding:0 2px 0 8px; }
.score small { font-size:12px; }
.tags { display:flex; grid-column:1/-1; gap:4px; flex-wrap:wrap; margin-top:6px; }
.tag { padding:1px 6px; border:1px solid #335e83; border-radius:20px; color:#c8eafe; font-size:11px; }
.tag.pending { color:#ffe3a4; border-color:#7e6746; }
.empty { margin:10px 5px; color:var(--muted); font-size:13px; }
.map { overflow:hidden; position:relative; min-width:0; border-radius:11px; border:1px solid #1a3557; background:radial-gradient(ellipse at 52% 48%,#0b2943,#041127 71%); }
#terrain, #map-labels { position:absolute; inset:0; width:100%; height:100%; }
#terrain { cursor:grab; touch-action:none; }
#terrain:active { cursor:grabbing; }
#map-labels { pointer-events:none; }
.marker { position:absolute; transform:translate(-50%,-50%); border:1px solid #93d9ff; background:#48b2ff; border-radius:50%; width:13px; height:13px; pointer-events:auto; padding:0; box-shadow:0 0 10px #48b2ffaa; }
.marker.approx { border-style:dashed; }
.marker.selected { background:#e6ffff; border:2px solid #aafcff; width:19px; height:19px; box-shadow:0 0 0 11px #11d9ff35,0 0 18px 8px #21dcff; z-index:1; }
.leader { position:absolute; width:2px; background:#b5fbff; box-shadow:0 0 9px #2aeaff; pointer-events:none; transform-origin:bottom center; }
.bubble { position:absolute; z-index:3; display:flex; align-items:center; gap:10px; max-width:min(88%,370px); min-height:68px; padding:8px 11px; text-align:left; color:var(--text); border:1px solid #52eeff; border-radius:10px; background:#04192cee; box-shadow:0 0 20px #05d6fe64; }
.bubble-content { display:grid; min-width:0; }
.bubble strong { font-size:clamp(13px,1.6vw,20px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bubble small { color:#a8eaff; }
.thumbnail { width:70px; height:43px; flex:0 0 70px; display:grid; place-items:center; background:#113153; border:1px solid #365775; border-radius:5px; color:#a4daff; font-size:11px; overflow:hidden; }
.thumbnail img { width:100%; height:100%; object-fit:cover; }
.map-controls { position:absolute; top:12px; right:12px; display:flex; gap:7px; }
.map-controls button[aria-pressed="true"] { border-color:#52eeff; color:#acfaff; }
.map-note { position:absolute; left:13px; bottom:11px; color:#b7d2e9; background:#04172ee0; border:1px solid #2c4e70; padding:4px 8px; border-radius:5px; font-size:11px; pointer-events:none; }
.map-note i { display:inline-block; width:7px; height:7px; border-radius:50%; background:#52bafd; margin-right:3px; }
.map-note span { color:#597794; }
.zoom { position:absolute; right:12px; bottom:12px; display:grid; min-width:49px; background:#081b32; border:1px solid #548aae; border-radius:8px; overflow:hidden; text-align:center; }
.zoom button { border:0; background:transparent; color:#e5f8ff; font-size:24px; line-height:1.5; }
.zoom button:hover { background:#114675; }
.zoom output { padding:3px; border-block:1px solid #3a6487; font-size:12px; }
.notice { position:fixed; top:64px; right:22px; z-index:5; padding:9px 13px; background:#102b47; border:1px solid #55afcf; border-radius:7px; box-shadow:0 8px 24px #0009; }
dialog { width:min(calc(100% - 24px),650px); max-height:85vh; overflow:auto; background:#091d34; border:1px solid #4175a0; border-radius:12px; color:var(--text); padding:20px; }
dialog::backdrop { background:#020b18b0; }
.dialog-close { float:right; margin:0 0 10px 10px; }
.details-grid { display:grid; grid-template-columns:86px 1fr; gap:6px 12px; }
.details-grid dt { color:#a4c6e4; }
.details-grid dd { margin:0; overflow-wrap:anywhere; }
.job-description { line-height:1.7; font-size:13px; }
.site-form { border-top:1px solid #2e4c6a; margin-top:15px; padding-top:13px; }
.site-form h3 { margin:0 0 8px; font-size:15px; }
.site-form input[type="file"] { margin-bottom:7px; max-width:100%; }
#site-message { padding-left:8px; font-size:12px; }
#preview-items { max-height:220px; overflow:auto; font-size:13px; }
.dialog-actions { margin-top:14px; display:flex; gap:7px; flex-wrap:wrap; }
@media(max-width:760px) { .topbar { padding:8px 10px; gap:8px; } .brand,.current { display:none; } main { padding:12px; } .workspace { height:auto; grid-template-columns:1fr; } .candidates { max-height:330px; } .map { height:480px; } }

/* --- Web移植で追加（Leaflet連携） --- */
#leaflet-map { position:absolute; inset:0; width:100%; height:100%; background:#0b2943; }
.leaflet-container { font:inherit; }
.leaflet-control-attribution { background:#04172ee0 !important; color:#b7d2e9 !important; font-size:11px; padding:2px 6px; }
.leaflet-control-attribution a { color:#94d8fa !important; }
.mm-pin-wrap { background:transparent; border:none; }
.mm-pin { display:block; width:13px; height:13px; margin:1px; border:1px solid #93d9ff; background:#48b2ff; border-radius:50%; box-shadow:0 0 10px #48b2ffaa; }
.mm-pin.approx { border-style:dashed; border-color:#d9ecff; background:#2b7fc4; }
.mm-pin.selected { width:19px; height:19px; margin:0; background:#e6ffff; border:2px solid #aafcff; box-shadow:0 0 0 11px #11d9ff35,0 0 18px 8px #21dcff; }
.mm-popup .leaflet-popup-content-wrapper { background:#04192cee; border:1px solid #52eeff; border-radius:10px; box-shadow:0 0 20px #05d6fe64; color:var(--text); }
.mm-popup .leaflet-popup-tip { background:#04192c; border:1px solid #52eeff; }
.mm-popup .leaflet-popup-content { margin:0; line-height:1.5; }
.bubble-inner { display:flex; align-items:center; gap:10px; max-width:min(88vw,370px); min-height:68px; padding:8px 11px; text-align:left; color:var(--text); background:transparent; border:none; }
.map-controls, .map-note, .zoom { z-index:1001; }
