Q'+(i+1)+'. '+q.q+'
'+r.pct+'%
'+(pass?'合格':'不合格')+'
'}).join('')}
function clearHistory(){if(!confirm('履歴をすべて削除しますか?'))return;localStorage.removeItem(STOR.history);showHistory()}
function showWrong(){showScr('wrong');const w=getW(),ids=Object.keys(w).map(Number).sort((a,b)=>w[b]-w[a]),qs=ids.map(id=>Q.find(q=>q.id===id)).filter(Boolean),c=$('wrongContent'),br=$('wrongBtnRow');if(!qs.length){c.innerHTML='