/* Approved R9 language control; compact sizing preserves CTA, MENU and header height. */
html body.jyv4 .jyv4-header > .jyv4-language[data-language-disclosure] {position:relative;display:block;gap:0;overflow:visible}
html body.jyv4 .jyv4-header .jy-language-trigger {box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:132px;max-width:100%;padding:7px 10px;border:1px solid #cbbda9;border-radius:8px;background:#faf8f4;color:inherit;font:inherit;font-size:14px;line-height:1.4;white-space:nowrap;cursor:pointer}
html body.jyv4 .jyv4-header .jy-language-trigger svg {display:block;flex:0 0 20px;width:20px;height:20px}
html body.jyv4 .jyv4-header .jy-language-trigger .jy-language-chevron {flex-basis:14px;width:14px;height:14px;margin-left:2px}
html body.jyv4 .jyv4-header .jy-language-options {box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;position:absolute;top:calc(100% + 4px);left:0;z-index:5;width:max-content;min-width:100%;max-width:calc(100vw - 24px);padding:4px 0;border:1px solid #cbbda9;border-radius:8px;background:#faf8f4;color:#25231f;text-align:left}
html body.jyv4 .jyv4-header .jy-language-options[hidden] {display:none}
html body.jyv4 .jyv4-header .jy-language-options a {box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:44px;width:100%;flex:none;margin:0;padding:8px 14px;color:inherit;font:inherit;font-size:14px;line-height:1.5;white-space:nowrap;text-decoration:none}
html body.jyv4 .jyv4-header .jy-language-options a::before {content:"";box-sizing:border-box;flex:0 0 18px;width:18px;height:18px;border:1px solid #928a7e;border-radius:50%}
html body.jyv4 .jyv4-header .jy-language-options a[aria-current]::before {border:2px solid #a65445;background:radial-gradient(circle,#a65445 0 4px,transparent 4.5px)}
html body.jyv4 .jyv4-header .jy-language-trigger:hover,html body.jyv4 .jyv4-header .jy-language-options a:hover {background:#f0ebe3}
html body.jyv4 .jyv4-header .jy-language-trigger:focus-visible,html body.jyv4 .jyv4-header .jy-language-options a:focus-visible {outline:2px solid #853944;outline-offset:2px}
@media(max-width:767px){html body.jyv4 .jyv4-header > .jyv4-language[data-language-disclosure]{position:relative;justify-self:start}html body.jyv4 .jyv4-header .jy-language-trigger {min-width:132px;font-size:13px}}

/* Compact desktop control; retain mobile geometry and44px interaction height. */
@media(min-width:768px){
 html body.jyv4 .jyv4-header .jy-language-trigger{width:116px;min-width:116px;gap:6px;padding-inline:7px}
 html body.jyv4 .jyv4-header .jy-language-trigger svg{flex-basis:18px;width:18px;height:18px}
 html body.jyv4 .jyv4-header .jy-language-trigger .jy-language-chevron{flex-basis:12px;width:12px;height:12px;margin-left:0}
}

/* Local client-feedback candidate: separate language and booking controls. */
@media(min-width:901px){html body.jyv4 .jyv4-header > .jyv4-language[data-language-disclosure]{margin-right:12px}}
@media(min-width:768px) and (max-width:900px){
 html:is([lang=ja],[lang=en],[lang=zh-Hant],[lang=zh-Hans]) body.jyv4 .jyv4-header{grid-template-columns:minmax(0,1fr) 116px 168px 48px;column-gap:12px}
 html body.jyv4 .jyv4-header > .jyv4-brand{grid-column:1;grid-row:1}
 html body.jyv4 .jyv4-header > .jyv4-language[data-language-disclosure]{grid-column:2;grid-row:1;inset:auto;margin:0;align-self:center}
 html body.jyv4 .jyv4-header > .jyv4-header-book{grid-column:3;grid-row:1;width:168px;margin:0}
 html body.jyv4 .jyv4-header > .jyv4-menu{grid-column:4;grid-row:1}
}

/* Japanese navigation needs the existing drawer before its links collide.
   Keep the approved <=900px and >=1200px layouts unchanged. */
@media(min-width:901px) and (max-width:1199px){
 html[lang=ja] body.jyv4 .jyv4-header{grid-template-columns:minmax(0,1fr) 116px 168px 48px;column-gap:12px}
 html[lang=ja] body.jyv4 .jyv4-header>.jyv4-brand{grid-column:1;grid-row:1;min-width:0}
 html[lang=ja] body.jyv4 .jyv4-header>.jyv4-language[data-language-disclosure]{grid-column:2;grid-row:1;position:relative;inset:auto;margin:0;align-self:center}
 html[lang=ja] body.jyv4 .jyv4-header>.jyv4-header-book{grid-column:3;grid-row:1;width:168px;max-width:none;margin:0}
 html[lang=ja] body.jyv4 .jyv4-header>.jyv4-menu{grid-column:4;grid-row:1;display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;width:48px;min-height:48px;border:0;background:none;color:var(--jyv4-rust,#8b493c);cursor:pointer}
 html[lang=ja] body.jyv4 .jyv4-header>.jyv4-menu .jyv4-menu__status{white-space:nowrap;font-size:12px;letter-spacing:.04em}
 html[lang=ja] body.jyv4 .jyv4-header>.jyv4-menu i,html[lang=ja] body.jyv4 .jyv4-header>.jyv4-menu:after{content:"";display:block;position:absolute;left:12px;width:24px;height:1px;background:currentColor}
 html[lang=ja] body.jyv4 .jyv4-header>.jyv4-menu i{top:29px}
 html[lang=ja] body.jyv4 .jyv4-header>.jyv4-menu:after{top:36px}
 html[lang=ja] body.jyv4 .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[lang=ja] body.jyv4 .jyv4-nav.is-open{display:flex}
 html[lang=ja] body.jyv4 .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:.06em}
 html[lang=ja] body.jyv4 .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[lang=ja] body.jyv4 .jyv4-nav__support a{padding:11px 4px;min-height:44px;border-bottom:1px solid var(--jyv4-line);font-size:.82rem}
 html[lang=ja] body.jyv4 .jyv4-nav>.jyv4-footer-socials{display:flex;margin-top:24px}
 html[lang=ja] body.jyv4 .jyv4-nav>.jyv4-footer-socials .jyv4-footer-socials__item{background:var(--jyv4-dark);opacity:.8}
 html[lang=ja] body.jyv4-menu-open .jyv4-fixed{opacity:0;visibility:hidden;pointer-events:none}
}

/* Adopted mobile MENU: GPT/user approval 2026-11-18; desktop/tablet unchanged. */
@media (max-width: 600px) {
  body.jyv4 .jyv4-nav {
    padding: 20px 24px 32px;
    overscroll-behavior-y: contain;
  }
  body.jyv4 .jyv4-nav > a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 12px 22px 12px 0;
    border-bottom: 1px solid rgba(91, 77, 60, .26);
    font-size: 21px;
    line-height: 1.5;
    letter-spacing: .055em;
    overflow-wrap: anywhere;
  }
  html[lang^="en"] body.jyv4 .jyv4-nav > a {
    font-size: 20px;
    letter-spacing: .025em;
  }
  body.jyv4 .jyv4-nav > a::after,
  body.jyv4 .jyv4-nav__support > a::after {
    content: "";
    position: absolute;
    inset: auto 3px auto auto;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    background: transparent;
    transform: rotate(45deg);
    opacity: .8;
  }
  body.jyv4 .jyv4-nav__support {
    gap: 0 22px;
    margin-top: 24px;
    padding-top: 0;
    border-top: 0;
  }
  body.jyv4 .jyv4-nav__support > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 18px 10px 0;
    border-bottom: 1px solid rgba(91, 77, 60, .2);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
  }
  body.jyv4 .jyv4-nav > a:focus-visible,
  body.jyv4 .jyv4-nav__support > a:focus-visible {
    outline: 2px solid var(--jyv4-rust, #8b493c);
    outline-offset: 3px;
  }
  body.jyv4 .jyv4-menu[aria-expanded="true"] .jyv4-menu__status {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .06em;
  }
}

/* User-directed mobile header: retain the desktop layout, use existing controls inside MENU. */
@media(max-width:600px){
 html:is([lang=ja],[lang=en],[lang=zh-Hant],[lang=zh-Hans]) body.jyv4 .jyv4-header{grid-template-columns:minmax(0,1fr) 48px;grid-template-rows:1fr;column-gap:16px;min-height:72px;height:72px;padding:10px 20px;align-content:center}
 html body.jyv4 .jyv4-header>.jyv4-brand{grid-column:1;grid-row:1;max-width:100%;min-width:0;align-self:center}
 html body.jyv4 .jyv4-header .jyv4-brand strong{white-space:nowrap;font-size:clamp(18px,5vw,22px)}
 html body.jyv4 .jyv4-header>.jyv4-menu{grid-column:2;grid-row:1;min-width:48px;min-height:48px;justify-self:end;color:var(--jyv4-rust,#8b493c);background:transparent}
 html body.jyv4 .jyv4-header>.jyv4-menu:focus-visible{outline:2px solid var(--jyv4-rust,#8b493c);outline-offset:3px}
 html body.jyv4 .jyv4-header>.jyv4-nav{top:72px;max-height:calc(100svh - 72px);padding-top:20px;overscroll-behavior:contain}
 .jyv4-menu-tools{display:grid;gap:16px;margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid rgba(91,77,60,.2)}
 .jyv4-menu-tools[hidden]{display:none}
 html body.jyv4 .jyv4-menu-tools .jyv4-header-book{grid-column:1;grid-row:auto;justify-self:stretch;min-width:100%;max-width:none;box-sizing:border-box;margin:0;width:100%;min-height:48px;justify-content:center;white-space:nowrap;font-size:14px}
 html body.jyv4 .jyv4-menu-tools .jyv4-language{display:block;position:relative;justify-self:start;margin:0;overflow:visible}
 html body.jyv4 .jyv4-menu-tools .jy-language-trigger{min-width:132px;margin:0}
 html body.jyv4 .jyv4-menu-tools .jy-language-options{z-index:6}
}
