:root{font-family:"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;color:#101d32;background:#eff6ff;line-height:1.55;--blue:#1555d1;--line:#d3e1f2}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 0 0,#cce3ff,transparent 43%),radial-gradient(ellipse at 100% 100%,#c6e0ff,transparent 38%),linear-gradient(135deg,#eff7ff,#f8fbff 55%,#edf5ff)}
.top{background:#f9fcffee;border-bottom:1px solid #c6dbf4}
.bar{max-width:1450px;margin:auto;padding:15px clamp(20px,4vw,58px);display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:13px;font-weight:900;font-size:clamp(1.25rem,3vw,1.8rem);text-decoration:none;color:inherit}
.brand span{display:grid;place-items:center;width:42px;height:42px;background:var(--blue);color:white;border-radius:11px;font-size:1.65rem}
main{max-width:1380px;margin:auto;padding:clamp(35px,6vw,65px) clamp(18px,4vw,52px) 65px}
h1{text-align:center;font-size:clamp(2rem,5vw,3.45rem);margin:0 0 clamp(36px,5vw,60px);letter-spacing:-.065em;line-height:1.2;font-weight:900}
h1::after{content:"";display:block;width:clamp(80px,16vw,166px);height:5px;margin:18px auto 0;background:#579cf5;border-radius:50%}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.card{min-height:228px;display:grid;grid-template-columns:38% 1fr;align-items:center;padding:26px 22px;background:#fffdfd;border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 22px #244d8410}
.card-body{border-left:1px solid var(--line);padding-left:clamp(14px,2vw,28px)}
.card h2{line-height:1.18;font-size:clamp(1.3rem,2.6vw,2rem);letter-spacing:-.055em;margin:0 0 9px}
.card p{margin:0 0 10px}
.format{display:table;background:#e7f0fd;border-radius:999px;padding:3px 12px;font-size:.875rem;margin-bottom:14px}
.art{display:flex;align-items:center;justify-content:center;gap:4px;padding-right:10px;color:#405678;font-weight:900}
.sheet{width:clamp(29px,4vw,53px);height:clamp(43px,5.8vw,74px);border:2px solid currentColor;border-radius:7px;display:grid;place-items:center;position:relative;font-size:clamp(.6rem,1vw,.82rem);background:white}
.sheet::before{content:"";position:absolute;inset:8px 7px auto;height:3px;border-radius:5px;background:currentColor;opacity:.4;box-shadow:0 6px currentColor}
.sheet b{align-self:end;margin-bottom:7px;background:currentColor;border-radius:3px;padding:0 3px}
.sheet b span{color:white}.red{color:#ce2a36}.blue{color:#1555d1}.teal{color:#087e8b}
.stack{display:grid;gap:4px}.stack .sheet{height:40px}.stack .sheet::before{display:none}
button{font:inherit;cursor:pointer;font-weight:700;border-radius:9px;padding:9px 15px}
button:disabled{cursor:default;opacity:.5}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #5e98ec;outline-offset:3px}
.primary{background:var(--blue);color:white;border:1px solid var(--blue);min-width:124px}
.primary:not(:disabled):hover{background:#1046b4}
.quiet{background:white;color:#244266;border:1px solid #c8d8ec}
.quiet:not(:disabled):hover{background:#e9f2ff}
dialog{border:1px solid var(--line);border-radius:18px;padding:24px;width:min(680px,calc(100% - 24px));max-height:90vh;color:inherit;box-shadow:0 15px 65px #12275035}
dialog::backdrop{background:#14294977}
.dialog-head,.page-nav,.files li{display:flex;align-items:center;justify-content:space-between;gap:8px}
dialog h2{margin:0} .note{color:#415571}
.drop{border:2px dashed #bfd2ed;border-radius:13px;text-align:center;padding:14px;background:#f6faff}
.drop p{margin:0 0 8px}.drop.active{background:#dbeaff;border-color:var(--blue)}
.files{padding:0;list-style:none}.files li{padding:7px 0;border-bottom:1px solid var(--line)}.files li span{overflow-wrap:anywhere}
.file-actions{display:flex;gap:4px;flex-shrink:0}.file-actions button{padding:5px 8px}
.page-nav{justify-content:center;margin-block:10px}
#thumbnail{display:block;max-width:100%;max-height:260px;margin:0 auto 16px;box-shadow:0 2px 9px #172e5730}
#ranges{display:block;width:100%;font:inherit;border:1px solid #a9bdd9;border-radius:8px;padding:8px;margin:4px 0 8px}
#paper{background:#f8fbff;border:1px solid var(--line);padding:18px;overflow:auto;overflow-wrap:anywhere;min-height:120px}
#paper p,#paper td{white-space:pre-wrap}#paper table{border-collapse:collapse;width:100%}#paper td{border:1px solid #9eb3cf;padding:6px}
#paper img{display:block;max-width:100%;height:auto;margin:10px auto}
#status{min-height:1.55em}#status.error{color:#ae1630}
[hidden]{display:none!important}
.site-nav{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.site-nav a{padding:6px 9px;border-radius:7px;color:#244266;font-size:.925rem;font-weight:700;text-decoration:none}
.site-nav a:hover,.site-nav a:focus-visible{background:#e1edfe;color:#1245ab}
.site-footer{border-top:1px solid var(--line);background:#f9fcffe0}
.site-footer .bar{justify-content:flex-end}
.info-dialog .dialog-head{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px}
.info-dialog h3{font-size:1.05rem;margin:16px 0 5px}
.info-dialog p{margin:0 0 14px}
.info-dialog time{color:#415571;font-size:.875rem}
.info-dialog a{color:#124bb9;text-underline-offset:.2em}
.guide-list{display:grid;gap:6px;margin-bottom:20px}
.guide-list dt{font-weight:800}
.guide-list dd{margin:0 0 9px;color:#31445f}
.info-note{padding:12px 14px;background:#eff5ff;border-radius:9px}
.sitemap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sitemap-grid section{background:#f5f9ff;border:1px solid var(--line);border-radius:12px;padding:12px 16px}
.sitemap-grid h3{margin-top:0}
.sitemap-grid ul{padding-left:20px;margin:8px 0}
.sitemap-grid li+li{margin-top:6px}
.card:target{border-color:#75a9f4;box-shadow:0 0 0 3px #d2e5ff}
@media(prefers-reduced-motion:no-preference){
  h1{animation:appear .38s ease-out both}
  h1::after{animation:underline-in .52s .12s ease-out both}
  .card{animation:appear .42s cubic-bezier(.2,.65,.25,1) both;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
  .card:nth-child(2){animation-delay:.07s}
  .card:nth-child(3){animation-delay:.14s}
  .card:nth-child(4){animation-delay:.21s}
  .card:focus-within{transform:translateY(-3px);box-shadow:0 12px 26px #244d8422;border-color:#9fbdeb}
  .info-dialog[open]{animation:appear .18s ease-out}
  @keyframes appear{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
  @keyframes underline-in{from{transform:scaleX(.25);opacity:0}to{transform:scaleX(1);opacity:1}}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .card:hover{transform:translateY(-4px);box-shadow:0 12px 26px #244d8422;border-color:#9fbdeb}
}
@media(max-width:820px){.card{padding:18px 13px;grid-template-columns:33% 1fr}.art{gap:2px;padding-right:5px}}
@media(max-width:650px){.cards{grid-template-columns:1fr}.card{min-height:178px;grid-template-columns:35% 1fr}.sheet{width:38px;height:53px}}
@media(max-width:520px){
  .top .bar{align-items:flex-start;flex-direction:column;gap:8px}
  .site-nav{gap:3px 5px;margin-left:-9px}
  .sitemap-grid{grid-template-columns:1fr}
}
