:root{color-scheme:light;--ink:#172538;--muted:#718096;--blue:#2869e8;--blue-dark:#1b54c4;--pale:#edf3ff;--line:#e2e8f0;--paper:#fff;--canvas:#f6f8fb;--mint:#dff3ed;--green:#147b60;--shadow:0 18px 55px rgba(34,58,94,.08);font-family:'DM Sans','Noto Sans JP',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);min-width:320px;font-size:16px;line-height:1.55}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(32px,calc((100vw - 1240px)/2));background:rgba(255,255,255,.9);border-bottom:1px solid #edf0f4}.brand{display:inline-flex;align-items:center;gap:11px;font-size:17px;letter-spacing:-.04em}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--blue);box-shadow:0 5px 12px rgba(40,105,232,.2)}.brand-mark svg{width:24px;height:24px;fill:#fff;stroke:var(--blue);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand-name b{font-weight:700}.topbar-right{display:flex;align-items:center;gap:20px}.local-badge{display:inline-flex;align-items:center;gap:8px;color:#536579;font-size:13px;font-weight:600}.local-dot{width:8px;height:8px;border-radius:50%;background:#1caa7c;box-shadow:0 0 0 3px #e4f5ef}.language-toggle{border:1px solid var(--line);background:#fff;color:#526176;border-radius:8px;padding:6px 10px;font-family:'DM Mono',monospace;font-size:12px;font-weight:500}.language-toggle:hover{border-color:#b6c9eb;color:var(--blue)}main{max-width:1240px;margin:0 auto;padding:60px 32px 80px}.hero{display:flex;align-items:center;justify-content:space-between;padding:16px 10px 50px}.hero-copy{max-width:760px}.eyebrow,.section-kicker{margin:0;color:var(--blue);font-family:'DM Mono',monospace;font-size:11px;font-weight:500;letter-spacing:.13em;text-transform:uppercase}.eyebrow{display:flex;align-items:center;gap:10px}.eyebrow-line{width:25px;height:1px;background:var(--blue)}h1,h2,h3,p{margin-top:0}.hero h1{font-size:clamp(38px,5.4vw,65px);line-height:1.16;letter-spacing:-.065em;margin:16px 0 12px;font-weight:700}.hero-subtitle{font-size:17px;color:#617186;max-width:650px;line-height:1.8;margin-bottom:0}.hero-stamp{display:flex;flex-direction:column;align-items:center;justify-content:center;width:144px;height:144px;border-radius:50%;border:1px solid #cad9f2;background:linear-gradient(145deg,#f8fbff,#eaf1ff);color:#4c71b3;transform:rotate(7deg);flex:none;margin:0 40px 0 30px}.stamp-top,.stamp-bottom{font-family:'DM Mono',monospace;font-size:8px;letter-spacing:.17em}.stamp-main{font-family:'DM Mono',monospace;font-size:22px;font-weight:500;line-height:1.05;text-align:center;color:var(--blue);margin:8px 0}.workspace{background:var(--paper);border:1px solid #e9edf3;border-radius:20px;box-shadow:var(--shadow);padding:30px}.workspace-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:23px}.workspace-heading h2{font-size:24px;letter-spacing:-.04em;margin:7px 0 0}.prototype-badge{display:inline-flex;align-items:center;border:1px solid #e2e8f2;background:#f8faff;border-radius:20px;padding:5px 11px;color:#718096;font-size:12px;font-weight:600}.dropzone{min-height:132px;border:1.5px dashed #aec3e9;border-radius:14px;background:linear-gradient(108deg,#f4f8ff,#f9fbff);display:flex;align-items:center;gap:18px;padding:21px 26px;transition:.2s ease;cursor:pointer}.dropzone:hover,.dropzone.is-over{border-color:var(--blue);background:#f0f5ff}.upload-icon{width:48px;height:48px;border-radius:14px;background:#e3edff;display:grid;place-items:center;color:var(--blue);flex:none}.upload-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.dropzone-copy{display:flex;flex-direction:column;gap:3px;flex:1}.dropzone-copy strong{font-size:16px}.dropzone-copy span{color:var(--muted);font-size:14px}.button{border:0;border-radius:9px;padding:11px 17px;font-size:14px;font-weight:700;transition:transform .15s ease,background .15s ease,box-shadow .15s ease}.button:not(:disabled):active{transform:translateY(1px)}.button-primary{background:var(--blue);color:#fff;box-shadow:0 5px 13px rgba(40,105,232,.16)}.button-primary:not(:disabled):hover{background:var(--blue-dark);box-shadow:0 7px 16px rgba(40,105,232,.22)}.button-secondary{background:#f3f6fa;color:#43546b;border:1px solid #e2e7ee}.button-secondary:not(:disabled):hover{background:#eaf0f8}.button-large{padding:13px 22px}.format-note{color:#8390a0;font-size:13px;margin:10px 2px 22px}.notice{margin:0 0 16px;border-radius:9px;padding:11px 14px;font-size:14px}.notice[data-kind="error"]{background:#fff0ef;color:#aa3d35}.notice[data-kind="warning"]{background:#fff7e7;color:#85601c}.notice[data-kind="success"]{background:#eaf8f2;color:#23785d}.notice[data-kind="info"]{background:#eff4ff;color:#4b648f}.editor-layout{display:grid;grid-template-columns:282px minmax(0,1fr);gap:18px}.file-panel,.pages-panel{border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}.file-panel{background:#fbfcfe;display:flex;flex-direction:column;min-height:322px}.pages-panel{background:#fbfcfe;min-height:322px}.panel-heading{height:59px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.panel-heading>div:first-child{display:flex;align-items:center;gap:9px;min-width:0}.panel-heading h3{margin:0;font-size:14px;font-weight:700;white-space:nowrap}.panel-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:7px;background:#eef2f7;color:#68778a;font-family:'DM Mono',monospace;font-size:11px}.icon-text-button,.text-button{border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:700;padding:5px}.icon-text-button:hover,.text-button:hover{color:var(--blue-dark)}.text-button.muted{color:#8994a3}.file-list{padding:9px;flex:1;min-height:210px}.empty-files,.empty-pages{height:100%;min-height:210px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:#96a2b2;font-size:13px}.empty-files p,.empty-pages p{margin:11px 0 0}.empty-file-icon{width:39px;height:46px;border:1px solid #cfd8e5;border-radius:7px;display:grid;place-items:center;background:#fff;color:#97a5b6;font-family:'DM Mono',monospace;font-size:10px;position:relative}.empty-file-icon:after{content:'';position:absolute;right:-1px;top:-1px;border-style:solid;border-width:0 0 10px 10px;border-color:transparent transparent #e3eaf3 transparent}.file-panel-foot{padding:10px 13px;border-top:1px solid #e9edf2;color:#8a96a5;font-size:11px;line-height:1.45}.file-item{display:grid;grid-template-columns:29px minmax(0,1fr) 25px;align-items:center;gap:8px;padding:10px 7px;border:1px solid transparent;border-radius:9px;background:#fff;margin-bottom:6px;box-shadow:0 1px 3px rgba(25,48,78,.04)}.file-item[draggable="true"]{cursor:grab}.file-item.is-dragging{opacity:.4}.file-item.drag-target{border-color:#7da4ee;background:#f4f8ff}.file-type-icon{width:29px;height:33px;border-radius:6px;display:grid;place-items:center;background:#fff0ef;color:#db5c52;font-family:'DM Mono',monospace;font-size:8px;font-weight:500}.file-type-icon.image{background:#e9f6ef;color:#328463}.file-item-main{min-width:0}.file-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-meta{color:#98a2b0;font-size:10px;margin-top:2px}.file-item-actions{display:flex;flex-direction:column;gap:2px}.mini-action{border:0;background:transparent;color:#7c8b9d;border-radius:5px;min-width:23px;height:21px;padding:0;font-size:10px;font-weight:700;line-height:1}.mini-action:not(:disabled):hover{background:#edf3fb;color:var(--blue)}.mini-action.remove:hover{background:#fff0ef;color:#d5574d}.pages-heading{height:59px}.page-tools{display:flex;align-items:center;gap:8px}.page-instruction{font-size:12px;color:#8592a2;margin:12px 15px 13px}.page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px;padding:0 14px 16px;align-items:start}.empty-pages{grid-column:1/-1;min-height:176px}.empty-stack{position:relative;width:43px;height:42px}.empty-stack span{position:absolute;width:29px;height:34px;border:1px solid #d2dbe6;border-radius:4px;background:#fff;left:4px;top:3px}.empty-stack span:nth-child(2){left:8px;top:6px;background:#fafcff}.empty-stack span:nth-child(3){left:12px;top:9px;background:#f5f8fc}.page-card{position:relative;min-width:0;border:1px solid #e1e7ef;border-radius:9px;background:#fff;padding:8px;transition:border-color .15s ease,box-shadow .15s ease,opacity .15s ease;cursor:grab;user-select:none}.page-card:hover{border-color:#b9c9e4;box-shadow:0 5px 14px rgba(29,57,96,.08)}.page-card.is-dragging{opacity:.35}.page-card.drag-target{border-color:var(--blue);box-shadow:0 0 0 2px #dbe8ff}.page-card.is-removed{opacity:.4}.thumb-wrap{height:130px;background:#f0f3f7;border-radius:5px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.thumb-wrap img{display:block;max-width:100%;max-height:100%;object-fit:contain;transition:transform .18s ease}.page-select{position:absolute;left:7px;top:7px;width:18px;height:18px;accent-color:var(--blue);z-index:1}.page-number{position:absolute;bottom:6px;left:7px;padding:2px 5px;border-radius:4px;background:rgba(23,37,56,.74);color:#fff;font-family:'DM Mono',monospace;font-size:9px}.page-card-name{font-size:10px;color:#69798e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:7px 1px 6px}.page-actions{display:flex;align-items:center;justify-content:space-between;gap:3px;border-top:1px solid #eef1f4;padding-top:5px}.page-actions .mini-action{font-size:10px;min-width:25px}.output-panel{margin-top:17px;padding:17px 18px 13px;border:1px solid var(--line);border-radius:12px;background:#fcfdff;display:grid;grid-template-columns:minmax(180px,1fr) minmax(300px,2fr);column-gap:20px;align-items:center}.output-settings>label{display:block;color:#64758b;font-size:12px;font-weight:700;margin-bottom:7px}.filename-wrap{height:41px;display:flex;align-items:center;background:#fff;border:1px solid #dfe5ed;border-radius:8px;padding:0 11px;max-width:330px}.filename-wrap:focus-within{border-color:#7aa2eb;box-shadow:0 0 0 3px #edf3ff}.filename-wrap input{border:0;outline:0;min-width:0;width:100%;color:#31445c;font-size:13px;background:transparent}.filename-wrap span{color:#9aa5b3;font-size:12px}.output-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}.output-actions .button{padding:10px 13px;font-size:12px}.output-actions .button-large{padding:12px 17px;font-size:13px}.output-footnote{grid-column:2;margin:7px 0 0;text-align:right;color:#919cab;font-size:11px}.how-section{padding:63px 8px 0}.how-heading{text-align:center}.how-heading h2{font-size:28px;letter-spacing:-.05em;margin:9px 0 27px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.step-card{background:#fff;border:1px solid #e8edf3;border-radius:13px;padding:20px 21px;min-height:178px;position:relative;overflow:hidden}.step-number{position:absolute;right:17px;top:14px;font-family:'DM Mono',monospace;color:#d4deeb;font-size:13px;letter-spacing:.1em}.step-icon{width:36px;height:36px;border-radius:10px;background:#edf3ff;color:var(--blue);display:grid;place-items:center;margin-bottom:13px;font-size:23px;font-weight:400}.icon-pages{display:flex;align-items:center;gap:1px;padding:0 8px}.icon-pages span{width:8px;height:19px;border:1px solid #7da1df;border-radius:2px;background:#fff}.icon-pages span:nth-child(2){height:23px;background:#e2ecff}.icon-save{background:#e5f5ee;color:#228060}.icon-save svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.step-card h3{font-size:15px;margin:0 0 5px}.step-card p{font-size:13px;color:#758398;margin:0}.limits-section{margin:34px 0 0;display:flex;gap:15px;padding:18px 20px;border:1px solid #e5ebf2;border-radius:12px;background:#f0f4f8}.limits-mark{width:21px;height:21px;border:1px solid #aab9ca;border-radius:50%;display:grid;place-items:center;color:#6f8195;font-family:Georgia,serif;font-style:italic;font-weight:700;flex:none;margin-top:2px}.limits-section h2{font-size:13px;margin:0 0 3px}.limits-section p{font-size:12px;color:#718096;line-height:1.65;margin:0}.footer{max-width:1240px;margin:0 auto;padding:22px 32px 28px;border-top:1px solid #e4e9f0;display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;color:#7d8998}.footer-main{display:flex;align-items:center;gap:14px;font-size:12px}.footer-brand{font-weight:700;color:#506179}.footer nav{display:flex;gap:18px;font-size:12px}.footer nav a:hover{color:var(--blue)}.copyright{grid-column:1/-1;margin:1px 0 0;font-family:'DM Mono',monospace;font-size:10px;color:#9ba5b2}.preview-dialog{width:min(970px,calc(100vw - 32px));height:min(820px,calc(100dvh - 32px));max-width:none;max-height:none;padding:0;border:0;border-radius:15px;box-shadow:0 28px 100px rgba(8,24,45,.24);overflow:hidden}.preview-dialog::backdrop{background:rgba(20,36,58,.48);backdrop-filter:blur(3px)}.dialog-header{height:75px;display:flex;align-items:center;justify-content:space-between;padding:12px 21px;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:17px;margin:4px 0 0}.dialog-header .section-kicker{font-size:9px}.close-button{width:34px;height:34px;border:0;border-radius:50%;background:#f1f4f8;color:#617186;font-size:23px;line-height:1}.close-button:hover{background:#e7ecf3}.preview-frame-wrap{height:calc(100% - 144px);background:#e8edf3}.preview-frame-wrap iframe{width:100%;height:100%;border:0;background:white}.dialog-footer{height:69px;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-footer span{font-size:12px;color:#77869a}.dialog-footer .button{white-space:nowrap}
.page-card:focus-within,.file-item:focus-within{outline:2px solid #7da2e7;outline-offset:2px}
@media(max-width:900px){main{padding:45px 24px 65px}.hero{padding-left:0;padding-right:0}.hero-stamp{width:120px;height:120px;margin-right:12px}.stamp-main{font-size:19px}.editor-layout{grid-template-columns:235px minmax(0,1fr)}.page-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:9px;padding:0 10px 13px}.thumb-wrap{height:112px}.output-panel{grid-template-columns:1fr}.output-actions{justify-content:flex-start;margin-top:14px}.output-footnote{grid-column:1;text-align:left}}
@media(max-width:650px){.topbar{height:64px;padding:0 18px}.brand{font-size:15px}.brand-mark{width:32px;height:32px}.local-badge{font-size:0;gap:0}.local-dot{width:9px;height:9px}.topbar-right{gap:12px}main{padding:34px 14px 48px}.hero{padding:8px 2px 29px}.hero-stamp{display:none}.hero h1{font-size:40px;margin:14px 0 9px}.hero-subtitle{font-size:15px;line-height:1.7}.workspace{padding:18px 13px;border-radius:15px}.workspace-heading{margin-bottom:16px}.workspace-heading h2{font-size:21px}.dropzone{min-height:150px;display:grid;grid-template-columns:45px 1fr;gap:10px;padding:16px}.upload-icon{width:42px;height:42px;border-radius:12px}.dropzone-copy strong{font-size:14px}.dropzone-copy span{font-size:12px}.dropzone>.button{grid-column:1/-1;width:100%;padding:10px}.format-note{font-size:11px;line-height:1.55;margin:8px 1px 17px}.editor-layout{grid-template-columns:1fr;gap:12px}.file-panel{min-height:0}.file-list{min-height:74px;max-height:210px;overflow:auto}.empty-files{min-height:88px;flex-direction:row;gap:11px}.empty-files p{margin:0;text-align:left}.file-panel-foot{font-size:10px}.pages-panel{min-height:280px}.panel-heading{padding:0 11px}.panel-heading h3{font-size:13px}.panel-heading .icon-text-button,.panel-heading .text-button{font-size:11px}.panel-heading .page-tools{gap:2px}.page-instruction{margin:10px 11px 12px;font-size:11px}.page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 9px 11px}.thumb-wrap{height:145px}.page-card{padding:7px}.page-card-name{font-size:10px}.output-panel{padding:14px 12px 11px;margin-top:12px}.output-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.output-actions .button{font-size:11px;padding:10px 7px}.output-actions .button-large{grid-column:1/-1;font-size:13px}.output-footnote{font-size:10px}.how-section{padding:43px 1px 0}.how-heading h2{font-size:23px;margin-bottom:17px}.steps{grid-template-columns:1fr;gap:9px}.step-card{min-height:0;padding:15px;display:grid;grid-template-columns:39px 1fr;column-gap:12px;align-items:center}.step-number{right:14px;top:11px;font-size:11px}.step-icon{grid-row:1/3;width:36px;height:36px;margin:0}.step-card h3{font-size:14px;margin:0 35px 2px 0}.step-card p{grid-column:2;font-size:12px}.limits-section{margin-top:24px;padding:15px 13px;gap:10px}.limits-section p{font-size:11px}.footer{padding:18px 15px 23px;grid-template-columns:1fr;gap:10px}.footer-main{flex-wrap:wrap;gap:8px 12px}.footer nav{gap:17px}.copyright{grid-column:1}.dialog-header{height:68px;padding:10px 13px}.dialog-footer{height:76px;padding:10px 12px}.dialog-footer span{font-size:10px}.dialog-footer .button{font-size:12px;padding:10px 12px}.preview-frame-wrap{height:calc(100% - 144px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
