/* Shared header layout for all corporate pages. */
#l-header__inner { flex-direction: row-reverse; }
#l-header-trigger { margin-left: 30px; margin-right: 0; }
#l-header-logo {
  width: 257px;
  padding-top: 20px;
  padding-left: 0;
  padding-right: 30px;
}
#l-header-logo img.color,
#l-header-logo img.white {
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 750px) {
  #l-header-trigger { margin-left: 20px; margin-right: 0; }
  #l-header-logo {
    width: 190px;
    padding-top: 16px;
    padding-left: 0;
    padding-right: 20px;
  }
}

/* Retire navigation and promotions belonging to the source site. */
#c-android-banner, #l-header-navi-contents-subnavi,
#l-footer-download, #l-footer-sns, .l-footer-box__top, .l-footer-box__middle,
a[hidden] { display: none !important; }

:root {
  --brand-base: #fffdf8;
  --brand-primary: #fabf02;
  --brand-soft: #fff3a5;
  --brand-accent: #ff8328;
}
html, body { background-color: var(--brand-base); }
#top .contact-card__button, #about .contact-card__button {
  background-color: var(--brand-accent);
  color: #171b1d;
}
.contact-card__button:hover { box-shadow: 0 0 0 3px var(--brand-primary); }
.contact-card__button:focus-visible { outline: 3px solid #171b1d; outline-offset: 4px; }
.inquiry :is(input, select, textarea) { background-color: var(--brand-base); }
.inquiry :is(input, select, textarea):focus-visible { outline-color: var(--brand-accent); }

/* No blocking loading overlay or progress bar. */
#l-splash, .pace { display: none !important; }

/* Keep the header visible from the first paint. */
#l-header { transform: none !important; opacity: 1 !important; visibility: visible !important; }

/* The hero navigation is also the shared collapsible menu. */
#l-header-navi { display: none !important; }
#site-menu.site-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: 29.54vw;
  height: 100dvh;
  overflow-y: auto;
  background: var(--brand-primary);
  visibility: visible;
}
#site-menu[hidden] { display: none !important; }
#site-menu .fv-nav__list { display: flex; flex-direction: column; gap: clamp(12px, 3vh, 32px); padding: 92px clamp(18px, 2vw, 40px) 32px; margin: 0; list-style: none; }
#site-menu a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px clamp(10px, 1.1vw, 22px); padding: 16px 0; color: #fff; font-weight: 700; line-height: 1.6; }
#site-menu .en { font-family: Lato, Arial, sans-serif; font-size: clamp(23px, 2.8vw, 48px); font-weight: 900; letter-spacing: .025em; line-height: 1.3; }
#site-menu .jp { font-size: clamp(12px, .78vw, 14px); white-space: nowrap; }
#site-menu a:focus-visible { outline: 2px solid #171b1d; outline-offset: 4px; }
@media (max-width: 750px) {
  #site-menu.site-menu { width: 100%; }
  #site-menu .fv-nav__list { padding: 100px 24px 32px; gap: 24px; }
  #site-menu .en { font-size: clamp(28px, 8vw, 44px); }
  #site-menu .jp { font-size: 13px; }
}

/* Balance the menu as two aligned columns within the available height. */
#site-menu .fv-nav__list {
  box-sizing: border-box;
  min-height: 100%;
  justify-content: center;
  gap: clamp(20px, 4vh, 44px);
  padding: 100px clamp(20px, 2vw, 40px) 76px;
}
#site-menu a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  padding: 12px 0;
}
#site-menu .en { font-size: clamp(22px, 2.45vw, 42px); }
#site-menu .jp { width: 8em; font-size: clamp(11px, .85vw, 14px); line-height: 1.7; }
@media (max-width: 750px) {
  #site-menu .fv-nav__list {
    padding: 100px 28px 64px;
    gap: clamp(20px, 4vh, 40px);
  }
  #site-menu .en { font-size: clamp(25px, 7.4vw, 42px); }
  #site-menu .jp { width: 8em; font-size: 12px; }
  #site-menu a { column-gap: 14px; }
}
@media (max-height: 560px) {
  #site-menu .fv-nav__list { justify-content: flex-start; gap: 8px; padding-top: 80px; padding-bottom: 28px; }
}

/* A clearly labelled menu control, balanced with the logo. */
#l-header #l-header-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 124px;
  height: 52px;
  margin: 24px 0 0 30px;
  border: 1px solid rgba(23, 27, 29, .16);
  border-radius: 26px;
  background: var(--brand-base);
  color: #171b1d;
  box-shadow: 0 3px 14px rgba(23, 27, 29, .1);
  cursor: pointer;
}
#l-header #l-header-trigger__inner { display: none; }
#l-header-trigger::before {
  content: '';
  width: 18px;
  height: 12px;
  background: linear-gradient(currentColor,currentColor) left top / 18px 2px no-repeat,
              linear-gradient(currentColor,currentColor) left center / 18px 2px no-repeat,
              linear-gradient(currentColor,currentColor) left bottom / 18px 2px no-repeat;
}
#l-header-trigger::after { content: 'MENU'; font: 700 13px/1 Arial, sans-serif; letter-spacing: .08em; }
#l-header-trigger[aria-expanded="true"]::before {
  height: 18px;
  background: linear-gradient(45deg, transparent 45%, currentColor 46%, currentColor 54%, transparent 55%),
              linear-gradient(-45deg, transparent 45%, currentColor 46%, currentColor 54%, transparent 55%);
}
#l-header-trigger[aria-expanded="true"]::after { content: 'CLOSE'; }
#l-header #l-header-trigger:hover { background-color: var(--brand-soft); }
#l-header #l-header-trigger:focus-visible { outline: 3px solid #171b1d; outline-offset: 4px; }
@media (max-width: 750px) {
  #l-header #l-header-trigger { width: 108px; height: 46px; margin: 18px 0 0 20px; gap: 10px; }
}

