:root{--background:#f3f6fa;--foreground:#17283f;--card:#fff;--card-foreground:#17283f;--popover:#fff;--popover-foreground:#17283f;--primary:#225bd6;--primary-foreground:#fff;--secondary:#eaf0fc;--secondary-foreground:#244a92;--muted:#eef2f7;--muted-foreground:#617187;--accent:#e9f0ff;--accent-foreground:#164bba;--destructive:#c53749;--border:#dce3ed;--input:#d4ddea;--ring:#4677da;--radius:.5rem;--sidebar:#122640;--sidebar-foreground:#e9f0fc;--sidebar-primary:#4b87ff;--sidebar-primary-foreground:#fff;--sidebar-accent:#233e61;--sidebar-accent-foreground:#fff;--sidebar-border:#29405c;--sidebar-ring:#4b87ff;--chart-1:#245cda;--chart-2:#099a87;--chart-3:#db9b2e;--chart-4:#b24f87;--chart-5:#718bc2}*{box-sizing:border-box}body{margin:0;font-family:Noto Sans JP,Yu Gothic,Meiryo,sans-serif;font-size:16px;line-height:1.65;background:var(--background);color:var(--foreground)}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait}input,textarea{width:100%;border:1px solid var(--input);border-radius:6px;padding:9px 12px;background:white}input:focus,textarea:focus{outline:2px solid #aac5ff}label{display:grid;gap:5px;font-size:14px;font-weight:600}h1,h2,h3,p{margin:0}.muted{color:var(--muted-foreground)}.eyebrow{font-size:12px;letter-spacing:.14em;font-weight:700;color:#788eaa}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.page-head h1{font-size:27px;font-weight:750;letter-spacing:.02em}.page-head p{font-size:14px;color:var(--muted-foreground);margin-top:5px}.panel{background:#fff;border:1px solid var(--border);border-radius:10px;padding:24px}.panel h2{font-size:18px;font-weight:700;margin-bottom:18px}.grid-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.metric{padding:21px 22px;background:white;border:1px solid var(--border);border-radius:8px}.metric b{display:block;font-size:31px;font-weight:650;letter-spacing:-.02em;margin-top:8px}.metric small{font-size:14px;color:var(--muted-foreground)}.two-column{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:22px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.span-all{grid-column:1/-1}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.notice{padding:13px 17px;border:1px solid #cbdaf5;border-radius:7px;background:#eff5ff;color:#29518f;font-size:14px;margin-bottom:20px}.error{background:#fff2f1;border-color:#f1c8c4;color:#a02c31}.pill{font-size:12px;display:inline-block;padding:3px 9px;border-radius:5px;background:#eaf3ff;color:#2b5fb0}.steps{display:grid;gap:0}.step{display:flex;gap:13px;padding:18px 0;border-bottom:1px solid #edf1f7}.step:last-child{border:0}.step-number{width:29px;height:29px;display:grid;place-items:center;background:#eaf0fc;color:#2961c5;border-radius:7px;flex-shrink:0;font-size:13px;font-weight:700}.step p{font-size:14px;color:#6c7e94;margin-top:3px}.report{max-width:850px;margin:0 auto;background:white;border:1px solid #dce3ed;padding:38px;box-shadow:0 5px 20px #17283f05}.report-head{border-top:5px solid #225bd6;border-bottom:1px solid #cbd5e3;padding:23px 0;display:flex;justify-content:space-between;gap:20px}.report h2{font-size:25px;font-weight:750}.report h3{font-size:17px;font-weight:700;margin:24px 0 12px}.report .score{font-size:22px;color:#225bd6;font-weight:700}.bar-track{height:8px;background:#eaf0f9;border-radius:2px;min-width:80px}.bar-fill{height:100%;background:#477ce3;border-radius:2px}.grading-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,1fr);gap:20px}.answer-view{background:#e8edf4;min-height:440px;border:1px solid #d3dce8;overflow:auto;padding:16px}.answer-view img{max-width:none;transform-origin:top left}.grade-row{padding:13px 0;border-bottom:1px solid #edf1f7;display:flex;justify-content:space-between;gap:10px;align-items:center}.grade-row input{width:80px}.table-cell-muted{color:#7c8a9d}.print-only{display:none}@media(max-width:1050px){.grid-metrics{grid-template-columns:repeat(2,1fr)}.grading-layout,.two-column{grid-template-columns:1fr}}@media(max-width:600px){.page-head{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.panel{padding:17px}.report{padding:19px}.grid-metrics{gap:10px}.metric{padding:15px}.report-head{flex-direction:column}}@media print{@page{size:A4;margin:13mm}body{background:white;font-size:10pt}.no-print,[data-slot=sidebar-container],[data-slot=sidebar-gap],[data-slot=sidebar]{display:none!important}.print-only{display:block}.report{box-shadow:none;border:0;padding:0;max-width:none}.report h3{break-after:avoid}img,tr{break-inside:avoid}.print-page{break-before:page}.report img{max-width:100%;max-height:235mm;object-fit:contain}main{padding:0!important}header.no-print{display:none!important}}.chart-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:14px;align-items:center;margin:12px 0}.chart-legend span{display:flex;gap:7px;align-items:center}.chart-legend i{width:22px;height:3px;display:inline-block}.unit-radar{display:block;width:100%;max-width:390px;margin:0 auto;height:auto}.unit-comparison{border:1px solid #dce3ed;border-radius:8px;padding:16px}.unit-bars{display:grid;gap:14px;margin:20px 0}.compare-track{height:7px;background:#edf1f5;margin-top:5px}.compare-track span{display:block;height:100%}.chart-note{font-size:12px;color:#617187;margin:12px 0;line-height:1.7}.parent-summary{background:#f1f7f6;border-left:3px solid #087f68;padding:12px 14px;font-size:14px;line-height:1.8;margin-top:12px}.unit-comparison svg{break-inside:avoid}@media print{.unit-comparison{break-inside:avoid;padding:10px}.unit-radar{max-width:310px}.report [data-slot=table-container]{overflow:visible!important}.report td,.report th{white-space:normal!important}.chart-legend,.parent-summary{font-size:10pt}.report thead{display:table-header-group}}.bulk-reports>.report+.report{margin-top:32px}@media print{.bulk-reports>.report+.report{break-before:page;margin-top:0}}.report{max-width:1500px;padding:24px}.report-columns{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1.2fr) minmax(250px,1fr);gap:22px}.report-columns>*,.report-detail-column{min-width:0}.report-columns .unit-radar{max-width:260px}.report-answer img{max-height:900px;object-fit:contain}.ledger-sheet{background:white;padding:8mm;margin:16px auto;max-width:210mm}.ledger-card{border:1px solid #223047;padding:5mm;min-height:122mm;break-inside:avoid;margin-bottom:7mm}.ledger-card h2{font-size:19px;font-weight:700;margin-bottom:4mm}.ledger-card table{border-collapse:collapse;width:100%;table-layout:fixed}.ledger-card td,.ledger-card th{border:1px solid #64748b;padding:2mm;overflow-wrap:anywhere;height:10mm}.ledger-card th{font-size:12px;background:#f5f7fa}.ledger-card td{font-size:14px}.ledger-card h3{margin:3mm 0;font-weight:700}.ledger-card .ledger-writing{height:19mm}.ledger-note{margin-top:4mm;font-size:13px}@media(max-width:1100px){.report-columns{grid-template-columns:1fr}.report{padding:20px}}@media print{@page{size:A3 landscape;margin:10mm}.report{width:100%;max-width:none;padding:0}.report-columns{display:grid;grid-template-columns:.8fr 1.2fr 1fr;gap:6mm}.report-head{padding:3mm 0}.report h2{font-size:18pt}.report h3{font-size:11pt;margin:3mm 0 2mm}.report td,.report th{font-size:8pt;padding:1.3mm!important}.report .chart-note,.report .text-sm{font-size:8pt}.report .unit-radar{max-width:55mm}.report-answer img{max-height:245mm;width:100%;object-fit:contain}.report-answer{break-before:page}.report-columns section{break-inside:auto}.ledger-dialog,.report [data-slot=table-container]{overflow:visible!important}.ledger-dialog{page:ledger;position:static!important;transform:none!important;translate:none!important;top:auto!important;left:auto!important;display:block!important;max-width:none!important;max-height:none!important;width:100%!important;border:0!important;padding:0!important;box-shadow:none!important}.ledger-dialog>button,[data-slot=dialog-overlay]{display:none!important}body:has(.ledger-dialog) [data-slot=sidebar-wrapper]{display:none!important}.ledger-sheet{page:ledger;margin:0;padding:0;width:190mm;max-width:none;break-after:page}.ledger-sheet:last-child{break-after:auto}.ledger-card{height:128mm;min-height:0;margin-bottom:7mm}.ledger-card:last-child{margin-bottom:0}@page ledger{size:A4 portrait;margin:10mm}}.report td,.report th{white-space:normal;overflow-wrap:anywhere;padding:6px}.report-columns table{table-layout:fixed;width:100%}.report-columns [data-slot=table-container]{overflow:visible}@media print{body:has(.ledger-dialog){overflow:visible!important;height:auto!important}}.ledger-card .ledger-textbook-cell{padding:0}.ledger-textbooks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ledger-textbook{min-height:12mm;padding:1mm 2mm;border-right:1px solid #64748b;border-bottom:1px solid #64748b}.ledger-textbook:nth-child(3n){border-right:0}.ledger-textbook:nth-last-child(-n+3){border-bottom:0}.ledger-textbook>span{display:block;font-size:10px;color:#475569}.ledger-textbook>div{min-height:5mm;font-size:12px;line-height:1.3;overflow-wrap:anywhere}.ledger-print-root{display:none}@media print{@page ledger{size:A4 portrait;margin:10mm}body:has(.ledger-print-root),html:has(.ledger-print-root){width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:white!important}body:has(.ledger-print-root)>:not(.ledger-print-root){display:none!important}body>.ledger-print-root{display:block!important;position:static!important;transform:none!important;translate:none!important;width:190mm!important;margin:0!important;padding:0!important;page:ledger;color:#17283f;background:white}.ledger-print-root .ledger-pages,.ledger-print-root .ledger-sheet{display:block;position:static;width:190mm;margin:0;padding:0}.ledger-print-root .ledger-sheet{max-width:none;height:auto;page:ledger;break-after:page;break-inside:avoid;page-break-after:always}.ledger-print-root .ledger-sheet:last-child{break-after:auto;page-break-after:auto}.ledger-print-root .ledger-card{box-sizing:border-box;width:190mm;height:130mm;min-height:0;margin:0 0 7mm;padding:4mm;break-inside:avoid;page-break-inside:avoid;line-height:1.35}.ledger-print-root .ledger-card:last-child{margin-bottom:0}.ledger-print-root .ledger-card h2{font-size:14pt;line-height:1.3;margin:0 0 3mm}.ledger-print-root .ledger-card td,.ledger-print-root .ledger-card th{height:9mm;padding:1.5mm;font-size:9pt;line-height:1.35;white-space:normal}.ledger-print-root .ledger-card .ledger-textbook-cell{padding:0}.ledger-print-root .ledger-textbook{min-height:12mm}.ledger-print-root .ledger-note{font-size:9pt;line-height:1.3;margin-top:3mm}}.ledger-junior .ledger-choices,.ledger-junior .ledger-internal{margin-top:2mm;table-layout:fixed;width:100%}.ledger-junior .ledger-internal th{font-size:9px;overflow-wrap:anywhere}.ledger-junior .ledger-internal td{height:8mm;text-align:center}@media print{.ledger-print-root .ledger-junior td,.ledger-print-root .ledger-junior th{height:7mm;padding:1mm;font-size:8pt;overflow-wrap:anywhere}.ledger-print-root .ledger-junior .ledger-textbook{min-height:10mm;padding:.7mm 1mm}.ledger-print-root .ledger-junior .ledger-textbook>div{min-height:4mm;font-size:9pt}.ledger-print-root .ledger-junior .ledger-internal th{height:5mm;font-size:7pt;padding:.5mm}.ledger-print-root .ledger-junior .ledger-internal td{height:8mm}.ledger-print-root .ledger-junior .ledger-choices thead th{height:5mm}.ledger-print-root .ledger-junior .ledger-note{margin-top:2mm}}.school-code-print-root{display:none}.code-preview{overflow:auto;background:#e8edf3;padding:12px}.code-sheet{box-sizing:border-box;width:190mm;height:277mm;margin:0 auto 12px;background:white;color:#17283f;font-family:Yu Gothic,Meiryo,sans-serif}.code-sheet header{height:12mm;display:flex;align-items:center;justify-content:space-between}.code-sheet h2{font-size:15pt;margin:0}.code-sheet header span{font-size:9pt}.code-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm;align-items:start}.code-columns table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:7.5pt;line-height:1.15}.code-columns td,.code-columns th{border:.2mm solid #64748b;padding:.5mm;overflow-wrap:anywhere;white-space:normal;height:7mm;text-align:left}.code-columns th{background:#f0f3f8;font-weight:700}@media print{@page schoolcodes{size:A4 portrait;margin:10mm}body:has(.school-code-print-root),html:has(.school-code-print-root){width:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;margin:0!important;padding:0!important;background:white!important}body:has(.school-code-print-root)>:not(.school-code-print-root){display:none!important}body>.school-code-print-root{display:block!important;position:static!important;transform:none!important;translate:none!important;width:190mm!important;margin:0!important;padding:0!important;page:schoolcodes}.school-code-print-root .code-sheet{page:schoolcodes;margin:0;padding:0;break-after:page;break-inside:avoid}.school-code-print-root .code-sheet:last-child{break-after:auto}}.report-many-subjects .report-columns{grid-template-columns:1fr}.report-many-subjects .report-detail-column{display:grid;grid-template-columns:repeat(var(--report-subject-columns,2),minmax(0,1fr));gap:16px;align-items:start}.report-many-subjects .report-detail-column>section{min-width:0}.report-many-subjects .report-history-column>section:first-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-many-subjects .report-history-column>section:first-child>h3,.report-many-subjects .report-history-column>section:first-child>p{grid-column:1/-1;margin-bottom:0}.report-many-subjects .unit-comparison{padding:10px}.report-many-subjects .chart-legend{gap:8px;font-size:12px}.report-many-subjects .parent-summary{padding:8px;font-size:12px}.report-many-subjects .report-columns>section:first-child{display:block}.report-many-subjects .report-columns>section:first-child>h3,.report-many-subjects .report-columns>section:first-child>section{grid-column:1/-1}@media screen and (max-width:1250px){.report-many-subjects .report-detail-column{grid-template-columns:repeat(min(3,var(--report-subject-columns,2)),minmax(0,1fr))}}@media screen and (max-width:800px){.report-many-subjects .report-columns>section:first-child,.report-many-subjects .report-detail-column,.report-many-subjects .report-history-column>section:first-child{display:block}}@media print{.report-many-subjects .report-columns{gap:3mm}.report-many-subjects .report-detail-column{gap:3mm;grid-template-columns:repeat(var(--report-subject-columns,2),minmax(0,1fr))}.report-many-subjects .report-detail-column td,.report-many-subjects .report-detail-column th{font-size:7.5pt;padding:1mm!important}.report-many-subjects .report-detail-column h3{font-size:10pt}.report-many-subjects .unit-comparison{padding:2mm}.report-many-subjects .chart-legend,.report-many-subjects .parent-summary{font-size:8pt}.report-many-subjects .report-history-column>section:first-child{gap:3mm}.report-two-subjects .report-history-column{break-before:page}.report-two-subjects .report-detail-column>section{display:grid;grid-template-columns:1fr 1.2fr;gap:0 3mm;align-content:start}.report-two-subjects .report-detail-column>section>h3:first-child{grid-column:1;grid-row:1}.report-two-subjects .report-detail-column>section>.unit-comparison{grid-column:1;grid-row:2}.report-two-subjects .report-detail-column>section>h3:nth-of-type(2){grid-column:2;grid-row:1}.report-two-subjects .report-detail-column>section>[data-slot=table-container]{grid-column:2;grid-row:2}.report-two-subjects .report-history-column>section:first-child{grid-template-columns:repeat(2,minmax(0,1fr))}.report-two-subjects .report-history-column svg{max-height:38mm}}.report-many-subjects .report-columns>.report-summary{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.report-many-subjects .report-summary>div{min-width:0}@media screen and (max-width:800px){.report-many-subjects .report-columns>.report-summary{display:block}}@media print{.report-many-subjects .report-columns>.report-summary{gap:5mm}.report-two-subjects .report-history-column{display:grid;grid-template-columns:1fr 1fr;gap:5mm}.report-two-subjects .report-history-column>section{min-width:0}.report-two-subjects .report-detail-column>section{break-inside:avoid}}.report-face-content,.report-print-face{display:contents}@media print{.report{print-color-adjust:exact;-webkit-print-color-adjust:exact}.chart-legend i{flex-shrink:0}.report-two-subjects>.report-print-face{display:block;height:274mm;width:100%;break-inside:avoid;break-after:page}.report-two-subjects>.report-print-face:nth-child(2){break-after:auto}.report-two-subjects .report-face-content{display:flow-root;transform-origin:top left}.report-two-subjects .report-columns{display:block}.report-two-subjects .report-history-column{break-before:auto}.report-two-subjects .report-detail-column{margin-top:3mm}.report-two-subjects .report-face-content>.mt-6{margin-top:2mm}}.question-settings-head{min-width:0;margin-bottom:24px}.question-settings-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px;max-width:100%;min-width:0}.question-settings-actions>button{max-width:100%;height:auto;min-height:36px;white-space:normal;overflow-wrap:anywhere;text-align:center}