:root{--ink:#24332c;--muted:#65736b;--accent:#538b69;--line:#dfe5df;--pale:#eef6f0}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#f7f8f5;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Noto Sans JP',sans-serif}header{background:white;border-bottom:1px solid var(--line);padding:18px max(18px,calc((100% - 1000px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-weight:850;text-decoration:none;display:flex;align-items:center;gap:10px}.brand span{display:grid;place-items:center;width:35px;height:35px;border-radius:11px 11px 11px 4px;color:white;background:var(--accent)}a{color:inherit}nav{display:flex;gap:16px;font-size:12px}main{max-width:920px;margin:auto;padding:28px 20px 40px}h1{font-size:32px;margin:8px 0}h2{font-size:24px;margin:4px 0;overflow-wrap:anywhere}p{line-height:1.7}.heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.heading small{font-size:10px;letter-spacing:.16em;color:var(--accent);font-weight:800}.heading p{color:var(--muted);font-size:13px}.filters{display:grid;grid-template-columns:1fr 2fr;gap:14px;margin:20px 0}label{display:block;font-size:12px;font-weight:700}select,input{font:inherit;font-size:16px;width:100%;margin-top:7px;padding:10px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);min-height:44px}button{font:inherit;font-size:13px;font-weight:750;min-height:44px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);padding:10px 16px;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}.primary{background:var(--accent);border-color:var(--accent);color:white}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #83b99b;outline-offset:3px}.ranking,.panel{background:white;padding:24px;border:1px solid var(--line);border-radius:22px}.ranking-head{display:flex;align-items:center;justify-content:space-between;gap:12px}#meta,.hint,.source,#progress{font-size:12px;color:var(--muted)}#progress{white-space:nowrap}#ranks{list-style:none;margin:18px 0;padding:0;display:grid;gap:10px}.rank-button{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr);text-align:left;align-items:center;gap:12px;padding:12px;min-height:68px;background:#f5f7f5}.rank-number{font-size:15px;font-weight:850;text-align:center;color:var(--accent)}.rank-answer{display:flex;justify-content:space-between;align-items:center;gap:16px;white-space:pre-wrap;overflow-wrap:anywhere}.rank-name{font-size:18px}.rank-value{font-size:14px;font-weight:500;text-align:right}.rank-button[aria-expanded=true]{background:var(--pale);border-color:#b4d2bd}.rank-placeholder{font-weight:500;color:var(--muted);font-size:13px}.reveal-actions,.navigation{display:flex;gap:12px;justify-content:space-between;align-items:center}.reveal-actions button{flex:1}.navigation{margin:18px 0;font-size:12px}.source{border-top:1px solid var(--line);padding-top:16px;margin-bottom:0;overflow-wrap:anywhere}#note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}#noteBox{margin-top:16px}footer{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:26px;color:var(--muted);font-size:12px}#status:empty{display:none}dialog{width:min(850px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:20px;padding:24px;color:var(--ink)}dialog::backdrop{background:#17251f80}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}dialog p{font-size:13px}dialog label{margin:18px 0}.check{display:flex;align-items:center;gap:10px}.check input{width:18px;min-height:18px;margin:0}.preview-item{padding:14px;border:1px solid var(--line);border-radius:12px;margin:10px 0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}#previewRows{max-height:35vh;overflow:auto}#errors{color:#a4332c}#confirmImport{margin-top:16px;width:100%}@media(max-width:600px){header{padding:12px;flex-wrap:wrap}main{padding:20px 12px}h1{font-size:28px}.heading{align-items:flex-start;flex-direction:column;gap:0}.filters{grid-template-columns:1fr;gap:10px}.ranking{padding:16px}.rank-answer{flex-direction:column;align-items:flex-start;gap:4px}.rank-name{font-size:17px}.rank-value{text-align:left}.rank-button{padding:10px;min-height:66px}.ranking-head{align-items:flex-start}h2{font-size:21px}dialog{padding:18px}}
.filters{grid-template-columns:1fr}.check{display:flex;align-items:center;gap:10px}.check input{width:20px;min-height:20px;margin:0}#folderItems{max-height:45vh;overflow:auto;margin:16px 0;border:1px solid var(--line);border-radius:12px}#folderItems label{display:flex;align-items:center;gap:12px;margin:0;padding:12px;border-bottom:1px solid var(--line)}#folderItems input{width:20px;min-height:20px;margin:0;flex-shrink:0;accent-color:var(--accent)}#folderStatus{white-space:pre-wrap}#folderRanges .range-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
#dataList .study-table{min-width:1180px}#dataList .study-table th:nth-child(2),#dataList .study-table td:nth-child(2){min-width:230px}#dataList .study-table td:nth-child(2) button{width:100%;text-align:left;font-weight:650}#dataList .study-table td:last-child{min-width:220px}
