:root{font-family:-apple-system,BlinkMacSystemFont,'Noto Sans JP',sans-serif;color:#203f36;background:#f5f7f0;font-size:15px;line-height:1.75}*{box-sizing:border-box}body{margin:0}header,main{max-width:1200px;margin:auto;padding:22px}header{display:flex;justify-content:space-between;gap:15px}a{color:#205642}header>a:first-child{font-weight:850;letter-spacing:.1em;text-decoration:none}h1{font-size:clamp(27px,4vw,42px);line-height:1.5;margin:16px 0}h2{font-size:21px;margin:0 0 15px;line-height:1.5}h3{font-size:16px;margin:8px 0}p{margin:10px 0}h2 b{display:inline-grid;place-items:center;border-radius:50%;background:#e4efdf;width:32px;height:32px;margin-right:9px;font-size:17px}.eyebrow{font-size:12px;letter-spacing:.09em;font-weight:750}.lead{color:#5d7063}.notice{background:#fff4db;border-left:4px solid #b38d3b;padding:14px 18px;font-size:13px}.card{padding:24px;border:1px solid #dce3d6;border-radius:16px;background:#fff;margin:22px 0}.small{font-size:12px;color:#5f7066}button,input,select{font:inherit}button{min-height:44px;border:1px solid #b8cbbe;border-radius:9px;padding:8px 15px;background:#fff;color:#24533d;font-weight:700;cursor:pointer}button:disabled{opacity:.4;cursor:default}.primary{color:#fff;background:#205642}input:not([type=checkbox]):not([type=range]),select{min-height:44px;max-width:100%;padding:7px 10px;border:1px solid #bdcbbf;border-radius:7px;font-size:16px}input[type=file]{display:block;width:100%;margin:10px 0}input[type=checkbox]{width:18px;height:18px;vertical-align:middle}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:20px}.workspace>div{min-width:0}#paper-scroll{overflow:auto;background:#edf0eb;border:1px solid #d9e0d4;border-radius:10px;max-height:530px;min-height:250px}#paper{display:block;width:100%;height:auto;background:#fff;cursor:crosshair;touch-action:pan-x pan-y}#pdf-map{height:450px;border:1px solid #d9e0d4;border-radius:10px;background:#e9eee3}.actions{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.zoom-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:12px;margin:10px 0}.zoom-controls input[type=range]{width:100px;vertical-align:middle}.zoom-controls span{color:#6c786c;font-size:11px}#pdf-search{display:flex;gap:6px;margin:10px 0}#pdf-address{min-width:0;width:100%}[role=status]{font-size:13px;color:#385d46}#align-status{background:#edf4e8;padding:10px 14px;border-radius:8px}.confirm{display:block;background:#f2f6ee;padding:14px;border-radius:8px;margin-top:15px;font-size:14px}#check-area{border-top:1px solid #dee6da;padding-top:16px;margin-top:16px}.result .numbers{display:flex;flex-wrap:wrap;gap:22px;background:#204d3f;color:white;border-radius:12px;padding:22px}.numbers strong{display:block;font-size:32px;line-height:1.5}.numbers span{font-size:12px}.result table{width:100%;border-collapse:collapse;margin:18px 0;font-size:13px}.result td,.result th{padding:10px 8px;border-bottom:1px solid #dce3d6;text-align:left}.table-wrap{overflow:auto}.result .warning{background:#fff2d7;padding:13px}.formula{overflow-wrap:anywhere;font-size:13px}.pdf-pin{background:#205642;border:2px solid white;border-radius:50%;color:white;text-align:center;font-weight:bold;line-height:24px}.pdf-sheet-overlay{position:absolute;transform-origin:0 0;pointer-events:none;max-width:none!important}.leaflet-container{font:inherit}.leaflet-control button{padding:0}footer{display:flex;gap:24px;flex-wrap:wrap;padding:20px 0;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}:focus-visible{outline:3px solid #689c58;outline-offset:3px}@media(max-width:760px){header,main{padding:16px}.card{padding:17px}.workspace{grid-template-columns:1fr}.workspace h3{margin-top:16px}#pdf-map{height:390px}#paper-scroll{max-height:400px}h2{font-size:18px}.actions button{flex:1 1 140px}.result .numbers{gap:16px;padding:16px}.numbers strong{font-size:27px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

#pdf-search button{flex:none;white-space:nowrap} #paper-scroll{scroll-behavior:auto}

.scale-settings,.adjust-row,.move-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0}.scale-settings label{font-size:13px}.scale-field{display:inline-flex;align-items:center;gap:6px}.scale-field input{width:105px}.move-tabs button[aria-pressed=true]{background:#205642;color:#fff}.adjust-row{background:#f3f6f0;padding:12px;border-radius:9px;font-size:13px}.adjust-row label{display:flex;align-items:center;gap:9px}.adjust-row input{width:150px}.adjust-row output{min-width:45px}.moving-paper{cursor:grab!important}.moving-paper:active{cursor:grabbing!important}#pdf-map{height:560px}#paper-original{margin-top:20px}#paper-original summary{cursor:pointer;font-weight:700}#paper-scroll{max-height:500px}.step-three{margin-top:22px}.outline-actions{position:sticky;bottom:8px;background:rgba(255,255,255,.97);padding:10px;border:1px solid #dce3d6;border-radius:10px;z-index:500}#check-area{margin:8px 0;padding:0;border:0}@media(max-width:760px){#pdf-map{height:440px}.scale-settings>button{width:100%}.move-tabs{gap:6px}.move-tabs button{flex:1;font-size:12px;padding:8px}.adjust-row input{width:115px}.outline-actions{gap:6px;padding:8px}.outline-actions button{flex:1 1 40%;font-size:13px;padding:7px}.map-card{padding:12px}.adjust-row{gap:8px}.scale-settings{align-items:end}}

.wizard-path{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;font-size:13px}.wizard-path span{padding:8px 12px;background:#edf1e9;border-radius:20px}.wizard-path .current{background:#205642;color:#fff}#source-step{max-width:900px;margin:auto}#source-step #paper-scroll{max-height:620px}#align-status{position:sticky;top:0;z-index:600;border:1px solid #dce3d6}.crop-fields{display:flex;flex-wrap:wrap;gap:10px}.crop-fields input{width:80px}#adjust-controls{position:sticky;top:55px;z-index:550;background:#fff;padding:10px 0}#ocr-status{background:#edf4e8;padding:12px;border-radius:8px}#ocr-status:empty{display:none}#confirm-position{margin:12px 0}.wizard-path span.current{font-weight:700}@media(max-width:760px){#source-step #paper-scroll{max-height:460px}#adjust-controls{top:70px}.wizard-path{gap:4px;font-size:11px}.wizard-path span{padding:7px}.adjust-row{padding:8px}#adjust-controls>strong{font-size:13px}#pdf-map{height:430px}}
