/* Local review only. Approved Japanese baseline is untouched without candidate flag. */
#l-tools{position:fixed;right:10px;bottom:80px;z-index:30000;max-width:calc(100vw - 20px);padding:10px 14px;background:#f7f4edee;border:1px solid #b9ae9d;font:12px/1.6 system-ui;color:#302b25}#l-tools p{margin:5px 0}#l-tools a,#l-tools button{display:inline-block;min-height:36px;padding:6px;color:#692f37}
.jyv4-language{display:flex;align-items:center;gap:.65em}.jyv4-language a{color:inherit;text-decoration:none;white-space:nowrap}.jyv4-language a[aria-current]{text-decoration:underline;text-underline-offset:5px}.jyv4-language a:focus-visible{outline:2px solid #853944;outline-offset:4px}
/* Long translated breadcrumbs must expand instead of extending behind the header. */
html:not([lang=ja]) .jyv4-breadcrumb{height:auto;min-height:44px;padding-block:10px;box-sizing:border-box}
html[lang=zh-Hant] .jyv4-breadcrumb .jyv4-container>a:first-child{white-space:nowrap;flex-shrink:0}
html[lang=en] body{word-break:normal;overflow-wrap:break-word}html[lang=en] .jyv4-top-hero h1{font-size:clamp(1.8rem,3.4vw,3.7rem);line-height:1.4;letter-spacing:.025em}html[lang=en] .jyv4-top-hero__copy>p{max-width:34em}html[lang=en] .jyv4-nav>a{letter-spacing:.025em}html[lang=en] .jyv4-room-card__actions>a{white-space:normal;line-height:1.45}html[lang=en] .jyv4-room-card h3{letter-spacing:.025em;line-height:1.35}
html[lang=zh-Hant] body{font-family:'Noto Serif TC','Songti TC','PMingLiU',serif;line-break:strict;word-break:normal}html[lang=zh-Hant] .jyv4-top-hero h1{line-height:1.6;letter-spacing:.07em}
@media(max-width:767px){html[lang=en] .jyv4-top-hero__copy>p:not(.jyv4-kicker){font-size:1rem;line-height:1.9;letter-spacing:.025em}html[lang=en] .jyv4-header-book{font-size:.68rem;max-width:7em;white-space:normal;line-height:1.35}html[lang=en] .jyv4-brand strong{font-size:.92rem}html[lang=en] body.jyv4 .jyv4-room-card__actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}html[lang=en] .jyv4-top-hero h1{font-size:clamp(1.6rem,6.7vw,2.2rem)}html[lang=en] .jyv4-fixed-booking a{font-size:.75rem;white-space:normal;line-height:1.4}}
/* Matching cards share the existing grid row; no fixed heights or copy removal. */
body[data-phase-l=candidate] .jyv4-top-links article.is-link-4,body[data-phase-l=candidate] .jyv4-top-links article.is-link-5{display:flex;flex-direction:column}body[data-phase-l=candidate] .jyv4-top-links .is-link-4>div:not(.jyv4-media-plan),body[data-phase-l=candidate] .jyv4-top-links .is-link-5>div:not(.jyv4-media-plan){flex:1;display:flex;flex-direction:column}body[data-phase-l=candidate] .jyv4-top-links .is-link-4 .jyv4-text-link,body[data-phase-l=candidate] .jyv4-top-links .is-link-5 .jyv4-text-link{margin-top:auto;align-self:flex-start}
body[data-phase-l=candidate] .jyv4-access-steps__track.is-manual-guide{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:16px}body[data-phase-l=candidate] .jyv4-access-steps__track.is-manual-guide>li{flex:0 0 calc((100% - 24px)/2);min-width:0;scroll-snap-align:start}body[data-phase-l=candidate] .jyv4-guide-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}body[data-phase-l=candidate] .jyv4-guide-controls button{min-height:44px}
@media(max-width:767px){body[data-phase-l=candidate] .jyv4-access-steps__track.is-manual-guide{gap:12px}body[data-phase-l=candidate] .jyv4-access-steps__track.is-manual-guide>li{flex-basis:100%}}
/* Only the selected main-media slots are exchanged; every original photograph remains. */
/* Keep the open-air bath landscape prominent beside the main spout video. */
body[data-phase-l=candidate] .jyv4-top-highlight.is-onsen .jy6b-details{width:100%;min-width:0}
body[data-phase-l=candidate] .jyv4-top-highlight.is-onsen .jy6b-details .l-displaced-photo{grid-column:1/-1;order:-1;aspect-ratio:3/2}
body[data-phase-l=candidate] .l-featured-video:not(.jy6b-hero){width:100%;min-width:0;min-height:0;aspect-ratio:16/9}body[data-phase-l=candidate] .l-featured-video .jy26-video-frame{position:absolute;inset:0}body[data-phase-l=candidate] .l-featured-video video{width:100%;height:100%;object-fit:cover}
body[data-phase-l=candidate] [data-jyv4-loop]{animation:none;transform:none;width:100%;display:flex;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}body[data-phase-l=candidate] [data-jyv4-loop]>figure{flex:0 0 30vw;min-width:0;scroll-snap-align:start}
@media(max-width:767px){body[data-phase-l=candidate] .jyv4-top-highlight.is-onsen .jy6b-details{width:calc(100% - 48px)}body[data-phase-l=candidate] [data-jyv4-loop]>figure{flex-basis:72vw}body[data-phase-l=candidate] .l-featured-video[data-media-id*=CUISINE],body[data-phase-l=candidate] .l-featured-video[data-media-id=TOP-VIDEO-05]{aspect-ratio:4/3}}
@media(prefers-reduced-motion:reduce){body[data-phase-l=candidate] *{scroll-behavior:auto}}

