.ym-story{position:relative;isolation:isolate;width:100%;}
.ym-story-sticky{position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden;z-index:0;pointer-events:none;}
.ym-story-bg{position:absolute;top:0;left:0;height:40%;width:auto;max-width:none!important;object-fit:contain;will-change:transform;}
.ym-story-character{position:absolute;left:10%;bottom:60%;height:25%;width:auto;max-width:none!important;z-index:2;pointer-events:none;}
.ym-story-content{position:relative;z-index:1;margin-top:-100vh;margin-top:-100dvh;pointer-events:none;}
.ym-story-panel{box-sizing:border-box;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;position:relative;padding:8vh 7%;pointer-events:none;}
.ym-story-panel>*{pointer-events:auto;}
.ym-story .ym-align-left{align-items:flex-start;text-align:left;padding-left:10%;}
.ym-story .ym-align-right{align-items:flex-end;text-align:right;padding-right:10%;}
.ym-story-intro-image,.ym-story-product-image{width:clamp(170px,25vw,270px);height:clamp(170px,25vw,270px);flex-shrink:0;background-size:cover;background-position:center;-webkit-mask-image:radial-gradient(circle,black 48%,transparent 83%);mask-image:radial-gradient(circle,black 48%,transparent 83%);}
.ym-story-intro p,.ym-story-product-copy{color:#161616;max-width:340px;text-shadow:0 1px 5px rgba(255,255,255,.75);}
.ym-story-intro p{font-size:clamp(17px,2.4vw,24px);font-weight:700;}
.ym-story-heading{align-items:center;text-align:center;}
.ym-story-heading h2,.ym-story-final h2{font-size:clamp(30px,5vw,54px);color:#172f68;text-shadow:0 2px 10px rgba(255,255,255,.85);}
.ym-story-product-copy h3{font-size:clamp(22px,3vw,30px);margin:0 0 10px;color:#132b54;}
.ym-story-product-copy p{margin:0 0 10px;line-height:1.7;}
.ym-story-product-copy strong{font-size:clamp(20px,2.5vw,27px);color:#183f8d;}
.ym-story-list{align-items:center;}
.ym-story-list-inner{width:min(90%,680px);padding:25px;background:rgba(255,255,255,.88);border-radius:18px;box-shadow:0 8px 32px rgba(0,0,0,.10);max-height:80vh;overflow:auto;}
.ym-story-list-inner h3{text-align:center;margin:0 0 16px;color:#172f68;}
.ym-story-list-row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid rgba(0,0,0,.15);}
.ym-story-list-row:last-child{border-bottom:0;}
.ym-story-list-row p{margin:3px 0 0;font-size:.88em;}
.ym-story-list-row strong{white-space:nowrap;color:#183f8d;}
.ym-story-final{align-items:center;text-align:center;color:#111;}
.ym-story-address{max-width:460px;color:#111;}
.ym-story-tel{display:inline-block;padding:14px 28px;font-size:1.4rem;font-weight:700;text-decoration:none!important;color:#fff!important;background:#2c4ea2;border-radius:999px;box-shadow:0 0 24px rgba(255,255,255,.25);}
.ym-story-tel:hover{background:#1f3a93;transform:scale(1.04);}
.ym-reveal{opacity:0;transform:translateY(40px);transition:opacity .7s ease,transform .7s ease;}
.ym-reveal.ym-visible{opacity:1;transform:translateY(0);}
@media(max-width:600px){.ym-story-panel{padding:6vh 6%;}.ym-story .ym-align-left{padding-left:6%;}.ym-story .ym-align-right{padding-right:6%;}.ym-story-list-inner{width:100%;padding:16px;}.ym-story-intro-image,.ym-story-product-image{width:190px;height:190px;}}
@media(prefers-reduced-motion:reduce){.ym-reveal{transition:none;opacity:1;transform:none;}}

/* Category closing catchphrase: compact and unobtrusive */
.ym-story-catchphrase{position:relative;min-height:26vh;display:flex;justify-content:center;align-items:center;text-align:center;padding:20px 7%;pointer-events:none;}
.ym-story-catchphrase p{margin:0;font-size:clamp(13px,1.5vw,16px);font-weight:500;letter-spacing:.06em;color:#26344c;text-shadow:0 1px 6px rgba(255,255,255,.95);}

/* v1.6: caption immediately below the category title, +3px from prior size */
.ym-story-heading{gap:10px;}
.ym-story-heading-catchphrase{margin:0;font-size:clamp(16px,calc(1.5vw + 3px),19px);font-weight:500;letter-spacing:.06em;color:#26344c;text-shadow:0 1px 6px rgba(255,255,255,.95);}
/* Phone button pinned to the viewport bottom while story is on screen. */
.ym-story .ym-story-tel-fixed{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:999;white-space:nowrap;max-width:calc(100vw - 28px);text-align:center;pointer-events:auto;visibility:hidden;opacity:0;transition:opacity .2s ease,visibility .2s ease;}
.ym-story.ym-story-active .ym-story-tel-fixed{visibility:visible;opacity:1;}
.ym-story .ym-story-tel-fixed:hover{transform:translateX(-50%) scale(1.04);}
.ym-story-content{padding-bottom:88px;}
@media(max-width:600px){.ym-story .ym-story-tel-fixed{font-size:1.1rem;padding:12px 22px;}}

/* v1.7: panoramic foreground over the menu content.
   The background is opaque in its upper 40%; content passing through that
   portion is deliberately concealed, while content below it stays visible. */
.ym-story-sticky{z-index:3;}
.ym-story-content{z-index:1;}
.ym-story-bg{z-index:2;}
.ym-story-character{z-index:3;}
/* Remove excessive full-screen gaps between product cards. */
.ym-story-product{min-height:52vh;min-height:52dvh;padding-top:3vh;padding-bottom:3vh;gap:12px;}
.ym-story-heading{min-height:65vh;min-height:65dvh;}
.ym-story-list{min-height:65vh;min-height:65dvh;}
.ym-story-final{min-height:85vh;min-height:85dvh;}
/* Keep the call button above all story layers. */
.ym-story .ym-story-tel-fixed{z-index:10;}
@media(max-width:600px){
  .ym-story-product{min-height:0;padding:18px 0 24px;gap:12px;align-items:stretch!important;text-align:left!important;}
  .ym-story .ym-story-product.ym-align-left,.ym-story .ym-story-product.ym-align-right{padding-left:0;padding-right:0;}
  .ym-story-product-image{width:100%!important;height:auto!important;aspect-ratio:4/3;max-width:none;flex-shrink:0;-webkit-mask-image:none;mask-image:none;background-position:center;background-size:cover;}
  .ym-story-product-copy{box-sizing:border-box;width:100%;max-width:none;padding:0 6%;}
  .ym-story-heading{min-height:58vh;min-height:58dvh;}
  .ym-story-list{min-height:55vh;min-height:55dvh;}
  .ym-story-final{min-height:75vh;min-height:75dvh;}
}

/* v1.8: soft-edged elliptical product photographs on desktop and mobile. */
.ym-story-product-image{
  width:clamp(220px,28vw,340px);
  height:auto;
  aspect-ratio:4/3;
  border-radius:0;
  -webkit-mask-image:radial-gradient(ellipse 50% 50% at center, #000 48%, rgba(0,0,0,.94) 61%, transparent 94%);
  mask-image:radial-gradient(ellipse 50% 50% at center, #000 48%, rgba(0,0,0,.94) 61%, transparent 94%);
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
}
@media(max-width:600px){
  .ym-story-product-image{
    width:100%!important;height:auto!important;aspect-ratio:4/3;
    -webkit-mask-image:radial-gradient(ellipse 50% 50% at center, #000 48%, rgba(0,0,0,.94) 61%, transparent 94%);
    mask-image:radial-gradient(ellipse 50% 50% at center, #000 48%, rgba(0,0,0,.94) 61%, transparent 94%);
  }
}

/* v1.9: fixed, foreground shop name, visible only within the story. */
.ym-story-site-title{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:30;pointer-events:none;visibility:hidden;opacity:0;white-space:nowrap;text-align:center;color:#fff;font-family:"HGS行書体","HG行書体","HGP行書体","Yu Mincho","游明朝",serif;font-size:clamp(28px,5vw,48px);font-weight:700;letter-spacing:.08em;text-shadow:0 2px 7px rgba(0,0,0,.8),0 0 14px rgba(0,0,0,.55);transition:opacity .2s ease,visibility .2s ease;}
.ym-story.ym-story-active .ym-story-site-title{visibility:visible;opacity:1;}
@media(max-width:600px){.ym-story-site-title{font-size:clamp(26px,7vw,36px);}}

/* v2.0: replace the pinned text title with the supplied logo image. */
.ym-story-site-title{width:min(74vw,440px);max-width:calc(100vw - 32px);font-size:initial;letter-spacing:normal;line-height:1;}
.ym-story-site-title img{display:block;width:100%;height:auto;max-height:22vh;object-fit:contain;filter:drop-shadow(0 2px 7px rgba(0,0,0,.8)) drop-shadow(0 0 12px rgba(0,0,0,.55));}
@media(max-width:600px){.ym-story-site-title{width:min(78vw,300px);}}

/* v2.1: portrait elliptical mask only for drinks, on desktop and mobile. */
.ym-story .ym-story-product-drinks .ym-story-product-image {
  width:clamp(190px,22vw,280px);
  aspect-ratio:3/4;
  height:auto;
  background-position:center;
  background-size:cover;
  -webkit-mask-image:radial-gradient(ellipse 50% 50% at center,#000 48%,rgba(0,0,0,.94) 61%,transparent 94%);
  mask-image:radial-gradient(ellipse 50% 50% at center,#000 48%,rgba(0,0,0,.94) 61%,transparent 94%);
}
@media(max-width:600px) {
  .ym-story .ym-story-product-drinks .ym-story-product-image {
    width:min(82vw,340px)!important;
    aspect-ratio:3/4;
    margin-left:auto;
    margin-right:auto;
  }
}
