/* A photograph occupies about half of each individual message area. */
.guest-single-page .message-tile .message-photo,.guest-single-page .message-tile .memory-photo,.single-page-book .single-book-page .message-photo,.single-page-book .single-book-page .memory-photo{height:45%!important;max-height:none!important;min-height:0!important;flex:0 0 45%!important;width:100%!important;object-fit:contain;aspect-ratio:auto;margin:0 auto!important}
.guest-single-page .message-tile p{font-size:clamp(12px,3.2cqw,13px)!important;line-height:1.6!important;margin:6px 0;flex:1;min-height:0}
.guest-single-page .little-gift{font-size:clamp(10px,2.9cqw,12px)!important;padding:2px 5px;line-height:1.5!important}.guest-single-page .message-name{font-size:clamp(10px,2.9cqw,12px)!important;line-height:1.4!important;margin-top:3px}.guest-single-page .present-icon{font-size:14px!important}
.organizer-open-book,.organizer-preview .book-wrap.organizer-open-book{width:100%;max-width:880px;aspect-ratio:var(--spread-ratio)!important;height:auto!important;min-height:0!important;position:relative;margin:auto;perspective:1600px}
.organizer-open-book .book-content{display:block;width:100%;height:100%;overflow:hidden}.organizer-spread{display:flex;width:100%;height:100%;justify-content:center;gap:0}.organizer-leaf{width:50%;height:100%;position:relative;min-width:0;box-sizing:border-box;background:#fffef9;overflow:hidden}.organizer-leaf+.organizer-leaf{border-left:1px solid #d8dacf;box-shadow:inset 9px 0 12px -10px #34433260}.organizer-leaf>.cover,.organizer-leaf>.gift-ending,.organizer-leaf>.quiet-page,.organizer-leaf>.single-book-page{width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;aspect-ratio:auto!important;margin:0;border-radius:0;box-sizing:border-box}.organizer-leaf>.single-book-page{padding:18px 20px;gap:12px}.organizer-cover-view .organizer-leaf{box-shadow:0 5px 15px #34433215}
.print-pages .single-print-page>.paper-page>.message-tile{display:flex;flex-direction:column}.print-pages .message-tile .message-photo,.print-pages .message-tile .memory-photo{height:45%!important;flex:0 0 45%!important;width:100%!important;max-height:none!important;object-fit:contain}.print-pages .message-tile p{font-size:clamp(12px,3.2cqw,13px)!important;line-height:1.6!important;flex:1;margin:6px 0}.print-pages .little-gift{padding:2px 5px;line-height:1.5!important;font-size:12px!important}.print-pages .message-name{font-size:12px!important}
@media(max-width:760px){.organizer-preview{overflow-x:auto}.organizer-preview .organizer-open-book{width:760px;max-width:none;aspect-ratio:var(--spread-ratio)!important}.organizer-preview .pager,.organizer-preview .dots{min-width:0}.organizer-preview .organizer-open-book .guest-single-page{min-height:0!important}.organizer-preview:has(.organizer-open-book):after{content:'見開きは横にスクロールしてご覧いただけます。';display:block;font-size:11px;margin-top:8px;color:#77816d}}
.guest-single-page .message-tile p{min-height:min-content!important;flex:1 0 auto}.organizer-preview{overflow-x:auto}.organizer-preview .book-wrap.organizer-open-book{width:840px;max-width:none!important}.organizer-preview .organizer-open-book .guest-single-page{min-height:0!important}@media(min-width:1100px){.organizer-layout{grid-template-columns:minmax(0,1fr) 300px!important}}
.guest-single-page .message-tile .memory-photo,.single-page-book .single-book-page .memory-photo,.print-pages .message-tile .memory-photo{width:auto!important;max-width:100%;aspect-ratio:1.5!important;align-self:center}
.builder .book-wrap.organizer-open-book{width:840px!important;max-width:none!important;flex:none;aspect-ratio:var(--spread-ratio)!important;height:auto!important}.builder>.stage{overflow-x:auto;align-items:flex-start}.builder .organizer-open-book .guest-single-page{min-height:0!important}
.organizer-cover-view.book-front{justify-content:flex-end}.organizer-cover-view.book-back{justify-content:flex-start}
.book-turn-sheet{position:absolute;top:0;width:50%;height:100%;z-index:12;transform-style:preserve-3d;pointer-events:none;will-change:transform}.book-turn-sheet.forward{left:50%;transform-origin:left center;animation:slow-book-forward 1.7s cubic-bezier(.32,.05,.2,1) both}.book-turn-sheet.backward{left:0;transform-origin:right center;animation:slow-book-backward 1.7s cubic-bezier(.32,.05,.2,1) both}
.book-turn-face{position:absolute;inset:0;backface-visibility:hidden;background:#fffef9;overflow:hidden;box-shadow:0 2px 18px #33402c22}.book-turn-back{transform:rotateY(180deg)}.book-turn-face:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#33402c18,transparent 15%,transparent 85%,#33402c0d)}
.book-stationary{position:absolute;top:0;width:50%;height:100%;z-index:10;background:#fffef9;pointer-events:none;overflow:hidden}.book-stationary.left{left:0}.book-stationary.right{right:0}
.book-turn-face>.cover,.book-turn-face>.gift-ending,.book-turn-face>.quiet-page,.book-turn-face>.single-book-page,.book-stationary>.cover,.book-stationary>.gift-ending,.book-stationary>.quiet-page,.book-stationary>.single-book-page{width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;aspect-ratio:auto!important;margin:0;border-radius:0;box-sizing:border-box}
.book-turn-face>.single-book-page,.book-stationary>.single-book-page{padding:18px 20px;gap:12px}
@keyframes slow-book-forward{0%{transform:rotateY(0)}100%{transform:rotateY(-180deg)}}@keyframes slow-book-backward{0%{transform:rotateY(0)}100%{transform:rotateY(180deg)}}
@media(prefers-reduced-motion:reduce){.book-turn-sheet.forward,.book-turn-sheet.backward{animation-duration:.01s}}
body:not([data-format=S55]) .guest-single-page .message-tile .message-photo,body:not([data-format=S55]) .guest-single-page .message-tile .memory-photo,body:not([data-format=S55]) .print-pages .message-tile .message-photo,body:not([data-format=S55]) .print-pages .message-tile .memory-photo{height:55%!important;flex-basis:55%!important;max-height:none!important}.guest-single-page .message-tile p{line-height:1.5!important;margin:4px 0}.guest-single-page .little-gift{padding:1px 4px}.guest-single-page .message-name{margin-top:2px}