/* English phrases wrap naturally without changing Japanese line-break rules. */
html[lang=en] .jyv4-heading-phrase,html[lang=en] .jyv4-reading-unit{white-space:normal}
html[lang=en] .jyv4-room-card__actions span{white-space:normal;overflow-wrap:break-word}html[lang=en] .jyv4-room-card__actions>a{min-width:0}
html[lang=en] .jyv4-room-card__actions>button{min-width:0;white-space:normal;line-height:1.45;overflow-wrap:break-word}

html[lang=zh-Hant] .jyv4-top-hero h1{font-size:clamp(1.35rem,7.2vw,1.95rem)}

/* Locale-specific long labels must not set the minimum width of a grid column. */
html[lang=en] .jyv4-room-card dl div{grid-template-columns:6em minmax(0,1fr)}html[lang=en] .jyv4-room-card dt{white-space:nowrap}
/* Reuse the approved standard/detail slider anchoring for longer English TOP text. */
@media(min-width:1001px){html[lang=en] .jyv4-room-finder.is-top .jyv4-room-card>.jyv4-slider{align-self:start}}
html[lang=en] .jyv4-room-booking{min-width:0;white-space:normal;line-height:1.5;max-width:100%}
html[lang=en] .jyv4-history-links .jyv4-text-link{min-width:0;white-space:normal;max-width:100%}html[lang=en] .jyv4-history-links .jyv4-text-link>span{min-width:0;white-space:normal}html[lang=en] .jyv4-history-now>.jyv4-container>div{min-width:0}
html[lang=en] .jyv4-room-intro>div,html[lang=en] .jyv4-history-links{min-width:0}

/* Translated article titles stay in normal flow so long headlines cannot be clipped. */
html:not([lang=ja]) .jyv4-article .jyv4-lower-hero{height:auto;min-height:460px}
html:not([lang=ja]) .jyv4-article .jyv4-lower-hero__copy{position:relative;inset:auto;height:auto;min-height:460px;padding-block:64px;box-sizing:border-box}
html[lang=en] .jyv4-article .jyv4-lower-hero h1{font-size:clamp(1.65rem,3vw,2.8rem);line-height:1.38;letter-spacing:.025em}

/* The English three-column foliage guide keeps readable column widths on narrow screens. */
.l-table-scroll{max-width:100%;overflow-x:auto}.l-table-scroll:focus-visible{outline:2px solid #853944;outline-offset:3px}.l-table-hint{display:none}
@media(max-width:600px){html[lang=en] .l-table-scroll table{min-width:540px;width:100%}html[lang=en] .l-table-hint{display:block;font-size:.85rem;line-height:1.6;margin-bottom:12px}}

/* English phone guidance must fit inside the narrow footer button. */
@media(max-width:767px){html[lang=en] .jyv4-footer-cta .jyv4-button{white-space:normal;line-height:1.5;letter-spacing:.02em;max-width:100%;min-width:0}}

@media(max-width:767px){html[lang=en] .jyv4-top-booking__trigger{white-space:normal;min-width:0;max-width:100%;line-height:1.5}}

/* Narrow English header: separate language and booking actions from the brand. */
@media(max-width:430px){
 html[lang=en] body[data-phase-l=candidate]{--jyv4-header:102px}
 html[lang=en] body[data-phase-l=candidate] .jyv4-header{display:grid;grid-template-columns:minmax(0,1fr) 112px;grid-template-areas:"brand menu" "language booking";height:102px;min-height:102px;padding:6px 12px;column-gap:12px;row-gap:2px;align-items:center}
 html[lang=en] .jyv4-header>.jyv4-brand{grid-area:brand;min-width:0;width:auto;max-width:none;margin:0}
 html[lang=en] .jyv4-header>.jyv4-menu{grid-area:menu;justify-self:end;margin:0;width:48px;height:44px;min-height:44px}
 html[lang=en] .jyv4-header>.jyv4-header-book{grid-area:booking;position:static;justify-self:end;margin:0;width:112px;max-width:none;min-height:44px;padding:6px 8px;font-size:12px;line-height:1.3}
 html[lang=en] .jyv4-header>.jyv4-language{grid-area:language;position:static;inset:auto;margin:0;padding:0;display:flex;gap:4px;align-items:center;justify-content:flex-start;justify-self:start;transform:none;width:auto}
 html[lang=en] .jyv4-header>.jyv4-language a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 2px;font-size:11px;line-height:1.3}
}

