:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#19263b;background:#f4f6f9;font-synthesis:none;line-height:1.65}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ee824c;outline-offset:4px}button{border:0}svg{width:22px;height:22px;flex-shrink:0}.topbar{height:83px;background:white;border-bottom:1px solid #e4e8ef;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,24px)}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:800;color:inherit;text-decoration:none;letter-spacing:.03em}.brand-icon{width:38px;height:38px;background:#19263b;color:#ff9c65;display:grid;place-items:center;border-radius:10px;font-size:33px;line-height:1}.brand-en{font-size:11px;letter-spacing:.15em;font-weight:600;color:#78818e;margin-left:10px}.local-tag{font-size:13px;display:flex;align-items:center;gap:8px;color:#536377}main{max-width:1240px;margin:auto;padding:42px 32px 0}.intro{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:32px;gap:20px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.2em;color:#8b4a27;margin:0 0 6px}h1{font-size:42px;letter-spacing:.01em;line-height:1.4;margin:0;font-weight:800}h1 span{position:relative;white-space:nowrap}h1 span:after{content:"";height:5px;background:#ffad7f;position:absolute;bottom:1px;left:0;right:0;z-index:-1}.lead{font-size:15px;color:#606d7e;margin:12px 0 0}.flow{display:flex;gap:12px;font-size:12px;color:#607086;margin:0 0 5px;white-space:nowrap}.flow b{color:#a7b0bb;font-weight:400}.workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:32px;align-items:start}.controls{padding:26px;background:#fff;border:1px solid #e1e6ee;border-radius:16px}.section-heading,.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}h2{font-size:17px;font-weight:750;margin:0}.step{color:#9ba5b3;font-size:13px;letter-spacing:.05em;font-weight:600;margin-right:12px}.text-button{color:#58677a;background:none;font-size:13px;padding:6px 0;text-decoration:underline;text-underline-offset:4px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.upload-card{border:1px solid #dce2ea;border-radius:11px;overflow:hidden;background:#fff}.card-top{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border-bottom:1px solid #e8ecf1;font-size:14px;font-weight:700}.card-top small{font-size:10px;color:#8b96a5;letter-spacing:.12em;font-weight:500}.upload-target{height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:#f8fafc;gap:5px;width:100%;color:#68768a;padding:12px}.upload-target svg{width:30px;height:30px;color:#8c9aab}.upload-target span{font-size:13px}.upload-target img{max-width:100%;max-height:100%;object-fit:contain}.upload-target.drag{background:#fff0e5;outline:2px dashed #dd885c;outline-offset:-3px}.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px}.card-actions button{background:#f0f3f7;color:#293a51;font-size:12px;padding:7px 0;border-radius:6px}.card-actions .edit{background:#19263b;color:white}.card-bottom{display:flex;justify-content:center;gap:13px;padding:0 10px 10px}.card-bottom button{font-size:12px}.hint{font-size:12px;color:#728093;margin:13px 0 0;line-height:1.8}.settings{border-top:1px solid #e8ecf2;margin-top:26px;padding-top:24px}.paper-tag{font-size:11px;font-weight:600;background:#f0f3f7;padding:3px 9px;border-radius:4px;color:#59697e}fieldset{border:0;margin:0;padding:0}legend{font-size:13px;margin-bottom:10px;color:#526174}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:10px}.segmented label{position:relative;cursor:pointer}.segmented input{position:absolute;opacity:0}.segmented span{display:flex;gap:10px;align-items:center;justify-content:center;padding:11px 6px;border:1px solid #dce2e9;border-radius:8px;color:#627087;font-size:20px;line-height:1.5}.segmented b{font-size:13px;font-weight:600}.segmented input:checked+span{background:#f0f3f8;border:1.5px solid #233a58;color:#19263b}.segmented input:focus-visible+span{outline:3px solid #ee824c;outline-offset:2px}.size-row{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-top:22px;font-size:13px}.size-row select{border:1px solid #dce2e9;padding:9px 8px;border-radius:6px;background:white;color:#283a52;max-width:65%;font-size:12px}.privacy{display:flex;gap:12px;background:#f5f7fa;border-radius:9px;margin-top:26px;padding:15px}.privacy svg{margin-top:2px;color:#738399}.privacy strong{font-size:12px;font-weight:650}.privacy p{font-size:12px;color:#748093;line-height:1.8;margin:4px 0 0}.preview-panel{background:#e9edf3;border:1px solid #e0e5ed;border-radius:16px;overflow:hidden}.preview-heading{padding:20px 24px 0;margin-bottom:16px}.preview-heading h2{font-size:14px}.preview-heading>span{font-size:12px;color:#69788d;font-variant-numeric:tabular-nums}.paper-stage{padding:0 25px 15px;display:flex;flex-direction:column;align-items:center}.paper{width:270px;max-width:100%;aspect-ratio:210/297;background:#fff;box-shadow:0 4px 18px #23334a14;position:relative;overflow:hidden}.paper canvas{width:100%;height:100%;display:block}.empty-preview{position:absolute;inset:0;display:flex;align-items:center;flex-direction:column;pointer-events:none;padding-top:45px;gap:23px}.empty-preview[hidden]{display:none}.placeholder-card{width:112px;height:71px;border:1px dashed #bdc7d4;border-radius:5px;display:grid;place-items:center;color:#a0aab8;font-size:12px;background:#fcfdff}.empty-preview p{font-size:10px;color:#97a3b2;text-align:center;margin-top:15px}.paper-dim{font-size:10px;letter-spacing:.1em;color:#8490a1;margin-top:12px}.output{background:#fff;padding:19px 24px 20px;border-top:1px solid #e2e7ef;display:grid;grid-template-columns:1fr;gap:10px}.output>p:first-child{text-align:center;font-size:12px;color:#69798b;margin:0 0 3px}.primary{background:#192b46;color:white;border-radius:8px;padding:13px 18px;font-size:14px;font-weight:650;display:flex;gap:10px;align-items:center;justify-content:center;transition:background .2s}.primary:not(:disabled):hover{background:#2c4668}.secondary{background:white;border:1px solid #cfd7e2;border-radius:8px;padding:10px 16px;font-size:13px;color:#35465c;font-weight:600}.secondary:not(:disabled):hover{background:#f2f5f9}.print-tip{text-align:center;font-size:10px;color:#7e8a9a;margin:3px 0 0}footer{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:28px 0 22px;color:#8b96a5;font-size:11px}footer span{font-weight:700;font-size:13px}footer p{margin:0}dialog{border:0;border-radius:16px;padding:24px;max-width:700px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);color:#19263b;overflow:auto;box-shadow:0 20px 90px #0003}dialog::backdrop{background:#111e35b0;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between}.dialog-header h2{font-size:21px}.icon-button{width:36px;height:36px;border-radius:50%;font-size:25px;background:#eff2f7;color:#38495e}.edit-help{font-size:13px;color:#66778c;margin:15px 0}.edit-stage{background:#172235;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center}.edit-stage canvas{display:block;width:100%;touch-action:none;cursor:crosshair}.edit-tools{display:flex;align-items:center;justify-content:space-between;margin-top:14px;gap:10px}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e1e6ee;margin-top:18px;padding-top:18px}.fine-adjust{margin-top:14px;font-size:12px;color:#5e6d82}.fine-adjust summary{cursor:pointer}.crop-inputs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:10px}.crop-inputs label{display:flex;flex-direction:column;gap:4px}.crop-inputs input{min-width:0;width:100%;padding:7px;border:1px solid #cdd6e1;border-radius:5px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#8b302f;color:white;padding:13px 20px;border-radius:10px;max-width:calc(100vw - 30px);z-index:100;font-size:14px}#printRoot{display:none}@media(min-width:1200px){.paper{width:285px}}@media(max-width:850px){.flow{display:none}.workspace{gap:20px}.controls{padding:20px}.upload-grid{gap:10px}.size-row{align-items:flex-start;flex-direction:column;gap:8px}.size-row select{max-width:100%;width:100%}.brand-en{display:none}main{padding:30px 20px 0}.intro{margin-bottom:26px}h1{font-size:35px}}@media(max-width:660px){.topbar{height:68px;padding:0 20px}.brand{font-size:20px;gap:9px}.brand-icon{width:31px;height:31px;font-size:27px}.local-tag{font-size:10px;gap:5px}.local-tag svg{width:16px}.workspace{grid-template-columns:1fr}.intro{margin-bottom:24px}.lead{font-size:13px}.controls{padding:20px}.upload-target{height:127px}.preview-panel{border-radius:12px}.paper{width:250px}.size-row{flex-direction:row;align-items:center}.size-row select{width:auto;max-width:65%}.output{padding:20px}.paper-stage{padding-bottom:18px}footer{align-items:flex-start}footer p{max-width:250px;font-size:10px}h1{font-size:36px}.crop-inputs{gap:8px}dialog{padding:18px}}@media print{@page{size:A4 portrait;margin:0}html,body{margin:0!important;padding:0!important;background:white!important;width:210mm!important;height:297mm!important;overflow:hidden!important}body>*{display:none!important}#printRoot{display:block!important;position:absolute;left:0;top:0;width:210mm;height:297mm}#printCanvas{display:block;width:210mm;height:297mm}}
[hidden]{display:none!important}.lead{font-size:16px}.text-button,.upload-target span,.card-actions button,.card-bottom button,legend,.segmented b,.size-row,.size-row select,.secondary,.output>p:first-child,.edit-help,.fine-adjust{font-size:14px}.hint,.privacy strong,.privacy p,.print-tip,.local-tag{font-size:12px}.edit-help{line-height:1.8}.primary{font-size:16px}@media(max-width:660px){.local-tag{font-size:11px}.lead{font-size:14px}.size-row{flex-direction:column;align-items:stretch}.size-row select{max-width:100%;width:100%}}

