/* Goldratt Japan採用サイト共通Shell（Design System: NAVIGATION §11）
   TOP / 子ページ / アーカイブからの直URLすべてに同じヘッダー・フッターを使う。
   旧css/site.cssのgnav/site-footer、css/recruit-base.cssのgh/gfと衝突しない接頭辞gs-。
   shell HTMLの正本: scripts/site-shell/{header,footer}.html */
:root { --gs-header-height: 76px; --gs-navy: #0B1F33; --gs-navy-deep: #061522; --gs-gold: #D8B46A; --gs-muted: #5B6879; --gs-line: #D6DCE4; }
html { scroll-padding-top: calc(var(--gs-header-height) + 16px); }
.gs-skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 1100;
  padding: 11px 18px; background: var(--gs-navy); color: #fff;
  border-radius: 3px; font: 700 14px/1.4 "Noto Sans JP", sans-serif; text-decoration: none;
}
.gs-skip-link:focus { top: 10px; outline: 3px solid var(--gs-gold); outline-offset: 2px; }
.gs-header, .gs-footer { font-family: "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif; box-sizing: border-box; }
.gs-header *, .gs-header *::before, .gs-header *::after,
.gs-footer *, .gs-footer *::before, .gs-footer *::after { box-sizing: border-box; }
.gs-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--gs-header-height); background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--gs-line); color: var(--gs-navy);
}
.gs-header a, .gs-footer a { color: inherit; text-decoration: none; }
.gs-header__inner {
  max-width: 1400px; height: 100%; margin-inline: auto;
  padding-inline: clamp(20px, 2.7vw, 40px);
  display: flex; align-items: center; gap: 20px;
}
.gs-header__logo, .gs-footer__logo { display: inline-flex; flex: none; align-items: center; }
.gs-header__logo { min-width: 132px; min-height: 44px; }
.gs-header__logo img { width: 132px; height: auto; display: block; max-width: none; }
.gs-header__nav { margin-left: auto; min-width: 0; }
.gs-header__nav-list, .gs-header__mobile-list, .gs-footer__nav { list-style: none; margin: 0; padding: 0; }
.gs-header__nav-list { display: flex; align-items: center; gap: clamp(8px, 1vw, 16px); }
.gs-header__nav-link {
  display: inline-flex; align-items: center; min-height: 44px;
  white-space: nowrap; padding-top: 2px;
  color: var(--gs-navy); font-size: clamp(12px, .92vw, 14px);
  font-weight: 700; line-height: 1.4;
  border-bottom: 2px solid transparent;
}
.gs-header__nav-link:hover { border-bottom-color: var(--gs-line); }
.gs-header__nav-link[aria-current="page"] { border-bottom-color: var(--gs-gold); }
.gs-header__cta, .gs-header__mobile-cta {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 13px; flex: none; min-height: 44px;
  background: var(--gs-navy); color: #fff !important;
  border-radius: 6px; font-size: 13px; font-weight: 700;
  line-height: 1.35; padding: 8px 10px 8px 16px;
}
.gs-header__cta:hover, .gs-header__mobile-cta:hover { background: var(--gs-navy-deep); }
.gs-header__cta-arrow { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gs-gold); color: var(--gs-navy); font-size: 19px; font-weight: 400; line-height: 1; }
.gs-header__cta-label--compact { display: none; }
.gs-header__toggle { display: none; }
.gs-header__mobile { display: none; }
.gs-header-spacer { height: var(--gs-header-height); }
/* 旧site.css版の本文はheaderが固定されていたため、すでにその高さを確保している。 */
body[class*="page-"] .gs-header-spacer { display: none; }

.gs-header a:focus-visible, .gs-footer a:focus-visible, .gs-header__toggle:focus-visible {
  outline: 3px solid var(--gs-gold); outline-offset: 3px; border-radius: 2px;
}

.gs-footer { position: relative; background: var(--gs-navy-deep); color: #fff; padding: 72px 0 36px; }
.gs-footer__inner { width: 100%; max-width: 1280px; padding-inline: 40px; margin-inline: auto; }
.gs-footer__top { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.gs-footer__logo img { width: 140px; height: auto; max-width: none; display: block; }
.gs-footer__nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 32px; }
.gs-footer__nav-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 5px 0; color: rgba(255,255,255,.9);
  font-size: 14px; font-weight: 700; line-height: 1.6;
}
.gs-footer__nav-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gs-gold); }
.gs-footer__nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gs-gold); text-underline-offset: 6px; }
.gs-footer__external { color: rgba(255,255,255,.8) !important; }
.gs-footer__external span { color: var(--gs-gold); font-size: 15px; }
.gs-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: last baseline; gap: 20px 40px;
  margin: clamp(56px, 6vw, 88px) 0 0;
}
.gs-footer__copyright {
  margin: 0 0 0 auto; color: rgba(255,255,255,.56); font-size: 12px; line-height: 1.65; text-align: right;
}
/* 採用コピーを文節単位で折り返す */
.gs-footer__statement {
  display: flex; flex: 1 1 7em; flex-wrap: wrap; column-gap: .12em; row-gap: .1em;
  margin: 0; color: #fff; font-size: clamp(50px, 6.7vw, 96px);
  font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
  font-feature-settings: "palt";
}
.gs-footer__statement > span { white-space: nowrap; }

