:root{font-family:'Yu Gothic',Meiryo,sans-serif;color:#223b36;background:#f5f3eb;line-height:1.8}*{box-sizing:border-box}body{margin:0}header,main{max-width:1440px;margin:auto;padding:28px}header{padding-top:38px;border-bottom:1px solid #d3ded6}h1{font-size:clamp(27px,4vw,42px);margin:8px 0}h2{margin:24px 0 12px}h3{margin:20px 0 8px}p{margin:8px 0}button,select,input{font:inherit;padding:7px 11px;border:1px solid #aebfb6;border-radius:7px;background:white;color:inherit;max-width:100%}button,a,select{cursor:pointer}button:hover,a:hover{background:#e6efe7}button:focus-visible,a:focus-visible{outline:3px solid #b57c31}a{color:#17675a}label{display:inline-block;margin:4px 12px 4px 0}.books{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.book{background:#fffef9;border:1px solid #d3ded6;border-radius:12px;padding:18px}.book h3{margin:0}.book button{margin:6px 0;text-align:left;width:100%}.scroll{overflow:auto;max-height:650px;border:1px solid #d3ded6;margin-top:12px}table{border-collapse:collapse;min-width:1100px;width:100%;font-size:14px}th,td{padding:10px;border:1px solid #d3ded6;background:#fffef9;vertical-align:top;min-width:95px}th{position:sticky;top:0;background:#e7eee8;z-index:2}td:first-child,th:first-child{position:sticky;left:0;min-width:300px;max-width:350px;z-index:1}th:first-child{z-index:3}td button{font-size:12px;padding:3px 6px;margin:2px}.workspace{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(420px,1.1fr);gap:22px;margin-top:18px}article,aside{background:#fffef9;border:1px solid #d3ded6;border-radius:12px;padding:22px;min-width:0}.toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.toolbar label{margin:0}.toolbar button,.toolbar select{font-size:13px}.path{font-size:13px;color:#527366}.strategy,.answer,.exam{padding:14px;border-left:4px solid #27836e;background:#eaf3ec;white-space:pre-wrap}.answer{font-size:20px}.pending{background:#fff1d5;border-left:4px solid #ad701a;padding:14px}.steps li{margin-bottom:12px}.hint{margin:8px 0}.record{border-top:1px solid #d3ded6;margin-top:25px;padding-top:15px}.diagram svg{width:100%;height:auto}.diagram{overflow:auto}#paper{position:relative;background:white;margin-top:14px;line-height:0}#scan{width:100%;height:auto;display:block}#overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#overlay.drawing{pointer-events:auto;touch-action:none;cursor:crosshair}#quotes button{display:block;text-align:left;margin:8px 0;width:100%}footer{margin-top:40px;border-top:1px solid #c9d3cc;padding-top:18px;font-size:13px}.history{font-size:13px;white-space:pre-wrap}.notes{width:100%}#topics{display:flex;flex-wrap:wrap;gap:7px}#topics button{font-size:13px}[hidden]{display:none!important}@media(max-width:850px){.workspace{grid-template-columns:1fr}header,main{padding:16px}article,aside{padding:16px}aside{grid-row:1}th,td{min-width:78px}td:first-child,th:first-child{min-width:220px;max-width:240px}}@media print{header,footer,#home,.toolbar,#back,#topics,#question,.record{display:none}.workspace{display:block}aside,article{break-inside:avoid}details{display:block}body{background:white}}
:root{scroll-behavior:smooth}.topic-row{padding:10px 0;border-bottom:1px solid #d3ded6}#topics{display:block}#topics>details{background:#fffef9;border:1px solid #d3ded6;padding:14px;border-radius:10px}#topics button{margin:4px;text-align:left}small,.muted{font-size:12px;color:#637970}td small{display:block}summary{cursor:pointer}#quotes button{overflow-wrap:anywhere}.diagram{margin:18px 0}.diagram svg{min-width:360px}#sourceNote{font-size:12px}.workspace.zoomed{grid-template-columns:1fr}.workspace.zoomed aside{grid-row:1;max-width:1100px;width:100%;justify-self:center}.workspace.zoomed article{max-width:1100px;width:100%;justify-self:center}
