:root{font-family:"Yu Gothic UI","Hiragino Sans",Meiryo,system-ui,sans-serif;color:#18253b;background:#f4f5f8;--navy:#101c31;--navy2:#172942;--gold:#e4ba64;--ink:#18253b;--muted:#56647a;--line:#dce2eb;--white:#fff;--green:#136c53;--red:#a3283e;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit;max-width:100%;min-width:0}
button,.button{cursor:pointer;font-weight:700;border:1px solid var(--line);background:white;border-radius:9px;padding:.63rem .9rem;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;text-align:center}
button:hover,.button:hover{border-color:#ab7b26;background:#fffaf0}
button:disabled{opacity:.55;cursor:default}
button.primary,.button.primary{background:var(--gold);color:#211a0d;border-color:transparent}
button.danger{color:var(--red)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #ad7a1d;outline-offset:2px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(1.62rem,3vw,2.55rem);line-height:1.23;letter-spacing:-.045em}
h2{font-size:1.16rem}
h3{font-size:1rem}
small,.muted{color:var(--muted)}
[hidden]{display:none!important}
.skip{position:fixed;left:1rem;top:-6rem;z-index:10;background:white;padding:1rem}
.skip:focus{top:1rem}
.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:var(--navy);color:#eff2f9;display:flex;flex-direction:column;padding:26px 14px;z-index:3}
.brand{display:flex;gap:11px;align-items:center;padding:0 9px 29px;font-size:.88rem;line-height:1.35;letter-spacing:.03em}
.brand strong{font-size:1.15rem}
.brand img{width:47px;height:47px;border-radius:12px;border:1px solid #52607a}
nav{display:grid;gap:6px}
nav a{display:flex;gap:13px;align-items:center;padding:10px 14px;border-radius:8px;color:#c1cad9;font-weight:700;min-height:47px}
nav a:hover{background:#1b2b45;color:white}
nav a[aria-current="page"]{background:#29364a;color:#f6d895;box-shadow:inset 3px 0 var(--gold)}
.nav-icon{width:22px;text-align:center;font-size:1.13rem}
.side-footer{margin-top:auto;border-top:1px solid #334159;padding:15px 5px 0;display:flex;align-items:center;gap:7px;font-size:.82rem;color:#d9e3f4}
.side-footer small{margin-left:auto;color:#bac7dc}
.dot{display:inline-block;width:8px;height:8px;background:#48a388;border-radius:50%;flex:none}
.work{margin-left:230px}
.top{height:66px;padding:0 clamp(18px,4vw,49px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:white;font-size:.9rem;font-weight:700;gap:10px}
.status{display:inline-flex;align-items:center;gap:.5rem;border:1px solid #dbe6e3;border-radius:30px;padding:.26rem .65rem;color:#265f50;white-space:nowrap}
main{padding:clamp(17px,3.5vw,46px);max-width:1510px;margin:auto}
.head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:22px;flex-wrap:wrap}
.head p{margin-top:.48rem;color:var(--muted);line-height:1.55}
.actions,.inline{display:flex;gap:.55rem;flex-wrap:wrap;align-items:center}
.panel{background:white;border:1px solid var(--line);border-radius:15px;padding:clamp(14px,2.3vw,24px);margin-bottom:17px;min-width:0}
.panel>h2,.panel-head{margin-bottom:14px}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:.6rem;flex-wrap:wrap}
.period{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px}
.period strong{font-size:.9rem}
.segment{display:flex;gap:4px;flex-wrap:wrap;background:#eef1f6;padding:4px;border-radius:9px}
.segment button{font-size:.88rem;min-height:34px;padding:.3rem .68rem;border-color:transparent;background:transparent}
.segment button[aria-pressed=true]{background:white;box-shadow:0 1px 4px #24365722}
.grid{display:grid;grid-template-columns:minmax(0,1.36fr) minmax(0,1fr) minmax(0,1fr);gap:14px;margin-bottom:17px}
.card{border:1px solid var(--line);border-radius:14px;background:white;min-height:126px;padding:17px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;text-align:left;overflow-wrap:anywhere}
.card.feature{background:linear-gradient(125deg,#101c31,#1f3552);color:white;border:0;grid-row:span 2;min-height:230px;padding:24px}
.card.feature .caption{color:#f3cc80}
.card .metric{font-size:clamp(1.33rem,2.65vw,2.17rem);font-weight:750;line-height:1.1;font-variant-numeric:tabular-nums}
.card.feature .metric{font-size:clamp(1.9rem,4vw,3.3rem)}
.card small{margin-top:8px;line-height:1.4}
.card.feature small{color:#d3dcec}
.caption{font-size:.92rem;font-weight:700;margin-bottom:11px}
.lower{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}
.stat{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #edf0f5}
.stat:last-child{border-bottom:0}
.stat strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.empty,.hint{color:var(--muted);line-height:1.55}
.empty{padding:15px 0}
.item{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;background:white;border:0;border-bottom:1px solid #e8edf4;border-radius:0;padding:12px 5px;min-height:60px;font-weight:400}
.item:last-child{border-bottom:0}
.item:hover{background:#f8f6ef}
.item span,.item strong{min-width:0;overflow-wrap:anywhere}
.item small{display:block;margin-top:3px}
.item .value{text-align:right;flex:none;margin-left:.5rem}
.badge{display:inline-block;border-radius:40px;background:#eef1f6;color:#36465d;font-size:.81rem;padding:.14rem .52rem;font-weight:700}
.badge.amber{color:#704b0e;background:#fff2d5}
details.group{border:1px solid var(--line);border-radius:9px;margin-top:8px;padding:5px 10px}
details>summary{cursor:pointer;font-weight:700;padding:7px 0}
.filters,.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.filters{grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr))}
label{display:grid;gap:5px;align-content:start;font-size:.9rem;font-weight:650;min-width:0}
input:not([type=checkbox]),select,textarea{width:100%;border:1px solid #bfc9d9;border-radius:8px;padding:8px 9px;background:#fff;min-height:42px;font-size:1rem}
select{appearance:none;background:linear-gradient(45deg,transparent 50%,#526178 50%) calc(100% - 15px) 50%/6px 6px no-repeat,linear-gradient(135deg,#526178 50%,transparent 50%) calc(100% - 9px) 50%/6px 6px no-repeat,#fff;padding-right:24px}
input[type=date],input[type=month]{display:block;min-inline-size:0}
textarea{min-height:76px;resize:vertical}
input[type=checkbox]{width:19px;height:19px;accent-color:#815f20}
label.check{display:flex;align-items:center;gap:8px}
.wide{grid-column:1/-1}
.required,.error{color:var(--red)}
.error{background:#fff1f3;border:1px solid #efc6cf;padding:10px;border-radius:8px;margin:10px 0;white-space:pre-wrap}
form{margin:0}
form fieldset{border:1px solid var(--line);border-radius:10px;margin:0;padding:10px;min-width:0}
dialog{border:0;border-radius:15px;box-shadow:0 14px 70px #0a172b55;width:min(720px,calc(100% - 20px));max-height:calc(100% - 24px);padding:0;color:var(--ink);overflow:auto}
dialog::backdrop{background:#081221a8}
.modal-head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px;background:white;z-index:1;border-bottom:1px solid var(--line)}
.modal-body{padding:16px 18px}
.modal-foot{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.notice{position:fixed;right:15px;bottom:16px;z-index:5;border-radius:10px;background:var(--navy2);color:white;max-width:min(520px,calc(100% - 30px));padding:13px 18px;box-shadow:0 4px 20px #101c3144}
.properties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.properties div{padding:8px;background:#f4f6fa;border-radius:7px;overflow-wrap:anywhere}
dt{font-size:.83rem;color:var(--muted)}dd{margin:3px 0 0;white-space:pre-wrap}
.file-preview{max-width:100%;max-height:48vh;object-fit:contain}
pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f6fa;padding:.6rem}
@media(max-width:900px){.sidebar{width:167px;padding-inline:10px}.work{margin-left:167px}.brand{padding-left:4px}.brand img{width:36px;height:36px}.brand strong{font-size:1rem}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card.feature{grid-column:1/-1;grid-row:auto;min-height:155px}}
@media(max-width:680px){.sidebar{inset:auto 0 0;width:auto;padding:3px 4px calc(3px + env(safe-area-inset-bottom));border-top:1px solid #3b4961}.brand,.side-footer{display:none}nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}nav a{flex-direction:column;gap:1px;padding:4px 0;font-size:.8rem;min-height:49px}nav a[aria-current=page]{box-shadow:inset 0 2px var(--gold)}.work{margin:0;padding-bottom:calc(58px + env(safe-area-inset-bottom))}.top{height:53px;font-size:.8rem}.lower{grid-template-columns:1fr}.grid{gap:8px}.card{min-height:108px;padding:12px}.card.feature{padding:18px}.period{align-items:start}.notice{bottom:calc(66px + env(safe-area-inset-bottom))}.head{margin-bottom:14px}.modal-body,.modal-head{padding-inline:12px}}
@media(max-width:380px){.fields{grid-template-columns:1fr}.card small{font-size:.74rem}.caption{font-size:.82rem}}
