*{box-sizing:border-box;margin:0;padding:0}body{font-family:Hiragino Kaku Gothic ProN,Hiragino Sans,Meiryo,sans-serif;background:#f0f2f5;color:#1f2937;height:100vh;overflow:hidden}#root{height:100vh}.app{display:flex;flex-direction:column;height:100vh}.app-header{background:#1e40af;color:#fff;padding:12px 24px;flex-shrink:0;box-shadow:0 2px 4px #00000026}.app-header{display:flex;align-items:center;justify-content:space-between}.app-header h1{font-size:1.05rem;font-weight:600;letter-spacing:.02em}.reset-button{padding:5px 14px;background:transparent;color:#fffc;border:1px solid rgba(255,255,255,.5);border-radius:6px;font-size:.82rem;font-family:inherit;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}.reset-button:hover:not(:disabled){background:#ffffff26;color:#fff}.reset-button:disabled{opacity:.4;cursor:not-allowed}.app-main{display:flex;flex:1;overflow:hidden;min-height:0}.chat-panel{flex:6;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e5e7eb;min-height:0}.chat-messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}.message{display:flex;flex-direction:column;gap:4px}.message-user{align-items:flex-end}.message-assistant{align-items:flex-start}.message-label{font-size:.75rem;color:#9ca3af;padding:0 4px}.message-bubble{max-width:78%;padding:12px 16px;border-radius:16px;line-height:1.65;font-size:.93rem}.message-user .message-bubble{background:#1e40af;color:#fff;border-bottom-right-radius:4px}.message-assistant .message-bubble{background:#f3f4f6;color:#1f2937;border-bottom-left-radius:4px}.message-assistant .message-bubble p{margin-bottom:8px}.message-assistant .message-bubble p:last-child{margin-bottom:0}.message-assistant .message-bubble ul,.message-assistant .message-bubble ol{padding-left:20px;margin:6px 0}.message-assistant .message-bubble li{margin-bottom:4px}.message-assistant .message-bubble strong{font-weight:600}.loading{display:flex;align-items:center;gap:6px;padding:14px 18px!important}.dot{width:8px;height:8px;background:#9ca3af;border-radius:50%;animation:bounce 1.4s infinite ease-in-out both}.dot:nth-child(1){animation-delay:-.32s}.dot:nth-child(2){animation-delay:-.16s}@keyframes bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.chat-input-form{display:flex;gap:10px;padding:14px 16px;border-top:1px solid #e5e7eb;background:#fff}.chat-input{flex:1;padding:10px 14px;border:1px solid #d1d5db;border-radius:10px;font-size:.93rem;font-family:inherit;resize:none;outline:none;transition:border-color .15s;line-height:1.5}.chat-input:focus{border-color:#1e40af}.chat-input.input-error{border-color:#dc2626}.chat-input.input-error:focus{border-color:#dc2626}.input-footer{min-height:20px}.input-error-message{font-size:12px;color:#dc2626}.input-count-warning{font-size:12px;color:#d97706}.section-nav-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;background:#eff6ff;border-top:1px solid #bfdbfe;font-size:.85rem;color:#1e40af}.section-nav-cancel{padding:2px 10px;background:transparent;color:#6b7280;border:1px solid #d1d5db;border-radius:5px;font-size:.78rem;font-family:inherit;cursor:pointer;white-space:nowrap}.section-nav-cancel:hover{background:#f3f4f6}.send-error-banner{display:flex;align-items:center;gap:12px;padding:10px 14px;margin:8px 0;background:#fef2f2;border:1px solid #fca5a5;border-radius:8px;font-size:13px;color:#dc2626}.retry-button{padding:4px 12px;background:#dc2626;color:#fff;border:none;border-radius:6px;font-size:13px;cursor:pointer;white-space:nowrap}.retry-button:hover{background:#b91c1c}.retry-button:disabled{opacity:.5;cursor:not-allowed}.send-button{padding:10px 22px;background:#1e40af;color:#fff;border:none;border-radius:10px;font-size:.9rem;font-family:inherit;cursor:pointer;align-self:flex-end;transition:background .15s;white-space:nowrap}.send-button:hover:not(:disabled){background:#1e3a8a}.send-button:disabled{opacity:.45;cursor:not-allowed}.preview-panel{flex:4;display:flex;flex-direction:column;background:#f8fafc;overflow:hidden;min-height:0}.preview-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #e5e7eb;background:#fff;flex-shrink:0}.preview-header h2{font-size:.95rem;font-weight:600;color:#1f2937}.progress-text{font-size:.82rem;color:#6b7280}.progress-bar{height:3px;background:#e5e7eb;flex-shrink:0}.progress-fill{height:100%;background:#1e40af;transition:width .4s ease}.sections-list{flex:1;overflow-y:auto;min-height:0;padding:12px;display:flex;flex-direction:column;gap:8px}.section-item{background:#fff;border-radius:10px;border:1.5px solid #e5e7eb;overflow:hidden;transition:border-color .2s;flex-shrink:0}.section-item.current{border-color:#93c5fd;background:#eff6ff}.section-item.completed{border-color:#86efac}.section-header{display:flex;align-items:center;gap:10px;padding:10px 14px}.section-status{font-size:.95rem;width:20px;flex-shrink:0;text-align:center}.section-item.completed .section-status{color:#16a34a}.section-item.current .section-status{color:#2563eb}.section-title{font-size:.87rem;font-weight:500;color:#374151;flex:1}.section-edit-button{padding:2px 10px;font-size:.75rem;font-family:inherit;color:#6b7280;background:transparent;border:1px solid #d1d5db;border-radius:5px;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s,border-color .15s;flex-shrink:0}.section-edit-button:hover{background:#eff6ff;color:#1e40af;border-color:#93c5fd}.section-item.current .section-edit-button{color:#1e40af;border-color:#93c5fd;background:#dbeafe}.section-content{padding:8px 14px 12px 44px;border-top:1px solid #f0f4f8;font-size:.83rem;color:#4b5563;line-height:1.7}.export-area{padding:12px;border-top:1px solid #e5e7eb;background:#fff;flex-shrink:0}.export-button{width:100%;padding:11px;background:#15803d;color:#fff;border:none;border-radius:10px;font-size:.93rem;font-family:inherit;cursor:pointer;transition:background .15s;font-weight:500}.export-button:hover:not(:disabled){background:#166534}.export-button:disabled{opacity:.45;cursor:not-allowed}.export-hint{text-align:center;font-size:.78rem;color:#9ca3af;margin-top:6px}.error-screen{display:flex;align-items:center;justify-content:center;height:100vh;background:#f0f2f5}.error-box{background:#fff;padding:32px 40px;border-radius:12px;box-shadow:0 4px 12px #0000001a;text-align:center;max-width:400px}.error-box h2{color:#dc2626;margin-bottom:12px}.error-box p{color:#6b7280;font-size:.9rem;line-height:1.6}
