:root{color-scheme:dark;--bg:#0b0b0b;--surface:#131313;--text:#f2f2f2;--muted:#9a9a9a;--line:#292929;--orange:#ff8a32;--content-width:1280px;--gutter:clamp(20px,2.5vw,32px);--header-height:94px;font-family:"Noto Sans JP","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;font-synthesis:none}
*{box-sizing:border-box}
html{scroll-padding-top:calc(var(--header-height) + 24px)}
body{margin:0;background:var(--bg);color:var(--text);line-height:1.6;overflow-wrap:anywhere}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button,a,input,select,summary{-webkit-tap-highlight-color:transparent}
button{color:inherit;cursor:pointer}
button:disabled{cursor:default;opacity:.25}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible{outline:2px solid var(--orange);outline-offset:5px}
button:focus:not(:focus-visible),main:focus,[tabindex="-1"]:focus{outline:none}
button{border:0;background:none;padding:0}
svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
img{display:block;max-width:100%}
h1,h2,h3,p,figure{margin:0}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-80px;left:20px;padding:10px 20px;background:var(--orange);color:#111;z-index:100}
.skip-link:focus{top:10px}
.site-header{height:var(--header-height);position:fixed;inset:0 0 auto;z-index:20;background:#111;display:flex;align-items:center;gap:clamp(22px,3vw,52px);padding:0 max(var(--gutter),calc((100% - var(--content-width)) / 2 + var(--gutter)));border-bottom:1px solid var(--line)}
.brand{font-weight:800;font-size:clamp(24px,2.15vw,34px);letter-spacing:.01em;white-space:nowrap;flex:none}
.main-nav{display:flex;align-self:stretch;align-items:stretch;gap:clamp(18px,2.6vw,48px);white-space:nowrap}
.main-nav a{position:relative;display:flex;align-items:center;padding:0 9px;font-size:clamp(22px,1.95vw,30px);font-weight:750;letter-spacing:.02em}
.main-nav a[aria-current="page"]{color:var(--orange)}
.main-nav a[aria-current="page"]:after{content:"";position:absolute;bottom:14px;height:3px;left:0;right:0;background:var(--orange)}
.site-search{display:flex;align-items:center;margin-left:auto;width:clamp(200px,25vw,350px);height:46px;border:1px solid #383838;border-radius:4px;background:#171717;flex-shrink:1;min-width:190px}
.site-search:focus-within{border-color:var(--orange)}
.site-search button{padding:10px 11px;flex-shrink:0}
.site-search input{min-width:0;width:100%;padding:9px 10px 9px 0;border:0;background:transparent;color:var(--text);font-size:16px;outline:none}
.site-search input::placeholder{color:#9b9b9b}
#main{min-height:calc(100vh - 120px);padding-top:var(--header-height);max-width:var(--content-width);margin-inline:auto}
.loading{padding:80px var(--gutter);color:var(--muted)}
.profile{display:flex;align-items:center;gap:28px;padding:32px var(--gutter) 34px}
.avatar{width:124px;height:124px;flex:none}
.profile h1,.profile h2{font-size:clamp(28px,2.8vw,40px);font-weight:750;line-height:1.35;margin-bottom:8px}
.rating-key-label{color:var(--muted);font-size:15px;margin-bottom:5px}
.rating-key{display:flex;flex-wrap:wrap;gap:10px 30px;font-size:19px;font-weight:600}
.rating-key .star{margin-right:5px;font-size:24px;vertical-align:-1px}
.star{color:var(--orange)}
.shelf{margin-bottom:48px}
.shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 var(--gutter);margin-bottom:14px}
.shelf h2{font-size:clamp(25px,2.5vw,35px);font-weight:750;line-height:1.4;letter-spacing:.01em}
.shelf-controls{display:flex;gap:8px}
.shelf-controls button{width:42px;height:42px;display:grid;place-items:center;transition:color .15s}
.shelf-controls button:hover:not(:disabled){color:var(--orange)}
.shelf-controls svg{width:28px;height:28px}
.shelf-track{display:flex;gap:22px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:3px var(--gutter) 8px;scroll-padding-inline:var(--gutter)}
.shelf-track::-webkit-scrollbar{display:none}
.shelf-track .work-card{flex:0 0 calc((100% - 66px) / 4.35);scroll-snap-align:start;min-width:0}
.work-card{display:block;min-width:0}
.cover{display:flex;align-items:center;justify-content:center;aspect-ratio:2/3;width:100%;background:#111;overflow:hidden;position:relative}
.cover img{width:100%;height:100%;object-fit:contain;transition:filter .18s}
.work-card:hover .cover img{filter:brightness(1.07)}
.work-card:hover .work-title{color:var(--orange)}
.work-title{font-size:clamp(16px,1.45vw,21px);font-weight:500;margin-top:11px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:break-word;line-break:strict;transition:color .15s}
.work-rating{margin-top:3px;font-size:clamp(16px,1.4vw,20px);line-height:1.6;display:flex;gap:7px;align-items:center}
.work-rating .star{font-size:1.15em}
.unrated{color:var(--muted)}
.missing-image{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;color:#707070;background:#151515;text-align:center;padding:20px}
.missing-image svg{width:42px;height:42px;opacity:.6;stroke-width:1}
.missing-image span{font-size:14px;letter-spacing:.08em}
.works-page,.detail-page{padding:30px var(--gutter) 40px}
.page-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.page-top h1{font-size:32px;line-height:1.5;font-weight:750}
.result-count{color:var(--muted);font-size:15px;white-space:nowrap}
.media-nav{display:flex;gap:clamp(16px,2.8vw,42px);overflow-x:auto;scrollbar-width:none;white-space:nowrap;margin-bottom:24px;border-bottom:1px solid var(--line)}
.media-nav a{display:block;padding:0 2px 12px;font-size:18px;position:relative}
.media-nav a[aria-current="true"]{color:var(--orange)}
.media-nav a[aria-current="true"]:after{content:"";position:absolute;bottom:0;height:2px;background:var(--orange);left:0;right:0}
.toolbar{position:relative;display:flex;align-items:center;gap:18px;margin-bottom:25px;flex-wrap:wrap;min-height:42px}
.toolbar-end{margin-left:auto;display:flex;align-items:center;gap:20px}
.sort-label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px}
select{background:#141414;border:1px solid #353535;color:var(--text);border-radius:3px;padding:9px 32px 9px 12px;max-width:100%}
.sort-label select{max-width:210px;font-size:14px}
.text-button{padding:8px 0;font-size:15px;display:inline-flex;align-items:center;gap:7px;color:var(--text)}
.text-button:hover,.text-link:hover{color:var(--orange)}
.text-button svg{width:18px;height:18px}
.active-filters{color:var(--orange);font-size:13px}
.filter-control>summary{cursor:pointer;list-style:none;padding:9px 0;display:flex;align-items:center;gap:8px}
.filter-control>summary::-webkit-details-marker{display:none}
.filter-control>summary svg{width:16px;height:16px}
.filter-panel{position:absolute;top:calc(100% + 4px);left:0;z-index:10;width:min(650px,calc(100vw - var(--gutter) * 2));padding:24px;background:#191919;border:1px solid #383838;box-shadow:0 18px 40px #0007}
.filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.filter-fields label{display:flex;flex-direction:column;gap:8px;color:#b9b9b9;font-size:14px}
.filter-fields select{width:100%}
.filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:22px;margin-top:22px}
.primary-button{background:var(--orange);color:#17100b;padding:10px 24px;border-radius:3px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;min-height:44px}
.primary-button:hover{background:#ff9f55}
.work-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 24px}
.pagination{display:flex;justify-content:center;align-items:center;gap:28px;margin:50px 0 12px}
.pagination a,.pagination .disabled{padding:10px 16px;border:1px solid #333;border-radius:3px;min-width:80px;text-align:center}
.pagination a:hover{border-color:var(--orange);color:var(--orange)}
.pagination .disabled{color:#555}
.pagination .page-count{color:var(--muted);font-size:15px}
.empty-state{padding:75px 0 90px;text-align:center}
.empty-state h2{font-size:25px;font-weight:650;margin-bottom:12px}
.empty-state p{color:var(--muted);margin-bottom:22px}
.empty-state a{color:var(--orange);text-decoration:underline;text-underline-offset:5px}
.maintenance{min-height:calc(100vh - var(--header-height) - 120px);display:flex;align-items:center;justify-content:center;text-align:center;padding:70px 24px}
.maintenance h1{font-size:18px;color:var(--muted);font-weight:500;margin-bottom:22px}
.maintenance h2{font-size:clamp(28px,4vw,42px);font-weight:700;letter-spacing:.02em;margin-bottom:16px}
.maintenance .status-mark{width:34px;height:3px;background:var(--orange);margin:0 auto 24px}
.maintenance p{color:#a7a7a7;margin-bottom:28px;line-height:2}
.maintenance a{color:var(--orange);font-size:16px;text-underline-offset:6px}
.maintenance a:hover{text-decoration:underline}
.back-link{display:inline-flex;align-items:center;gap:6px;padding:8px 0;margin:0 0 24px;color:#bbb;font-size:15px}
.back-link svg{width:18px;height:18px}
.back-link:hover{color:var(--orange)}
.detail-layout{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,1fr);gap:clamp(30px,5vw,80px);align-items:start;max-width:1280px}
.detail-cover-button{display:block;width:100%;text-align:left}
.detail-cover-button .cover{max-height:580px}
.cover-hint{margin-top:10px;color:var(--muted);font-size:13px}
.detail-media{color:var(--orange);font-size:15px;margin-bottom:12px}
.detail-info h1{font-size:clamp(27px,3vw,42px);font-weight:700;line-height:1.5;margin-bottom:12px}
.detail-rating{display:flex;align-items:center;gap:10px;font-size:29px;margin-bottom:4px}
.rating-target{font-size:14px;color:var(--muted)}
.facts{margin:28px 0;display:grid;grid-template-columns:110px 1fr;gap:16px 24px;font-size:16px}
.facts dt{color:var(--muted)}
.facts dd{margin:0;white-space:pre-wrap}
.detail-info .text-button{color:var(--orange)}
.gallery-section{margin-top:45px}
.gallery-section h2{font-size:24px;margin-bottom:20px}
.gallery-section h2 span{margin-left:10px;color:var(--muted);font-weight:400;font-size:16px}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:24px 18px}
.gallery-item{text-align:left;min-width:0;align-self:start}
.gallery-item img{aspect-ratio:2/3;object-fit:contain;width:100%;background:#111}
.gallery-item span{display:block;font-size:13px;color:#bbb;margin-top:8px;line-height:1.6}
.gallery-item:hover span{color:var(--orange)}
.site-footer{display:flex;justify-content:space-between;align-items:center;width:calc(100% - var(--gutter) * 2);max-width:calc(var(--content-width) - var(--gutter) * 2);margin:30px auto 0;padding:25px 0 30px;border-top:1px solid #222;color:#777;font-size:13px}
#image-viewer{padding:0;border:0;background:#121212;color:#eee;max-width:min(95vw,1100px);max-height:95vh;width:fit-content;overflow:visible}
#image-viewer::backdrop{background:#000d}
#image-viewer figure{padding:24px;max-height:94vh;display:flex;flex-direction:column;align-items:center}
#image-viewer img{max-width:85vw;max-height:79vh;width:auto;height:auto;object-fit:contain}
#image-viewer figcaption{font-size:14px;color:#ddd;padding:14px 40px 0;text-align:center;max-width:80vw}
.viewer-close{position:absolute;right:8px;top:5px;background:#111d;width:40px;height:40px;font-size:30px;z-index:1;border-radius:50%;line-height:1}
.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,12px);padding:12px 22px;background:#282828;border:1px solid #555;border-radius:4px;z-index:50;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center;max-width:90vw;font-size:14px}
.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1150px){:root{--header-height:148px}.site-header{height:auto;min-height:var(--header-height);display:grid;grid-template-columns:1fr minmax(220px,340px);grid-template-rows:68px 79px;gap:0 28px}.brand{font-size:29px}.site-search{width:100%;grid-column:2;grid-row:1}.main-nav{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:0}.main-nav a{justify-content:center;flex:1;font-size:26px}.main-nav a[aria-current="page"]:after{bottom:12px;left:18px;right:18px}.work-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shelf-track .work-card{flex-basis:calc((100vw - var(--gutter) * 2 - 44px) / 3.25)}}
@media(max-width:700px){:root{--gutter:20px;--header-height:122px}.site-header{grid-template-columns:1fr minmax(140px,48%);grid-template-rows:60px 61px;column-gap:16px}.brand{font-size:23px}.site-search{height:38px;min-width:0}.site-search input{font-size:13px;padding-right:5px}.site-search button{padding:8px}.site-search svg{width:19px;height:19px}.main-nav a{font-size:19px;padding:0 4px}.main-nav a[aria-current="page"]:after{height:2px;bottom:8px;left:8px;right:8px}.profile{padding-top:25px;padding-bottom:30px;gap:18px;align-items:flex-start}.avatar{width:84px;height:84px}.profile h1,.profile h2{font-size:28px;margin-bottom:4px}.rating-key-label{font-size:12px;margin-bottom:3px}.rating-key{gap:2px 15px;font-size:14px}.rating-key .star{font-size:17px;margin-right:3px}.shelf{margin-bottom:32px}.shelf h2{font-size:25px}.shelf-heading{margin-bottom:10px}.shelf-controls{gap:0}.shelf-controls button{width:34px;height:38px}.shelf-controls svg{width:23px;height:23px}.shelf-track{gap:14px}.shelf-track .work-card{flex-basis:calc((100vw - 54px) / 2.15)}.work-title{font-size:15px;margin-top:8px}.work-rating{font-size:15px;margin-top:2px}.works-page,.detail-page{padding-top:24px}.page-top{margin-bottom:18px}.page-top h1{font-size:28px}.media-nav{gap:24px;margin-bottom:17px}.media-nav a{font-size:16px}.toolbar{gap:8px 18px;margin-bottom:22px}.toolbar-end{gap:15px}.sort-label>span{display:none}.sort-label select{font-size:13px;max-width:170px;padding-left:9px}.share-list .button-label{display:none}.work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 15px}.filter-panel{padding:20px}.filter-fields{grid-template-columns:1fr;gap:15px}.filter-fields label{display:grid;grid-template-columns:100px 1fr;align-items:center}.filter-fields select{min-width:0}.result-count{font-size:13px}.active-filters{font-size:12px}.pagination{gap:15px;margin-top:35px}.pagination a,.pagination .disabled{min-width:70px;font-size:14px;padding:8px 12px}.detail-layout{grid-template-columns:1fr;gap:28px}.detail-cover-button,.detail-layout>.cover{max-width:240px;margin:auto}.detail-cover-button .cover{max-height:none}.detail-info h1{font-size:28px}.detail-media{margin-bottom:8px}.facts{grid-template-columns:88px 1fr;gap:14px 18px;font-size:15px}.gallery-section{margin-top:35px}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px}.gallery-item span{font-size:11px}.site-footer{margin-top:20px;padding-bottom:24px}.back-link{margin-bottom:22px}.toast{bottom:18px;font-size:13px;width:max-content}}
@media(max-width:370px){:root{--gutter:16px}.brand{font-size:21px}.site-search input{font-size:12px}.main-nav a{font-size:17px}.avatar{width:68px;height:68px}.profile{gap:14px}.rating-key{gap:1px 10px;font-size:12px}.rating-key .star{font-size:15px}.toolbar-end{gap:10px}.sort-label select{max-width:154px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.profile+.works-page{padding-top:0}
.articles-page{padding:30px var(--gutter) 50px}
.article-list{max-width:1100px}
.article-list-item{display:grid;grid-template-columns:minmax(220px,32%) minmax(0,1fr);gap:30px;align-items:start;padding:24px 0 30px;border-bottom:1px solid var(--line)}
.article-list-image{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#111}
.article-list-item h2{font-size:clamp(21px,2.1vw,29px);line-height:1.55;font-weight:700;transition:color .15s}
.article-list-item:hover h2{color:var(--orange)}
.article-meta{display:flex;gap:20px;flex-wrap:wrap;color:#aaa;font-size:14px;line-height:1.6}
.article-list-item .article-meta{margin:10px 0}
.article-list-lead{color:#c2c2c2;font-size:16px;line-height:1.8}
.article-page{max-width:1080px;margin-inline:auto;padding:30px var(--gutter) 50px}
.article-header{max-width:900px;margin:0 auto 24px}
.article-header h1{font-size:clamp(27px,3.1vw,41px);line-height:1.5;font-weight:750;letter-spacing:.01em}
.article-header-meta{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-top:18px}
.article-hero{margin:0 auto 24px}
.article-image-button{display:block;width:100%;cursor:zoom-in;background:#111;outline-offset:4px}
.article-image-button img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
.article-figure{min-width:0;align-self:start}
.article-figure figcaption{font-size:13px;color:#aaa;line-height:1.75;margin-top:9px}
.article-spoiler,.article-lead,.article-dialogue-note,.article-image-hint,.article-contents{max-width:760px;margin-left:auto;margin-right:auto}
.article-spoiler{border-left:3px solid var(--orange);background:#18130f;padding:18px 22px;margin-bottom:26px;font-size:15px;line-height:1.8}
.article-note-title{font-weight:700;color:var(--text);margin-bottom:8px}
.article-lead{font-size:19px;line-height:1.95;margin-bottom:14px}
.article-dialogue-note,.article-image-hint{font-size:13px;color:#aaa;line-height:1.85;margin-bottom:10px}
.article-contents{margin-top:24px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.article-contents summary{cursor:pointer;font-size:15px;font-weight:650;width:fit-content}
.article-contents ol{margin:16px 0 4px;padding-left:26px;color:#bbb}
.article-contents li{margin:8px 0;padding-left:4px}
.article-contents button{text-align:left;color:#bbb;font-size:14px;line-height:1.7}
.article-contents button:hover{color:var(--orange)}
.article-section-title{font-size:clamp(23px,2.4vw,30px);line-height:1.5;max-width:760px;margin:64px auto 28px;padding-top:18px;border-top:1px solid #36302c;scroll-margin-top:calc(var(--header-height) + 24px)}
.article-dialogue{max-width:760px;margin:26px auto;font-size:17px;line-height:1.95}
.article-speaker{font-size:14px;font-weight:750;margin-bottom:7px;color:var(--orange);letter-spacing:.025em}
.speaker-teacher{border-left:2px solid #4b443e;padding:3px 0 3px 20px}
.speaker-teacher .article-speaker{color:#c7c3bd}
.article-dialogue strong{font-weight:750}
.article-note{max-width:760px;margin:28px auto;padding:20px 22px;background:#151515;border:1px solid #323232;font-size:15px;line-height:1.9}
.article-table-wrap{max-width:800px;margin:30px auto;overflow-x:auto}
.article-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.8;text-align:left;min-width:460px}
.article-table caption{font-weight:700;text-align:left;font-size:16px;margin-bottom:12px;color:var(--text)}
.article-table th,.article-table td{padding:12px 14px;border-bottom:1px solid #303030;vertical-align:top}
.article-table thead th{background:#191919;color:#d8d4cf;font-weight:650}
.article-table tbody th{font-weight:600;color:#eee;min-width:80px}
.article-table td{color:#c7c7c7}
.article-gallery{margin:32px 0;display:grid;gap:22px;align-items:start}
.article-gallery.layout-compact{max-width:620px;margin-inline:auto}
.article-gallery.layout-mixed{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
.article-gallery.layout-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
.article-gallery.layout-rules{grid-template-columns:repeat(2,minmax(0,1fr));max-width:840px;margin-inline:auto;gap:25px}
.article-footer{max-width:760px;margin:54px auto 0;padding-top:22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.article-footer .back-link{margin:0}
.article-disclosure{max-width:760px;margin:20px auto;border:1px solid #38312c;background:#111;min-width:0}
.article-disclosure summary{padding:15px 16px;min-height:54px;cursor:pointer;font-size:14px;line-height:1.7;color:#d2c8bd}
.article-disclosure summary:hover{color:var(--orange)}
.article-disclosure[open] summary{border-bottom:1px solid #302b27}
.article-disclosure-content{padding:4px 16px 16px;min-width:0}
.article-detail-text{font-size:14px;line-height:1.85;margin:16px 0;color:#c5c0ba}
.article-disclosure .article-gallery{margin:18px 0 0;gap:20px 16px}
.article-disclosure .article-gallery.layout-compact{max-width:580px}
.article-table.article-table-fit{table-layout:fixed;min-width:0}
.article-table-fit th,.article-table-fit td{min-width:0;overflow-wrap:anywhere;word-break:normal}
.article-table-fit th:first-child{width:52px;min-width:0}
.article-table-fit th:nth-child(2){width:38%}
.article-table-description{display:block;font-size:13px;font-weight:400;color:#b9b3ac;margin-top:7px}
.article-table-wrap:has(.article-table-fit){overflow:visible}
.image-viewport{max-width:100%;min-height:0;overflow:auto;overscroll-behavior:contain}
.image-viewer-actions{display:flex;gap:18px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:10px;flex-shrink:0}
#image-zoom{min-height:44px;padding:9px 14px;border:1px solid #665343;border-radius:4px;font-size:14px;color:var(--orange)}
#image-zoom[hidden],#image-pan-hint[hidden]{display:none}
#image-pan-hint{font-size:12px;color:#aaa;margin-top:6px;flex-shrink:0}
#image-viewer.article-image-viewer{width:min(95vw,1100px)}
#image-viewer.article-image-viewer figure{padding:44px 16px 16px}
#image-viewer.article-image-viewer .image-viewport{width:100%;max-height:65vh}
#image-viewer.article-image-viewer img{max-width:100%;max-height:65vh;margin:auto}
#image-viewer.article-image-viewer.image-zoomed .image-viewport img{width:1920px;max-width:none;max-height:none;height:auto;margin:0}
#image-viewer.article-image-viewer figcaption{padding:12px 0 0;flex-shrink:0}
.image-viewer-actions .image-original{margin:0;min-height:44px;display:flex;align-items:center}
@media(max-width:700px){.article-table.article-table-fit{font-size:13px;min-width:0;line-height:1.75}.article-table.article-table-fit th,.article-table.article-table-fit td{padding:10px 7px}.article-table-fit th:first-child{width:42px;min-width:0}.article-disclosure summary{padding:14px;min-height:54px}.article-disclosure-content{padding:2px 12px 12px}.article-disclosure .article-gallery{gap:18px 12px}.article-disclosure .article-gallery.layout-rules{grid-template-columns:repeat(2,minmax(0,1fr))}.article-disclosure .article-gallery.layout-compact{max-width:100%}#image-viewer.article-image-viewer:has(.image-original:not([hidden])) figure{padding:44px 12px 12px}.image-viewer-actions{gap:12px}#image-viewer.article-image-viewer .image-viewport{max-height:62vh}}
.image-original{color:var(--orange);font-size:14px;text-decoration:underline;text-underline-offset:4px;margin-top:10px}
.image-original[hidden]{display:none}
@media(max-width:700px){.articles-page{padding-top:24px}.article-list-item{grid-template-columns:110px minmax(0,1fr);gap:16px;padding:12px 0 24px}.article-list-item h2{font-size:19px;line-height:1.6}.article-list-item .article-meta{gap:12px;font-size:12px;margin:8px 0}.article-list-lead{font-size:13px;line-height:1.8}.article-page{padding-top:24px}.article-header h1{font-size:27px;line-height:1.55}.article-header-meta{margin-top:12px;gap:8px}.article-meta{font-size:13px;gap:14px}.article-header-meta .text-button{font-size:13px}.article-lead{font-size:17px}.article-spoiler{padding:16px;font-size:14px}.article-dialogue{font-size:16px;margin:24px auto;line-height:1.95}.speaker-teacher{padding-left:15px}.article-speaker{font-size:13px}.article-section-title{font-size:23px;margin-top:48px}.article-gallery{gap:20px;margin-block:26px}.article-gallery.layout-mixed,.article-gallery.layout-pair{grid-template-columns:1fr}.article-gallery.layout-mixed .article-figure:last-child{max-width:85%;margin-inline:auto}.article-gallery.layout-rules{gap:18px 14px}.article-figure figcaption{font-size:12px;line-height:1.8}.article-gallery.layout-compact{max-width:90%}.article-note{padding:16px;font-size:14px}.article-table{font-size:13px;min-width:420px}.article-table th,.article-table td{padding:10px 12px}.article-footer{gap:10px}.article-footer .text-button{font-size:13px}#image-viewer:has(.image-original:not([hidden])) img{max-height:65vh}#image-viewer:has(.image-original:not([hidden])) figure{padding:24px 16px 16px}}
@media(max-width:370px){.article-list-item{grid-template-columns:92px minmax(0,1fr);gap:13px}.article-list-item h2{font-size:17px}.article-header h1{font-size:25px}}
.features-page{padding-top:30px}
.features-heading{padding:0 var(--gutter);margin-bottom:30px}
.shelf h2 a:hover{color:var(--orange)}
.feature-count{font-size:14px;color:var(--muted);margin-top:5px}
.feature-page{padding:30px var(--gutter) 40px}
.feature-page .page-top{margin-bottom:28px;align-items:center}
.feature-actions{display:flex;align-items:center;gap:24px;flex:none}
@media(max-width:700px){.features-page{padding-top:24px}.features-heading{margin-bottom:26px}.feature-page{padding-top:24px}.feature-page .page-top{align-items:flex-start;flex-direction:column;gap:12px}.feature-actions{width:100%;justify-content:space-between}.feature-count{font-size:13px}}


/* Category colors shared by labels and filters. */
[data-media="映画"]{--media-color:#f2ce58}
[data-media="ドラマ"]{--media-color:#86afff}
[data-media="アニメ"]{--media-color:#f19bc6}
[data-media="アニメ映画"]{--media-color:#f5ac86}
[data-media="小説"]{--media-color:#8dce94}
[data-media="漫画"]{--media-color:#bd9bea}
[data-media="ゲーム"]{--media-color:#72cbd5}
.card-media[data-media],.detail-media[data-media]{color:var(--media-color,var(--muted));font-size:13px;letter-spacing:.06em;display:flex;align-items:center;gap:7px}
.card-media[data-media]::before,.detail-media[data-media]::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}


/* Keep the fixed header in place across short and scrollable tabs. */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
/* Visible filter conditions and navigation above the work grid. */
.filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin:-5px 0 24px}
.filter-chip{display:inline-flex;align-items:center;gap:12px;max-width:100%;min-height:44px;padding:6px 12px;border:1px solid #494139;border-radius:3px;background:#1b1815;font-size:14px;color:#eee}
.filter-chip span:first-child{min-width:0;overflow-wrap:anywhere}
.filter-chip span:last-child{color:var(--muted);flex:none;font-size:18px}
.filter-chip:hover{border-color:var(--orange)}
.pagination.pagination-top{margin:0 0 24px}
