/* 森野余白 / ギルド資料室 — 依頼記録を依頼票として閲覧する専用UI */
/* すべて .gr-archive の内側へスコープ。既存サイトのCSSへ干渉しない。 */
.gr-archive{--gr-ink:#322b24;--gr-muted:#786958;--gr-wax:#8b3c31;--gr-forest:#34554b;--gr-border:#d6c9ac;--gr-paper:#f8f1df;--gr-paper-deep:#ebdfc5;--gr-warm:#ece7dc;color:var(--gr-ink);font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;line-height:1.7;max-width:1180px;margin:0 auto;padding:26px 12px 38px;box-sizing:border-box;font-size:15px}
.gr-archive *, .gr-archive *::before,.gr-archive *::after{box-sizing:border-box}
.gr-archive button,.gr-archive input{font:inherit}
.gr-archive button{cursor:pointer}
.gr-archive button:focus-visible,.gr-archive input:focus-visible{outline:3px solid #be8d61;outline-offset:2px}
.gr-archive .gr-eyebrow{letter-spacing:.26em;font-family:Georgia,serif;font-size:11px;color:var(--gr-forest);font-weight:bold}
.gr-archive .gr-header{padding:0 4px 22px;border-bottom:1px solid #cfc6b8;display:flex;gap:20px;justify-content:space-between;align-items:end}
.gr-archive .gr-header h2{margin:5px 0 7px;font-size:clamp(24px,3vw,35px);font-weight:600;letter-spacing:.075em;line-height:1.35;color:var(--gr-ink)}
.gr-archive .gr-header p{margin:0;font-family:system-ui,sans-serif;font-size:12px;color:#6b635a;line-height:1.8}
.gr-archive .gr-count{flex-shrink:0;text-align:right;font-family:system-ui,sans-serif;font-size:12px;color:var(--gr-muted);letter-spacing:.06em}
.gr-archive .gr-count strong{display:block;font-family:Georgia,serif;font-size:30px;font-weight:400;color:var(--gr-forest);line-height:1.2}
.gr-archive .gr-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:19px 0}
.gr-archive .gr-tabs{display:flex;gap:6px;flex-wrap:wrap}
.gr-archive .gr-tab{border:1px solid #cdc6b9;background:transparent;color:#61574c;border-radius:999px;padding:7px 14px;font-family:system-ui,sans-serif;font-size:12px;min-height:34px}
.gr-archive .gr-tab[aria-pressed="true"]{background:var(--gr-forest);color:#fff;border-color:var(--gr-forest)}
.gr-archive .gr-search{width:min(100%,250px);border:1px solid #cfc5b5;border-radius:4px;background:#fffef9;color:#41362b;padding:8px 12px;font-family:system-ui,sans-serif;font-size:13px}
.gr-archive .gr-layout{display:grid;grid-template-columns:minmax(220px,310px) minmax(0,1fr);gap:22px;align-items:start}
.gr-archive .gr-index{background:#f1ede4;border:1px solid #d5cec1;border-radius:5px;padding:17px 14px;box-shadow:inset 0 2px 3px #fff8}
.gr-archive .gr-indexhead{margin:0 0 13px;padding:0 3px 9px;border-bottom:1px solid #d6cec0;font-size:13px;letter-spacing:.1em;color:#61513e}
.gr-archive .gr-index-list{display:flex;flex-direction:column;gap:9px}
.gr-archive .gr-entry{width:100%;display:block;text-align:left;position:relative;border:1px solid #d6ccbb;border-left:4px solid #a9a08e;background:#fffaf0;color:var(--gr-ink);padding:13px 15px 14px;border-radius:2px;box-shadow:0 2px 3px #31291c0c;transition:background .15s,border-color .15s,transform .15s}
.gr-archive .gr-entry:hover{background:#fef2d9;transform:translateY(-1px)}
.gr-archive .gr-entry[aria-selected="true"]{border-left-color:var(--gr-wax);background:#fff6e7;box-shadow:0 3px 8px #654c2d1c}
.gr-archive .gr-entry-top{display:flex;justify-content:space-between;gap:7px;font-family:system-ui,sans-serif;font-size:10px;letter-spacing:.04em;color:#867664}
.gr-archive .gr-entry-title{display:block;font-size:16px;font-weight:bold;line-height:1.5;margin:9px 0 7px}
.gr-archive .gr-entry-meta{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#776954;font-family:system-ui,sans-serif;font-size:11px}
.gr-archive .gr-status{display:inline-flex;align-items:center;gap:4px;color:var(--gr-forest);font-weight:650}
.gr-archive .gr-status::before{content:"";width:6px;height:6px;background:currentColor;border-radius:50%}
.gr-archive .gr-nothing{padding:22px 12px;color:#786f62;font-family:system-ui,sans-serif;font-size:13px}
.gr-archive .gr-filedesk{background:#ddd4c4;padding:17px;border:1px solid #cbc0aa;border-radius:5px;box-shadow:inset 0 1px #ffffff85}
.gr-archive .gr-file-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px;font:12px system-ui,sans-serif;color:#6c5e4b}
.gr-archive .gr-action-group{display:flex;gap:7px}
.gr-archive .gr-mini-button{background:#fbf8f1;color:#5b5146;border:1px solid #bcb19d;border-radius:3px;padding:5px 9px;font:12px system-ui,sans-serif}
.gr-archive .gr-mini-button:hover{background:#fff}
.gr-archive .gr-paper{position:relative;min-height:650px;padding:37px clamp(20px,4vw,49px) 36px;background:linear-gradient(115deg,#ecdbb8 0%,#fff9e9 5%,#fcf6e6 41%,#f3e8d1 100%);color:#392d23;border:1px solid #d0b78c;box-shadow:0 9px 22px #483b2a31,0 1px 0 #fff9 inset;overflow:hidden}
.gr-archive .gr-paper::before{content:"";position:absolute;inset:13px;border:1px solid #bbaa877d;pointer-events:none}
.gr-archive .gr-paper::after{content:"";position:absolute;right:-47px;bottom:-73px;width:260px;height:260px;border-radius:50%;border:2px solid #8d6a4320;box-shadow:0 0 0 15px #c4a5760a,0 0 0 25px #c4a57612;transform:rotate(-12deg);pointer-events:none}
.gr-archive .gr-paper-top{text-align:center;position:relative;z-index:1}
.gr-archive .gr-authority{font-size:11px;letter-spacing:.15em;color:#60513e}
.gr-archive .gr-paper h3{font-size:clamp(27px,4vw,37px);letter-spacing:.36em;margin:13px 0 7px;text-indent:.36em;color:#403020;font-weight:700}
.gr-archive .gr-ledger-sub{font-family:Georgia,serif;font-size:11px;letter-spacing:.3em;color:#89755c}
.gr-archive .gr-double-line{height:7px;border-top:2px solid #70583e;border-bottom:1px solid #70583e;margin:23px 0 22px}
.gr-archive .gr-fields{display:grid;grid-template-columns:1fr 1fr 1fr;border-top:1px solid #c9b690;border-left:1px solid #c9b690}
.gr-archive .gr-field{padding:12px 12px 13px;border-bottom:1px solid #c9b690;border-right:1px solid #c9b690;min-width:0}
.gr-archive .gr-field label{display:block;font-size:11px;letter-spacing:.07em;color:#877259;margin-bottom:4px}
.gr-archive .gr-field strong{display:block;font-size:14px;font-weight:600;word-break:break-word;line-height:1.7}
.gr-archive .gr-field.gr-wide{grid-column:span 2}
.gr-archive .gr-case-title{font-weight:650;font-size:clamp(19px,2.1vw,24px);line-height:1.55;text-align:center;margin:22px 0 18px;letter-spacing:.045em}
.gr-archive .gr-section{position:relative;margin-top:19px}
.gr-archive .gr-section h4{font-size:13px;letter-spacing:.12em;font-weight:bold;margin:0 0 7px;padding:0 0 5px;border-bottom:1px solid #baa583;color:#644934}
.gr-archive .gr-section p{margin:0;font-size:14px;line-height:1.9;white-space:pre-line}
.gr-archive .gr-section ul{margin:0;padding-left:1.45em;font-size:14px;line-height:1.85}
.gr-archive .gr-section li+li{margin-top:3px}
.gr-archive .gr-office-fields{display:grid;grid-template-columns:1fr 1fr;margin-top:18px;border:1px solid #cdb997}
.gr-archive .gr-office-fields>div{padding:12px 14px;min-width:0}
.gr-archive .gr-office-fields>div+div{border-left:1px solid #cdb997}
.gr-archive .gr-office-fields span{display:block;font-size:11px;color:#806d55;margin-bottom:4px}
.gr-archive .gr-office-fields strong{display:block;font-size:13px;font-weight:600;white-space:pre-line}
.gr-archive .gr-seal-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-top:19px;position:relative}
.gr-archive .gr-seal-note{font-size:11px;color:#876f54;line-height:1.6}
.gr-archive .gr-stamp{width:112px;height:84px;display:flex;justify-content:center;align-items:center;transform:rotate(-12deg);color:#8b3c31;border:4px double #8b3c31b8;border-radius:8px;position:relative;font-size:23px;font-weight:bold;letter-spacing:.15em;flex-shrink:0;opacity:.81}
.gr-archive .gr-stamp::before{content:"BELZE · GUILD";position:absolute;top:8px;font:8px Georgia,serif;letter-spacing:.1em}
.gr-archive .gr-stamp::after{content:"記録照合済";position:absolute;bottom:7px;font-size:9px;letter-spacing:.09em}
.gr-archive .gr-note{font:12px/1.8 system-ui,sans-serif;color:#6e6256;padding:14px 4px 0}
.gr-archive .gr-note strong{font-weight:650;color:#675442}
.gr-archive .gr-a11y{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
@media(max-width:760px){.gr-archive{padding:16px 6px 26px}.gr-archive .gr-header{align-items:start}.gr-archive .gr-count{display:none}.gr-archive .gr-layout{grid-template-columns:1fr;gap:13px}.gr-archive .gr-index{padding:12px}.gr-archive .gr-index-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.gr-archive .gr-filedesk{padding:9px}.gr-archive .gr-paper{min-height:0;padding:27px 20px}.gr-archive .gr-search{width:100%;max-width:none}.gr-archive .gr-toolbar{align-items:stretch}.gr-archive .gr-fields{grid-template-columns:1fr}.gr-archive .gr-field.gr-wide{grid-column:span 1}}
@media(max-width:430px){.gr-archive .gr-paper h3{font-size:27px}.gr-archive .gr-fields{grid-template-columns:1fr}.gr-archive .gr-field{padding:10px 11px}.gr-archive .gr-field strong{font-size:13px}.gr-archive .gr-office-fields{grid-template-columns:1fr}.gr-archive .gr-office-fields>div+div{border-left:0;border-top:1px solid #cdb997}.gr-archive .gr-stamp{width:93px;height:77px;font-size:19px}.gr-archive .gr-authority{font-size:9px}}
@media print{.gr-archive{max-width:none;padding:0}.gr-archive .gr-header,.gr-archive .gr-toolbar,.gr-archive .gr-index,.gr-archive .gr-file-actions,.gr-archive .gr-note{display:none!important}.gr-archive .gr-layout{display:block}.gr-archive .gr-filedesk{background:#fff;border:0;padding:0;box-shadow:none}.gr-archive .gr-paper{box-shadow:none;border:1px solid #9e8a6c;min-height:0;break-inside:avoid;background:#fff9e9!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.gr-archive.gr-single .gr-header,.gr-archive.gr-single .gr-toolbar,.gr-archive.gr-single .gr-index{display:none}
.gr-archive.gr-single .gr-layout{display:block}
.gr-archive.gr-single .gr-filedesk{max-width:900px;margin:0 auto}
.gr-archive .gr-document-kind{margin:-8px 0 18px;text-align:center;font-size:11px;color:#806d55;letter-spacing:.08em}
/* Server-delivered fallback: keeps the full record readable before or without JavaScript. */
.gr-static-record{max-width:920px;margin:0 auto;padding:clamp(24px,4vw,44px);border:1px solid rgba(73,82,58,.2);border-radius:18px;background:#fffdf7;box-shadow:0 16px 40px rgba(60,66,48,.08);color:#31382d}
.gr-static-kicker{margin:0 0 8px;color:#67725c;font-size:.78rem;font-weight:700;letter-spacing:.12em}
.gr-static-record h2{margin:0 0 22px;font-family:serif;font-size:clamp(1.65rem,3vw,2.2rem)}
.gr-static-record h3{margin:28px 0 10px;font-size:1.05rem}
.gr-static-record p,.gr-static-record li{line-height:1.85}
.gr-static-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:0 0 26px}
.gr-static-facts div{padding:12px 14px;border-left:3px solid #889675;background:rgba(120,137,102,.08)}
.gr-static-facts dt{font-size:.75rem;color:#65705d}
.gr-static-facts dd{margin:3px 0 0;font-weight:700}
.gr-static-note{margin-top:28px;padding-top:18px;border-top:1px solid rgba(73,82,58,.18);color:#56604f;font-size:.9rem}
@media (max-width:640px){.gr-static-facts{grid-template-columns:1fr}.gr-static-record{padding:22px 18px}}
