:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;color:#202d37;background:#f3f5f6;--paper:#fff;--ink:#26343e;--line:#dce3e6;--reader-size:18px;--accent:#187665}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);border-radius:8px;padding:9px 12px;color:inherit;background:var(--paper);font-size:13px}button:hover:not(:disabled){border-color:var(--accent);background:#edf6f3}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #55b5a1;outline-offset:3px}input,select{min-width:0;color:inherit;background:var(--paper);border:1px solid var(--line);border-radius:7px;padding:9px 10px}input[type=checkbox]{accent-color:var(--accent)}[hidden]{display:none!important}.brand{height:76px;padding:0 36px;display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid var(--line)}.brand a{color:#172d37;font-weight:750;letter-spacing:-.5px;font-size:21px;text-decoration:none}.brand-icon{display:inline-flex;align-items:center;justify-content:center;background:#163d37;color:#fff;font-size:13px;width:44px;height:38px;border-radius:9px;margin-right:9px;letter-spacing:-1px}.privacy{font-size:12px;color:#287561}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:calc(100vh - 76px);max-width:1800px;margin:auto}.setup{padding:32px 26px;border-right:1px solid var(--line);background:#fafbfb}.eyebrow{font-size:10px;letter-spacing:2px;color:#71868a;font-weight:700;margin:0 0 16px}h1{font-size:25px;line-height:1.65;letter-spacing:-.7px;margin:0 0 12px}.intro{color:#65737d;font-size:13px;line-height:1.9;margin-bottom:24px}.drop{border:1.5px dashed #9abcb3;background:#f0f7f4;border-radius:12px;display:flex;position:relative;align-items:center;flex-direction:column;gap:9px;padding:23px 8px;cursor:pointer;color:#216a59}.drop.drag{background:#d7ede4}.drop:focus-within{outline:3px solid #55b5a1}.drop span:last-of-type{font-size:10px;color:#668079}.drop input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}.file-icon{font-size:30px}.filename{font-size:11px;color:#68777e;overflow-wrap:anywhere;line-height:1.6;margin:11px 0 22px}.options{display:grid;gap:15px}.options label{display:grid;gap:7px;font-size:12px}.options select{width:100%;font-size:13px}.range{display:grid;grid-template-columns:1fr 1fr;gap:12px}.range input{width:100%}.options .check{display:flex;align-items:center;gap:7px}.hint{font-size:11px;line-height:1.7;color:#75818a;margin:-7px 0 12px}.primary{background:#1c7564;color:white;border-color:#1c7564;font-weight:650}.primary:hover:not(:disabled){background:#135a4d;color:white}.setup>.primary,.setup>.secondary{width:100%;padding:13px}.secondary{margin-top:8px}#status{font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:#576c70}progress{width:100%;accent-color:#1c7564;margin-top:15px;height:7px}.textbutton{padding:4px 0;color:#287964;background:none;border:none;font-size:12px}.local-note{border-top:1px solid var(--line);padding-top:20px;margin-top:26px;font-size:11px;color:#75818a;line-height:1.9}.local-note strong{color:#506a66}.reading-area{min-width:0}.reader-toolbar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--paper);border-bottom:1px solid var(--line);padding:14px 24px;color:var(--ink)}.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:7px}.reader-toolbar input{width:150px;font-size:12px}.reader-toolbar select{font-size:12px;padding:8px}#summary{font-size:10px;letter-spacing:1px;margin-right:10px;color:#78888e}#matches{font-size:10px;white-space:nowrap}#download{color:#19745f;font-weight:600}#empty{text-align:center;padding:110px 24px;color:#77878d}.empty-glyph{font-family:Georgia,serif;display:inline-block;font-size:96px;line-height:1.2;letter-spacing:-9px;color:#b9cfc8;margin-bottom:24px}#empty h2{font-size:20px;font-weight:500;color:#536c6b}#empty p{font-size:13px;line-height:2}.steps{display:flex;justify-content:center;gap:26px;margin-top:48px;font-size:10px;letter-spacing:.5px}#reader{max-width:850px;margin:32px auto;padding:40px 56px 70px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:5px;font-size:var(--reader-size);line-height:1.95;overflow-wrap:anywhere}#reader>h1{font-size:1.5em;line-height:1.5;overflow-wrap:anywhere}#reader .document-info{font-size:12px;color:#75818a;margin-bottom:30px}.pdf-page{border-top:1px solid var(--line);padding-top:26px;margin-top:34px}.page-label{font-size:11px;font-weight:500;color:#7c8d93;letter-spacing:1px;margin:0 0 20px}.pdf-page p{margin:0 0 1em;white-space:pre-wrap}.pdf-page .heading{font-size:1.18em;font-weight:700}.source{font-size:12px;margin:20px 0;background:rgba(128,150,150,.06);border:1px solid var(--line);border-radius:7px;padding:10px}.source summary{cursor:pointer;color:#5f8178}.source img,.scan{display:block;width:100%;height:auto;margin:12px auto 0;background:white}.source a{color:inherit}.notice{font-size:12px;color:#8b6941;background:#f6f0e4;padding:12px 16px;border-radius:8px}mark{background:#ffe18b;color:#3a3222;border-radius:2px}body[data-theme=sepia]{--paper:#fbf4e6;--ink:#493c2d;--line:#e5dac7;background:#eae3d4}body[data-theme=dark]{--paper:#202a30;--ink:#e1e8ea;--line:#3e4a50;background:#172026}body[data-theme=dark] .reader-toolbar button:hover{background:#344740}body[data-theme=dark] #download,body[data-theme=dark] .source summary{color:#7fd4bd}body[data-theme=dark] .page-label,body[data-theme=dark] #reader .document-info,body[data-theme=dark] #summary{color:#a3b3b8}.setup,.brand,dialog{--paper:#fff;--ink:#26343e;--line:#dce3e6}dialog{border:1px solid #cedbd5;border-radius:14px;padding:26px;max-width:420px;width:90%}dialog::backdrop{background:#102b3666}dialog h2{font-size:20px}dialog p{font-size:13px;line-height:1.7}dialog label{display:grid;gap:9px;font-size:13px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.export-body .reader-toolbar{justify-content:center}.export-body #reader{min-height:80vh}.export-body .brand{justify-content:center;height:60px;font-size:13px}.export-body .document-info{font-size:12px}@media(max-width:1150px){.workspace{grid-template-columns:300px minmax(0,1fr)}.setup{padding:28px 20px}#reader{margin:20px;padding:30px}.reader-toolbar{padding:12px 20px}.toolbar-right{flex-wrap:wrap}}@media(max-width:720px){.brand{height:64px;padding:0 18px}.brand a{font-size:17px}.brand-icon{width:36px;height:32px;font-size:11px}.privacy{font-size:9px}.workspace{display:block}.setup{border-right:none;border-bottom:1px solid var(--line);padding:24px 20px}.setup h1{font-size:24px}.intro{margin-bottom:17px}.drop{padding:17px 8px}.options{gap:12px}.local-note{margin-top:18px;padding-top:13px}.local-note p{margin:6px 0}.reader-toolbar{padding:12px;gap:9px}.toolbar-left,.toolbar-right{flex-wrap:wrap}.toolbar-right{width:100%}.reader-toolbar input{flex:1;min-width:110px}.reader-toolbar button{padding:8px}#reader{margin:12px 8px;padding:24px 20px;border-radius:6px;font-size:var(--reader-size)}#empty{padding:50px 16px}.empty-glyph{font-size:72px}#empty h2{font-size:17px}.steps{gap:15px;margin-top:28px}.export-body #reader{margin:8px 0;border:none}.export-body .toolbar-right{width:auto}}@media print{.brand,.setup,.reader-toolbar,#empty{display:none}.workspace{display:block}#reader{border:none;max-width:none;padding:0;margin:0}.pdf-page{break-inside:auto}.source{break-inside:avoid}}.brand-tools{display:flex;align-items:center;gap:12px;min-width:0}.translate{font-size:12px;padding:7px 12px;color:#19745f;font-weight:600;white-space:nowrap}#translate-note{font-size:11px;color:#75818a;max-width:280px;line-height:1.4}#translate-note:empty{display:none}.pdf-figure{margin:18px 0 22px;text-align:center}.pdf-figure img{max-width:100%;height:auto;display:inline-block;border:1px solid var(--line);border-radius:4px;background:#fff;padding:2px}.export-body .brand{gap:16px;flex-wrap:wrap;height:auto;min-height:60px;padding:8px 18px}@media(max-width:720px){.brand{gap:8px}.brand-tools{gap:8px}#translate-note{max-width:160px;font-size:10px}.pdf-figure{margin:14px 0 18px}}@media(max-width:480px){.privacy{display:none}}
