/* Responsive polish: keep the approved rectangular photo-led design. */
html{scroll-padding-top:84px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-wrap:break-word}
button,a,input,select,textarea,summary{touch-action:manipulation}
.mobile-page-nav{display:none}
#pageTitle:focus{outline:none}
#detail :is(img,video){max-width:100%}
@media(max-width:900px) and (min-width:661px){
 .facility-welcome,.facility-rest,.nature-children,.food-safety{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .nature-moment{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
 .nature-overlay{width:calc((100% - 24px)*1.2/2.2)}
 .meal-gallery .nature-overlay{width:100%}
}
@media(max-width:760px){
 header{height:64px;padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right));gap:12px}
 header .brand-logo{width:clamp(170px,52vw,220px)}
 header #toggle{min-width:64px;min-height:48px;font-size:16px}
 header.is-open #toggle{min-width:48px;top:8px;right:16px}
 .top-menu{position:fixed;max-height:100dvh;padding:76px 24px max(28px,env(safe-area-inset-bottom));border-radius:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}
 .top-menu h2{font-size:18px;margin-bottom:8px;padding-bottom:10px}
 .top-menu a{font-size:16px;white-space:normal;min-height:48px;width:100%}
 body.menu-visible{overflow:hidden}
 .detail-nav{display:none}
 .mobile-page-nav{display:block;margin:0 0 26px}
 .mobile-page-nav label{display:block;font-size:14px;color:#59634f;margin-bottom:6px}
 .mobile-page-nav select{width:100%;min-height:48px;padding:10px 14px;border:1px solid #bac4b1;border-radius:0;background:#f5f6f0;color:#34452a;font:inherit;font-size:16px}
 #detail{padding:20px 20px 0}
 #detail>h1{font-size:32px;padding:12px 0 20px;line-height:1.4}
 #detail .back{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
 #detail .detail-lead{font-size:18px;line-height:1.7;margin-bottom:24px}
 #detail p{font-size:16px;line-height:1.8;overflow-wrap:anywhere}
 #detail .facility-copy p br,#detail .facility-room-heading p br,.nature-moment-copy p br{display:none}
 .facility-tour .section-no{font-size:14px;letter-spacing:.02em}
 .site-footer{gap:14px;padding:24px 20px;flex-wrap:wrap}
 .site-footer .footer-brand{width:190px}
 .footer-staff{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
}
@media(max-width:660px){
 :root{--type-body:16px}
 .hero{height:clamp(300px,90vw,440px)}
 .hero h1{font-size:clamp(26px,7vw,32px);padding-inline:16px;line-height:1.45}
 .control{min-height:44px;bottom:16px;right:16px}
 .reference-gallery{padding-inline:16px}
 .intro-ribbon{padding:28px 4px}
 .gallery-heading{gap:16px;padding:28px 4px 22px}
 #home .clear-cta{min-height:48px;font-size:16px!important;white-space:normal;padding:10px 16px}
 .gallery-stage{--gallery-photo-height:clamp(190px,54vw,330px)}
 .gallery-pair img{height:var(--gallery-photo-height);min-height:0;max-height:none;object-fit:contain;background:#eeeae1}
 .gallery-pair figcaption{font-size:16px;line-height:1.6}
 /* Intrinsic text height prevents long slide captions from being clipped. */
 .day-banner{display:grid;height:auto;overflow:hidden}
 .day-frame{position:relative;inset:auto;grid-area:1/1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;min-width:0;align-self:stretch}
 .day-frame img{grid-column:1;grid-row:1;height:75vw;max-height:480px;object-fit:cover;background:#eeeae1}
 .day-caption{grid-column:1;grid-row:2;height:auto;min-height:210px;padding:24px 20px 30px;max-width:none;justify-content:flex-start}
 .day-caption strong{font-size:26px;line-height:1.45}
 .day-caption span{font-size:16px;line-height:1.8}
 .day-overlay{height:min(75vw,480px);aspect-ratio:auto}
 .feature{width:calc(100% - 32px);margin:44px auto}
 .feature-copy{padding:0 20px 26px}
 .facility-tour{gap:40px}
 .facility-copy,.facility-welcome .facility-copy,.nature-children .facility-copy{padding:24px 20px}
 #detail .facility-copy h2,#detail .facility-room-heading h2{font-size:clamp(24px,6.5vw,28px);line-height:1.5;overflow-wrap:anywhere}
 .nature-gallery,.nature-harvest,.nature-trail,.nature-winter,.facility-windows,.facility-bath{padding:24px 16px}
 .nature-moment{gap:16px}
 .nature-moment-copy{min-height:0}
 #detail .nature-moment h3{font-size:24px;line-height:1.5}
 .nature-moment-photo,.nature-overlay{aspect-ratio:3/4;max-height:520px}
 .meal-gallery .meal-photo-portrait img{transform:none}
 .meal-gallery .meal-photo-portrait{padding-inline:0}
 .facility-youtube{padding:22px 16px;gap:22px}
 .facility-youtube-copy p br{display:none}
 .program-stage{aspect-ratio:4/3}
 .service-therapy .program-stage{aspect-ratio:3/4;max-height:540px}
 .story-row.service-program>div{gap:12px}
 .service-medical>article{margin:24px 20px}
 .detail-contact>div{min-width:0}
 .detail-button{max-width:100%;padding:12px 16px;text-align:center}
 .album-dialog{max-height:calc(100dvh - 24px);width:calc(100% - 20px)}
 .album-form-row{grid-template-columns:1fr}
 .album-edit-actions,.album-form-actions{flex-wrap:wrap}
 .album-pick button{min-height:44px}
 .album-copy>span{font-size:14px}
 .album-story{padding:24px 18px}
 .album-story p{overflow-wrap:anywhere}
 .album-categories button{padding:10px 14px}
}
@media(max-width:360px){
 #detail{padding-inline:16px}
 header .brand-logo{width:170px}
 .top-menu{column-gap:12px;padding-inline:18px}
 .top-menu h2{font-size:17px}
 .album-grid{grid-template-columns:1fr}
 .gallery-heading h2{font-size:24px}
}
