@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

/* PCヘッダー
   ロゴ左・CTA右は通常フロー。ナビはヘッダー幅の50%（画面中央）に絶対配置。
   SPは触らない。 */

header.header .global-nav a,
header.header .header-cta-btn,
header.header .header-cta-btn span,
#oy-ham .oyh-nav a,
#oy-ham .oyh-name {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif !important;
  font-feature-settings: "palt" 0, "pkna" 0 !important;
  font-kerning: none !important;
}

header.header .hero-title {
  font-family: "Zen Old Mincho", serif !important;
}

@media (min-width: 769px) {
  html body header.header,
  html body.page-index header.header,
  html body.page-recruit header.header,
  html body.page-contact header.header,
  html body.page-news header.header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
    grid-template-areas: unset !important;
    height: 72px !important;
    padding: 0 40px !important;
    gap: 0 !important;
    background: #fff !important;
    position: sticky !important;
    top: 0 !important;
    overflow: visible !important;
    border-bottom: 2px solid var(--accent, #910f0f) !important;
    box-shadow: none !important;
  }

  header.header > *:not(.global-nav) {
    transform: none !important;
  }

  header.header .brand-link {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    min-width: auto !important;
    position: relative !important;
    z-index: 2 !important;
    text-decoration: none !important;
  }

  header.header .hero-logo {
    height: 42px !important;
    width: auto !important;
    max-width: none !important;
    flex-shrink: 0 !important;
    transition: opacity 0.3s ease !important;
  }

  header.header .hero-title {
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    color: #111 !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease !important;
  }

  header.header .brand-link:hover .hero-logo,
  header.header .brand-link:hover .hero-title,
  header.header .brand-link:focus-visible .hero-logo,
  header.header .brand-link:focus-visible .hero-title {
    text-decoration: none !important;
    text-underline-offset: 0 !important;
    opacity: 0.55 !important;
    filter: none !important;
    text-shadow: none !important;
    color: #111 !important;
  }

  header.header nav.global-nav {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    height: auto !important;
    width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    /* 事業内容〜採用情報の間がヘッダー中央 */
    transform: translate(calc(-50% - 18px), -50%) !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    z-index: 1 !important;
  }

  header.header nav.global-nav ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 48px !important;
    width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-shrink: 0 !important;
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
  }

  header.header nav.global-nav li {
    position: static !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  header.header nav.global-nav a {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    background: transparent !important;
    overflow: visible !important;
    color: #111 !important;
    min-width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
  }

  header.header nav.global-nav li:last-child {
    margin-left: 12px !important;
  }

  header.header .header-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    margin: 0 0 0 auto !important;
    min-width: auto !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 2 !important;
  }

  header.header > .header-cta-btn {
    margin-left: auto !important;
  }

  header.header > .header-cta-btn,
  header.header .header-cta-btn {
    flex: 0 0 auto !important;
    margin: 0 !important;
    position: static !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
  }

  header.header > .hero-icons,
  header.header .hero-icons {
    display: flex !important;
    flex-direction: row !important;
    flex-shrink: 0 !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  header.header .hero-icons .icon-circle {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  html body header.header,
  html body.page-index header.header,
  html body.page-recruit header.header,
  html body.page-contact header.header,
  html body.page-news header.header {
    padding: 0 24px !important;
  }

  header.header nav.global-nav ul {
    gap: 32px !important;
  }

  header.header nav.global-nav a {
    font-size: 15px !important;
  }

  header.header nav.global-nav li:last-child {
    margin-left: 8px !important;
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  html body header.header,
  html body.page-index header.header,
  html body.page-recruit header.header,
  html body.page-contact header.header,
  html body.page-news header.header {
    padding: 0 16px !important;
  }

  header.header nav.global-nav ul {
    gap: 12px !important;
  }

  header.header nav.global-nav a {
    font-size: 14px !important;
  }

  header.header nav.global-nav li:last-child {
    margin-left: 6px !important;
  }

  header.header .header-actions {
    gap: 8px !important;
  }

  header.header .hero-icons .icon-circle {
    width: 32px !important;
    height: 32px !important;
  }
}
