.arithmetic-tool{padding-bottom:32px;min-width:0}.arithmetic-tool .tool-layout>*{min-width:0}.arithmetic-tool .check{align-items:flex-start}.drill-operations{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.drill-operations .check{margin:6px 0}.drill-operations input{flex-shrink:0}.drill-print-settings{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.drill-print-settings legend{float:left;width:100%;padding-top:18px}.arithmetic-tool button:disabled{opacity:.5;cursor:not-allowed}.drill-preview h2{font-size:16px}.drill-scaled{position:relative;width:100%;min-width:0;overflow:hidden}.drill-scaled>.drill-sheet{position:absolute;top:0;left:0;transform-origin:top left}.drill-sheet{background:#fff;color:#111;width:210mm;height:297mm;padding:14mm;box-sizing:border-box;display:flex;flex-direction:column;font-family:'Yu Gothic',Meiryo,'Hiragino Kaku Gothic ProN',sans-serif;line-height:1.4;text-align:left;overflow:hidden}.drill-sheet-title{font-size:20pt;line-height:1.3;font-weight:700;margin:0 0 3mm;overflow-wrap:anywhere}.drill-sheet-meta{display:flex;justify-content:space-between;gap:8mm;font-size:10pt;padding-bottom:3mm;border-bottom:.3mm solid #444}.drill-sheet-name{font-size:11pt;margin:4mm 0 2mm;display:flex;justify-content:space-between;gap:5mm}.drill-sheet-note{font-size:9pt;margin-bottom:4mm}.drill-grid{display:grid;grid-auto-flow:column;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8mm;flex:1;min-height:0}.drill-problem{display:flex;align-items:center;gap:2mm;white-space:nowrap;min-width:0;font-size:20pt;font-variant-numeric:tabular-nums}.drill-sheet[data-count="40"] .drill-problem{font-size:17pt}.drill-problem-number{font-size:9pt;min-width:6mm}.drill-expression{letter-spacing:.3mm}.drill-answer-line{display:inline-block;min-width:20mm;border-bottom:.3mm solid #333;height:8mm}.drill-answer-value{font-weight:700;min-width:15mm}.drill-sheet-foot{margin-top:5mm;display:flex;justify-content:space-between;gap:5mm;border-top:.2mm solid #999;padding-top:2mm;font-size:8pt}.drill-preview details{border-bottom:0}.drill-preview .hint{overflow-wrap:anywhere}@media(max-width:380px){.drill-operations{grid-template-columns:1fr}}@media print{html,body{width:210mm!important}.drill-sheet{margin:0!important;box-shadow:none!important;break-inside:avoid;page-break-inside:avoid;break-after:page;page-break-after:always;transform:none!important;position:static!important}.drill-sheet:last-child{break-after:auto;page-break-after:auto}}
