:root{font-family:Arial,Helvetica,sans-serif;color:#282d2e;background:#ffffff;font-synthesis:none;--red:#c92b2d;--line:#d9d9d4;--muted:#646866}
*{box-sizing:border-box}body{margin:0;background:#ffffff}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.28}button{color:inherit}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--red);outline-offset:4px}button{border:0;background:none}button:hover:not(:disabled){color:var(--red)}[hidden]{display:none!important}.app{min-height:100dvh;max-width:1800px;margin:auto;display:flex;flex-direction:column;background:#ffffff}.header{display:flex;align-items:center;gap:28px;padding:22px 4%;border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:flex;flex-direction:column;align-items:center}.brand>span{font-family:Georgia,serif;font-size:37px;letter-spacing:-3px;line-height:1}.red{color:var(--red)}.brand small{font-size:6px;letter-spacing:1px;margin-top:5px}.header-title{font-size:13px;line-height:1.6;border-left:1px solid var(--line);padding-left:26px}.header-title>span{display:block;color:var(--muted);font-size:11px}.button{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:6px;min-height:44px;padding:0 17px;background:#fafaf8}.contents-button{margin-left:auto;font-size:12px}.contents-button>span:first-child{font-size:23px}.reader{width:100%;max-width:100%;margin:0 auto;flex:1}.reader-heading{display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.8px;color:var(--muted)}h1{font-size:23px;font-weight:500;margin:7px 0 0;letter-spacing:-.6px}.edition{font-size:10px;letter-spacing:2px;color:#686d69}.stage{display:flex;position:relative;align-items:center;justify-content:center;gap:0;padding:0;min-height:260px;background:#ffffff}.book{position:relative;height:clamp(290px,calc(100dvh - 330px),740px);aspect-ratio:1532/1080;max-width:100%;filter:drop-shadow(0 16px 14px #20232325);perspective:1600px;touch-action:pan-y}.book.cover{aspect-ratio:766/1080}.sheets{display:flex;width:100%;height:100%;position:relative;background:#fff;box-shadow:2px 2px 0 #dadad5,4px 4px 0 #fafaf8,5px 5px 0 #cfcec9;overflow:hidden}.page{position:relative;width:50%;height:100%;flex:1;min-width:0}.page img{display:block;width:100%;height:100%;object-fit:fill}.page+.page:before{content:"";position:absolute;inset:0 auto 0 0;width:10px;pointer-events:none;background:linear-gradient(90deg,#0002,transparent);z-index:1}.page:first-child:not(:last-child):after{content:"";position:absolute;inset:0 0 0 auto;width:12px;pointer-events:none;background:linear-gradient(90deg,transparent,#0002)}.page-load-error{position:absolute;inset:15%;background:#fff;padding:15px;color:#a32323;font-size:14px}.arrow{flex-shrink:0;width:48px;height:48px;border:1px solid #cfcfca;background:#fafaf8;border-radius:50%;font-size:22px;transition:background .2s}.arrow:hover:not(:disabled){background:#fff}.turn-sheet{position:absolute;top:0;width:50%;height:100%;transform-style:preserve-3d;z-index:5;pointer-events:none;transition:transform .55s cubic-bezier(.25,.65,.2,1)}.turn-sheet.forward{right:0;transform-origin:left center}.turn-sheet.backward{left:0;transform-origin:right center}.turn-sheet img{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden;background:white}.turn-sheet img.back{transform:rotateY(180deg)}.turn-sheet.forward.turning{transform:rotateY(-180deg)}.turn-sheet.backward.turning{transform:rotateY(180deg)}.hotspot{position:absolute;left:12.5%;top:74.4%;width:43%;height:7%;border-radius:40px;background:transparent;outline:2px solid transparent;outline-offset:3px}.hotspot:hover{outline-color:white;background:#ffffff12}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 auto;max-width:1200px;padding:8px 0;border-top:1px solid var(--line)}.page-control{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}.page-control input{width:47px;height:35px;border:1px solid var(--line);border-radius:4px;background:#fafaf8;color:#252a2b;text-align:center;appearance:textfield;-moz-appearance:textfield}.page-control input::-webkit-inner-spin-button{appearance:none}.tools{display:flex;gap:4px}.tool{display:flex;align-items:center;gap:7px;font-size:11px;min-height:44px;padding:0 12px;border-radius:5px}.tool>span:first-child{font-size:21px;line-height:1}.tool[aria-pressed=true]{background:#f3dfdd;color:#a42123}.progress{display:flex;gap:5px;max-width:1200px;margin:0 auto}.progress button{flex:1;position:relative;height:24px;padding:0}.progress button:before{content:"";position:absolute;left:0;right:0;top:10px;height:3px;border-radius:2px;background:#d4d5cf}.progress button[aria-current=true]:before{background:var(--red)}.progress button:hover:before{background:#8f9390}.reader-footer{max-width:1200px;display:flex;align-items:center;gap:20px;margin:auto;font-size:10px;color:var(--muted);min-height:36px}.text-button{font-size:11px;min-height:36px;padding:0}.reader-footer #contact{margin-left:auto;color:#9e2325}.footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:16px 4%;font-size:9px;color:#70756f;letter-spacing:.7px}dialog{border:1px solid #ddd;border-radius:12px;padding:26px;background:#ffffff;color:#282d2e;box-shadow:0 25px 100px #0003;max-height:90dvh}dialog::backdrop{background:#1b222a80;backdrop-filter:blur(5px)}.contents-dialog{width:min(1000px,94vw)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}h2{font-size:24px;font-weight:500;margin:7px 0;letter-spacing:-.5px}.close{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;font-size:27px;flex-shrink:0}.search-label{display:block;font-size:12px;margin-bottom:8px}#search{width:100%;padding:14px;border:1px solid var(--line);border-radius:6px;background:#fff;margin-bottom:22px}.chapter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px 16px}.chapter-card{text-align:left;padding:0;display:flex;flex-direction:column;gap:8px}.chapter-card img{width:100%;height:150px;object-fit:contain;background:#f3f3f0;padding:7px;border-radius:4px}.chapter-card strong{font-weight:500;font-size:13px}.chapter-card small{font-size:10px;color:var(--muted)}.chapter-card[aria-current=true] img{outline:2px solid var(--red)}.zoom-dialog{width:96vw;height:94dvh;max-height:94dvh;padding:18px}.zoom-dialog .dialog-header{margin-bottom:8px}.zoom-controls{display:flex;align-items:center;gap:12px;font-size:12px}.zoom-controls input{width:120px;accent-color:var(--red)}.zoom-scroll{height:calc(100% - 108px);overflow:auto;overscroll-behavior:contain;background:#f0f0ee;text-align:center;padding:18px}.zoom-scroll img{display:block;width:min(100%,766px);max-width:none;height:auto;margin:auto}.zoom-tabs{display:flex;gap:8px;height:40px}.zoom-tabs button{font-size:12px;border-bottom:2px solid transparent}.zoom-tabs button[aria-pressed=true]{border-color:var(--red);color:var(--red)}.contact-dialog{width:min(480px,94vw)}.contact-dialog h2{font-size:30px;line-height:1.15}.contact-dialog p{color:var(--muted);font-size:14px;line-height:1.6}.contact-link{display:block;padding:18px 0;border-bottom:1px solid var(--line);text-decoration:none;font-size:18px}.contact-link span{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.contact-link:hover{color:var(--red)}.address{margin-bottom:0}.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}.app:fullscreen{background:#ffffff;max-width:none;overflow:auto}.app:fullscreen .book{height:calc(100dvh - 330px)}
@media(min-width:701px) and (max-height:720px){.book{height:clamp(240px,calc(100dvh - 280px),500px)}.header{padding-top:12px;padding-bottom:12px}.reader{margin-top:8px}.stage{padding-top:8px;padding-bottom:8px}.footer{padding-top:10px;padding-bottom:10px}}
@media(max-width:1000px){.tool{padding:0 8px}.book{height:auto;max-height:650px;width:100%}.book.cover{width:min(52%,440px)}.edition{display:none}.stage{gap:0}}
@media(max-width:700px){.header{padding:15px 5%;gap:15px}.brand>span{font-size:31px}.header-title{font-size:11px;padding-left:14px;max-width:190px}.header-title>span{font-size:9px}.contents-button{padding:0 12px;gap:0}.contents-button>span:last-child{display:none}.reader{width:100%;margin:0 auto}h1{font-size:20px}.eyebrow{font-size:8px}.stage{padding:0;gap:0}.book,.book.cover{aspect-ratio:766/1080;width:100%;max-width:none;height:auto;max-height:none}.page{width:100%}.arrow{display:none!important}.toolbar{flex-direction:column;gap:1px;padding:6px 0 2px}.tools{width:100%;justify-content:space-around}.tool{flex-direction:column;gap:4px;padding:9px 7px;font-size:9px;min-width:54px;min-height:54px}.reader-footer{flex-wrap:wrap;gap:0 15px;font-size:9px}.reader-footer #hint{width:100%;text-align:center;padding:4px 0}.reader-footer #contact{margin-left:auto}.footer{font-size:8px;line-height:1.7;padding:12px 5%}.footer>span:last-child{max-width:170px;text-align:right}.chapter-grid{grid-template-columns:repeat(2,1fr);gap:18px 12px}.chapter-card img{height:140px}dialog{padding:18px}.dialog-header{gap:8px}h2{font-size:20px}.zoom-dialog h2{font-size:14px}.zoom-controls{gap:6px}.zoom-controls label{display:none}.zoom-controls input{width:65px}.zoom-controls output{min-width:34px;font-size:10px}.zoom-scroll{padding:8px}.contact-dialog h2{font-size:27px}.app:fullscreen .book{height:auto}.progress button{height:32px}.progress button:before{top:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* Book-only layout, with a single compact control bar. */
.app{height:100dvh;min-height:0;max-width:none;overflow:hidden;background:#ffffff}
.reader{width:100%;height:100%;min-height:0;margin:0;padding:0 8px 6px;display:flex;flex-direction:column;background:#ffffff}
.stage{flex:1;min-height:0;padding:0;gap:0;overflow:hidden;background:#ffffff}
.reader .stage .book{flex:none;width:auto;height:auto;max-width:none;max-height:none;aspect-ratio:auto;cursor:grab;user-select:none;-webkit-user-select:none;touch-action:pan-y pinch-zoom;perspective:none;filter:none;box-shadow:0 8px 24px rgba(0,0,0,0.08)}
.book.dragging{cursor:grabbing!important}
.book img{-webkit-user-drag:none;user-select:none}
.sheets{box-shadow:1px 2px 0 #e4e4e0,3px 3px 0 #fafaf8}
.paper-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}
.book.is-turning .hotspot,.book.is-turning .product-link,.book.is-turning .product-link-area,.book.dragging .hotspot,.book.dragging .product-link,.book.dragging .product-link-area,.turn-sheet .hotspot,.turn-sheet .product-link,.turn-sheet .product-link-area{display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}
#contact,.reader-footer #contact{display:none!important}
.stage .arrow{position:absolute;z-index:10;top:calc(50% - 24px);background:#ffffffee;box-shadow:0 2px 10px rgba(0,0,0,0.12);border:1px solid #d9d9d4}
.stage .previous{left:8px}.stage .next{right:8px}
.toolbar{width:100%;flex-shrink:0;max-width:1200px}
.progress{width:100%;flex-shrink:0;max-width:1200px}
.reader-footer{width:100%;flex-shrink:0;max-width:1200px}
.exit-fullscreen{position:fixed;z-index:30;right:12px;top:12px;width:44px;height:44px;border:1px solid #bfc2bd;border-radius:50%;background:#fffffff0;font-size:29px;box-shadow:0 2px 12px #0001}
:root.immersive{overflow:hidden;background:#ffffff}
.immersive .app{position:fixed;inset:0;width:100%;height:100dvh;background:#ffffff;z-index:20}
.immersive .reader{padding:0}
.immersive .stage{position:absolute;inset:0;background:#ffffff}
.immersive .progress,.immersive .reader-footer{display:none}
.immersive .toolbar{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);gap:20px;z-index:20;background:#fffffff2;border:1px solid #d3d3cd;border-radius:10px;padding:6px 14px;box-shadow:0 5px 25px #0002;opacity:0;pointer-events:none;transition:opacity .2s}
.immersive.controls-visible .toolbar,.immersive .toolbar:hover,.immersive .toolbar:focus-within{opacity:1;pointer-events:auto}
.immersive .stage .arrow{opacity:0;transition:opacity .2s}
.immersive.controls-visible .stage .arrow,.immersive .stage .arrow:focus-visible{opacity:1}

/* Interactive product links & badges */
.product-link{position:absolute;z-index:6;display:inline-flex;align-items:center;gap:6px;background:rgba(201,43,45,0.92);color:#ffffff!important;font-family:Arial,Helvetica,sans-serif;font-size:11px;font-weight:600;letter-spacing:.2px;line-height:1;padding:5px 11px;border-radius:18px;text-decoration:none;box-shadow:0 3px 12px rgba(0,0,0,0.22);transition:all .18s ease;cursor:pointer;white-space:nowrap;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.product-link:hover{background:#a81c1e;transform:translateY(-1px) scale(1.03);box-shadow:0 6px 18px rgba(201,43,45,0.4);color:#ffffff!important}
.product-link.section-badge{background:rgba(35,39,40,0.9);border:1px solid rgba(255,255,255,0.25);font-size:11px}
.product-link.section-badge:hover{background:#c92b2d;border-color:transparent}
.product-link-area{position:absolute;z-index:5;cursor:pointer;border-radius:6px;transition:background .15s ease,outline .15s ease;outline:2px solid transparent;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.product-link-area:hover{background:rgba(201,43,45,0.06);outline:2px dashed rgba(201,43,45,0.45)}

@media(max-width:700px){
  .reader{padding:0 2px 4px}
  .stage .arrow{display:none!important}
  .toolbar{flex-direction:column;gap:0;padding:5px 0 0}
  .tools{gap:0}
  .tool{padding:7px 4px;font-size:9px;min-width:0;flex:1}
  .reader-footer{min-height:30px}
  .reader-footer #hint{padding:0;font-size:9px}
  .reader-footer .text-button{min-height:28px;font-size:10px}
  .progress button{height:22px}
  .progress button:before{top:10px}
  .immersive .toolbar{width:calc(100% - 20px);gap:0;padding:6px 8px}
  .immersive .tools{width:100%}
  .immersive .exit-fullscreen{right:8px;top:8px}
  .page-control input{height:30px}
  .tools .tool{min-height:48px}
  .product-link{padding:4px 8px;font-size:8.5px;gap:3px}
  .product-link.section-badge{font-size:8.5px;padding:4px 8px}
}
