@import url('tokens.css');
/* ==========================================================
   共通ヘッダー v3(ミズカラのPC/スマホ出し分けをトレース・2026-10-18)
   PC:ロゴ左/ナビを横一列/右端に黒いCONTACT(英+和の2段)を高さいっぱいで
   SP:ロゴ左/右端に黒い正方形のハンバーガー。押すと全画面メニュー
   ========================================================== */
.site-header.gh {
  position: fixed; z-index: 80; top: 0; left: 0; right: 0;
  display: flex; align-items: stretch; gap: 0;
  height: 64px; padding: 0; border: 0; box-shadow: none;
  background: #fff; color: #111;
}
.site-header.gh.is-on-dark { background: #fff; color: #111; border: 0; }
.gh-logo { display: flex; align-items: center; padding: 0 20px; text-decoration: none; }
.gh-logo img { height: 22px; width: auto; display: block; }
.gh-nav { display: none; }
.gh-contact { display: none; }
.gh-burger {
  margin-left: auto; width: 64px; height: 64px; flex: 0 0 64px;
  display: grid; place-content: center; gap: 7px;
  border: 0; padding: 0; background: #111; cursor: pointer;
}
.gh-burger span { display: block; width: 26px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s; }
.gh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.gh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.gh-menu {
  position: fixed; z-index: 79; inset: 64px 0 0 0; overflow-y: auto;
  background: #111; color: #fff; padding: 32px 24px 48px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.gh-menu.is-open { opacity: 1; visibility: visible; }
.gh-menu a { color: inherit; text-decoration: none; }
.gh-menu-nav { display: grid; border-top: 1px solid rgba(255,255,255,.16); }
.gh-menu-nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 16px; letter-spacing: .08em; }
.gh-menu-nav a small { font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: .14em; opacity: .5; }
.gh-menu-contact { display: grid; place-items: center; margin-top: 32px; padding: 20px; background: #fff; color: #111 !important; font-family: "Jost", sans-serif; font-size: 18px; letter-spacing: .12em; line-height: 1.3; text-align: center; }
.gh-menu-contact small { display: block; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 11px; letter-spacing: .1em; }
.gh-menu-tel { display: block; margin-top: 20px; text-align: center; font-family: "Jost", sans-serif; font-size: 20px; letter-spacing: .1em; }
body.is-menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .site-header.gh { height: 80px; }
  .gh-logo { padding: 0 40px 0 32px; }
  .gh-logo img { height: 26px; }
  .gh-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); font-size: 14px; font-weight: 500; letter-spacing: .08em; }
  .gh-nav a { color: inherit; text-decoration: none; white-space: nowrap; }
  .gh-contact {
    display: grid; place-content: center; margin-left: auto; width: 200px; flex: 0 0 200px;
    background: #111; color: #fff; text-decoration: none; text-align: center; line-height: 1.3;
    font-family: "Jost", sans-serif; font-size: 18px; font-weight: 500; letter-spacing: .12em;
  }
  .gh-contact small { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 11px; letter-spacing: .1em; }
  .gh-burger, .gh-menu { display: none; }
}
@media (hover: hover) {
  .gh-nav a, .gh-logo { transition: opacity .3s var(--ease); }
  .gh-nav a:hover, .gh-logo:hover { opacity: .5; }
  .gh-contact { transition: background-color .3s; }
  .gh-contact:hover { background: #333; }
}
/* 1024〜1279pxはナビを詰める(事業名はスマホメニューとサービス欄から辿る) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .gh-nav { gap: 22px; font-size: 13px; }
  .gh-nav a[href="../base/index.html"], .gh-nav a[href="../academy/index.html"], .gh-nav a[href="../works/index.html"] { display: none; }
}

/* 常設の相談先と44px以上の操作領域。JSなしでもヘッダーを表示。 */
.site-header.gh { opacity: 1; visibility: visible; transform: none; }
.gh-logo { min-width: 44px; min-height: 44px; padding: 0 16px; flex-shrink: 0; }
.gh-logo img { width: 124px; height: auto; }
.gh-contact { display: inline-flex; align-self: center; align-items: center; justify-content: center; margin: 0 12px 0 auto; padding: 8px 16px; min-height: 44px; min-width: 92px; width: auto; flex: 0 0 auto; border-radius: 999px; background: #111; color: #fff; font-family: 'Zen Kaku Gothic New',sans-serif; font-size: 14px; letter-spacing: .03em; line-height: 1.5; text-decoration: none; }
.gh-burger { margin-left: 0; }
.gh-menu { transition: opacity .3s var(--ease),visibility .3s var(--ease); }
.gh-menu-nav a small { opacity: 1; color: #ccc; font-size: 12px; margin-left: 16px; text-align: right; }
.gh-menu-contact { border-radius: 999px; font-size: 16px; }
.gh-burger span { transition: transform .3s var(--ease),opacity .3s var(--ease); }
@media (min-width:1024px) { .gh-logo { padding: 0 24px; } .gh-logo img { width: 148px; } .gh-nav { gap: clamp(16px,1.6vw,28px); font-size: 14px; letter-spacing: .02em; } .gh-contact { margin-right: 24px; margin-left: auto; min-width: 112px; } }
@media (hover:hover) { .gh-contact { transition: opacity .3s var(--ease); } .gh-contact:hover { opacity: .5; background: #111; } }

/* PCはミズカラ型:右端に高さいっぱいの黒いCONTACT帯(英+和の2段)。スマホは小さな「相談する」 */
.gh-contact .gh-contact-en { display: none; }
.gh-contact small { font-size: inherit; }
@media (min-width:1024px) {
  .gh-contact { align-self: stretch; display: grid; place-content: center; gap: 2px; margin: 0 0 0 auto; padding: 0; width: 200px; min-width: 200px; border-radius: 0; text-align: center; line-height: 1.3; }
  .gh-contact .gh-contact-en { display: block; font-family: "Jost", sans-serif; font-size: 18px; font-weight: 500; letter-spacing: .12em; }
  .gh-contact small { font-size: 11px; letter-spacing: .1em; }
}
@media (hover:hover) and (min-width:1024px) { .gh-contact:hover { opacity: 1; background: #333; } }