@media (max-width: 1220px) {
  .gs-header__nav { display: none; }
  /* Left navigation, brand identity, and direct interview CTA. */
  .gs-header__inner { position: relative; gap: 16px; }
  /* 左右の操作要素の幅とは独立して、ロゴをヘッダー中央に固定する。 */
  .gs-header__logo {
    position: absolute; left: 50%; top: 50%; z-index: 1;
    margin: 0; transform: translate(-50%, -50%);
  }
  .gs-header__cta {
    display: inline-flex; min-height: 44px; margin-left: auto; padding: 10px 14px;
    position: relative; z-index: 2;
    font-size: 13px; line-height: 1.3; white-space: nowrap;
  }
  .gs-header__cta-label--desktop, .gs-header__cta-arrow { display: none; }
  .gs-header__cta-label--compact { display: inline; }
  .gs-header__toggle {
    display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center;
    width: 44px; min-height: 44px; padding: 0; border: none; background: transparent;
    color: var(--gs-navy); cursor: pointer;
  }
  .gs-header__toggle-mark { display: grid; gap: 5px; }
  .gs-header__toggle-mark i { display: block; width: 23px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; transform-origin: center; }
  .gs-header__toggle[aria-expanded="true"] .gs-header__toggle-mark i:first-child { transform: translateY(7px) rotate(45deg); }
  .gs-header__toggle[aria-expanded="true"] .gs-header__toggle-mark i:nth-child(2) { opacity: 0; }
  .gs-header__toggle[aria-expanded="true"] .gs-header__toggle-mark i:last-child { transform: translateY(-7px) rotate(-45deg); }
  .gs-header__mobile:not([hidden]) {
    display: block; position: fixed; top: var(--gs-header-height);
    bottom: 0; left: 0; right: 0; z-index: 999;
    padding: 14px clamp(20px, 5vw, 44px) 44px;
    overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-top: 1px solid var(--gs-line);
    transform: translate3d(-100%, 0, 0);
    transition: transform .24s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
  }
  .gs-header__mobile.is-open {
    transform: translate3d(0, 0, 0);
    transition-duration: .32s;
    transition-timing-function: cubic-bezier(.22, 1, .36, 1);
  }
  .gs-header__mobile:not(.is-open) { pointer-events: none; }
  .gs-header__mobile[hidden] { display: none !important; }
  .gs-header__mobile nav, .gs-header__mobile-cta { max-width: 720px; margin-inline: auto; }
  .gs-header__mobile-link {
    display: flex; align-items: center; min-height: 56px;
    padding: 12px 0; border-bottom: 1px solid var(--gs-line);
    font-size: 17px; font-weight: 700; line-height: 1.5;
  }
  .gs-header__mobile-link[aria-current="page"] { border-bottom-color: var(--gs-gold); color: var(--gs-navy); }
  .gs-header__mobile-cta { min-height: 56px; margin-top: 30px; font-size: 16px; padding: 15px 22px; }
  .gs-header__mobile-cta span { color: var(--gs-gold); font-size: 23px; line-height: 1; }
  body.gs-menu-open { overflow: hidden !important; }
}
@media (max-width: 760px) {
  :root { --gs-header-height: 64px; }
  .gs-header__inner { padding-inline: 16px; gap: 8px; }
  .gs-header__logo { min-width: 0; }
  .gs-header__logo img { width: 100px; }
  .gs-header__cta { padding-inline: 12px; font-size: 13px; }
  .gs-footer { padding: 56px 0 28px; }
  .gs-footer__inner { padding-inline: 20px; }
  .gs-footer__top { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .gs-footer__nav { gap: 1px 15px; }
  .gs-footer__nav-link { font-size: 13px; min-height: 44px; }
  .gs-footer__bottom { margin-top: 44px; gap: 18px; }
  .gs-footer__copyright { margin: 0; text-align: left; }
  .gs-footer__statement { flex-basis: 100%; font-size: clamp(32px, 8vw, 52px); }
}
@media (max-width: 460px) {
  /* CTA全文を維持しつつ、中央ロゴと接触しない2行組みにする。 */
  .gs-header__cta { min-height: 48px; padding: 6px 10px; font-size: 12.5px; white-space: normal; }
  .gs-header__cta-label--compact { display: flex; flex-direction: column; align-items: center; line-height: 1.35; }
}
@media (max-width: 375px) {
  .gs-header__logo img { width: 90px; }
}
@media (max-width: 359px) {
  .gs-header__inner { padding-inline: 12px; gap: 6px; }
  .gs-header__logo img { width: 84px; }
  .gs-header__cta { padding-inline: 8px; font-size: 12px; }
}
@media (max-width: 900px) {
  /* 旧mobile-entry固定バーを廃止したページに残る空きだけ解消する。 */
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gs-header__toggle-mark i { transition: none; }
  .gs-header__mobile { transition: none !important; }
}
