:root{color:#1d2a26;background:#f5f2e9;font-family:Inter,Noto Sans JP,Hiragino Sans,Yu Gothic,YuGothic,system-ui,-apple-system,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}.admin-shell{width:min(1100px,calc(100% - 2rem));margin:0 auto;padding:3rem 0 5rem}.admin-header{margin-bottom:2rem}.admin-header h1{margin:.25rem 0}.admin-tabs{position:sticky;top:0;z-index:5;display:flex;gap:.45rem;overflow-x:auto;padding:.75rem 0;background:#f5f2e9}.admin-tabs button{min-height:2.65rem;padding:.55rem .9rem;white-space:nowrap;border:1px solid #8d9891;border-radius:999px;color:#174f43;background:#fff;font:inherit;cursor:pointer}.admin-tabs button[aria-current=page]{color:#fff;border-color:#174f43;background:#174f43}.admin-panel{margin:1.25rem 0;padding:1.25rem;border:1px solid var(--border, #d8d4cc);border-radius:.75rem;background:#fff}.admin-panel form{display:flex;flex-wrap:wrap;gap:.75rem}.admin-panel form label{flex:1 1 13rem;display:grid;gap:.35rem;color:#34483f;font-size:.88rem;font-weight:700}.admin-panel input,.admin-panel select,.admin-panel textarea,.admin-panel button{min-height:2.5rem;padding:.5rem .7rem;font:inherit}.admin-panel input,.admin-panel select,.admin-panel textarea{width:100%;border:1px solid #8d9891;border-radius:.35rem;background:#fff}.admin-panel textarea{min-height:6rem;resize:vertical}.admin-panel button{cursor:pointer;border:0;border-radius:.35rem;background:#193b4a;color:#fff}.admin-panel button.secondary,.admin-modal button.secondary{color:#193b4a;border:1px solid #8d9891;background:#fff}.admin-panel button.danger{background:#8a2b2b}.admin-panel button:disabled,.admin-modal button:disabled{cursor:wait;opacity:.58}.admin-panel-heading,.admin-row-actions,.admin-actions,.extension-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:space-between}.admin-field-wide{flex-basis:100%!important}.admin-help,.admin-empty,.admin-loading{color:#586860;line-height:1.65}.admin-list small,.admin-table small{display:block;margin-top:.25rem;color:#586860}.required{margin-left:.4rem;color:#8a2b2b;font-size:.72rem}.account-state,.loan-state{display:inline-flex;padding:.15rem .5rem;border-radius:999px;font-size:.78rem;font-weight:800}.account-state.active,.loan-state.open{color:#155d47;background:#dff5eb}.account-state.inactive,.loan-state.overdue{color:#8a2b2b;background:#fde7e7}.account-state.unissued,.loan-state.returned{color:#4f5d56;background:#ecefeb}.admin-status{padding:.9rem;border:1px solid #4d8b74;border-radius:.5rem;color:#155d47;background:#effaf5}.admin-warning{padding:.75rem;border-left:4px solid #c57618;color:#5b3c12;background:#fff7e7}.admin-modal-backdrop{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:1rem;background:#141f1bad}.admin-modal{width:min(36rem,100%);max-height:calc(100vh - 2rem);overflow:auto;padding:1.5rem;border-radius:.75rem;background:#fff;box-shadow:0 1rem 3rem #00000047}.admin-modal form{display:grid;gap:1rem}.admin-modal label{display:grid;gap:.35rem;font-weight:700}.admin-modal input,.admin-modal button{min-height:2.6rem;padding:.55rem .75rem;font:inherit}.credential-list{display:grid;gap:.75rem}.credential-list div{padding:.75rem;border:1px solid #d8d4cc;border-radius:.5rem}.credential-list dt{color:#586860;font-size:.8rem;font-weight:700}.credential-list dd{margin:.35rem 0 0;display:flex;gap:.6rem;align-items:center;justify-content:space-between}.credential-list code{overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.history-filters{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));align-items:end}.admin-table-wrap{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:.7rem;border-bottom:1px solid #e8e4dc;text-align:left;vertical-align:top}.admin-table th{color:#45574f;font-size:.8rem}.admin-list{margin:0;padding:0;list-style:none}.admin-list li{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.75rem 0;border-bottom:1px solid #e8e4dc}.admin-list li:last-child{border-bottom:0}.admin-error{padding:.9rem;border:1px solid #b33;border-radius:.5rem;color:#8a1c1c;background:#fff5f5}@media(max-width:680px){.admin-shell{width:min(100% - 1rem,1100px);padding-top:1.25rem}.admin-list li{align-items:flex-start;flex-direction:column}.admin-row-actions,.extension-actions{width:100%;justify-content:flex-start}.admin-table th:nth-child(3),.admin-table td:nth-child(3){display:none}}a{color:#174f43;text-underline-offset:.18em}a:hover{color:#0d342c}button,input{font:inherit}button,a,input,label{-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid #d68118;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.site-shell{min-height:100vh;display:flex;flex-direction:column}.skip-link{position:fixed;z-index:10;top:12px;left:16px;padding:9px 13px;border-radius:5px;color:#fff;background:#174f43;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}.site-header{min-height:76px;padding:14px clamp(20px,5vw,72px);display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #d7d1c4;background:#fffdf7}.brand{display:inline-flex;flex-direction:column;color:inherit;text-decoration:none}.brand-domain{color:#5b675f;font-family:Georgia,Times New Roman,serif;font-size:.75rem;letter-spacing:.12em}.brand-title{font-family:Yu Mincho,YuMincho,Georgia,serif;font-size:1.25rem;font-weight:700}.read-only-badge{display:inline-flex;align-items:center;min-height:28px;width:fit-content;border-radius:999px;font-size:.78rem;font-weight:700;letter-spacing:.04em}.header-actions{display:flex;align-items:center}.account-link{min-height:44px;padding:9px 14px;display:inline-flex;align-items:center;border:1px solid #8d9891;border-radius:6px;color:#174f43;background:#fff;font-size:.84rem;font-weight:700;text-decoration:none}.account-link:hover{border-color:#174f43}.read-only-badge{padding:4px 10px;color:#4b3a17;background:#eee2bd}main{width:min(980px,calc(100% - 40px));margin:0 auto;flex:1}.intro{max-width:680px;padding:clamp(48px,7vw,76px) 0 28px}.eyebrow{margin:0 0 8px;color:#486159;font-size:.74rem;font-weight:800;letter-spacing:.18em}h1,h2,p{overflow-wrap:anywhere}h1,h2{font-family:Yu Mincho,YuMincho,Georgia,serif}.intro h1{margin:0;font-size:clamp(2rem,5vw,3.6rem);line-height:1.15}.intro p:last-child{margin:18px 0 0;color:#536159;line-height:1.8}.catalog-controls{padding:20px;display:grid;grid-template-columns:minmax(240px,1fr) minmax(320px,auto);gap:24px;align-items:end;border:1px solid #d7d1c4;border-radius:8px;background:#fffdf7}.search-field{display:grid;gap:8px;font-size:.88rem;font-weight:700}.search-field input{min-height:48px;width:100%;padding:10px 14px;border:1px solid #8d9891;border-radius:7px;color:#17231f;background:#fff}.filter-field{min-width:0;margin:0;padding:0;border:0}.filter-field legend{margin-bottom:8px;font-size:.88rem;font-weight:700}.filter-options{display:flex;flex-wrap:wrap;gap:7px}.filter-options label{position:relative;min-height:44px;display:inline-flex;align-items:center;cursor:pointer}.filter-options input{position:absolute;width:1px;height:1px;opacity:0}.filter-options span{min-height:40px;padding:9px 13px;display:inline-flex;align-items:center;border:1px solid #8d9891;border-radius:999px;background:#fff}.filter-options input:checked+span{color:#fff;border-color:#174f43;background:#174f43}.filter-options input:focus-visible+span{outline:3px solid #d68118;outline-offset:3px}.result-count{margin:26px 0 14px;color:#59675f;font-variant-numeric:tabular-nums}.book-list{margin:0;padding:0 0 72px;list-style:none;border-top:1px solid #d7d1c4}.book-list>li{border-bottom:1px solid #d7d1c4}.book-list-item{min-height:150px;padding:25px 2px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(22px,5vw,52px);align-items:start}.book-list-copy{min-width:0}.book-cover{aspect-ratio:12 / 17;display:block;object-fit:contain;border:1px solid #d7d1c4;border-radius:3px;background:#e9e4d8}.book-cover-list{width:78px;height:auto}.book-list-item h2{margin:0;font-size:clamp(1.12rem,2vw,1.25rem);font-weight:600;line-height:1.55}.book-list-item h2 a{color:#16231f;text-decoration-thickness:1px;text-decoration-color:transparent;transition:text-decoration-color .12s ease}.book-list-item h2 a:hover{text-decoration-color:currentColor}.authors,.publication{margin:0;color:#536159;font-size:.94rem;line-height:1.65}.authors{margin-top:7px;color:#31413b}.publication{margin-top:8px;font-size:.82rem}.category-list{margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px;list-style:none}.category-list li{max-width:100%;padding:3px 8px;overflow-wrap:anywhere;border:1px solid #cbc7bc;border-radius:3px;color:#58645e;background:#f8f5ed;font-size:.74rem;line-height:1.45}.availability-status{margin-top:14px;display:inline-flex;align-items:center;gap:7px;width:fit-content;font-size:.84rem;font-weight:700;line-height:1.5}.status-symbol{min-width:.8em;text-align:center;font-size:.78em}.status-available{color:#175944}.status-loaned{color:#795014}.status-not_for_loan{color:#5f6260}.empty-state,.status-panel{margin:48px 0;padding:42px 24px;text-align:center;border:1px solid #d7d1c4;border-radius:10px;background:#fffdf7}.empty-state button{min-height:44px;padding:8px 16px;border:1px solid #174f43;border-radius:7px;color:#174f43;background:transparent;cursor:pointer}.book-detail{padding:clamp(40px,7vw,74px) 0 80px}.back-link{min-height:44px;display:inline-flex;align-items:center}.detail-layout{margin-top:28px;display:block}.detail-layout.has-cover{display:grid;grid-template-columns:minmax(170px,210px) minmax(0,1fr);grid-template-areas:"cover copy";gap:clamp(34px,6vw,68px);align-items:start}.detail-copy{grid-area:copy;max-width:700px}.book-cover-detail{grid-area:cover;width:100%;height:auto;box-shadow:0 10px 24px #2d363014}.book-detail h1{margin:0;font-size:clamp(1.9rem,5vw,3.2rem);line-height:1.3}.subtitle{margin:9px 0 0;color:#59675f;font-size:1.08rem}.detail-authors{margin:16px 0 0;color:#31413b;font-size:1rem;line-height:1.7}.detail-copy .availability-status{margin-top:20px}.book-metadata{margin:34px 0 0;border-top:1px solid #d7d1c4}.book-metadata div{padding:14px 0;display:grid;grid-template-columns:110px 1fr;gap:18px;border-bottom:1px solid #d7d1c4}.book-metadata dt{color:#59675f;font-size:.82rem;font-weight:700}.book-metadata dd{margin:0;line-height:1.65}.account-page{padding:clamp(46px,7vw,76px) 0 88px}.account-login{width:min(440px,100%);margin-inline:auto}.account-page h1{margin:0;font-size:clamp(2rem,5vw,3.25rem);line-height:1.25}.account-lead{margin:18px 0 28px;color:#536159;line-height:1.75}.login-form{padding:24px;display:grid;gap:20px;border:1px solid #d7d1c4;border-radius:9px;background:#fffdf7}.login-form label{display:grid;gap:8px;font-size:.88rem;font-weight:700}.login-form input{min-height:48px;width:100%;padding:10px 13px;border:1px solid #8d9891;border-radius:6px;color:#17231f;background:#fff}.login-form button,.extension-button{min-height:46px;padding:10px 16px;border:1px solid #174f43;border-radius:6px;color:#fff;background:#174f43;font-weight:700;cursor:pointer}button:disabled{cursor:wait;opacity:.65}.form-message{margin:0 0 20px;padding:12px 14px;border-left:3px solid #3f6f61;color:#31413b;background:#edf2ed;line-height:1.6}.login-form .form-message{margin:0}.error-message{border-left-color:#9c3f31;color:#742f26;background:#f7e9e5}.privacy-note{margin:22px 0 0;color:#66736c;font-size:.78rem;line-height:1.75}.account-heading-row{display:flex;align-items:end;justify-content:space-between;gap:24px}.quiet-button{min-height:44px;padding:8px 14px;border:1px solid #8d9891;border-radius:6px;color:#415149;background:transparent;cursor:pointer}.loan-list{margin:0;padding:0;list-style:none;border-top:1px solid #d7d1c4}.loan-list>li{border-bottom:1px solid #d7d1c4}.loan-item{padding:25px 2px 28px}.loan-item h2{margin:0;font-size:clamp(1.12rem,2vw,1.3rem);line-height:1.55}.loan-dates{margin:20px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:18px 38px}.loan-dates div{display:grid;gap:4px}.loan-dates dt{color:#66736c;font-size:.75rem;font-weight:700}.loan-dates dd{margin:0;font-size:.94rem;font-weight:700;line-height:1.6}.loan-dates dd span{margin-left:9px;color:#59675f;font-size:.78rem;font-weight:500}.loan-dates .overdue,.loan-dates .overdue span{color:#8b382c}.extension-state{margin:18px 0 0;display:flex;gap:8px;color:#5f553f;font-size:.82rem;line-height:1.6}.extension-approved{color:#175944}.extension-rejected{color:#6c4a43}.extension-button{margin-top:18px;color:#174f43;background:transparent;font-size:.84rem}.extension-button:hover{color:#fff;background:#174f43}.site-footer{padding-top:64px;border-top:1px solid #d7d1c4;background:#f5f2e9}.footer-container{width:min(980px,calc(100% - 40px));margin-inline:auto}.footer-grid{display:grid;grid-template-columns:.7fr 1.3fr .7fr;gap:48px;padding-bottom:52px}.footer-identity strong,.footer-identity span{display:block}.footer-identity strong{font-family:Yu Mincho,YuMincho,Georgia,serif;font-size:1.25rem;font-weight:400}.footer-identity span,.footer-bio,.footer-links{color:#59675f}.footer-identity span{font-size:.8rem}.footer-bio{max-width:520px;margin:0;font-size:.82rem;line-height:1.7}.footer-links{padding:0;margin:0;list-style:none}.footer-links li{margin-bottom:5px;font-size:.72rem}.footer-links a{color:inherit;text-underline-offset:3px}.footer-bottom{display:flex;justify-content:space-between;padding-block:20px;border-top:1px solid #d7d1c4;color:#7f8983;font-size:.65rem;letter-spacing:.04em}@media(max-width:960px){.catalog-controls{grid-template-columns:1fr}.book-cover-list{width:68px}}@media(max-width:700px){main{width:min(100% - 28px,1180px)}.site-header{padding-inline:16px}.brand-title{font-size:1.08rem}.account-link{padding-inline:11px;font-size:.78rem}.book-list-item{min-height:138px;padding-block:22px;gap:20px}.detail-layout.has-cover{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "cover";gap:32px}.book-cover-detail{width:min(150px,44vw)}.footer-grid{grid-template-columns:1fr;gap:28px}.account-heading-row{align-items:start;flex-direction:column}.loan-dates{grid-template-columns:1fr}}@media(max-width:430px){.catalog-controls{padding:16px}.filter-options{display:grid;grid-template-columns:1fr 1fr}.filter-options label,.filter-options span{width:100%;justify-content:center}.book-list-item{min-height:126px;padding-block:20px;gap:16px}.book-cover-list{width:52px}.book-list-item h2{font-size:1.08rem}.book-metadata div{grid-template-columns:88px 1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}
