/* =========================================================
   ヘッダー：左上ロゴ＋右上の白いメニューカード
   ========================================================= */
.gh-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  height: 0;
}

.gh-header__logo {
  position: absolute;
  top: 24px;
  left: 33px;
  display: block;
  width: 184px;
}

.gh-header__logo img {
  display: block;
  width: 100%;
}

.gh-nav {
  position: fixed;
  top: 28px;
  right: 25px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.gh-nav__card {
  width: 135px;
  padding: 14px 9px 9px;
  background: var(--gh-white);
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

/* スクロール後：白い背景の上でも浮いて見えるように影を強める */
.is-scrolled .gh-nav__card {
  box-shadow: 0 8px 28px rgba(13, 100, 169, 0.22);
}

.gh-nav__list li + li {
  margin-top: 11px;
}

.gh-nav__list a {
  position: relative;
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  color: var(--gh-cyan);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* ホバー：左に小さな丸が出て、文字が右へ少しずれる */
.gh-nav__list a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-4px, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gh-nav__list a:hover,
.gh-nav__list a:focus-visible {
  color: var(--gh-blue);
  transform: translateX(5px);
}

.gh-nav__list a:hover::before,
.gh-nav__list a:focus-visible::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.gh-nav__actions {
  margin-top: 16px;
}

.gh-nav__btn {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gh-nav__btn--outline:hover,
.gh-nav__btn--outline:focus-visible {
  color: var(--gh-white);
  background: var(--gh-cyan);
}

.gh-nav__btn--fill:hover,
.gh-nav__btn--fill:focus-visible {
  background: var(--gh-blue);
  border-color: var(--gh-blue);
}

.gh-nav__btn--outline {
  padding: 8px 0;
  color: var(--gh-cyan);
  border: 2px solid var(--gh-cyan);
  border-bottom: 0;
}

.gh-nav__btn--fill {
  padding: 7px 0;
  color: var(--gh-white) !important;
  background: var(--gh-cyan);
  border: 2px solid var(--gh-cyan);
}

.gh-nav__caption {
  writing-mode: vertical-rl;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gh-white);
  transition: opacity 0.3s ease;
}

/* 白いセクションの上で読めなくなるので、スクロール後は隠す */
.is-scrolled .gh-nav__caption {
  opacity: 0;
}

.gh-menu-btn {
  display: none;
}

/* ---------------------------------------------------------
   PC：スクロール後は6つのリンクを「MENU」に畳む
   採用情報／お問い合わせは常に表示（先方確認済みの要望のため）
   --------------------------------------------------------- */
.gh-nav__toggle {
  display: none;
}

@media (min-width: 768px) {
  .gh-nav__toggle {
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 2px 0 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 16px;
    letter-spacing: 0.12em;
    color: var(--gh-cyan);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .gh-nav__toggle:hover,
  .gh-nav__toggle:focus-visible {
    color: var(--gh-blue);
  }

  .is-scrolled .gh-nav__toggle {
    display: flex;
  }

  /* 三本線 → 開いたら × */
  .gh-nav__toggle-lines {
    display: grid;
    gap: 3px;
    width: 14px;
  }

  .gh-nav__toggle-lines span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .gh-nav.is-expanded .gh-nav__toggle-lines span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .gh-nav.is-expanded .gh-nav__toggle-lines span:nth-child(2) {
    opacity: 0;
  }

  .gh-nav.is-expanded .gh-nav__toggle-lines span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* 高さを 0 ⇔ 自動 でなめらかに開閉 */
  .gh-nav__links {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.35s ease;
  }

  .gh-nav__links > .gh-nav__list {
    min-height: 0;
    overflow: hidden;
    /* ホバー時の丸と右ずれが切れないように左右に余白 */
    margin: 0 -8px;
    padding: 0 8px;
  }

  .is-scrolled .gh-nav.is-expanded .gh-nav__links > .gh-nav__list {
    padding-top: 10px;
  }

  .is-scrolled .gh-nav:not(.is-expanded) .gh-nav__links {
    grid-template-rows: 0fr;
  }

  /* 畳んでいる間はリンクにフォーカスが入らないようにする */
  .is-scrolled .gh-nav:not(.is-expanded) .gh-nav__links > .gh-nav__list {
    visibility: hidden;
    transition: visibility 0s 0.35s;
  }

  .gh-nav__actions {
    transition: margin-top 0.35s ease;
  }

  .is-scrolled .gh-nav:not(.is-expanded) .gh-nav__actions {
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  .gh-header__logo {
    top: 20px;
    left: 14px;
    width: 172px;
  }

  .gh-menu-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 37px;
    padding: 14px 0 12px;
    color: var(--gh-white);
    background: var(--gh-ink);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
  }

  .gh-menu-btn__lines {
    display: grid;
    gap: 4px;
  }

  .gh-menu-btn__lines span {
    display: block;
    width: 14px;
    height: 2px;
    background: currentColor;
  }

  .gh-menu-btn__label {
    writing-mode: vertical-rl;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
  }

  .gh-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    padding: 80px 24px 24px;
    background: rgba(13, 100, 169, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .gh-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .gh-nav__card {
    width: 100%;
    padding: 24px;
  }

  .gh-nav__list li + li {
    margin-top: 0;
  }

  .gh-nav__list a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--gh-line);
  }

  .gh-nav__caption {
    display: none;
  }
}

/* =========================================================
   フッター
   ========================================================= */
.gh-footer {
  color: var(--gh-white);
  background: var(--gh-footer);
}

.gh-footer__inner {
  max-width: var(--gh-container);
  margin: 0 auto;
  padding: 72px var(--gh-gutter) 72px;
}

.gh-footer__main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.gh-footer__logo {
  display: block;
  width: 267px;
}

.gh-footer__logo img {
  display: block;
  width: 100%;
}

.gh-footer__address {
  margin-top: 16px;
  font-size: 12px;
  line-height: 2;
}

.gh-footer__sns {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.gh-footer__sns a {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--gh-white);
}

.gh-footer__sns svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gh-footer__nav {
  display: flex;
  gap: 90px;
}

.gh-footer__col-title {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 300;
  opacity: 0.85;
}

.gh-footer__col li + li {
  margin-top: 18px;
}

.gh-footer__col a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.gh-footer__col a,
.gh-footer__sub a,
.gh-footer__sns a {
  transition: opacity 0.2s ease;
}

.gh-footer__col a:hover,
.gh-footer__sub a:hover {
  text-decoration: underline;
  opacity: 0.7;
}

.gh-footer__sns a:hover {
  opacity: 0.6;
}

.gh-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 112px;
}

.gh-footer__copy {
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.gh-footer__sub {
  display: flex;
  gap: 56px;
}

.gh-footer__sub a {
  font-size: 12px;
  text-decoration: none;
}

@media (max-width: 1023px) {
  .gh-footer__main {
    flex-direction: column;
  }

  .gh-footer__nav {
    flex-wrap: wrap;
    gap: 32px 48px;
  }
}

@media (max-width: 767px) {
  .gh-footer__inner {
    padding: 48px var(--gh-gutter) 32px;
  }

  .gh-footer__logo {
    width: 220px;
  }

  .gh-footer__building {
    display: block;
  }

  .gh-footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .gh-footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    margin-top: 48px;
  }

  .gh-footer__sub {
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}

/* ---------------------------------------------------------
   使いやすさの調整（レビュー反映）
   --------------------------------------------------------- */

/* キーボード操作用：本文へ移動 */
.gh-skip {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gh-white);
  background: var(--gh-navy);
  border-radius: 6px;
}

.gh-skip:focus {
  top: 12px;
}

.gh-footer__tel {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  /* MENU ボタンを押しやすく */
  .gh-menu-btn {
    width: 46px;
  }

  /* 開いたメニューが画面に収まらないときはスクロールできるように */
  .gh-nav {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* フッターのリンクを押しやすく */
  .gh-footer__col a,
  .gh-footer__sub a {
    display: inline-block;
    padding: 8px 0;
  }

  .gh-footer__col li + li {
    margin-top: 0;
  }
}
