*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#111;color:#ddd;font-family:system-ui,sans-serif}body{display:flex;flex-direction:column;overflow:hidden}header,footer{display:flex;align-items:center;justify-content:space-between;background:#111e;z-index:2;flex:none}header{height:60px;padding:5px 20px}.brand{height:100%;display:flex;align-items:center;gap:8px}.brand img{filter:brightness(0) invert(94%)}.mode-fc2 .brand img{filter:brightness(0) saturate(100%) invert(19%) sepia(97%) saturate(6282%) hue-rotate(356deg) brightness(97%) contrast(115%)}.brand img:first-child{height:60%}.brand img:last-child{height:80%}select,button{font:inherit;color:#ddd;background:#222;border:1px solid #aaa;border-radius:1em;padding:.2em .6em}button{cursor:pointer}#help{margin-left:1em}footer{height:40px;justify-content:center;font-size:.85rem}main{position:relative;overflow:hidden;flex:1;outline:none;touch-action:none;user-select:none;-webkit-user-select:none}#books{height:100%;position:relative;transition:transform .3s ease}.book{height:100%;width:100%;position:relative;margin-bottom:60px;overflow:hidden}.slides{display:flex;height:100%;transition:transform .3s ease}.slide{width:100%;height:100%;flex:none;display:flex;align-items:center;justify-content:center}.slide>img{width:100%;height:100%;object-fit:contain}.info{position:absolute;bottom:0;left:0;width:100%;background:#000c;padding:1rem 3vw;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem}.info a{color:#ddd;text-decoration:none}.info a:hover{color:white}.title{font-weight:bold}#page-count{position:absolute;left:50%;transform:translateX(-50%);font-variant-numeric:tabular-nums;white-space:nowrap}#page-count[hidden],#page-controls[hidden]{display:none}#page-controls{position:absolute;top:0;left:0;right:0;bottom:var(--info-height, 0px);z-index:3;pointer-events:none}#page-controls button{position:absolute;top:0;height:100%;width:3.5rem;padding:0;border:0;border-radius:0;background:rgba(17,17,17,.45);pointer-events:auto;display:flex;align-items:center;justify-content:center}#page-controls button span{font-size:1.5rem;line-height:1}#page-prev{left:0}#page-next{right:0}#page-controls button:disabled{opacity:.4;cursor:default}.tags{width:100%;display:flex;gap:.4em;flex-wrap:wrap;font-size:.8rem}.tags span{background:#555;border-radius:1em;padding:.1em .7em}.maker{margin-right:auto;display:flex;align-items:center;gap:.7em;border:0;background:none;border-radius:0;padding:0;text-align:left}.maker img{width:48px;height:48px;object-fit:cover;border-radius:50%;background:#eee}.price{color:#f68}.like{border:0;background:none;font-size:1.6rem;line-height:1;color:#999;padding:0}.like.active{color:#f46}.related{flex-direction:column;gap:.5rem;padding:1rem 0 9rem}.related-product{height:32%;max-width:90%;min-height:0}.related-product img{height:100%;max-width:100%;object-fit:contain}.related-details{display:flex;justify-content:center;align-items:center;gap:1rem;max-width:90%;flex-wrap:wrap}.related-details a{color:#ddd;text-decoration:none}.related-details a:hover{text-decoration:underline}.related-maker{display:flex;align-items:center;gap:.5rem}.related-maker img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#eee}.related-heading{font-size:.9rem}.related-list{width:85%;overflow:hidden}.related-track{display:flex;width:100%;transition:transform .4s ease}.related-track a{flex:0 0 33.333333%;padding:0 .5rem}.related-track img{width:100%;border-radius:.5em}#message{position:absolute;top:1rem;left:50%;transform:translateX(-50%);background:#222d;border-radius:1em;padding:.5em 1em;display:none;z-index:3}dialog{background:#222;color:#ddd;border:1px solid #aaa;border-radius:1em;max-width:90vw}dialog::backdrop{background:#000e}.sr-only{position:absolute;clip:rect(0,0,0,0)}@media(max-width:640px){header{padding:5px 8px}.brand img:last-child{max-width:100px;object-fit:contain}.info{font-size:.8rem;padding:.5rem}.tags{max-height:3em;overflow:hidden}.related-track a{padding:0 .25rem}}

.video-slide iframe{border:0;width:100%;height:100%;background:#000}.video-slide{background:#000;padding:0 3.5rem var(--info-height, 0px)}

.swipe-help{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;gap:.65em;background:rgba(0,0,0,.72);color:#fff;font-size:1rem;font-weight:700;pointer-events:none;text-shadow:0 1px 3px #000}
.swipe-help-arrows{display:inline-block;font-size:1.8em;animation:swipe-hint 1.3s ease-in-out infinite}
@keyframes swipe-hint{0%,100%{transform:translateY(-.3em)}50%{transform:translateY(.3em)}}
@media(prefers-reduced-motion:reduce){.swipe-help-arrows{animation:none}}
