/* The wrapper has no layout box in the existing mobile footer. */
#footer.iab-recruitFooter .iab-footer-relatedLinks {
  display: contents;
}

@media screen and (min-width: 838px) {
  #footer.iab-recruitFooter {
    position: relative;
    isolation: isolate;
  }

  /* Match the main area's minimum width without resizing the legal links. */
  #footer.iab-recruitFooter::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: max(100%, 1080px);
    background: inherit;
    pointer-events: none;
    z-index: -1;
  }

  #footer.iab-recruitFooter .footer-top-area {
    width: calc(max(100%, 1080px) - 17.5rem);
    margin-inline: 8.75rem;
  }

  #footer.iab-recruitFooter .footer-top-area .footer-menu-area .footer-menu-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
  }

  #footer.iab-recruitFooter .footer-top-area .footer-menu-area .footer-menu-list > li {
    flex: 0 1 auto;
    min-width: min-content;
    margin: 0;
    font-size: 0.875rem;
    text-align: left;
  }

  #footer.iab-recruitFooter .footer-top-area .footer-menu-area .footer-menu-list > li > a {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 2.5rem;
    padding-block: 0;
    white-space: nowrap;
  }

  #footer.iab-recruitFooter .footer-top-area .footer-menu-area .footer-menu-list > li .footer-menu-list_second {
    margin-top: 1.25rem;
    font-size: 0.625rem;
  }

  #footer.iab-recruitFooter .footer-top-area .footer-menu-area .footer-menu-list > li .footer-menu-list_second > li {
    text-align: left;
    overflow-wrap: anywhere;
  }

  #footer.iab-recruitFooter .iab-footer-relatedLinks {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 3rem;
  }

  #footer.iab-recruitFooter .footer-top-area .footer-omron-top-link {
    width: auto;
    height: 2.25rem;
  }

  #footer.iab-recruitFooter .footer-top-area .footer-omron-top-link a {
    font-size: 0.6875rem;
  }
}
