/* iPad 10: portrait 820px and landscape 1180px. */
@media screen and (min-width:761px) and (max-width:1180px){
 form,fieldset,label,.field,.fields,.form-grid,.pm-form-grid,.hub-card,.pm-card,.member section{min-width:0;min-inline-size:0;max-width:100%;box-sizing:border-box}
 input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%;box-sizing:border-box;font-size:16px}
 input:is([type=date],[type=month],[type=time],[type=datetime-local]){display:block;width:100%;inline-size:100%;min-width:0;min-inline-size:0;max-width:100%;min-height:48px;appearance:none;-webkit-appearance:none;padding-inline:10px}
 input:is([type=date],[type=month],[type=time],[type=datetime-local])::-webkit-date-and-time-value{min-width:0;max-width:100%;text-align:left}
 .hub-grid,.pm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .hub .hub-main,.pm-main{padding:32px 4% 50px}
 .hub-card{padding:22px;overflow-wrap:anywhere}
 .pm-heading,.pm-header,.pm-card-actions{flex-wrap:wrap}
 .pm-header>div{flex-wrap:wrap;gap:14px}
 .pm-modal{width:min(760px,94vw);max-height:calc(100dvh - 32px)}
 .pm-modal-body{min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
 .pm-modal-foot button,.pm-card-actions button,.studio-tabs a,.work-photo-nav button{min-height:46px}
 .line-admin,.coupon-admin,.calendar-admin{max-width:100%;box-sizing:border-box;padding-inline:4%;overflow-wrap:anywhere}
 .line-admin section,.coupon-admin section,.calendar-admin section{min-width:0;max-width:100%;box-sizing:border-box}
 .home-showcase .hero-copy{padding:36px 8%}
 .home-showcase h1,.home-showcase h2{font-size:clamp(30px,3.7vw,44px);letter-spacing:3px}
 .home-showcase .ad-slide{min-height:580px}
 .ad-controls button{min-height:44px;min-width:44px}
 .ad-controls .ad-dots button{min-height:12px;min-width:12px}
 .work-photo-nav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center}
 .work-photo-nav button{width:100%;min-width:0}
}
/* iPad portrait: use the full width while preserving landscape layouts. */
@media screen and (min-width:761px) and (max-width:1024px) and (orientation:portrait){
 .home-showcase{width:100%;max-width:100%;min-height:0}
 .home-showcase>.ad-slide.is-current{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;min-height:0;max-height:none}
 .home-showcase .hero-copy{width:100%;max-width:100%;min-width:0;padding:34px 6%}
 .home-showcase .hero-copy p{max-width:none}
 .home-showcase h1,.home-showcase h2{font-size:clamp(34px,4.8vw,46px);line-height:1.5;letter-spacing:3px}
 .home-showcase .ad-art,.home-showcase .hero-art{width:100%;min-width:0;height:clamp(360px,42svh,520px);min-height:0}
 .home-showcase .showcase-product .promotion-photo-link{height:100%;min-height:0}
 .home-showcase .showcase-product .promotion-photo-link img{width:100%;height:100%;max-height:100%;object-fit:contain}
 .home-showcase .member-coupon-image{max-height:100%}
 .home-showcase .ad-controls{height:72px;min-height:72px;padding:12px 16px;gap:12px;flex-wrap:nowrap}
 .home-showcase .ad-controls #ad-prev,.home-showcase .ad-controls #ad-next{top:auto;bottom:calc(72px + clamp(360px,42svh,520px)/2);transform:translateY(50%)}
 .compact-pages main>section.page-active{padding-left:5%;padding-right:5%}
 .compact-pages .section-head{display:block}
 .compact-pages .section-head p{max-width:none}
 .compact-pages .service-grid,.compact-pages .package-grid,.compact-pages .care,.compact-pages .booking,.compact-pages .location-section,.compact-pages .summer-section{grid-template-columns:minmax(0,1fr)}
 .compact-pages .care,.compact-pages .booking,.compact-pages .location-section,.compact-pages .summer-section{gap:32px}
 .compact-pages main>section>*,main>.layout>*,.sp .sp-hero>*,.sp .sp-visit>*{min-width:0;max-width:100%}
 main>.layout{grid-template-columns:minmax(0,1fr);gap:24px}
 #book .row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sp .sp-hero,.sp .sp-visit{grid-template-columns:minmax(0,1fr)}
 body.showcase-display .home-showcase>.ad-slide.is-current{height:calc(100dvh - 72px);grid-template-rows:minmax(0,1fr) minmax(0,1fr);overflow:auto}
 body.showcase-display .home-showcase .hero-copy{min-height:0;padding:24px 6%;overflow-y:auto}
 body.showcase-display .home-showcase .ad-art,body.showcase-display .home-showcase .hero-art{height:100%;min-height:0}
 body.showcase-display .home-showcase .ad-controls #ad-prev,body.showcase-display .home-showcase .ad-controls #ad-next{bottom:calc(72px + (100dvh - 72px)/4)}
 body.showcase-display .home-showcase .display-hint{bottom:74px}
}
