/* LPとお問い合わせで共用するナビゲーション。 */
.fes-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

.fes [id] {
  scroll-margin-top: 120px;
}

@media(min-width:768px) {
  .fes-landing > .fes-header {
    position: fixed;
    top: 0;
    z-index: 100;
  }
}

.fes-menu-toggle[hidden] {
  display: none;
}

.fes-header-nav .fes-menu-entry {
  display: none;
}

.fes-header-nav a:focus-visible,.fes-menu-toggle:focus-visible {
  outline: 2px solid #079fec;
  outline-offset: 4px;
}

@media(min-width:1400px) {
  .fes-header {
    display: flex;
    gap: 20px;
  }

  .fes-header .fes-header-nav {
    display: flex;
    margin-left: auto;
    gap: 14px;
    overflow: visible;
  }

  .fes-header-nav a {
    font-size: 13px;
  }
}

@media(max-width:1399px) {
  .fes-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    max-height: 100dvh;
    overflow-y: auto;
  }

  .fes-header .fes-brand {
    margin-right: auto;
  }

  .fes-header .fes-cta-small {
    order: 2;
  }

  /* 初期描画からボタンの領域を確保し、JS実行前後の高さを揃える。 */
  .fes-menu-toggle,
  .fes-menu-toggle[hidden] {
    order: 3;
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 11px 8px;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .fes-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #111;
    transition: transform .15s ease,opacity .15s ease;
  }

  .fes-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(10px) rotate(45deg);
  }

  .fes-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .fes-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-10px) rotate(-45deg);
  }

  .fes-header .fes-header-nav {
    order: 4;
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: none;
    gap: 0;
    padding: 10px 0 0;
    margin: 0;
    overflow: visible;
  }

  .fes-header .fes-header-nav.is-open {
    display: flex;
  }

  .fes-header-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid #e6f1f6;
    font-size: 15px;
  }

  .fes-header-nav .fes-menu-entry {
    display: flex;
    justify-content: center;
    text-align: center;
    background: #e74700;
    color: #fff;
    border: 0;
    border-radius: 3px;
    margin-top: 14px;
    padding: 15px 18px;
  }
}

@media(max-width:479px) {
  .fes-header .fes-cta-small {
    display: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  .fes-menu-toggle span {
    transition: none;
  }
}

.fes-header .fes-brand {
  display: block;
  flex: none;
  line-height: 0;
}

.fes-header .fes-brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media(max-width:767px) {
  .fes-header .fes-brand img {
    width: 145px;
  }
}
