/* 共通ヘッダー（2026リニューアル）
   Figma 01 共通部品：PC メガメニュー 508:6171 ／ 事例・企業情報・その他 508:6250 ／ SP 閉 508:6968 ／ SP 開 508:7006 */

.l-gh {
  --gh-navy: #1e2855;
  --gh-blue: #1e78eb;
  --gh-line: #c8c8c8;
  position: fixed;
  top: 1.5625rem;
  left: 50%;
  z-index: 9000;
  width: min(82.5rem, calc(100% - 7.5rem));
  transform: translateX(-50%);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  color: var(--gh-navy);
}
.l-gh img { width: auto; max-width: none; }
.l-gh button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.l-gh__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.375rem;
  padding: 0 1rem 0 1.375rem; /* Figma 780:9329：右16・ロゴは左端から22 */
  background: #fff;
  border: 0.75px solid var(--gh-line);
  border-radius: 3.125rem;
}
.l-gh__logo { display: flex; width: 8.125rem; margin-top: 0.375rem; }
.l-gh__logo img { width: 100%; height: auto; }

.l-gh__nav { display: flex; align-items: center; gap: 3.5rem; }
.l-gh__menu { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.l-gh__item { position: relative; }
.l-gh__item:last-child { margin-left: 0; }
.l-gh__parent {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 4.375rem;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--gh-navy);
  white-space: nowrap;
  transition: color .2s;
}
.l-gh__chevron {
  display: block;
  width: 1rem;
  height: 1.0625rem;
  background: url("../images/common/nav/gnav-chevron.svg") center / contain no-repeat;
}
.l-gh__parent--more { width: 1.25rem; justify-content: center; }
.l-gh__parent--more img { width: 1.25rem; height: 0.25rem; }

/* 開いている項目：青字・⊖・下線 */
.l-gh__item.is-open > .l-gh__parent { color: var(--gh-blue); }
.l-gh__item.is-open > .l-gh__parent .l-gh__chevron {
  height: 1rem;
  background-image: url("../images/common/nav/gnav-chevron-open.svg");
}
.l-gh__item.is-open > .l-gh__parent::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0.5rem;
  height: 0.1875rem;
  background: var(--gh-blue);
}
@media (hover: hover) {
  .l-gh__parent:hover { color: var(--gh-blue); }
}

/* ドロップダウン */
.l-gh__drop {
  position: absolute;
  top: calc(100% + 0.9375rem);
  left: 0;
  display: none;
  z-index: 1;
}
.l-gh__drop--end { left: auto; right: -40px; }
.l-gh__item.is-open > .l-gh__drop { display: block; }
.l-gh__drop-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 3rem;
  background: #fff;
  border: 1px solid var(--gh-line);
  border-radius: 1rem;
  white-space: nowrap;
}
.l-gh__drop-inner--list { display: flex; flex-direction: column; gap: 1rem; }
.l-gh__drop-inner.l-gh__drop-inner--list { gap: 1rem; }
.l-gh__groups { display: flex; gap: 5.625rem; }
.l-gh__group { display: flex; flex-direction: column; gap: 1rem; }
.l-gh__group-ttl { margin: 0; font-size: 0.75rem; line-height: 1; letter-spacing: .08em; color: var(--gh-line); }

.l-gh__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 8.75rem;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--gh-navy);
  transition: color .2s;
}
.l-gh__group .l-gh__link { min-width: 11.875rem; }
.l-gh__link--head { justify-content: flex-start; gap: 0.5rem; font-size: 1rem; min-width: 0; }
.l-gh__link--head > span:first-child { width: 7.5rem; }
.l-gh__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 1px solid var(--gh-navy);
  border-radius: 3.125rem;
  transition: background-color .2s, border-color .2s;
}
.l-gh__arrow img { display: block; width: 0.3875rem; height: 0.3125rem; }
@media (hover: hover) {
  .l-gh__link:hover { color: var(--gh-blue); }
  .l-gh__link:hover .l-gh__arrow { border-color: var(--gh-blue); }
}