.back-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-10px 0 26px;font-size:14px}.back-nav a{color:#334e6c;text-decoration:none;font-weight:600}.back-nav a:hover{text-decoration:underline}.back-nav span{color:#758195;font-size:12px}.back-bottom{margin:28px 0 0;padding-top:22px;border-top:1px solid #dde4ed}@media print{.back-nav{display:none!important}}

.intro h1{font-size:36px;line-height:1.45}.intro .lead{font-size:15px;line-height:1.85}.guide{margin:48px 0 24px;padding:32px;background:white;border:1px solid #e1e6ee;border-radius:16px;line-height:1.9;font-size:16px}.guide-header h2{font-size:24px;line-height:1.6}.guide h2{scroll-margin-top:24px}.guide p{color:#56657a;margin:14px 0}.guide-nav{display:flex;flex-wrap:wrap;gap:10px 22px;border-top:1px solid #e4e9f0;border-bottom:1px solid #e4e9f0;padding:16px 0;margin:22px 0}.guide a{color:#264d77;text-underline-offset:4px}.guide section{margin-top:34px;scroll-margin-top:24px}.guide section h2{font-size:21px}.how-steps{padding-left:24px}.how-steps li{padding:0 0 12px 6px}.how-steps h3{font-size:17px;margin:14px 0 4px}.how-steps p{margin-top:4px}.spec-table{overflow-x:auto;margin:18px 0}.spec-table table{width:100%;border-collapse:collapse;font-size:14px}.spec-table caption{text-align:left;color:#69768b;font-size:13px;padding-bottom:8px}.spec-table th,.spec-table td{padding:13px 15px;border:1px solid #e0e6ee;text-align:left;vertical-align:top}.spec-table th{background:#f5f7fb;min-width:112px;font-weight:650}.guide details{border-bottom:1px solid #e1e7ef;padding:15px 0}.guide summary{font-size:16px;cursor:pointer;font-weight:650;line-height:1.8}.guide details p{padding-left:18px;font-size:15px}.guide .guide-credit{border-top:1px solid #e1e6ee;margin-top:28px;padding-top:20px;font-size:13px;color:#758195}.no-script{padding:16px;border:1px solid #dfb8a1;border-radius:8px}@media(max-width:660px){.intro h1{font-size:30px}.intro .lead{font-size:14px}.guide{margin-top:28px;padding:22px 18px}.guide-header h2{font-size:21px}.guide section h2{font-size:19px}.guide-nav{gap:12px 18px;font-size:14px}.spec-table th,.spec-table td{padding:10px}.spec-table th{min-width:90px}}

.fax-range{display:block;margin:19px 0;color:#35465c;font-size:14px}.fax-range>span{display:flex;justify-content:space-between;gap:12px;align-items:center}.fax-range output{font-variant-numeric:tabular-nums;background:#edf1f6;min-width:40px;text-align:center;border-radius:5px;padding:2px 6px}.fax-range input{display:block;width:100%;height:34px;margin:5px 0;accent-color:#233a58;cursor:pointer}.fax-range small{display:block;font-size:12px;color:#738195}.photo-preserve{background:#f4f6fa;border:1px solid #e0e6ee;border-radius:9px;padding:13px;margin:20px 0 12px}.photo-preserve strong{font-size:14px}.photo-preserve p{font-size:13px;color:#67778b;margin:5px 0 10px}.photo-preserve>div{display:flex;flex-wrap:wrap;gap:8px}.photo-preserve .secondary{padding:8px;font-size:13px}.photo-preserve #photoProtectionStatus{font-size:12px;margin:10px 0 0}.fax-note{font-size:12px;line-height:1.8;color:#765134;background:#fff7ef;padding:12px;border-radius:8px}.mode-badge{font-size:11px;font-weight:600;background:#fff;border-radius:4px;padding:3px 6px;margin-left:7px;color:#5a687b}.mode-badge.active{background:#192b46;color:white}.photo-compare{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.photo-compare figure{margin:0;min-width:0}.photo-compare figcaption{font-size:13px;color:#5e6e83;margin-bottom:8px}.photo-compare canvas{display:block;width:100%;background:#e9edf3;border:1px solid #cdd6e1;border-radius:4px}#photoOriginal{touch-action:none;cursor:crosshair}#photoEditor .fine-adjust .secondary{margin:12px 0}#removePhotoRegion{margin-top:12px}@media(max-width:480px){.photo-compare{grid-template-columns:1fr}.photo-compare figure{max-width:100%}.photo-preserve .secondary{flex:1}.preview-heading h2{font-size:13px}}

@media(min-width:661px){.preview-panel{position:sticky;top:16px}}

.entry-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.entry-grid a{padding:14px;border:1px solid #d6dce5;border-radius:10px;color:#19263b}.document-note{padding:16px;margin:0 0 20px;background:#fff4e8;border-radius:12px}.copy-sides{margin-bottom:16px}.copy-sides select{padding:10px;max-width:100%}@media print{.entry-links,.document-note,.copy-sides{display:none!important}}

.upload-card[hidden]{display:none!important}
