*{box-sizing:border-box}
body{margin:0;background:#F4F6FA;color:#1A2233;font-family:"Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif;font-size:15px;line-height:1.7}
a{color:#1F5FBF}
.top{background:#fff;border-bottom:1px solid #DDE3EC;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.brand{font-size:20px;font-weight:700;color:#1F5FBF;text-decoration:none}
.sub{font-size:13px;color:#4A5568}
.wrap{max-width:560px;margin:0 auto;padding:24px 20px 40px;display:flex;flex-direction:column;gap:18px}
.wrap.wide{max-width:1080px}
h1{font-size:21px;line-height:1.5;margin:0}
h2{font-size:16px;margin:0}
p{margin:0}
.card{background:#fff;border:1px solid #DDE3EC;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:12px}
.tint{background:#EAF1FB;border:none}
.kv{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.kv span:first-child{color:#4A5568;flex-shrink:0}
.kv span:last-child{font-weight:500;text-align:right;word-break:break-all}
.label{font-size:12px;color:#4A5568}
.btn{display:flex;align-items:center;justify-content:center;min-height:52px;padding:0 18px;border:none;border-radius:10px;background:#1F5FBF;color:#fff;font:inherit;font-size:16px;font-weight:700;text-decoration:none;cursor:pointer;width:100%}
.btn.ghost{background:#fff;color:#1F5FBF;border:1px solid #1F5FBF}
.btn.small{min-height:44px;font-size:14px;width:auto}
.btn.plain{background:#fff;color:#2D3748;border:1px solid #A8B7CC;font-weight:500}
.btn:disabled{background:#A8B7CC;cursor:not-allowed}
input[type=text],input[type=email],input[type=password],input[type=tel],select{width:100%;height:48px;border:1px solid #A8B7CC;border-radius:8px;padding:0 12px;font:inherit;background:#fff}
input[type=file]{font:inherit}
label.check{display:flex;gap:12px;align-items:flex-start;min-height:44px;font-size:14px}
label.check input{width:22px;height:22px;margin:2px 0 0;accent-color:#1F5FBF;flex-shrink:0}
.field{display:flex;flex-direction:column;gap:6px}
.err{background:#FDECEC;color:#8A1C1C;border-radius:8px;padding:12px 14px;font-size:14px}
.ok{background:#1F5FBF;color:#fff;border-radius:12px;padding:18px}
.ok b{font-size:17px}
.foot{font-size:12px;color:#4A5568;text-align:center}
.steps{display:flex;gap:6px}
.steps i{flex:1;height:4px;border-radius:2px;background:#C9D3E0}
.steps i.on{background:#1F5FBF}
#pages{display:flex;flex-direction:column;gap:10px}
#pages .pg{position:relative;background:#fff;border:1px solid #DDE3EC}
#pages canvas{display:block;width:100%;height:auto}
.sigbox{position:absolute;border:2px dashed #1F5FBF;background:rgba(31,95,191,.10);pointer-events:none;display:flex;align-items:center;justify-content:center;font-size:12px;color:#174A96}
#pad{width:100%;height:220px;background:#fff;border:2px dashed #7A93B8;border-radius:12px;touch-action:none;display:block}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;font-weight:500;color:#4A5568;font-size:13px}
th,td{padding:12px 8px;border-bottom:1px solid #EEF1F6;vertical-align:top}
.scroll{overflow-x:auto}
.tag{display:inline-block;padding:3px 10px;border-radius:6px;font-size:13px;font-weight:500;background:#EEF1F6;color:#2D3748;white-space:nowrap}
.tag.signed{background:#1F5FBF;color:#fff}
.tag.sent{background:#EAF1FB;color:#174A96}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
textarea{width:100%;min-height:120px;border:1px solid #A8B7CC;border-radius:8px;padding:10px 12px;font:inherit}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;word-break:break-all}
