/* =====================================================================
   TechSuite 共通ヘッダー（.hd）単体スタイル
   目的: WordPress通常ページ（記事/QA/ブログ等）にも LP と同じ .hd ヘッダーを
         載せるための「ヘッダーだけ」の自己完結CSS。
   本文に影響しないよう全て .hd 配下にスコープ（body.nav-open のバーガー除く）。
   色は各サイトの theme.css（:root の --accent/--teal/--accent-glow/--shadow-cta）を利用。
   3種のボタン構成（①LP=アンカー ②contact/meeting=ロゴ+CTAのみ ③その他=全ナビ）は
   マークアップ側（hd_links の中身）で切替。CTAは全種共通で入れる。
   ===================================================================== */
.hd {
  /* ヘッダー用の構造トークン（.hd スコープ＝本文の :root を汚さない） */
  --border: #e3eaf0; --maxw: 1120px; --pill: 999px; --fg: #0e2a43; --fg-muted: #52697a;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border); font-family: var(--font-jp);
}
.hd *, .hd *::before, .hd *::after { box-sizing: border-box; }
.hd a { text-decoration: none; }
.hd_inner { width: min(var(--maxw), 94%); margin-inline: auto; height: 70px; display: flex; align-items: center; gap: 34px; }
.hd_logo { flex: none; }
.hd_logo img { height: 30px; width: auto; display: block; }
.hd_nav { flex: 1; display: flex; align-items: center; gap: 30px; }
.hd_links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.hd_links a { font-size: 14px; font-weight: 700; color: var(--fg-muted); transition: color .15s; }
.hd_links a:hover { color: var(--accent); }
.hd_actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hd_actions .txt { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.hd_actions .txt:hover { color: var(--accent); }
/* 電話CV（サイト別・任意。markupがある時だけ表示） */
.hd_tel { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.12; text-decoration: none; }
.hd_tel__copy { font-size: 10px; font-weight: 700; color: var(--accent); }
.hd_tel__num { font-family: var(--font-en); font-size: 16px; font-weight: 800; color: var(--fg); letter-spacing: .01em; }
.hd .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border-radius: var(--pill); font-family: var(--font-jp); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.hd .btn--cv { color: #fff; background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 62%); box-shadow: var(--shadow-cta); }
.hd .btn--cv:hover { transform: translateY(-2px); box-shadow: 0 16px 32px var(--accent-glow); }
.hd .btn--cv::after { content: "→"; font-weight: 700; line-height: 1; transition: transform .18s var(--ease); }
.hd .btn--cv:hover::after { transform: translateX(3px); }
.hd_burger { display: none; width: 30px; height: 22px; position: relative; background: none; border: 0; cursor: pointer; }
.hd_burger span { position: absolute; left: 0; width: 100%; height: 2.5px; background: var(--fg); border-radius: 2px; transition: .25s; }
.hd_burger span:nth-child(1) { top: 1px; }
.hd_burger span:nth-child(2) { top: 10px; }
.hd_burger span:nth-child(3) { top: 19px; }
body.nav-open .hd_burger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.nav-open .hd_burger span:nth-child(2) { opacity: 0; }
body.nav-open .hd_burger span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
@media (max-width: 640px) {
  .hd_nav { display: none; }
  .hd_burger { display: block; margin-left: auto; }
  .hd_nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 22px; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 26px 28px 32px; }
  .hd_nav.open .hd_links { flex-direction: column; gap: 18px; }
  .hd_nav.open .hd_actions { flex-direction: column; align-items: stretch; margin-left: 0; }
  .hd_nav.open .hd_tel { align-items: center; margin-bottom: 4px; }
  .hd .btn { width: 100%; }
  /* ②contact/meeting（hd_nav無し＝ハンバーガー無し）はモバイルでロゴのみにする */
  .hd_inner > .hd_actions { display: none; }
}
