/*
 * modules/header-footer.css — site-wide header + footer shells
 * Ported from mock inline styles (AxiHUB TOPページ (standalone).html, header block
 * before .axihub-fv and footer block after the TOP sections). Loads on every
 * page (see inc/asset-styles.php) since header/footer appear everywhere.
 */

/* Header — utility bar */
.axihub-header__utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 40px;
  background: var(--color-inverse);
  color: var(--color-on-inverse);
  font-size: 11px;
}

.axihub-header__utility-links {
  display: flex;
  gap: 20px;
}

.axihub-header__utility-links a {
  color: inherit;
  text-decoration: none;
}

.axihub-header__utility-links a:hover {
  opacity: 0.85;
}

/* Header — main nav */
.axihub-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 10;
}

.axihub-header__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}

.axihub-header__logo {
  display: block;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.axihub-header__logo .axihub-logo__img {
  display: block;
  width: auto;
  height: 72px;
}

.axihub-header__tagline {
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-text-muted);
  letter-spacing: .02em;
  white-space: nowrap;
  text-align: center;
}

.axihub-header__nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--color-text);
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.axihub-header__nav-list a,
.axihub-header__nav-list span {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.axihub-header__nav-list a:hover {
  color: var(--color-accent);
}

.axihub-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.axihub-header__tel {
  display: block;
  text-align: right;
  line-height: 1.3;
  text-decoration: none;
}

.axihub-header__tel-label {
  display: block;
  font-size: 10px;
  color: var(--color-text-muted);
}

.axihub-header__tel-number {
  display: block;
  font-family: 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-accent);
  white-space: nowrap;
}

.axihub-header__cta {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-inverse);
  color: var(--color-on-inverse);
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
}

.axihub-header__cta:hover,
.axihub-header__cta:visited {
  background: var(--color-inverse-hover);
  color: var(--color-on-inverse);
}

.axihub-header__hamburger {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-height: var(--touch-min, 44px);
  transition:
    border-color var(--dur-base) var(--ease-standard),
    background-color var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard);
}

.axihub-header__hamburger:hover,
.axihub-header__hamburger:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  outline: none;
}

.axihub-header__hamburger-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.axihub-header__hamburger-label {
  line-height: 1;
}

/* Footer */
.axihub-footer {
  margin-top: auto;
  padding: 56px 40px 24px;
  background: var(--color-inverse);
  color: var(--color-footer-text);
}

.axihub-footer__inner {
  max-width: var(--layout-inner);
  margin: 0 auto;
}

.axihub-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.axihub-footer__logo {
  display: block;
  line-height: 0;
  text-decoration: none;
  margin-bottom: 14px;
  width: fit-content;
}

.axihub-footer__logo .axihub-logo__img {
  display: block;
  width: auto;
  height: 64px;
}

.axihub-footer__col-title {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.axihub-footer__text {
  font-size: 12px;
  line-height: 2;
}

.axihub-footer__text--list {
  line-height: 2.3;
}

.axihub-footer__text--list a {
  color: inherit;
  text-decoration: none;
}

.axihub-footer__text--list a:hover {
  text-decoration: underline;
}

.axihub-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--color-footer-border);
  padding-top: 20px;
  font-size: 11px;
}

/* MOCO Works credit（TOPのみ表示・モジュール本体は assets/css/moco-credit.css） */
.axihub-footer .moco-credit {
  margin-top: 8px;
  padding-block: 12px 4px;
  color: var(--color-footer-text);
}

.axihub-footer .moco-credit__label {
  font-family: var(--font-en);
}

.axihub-footer__sns {
  display: flex;
  align-items: center;
  gap: 14px;
}

.axihub-footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: .72;
  transition: opacity .15s ease;
}

.axihub-footer__sns a:hover {
  opacity: 1;
}

.axihub-footer__sns img {
  display: block;
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .axihub-header__utility,
  .axihub-header__main,
  .axihub-footer {
    padding-left: max(var(--chrome-pad-x, 20px), var(--safe-left, 0px));
    padding-right: max(var(--chrome-pad-x, 20px), var(--safe-right, 0px));
  }

  .axihub-header__utility {
    padding-top: max(8px, var(--safe-top, 0px));
    font-size: 10px;
    gap: 6px 12px;
  }

  .axihub-header__utility-hours {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.45;
  }

  .axihub-header__utility-hours-sep {
    display: none;
  }

  .axihub-header__utility-links {
    gap: 12px;
  }

  .axihub-header__main {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 10px 12px;
  }

  .axihub-header__logo .axihub-logo__img {
    height: 56px;
  }

  .axihub-header__tagline {
    display: none;
  }

  /* SP: インラインナビを隠し、ハンバーガー＋ドロワーへ */
  .axihub-header__nav {
    display: none;
  }

  .axihub-header__hamburger {
    display: inline-flex;
  }

  .axihub-header__actions {
    gap: 10px;
    margin-left: auto;
  }

  /* SP: 電話・無料相談はフローティングCTAに任せる */
  .axihub-header__tel,
  .axihub-header__cta {
    display: none;
  }

  .axihub-footer {
    padding-top: var(--space-48, 48px);
    padding-bottom: max(24px, var(--safe-bottom, 0px));
  }

  /* ブランド全幅 + リンクは 2 列（縦積みにしすぎない） */
  .axihub-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 28px;
  }

  .axihub-footer__col--brand {
    grid-column: 1 / -1;
  }

  .axihub-footer__col-title {
    margin-bottom: 10px;
  }

  .axihub-footer__sns a {
    width: var(--touch-min, 44px);
    height: var(--touch-min, 44px);
  }
}

@media (max-width: 560px) {
  .axihub-footer__logo .axihub-logo__img {
    height: 52px;
  }

  .axihub-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
