/* Shared MOVFLEX masthead geometry only. Original page bodies stay independent. */
body > .header {
  height: 84px !important;
  min-height: 84px !important;
  overflow: visible !important;
}
body > .header .header-inner,
body[data-mf-page] > .header .header-inner,
body[data-mf-page] > .header.mf-has-booking .header-inner {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 155px minmax(0, 1fr) 180px 110px !important;
  grid-template-rows: 84px !important;
  width: calc(100% - 80px) !important;
  max-width: 1440px !important;
  height: 84px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  gap: 0 20px !important;
  align-items: center !important;
  align-content: center !important;
  overflow: visible !important;
  position: relative !important;
}
body > .header .logo {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 155px !important;
  min-width: 0 !important;
  max-width: none !important;
  justify-self: start !important;
  margin: 0 !important;
}
body > .header .logo img,
body[data-mf-page] > .header .logo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}
body > .header .main-nav,
body[data-mf-page] > .header .main-nav {
  display: flex !important;
  visibility: visible !important;
  position: static !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: clamp(12px, 1.2vw, 22px) !important;
  justify-content: center !important;
  align-items: center !important;
  align-self: center !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body > .header .main-nav::-webkit-scrollbar { display: none; }
body > .header .main-nav a,
body[data-mf-page] > .header .main-nav a {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  position: relative !important;
  min-height: 44px !important;
  padding: 10px 0 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
}
body > .header .header-book,
body[data-mf-page] > .header .header-book {
  grid-column: 3 !important;
  grid-row: 1 !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  max-width: 100% !important;
  min-width: 0 !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}
body > .header .mf-language-picker,
body[data-mf-page] > .header .mf-language-picker {
  grid-column: 4 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  margin: 0 !important;
  z-index: 20;
}
@media (max-width: 1450px) and (min-width: 1281px) {
  body > .header .main-nav a,
  body[data-mf-page] > .header .main-nav a { font-size: 11px !important; }
}
@media (max-width: 1280px) {
  body > .header { height: 124px !important; min-height: 124px !important; }
  body > .header .header-inner,
  body[data-mf-page] > .header .header-inner,
  body[data-mf-page] > .header.mf-has-booking .header-inner {
    width: calc(100% - 48px) !important;
    height: 124px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 72px 52px !important;
    gap: 0 !important;
  }
  body > .header .logo { width: 170px !important; }
  body > .header .header-book,
  body[data-mf-page] > .header .header-book { display: none !important; }
  body > .header .mf-language-picker,
  body[data-mf-page] > .header .mf-language-picker { grid-column: 2 !important; }
  body > .header .main-nav,
  body[data-mf-page] > .header .main-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    height: 50px !important;
    gap: 24px !important;
    justify-content: flex-start !important;
    overscroll-behavior-x: contain;
  }
  body > .header .main-nav a,
  body[data-mf-page] > .header .main-nav a { font-size: 11px !important; }
}
@media (max-width: 640px) {
  body > .header { height: 114px !important; min-height: 114px !important; }
  body > .header .header-inner,
  body[data-mf-page] > .header .header-inner,
  body[data-mf-page] > .header.mf-has-booking .header-inner {
    width: calc(100% - 40px) !important;
    height: 114px !important;
    grid-template-rows: 64px 50px !important;
  }
  body > .header .logo { width: 170px !important; }
  body > .header .main-nav a,
  body[data-mf-page] > .header .main-nav a { font-size: 10.5px !important; }
}
@media (max-width: 360px) {
  body > .header .header-inner,
  body[data-mf-page] > .header .header-inner,
  body[data-mf-page] > .header.mf-has-booking .header-inner { width: calc(100% - 32px) !important; }
  body > .header .logo { width: 150px !important; }
  body > .header .main-nav,
  body[data-mf-page] > .header .main-nav { gap: 22px !important; }
}

/* Partner logos: preserve the requested uninterrupted one-line loop. */
.partner-strip .partner-marquee { min-width:0; overflow:hidden !important; }
.partner-strip .partner-marks { display:flex !important; flex-flow:row nowrap !important; width:max-content !important; animation:partner-logo-flow 46s linear infinite !important; animation-play-state:running !important; }
.partner-strip .logo-sequence, .partner-strip .logo-sequence[aria-hidden="true"] { display:flex !important; flex-flow:row nowrap !important; width:max-content !important; flex:0 0 auto !important; }
.partner-strip .logo-motion-toggle { display:none !important; }

@media (max-width: 640px) {
  html[lang="ja"] main .hero > *,
  html[lang="ja"] main .brand-intro > *,
  html[lang="ja"] main .principle-layout > *,
  html[lang="es"] main .hero > * { min-width: 0 !important; max-width: 100% !important; }
  html[lang="ja"] .copy-phrase { display: inline !important; word-break: normal !important; overflow-wrap: anywhere !important; }
  html[lang="es"] .hero h1 em { max-width: 100%; overflow-wrap: anywhere; }
  html[lang="ja"] .footer-top nav { grid-template-columns: repeat(2,minmax(0,1fr)) !important; min-width: 0; }
  html[lang="ja"] .footer-top nav a { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
}

@media (max-width: 640px) {
  html[lang="ja"] .footer-top nav { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html[lang="ja"] .footer-top nav a { min-width: 0 !important; max-width: 100%; }
}
@media (max-width: 360px) {
  html[lang="es"] .hero h1, html[lang="es"] .hero h1 em { font-size: 28px !important; }
}

@media (max-width: 640px) {
  html[lang="ja"] .mf-footer-nav,
  html[lang="ja"] .mf-footer-contact { min-width: 0 !important; }
  html[lang="ja"] .mf-footer-contact > a { max-width: 100%; min-width: 0; white-space: normal !important; word-break: normal !important; overflow-wrap: anywhere !important; flex-wrap: wrap; }
}
