*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{color:#111827;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f9fafb;min-height:100vh;font-family:Noto Sans JP,Inter,sans-serif}input,textarea,select,button{font-family:inherit}a{color:inherit;text-decoration:none}.app-header{z-index:100;background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:.8rem 1.5rem;display:flex;position:sticky;top:0}.app-header-logo{color:#111827;letter-spacing:-.02em;font-family:Inter,sans-serif;font-size:1.2rem;font-weight:700}.app-header-badge{color:#3b82f6;background:#eff6ff;border-radius:4px;margin-left:8px;padding:2px 8px;font-size:.7rem;font-weight:500}.app-header-logout{color:#9ca3af;cursor:pointer;background:0 0;border:none;font-size:.85rem;transition:color .2s}.app-header-logout:hover{color:#6b7280}.app-footer{color:#9ca3af;text-align:center;padding:2rem 0;font-size:.7rem}.login-wrapper{justify-content:center;align-items:center;min-height:100vh;padding:1rem;display:flex}.login-card{text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:12px;width:100%;max-width:480px;padding:2.5rem 2rem;box-shadow:0 1px 3px #0000001a}.login-logo{color:#111827;letter-spacing:-.02em;margin-bottom:4px;font-family:Inter,sans-serif;font-size:1.6rem;font-weight:700}.login-subtitle{letter-spacing:.3em;color:#3b82f6;margin-bottom:1.5rem;font-size:.7rem;font-weight:500}.login-description{color:#6b7280;margin-bottom:1.5rem;font-size:.9rem}.login-input{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;margin-bottom:1rem;padding:.75rem 1rem;font-size:.9rem;transition:border-color .2s,box-shadow .2s}.login-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.login-button{color:#fff;cursor:pointer;background:#3b82f6;border:none;border-radius:8px;width:100%;padding:.8rem 2rem;font-size:.95rem;font-weight:600;transition:background .2s}.login-button:hover{background:#2563eb}.login-footer{color:#9ca3af;margin-top:2rem;font-size:.65rem}.error-text{color:#ef4444;margin-bottom:.5rem;font-size:.85rem}.main-wrapper{max-width:800px;margin:0 auto;padding:2rem 1.5rem}.main-title{color:#111827;margin-bottom:.3rem;font-size:1.3rem;font-weight:700}.main-description{color:#6b7280;margin-bottom:2rem;font-size:.9rem}.tab-bar{border-bottom:1px solid #e5e7eb;margin-bottom:1.5rem;display:flex}.tab-item{cursor:pointer;color:#6b7280;background:0 0;border:none;border-bottom:2px solid #0000;padding:.6rem 1.2rem;font-size:.9rem;transition:color .2s,border-color .2s}.tab-item.active{color:#3b82f6;border-bottom-color:#3b82f6;font-weight:600}.drop-zone{cursor:pointer;background:#f9fafb;border:2px dashed #d1d5db;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;height:160px;margin-bottom:1rem;transition:border-color .2s,background .2s;display:flex}.drop-zone:hover,.drop-zone.drag-over{background:#eff6ff;border-color:#3b82f6}.drop-zone-icon{margin-bottom:.5rem;font-size:2rem}.drop-zone-text{color:#6b7280;font-size:.85rem}.drop-zone-formats{color:#9ca3af;margin-top:.3rem;font-size:.75rem}.file-info{color:#374151;background:#eff6ff;border:1px solid #3b82f6;border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:1rem;padding:.6rem 1rem;font-size:.85rem;display:flex}.file-info-remove{cursor:pointer;color:#ef4444;background:0 0;border:none;padding:0 4px;font-size:1.1rem;font-weight:700}.form-group{margin-bottom:1.5rem}.form-label{color:#374151;margin-bottom:.5rem;font-size:.85rem;font-weight:600;display:block}.form-label-hint{color:#9ca3af;margin-left:.3rem;font-size:.8rem;font-weight:400}.form-select,.form-textarea{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;padding:.65rem 1rem;font-size:.9rem;transition:border-color .2s,box-shadow .2s}.form-select:focus,.form-textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-textarea{resize:vertical;min-height:200px;line-height:1.7}.form-textarea-sm{min-height:80px}.form-select-other{margin-top:.5rem}.card-group{flex-wrap:wrap;gap:12px;display:flex}.card-group-2 .radio-card{flex:calc(50% - 6px);min-width:200px}.card-group-3 .radio-card{flex:calc(33.333% - 8px);min-width:160px}.card-group-4 .radio-card{flex:calc(25% - 9px);min-width:140px}.radio-card{cursor:pointer;text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:12px 14px;transition:border-color .2s,border-width 50ms,background .2s}.radio-card:hover{border-color:#9ca3af}.radio-card.selected{border-width:2px;padding:11px 13px}.radio-card.disabled{opacity:.3;pointer-events:none}.radio-card-check{margin-bottom:4px;font-size:1.1rem}.radio-card-badge{letter-spacing:.1em;text-transform:uppercase;margin-bottom:4px;font-size:.6rem;font-weight:600}.radio-card-label{color:#111827;margin-bottom:4px;font-size:.9rem;font-weight:600}.radio-card-desc{color:#6b7280;font-size:.75rem;line-height:1.5}.cognitive-link{color:#3b82f6;margin-top:.5rem;font-size:.8rem;display:inline-block}.cognitive-link:hover{text-decoration:underline}.submit-button{color:#fff;cursor:pointer;background:#3b82f6;border:none;border-radius:8px;width:100%;margin-top:1rem;padding:.9rem 2rem;font-size:1rem;font-weight:600;transition:background .2s}.submit-button:hover:not(:disabled){background:#2563eb}.submit-button:disabled{opacity:.7;cursor:not-allowed}.loading-wrapper{text-align:center;padding:3rem 1rem}.loading-spinner{border:3px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;width:40px;height:40px;margin:0 auto 1rem;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.loading-text{color:#374151;margin-bottom:.3rem;font-size:.9rem}.loading-sub{color:#6b7280;font-size:.8rem}.loading-fallback{color:#f59e0b}.form-error{border-color:#ef4444!important}.result-wrapper{max-width:900px;margin:0 auto;padding:2rem 1.5rem}.result-summary{background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:1.5rem;padding:1.5rem}.result-summary-top{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px;display:flex}.result-badge{border-radius:4px;padding:2px 8px;font-size:.75rem;font-weight:500}.result-summary-bottom{color:#374151;font-size:.85rem}.result-fallback-badge{color:#92400e;background:#fef3c7;border-radius:4px;margin-left:8px;padding:2px 8px;font-size:.7rem}.result-preview{color:#374151;background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:1.5rem;padding:2rem;font-family:Noto Sans JP,sans-serif;font-size:.95rem;line-height:1.8;overflow-x:auto}.result-preview h1,.result-preview h2,.result-preview h3{color:#111827;font-weight:700}.result-preview h1{margin:1em 0 .5em;font-size:1.5rem}.result-preview h2{margin:1em 0 .5em;font-size:1.25rem}.result-preview h3{margin:1em 0 .5em;font-size:1.1rem}.result-preview p{margin:.5em 0}.result-preview table{margin:1em 0}.result-preview ul,.result-preview ol{margin:.5em 0;padding-left:1.5em}.result-actions{flex-wrap:wrap;gap:12px;display:flex}.result-btn-primary{color:#fff;cursor:pointer;background:#3b82f6;border:none;border-radius:8px;padding:.7rem 1.5rem;font-size:.9rem;font-weight:600;transition:background .2s}.result-btn-primary:hover{background:#2563eb}.result-btn-secondary{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:.7rem 1.5rem;font-size:.9rem;font-weight:500;transition:border-color .2s}.result-btn-secondary:hover{border-color:#9ca3af}.pdf-preview-container{background:#e5e7eb;border-radius:8px;justify-content:center;padding:24px;display:flex}.pdf-preview-page{color:#374151;background:#fff;width:210mm;min-height:297mm;padding:15mm;font-family:Noto Sans JP,sans-serif;font-size:14px;line-height:1.8;overflow:visible;box-shadow:0 4px 20px #00000026}.pdf-preview-page h1,.pdf-preview-page h2,.pdf-preview-page h3{color:#111827;font-weight:700}.pdf-preview-page h1{margin:.8em 0 .4em;font-size:1.4rem}.pdf-preview-page h2{margin:.8em 0 .4em;font-size:1.2rem}.pdf-preview-page h3{margin:.8em 0 .4em;font-size:1.05rem}.pdf-preview-page p{margin:.4em 0}.pdf-preview-page table{margin:.8em 0}.pdf-preview-page ul,.pdf-preview-page ol{margin:.4em 0;padding-left:1.5em}.pdf-preview-page img{max-width:100%}@media (width<=640px){.card-group-3 .radio-card,.card-group-4 .radio-card{flex:calc(50% - 6px)}.result-actions{flex-direction:column}.result-actions button{width:100%}.main-wrapper,.result-wrapper{padding:1.5rem 1rem}.result-preview{padding:1rem}.pdf-preview-container{padding:12px}.pdf-preview-page{width:100%;min-height:auto;padding:10mm}}
