*{box-sizing:border-box}html,body{color:#f4f1ed;height:100%;margin:0;font-family:Arial,Noto Sans JP,sans-serif}button,input{font:inherit}button{cursor:pointer}.app{background:#222124;flex-direction:column;height:100dvh;display:flex}header{background:#151516;border-bottom:1px solid #343337;flex:none;align-items:center;gap:28px;height:64px;padding:0 24px;display:flex}header strong{letter-spacing:.15em;font-size:18px}header strong span{letter-spacing:0;margin-left:12px;font-size:12px;font-weight:400}header .subtitle{color:#aeadad;font-size:13px}.download{color:#eee;border:1px solid #777;margin-left:auto;padding:9px 13px;font-size:12px;text-decoration:none}.workspace{flex:1;min-height:0;display:flex}.sidebar{background:#19191b;border-right:1px solid #333;flex:none;width:54px;transition:width .2s;overflow:hidden}.sidebar.open{width:300px}.tabs{flex-direction:column;display:flex}.tabs button{color:#ddd;text-align:center;white-space:nowrap;background:0 0;border:0;border-bottom:1px solid #333;padding:15px 8px;font-size:12px}.sidebar.open .tabs{flex-direction:row}.sidebar.open .tabs button{flex:1}.sidebody{height:calc(100% - 48px);padding:18px;overflow:auto}.sidebody h2{margin:0 0 16px;font-size:16px;font-weight:500}.sidebody input{color:#fff;background:#303034;border:1px solid #68686a;width:100%;padding:10px}.row{color:#ddd;text-align:left;background:0 0;border:0;border-bottom:1px solid #39393d;justify-content:space-between;width:100%;padding:12px 2px;font-size:13px;display:flex}.row:hover,.tabs button:hover{background:#333}.hint{color:#aaa;font-size:12px}.thumbs{grid-template-columns:1fr 1fr;gap:12px;display:grid}.thumbs button{color:#bbb;background:0 0;border:0}.thumbs button>div{background:#353539;justify-content:center;align-items:center;height:115px;display:flex}.thumbs img{object-fit:contain;max-width:100%;max-height:100%}.thumbs small{margin-top:5px;display:block}.reader{background:radial-gradient(circle,#343236,#242326 72%);flex:1;justify-content:center;align-items:center;min-width:0;display:flex;position:relative;overflow:auto}.book{width:min(90%,1040px);height:min(100% - 40px,735px)}.sheet{background:#fff;overflow:hidden}.sheet img{object-fit:contain;width:100%;height:100%;display:block}.single{justify-content:center;align-items:center;max-width:90%;height:calc(100% - 40px);display:flex;overflow:auto}.single img{object-fit:contain;cursor:zoom-in;max-width:100%;height:100%;box-shadow:0 15px 40px #0008}.single.magnified{width:100%;max-width:none;display:block}.single.magnified img{cursor:zoom-out;width:160%;max-width:none;height:auto}.edge{color:#fff;background:#0005;border:0;width:42px;height:70px;font-size:38px;position:absolute;top:50%;transform:translateY(-50%)}.edge.prev{left:5px}.edge.next{right:5px}.message{color:#ddd;text-align:center;padding:30px}footer{background:#151516;border-top:1px solid #343337;align-items:center;gap:12px;height:62px;padding:0 22px;display:flex}footer button{color:#fff;background:0 0;border:0;font-size:20px}footer input[type=number]{color:#fff;text-align:center;background:#333;border:1px solid #555;width:55px;padding:5px}footer span{color:#bbb;font-size:13px}footer .progress{accent-color:#aeb4b8;flex:1}footer button[aria-pressed]{border:1px solid #777;padding:8px 12px;font-size:13px}@media (max-width:740px){header{height:50px;padding:0 12px}header strong{font-size:14px}header strong span,header .subtitle{display:none}.download{padding:6px;font-size:11px}.sidebar{z-index:4;width:0;position:absolute;top:50px;bottom:58px}.sidebar.open{width:min(300px,85vw)}.sidebar:not(.open) .tabs{display:none}.reader{padding:10px}.single{max-width:100%;height:100%}.edge{width:30px;height:55px;font-size:28px}footer{gap:7px;height:58px;padding:0 8px}footer:before{content:"☰";cursor:pointer}footer .progress{min-width:40px}}.mobileMenu{color:#fff;background:0 0;border:0;font-size:20px;display:none}@media (max-width:740px){.mobileMenu{display:block}footer:before{display:none}}@media (min-width:741px){.sidebar{width:88px}.sidebar.open{width:300px}}.productResult{border-bottom:1px solid #444;flex-direction:column;gap:6px;padding:12px 0;font-size:12px;display:flex}.productResult>span{color:#bbb}.productResult>div{flex-direction:column;gap:6px;margin-top:5px;display:flex}.productResult button,.productResult a{color:#fff;text-align:center;background:#37373a;border:1px solid #68686a;padding:8px;font-size:12px;text-decoration:none}.productResult a{background:#575258}.pageProducts{white-space:nowrap;background:#171719dd;align-items:center;gap:8px;max-width:80%;padding:7px 10px;font-size:11px;display:flex;position:absolute;bottom:10px;left:50%;overflow:auto;transform:translate(-50%)}.pageProducts a{color:#fff;border:1px solid #777;padding:5px;text-decoration:none}.copyPage{white-space:nowrap;border:1px solid #777;padding:7px 10px;font-size:12px}@media (max-width:740px){.sidebar.open .tabs{grid-template-columns:1fr 1fr;display:grid}.sidebar.open .sidebody{height:calc(100% - 96px)}.copyPage{padding:7px;font-size:0}.copyPage:before{content:"URL";font-size:11px}.pageProducts{max-width:none;bottom:4px;left:10px;right:10px;transform:none}}.headerSearch{color:#fff;background:#303034;border:1px solid #777;margin-left:auto;padding:9px 13px;font-size:12px}.download{margin-left:0}.searchHit{color:#fff;text-align:left;background:#29292d;border:0;border-bottom:1px solid #555;flex-direction:column;gap:7px;width:100%;padding:12px 9px;line-height:1.5;display:flex}.searchHit:hover{background:#3a3a3d}.searchHit span{color:#ccc;overflow-wrap:anywhere;font-size:12px}.searchHit mark{color:#171719;background:#f7ca58;padding:1px}.zoomControls{align-items:center;gap:2px;display:flex}.zoomControls button{border:1px solid #666;min-width:28px;padding:6px;font-size:18px}.zoomControls button:disabled{opacity:.4}.zoomControls select{color:#fff;background:#303034;border:1px solid #666;max-width:110px;padding:7px 3px}.single.isZoomed{text-align:left;width:100%;max-width:none;height:100%;display:block;overflow:auto}.single.isZoomed img{max-width:none;height:auto;box-shadow:none;cursor:zoom-out;margin:0;display:block}@media (max-width:740px){.headerSearch{padding:6px;font-size:0}.headerSearch:before{content:"⌕ 探す";font-size:11px}.zoomControls select{max-width:66px;font-size:11px}.zoomControls button{min-width:22px;font-size:14px}.download{display:none}}.bookMount{width:100%;height:100%}.pageProducts{color:#fff;cursor:pointer;border:1px solid #777}.pageProducts:hover{background:#333}.pageSurface{aspect-ratio:595.276/841.89;max-width:100%;max-height:100%;display:block;position:relative}.pageSurface img{object-fit:contain;max-height:100%;box-shadow:none;display:block;width:100%!important;max-width:none!important;height:100%!important}.pageMark{pointer-events:none;mix-blend-mode:multiply;z-index:2;background:#ffe34a99;outline:1px solid #ffca1d;position:absolute}.searchResults{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.searchHit{align-items:flex-start;min-width:0}.searchHit img{aspect-ratio:595/842;object-fit:contain;background:#555;width:100%}.searchHit strong{font-size:13px}.searchHit span{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.thumbs button{border:2px solid #0000;padding:5px}.thumbs button:has(small:first-child){border-color:#0000}.mobileTools{display:none}@media (max-width:740px){header{gap:12px;height:42px;padding:0 10px}header strong{font-size:13px}.headerSearch{padding:5px 8px}.workspace{min-height:0}.reader{padding:3px}.single{width:100%;max-width:100%;height:100%;overflow:hidden}.single:not(.isZoomed) .pageSurface{width:auto;max-width:100%;height:min(100%,141.42vw);margin:auto}.single.isZoomed{overflow:auto}.single.isZoomed .pageSurface{height:auto;max-height:none}.single.isZoomed .pageSurface img{height:auto!important}.edge{opacity:.55;width:22px;height:42px;font-size:23px}.edge.prev{left:0}.edge.next{right:0}.sidebar{top:42px;bottom:46px}.sidebar.open{background:#202022;border-right:0;width:100vw}.sidebar.open .tabs{grid-template-columns:repeat(4,1fr);display:grid}.sidebar.open .tabs button{padding:11px 2px;font-size:11px}.sidebar.open .sidebody{height:calc(100% - 40px);padding:12px}.thumbs{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.thumbs button>div{aspect-ratio:595/842;height:auto}.thumbs img{object-fit:contain;width:100%;height:100%;max-height:100%}.searchResults{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}footer{height:46px;padding:0 4px}.mobileTools{justify-content:space-between;align-items:center;gap:2px;width:100%;display:flex}.mobileTools button{min-width:36px;min-height:38px;padding:3px 6px;font-size:24px}.mobileTools .pageCount{min-width:72px;font-size:14px}.mobileTools .productCount{white-space:nowrap;border:1px solid #666;border-radius:16px;min-width:68px;padding:5px 7px;font-size:11px}.thumbs,.searchResults{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.searchHit{gap:6px;padding:6px}.searchHit strong{font-size:13px}.searchHit span{-webkit-line-clamp:3;font-size:11px}footer .progress{display:none}footer{justify-content:space-between}footer input[type=number]{width:42px}.zoomControls select{max-width:64px}.pageProducts{font-size:11px}}header{color:#111;background:#fff;border-bottom:1px solid #ddd}.headerLogo{object-fit:contain;width:auto;max-width:42vw;height:36px;display:block}.mobileMenu{color:#111}.headerSearch{color:#111;background:#f2f2f2;border-color:#aaa}.download{color:#111;border-color:#aaa}header .subtitle{color:#555}@media (max-width:740px){.headerLogo{max-width:54vw;height:29px}header{gap:8px}.mobileMenu{min-width:28px;padding:0}.headerSearch{margin-left:auto}}.headerProducts{color:#fff;white-space:nowrap;background:#222;border:1px solid #333;border-radius:18px;flex:none;padding:8px 13px;font-size:12px;font-weight:700;display:block}@media (max-width:740px){.headerLogo{max-width:43vw}.headerProducts{color:#111;white-space:nowrap;background:#f2f2f2;border:1px solid #aaa;border-radius:15px;flex:none;padding:5px 7px;font-size:11px;display:block}.headerSearch{min-width:37px;font-size:0}.headerSearch:before{content:"⌕";font-size:20px}.single{touch-action:none}.single img{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.mobileTools{gap:0}.mobileTools button{min-width:32px;padding:2px 3px}.mobileTools button:disabled{opacity:.35}.mobileTools .pageCount{min-width:65px;font-size:13px}.mobileTools .zoomValue{min-width:52px;font-size:13px}.toolDivider{background:#555;flex:none;width:1px;height:25px;margin:0 3px}}.catalogMissing{color:#e0b477;background:#352e28;padding:8px;font-size:12px;line-height:1.5;display:block}.productResult{gap:8px;padding:14px 0}.productResult strong{font-size:16px}.productResult>span{color:#eee;font-size:13px;line-height:1.5}.productResult .shopifyLink{color:#151516;background:#f5f1e8;border-color:#f5f1e8;padding:11px;font-size:13px;font-weight:700}.productResult .catalogPageLink{color:#ddd;background:0 0;border-color:#777}@media (max-width:740px){.headerSearch:before{content:"⌕"}.sidebody h2{font-size:18px;font-weight:700}.headerLogo{max-width:33vw}.headerProducts{padding:6px;font-size:10px}.headerSearch{min-width:30px;padding:4px}.headerSearch:before{font-size:17px}header{gap:5px}}.headerSearch,.headerProducts{color:#111;white-space:nowrap;background:#f7f7f7;border:1px solid #777;border-radius:6px;justify-content:center;align-items:center;gap:6px;height:36px;padding:0 11px;font-size:12px;font-weight:700;display:inline-flex}.headerSearch{margin-left:auto}.headerSearch:before{content:none}.headerProducts{color:#fff;background:#222;border-color:#222;margin-left:auto}.actionIcon{flex:none;width:18px;height:18px;display:block}.countBadge{color:#111;background:#fff;border-radius:12px;justify-content:center;align-items:center;min-width:23px;height:23px;padding:0 5px;font-size:11px;display:inline-flex}@media (max-width:740px){header{gap:5px}.headerLogo{max-width:31vw}.headerSearch,.headerProducts{gap:3px;min-width:0;height:32px;padding:0 6px;font-size:10px}.headerSearch:before{content:none}.actionIcon{width:16px;height:16px}.countBadge{min-width:19px;height:19px;padding:0 3px;font-size:10px}}.sheet{position:relative}.panelClose{text-align:right;color:#fff;background:#303034;border:0;border-bottom:1px solid #555;width:100%;height:40px;padding:0 14px;font-size:13px;display:block}.panelClose span{margin-left:6px}.sidebar.open .sidebody{height:calc(100% - 88px)}.showMore{color:#fff;background:#353539;border:1px solid #777;border-radius:5px;width:100%;min-height:44px;margin:12px 0 20px;display:block}@media (max-width:740px){.sidebar{bottom:52px}.sidebar.open .tabs button{min-height:44px;font-size:12px}.sidebar.open .sidebody{height:calc(100% - 84px)}footer{height:52px}.mobileTools button{min-width:40px;min-height:44px}.mobileTools .pageCount{min-width:66px}.mobileTools .zoomValue{min-width:48px}.mobileTools .shareMobile{font-size:12px;font-weight:700}}.emptyProducts{color:#ddd;background:#303034;border:1px solid #555;padding:16px;font-size:13px;line-height:1.6}
