/* The approved PNG stays intact; the link crops only its transparent canvas. */
:is(.l-header, .l-fixHeader) .c-headLogo__link {
  position: relative;
  display: block;
  width: clamp(260px, 18.5vw, 340px) !important;
  height: auto !important;
  aspect-ratio: 2031 / 295;
  overflow: hidden;
}
:is(.l-header, .l-fixHeader) .c-headLogo__link .c-headLogo__img {
  position: absolute;
  width: 106.9424% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  left: -3.29887%;
  top: -71.18644%;
  margin: 0;
  object-fit: fill;
}
:is(.l-header, .l-fixHeader) .c-headLogo {
  margin: 0;
  line-height: 1;
}
:is(.l-header__logo, .l-fixHeader__logo) {
  flex-shrink: 0;
}
.l-header .l-header__inner,
.l-fixHeader .l-fixHeader__inner {
  max-width: 1600px;
}
:is(.l-header, .l-fixHeader) .c-headLogo__link:focus-visible {
  outline: 2px solid #493e32;
  outline-offset: 5px;
}
@media (min-width: 1360px) and (max-width: 1535px) {
  :is(.l-header, .l-fixHeader) .c-gnav > li > a {
    padding-inline: 8px;
    font-size: 14px;
  }
}
/* Keep all seven links visible on smaller desktop viewports at 100% zoom. */
@media (min-width: 1024px) and (max-width: 1359px) {
  .l-header .l-header__inner,
  .l-fixHeader .l-fixHeader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 12px 16px 0;
    gap: 0;
  }
  .l-fixHeader .l-fixHeader__inner {
    padding-top: 8px;
  }
  :is(.l-header__logo, .l-fixHeader__logo) {
    flex: none !important;
    order: 0;
    padding: 0 !important;
    margin: 0 !important;
  }
  .l-header .c-headLogo__link {
    width: 280px !important;
  }
  .l-fixHeader .c-headLogo__link {
    width: 240px !important;
  }
  .l-header .l-header__gnav,
  .l-fixHeader .l-fixHeader__gnav {
    display: block !important;
    order: 1;
    flex: none;
    width: 100%;
    margin: 8px 0 0 !important;
  }
  .l-fixHeader {
    display: block !important;
  }
  :is(.l-header, .l-fixHeader) .c-gnav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    min-width: 0;
  }
  :is(.l-header, .l-fixHeader) .c-gnav > li > a {
    padding: 8px 6px;
    min-height: 42px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
  }
  :is(.l-header, .l-fixHeader) .ritari-mega-toggle {
    width: 24px;
    font-size: 18px;
  }
  :is(.l-header, .l-fixHeader) .ritari-mega-panel {
    top: 100%;
  }
  .l-header :is(.l-header__menuBtn, .l-header__customBtn).sp_ {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  html[data-loaded="true"] #sp_menu.p-spMenu {
    display: block !important;
  }
  #sp_menu .p-spMenu__inner {
    width: min(88vw, 420px);
  }
  .l-header .l-header__gnav,
  .l-fixHeader {
    display: none !important;
  }
  .l-header .l-header__menuBtn.sp_,
  .l-header .l-header__customBtn.sp_ {
    display: block !important;
    flex-shrink: 0;
  }
  .l-header .l-header__inner {
    justify-content: space-between;
    min-height: 72px;
    padding-inline: 16px;
    gap: 6px;
  }
  .l-header .l-header__logo {
    padding-block: 12px;
    order: 1;
    flex: 1 1 0;
    min-width: 0;
  }
  .l-header .l-header__menuBtn {
    order: 0;
  }
  .l-header .l-header__customBtn {
    order: 2;
  }
  .l-header .c-headLogo {
    width: 100%;
  }
  .l-header .c-headLogo__link {
    width: 100% !important;
    max-width: 280px;
    margin-inline: auto;
  }
  .l-header :is(.l-header__menuBtn, .l-header__customBtn) .c-iconBtn {
    width: 44px;
    height: 44px;
  }
}
