@charset "UTF-8";
/* ==========================================================================
   MeTULAB 共通ヘッダー・フッター
   - inc/header.php / inc/footer.php とセットで使用
   - 既存ページCSS（header / footer 要素セレクタ）と競合しないよう、
     すべて #site-header / #site-footer 配下に限定しています。
   - PC（1100px以上）: ドロップダウン / それ未満: ハンバーガー
   ========================================================================== */

#site-header,
#site-footer {
  --metu-yellow: #ffd74b;
  --metu-yellow-soft: #fff8dc;
  --metu-ink: #13223b;
  --metu-text: #2b3547;
  --metu-line: rgba(19, 34, 59, .12);
  --metu-cta: #d8304a;
  --metu-cta-hover: #b82538;
  --metu-header-h: 50px;
}

/* ---- 既存CSSの影響をリセット ---- */
#site-header,
#site-footer,
#site-header *,
#site-header *::before,
#site-header *::after,
#site-footer *,
#site-footer *::before,
#site-footer *::after {
  box-sizing: border-box;
}
#site-header ul,
#site-footer ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
#site-header li,
#site-footer li {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  list-style: none;
}
#site-header li::before,
#site-header li::after,
#site-footer li::before,
#site-footer li::after {
  content: none;
}
#site-header a,
#site-footer a {
  color: inherit;
  text-decoration: none;
  background: none;
  padding: 0;
  border-radius: 0;
}
#site-header img,
#site-footer img {
  max-width: none;
  vertical-align: middle;
}
#site-header button {
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#site-header a:focus-visible,
#site-header button:focus-visible,
#site-footer a:focus-visible {
  outline: 3px solid var(--metu-ink);
  outline-offset: 2px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: block;
  width: 100%;
  height: var(--metu-header-h);
  margin: 0;
  padding: 0;
  color: var(--metu-ink);
  background: var(--metu-yellow);
  border-bottom: 1px solid var(--metu-line);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Sans", Meiryo, メイリオ, "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  /* 祖先に filter 等があると fixed のメニューが崩れるため無効化 */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
  filter: none;
}

#site-header .gh-bar {
  display: flex;
  align-items: center;
  height: var(--metu-header-h);
  padding: 0 3% 0 0;
}

/* ロゴ（既存デザインの白いタブ形状を踏襲） */
#site-header .gh-logo {
  flex: none;
  display: flex;
  align-items: center;
  height: var(--metu-header-h);
  padding: 0 44px 0 24px;
  background: #fff;
  border-bottom-right-radius: 50px;
}
#site-header .gh-logo-inner {
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 1;
}
#site-header .gh-logo-inner a {
  display: block;
}
#site-header .gh-logo img {
  display: block;
  width: 150px;
  height: 50px;
}

/* CTA：無料体験 */
#site-header .gh-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  color: #fff;
  background: var(--metu-cta);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
  transition: background-color .15s;
}
#site-header .gh-cta:hover {
  background: var(--metu-cta-hover);
  color: #fff;
}

/* ハンバーガー（SPのみ表示） */
#site-header .gh-toggle {
  display: none;
}

#site-header .gh-overlay {
  display: none;
}

/* ---------- PC：ドロップダウン ---------- */
@media (min-width: 1100px) {
  #site-header .gh-panel {
    display: flex;
    align-items: center;
    margin-left: auto;
  }
  #site-header .gh-menu {
    display: flex;
    align-items: stretch;
  }
  #site-header .gh-item {
    position: relative;
  }
  #site-header .gh-parent {
    display: flex;
    align-items: center;
    gap: 6px;
    height: var(--metu-header-h);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }
  #site-header .gh-item.is-current > .gh-parent {
    box-shadow: inset 0 -3px 0 var(--metu-ink);
  }
  #site-header .gh-caret {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }
  #site-header .gh-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--metu-line);
    border-top: 3px solid var(--metu-ink);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 24px rgba(19, 34, 59, .14);
  }
  #site-header .gh-item:hover > .gh-sub,
  #site-header .gh-item:focus-within > .gh-sub,
  #site-header .gh-parent[aria-expanded="true"] + .gh-sub {
    display: block;
  }
  #site-header .gh-item.is-suppressed > .gh-sub {
    display: none;
  }
  #site-header .gh-sublink {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    color: var(--metu-text);
  }
  #site-header .gh-sublink:hover {
    background: var(--metu-yellow-soft);
    color: var(--metu-ink);
  }
  #site-header .gh-sublink[aria-current="page"] {
    font-weight: 700;
    color: var(--metu-ink);
    box-shadow: inset 4px 0 0 var(--metu-yellow);
  }

  #site-header .gh-util {
    display: flex;
    align-items: center;
    margin: 0 14px 0 6px;
  }
  #site-header .gh-sp-only {
    display: none;
  }
  #site-header .gh-util-link {
    font-size: 13px;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
  }
  #site-header .gh-util-link:hover {
    border-bottom-color: currentColor;
  }
}

/* 1100〜1279px はやや詰める */
@media (min-width: 1100px) and (max-width: 1279px) {
  #site-header .gh-logo { padding: 0 36px 0 16px; }
  #site-header .gh-parent { padding: 0 10px; font-size: 13px; }
  #site-header .gh-util { margin: 0 10px 0 4px; }
  #site-header .gh-cta { padding: 0 14px; font-size: 13px; }
}