/* PC ボタン */
.l-gh__btns { display: flex; gap: 0.375rem; }
.l-gh__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.625rem;
  padding: 0 1.5rem;
  border: 1px solid var(--gh-blue);
  border-radius: 3rem;
  font-size: 0.875rem;
  line-height: 1.75rem;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: opacity .2s;
}
.l-gh__btn--line { color: var(--gh-blue); background: #fff; }
.l-gh__btn--fill { color: #fff; background: var(--gh-blue); }
@media (hover: hover) {
  .l-gh__btn:hover { opacity: .75; }
}

.l-gh__burger, .l-gh__sp { display: none; }
/* .l-gh button { font: inherit } が .l-gh__parent の15pxを打ち消していた（ボタン型の項目だけ14pxになっていた） */
.l-gh .l-gh__parent { font-size: 0.9375rem; }

.l-gh a:focus-visible, .l-gh button:focus-visible { outline: 0.125rem solid var(--gh-blue); outline-offset: 0.1875rem; }

/* 中間幅：項目が詰まる幅では間隔を縮める */
@media screen and (max-width: 1200px) {
  .l-gh__nav { gap: 1.75rem; }
  .l-gh__menu { gap: 1.375rem; }
}

/* ---------------- SP ---------------- */
@media screen and (max-width: 768px) {
  .l-gh {
    top: 0;
    left: 0;
    width: 100%;
    transform: none; /* 固定配置のSPメニューが画面全体を基準にするよう、変形を外す */
  }
  .l-gh__bar {
    height: 5rem;
    padding: 0 1.5625rem 0 1.25rem;
    border: 0;
    border-radius: 0;
    background: transparent; /* 本番と同じく、SPはFVの上に透明で重ねる */
  }
  .l-gh__logo { width: 7.5rem; margin-top: 0; }
  .l-gh__nav { display: none; }
  .l-gh__burger { display: flex; width: 1.875rem; height: 1.25rem; }
  .l-gh .l-gh__burger, .l-gh .l-gh__sp-close { box-sizing: content-box; padding: .75rem .4375rem; margin-right: -.4375rem; }
  .l-gh__burger img { width: 1.875rem; height: 1.25rem; }

  .l-gh__sp:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9500;
    overflow-y: auto;
    background: #fff;
    padding: 1.5625rem;
    overscroll-behavior: contain;
  }
  .l-gh__sp-head { display: flex; justify-content: flex-end; height: 1.875rem; }
  .l-gh .l-gh__sp-close { width: 1.875rem; height: 1.25rem; margin-top: -.75rem; }
  .l-gh__sp-close img { width: 1.875rem; height: 1.25rem; }
  .l-gh__sp-nav { display: flex; flex-direction: column; gap: 1.125rem; margin-top: 1.125rem; }
  .l-gh__sp-group { display: flex; flex-direction: column; gap: 0.375rem; }
  .l-gh__sp-group a,
  .l-gh__sp-group p { margin: 0; font-size: 0.875rem; line-height: 1.4rem; color: var(--gh-navy); }
  .l-gh__sp-group .l-gh__sp-ttl { font-size: 1rem; line-height: 1.6rem; color: var(--gh-blue); }
  .l-gh__sp-btns { display: flex; flex-direction: column; gap: 0.75rem; }
  .l-gh__sp-btn {
    display: block;
    padding: 0.75rem;
    border-radius: 1.5rem;
    font-size: 1rem;
    line-height: 1.6rem;
    text-align: center;
  }
  .l-gh__sp-btn--doc { background: #ebf5ff; color: var(--gh-navy); }
  .l-gh__sp-btn--contact { background: var(--gh-blue); color: #fff; }

  body.is-gh-open { overflow: hidden; }
  .l-gh.is-scrolled .l-gh__bar { background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 rgba(30, 40, 85, .06); transition: background-color .2s; }
}

@media (prefers-reduced-motion: reduce) {
  .l-gh * { transition: none !important; }
}

/* 10/13谷「行間が窮屈」：2行になるメニュー（採用コンサルティング・／採用マーケティング支援）だけ行間を広げる */
.l-gh__link > span:first-child:has(br) { line-height: 1.45; }
