:root{color-scheme:light;--toolbar:#303234;--ink:#252627;--muted:#6c6e70;--accent:#b18d59;--page-width:440px;--page-height:700px;--header-height:48px;--toolbar-height:68px}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:#d5d6d7;display:flex;flex-direction:column}button,select,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.3;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #d0ad77;outline-offset:3px}button{touch-action:manipulation}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.skip-link{position:fixed;z-index:100;left:12px;top:-100px;background:white;padding:12px;color:black}.skip-link:focus{top:8px}.header{height:var(--header-height);min-height:var(--header-height);display:flex;align-items:center;gap:16px;padding:0 20px;background:#f9f9f8;border-bottom:1px solid #c6c7c7}.header h1{font-size:14px;font-weight:500;letter-spacing:.04em;margin:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header a{color:#4c4e50;text-decoration:none;font-size:11px;white-space:nowrap}.shelf-link{padding-right:17px;border-right:1px solid #d7d7d5}.reader{min-height:0;flex:1;display:flex;flex-direction:column}.stage{flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;padding:20px 52px 9px;touch-action:pan-y pinch-zoom}.book{display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 3px 8px #0003);outline:none;max-width:100%;flex-shrink:0;isolation:isolate}.page{width:var(--page-width);height:var(--page-height);position:relative;background:#fff;flex-shrink:0;overflow:hidden}.page img{display:block;width:100%;height:100%;user-select:none;-webkit-user-drag:none}.book.spread .page:first-child::after{content:"";pointer-events:none;position:absolute;z-index:2;right:0;top:0;width:16px;height:100%;background:linear-gradient(90deg,transparent,#00000012)}.book.spread .page:last-child::after{content:"";pointer-events:none;position:absolute;z-index:2;left:0;top:0;width:16px;height:100%;background:linear-gradient(90deg,#00000010,transparent)}.edge{position:absolute;z-index:4;top:50%;transform:translateY(-50%);border:0;width:34px;height:56px;border-radius:5px;color:#55595a;background:#ffffff70;font-family:Arial,sans-serif;font-size:38px;line-height:1;padding:0}.edge:hover:enabled{background:#ffffffe0}.edge-next{left:9px}.edge-prev{right:9px}.reading-caption{min-height:25px;display:flex;justify-content:center;gap:20px;font-size:11px;color:#5d5f60;padding:2px 12px 8px}.caption-help{color:#777a7b}.toolbar{min-height:var(--toolbar-height);display:flex;align-items:center;justify-content:center;gap:34px;padding:10px 16px;background:var(--toolbar);color:#eee;box-shadow:0 -1px 0 #0002}.page-navigation{display:flex;align-items:center;gap:3px}.toolbar button{color:#eee;background:transparent;border:1px solid transparent;border-radius:4px;min-width:35px;height:38px;padding:0 8px}.page-navigation button{font-size:27px;line-height:1}.toolbar button:hover:enabled{background:#ffffff14;border-color:#ffffff25}.page-select-label{padding:0 6px}.page-select-label select{height:32px;width:128px;background:#222426;color:#f4f4f4;border:1px solid #696b6d;border-radius:3px;padding:0 8px;font-size:12px}.toolbar-tools{display:flex;gap:8px;align-items:center}.toolbar-tools button{font-size:11px;display:flex;gap:5px;align-items:center}.tool-symbol{font-family:Arial,sans-serif;font-size:21px;line-height:1}.link-count{font-size:10px;color:#f1d5a7}.load-error{position:absolute;background:white;padding:20px;max-width:90%;font-size:14px}.drawer,.zoom-dialog{padding:0;border:0;box-shadow:0 14px 70px #0005;color:var(--ink);background:#f7f7f6}.drawer::backdrop,.zoom-dialog::backdrop{background:#0009}.drawer{width:min(640px,calc(100% - 32px));max-height:calc(100% - 50px);border-radius:6px}.dialog-header{height:56px;display:flex;gap:12px;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #dededd;padding:0 18px}.dialog-header h2{font-size:15px;font-weight:500;margin:0;letter-spacing:.04em}.close-button{border:0!important;background:transparent!important;color:#555;font-family:Arial,sans-serif;font-size:28px!important;width:36px;height:36px;padding:0!important;border-radius:4px}.close-button:hover{background:#eee!important}.drawer-tabs{display:flex;border-bottom:1px solid #ddd;background:#fff;padding:0 18px;gap:24px}.drawer-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#777;font-size:12px;padding:14px 2px}.drawer-tabs button[aria-selected=true]{color:#252627;border-color:#b18d59}.drawer-content{max-height:calc(100dvh - 175px);overflow:auto;overscroll-behavior:contain;padding:20px}#thumbnailsPanel{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:17px 14px}#thumbnailsPanel[hidden],#productsPanel[hidden]{display:none}.thumbnail{border:0;background:transparent;display:flex;flex-direction:column;gap:7px;align-items:center;padding:3px;min-width:0;color:#666;font-size:11px}.thumbnail img{width:100%;height:auto;aspect-ratio:453.543/722.835;object-fit:contain;background:#fff;box-shadow:0 1px 4px #0002}.thumbnail.current{color:#3e311d;font-weight:600}.thumbnail.current img{outline:2px solid #b18d59;outline-offset:2px}.thumbnail:hover img{outline:2px solid #b18d59;outline-offset:2px}.product-page{margin:0 0 22px}.product-page h3{font-weight:500;font-size:12px;color:#787b7d;border-bottom:1px solid #ddd;padding:0 0 9px;margin:0 0 7px}.product-list{list-style:none;margin:0;padding:0}.product-list li+li{border-top:1px solid #e7e7e5}.product-list a{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:48px;font-size:13px;line-height:1.7;text-decoration:none;color:#333;padding:10px 4px}.product-list a::after{content:"↗";color:#a5885e}.product-list a:hover{color:#906d3c}.empty-products{font-size:13px;color:#76797b;line-height:1.8;margin:10px 0 16px}.zoom-dialog{width:calc(100% - 32px);height:calc(100% - 32px);max-width:1600px;max-height:none;border-radius:5px;overflow:hidden}.zoom-dialog[open]{display:flex;flex-direction:column}.zoom-header{flex-shrink:0}.zoom-controls{display:flex;align-items:center;gap:9px}.zoom-controls button{height:32px;min-width:32px;border:1px solid #d8d8d6;background:#f7f7f5;border-radius:3px;color:#444;font-size:17px}.zoom-controls #zoomFit{font-size:11px;padding:0 9px}#zoomLevel{min-width:42px;text-align:center;font-size:11px;color:#777}.zoom-page-tabs{display:flex;justify-content:center;gap:8px;padding:8px;min-height:42px;background:#eeefee;flex-shrink:0}.zoom-page-tabs button{font-size:11px;border:1px solid #d4d4d2;border-radius:3px;background:#fff;padding:5px 12px;color:#666}.zoom-page-tabs button[aria-pressed=true]{border-color:#b18d59;color:#5c492e}.zoom-scroll{flex:1;min-height:0;overflow:auto;background:#bfc1c2;padding:20px;overscroll-behavior:contain}.zoom-page{position:relative;flex-shrink:0;background:#fff;margin:0 auto;box-shadow:0 3px 12px #0003}.zoom-page img{display:block;width:100%;height:100%;user-select:none}.book.turn-forward{animation:turnForward .22s ease-out}.book.turn-back{animation:turnBack .22s ease-out}@keyframes turnForward{from{opacity:.5;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes turnBack{from{opacity:.5;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}@media(max-width:700px){:root{--header-height:44px;--toolbar-height:105px}.header{padding:0 12px;gap:11px}.header h1{font-size:11px;letter-spacing:.01em}.header a{font-size:10px}.shelf-link{padding-right:10px}.site-link{display:none}.stage{padding:12px 34px 5px}.edge{width:25px;height:48px;font-size:31px}.edge-next{left:4px}.edge-prev{right:4px}.reading-caption{min-height:22px;padding-bottom:6px;font-size:10px}.caption-help{display:none}.toolbar{flex-direction:column;gap:4px;padding:6px 8px max(7px,env(safe-area-inset-bottom));min-height:var(--toolbar-height)}.toolbar-tools{gap:16px}.toolbar-tools button{height:32px;font-size:10px}.page-navigation button{height:34px}.page-select-label select{height:30px}.drawer{width:calc(100% - 20px);max-height:calc(100% - 24px)}.drawer-content{max-height:calc(100dvh - 150px);padding:15px}#thumbnailsPanel{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 10px}.dialog-header{padding:0 12px;height:50px}.dialog-header h2{font-size:13px}.zoom-dialog{width:100%;height:100%;max-height:100%;margin:0;border-radius:0}.zoom-header{gap:4px}.zoom-header h2{font-size:11px}.zoom-controls{gap:5px}.zoom-controls button{min-width:28px;height:30px}.zoom-controls #zoomFit{font-size:10px;padding:0 5px}#zoomLevel{min-width:35px;font-size:10px}.zoom-scroll{padding:10px}.zoom-page-tabs{padding:6px;min-height:36px}.zoom-page-tabs button{font-size:10px;padding:3px 10px}}@media(max-height:480px) and (min-width:701px){:root{--header-height:34px;--toolbar-height:50px}.header h1{font-size:12px}.stage{padding-top:8px}.reading-caption{min-height:18px;font-size:10px;padding-bottom:3px}.toolbar{padding:5px 12px}.toolbar-tools button{height:32px}.page-navigation button{height:32px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.reading-ltr .edge-next{left:auto;right:9px}.reading-ltr .edge-prev{right:auto;left:9px}.reading-ltr .page-navigation{flex-direction:row-reverse}@media(max-width:700px){.reading-ltr .edge-next{right:4px}.reading-ltr .edge-prev{left:4px}}

.touch-landscape{--header-height:32px;--toolbar-height:46px}.touch-landscape .header{height:32px;min-height:32px}.touch-landscape .toolbar{min-height:46px;flex-direction:row;gap:12px;padding:4px 10px max(4px,env(safe-area-inset-bottom))}.touch-landscape .toolbar-tools{gap:5px}.touch-landscape .toolbar-tools button{height:32px}.touch-landscape .page-navigation button{height:32px}.touch-landscape .stage{padding:8px 34px 3px}.touch-landscape .reading-caption{min-height:18px;padding:0 8px 3px;font-size:10px}.touch-landscape .caption-help{display:none}.touch-landscape .site-link{display:none}.touch-landscape .header h1{font-size:11px}
@media(max-height:480px) and (max-width:600px){.touch-landscape .toolbar{gap:3px}.touch-landscape .page-select-label select{width:88px}.touch-landscape .toolbar-tools{gap:1px}.touch-landscape .toolbar-tools button{padding:0 4px}.touch-landscape .page-navigation button{min-width:27px;padding:0 3px}}
.name-link{position:absolute;z-index:4;display:block;margin:0;padding:0;border:0;background:transparent;box-shadow:0 1px 0 #8f70464d;text-decoration:none;cursor:pointer;-webkit-user-drag:none}.name-link:hover,.name-link:focus-visible{background:#c6a2661c;outline:1px solid #977442;outline-offset:1px}.name-link:active{background:#c6a2662b}.name-link[aria-hidden=true]:focus{outline:none}

.image-link{position:absolute;z-index:3;display:block;margin:0;padding:0;border:0;background:transparent;cursor:pointer;-webkit-user-drag:none}.image-link:hover,.image-link:focus-visible{outline:1px solid #977442;outline-offset:-1px}.catalog-link{-webkit-user-drag:none}