/* ---------- SP・タブレット：ハンバーガー ---------- */
@media (max-width: 1099px) {
  #site-header .gh-bar {
    padding-right: 0;
  }
  #site-header .gh-logo {
    padding: 0 30px 0 14px;
    margin-right: auto;
  }
  #site-header .gh-cta {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  #site-header .gh-toggle {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 56px;
    height: var(--metu-header-h);
    margin-left: 4px;
    padding: 0;
  }
  #site-header .gh-toggle-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 16px;
  }
  #site-header .gh-toggle-icon span {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background: var(--metu-ink);
    border-radius: 1px;
    transition: transform .2s, opacity .2s, top .2s;
  }
  #site-header .gh-toggle-icon span:nth-child(1) { top: 0; }
  #site-header .gh-toggle-icon span:nth-child(2) { top: 7px; }
  #site-header .gh-toggle-icon span:nth-child(3) { top: 14px; }
  #site-header .gh-toggle-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
  }
  #site-header.is-open .gh-toggle-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  #site-header.is-open .gh-toggle-icon span:nth-child(2) { opacity: 0; }
  #site-header.is-open .gh-toggle-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  /* メニューパネル（ヘッダーの下に表示。CTAと閉じるボタンは常に見える） */
  #site-header .gh-panel {
    position: fixed;
    top: var(--metu-header-h);
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(100%, 400px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: -6px 0 20px rgba(19, 34, 59, .12);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  #site-header.is-open .gh-panel {
    visibility: visible;
    transform: none;
    transition: transform .25s ease, visibility 0s;
  }

  #site-header .gh-item {
    border-bottom: 1px solid var(--metu-line);
  }
  #site-header .gh-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
  }
  #site-header .gh-caret {
    flex: none;
    width: 9px;
    height: 9px;
    margin: -4px 4px 0 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
  }
  #site-header .gh-parent[aria-expanded="true"] .gh-caret {
    margin-top: 4px;
    transform: rotate(-135deg);
  }
  #site-header .gh-sub {
    display: none;
    padding: 0 0 8px;
    background: var(--metu-yellow-soft);
  }
  #site-header .gh-parent[aria-expanded="true"] + .gh-sub {
    display: block;
  }
  #site-header .gh-sublink {
    position: relative;
    display: block;
    padding: 13px 20px 13px 36px;
    font-size: 15px;
    color: var(--metu-text);
    border-top: 1px solid rgba(19, 34, 59, .06);
  }
  #site-header .gh-sublink::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-top: 2px solid #b8a36a;
    border-right: 2px solid #b8a36a;
    transform: rotate(45deg);
  }
  #site-header .gh-sublink[aria-current="page"] {
    font-weight: 700;
    color: var(--metu-ink);
  }

  #site-header .gh-util {
    padding: 16px 20px 32px;
  }
  #site-header .gh-util-item + .gh-util-item {
    margin-top: 4px;
  }
  #site-header .gh-util-link {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: var(--metu-text);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  #site-header.is-open .gh-overlay {
    display: block;
    position: fixed;
    top: var(--metu-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .45);
  }
}

@media (max-width: 419px) {
  #site-header .gh-cta-rest { display: none; }
}
@media (max-width: 359px) {
  #site-header .gh-logo { padding: 0 22px 0 10px; }
  #site-header .gh-logo img { width: 120px; height: 40px; }
  #site-header .gh-toggle { width: 48px; }
}

/* メニュー展開中は背景をスクロールさせない */
html.gh-lock,
html.gh-lock body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  #site-header .gh-panel,
  #site-header .gh-toggle-icon span,
  #site-header .gh-caret {
    transition: none;
  }
}

/* ==========================================================================
   フッター（サイトマップ）
   ========================================================================== */
#site-footer {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 48px 5% 0;
  color: var(--metu-text);
  background: var(--metu-yellow);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Sans", Meiryo, メイリオ, "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: normal;
  text-align: left;
}
#site-footer p {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

#site-footer .gf-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
}

#site-footer .gf-logo {
  display: inline-block;
  padding: 6px 30px 6px 14px;
  background: #fff;
  border-radius: 0 40px 40px 0;
}
#site-footer .gf-logo img {
  display: block;
  width: 150px;
  height: 50px;
}
#site-footer .gf-lead {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--metu-ink);
}
#site-footer .gf-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
#site-footer .gf-sns a {
  display: block;
  padding: 4px;
}
#site-footer .gf-sns img {
  display: block;
  width: 28px;
  height: 28px;
}

#site-footer .gf-sitemap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}
#site-footer .gf-title {
  margin-bottom: 10px;
  padding-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--metu-ink);
  border-bottom: 2px solid rgba(19, 34, 59, .18);
}
#site-footer .gf-list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--metu-text);
}
#site-footer .gf-list a:hover {
  color: var(--metu-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#site-footer .gf-list a[aria-current="page"] {
  font-weight: 700;
  color: var(--metu-ink);
}

#site-footer .gf-bottom {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(19, 34, 59, .15);
  text-align: center;
  font-size: 12px;
  color: #444;
}
#site-footer .gf-company {
  font-style: normal;
  line-height: 1.8;
}
#site-footer .gf-copy {
  margin-top: 10px;
  font-size: 11px;
}
#site-footer .gf-copy small {
  font-size: inherit;
}
#site-footer .gf-copy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 899px) {
  #site-footer {
    padding-top: 36px;
  }
  #site-footer .gf-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  #site-footer .gf-brand {
    text-align: center;
  }
  #site-footer .gf-sns {
    justify-content: center;
  }
  #site-footer .gf-sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }
  #site-footer .gf-list a {
    padding: 7px 0;
    font-size: 14px;
  }
}
@media (max-width: 359px) {
  #site-footer .gf-sitemap {
    grid-template-columns: 1fr;
  }
}
