/* momo花 v1.6 public-only trial color preview. All accents use CSS variables; LINE brand stays green. */
:root{--theme-bg:#fff3f8;--theme-accent:#875369;--theme-panel:#fbe7ed;--theme-text:#423c40;--theme-ink-on-accent:#fff;--theme-soft:#fff8fa}
body{background:var(--theme-bg);color:var(--theme-text)}
.site-header{background:color-mix(in srgb,var(--theme-bg) 90%, white);border-bottom-color:color-mix(in srgb,var(--theme-accent) 16%,white)}
.brand strong,.hero-copy h1,.intro-copy h2,.service h3,.facility h3,.contact h2,.live-copy h3,.archive-item-title{color:var(--theme-accent)}
.hero{background:linear-gradient(117deg,var(--theme-panel),var(--theme-bg) 65%,#fff)}
.bg-cream,.contact{background:var(--theme-panel)}
.eyebrow,.hero-copy .subtitle{color:var(--theme-accent)}
.brand-mark{background:var(--theme-panel);color:var(--theme-accent)}
.tag{border-color:var(--theme-panel);color:var(--theme-accent);background:white}
.price-head,.foot{background:var(--theme-accent);color:var(--theme-ink-on-accent)}
.foot{color:var(--theme-ink-on-accent)}
.price-row strong{color:var(--theme-accent)}
.btn:not(.btn-line){background:var(--theme-accent);color:var(--theme-ink-on-accent)!important}
.btn-line,.float-line{background:#2baf70!important;color:white!important}
.rule,.service,.facility,.price-card,.live-card,.diary,.qr-wrap{border-color:color-mix(in srgb,var(--theme-accent) 15%,white)}
.theme-preview-open{position:fixed;z-index:110;left:17px;bottom:18px;border:none;border-radius:999px;cursor:pointer;background:#fff;color:#543d4d;padding:11px 17px;box-shadow:0 6px 23px #25142438;font-weight:800;font-size:.9rem;display:flex;align-items:center;gap:7px;border:1px solid #eadbe1}
.theme-preview-open small{font-size:.65rem;font-weight:600;opacity:.72}
.theme-preview-open:hover{transform:translateY(-2px)}
.theme-preview-dialog{position:fixed;inset:0 0 0 auto;margin:0;border:0;border-radius:20px 0 0 20px;width:min(480px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;background:#fffafc;padding:0;color:#3c3540;box-shadow:-6px 0 35px #2012203b;overscroll-behavior:contain}
.theme-preview-dialog::backdrop{background:rgba(34,29,36,.55)}
.theme-preview-inner{padding:24px 22px 32px;overflow:auto;height:100%;font-size:.92rem;line-height:1.6}
.theme-preview-top{display:flex;justify-content:space-between;align-items:start;gap:16px}
.theme-preview-kicker{color:#9d7484;font-weight:800;letter-spacing:.15em;font-size:.64rem}
.theme-preview-top h2{margin:2px 0 8px;color:#573e4d;font-size:1.38rem;letter-spacing:0}
.theme-preview-close{border:1px solid #e3d5da;border-radius:50%;background:#fff;color:#553f4a;font-size:1.65rem;line-height:1;width:38px;height:38px;cursor:pointer}
.theme-preview-explain{background:#fff0f5;padding:12px 14px;border-radius:13px;color:#695765;font-size:.82rem;margin:10px 0 16px}
.theme-preview-section{padding:12px 0 16px;border-top:1px solid #e9dce1}
.theme-preview-section h3{margin:0 0 10px;font-size:.98rem;color:#573e4d}
.theme-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.theme-preset{border:1px solid #e6dbe0;background:#fff;border-radius:13px;padding:10px;text-align:left;color:#57424e;cursor:pointer;font-weight:700;display:flex;align-items:center;gap:8px;font-size:.83rem}
.theme-preset[aria-pressed="true"]{border-color:#875369;box-shadow:0 0 0 2px #ab7e9855}
.theme-preset-swatch{width:42px;flex:0 0 42px;height:35px;border-radius:8px;display:grid;place-items:center;font-size:1.2rem;box-shadow:inset 0 0 0 1px #0002}
.theme-color-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.theme-color-fields label{border:1px solid #e7dbe1;background:#fff;border-radius:12px;padding:10px;display:grid;grid-template-columns:44px 1fr;column-gap:9px;align-items:center;font-size:.78rem;font-weight:700}
.theme-color-fields input{grid-row:1/3;width:44px;height:44px;cursor:pointer;border:0;padding:0;background:transparent}
.theme-color-fields span{font-size:.7rem;font-weight:500;color:#766775}
.theme-preview-section-heading{display:flex;justify-content:space-between;align-items:center;gap:7px}.theme-preview-section-heading span{font-size:.73rem;color:#7b6875}
.theme-save-row{display:flex;gap:8px}.theme-save-row input{flex:1;min-width:0;border:1px solid #ddcad4;border-radius:10px;padding:10px;font-size:.88rem}
.theme-save-row button,.theme-action-primary{background:#875369;border:0;color:#fff;border-radius:10px;font-weight:700;padding:10px 12px;cursor:pointer}
.theme-custom-slots{display:grid;gap:8px;margin-top:11px}
.theme-custom-slot{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;gap:8px;align-items:center;border:1px solid #e6dbe0;border-radius:11px;padding:8px}
.theme-custom-slot-preview{width:40px;height:30px;border-radius:7px;box-shadow:inset 0 0 0 1px #0002}
.theme-custom-slot-name{font-size:.81rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.theme-custom-slot button{border:1px solid #e1d4da;border-radius:8px;background:#fff;color:#684c60;padding:5px 8px;cursor:pointer;font-size:.76rem}
.theme-custom-slot button:disabled{color:#aaa;cursor:not-allowed}
.theme-preview-help{font-size:.75rem;color:#746271;margin:8px 0 0}
.theme-preview-actions{display:flex;gap:9px;margin:10px 0}.theme-preview-actions button{flex:1;font-size:.8rem;min-height:43px}
.theme-action-secondary{border:1px solid #d9c8d1;border-radius:10px;background:#fff;color:#664858;cursor:pointer;font-weight:700}
.theme-preview-message{font-size:.79rem;color:#4a6854;min-height:1.3em;margin:0}
.theme-preview-dialog button:focus-visible,.theme-preview-open:focus-visible,.diary-lightbox button:focus-visible{outline:3px solid #b36f87;outline-offset:3px}
/* Single preview/stacked polaroids */
.live-images{display:flex!important;align-items:center;justify-content:center;padding:22px 12px 9px;background:color-mix(in srgb,var(--theme-panel) 55%,white)}
.polaroid-trigger{position:relative;display:block;width:min(100%,360px);height:auto;min-height:190px;cursor:zoom-in;border:none;background:transparent;padding:0 15px 15px;margin:0;z-index:0}
.polaroid-frame{position:relative;display:block;background:#fff;padding:9px 9px 27px;transform:rotate(-2deg);box-shadow:0 4px 14px #43354140;border:1px solid #eee;width:100%;z-index:2;transition:transform .18s}
.polaroid-frame img{height:215px!important;width:100%;max-width:100%;object-fit:contain!important;background:#f6f3f3}
.polaroid-trigger[data-count="1"] .polaroid-frame{transform:rotate(-1deg)}
.polaroid-trigger[data-count]:not([data-count="1"])::before,.polaroid-trigger[data-count]:not([data-count="1"])::after{content:'';position:absolute;inset:8px 16px 29px;background:#fff;border:1px solid #eee;box-shadow:0 3px 10px #43354129;z-index:0;transform:translate(10px,-4px) rotate(5deg)}
.polaroid-trigger[data-count]:not([data-count="1"])::after{transform:translate(-4px,0px) rotate(-5deg);z-index:1}
.polaroid-trigger:hover .polaroid-frame{transform:rotate(0deg) translateY(-2px)}
.polaroid-count{position:absolute;bottom:18px;right:19px;z-index:4;background:#523d4dcc;color:#fff;border-radius:999px;padding:2px 9px;font-size:.73rem;font-weight:700}
.polaroid-hint{position:absolute;bottom:11px;left:23px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fffdfcee;color:#867482;box-shadow:0 1px 4px #47363e17;z-index:4;pointer-events:none}.polaroid-hint svg{display:block}
.archive-item-body .live-images{padding:10px 5px;justify-content:flex-start}
.archive-item-body .polaroid-trigger{max-width:240px;min-height:140px}
.archive-item-body .polaroid-frame img{height:145px!important}
.diary-lightbox{padding:0;background:#18171b;color:#fff;border:0;max-width:100vw;width:min(1100px,96vw);max-height:96dvh;height:90dvh;border-radius:15px;overflow:hidden}
.diary-lightbox::backdrop{background:#0b070cdb}
.lightbox-shell{height:100%;display:flex;flex-direction:column;padding:52px 14px 14px;position:relative}
.lightbox-close{position:absolute;right:15px;top:9px;background:#ffffff17;color:#fff;border:1px solid #ffffff40;border-radius:50%;width:37px;height:37px;cursor:pointer;font-size:1.5rem}
.lightbox-main{display:flex;align-items:center;justify-content:space-between;flex:1;min-height:0;gap:9px}
.lightbox-main img{max-height:100%;max-width:calc(100% - 90px);object-fit:contain;width:auto;min-height:0}
.lightbox-prev,.lightbox-next{border:1px solid #ffffff40;border-radius:50%;height:42px;width:42px;flex:0 0 42px;background:#ffffff20;color:#fff;font-size:2rem;line-height:1;cursor:pointer}
.lightbox-footer{display:flex;justify-content:space-between;gap:10px;font-size:.82rem;padding:10px 14px 3px;color:#fff}
@media(max-width:740px){.theme-preview-open{left:12px;bottom:72px;font-size:.83rem}.theme-preview-dialog{border-radius:12px 12px 0 0;width:100vw;max-width:100vw;height:92dvh;max-height:92dvh;inset:auto 0 0 0}.theme-preview-inner{padding:18px 16px 22px}.theme-color-fields{grid-template-columns:1fr 1fr}.polaroid-trigger{width:min(100%,290px);min-height:170px}.polaroid-frame img{height:185px!important}.lightbox-shell{padding:51px 7px 15px}.lightbox-main{gap:2px}.lightbox-prev,.lightbox-next{width:32px;height:40px;flex-basis:32px}.lightbox-main img{max-width:calc(100% - 68px)}.lightbox-footer{font-size:.72rem}}
@media(prefers-reduced-motion:reduce){.polaroid-frame{transition:none}}
