:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic UI",Meiryo,sans-serif;color:#283743;background:#f4f5f3;--accent:#b5532e;--accent-dark:#7e351d;--ink:#283743;--muted:#71808a;--line:#dfe3df;--soft:#fafbf9;--amber:#9b6500;--red:#bb3f45}*{box-sizing:border-box}body{margin:0;min-width:1120px}.app-header{height:58px;padding:0 24px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}.brand,.header-status{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700}.brand-mark{width:31px;height:31px;display:grid;place-items:center;border-radius:7px;background:var(--accent);color:#fff}.brand strong{font-size:11px;color:#8b3b21;background:#fff1eb;padding:4px 7px;border-radius:4px}.header-status{font-size:11px;color:#5d6b73}.workspace{display:grid;grid-template-columns:minmax(680px,1.15fr) minmax(440px,.85fr);min-height:calc(100vh - 58px)}.editor{padding:28px 30px 70px;min-width:0}.preview{padding:20px;background:#e7e9e5;border-left:1px solid #d5d9d4;min-width:0;position:sticky;top:58px;height:calc(100vh - 58px);overflow:auto}.page-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.page-title>div>span,.preview-toolbar span{display:block;color:var(--accent);font-size:10px;letter-spacing:.12em;font-weight:800}.page-title h1{font-size:26px;margin:5px 0}.page-title p,.card-title p,.section-row p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.page-title button,.small,.preview-toolbar button{border:1px solid #c9d0cb;background:#fff;color:#41505a;border-radius:6px;padding:9px 13px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.base-card,.service-card,.final-card{background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 2px 8px #2837430a}.base-card,.final-card{padding:20px}.card-title{display:flex;gap:11px;align-items:flex-start}.card-title i{font-style:normal;flex:0 0 25px;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#f7e6df;color:var(--accent);font-size:12px;font-weight:800}.card-title h2{font-size:15px;margin:1px 0 2px}.meta-grid,.final-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.meta-grid label,.question-field,.final-grid label{display:flex;flex-direction:column;gap:6px}.meta-grid label>span,.question-field>span,.question-field legend,.final-grid label>span{font-size:11px;color:#52616a;font-weight:700}.full,.wide,.confirm-check{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid #c9d0cb;border-radius:5px;background:#fff;padding:9px 10px;color:var(--ink);font:inherit;font-size:13px}input:focus,select:focus,textarea:focus{outline:2px solid #efd1c5;border-color:var(--accent)}textarea{resize:vertical}.services{margin-top:24px}.services>.card-title{margin-bottom:12px}.add-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.add-bar button{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-height:54px;padding:8px;border:1px solid #c9d0cb;border-radius:7px;background:#fff;color:#3d4b53;font:inherit;font-size:11px;font-weight:700;cursor:pointer;text-align:left}.add-bar button>span{width:27px;height:27px;border-radius:5px;background:#f7e6df;color:var(--accent);display:grid;place-items:center;font-size:9px}.add-bar small{width:100%;padding-left:34px;color:var(--muted);font-size:9px;font-weight:500}.add-bar button:disabled{opacity:.45;cursor:default}.service-list{display:grid;gap:10px}.service-heading{display:flex;align-items:center}.service-heading>button:first-child{flex:1;display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:14px;text-align:left;cursor:pointer}.service-heading>button:first-child>span:nth-child(2){display:flex;flex-direction:column;gap:3px}.service-heading b{margin-left:auto}.service-heading strong{font-size:14px}.service-heading small{font-size:10px;color:var(--muted)}.service-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;background:#f7e6df;color:var(--accent);font-size:10px;font-weight:800}.text{border:0;background:transparent;padding:9px;font-size:11px}.danger{color:var(--red)}.open .service-heading{border-bottom:1px solid var(--line)}.service-body{padding:0 15px 16px}.service-body section{padding:16px 0;border-bottom:1px solid #edf0ed}.service-body h3{font-size:11px;margin:0 0 10px}.question-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.question-field{border:0;margin:0;padding:0}.field-help{font-size:10px;color:var(--muted);margin:0}.number-answer{display:flex;align-items:center;gap:7px}.number-answer>input{width:110px}.number-answer>span,.number-answer label{font-size:11px;color:var(--muted);white-space:nowrap}.number-answer label{display:flex;align-items:center;gap:4px}.number-answer label input,.check-grid input,.confirm-check input{width:auto;accent-color:var(--accent)}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.check-grid label{display:flex;align-items:center;gap:7px;border:1px solid #dce0dc;border-radius:5px;padding:8px;font-size:11px}.check-grid label:has(input:checked){border-color:#cf8d72;background:#fff7f4}.check-grid small{display:block;color:var(--accent);margin-top:2px}.section-row{display:flex;justify-content:space-between;align-items:flex-start}.section-row h3{margin-bottom:2px}.table-wrap{overflow-x:auto;margin-top:9px}table{border-collapse:collapse;width:100%;table-layout:fixed}th,td{border-bottom:1px solid #edf0ed;padding:5px;text-align:left;font-size:11px}th{background:#f8f9f7;color:#6f7c83;font-size:10px}th:nth-child(2){width:72px}th:nth-child(3){width:115px}th:nth-child(4){width:105px}th:nth-child(5){width:42px}td input{border-color:transparent;background:transparent;padding:6px}.num{width:64px}.price{width:105px}.money{text-align:right;font-weight:700}.icon{width:28px;height:28px;border:1px solid #d1d6d2;background:#fff;border-radius:5px}.empty{text-align:center;color:#859198;padding:15px}.monthly{background:#faf7f3;margin:0 -15px;padding:16px 15px!important}.alert{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px;padding:10px;border:1px solid #ead19e;border-radius:6px;background:#fffaf0;color:#77510d;font-size:10px}.alert strong{width:100%}.alert span{background:#fff0cf;padding:3px 6px;border-radius:3px}.empty-state{height:130px;border:1px dashed #b9c2bc;border-radius:8px;display:grid;place-items:center;color:#7c8881;font-size:12px}.final-card{margin-top:24px}.confirm-check{flex-direction:row!important;align-items:center!important;border:1px solid #ead19e;background:#fffaf0;padding:11px;border-radius:6px}.confirm-check span{display:flex;flex-direction:column;gap:2px}.confirm-check small{font-weight:400;color:var(--muted)}.clear{font-size:11px;display:flex;flex-direction:column;gap:5px;color:#476052}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.preview-toolbar>div{display:flex;flex-direction:column;gap:3px}.preview-toolbar strong{font-size:12px}.preview-toolbar button:disabled{opacity:.45}.paper{position:relative;background:#fff;box-shadow:0 4px 17px #2837431c;padding:30px 28px;min-height:760px;overflow:hidden}.demo-watermark{position:absolute;top:330px;left:60px;transform:rotate(-24deg);font-size:46px;font-weight:900;color:#b5532e10;white-space:nowrap;pointer-events:none}.paper-heading{display:flex;justify-content:space-between;align-items:flex-start;border-top:4px solid var(--accent);padding-top:15px;font-size:9px;line-height:1.7}.paper-heading small{color:var(--accent);font-weight:800;letter-spacing:.14em}.paper h2{font-size:25px;margin:3px 0;letter-spacing:.12em}.paper-heading b{color:var(--accent);font-size:10px}.issuer{display:flex;flex-direction:column;align-items:flex-end;margin-top:12px;font-size:9px}.issuer strong{font-size:11px}.recipient{font-size:17px;font-weight:700;border-bottom:1px solid #84918a;margin-top:25px;padding-bottom:7px}.recipient small{font-weight:500}.subject{font-size:10px;color:#52616a}.headline{display:flex;align-items:flex-end;justify-content:space-between;background:#fff0ea;border-left:4px solid var(--accent);padding:12px 14px;margin:14px 0}.headline span{font-size:10px}.headline strong{font-size:20px;color:var(--accent-dark)}.preview-table{font-size:9px}.preview-table th,.preview-table td{padding:7px 6px}.preview-table th:nth-child(2),.preview-table td:nth-child(2){width:45px;text-align:center}.preview-table th:nth-child(3),.preview-table td:nth-child(3),.preview-table th:nth-child(4),.preview-table td:nth-child(4){width:78px;text-align:right}.service-name td{background:#f9faf8;color:#4a5a52;font-weight:800}.totals{width:260px;margin:12px 0 18px auto;display:flex;flex-direction:column;gap:5px;font-size:9px}.totals span,.totals strong{display:flex;justify-content:flex-end}.totals strong{border-top:1px solid #8f9a93;padding-top:7px;font-size:11px}.preview-monthly,.confirm,.notes{border:1px solid #d8c6b5;background:#fffaf6;padding:12px;margin-top:10px;font-size:9px}.preview-monthly>div{display:flex;justify-content:space-between}.preview-monthly p,.notes p{margin:7px 0 0;color:var(--muted)}.confirm{border-color:#ead19e;background:#fffaf0}.confirm ul{margin:6px 0 0;padding-left:16px;line-height:1.6}.notes{border-color:#dce0dc;background:#fafbf9}footer{border-top:1px solid var(--line);margin-top:18px;padding-top:10px;color:var(--accent);font-size:8px;font-weight:700}#toast{position:fixed;z-index:50;bottom:24px;left:50%;transform:translateX(-50%);background:#283743;color:#fff;border-radius:6px;padding:9px 14px;font-size:12px;opacity:0;transition:opacity .2s}#toast.show{opacity:1}@media(max-width:1250px){.editor{padding-left:20px;padding-right:20px}.preview{padding:15px}.paper{padding:24px 22px}}@media(max-width:900px){body{min-width:0}.app-header{height:auto;min-height:58px;padding:10px 16px;gap:10px;flex-wrap:wrap}.brand{min-width:0;flex-wrap:wrap}.header-status{margin-left:auto}.workspace{display:block;min-height:0}.editor{padding:20px 16px 36px}.preview{position:static;top:auto;height:auto;overflow:visible;border-left:0;border-top:1px solid #d5d9d4;padding:16px}.page-title{gap:14px;flex-wrap:wrap}.page-title>div{min-width:0;flex:1 1 360px}.meta-grid,.final-grid,.question-grid{grid-template-columns:minmax(0,1fr)}.full,.wide,.confirm-check{grid-column:1}.add-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.paper{max-width:720px;margin:0 auto}.table-wrap{max-width:100%}}@media(max-width:560px){.app-header{align-items:flex-start}.brand{flex:1 1 100%}.header-status{margin-left:41px}.page-title{display:block}.page-title button{margin-top:12px}.editor,.preview{padding-left:10px;padding-right:10px}.base-card,.final-card{padding:15px}.add-bar,.check-grid{grid-template-columns:minmax(0,1fr)}.service-body{padding-left:10px;padding-right:10px}.monthly{margin-left:-10px;margin-right:-10px;padding-left:10px!important;padding-right:10px!important}.section-row,.preview-toolbar,.paper-heading,.headline,.preview-monthly>div{gap:8px;flex-wrap:wrap}.paper{padding:18px 14px}.paper h2{font-size:21px}.recipient{font-size:15px}.headline strong{font-size:17px}.demo-watermark{left:20px;font-size:34px}.totals{width:100%;max-width:260px}.number-answer{flex-wrap:wrap}}
.freee-card{margin-top:14px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 2px 8px #2837430a}.freee-card .card-title>div{flex:1}.connection-badge{border-radius:999px;background:#edf0ed;color:#65727a;padding:5px 9px;font-size:10px;font-weight:800;white-space:nowrap}.connection-badge.connected{background:#e4f4e9;color:#26743d}.freee-notice{margin-top:14px;padding:11px;border:1px solid #ead19e;border-radius:6px;background:#fffaf0;color:#77510d}.freee-notice strong,.freee-office span{font-size:11px}.freee-notice p{margin:4px 0 0;font-size:10px;line-height:1.6}.freee-office{display:flex;flex-direction:column;gap:3px;margin-top:12px;padding:11px;border:1px solid #dce0dc;border-radius:6px;background:#fafbf9}.freee-office strong{font-size:13px}.freee-office small{color:var(--muted);font-size:10px}.freee-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.freee-actions button{border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:#fff;padding:9px 12px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.freee-actions button.secondary{border-color:#c9d0cb;background:#fff;color:#52616a}.freee-actions button:disabled{cursor:default;opacity:.4}.freee-guidance{margin:8px 0 0;color:var(--muted);font-size:10px;line-height:1.5}@media(max-width:560px){.freee-card{padding:15px}}
