:root{color-scheme:light;font-family:Hiragino Sans,Yu Gothic Medium,Yu Gothic,Noto Sans JP,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:#f3f1ec;color:#16222e}.page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}.card{width:100%;max-width:360px;background:#fff;border:1px solid #cbd5da;border-radius:10px;padding:24px;display:flex;flex-direction:column;gap:14px}.card h1{font-size:1.1rem;margin:0;text-align:center}label{font-size:.78rem;color:#4a5a66;display:block;margin-bottom:4px}input{width:100%;padding:10px 12px;border:1px solid #cbd5da;border-radius:6px;font-size:.95rem}button{padding:11px 18px;border-radius:8px;border:1px solid #16222e;background:#2f6f8f;color:#fff;font-weight:700;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.error{color:#ad4438;font-size:.82rem}.field{display:flex;flex-direction:column}.list-page{width:100%;max-width:640px;margin:40px auto;padding:0 16px;display:flex;flex-direction:column;gap:16px}.list-page h1{font-size:1.2rem;margin:0}.tabs{display:flex;gap:4px;border-bottom:1px solid #cbd5da}.tab{padding:8px 4px;margin-right:18px;font-size:.85rem;color:#7c8a93;border-bottom:2px solid transparent;cursor:pointer;background:none;border-top:none;border-left:none;border-right:none}.tab.active{color:#16222e;border-bottom-color:#2f6f8f;font-weight:700}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #cbd5da;border-radius:8px;background:#fff}.row-title{font-weight:600;font-size:.92rem}.row-sub{font-size:.76rem;color:#7c8a93}.chip{font-size:.7rem;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap}.chip-todo{background:#7c8a9329;color:#4a5a66}.chip-progress{background:#b2782129;color:#b27821}.chip-done{background:#2f7a6c29;color:#2f7a6c}.chip-line{background:#2f6f8f1f;color:#1f5670}.empty-state{padding:24px;text-align:center;color:#7c8a93;border:1px dashed #cbd5da;border-radius:8px}.data-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #cbd5da;border-radius:8px;overflow:hidden}.data-table th{text-align:left;font-size:.72rem;color:#7c8a93;text-transform:uppercase;letter-spacing:.03em;padding:10px 12px;border-bottom:1px solid #cbd5da;background:#7c8a930f}.data-table td{padding:10px 12px;border-bottom:1px solid #cbd5da;font-size:.86rem}.data-table tr:last-child td{border-bottom:none}.admin-layout{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:start}.tree-list{display:flex;flex-direction:column;gap:4px}.tree-prefecture-label{font-size:.7rem;color:#7c8a93;text-transform:uppercase;letter-spacing:.04em;margin:10px 0 2px}.tree-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-radius:6px;cursor:pointer;font-size:.85rem;background:#fff;border:1px solid transparent}.tree-item:hover{background:#7c8a9314}.tree-item.active{border-color:#2f6f8f;background:#2f6f8f1a;color:#1f5670;font-weight:700}.tree-item-municipality{margin-left:14px}.question-editor{border:1px solid #cbd5da;border-radius:8px;padding:18px;background:#fff;display:flex;flex-direction:column;gap:14px;margin-top:12px}.question-editor h2{margin:0;font-size:1rem}.editor-row{display:flex;gap:12px;flex-wrap:wrap}.editor-row>.field{flex:1;min-width:140px}.editor-footer{display:flex;justify-content:flex-end;gap:8px}.choice-editor-list{display:flex;flex-direction:column;gap:8px}.choice-editor-row{display:flex;align-items:center;gap:8px}.choice-editor-row input[type=text],.choice-editor-row input:not([type]){flex:1}.question-editor-picker{border:1px dashed #cbd5da;border-radius:8px;padding:14px;display:flex;flex-direction:column;gap:8px}.image-upload-field{display:flex;align-items:center;gap:8px}.image-upload-preview{width:60px;height:45px;object-fit:cover;border-radius:4px;border:1px solid #cbd5da}.image-upload-empty{display:flex;align-items:center;justify-content:center;font-size:.65rem;color:#7c8a93;background:repeating-linear-gradient(45deg,rgba(124,138,147,.12) 0 6px,transparent 6px 12px)}.hint-text{font-size:.76rem;color:#7c8a93}.matching-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.matching-editor-column{display:flex;flex-direction:column;gap:8px}.matching-editor-row{display:flex;align-items:center;gap:8px}.reference-images-editor{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.exam-page{width:100%;max-width:640px;margin:32px auto;padding:0 16px 24px;display:flex;flex-direction:column;gap:16px}.exam-appbar{display:flex;align-items:center;justify-content:space-between;font-size:.85rem;color:#4a5a66}.exam-steps{font-weight:700;color:#16222e}.exam-progress-track{height:8px;border-radius:999px;background:#7c8a9329;overflow:hidden}.exam-progress-fill{height:100%;background:#2f6f8f;transition:width .2s ease}.exam-question-text{font-size:1.02rem;line-height:1.6;margin:0}.exam-footer{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.exam-saved-hint{font-size:.76rem;color:#7c8a93}.exam-saved-hint.error{color:#ad4438;font-weight:700}.choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.choice{border:2px solid #cbd5da;border-radius:10px;padding:14px;background:#fff;cursor:pointer;font-size:.9rem;text-align:center}.choice-selected{border-color:#2f6f8f;background:#2f6f8f1a}.choice-image{width:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:6px}.matching-grid{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:16px}.matching-lines{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.matching-lines line{stroke:#2f7a6c;stroke-width:2.5;stroke-linecap:round}.matching-column{display:flex;flex-direction:column;gap:10px}.matching-item{border:2px solid #cbd5da;border-radius:10px;padding:12px;background:#fff;cursor:pointer;font-size:.85rem;text-align:left}.matching-armed{border-color:#b27821;background:#b278211a}.matching-paired{border-color:#2f7a6c;background:#2f7a6c14}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.matching-image{width:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:6px}.blank-list{display:flex;flex-direction:column;gap:12px}.reference-images{display:flex;gap:10px;margin-bottom:12px}.reference-image{flex:1;aspect-ratio:4 / 3;object-fit:cover;border-radius:8px}.sentence-textarea{min-height:120px;padding:10px 12px;border:1px solid #cbd5da;border-radius:6px;font-family:inherit;font-size:.9rem}.cause-count-table{width:100%;border-collapse:collapse}.cause-count-table th{text-align:left;font-size:.76rem;color:#7c8a93;padding:6px 8px}.cause-count-table td{padding:6px 8px}.cause-count-table input{width:100%}.image-placeholder{aspect-ratio:4 / 3;border-radius:8px;border:1px dashed #cbd5da;background:repeating-linear-gradient(45deg,rgba(124,138,147,.12) 0 8px,transparent 8px 16px);display:flex;align-items:center;justify-content:center;color:#7c8a93;font-size:.72rem}.help-section{display:flex;flex-direction:column;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #cbd5da}.help-section h3{margin:0 0 8px;font-size:.95rem;font-weight:700}.help-section p{margin:0 0 8px;font-size:.86rem;color:#4a5a66}.help-section ul{margin:0;padding-left:18px;font-size:.86rem;color:#4a5a66}.help-section li{margin-bottom:6px}.code-block{background:#f6f5f0;border:1px solid #cbd5da;border-radius:6px;padding:12px;font-size:.75rem;font-family:Courier New,Monaco,Menlo,monospace;overflow-x:auto;white-space:pre-wrap;word-break:break-all;color:#4a5a66;line-height:1.5}.form{display:flex;flex-direction:column;gap:12px}.result-summary{display:flex;flex-direction:column;gap:8px;padding:12px;background:#f6f5f0;border-radius:6px}.result-summary p{margin:0;font-size:.86rem}.result-summary strong{color:#16222e}.progress-message,.error-log,.success-message,.warning-message{padding:12px;border-radius:6px;font-size:.86rem}.progress-message{background:#2f6f8f1a;color:#1f5670}.error-log{background:#fff;border:1px solid #ad4438;color:#4a5a66}.error-log h3{margin:0 0 8px;font-size:.9rem;color:#ad4438}.error-log pre{margin:0;overflow-x:auto;font-size:.75rem;font-family:Courier New,Monaco,Menlo,monospace;white-space:pre-wrap;word-break:break-word;line-height:1.4}.success-message{background:#2f7a6c1a;color:#2f7a6c}.warning-message{background:#b278211a;color:#b27821}.button-group{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.button,.button-primary,.button-secondary{padding:11px 18px;border-radius:8px;border:none;font-size:.9rem;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block;text-align:center}.button-primary{background:#2f6f8f;color:#fff}.button-secondary{background:#e8e5de;color:#4a5a66;border:1px solid #cbd5da}.button-primary:hover{background:#1f5670}.button-secondary:hover{background:#ddd9cf}.link-button{padding:6px 12px;font-size:.8rem;background:none;border:1px solid #2f6f8f;color:#2f6f8f;border-radius:4px;cursor:pointer;font-weight:600}.link-button:hover{background:#2f6f8f14}.status-processing{display:inline-block;padding:4px 10px;border-radius:4px;background:#b2782129;color:#b27821;font-size:.75rem;font-weight:700}.status-success{display:inline-block;padding:4px 10px;border-radius:4px;background:#2f7a6c29;color:#2f7a6c;font-size:.75rem;font-weight:700}.status-failed{display:inline-block;padding:4px 10px;border-radius:4px;background:#ad443829;color:#ad4438;font-size:.75rem;font-weight:700}.filter-section{background:#fff;border:1px solid #cbd5da;border-radius:6px;padding:12px}.filter-row{display:flex;gap:12px;flex-wrap:wrap}.filter-field{display:flex;flex-direction:column;gap:6px;min-width:140px}.filter-field label{font-size:.8rem;font-weight:600;margin:0}.filter-field select{width:100%;padding:8px 10px;border:1px solid #cbd5da;border-radius:4px;font-size:.85rem}.filter-field select:disabled{background:#f6f5f0;color:#7c8a93;cursor:not-allowed}.code-text{font-family:Courier New,Monaco,Menlo,monospace;font-size:.82rem;background:#f6f5f0;padding:2px 6px;border-radius:3px}.date-text{font-size:.82rem;color:#7c8a93;white-space:nowrap}.error-alert{display:flex;flex-direction:column;gap:10px;padding:12px 14px;background:#ad443814;border:1px solid #ad4438;border-radius:8px;margin:8px 0}.error-alert p{margin:0;font-size:.88rem;color:#ad4438;line-height:1.5}.error-retry-btn{align-self:flex-start;padding:8px 14px;font-size:.8rem;background:#ad4438;color:#fff;border:1px solid #ad4438;border-radius:6px;cursor:pointer;font-weight:700}.error-retry-btn:hover{background:#8b3a2d}.error-retry-btn:disabled{opacity:.6;cursor:not-allowed}