/* English/Traditional Chinese medium widths use the existing menu interaction instead of squeezing long navigation. */
@media(min-width:768px) and (max-width:1439px){
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) body[data-phase-l=candidate] .jyv4-header{grid-template-columns:minmax(0,1fr) auto 150px 48px;gap:18px;padding-inline:24px}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-header>.jyv4-brand{min-width:0}
 html[lang=en] .jyv4-brand strong{font-size:1.5rem}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-header>.jyv4-language{display:flex;position:static;justify-self:end;gap:4px}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-header>.jyv4-language a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding-inline:2px}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-header>.jyv4-header-book{grid-column:3;grid-row:1;width:150px;min-height:44px;margin:0;font-size:13px;line-height:1.4;white-space:normal}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-header>.jyv4-menu{grid-column:4;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;background:none;width:48px;min-height:48px;cursor:pointer}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-header>.jyv4-menu .jyv4-menu__status{white-space:nowrap;font-size:12px;letter-spacing:.04em}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-header>.jyv4-menu i,html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-header>.jyv4-menu:after{content:"";display:block;width:24px;height:1px;background:currentColor}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-header>.jyv4-menu i{position:absolute;left:12px;top:29px}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-header>.jyv4-menu:after{position:absolute;left:12px;top:36px}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-nav{position:absolute;display:none;top:100%;left:0;right:0;min-height:calc(100svh - var(--jyv4-header));max-height:calc(100svh - var(--jyv4-header));overflow:auto;overscroll-behavior:contain;padding:32px clamp(24px,6vw,80px);background:var(--jyv4-paper);box-shadow:0 20px 30px rgba(0,0,0,.08);flex-direction:column;align-items:stretch;gap:0;border-top:1px solid var(--jyv4-line)}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-nav.is-open{display:flex}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-nav>a{padding:14px 4px;min-height:44px;border-bottom:1px solid var(--jyv4-line);font:400 clamp(19px,2.7vw,26px)/1.7 var(--jyv4-serif);letter-spacing:.025em}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-nav__support{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;margin-top:18px;padding-top:18px;border-top:1px solid var(--jyv4-line)}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-nav__support a{padding:11px 4px;min-height:44px;border-bottom:1px solid var(--jyv4-line);font-size:.82rem}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-nav>.jyv4-footer-socials{display:flex;margin-top:24px}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) .jyv4-nav>.jyv4-footer-socials .jyv4-footer-socials__item{background:var(--jyv4-dark);opacity:.8}
 html:is([lang=en],[lang=zh-Hant],[lang=zh-Hans]) body.jyv4-menu-open .jyv4-fixed{opacity:0;visibility:hidden;pointer-events:none}
}

/* The English access diagram reference link wraps inside its existing tablet column. */
@media(max-width:900px){html[lang=en] .jyv4-access-map .jyv4-route>a{min-width:0}html[lang=en] .jyv4-access-map .jyv4-route>a>span{min-width:0;white-space:normal;overflow-wrap:anywhere}}

/* Keep the approved desktop booking label readable within its existing English header slot. */
@media(min-width:1440px){html[lang=en] .jyv4-header>.jyv4-header-book{white-space:normal;line-height:1.3;font-size:12px;padding:8px 10px}html[lang=en] .jyv4-nav{gap:16px;padding-right:16px}}

/* Simplified Chinese is a separate locale, using a native SC serif fallback. */
html[lang=zh-Hans] .jyv4-breadcrumb .jyv4-container>a:first-child{white-space:nowrap;flex-shrink:0}
html[lang=zh-Hans] body{font-family:'Noto Serif SC','Songti SC','SimSun',serif;line-break:strict;word-break:normal}html[lang=zh-Hans] .jyv4-top-hero h1{line-height:1.6;letter-spacing:.07em;font-size:clamp(1.35rem,7.2vw,1.95rem)}
