#root{min-height:100vh;background:#f7f4ef;color:#2a2a2a}.app-shell{max-width:960px;margin:0 auto;padding:24px 16px 48px;font-family:Inter,Noto Sans JP,system-ui,-apple-system,sans-serif}.global-header{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}.brand{display:flex;align-items:center}.brand img{height:40px;width:auto}.nav{display:flex;gap:12px;flex-wrap:wrap}.nav a{padding:8px 12px;border-radius:10px;border:1px solid #e5e1da;background:#fff;color:#2f2f2f;font-size:14px}.content{display:flex;flex-direction:column;gap:16px}.card{background:#fff;border:1px solid #e5e1da;border-radius:14px;padding:16px 18px;box-shadow:0 10px 30px #00000008}.card h2,.card h3{margin:0 0 10px;font-weight:700;font-size:18px}.card ol,.card ul{margin:0;padding-left:18px;line-height:1.6}.card li+li{margin-top:4px}.card.subtle{background:#faf7f2}.logout-button{padding:8px 12px;border-radius:10px;border:1px solid #e5e1da;background:#fff;color:#c00;font-size:14px;cursor:pointer;transition:background .2s}.logout-button:hover{background:#fee}.loading-screen{display:flex;justify-content:center;align-items:center;min-height:100vh;font-size:1.2rem;color:#666}.books-page{padding:2rem;max-width:1400px;margin:0 auto}.books-page h1{font-size:2rem;font-weight:600;margin-bottom:2rem;color:#1f1f1f}.loading,.empty{text-align:center;padding:4rem 2rem;font-size:1.2rem;color:#666}.empty p{margin:.5rem 0}.books-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem}.books-load-more{margin-top:2rem;display:flex;justify-content:center}.books-load-more button{padding:.75rem 1.5rem;border-radius:999px;border:1px solid #e5e1da;background:#fff;cursor:pointer;font-size:.9rem}.books-load-more button:disabled{cursor:default;opacity:.6}@media(max-width:768px){.books-page{padding:1.5rem}.books-grid{grid-template-columns:repeat(2,1fr);gap:20px}}@media(max-width:480px){.books-page{padding:1rem}.books-grid{grid-template-columns:repeat(2,1fr);gap:16px}}.book-card{cursor:pointer;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 2px 8px #0000001a;transition:transform .2s,box-shadow .2s}.book-card:hover{transform:translateY(-4px);box-shadow:0 8px 16px #00000026}.book-cover{width:100%;aspect-ratio:1 / 1.414;object-fit:cover;background:#f5f5f5}.book-cover-placeholder{width:100%;aspect-ratio:1 / 1.414;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#faf7f2,#f1ece5);color:#999;font-size:.9rem}.book-info{padding:1rem}.book-info h3{font-size:1.1rem;font-weight:600;margin:0 0 .5rem;color:#1f1f1f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-info p{font-size:.9rem;color:#666;margin:0}@media(max-width:768px){.book-info{padding:8px}.book-info h3{font-size:.9rem;margin-bottom:2px}.book-info p{font-size:.75rem}}.element{position:absolute;transform-origin:center;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;will-change:transform,width,height}.element__image,.element__text,.element__shape,.element__sticker{width:100%;height:100%;display:grid;place-items:center;background:transparent;overflow:hidden}.element__image img{width:100%;height:100%}.element__text{font-weight:600;text-align:center;white-space:pre-wrap;width:100%;height:100%;align-items:center}.element__shape{width:100%;height:100%;display:block}.element__shape svg{width:100%;height:100%}.element__sticker{line-height:1;display:flex;align-items:center;justify-content:center}.element__outline{position:absolute;inset:-4px;border:1px dashed #9a8f80;border-radius:10px;pointer-events:none}.element__handle{position:absolute;width:14px;height:14px;background:#fff;border:1px solid #9a8f80;border-radius:4px;box-shadow:0 4px 10px #0000001f}.element__handle--se{right:-10px;bottom:-10px;cursor:se-resize}.element__handle--e{right:-10px;top:50%;transform:translateY(-50%);cursor:e-resize}.element__handle--s{bottom:-10px;left:50%;transform:translate(-50%);cursor:s-resize}.element__handle--rotate{top:-22px;left:50%;transform:translate(-50%);cursor:grab}.canvas-shell{margin:12px 0;padding:12px 10px 16px;border-radius:14px;border:1px solid #e5e1da;background:#fff;box-shadow:inset 0 1px #ffffff80,0 14px 30px #0000000d;-webkit-user-select:none;user-select:none;touch-action:pan-y}.canvas-page{position:relative;width:100%;max-width:520px;margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:2px;overflow:hidden;box-shadow:0 1px 1px #0000000d,0 2px 2px #0000000d,0 4px 4px #0000000d,0 8px 8px #0000000d,0 16px 16px #0000000d}.canvas-zoom{transform-origin:top left;width:100%;height:100%;overflow:hidden}.toolbar{position:sticky;top:8px;z-index:10;display:flex;justify-content:center;padding:8px 0}.toolbar__buttons{display:inline-flex;gap:8px;align-items:center;padding:6px 10px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;flex-wrap:wrap;justify-content:center}.toolbar__btn{border:1px solid transparent;background:transparent;color:#374151;border-radius:8px;padding:8px 12px;cursor:pointer;font-size:14px;font-weight:500;display:inline-flex;align-items:center;gap:6px;transition:all .2s}.toolbar__btn:hover{background:#f3f4f6}.toolbar__btn.primary{background:#111827;color:#fff}.toolbar__btn.primary:hover{background:#1f2937}.toolbar__btn.publish{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border:none;box-shadow:0 4px 6px -1px #6366f14d}.toolbar__btn.publish:hover{box-shadow:0 6px 8px -1px #6366f166;transform:translateY(-1px)}.toolbar__chip{position:relative;display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer;color:#374151;font-size:14px;font-weight:500;transition:all .2s}.toolbar__chip:hover{background:#f3f4f6}.toolbar__chip .icon{font-size:16px}.chip-label{font-size:14px;color:#2f2f2f}.toolbar__divider{width:1px;height:24px;background:#d8d3c8;margin:0 4px}.ratio-menu,.shape-menu,.sticker-menu,.background-menu{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%) translateY(-4px);padding:8px;background:#fff;border:1px solid #e3ded5;border-radius:10px;box-shadow:0 12px 30px #0000001f;opacity:0;pointer-events:none;transition:opacity .12s ease,transform .12s ease;z-index:100}.toolbar__chip:after{content:"";position:absolute;top:100%;left:0;right:0;height:16px;background:transparent}.toolbar__chip:hover .ratio-menu,.toolbar__chip:hover .shape-menu,.toolbar__chip:hover .sticker-menu,.toolbar__chip:hover .background-menu,.toolbar__chip:focus-within .ratio-menu,.toolbar__chip:focus-within .shape-menu,.toolbar__chip:focus-within .sticker-menu,.toolbar__chip:focus-within .background-menu{opacity:1;pointer-events:auto;transform:translate(-50%) translateY(0)}.ratio-menu{display:grid;grid-template-columns:repeat(2,minmax(70px,1fr));gap:6px}.ratio-menu button{border:1px solid #d8d3c8;background:#f6f2eb;border-radius:8px;padding:8px;cursor:pointer}.ratio-menu button:hover{background:#e8e4df}.shape-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;min-width:120px}.shape-menu button{border:1px solid #d8d3c8;background:#f6f2eb;border-radius:8px;padding:10px;cursor:pointer;font-size:18px}.shape-menu button:hover{background:#e0dcf5;border-color:#4285f4}.sticker-menu{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;min-width:280px}.sticker-menu button{border:none;background:transparent;padding:6px;cursor:pointer;font-size:20px;border-radius:6px;transition:background .15s,transform .15s}.sticker-menu button:hover{background:#f0f0f0;transform:scale(1.2)}.background-menu{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;min-width:160px}.background-menu button{width:28px;height:28px;border:2px solid #d8d3c8;border-radius:6px;cursor:pointer;transition:transform .15s,border-color .15s}.background-menu button:hover{transform:scale(1.1);border-color:#4285f4}.background-menu button.active{border-color:#4285f4;box-shadow:0 0 0 2px #4285f44d}.icon{display:inline-flex;align-items:center;justify-content:center}.topbar{display:flex;flex-direction:column;gap:12px;padding:12px 16px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.topbar__section{display:flex;flex-direction:column;gap:6px}.topbar__section-label{font-size:11px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em}.topbar__credits{font-weight:400;color:#b0b0b0;text-transform:none;letter-spacing:normal;margin-left:8px}.topbar__divider{height:1px;background:#e5e7eb;margin:4px 0}.topbar__title{font-weight:600;font-size:16px;color:#111827;letter-spacing:.01em}.topbar__title--editable{background:transparent;border:1px solid transparent;border-radius:6px;padding:4px 8px;margin:-4px -8px;width:calc(100% + 16px);outline:none;transition:all .2s;color:#111827}.topbar__title--editable:hover{background:#f3f4f6}.topbar__title--editable:focus{background:#fff;border-color:#d1d5db;box-shadow:0 0 0 2px #6366f11a}.topbar__pages{overflow-x:auto;margin:-4px;padding:4px}.page-thumbnails{display:flex;gap:12px;padding-bottom:4px}.page-thumbnail{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0;background:none;border:none;cursor:pointer;transition:transform .2s ease}.page-thumbnail:hover{transform:translateY(-2px)}.page-thumbnail:active{transform:scale(.98)}.page-thumbnail__image,.page-thumbnail__placeholder{width:60px;height:80px;border-radius:4px;border:1px solid #e5e7eb;background:#fff;box-shadow:0 1px 3px #0000001a;transition:all .2s ease;overflow:hidden;position:relative}.page-thumbnail__image{object-fit:cover}.page-thumbnail__placeholder{display:flex;align-items:center;justify-content:center;background:#f9fafb}.page-thumbnail__icon{font-size:20px;opacity:.4}.page-thumbnail__label{font-size:12px;font-weight:500;color:#6b7280;max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:color .2s}.page-thumbnail--active .page-thumbnail__image,.page-thumbnail--active .page-thumbnail__placeholder{border-color:#6366f1;box-shadow:0 0 0 2px #6366f133,0 4px 6px -1px #0000001a}.page-thumbnail--active .page-thumbnail__label{color:#1a1a1a;font-weight:600}.page-thumbnail--add .page-thumbnail__placeholder{border:2px dashed #d0c9bc;background:transparent}.page-thumbnail--add:hover .page-thumbnail__placeholder{border-color:#a09585;background:#00000005}.page-thumbnail--add .page-thumbnail__icon{font-size:20px;opacity:.4}.topbar__pages::-webkit-scrollbar{height:6px}.topbar__pages::-webkit-scrollbar-track{background:transparent}.topbar__pages::-webkit-scrollbar-thumb{background:#0000001a;border-radius:3px}.topbar__pages::-webkit-scrollbar-thumb:hover{background:#0003}.page-thumbnail-wrapper{position:relative;flex-shrink:0;transition:transform .15s ease,opacity .15s ease;cursor:grab}.page-thumbnail-wrapper:active{cursor:grabbing}.page-thumbnail-wrapper--dragging{opacity:.5;transform:scale(.95)}.page-thumbnail-wrapper--drag-over{transform:translate(8px)}.page-thumbnail-wrapper--drag-over:before{content:"";position:absolute;left:-6px;top:0;bottom:24px;width:3px;background:#667eea;border-radius:2px}.page-thumbnail__delete{position:absolute;top:-4px;right:-4px;width:20px;height:20px;border-radius:50%;background:#ff3b30e6;border:2px solid #fff;color:#fff;font-size:12px;line-height:1;cursor:pointer;opacity:0;transform:scale(.8);transition:opacity .2s,transform .2s;display:flex;align-items:center;justify-content:center}.page-thumbnail:hover .page-thumbnail__delete{opacity:1;transform:scale(1)}.page-thumbnail__delete:hover{background:#ff3b30}.page-thumbnail{position:relative}.publish-modal__overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.publish-modal{background:#fff;border-radius:20px;max-width:480px;width:100%;max-height:90vh;overflow-y:auto;padding:24px;position:relative;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.publish-modal__close{position:absolute;top:16px;right:16px;width:32px;height:32px;border:none;background:#0000000d;border-radius:50%;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#666;transition:all .2s}.publish-modal__close:hover{background:#0000001a;color:#333}.publish-modal__title{font-size:1.5rem;font-weight:700;margin:0 0 24px;text-align:center}.publish-modal__section{margin-bottom:24px}.publish-modal__label{display:block;font-size:.9rem;font-weight:600;color:#333;margin-bottom:12px}.publish-modal__genre-categories{max-height:300px;overflow-y:auto;border:1px solid #e8e4df;border-radius:12px;padding:12px}.publish-modal__category{margin-bottom:16px}.publish-modal__category:last-child{margin-bottom:0}.publish-modal__category-title{font-size:.75rem;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #e8e4df}.publish-modal__category-genres{display:flex;flex-wrap:wrap;gap:6px}.publish-modal__checkbox-label{display:flex;align-items:center;gap:4px;padding:4px 10px;background:#f8f5f0;border-radius:16px;cursor:pointer;transition:all .2s;font-size:.85rem}.publish-modal__checkbox-label:hover{background:#ebe5db}.publish-modal__checkbox-label:has(.publish-modal__checkbox:checked){background:#1a1a1a;color:#fff}.publish-modal__checkbox{width:14px;height:14px;accent-color:#1a1a1a;cursor:pointer}.publish-modal__checkbox-label:has(.publish-modal__checkbox:checked) .publish-modal__checkbox{accent-color:#fff}.publish-modal__checkbox-text{-webkit-user-select:none;user-select:none}.publish-modal__visibility{display:flex;flex-direction:column;gap:12px}.publish-modal__vis-btn{display:flex;align-items:flex-start;gap:12px;padding:16px;border:2px solid #e8e4df;border-radius:12px;background:#fafafa;cursor:pointer;text-align:left;transition:all .2s}.publish-modal__vis-btn:hover{border-color:#d0c9bc;background:#f5f2ed}.publish-modal__vis-btn--active{border-color:#3d3d3d;background:#f5f2ed}.publish-modal__vis-icon{font-size:1.5rem;flex-shrink:0}.publish-modal__vis-content{display:flex;flex-direction:column;gap:2px}.publish-modal__vis-title{font-size:1rem;font-weight:600;color:#1a1a1a}.publish-modal__vis-desc{font-size:.8rem;color:#666}.publish-modal__summary{background:#f8f5f0;border-radius:12px;padding:16px;margin-bottom:16px}.publish-modal__summary-row{display:flex;justify-content:space-between;padding:8px 0}.publish-modal__summary-row:not(:last-child){border-bottom:1px solid #e8e4df}.publish-modal__summary-label{color:#666;font-size:.9rem}.publish-modal__summary-value{font-weight:600;color:#1a1a1a}.publish-modal__note{font-size:.85rem;color:#666;background:#fef3c7;padding:12px;border-radius:8px;margin-bottom:16px}.publish-modal__actions{display:flex;gap:12px;margin-top:24px}.publish-modal__btn{flex:1;padding:14px 20px;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.publish-modal__btn--secondary{background:#f5f2ed;border:1px solid #d0c9bc;color:#333}.publish-modal__btn--secondary:hover:not(:disabled){background:#ebe5db}.publish-modal__btn--primary{background:#1a1a1a;border:none;color:#fff}.publish-modal__btn--primary:hover:not(:disabled){background:#333}.publish-modal__btn:disabled{opacity:.5;cursor:not-allowed}@media(max-width:480px){.publish-modal__genres{grid-template-columns:repeat(4,1fr)}.publish-modal__genre{padding:10px 4px}.publish-modal__genre-icon{font-size:1.2rem}}.editor-page{display:flex;flex-direction:column;gap:12px;padding-bottom:32px;background-color:#f3f4f6;min-height:100vh}.inspector{display:flex;flex-direction:column;gap:10px}.inspector__block{display:grid;gap:10px}.inspector label{display:grid;gap:4px;font-size:13px;color:#4c4c4c}.inspector input[type=text],.inspector input[type=number]{padding:8px 10px;border:1px solid #d8d3c8;border-radius:8px;background:#fff;font:inherit}.inspector__hint{margin:0;font-size:12px;color:#6a645c}.card.transparent{background:transparent;border:none;box-shadow:none;padding:0}.text-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.text-toolbar select{padding:8px 10px;border:1px solid #d8d3c8;border-radius:10px;background:#fff;font:inherit}.size-stepper{display:inline-flex;align-items:center;border:1px solid #d8d3c8;border-radius:10px;overflow:hidden;background:#f9f6f0}.size-stepper button{border:none;background:transparent;padding:8px 10px;cursor:pointer;font-size:16px}.size-stepper input{width:80px;border:none;background:#fff;text-align:center;font-weight:600}.color-chip{display:inline-flex;align-items:center;gap:4px;padding:8px 10px;border:1px solid #d8d3c8;border-radius:10px;background:#fff}.color-chip input{width:32px;height:32px;padding:0;border:none;background:transparent}.toggle{border:1px solid #d8d3c8;background:#f6f2eb;border-radius:10px;padding:8px 12px;cursor:pointer;font-weight:700}.toggle.is-active{background:#2f2f2f;color:#fff;border-color:#2f2f2f}.align-group{display:inline-flex;gap:6px}.layer-toolbar{display:flex;gap:8px}.layer-toolbar button{flex:1;padding:8px;border:1px solid #d8d3c8;background:#fff;border-radius:8px;cursor:pointer;font-size:12px;color:#4c4c4c;transition:all .2s}.layer-toolbar button:hover{background:#f9f6f0;border-color:#c0bbb0}.context-menu{background:#fff;border:1px solid #e5e1da;border-radius:8px;box-shadow:0 4px 12px #0000001a;padding:4px;display:flex;flex-direction:column;min-width:160px}.context-menu button{text-align:left;padding:8px 12px;background:transparent;border:none;border-radius:4px;cursor:pointer;font-size:13px;color:#4c4c4c;transition:background .1s}.context-menu button:hover{background:#f3f4f6}.context-menu button.danger{color:#ef4444}.context-menu button.danger:hover{background:#fef2f2}.context-menu-divider{height:1px;background:#e5e1da;margin:4px 0}.editor-credit-info{position:fixed;top:12px;right:140px;font-size:.8rem;color:#666;background:#f8f5f0;padding:6px 14px;border-radius:20px;border:1px solid #e5e1da;z-index:100}.forgot-password-page{min-height:calc(100vh - 80px);display:flex;align-items:center;justify-content:center;padding:2rem;background:linear-gradient(135deg,#f8f5f0,#e8e4df)}.forgot-password-card{background:#fff;padding:2.5rem;border-radius:16px;box-shadow:0 8px 32px #0000001a;max-width:400px;width:100%}.forgot-password-card h1{font-size:1.5rem;font-weight:700;text-align:center;margin:0 0 1rem;color:#1a1a1a}.forgot-password-description{font-size:.9rem;color:#666;text-align:center;margin:0 0 1.5rem;line-height:1.5}.forgot-password-message{padding:12px 16px;border-radius:8px;margin-bottom:1rem;font-size:.9rem}.forgot-password-message.success{background:#f0fdf4;border:1px solid #86efac;color:#166534}.forgot-password-message.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.forgot-password-card form{display:flex;flex-direction:column;gap:1rem}.forgot-password-card input{padding:14px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:1rem;transition:border-color .2s,box-shadow .2s}.forgot-password-card input:focus{outline:none;border-color:#1a1a1a;box-shadow:0 0 0 3px #1a1a1a1a}.forgot-password-card input:disabled{background:#f5f5f5;cursor:not-allowed}.forgot-password-card .submit-button{padding:14px;background:#1a1a1a;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:background .2s}.forgot-password-card .submit-button:hover:not(:disabled){background:#333}.forgot-password-card .submit-button:disabled{opacity:.6;cursor:not-allowed}.forgot-password-links{margin-top:1.5rem;text-align:center}.forgot-password-links a{color:#4285f4;text-decoration:none;font-size:.9rem}.forgot-password-links a:hover{text-decoration:underline}.home{display:flex;flex-direction:column;gap:20px}.hero{background:#fff;border:1px solid #e5e1da;border-radius:14px;padding:20px 18px;box-shadow:0 10px 24px #0000000a}.eyebrow{margin:0 0 6px;font-size:14px;letter-spacing:.12em;text-transform:uppercase;color:#7a7266}.hero-title{margin:0 0 10px;font-size:24px;line-height:1.3}.lede{margin:0;color:#4c4c4c;line-height:1.6}.hero-actions{margin-top:16px;display:flex;flex-wrap:wrap;gap:10px}.hero-primary{padding:10px 18px;border-radius:999px;border:none;background:#4285f4;color:#fff;font-weight:600;cursor:pointer;box-shadow:0 10px 24px #4285f438}.hero-secondary{padding:10px 16px;border-radius:999px;border:1px solid #e5e1da;background:#fff;color:#444;font-weight:500;cursor:pointer}.section{background:#fff;border:1px solid #e5e1da;border-radius:14px;padding:14px 12px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.section-header h2{margin:0;font-size:16px}.section-link{border:none;background:none;color:#666;font-size:13px;text-decoration:underline;cursor:pointer}.section-body{font-size:14px}.section-body--muted{color:#888}.book-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px}.book-row-card{min-width:140px;border-radius:10px;border:1px solid #e5e1da;background:#faf7f2;padding:8px;display:flex;flex-direction:column;gap:6px;cursor:pointer}.book-row-cover{width:100%;aspect-ratio:3 / 4;border-radius:6px;overflow:hidden;background:#ddd}.book-row-cover img{width:100%;height:100%;object-fit:cover}.book-row-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:24px;color:#b0a89b}.book-row-meta{display:flex;flex-direction:column;gap:2px}.book-row-title{margin:0;font-size:14px;font-weight:600}.book-row-sub{margin:0;font-size:12px;color:#777}.login-links{margin-top:1.5rem;text-align:center}.forgot-password-link{color:#666;font-size:.9rem;text-decoration:none}.forgot-password-link:hover{color:#4285f4;text-decoration:underline}.feedback-modal__overlay{position:fixed;inset:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000;animation:fadeIn .2s ease-out}.feedback-modal{background:#fff;width:90%;max-width:500px;border-radius:16px;padding:24px;position:relative;box-shadow:0 4px 24px #00000026;animation:slideUp .3s ease-out;display:flex;flex-direction:column;gap:20px}.feedback-modal__close{position:absolute;top:16px;right:16px;background:none;border:none;font-size:24px;color:#666;cursor:pointer;padding:4px;line-height:1;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;transition:background-color .2s}.feedback-modal__close:hover{background-color:#f5f5f5}.feedback-modal__title{margin:0;font-size:20px;font-weight:700;color:#1f1f1f;display:flex;align-items:center;gap:8px}.feedback-modal__description{margin:0;font-size:14px;color:#666;line-height:1.5}.feedback-modal__textarea{width:100%;min-height:150px;padding:12px;border:1px solid #e0e0e0;border-radius:8px;font-size:16px;line-height:1.5;resize:vertical;font-family:inherit;transition:border-color .2s}.feedback-modal__textarea:focus{outline:none;border-color:#4285f4}.feedback-modal__actions{display:flex;justify-content:flex-end;gap:12px;margin-top:8px}.feedback-modal__btn{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;border:none}.feedback-modal__btn--secondary{background-color:#f5f5f5;color:#666}.feedback-modal__btn--secondary:hover{background-color:#eee}.feedback-modal__btn--primary{background-color:#4285f4;color:#fff;box-shadow:0 10px 22px #4285f433}.feedback-modal__btn--primary:hover{background-color:#3b7ae0}.feedback-modal__btn--primary:disabled{background-color:#b7cffd;cursor:not-allowed}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.mypage{padding:2rem;max-width:1200px;margin:0 auto}.mypage h1{font-size:2rem;font-weight:600;margin-bottom:2rem;color:#1f1f1f}.not-logged-in{text-align:center;padding:4rem 2rem}.not-logged-in button{margin-top:1rem;padding:.75rem 1.5rem;background:#4285f4;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:1rem}.profile-section,.mybooks-section,.credit-section{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 2px 8px #0000001a}.profile-section h2,.mybooks-section h2,.credit-section h2{font-size:1.5rem;margin:0 0 1.5rem;color:#1f1f1f}.credit-display{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background:linear-gradient(135deg,#f8f5f0,#f0ebe3);border-radius:12px}.credit-main{display:flex;align-items:baseline;gap:8px}.credit-remaining{font-size:2.5rem;font-weight:700;color:#1a1a1a}.credit-unit{font-size:1rem;color:#666}.credit-meta{text-align:right}.credit-reset{font-size:.85rem;color:#888}.profile-display{display:flex;align-items:center;gap:2rem}.profile-photo{width:100px;height:100px;border-radius:50%;object-fit:cover;border:3px solid #f0f0f0}.profile-info{flex:1}.profile-info p{margin:.5rem 0;font-size:1rem;color:#333}.profile-info strong{color:#666;font-weight:500}.profile-bio{color:#555;font-size:.95rem;line-height:1.5;margin-top:.75rem!important}.profile-genres{margin-top:1rem}.profile-genres strong{display:block;margin-bottom:.5rem}.profile-genre-tags{display:flex;flex-wrap:wrap;gap:6px}.profile-genre-tag{display:inline-block;padding:4px 12px;background:#f0f0f0;border-radius:16px;font-size:.8rem;color:#555}.edit-button{padding:.5rem 1.5rem;background:#f0f0f0;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;color:#333}.edit-button:hover{background:#e0e0e0}.profile-edit{padding:2rem;background:#f9f9f9;border-radius:8px}.profile-edit button{margin-top:1rem;padding:.5rem 1.5rem;background:#666;color:#fff;border:none;border-radius:6px;cursor:pointer}.create-book-button{padding:.875rem 1.75rem;background:#4285f4;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:500;margin-bottom:2rem;transition:background .2s}.create-book-button:hover{background:#357ae8}.mybooks-loading,.mybooks-empty{padding:2rem;background:#f9f9f9;border-radius:8px;text-align:center;color:#999}.mybooks-empty p{margin:.5rem 0}.mybooks-empty .hint{color:#bbb;font-size:.9rem}.mybooks-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1.5rem}@media(max-width:768px){.mypage{padding:1rem}.mybooks-section{padding:1.5rem}.mybooks-grid{grid-template-columns:repeat(2,1fr);gap:1rem}}@media(max-width:480px){.mybooks-section{padding:1rem}.mybooks-grid{gap:12px}}.mybook-card{position:relative;border-radius:4px;overflow:hidden;background:#1a1a1a;transition:transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s;cursor:pointer;box-shadow:2px 2px 8px #00000026}.mybook-card:hover{transform:translateY(-8px) scale(1.02);box-shadow:0 20px 40px #00000040}.mybook-menu-container{position:absolute;top:8px;right:8px;z-index:10}.mybook-menu-trigger{width:32px;height:32px;border:none;border-radius:50%;background:#00000080;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,transform .2s;opacity:0}.mybook-card:hover .mybook-menu-trigger{opacity:1}.mybook-menu-trigger:hover{background:#000000b3;transform:scale(1.1)}.mybook-dropdown{position:absolute;top:100%;right:0;margin-top:4px;background:#fff;border-radius:12px;box-shadow:0 8px 24px #0003;overflow:hidden;min-width:120px;animation:dropdownFadeIn .2s ease-out}@keyframes dropdownFadeIn{0%{opacity:0;transform:translateY(-8px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.mybook-dropdown button{display:flex;align-items:center;gap:8px;width:100%;padding:12px 16px;border:none;background:transparent;font-size:14px;color:#333;cursor:pointer;transition:background .2s}.mybook-dropdown button:hover{background:#f5f5f5}.mybook-dropdown button.danger{color:#e53935}.mybook-dropdown button.danger:hover{background:#fef2f2}.mybook-cover{aspect-ratio:3 / 4;overflow:hidden}.mybook-cover img{width:100%;height:100%;object-fit:cover;transition:transform .4s cubic-bezier(.4,0,.2,1)}.mybook-card:hover .mybook-cover img{transform:scale(1.05)}.mybook-cover-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2a2a2a,#1a1a1a)}.mybook-cover-placeholder span{font-size:3rem;opacity:.3}.mybook-title-overlay{position:absolute;bottom:0;left:0;right:0;padding:3rem 1rem 1rem;background:linear-gradient(to top,rgba(0,0,0,.85) 0%,transparent 100%);color:#fff}.mybook-title-overlay h3{margin:0 0 4px;font-size:1rem;font-weight:600;letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 2px 4px rgba(0,0,0,.3)}.mybook-page-count{font-size:.75rem;color:#ffffffb3;font-weight:400;letter-spacing:.05em;text-transform:uppercase}.feedback-section{margin-top:2rem;padding:1.5rem 1.75rem;border-radius:14px;background:linear-gradient(135deg,#fdfbf6,#f6f1e7);border:1px solid #e5e1da;color:#1f1f1f;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 8px 22px #0000000f}.feedback-text{display:flex;flex-direction:column;gap:.35rem;max-width:640px}.feedback-eyebrow{margin:0;font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:#6c6355}.feedback-headline{margin:0;font-size:1.12rem;font-weight:700;color:#2a2a2a}.feedback-subtext{margin:0;font-size:.94rem;line-height:1.6;color:#4a4a4a}.feedback-button{display:inline-flex;align-items:center;gap:10px;padding:.85rem 1.35rem;border-radius:999px;background:#4285f4;color:#fff;border:none;font-weight:700;font-size:.95rem;cursor:pointer;box-shadow:0 10px 26px #4285f42e;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.feedback-button:hover{transform:translateY(-1px);box-shadow:0 14px 32px #4285f433;background:#3b7ae0}.feedback-button:active{transform:translateY(0)}.feedback-icon{font-size:1.1rem}@media(max-width:720px){.feedback-section{flex-direction:column;align-items:flex-start}.feedback-button{width:100%;justify-content:center}}.mybook-status-badge{position:absolute;top:8px;left:8px;padding:4px 8px;border-radius:4px;font-size:11px;font-weight:700;color:#fff;z-index:10;box-shadow:0 2px 4px #0003}.mybook-status-badge.draft{background-color:#9ca3af}.mybook-status-badge.published{background-color:#10b981}.profile-page{max-width:600px;margin:0 auto;padding:24px 16px}.profile-container{background:#fff;border-radius:16px;padding:24px;box-shadow:0 4px 6px -1px #0000001a}.profile-title{font-size:1.5rem;font-weight:700;margin:0 0 24px;text-align:center}.profile-loading{text-align:center;padding:48px;color:#666}.profile-message{background:#f0fdf4;border:1px solid #86efac;color:#166534;padding:12px 16px;border-radius:8px;margin-bottom:20px;text-align:center}.profile-section{margin-bottom:24px}.profile-label{display:block;font-size:.9rem;font-weight:600;color:#333;margin-bottom:8px}.profile-input{width:100%;padding:12px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:1rem;transition:border-color .2s,box-shadow .2s;box-sizing:border-box}.profile-input:focus{outline:none;border-color:#1a1a1a;box-shadow:0 0 0 3px #1a1a1a1a}.profile-textarea{width:100%;padding:12px 16px;border:1px solid #e5e7eb;border-radius:8px;font-size:1rem;resize:vertical;font-family:inherit;transition:border-color .2s,box-shadow .2s;box-sizing:border-box}.profile-textarea:focus{outline:none;border-color:#1a1a1a;box-shadow:0 0 0 3px #1a1a1a1a}.profile-char-count{text-align:right;font-size:.75rem;color:#888;margin-top:4px}.profile-genre-categories{max-height:400px;overflow-y:auto;border:1px solid #e5e7eb;border-radius:12px;padding:16px}.profile-category{margin-bottom:16px}.profile-category:last-child{margin-bottom:0}.profile-category-title{font-size:.75rem;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #e8e4df}.profile-category-genres{display:flex;flex-wrap:wrap;gap:6px}.profile-checkbox-label{display:flex;align-items:center;gap:4px;padding:6px 12px;background:#f8f5f0;border-radius:20px;cursor:pointer;transition:all .2s;font-size:.85rem}.profile-checkbox-label:hover{background:#ebe5db}.profile-checkbox-label:has(.profile-checkbox:checked){background:#1a1a1a;color:#fff}.profile-checkbox{width:14px;height:14px;accent-color:#1a1a1a;cursor:pointer}.profile-checkbox-label:has(.profile-checkbox:checked) .profile-checkbox{accent-color:#fff}.profile-checkbox-text{-webkit-user-select:none;user-select:none}.profile-actions{display:flex;gap:12px;margin-top:32px}.profile-btn{flex:1;padding:14px 20px;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.profile-btn--secondary{background:#f5f2ed;border:1px solid #d0c9bc;color:#333}.profile-btn--secondary:hover{background:#ebe5db}.profile-btn--primary{background:#1a1a1a;border:none;color:#fff}.profile-btn--primary:hover:not(:disabled){background:#333}.profile-btn:disabled{opacity:.5;cursor:not-allowed}@media(max-width:480px){.profile-page,.profile-container{padding:16px}}.profile-divider{height:1px;background:#e5e7eb;margin:32px 0}.profile-subtitle{font-size:1.1rem;font-weight:600;color:#333;margin:0 0 20px}.profile-email-display{padding:12px 16px;background:#f8f5f0;border-radius:8px;color:#555;font-size:.95rem}.profile-link-btn{background:none;border:none;color:#4285f4;font-size:.95rem;cursor:pointer;padding:0;text-decoration:none}.profile-link-btn:hover{text-decoration:underline}.profile-email-change{background:#f8f5f0;border-radius:12px;padding:20px}.profile-email-message{padding:12px 16px;border-radius:8px;margin-top:1rem;font-size:.9rem}.profile-email-message.success{background:#f0fdf4;border:1px solid #86efac;color:#166534}.profile-email-message.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.profile-email-actions{display:flex;gap:12px;margin-top:1rem}.profile-email-note{font-size:.8rem;color:#666;margin-top:1rem;line-height:1.5}.viewer{padding:2rem;max-width:1200px;margin:0 auto}.viewer--fullscreen{position:fixed;inset:0;padding:0;margin:0;width:100%;height:100%;display:flex;flex-direction:column;background:#000;overflow:hidden;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}.viewer__back-btn{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));z-index:100;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.15);border-radius:50%;color:#fffc;font-size:1.5rem;line-height:1;cursor:pointer;transition:all .2s ease}.viewer__back-btn:hover{background:#fff3;color:#fff}.viewer__back-btn:active{transform:scale(.95)}.viewer__title{font-size:2rem;font-weight:600;margin-bottom:2rem;color:#1f1f1f}.viewer__loading,.viewer__error,.viewer__empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem;font-size:1.1rem;color:#ffffffb3}.viewer__error{color:#ff6b6b}.viewer__empty p{margin:.5rem 0}.viewer__book-container{flex:1;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;overflow:hidden}.viewer__page-shadow{display:none}.viewer__page{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}.viewer__page--next-preview,.viewer__page--prev-preview{position:absolute;inset:0;z-index:1;opacity:.5;transform:scale(.92);filter:blur(2px)}.viewer__page-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:0;box-shadow:0 0 80px #000c}.viewer__paper-curl{position:absolute;inset:0;pointer-events:none;z-index:10}.viewer__page--flip-next{animation:flipPageNext .3s ease-out forwards;transform-origin:left center}.viewer__page--flip-next .viewer__paper-curl{animation:curlShadowNext .3s ease-out forwards}.viewer__page--flip-prev{animation:flipPagePrev .3s ease-out forwards;transform-origin:right center}.viewer__page--flip-prev .viewer__paper-curl{animation:curlShadowPrev .3s ease-out forwards}@keyframes flipPageNext{0%{transform:perspective(1200px) rotateY(0);opacity:1}50%{transform:perspective(1200px) rotateY(-30deg) scale(.98);opacity:.9}to{transform:perspective(1200px) rotateY(-60deg);opacity:0}}@keyframes curlShadowNext{0%,to{background:transparent}50%{background:linear-gradient(to right,transparent 60%,rgba(0,0,0,.4) 100%)}}@keyframes flipPagePrev{0%{transform:perspective(1200px) rotateY(0);opacity:1}50%{transform:perspective(1200px) rotateY(30deg) scale(.98);opacity:.9}to{transform:perspective(1200px) rotateY(60deg);opacity:0}}@keyframes curlShadowPrev{0%,to{background:transparent}50%{background:linear-gradient(to left,transparent 60%,rgba(0,0,0,.4) 100%)}}.viewer__nav-hint{position:absolute;top:50%;transform:translateY(-50%);width:60px;height:120px;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s;pointer-events:none;z-index:5}.viewer__book-container:active .viewer__nav-hint{opacity:.5}.viewer__nav-hint--left{left:0}.viewer__nav-hint--right{right:0}.viewer__nav-arrow{font-size:2rem;color:#fffc;text-shadow:0 2px 10px rgba(0,0,0,.8)}.viewer__indicator{position:absolute;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:24px 16px;padding-bottom:max(24px,env(safe-area-inset-bottom));background:linear-gradient(to top,rgba(0,0,0,.6) 0%,transparent 100%);z-index:10}.viewer__indicator-dots{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;max-width:80%}.viewer__indicator-dot{width:6px;height:6px;border-radius:50%;background:#ffffff59;border:none;padding:0;cursor:pointer;transition:all .2s ease}.viewer__indicator-dot:hover{background:#fff9}.viewer__indicator-dot--active{background:#fff;width:20px;border-radius:3px}.viewer__page-count{font-size:.75rem;color:#ffffff80;font-variant-numeric:tabular-nums;letter-spacing:.05em}@media(min-width:769px){.viewer__book-container:hover .viewer__nav-hint{opacity:1}.viewer__page-image{max-width:90%;max-height:90%;border-radius:4px}.viewer__indicator{padding:20px}}@media(max-width:768px){.viewer__indicator{padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.viewer__indicator-dot{width:5px;height:5px}.viewer__indicator-dot--active{width:16px}.viewer__page-count{font-size:.7rem}}.login-page{display:flex;justify-content:center;align-items:center;min-height:80vh;padding:2rem}.login-card{background:#fff;border-radius:12px;padding:2.5rem;max-width:420px;width:100%;box-shadow:0 4px 16px #0000001a}.login-card h1{margin:0 0 2rem;text-align:center;font-size:1.8rem;color:#1f1f1f}.error-message{background:#fee;color:#c00;padding:.75rem 1rem;border-radius:6px;margin-bottom:1.5rem;font-size:.9rem}.google-button{width:100%;padding:.875rem;background:#4285f4;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:500;transition:background .2s}.google-button:hover{background:#357ae8}.divider{text-align:center;margin:1.5rem 0;color:#999;font-size:.9rem}form{display:flex;flex-direction:column;gap:1rem}form input{width:100%;padding:.875rem;border:1px solid #ddd;border-radius:8px;font-size:1rem;box-sizing:border-box}form input:focus{outline:none;border-color:#4285f4}.submit-button{width:100%;padding:.875rem;background:#1f1f1f;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:500;transition:background .2s}.submit-button:hover{background:#333}.toggle-button{width:100%;margin-top:1.5rem;padding:.5rem;background:none;border:none;color:#4285f4;cursor:pointer;font-size:.9rem;text-decoration:underline}.toggle-button:hover{color:#357ae8}:root{font-family:Inter,Noto Sans JP,system-ui,-apple-system,sans-serif;line-height:1.6;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;background-color:#f7f4ef}a{color:inherit;text-decoration:none}button{font:inherit}
