/* KYOKA: shared readable type scale, CSS pixels. */
html { font-size: 16px; }
small, sub, sup { font-size: max(12px, .8em); }
button, input, select, textarea { font-size: max(12px, 1em); }
/* Keep small photo captions and long translations inside their cards. */
.photo-caption, .photo-flavour, .eyebrow, .fine, .contact-type { overflow-wrap: anywhere; }

/* V38: mobile header — tagline, right-aligned languages, then logo and tools. */
.announcement .announcement-short, .brand-nav > .mobile-language, .prototype-mobile {display:none;}
@media (max-width:850px) {
  .prototype-desktop {display:none;}
  .prototype-mobile {display:block;}
  .announcement .announcement-full {display:none;}
  .announcement .announcement-short {display:inline;white-space:nowrap;}
  body .announcement {font-size:12px;letter-spacing:0;text-transform:none;line-height:1.4;padding:8px 12px 4px;text-align:center;white-space:nowrap;overflow-wrap:normal;}
  body header .brand-nav.wrap, body header.compact .brand-nav.wrap {
    width:calc(100% - 24px);margin-inline:auto;padding:0 0 9px;
    display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;
    gap:4px 8px;align-items:end;min-height:0;
  }
  body header .brand-nav > .mobile-language {grid-row:1;grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;justify-self:end;flex-wrap:nowrap;gap:0;padding:0;white-space:nowrap;}
  body header .mobile-language button {font-family:inherit;font-size:12px;line-height:1.25;min-height:30px;min-width:30px;background:none;border:0;color:#e5d8bf;padding:0 9px;cursor:pointer;white-space:nowrap;}
  body header .mobile-language button + button {position:relative;}
  body header .mobile-language button + button::before {content:"";position:absolute;left:0;top:9px;bottom:9px;width:1px;background:#887451;}
  body header .mobile-language button:last-child {padding-right:0;}
  body header .mobile-language button[aria-pressed=true] {color:#f4d58e;text-decoration:underline;text-underline-offset:4px;}
  body header .brand-lockup {grid-row:2;grid-column:1;display:flex;align-items:center;align-self:end;justify-self:start;min-width:0;max-width:100%;width:100%;gap:5px;}
  body header .brand-lockup img.brand-emblem {flex:0 1 auto;width:clamp(37px,13vw,75px);height:auto;max-width:43%;object-fit:contain;}
  body header .brand-lockup .brand-name {min-width:0;flex:0 1 auto;gap:3px;align-items:center;max-width:100%;}
  body header .brand-lockup .brand-name img.brand-latin {width:clamp(66px,23vw,145px);max-width:100%;height:auto;}
  body header .brand-lockup .brand-name img.brand-kanji {width:auto;max-width:55%;height:clamp(11px,3.8vw,21px);object-fit:contain;}
  body header .brand-tools,body header.compact .brand-tools {grid-row:2;grid-column:2;align-self:end;justify-self:end;display:flex;flex-wrap:nowrap;align-items:flex-end;gap:0;min-width:0;}
  body header .brand-tools .lang-control {display:none;}
  body header .brand-tools button {width:44px;min-width:44px;height:44px;min-height:44px;padding:0;flex:none;display:inline-flex;align-items:center;justify-content:center;}
  body header .brand-tools button svg {width:22px;height:22px;}
  body header .brand-tools .menu-toggle {display:inline-flex;}
  body header #main-links {grid-row:3;grid-column:1/-1;min-width:0;}
  body header #main-links:not(.is-open) {display:none;}
  body header #main-links.is-open {display:flex;flex-direction:column;align-items:stretch;}
}
@media (max-width:359px) {
  body .announcement {padding-inline:10px;}
  body header .brand-tools button {width:38px;min-width:38px;}
  body header .brand-nav.wrap,body header.compact .brand-nav.wrap {width:calc(100% - 20px);column-gap:6px;}
}