/* Retired app-download control; keep its hooks for the legacy script. */
#c-sidebtn { display: none !important; }

/* Let hero artwork remain visible beneath the fixed header. */
#l-header,
#l-header.is-white,
#l-header__inner {
  background: transparent !important;
}

/* Keep aircraft decorations still. */
.type-sky-airplane .bg-layer__illust,
.type-sky-airplane .bg-layer__illust > div,
.static-airplane {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Restore the warm footer surface and remove the old promotional spacer. */
body #l-footer {
  background: var(--brand-primary);
  z-index: 1;
  margin-top: 120px;
  min-height: 220px;
  height: auto;
}
@media (max-width: 750px) {
  body #l-footer { margin-top: 64px; }
}

/* Shared five-page footer. */
body #l-footer.site-footer {
  background: var(--brand-soft);
  padding: 56px 32px 28px;
  min-height: 0;
  height: auto;
}
body #l-footer.site-footer #l-footer__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0;
  height: auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px 64px;
  align-items: center;
}
.site-footer__logo img { display: block; width: 220px; max-width: 100%; height: auto; }
.site-footer__nav { display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap; }
.site-footer__nav a { color: #171b1d; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.site-footer__nav a span:first-child { font-size: 15px; font-weight: 800; letter-spacing: .06em; }
.site-footer__nav a span:last-child { font-size: 12px; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline: 2px solid #171b1d; outline-offset: 5px; }
body #l-footer.site-footer #l-footer-copyright { position: static; grid-column: 1 / -1; text-align: center; margin: 0; padding-top: 24px; border-top: 1px solid rgba(23,27,29,.15); color: #171b1d; font-size: 12px; transform: none; }
body #l-footer.site-footer #l-footer-pagetop { position: absolute; right: 24px; top: -22px; bottom: auto; width: 44px; height: 44px; border-radius: 50%; background: #fffdf8; border: 1px solid #171b1d; color: #171b1d; display: grid; place-items: center; font-size: 22px; cursor: pointer; }
@media (max-width: 750px) {
 body #l-footer.site-footer { padding: 40px 24px 24px; }
 body #l-footer.site-footer #l-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
 .site-footer__logo img { width: 180px; }
 .site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* Use a single modest gap before the footer. */
#top #l-footer.site-footer,
#about #l-footer.site-footer { margin-top: 64px; }
#top #p-contact { margin-bottom: 0; }
@media (max-width: 750px) {
  #top #l-footer.site-footer,
  #about #l-footer.site-footer { margin-top: 40px; }
}

#top .contact-card__button,
#about .contact-card__button,
#top #p-business-illust .recruit-center-button {
  font-weight: 800;
}

/* The global reset assigns spans weight 400; inherit the CTA weight. */
#top .contact-card__button > span,
#about .contact-card__button > span,
#top #p-business-illust .recruit-center-button > span {
  font-weight: inherit;
}

/* Match READ MORE links to the orange contact buttons. */
body .c-btn.read-more-button { width: 240px; max-width: 100%; }
body .c-btn.read-more-button > a {
  background: var(--brand-accent);
  color: #171b1d;
  border-radius: 12px;
  padding: 20px 24px;
  min-height: 72px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
body .c-btn.read-more-button .c-btn-content { padding: 0; gap: 24px; flex-wrap: nowrap; }
body .c-btn.read-more-button .c-btn-content-text {
  padding: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: #171b1d;
  transform: none;
}
body .c-btn.read-more-button .c-btn-content-arrow { width: 20px; padding: 0; }
body .c-btn.read-more-button .c-btn-content-arrow svg { width: 20px; height: 10px; }
body .c-btn.read-more-button .c-btn-content-arrow path { stroke: #171b1d; }
body .c-btn.read-more-button .c-btn-line { display: none; }
body .c-btn.read-more-button > a:hover { box-shadow: 0 0 0 3px var(--brand-primary); }
body .c-btn.read-more-button > a:focus-visible { outline: 3px solid #171b1d; outline-offset: 4px; }
@media (max-width: 750px) {
  body .c-btn.read-more-button > a { min-height: 64px; padding: 16px 20px; }
  body .c-btn.read-more-button .c-btn-content-text { font-size: 14px; }
}

/* Unified yellow CTA buttons. */
#top .contact-card__button,
#about .contact-card__button,
#top #p-business-illust .recruit-center-button,
body .c-btn.read-more-button > a {
  background: var(--brand-primary);
  font-weight: 700;
}
body .c-btn.read-more-button .c-btn-content-text { font-weight: 700; }
