/* site-chrome.css — 新デザインのヘッダ/フッタのみ抽出（common.css から・A-5 Stage3 で .c-Site* 命名へ統一）。
   旧デザイン本文(recruit-legacy/contact-legacy)はそのまま使い、ヘッダ/フッタだけ新デザインに差し替える
   静的パススルー5ページ（/ir/inquiry/・/careers/interview/01–04/）専用CSS。
   - legacy 側は :where(.l-legacy) 境界に完全アイソレート済み＝chrome へ一切マッチしない
     （方針のフル解説＝recruit-legacy/css/common.css 冒頭コメント）。ゆえに chrome が必要な reset
     （border-box / a の color・text-decoration）はこのシートが自前で持つ（legacy reset に依存しない）。
   - セレクタ/値は common.css の .c-SiteHeader系・.c-GlobalNav系・.c-Brand系・.c-SiteFooter__系 と同値コピー
     （パススルーで使われないドロップダウン nav・フッタnav列・home 上書きは除外）。
     ⚠ 運用：src/partials/header.html・footer.html や common.css の chrome を変えたら本シートも追従し、
     5ページの ?v= を手動 bump すること（パススルーは build.mjs 非生成＝自動追従しない）。
   - band_scope_scan には「common.css と同値コピーの許可済みシート」として allowlist 登録済み。 */

/* フォントトークン＋Inter（self-host）＝common.css と同一定義をパススルー用に同梱。
   このシートは本体 common.css を読まない静的パススルーで使うため、
   chrome が参照する var(--font-*) をここで定義しないと未解決になり Inter も未ロードになる（A-5 是正・2026-07-05）。
   値は common.css :root と一致させること（フォント統合の単一スタック）。 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Fallback";
  font-style: normal;
  font-weight: 100 900;
  src: local("Arial");
  size-adjust: 107.34%;
  ascent-override: 90.25%;
  descent-override: 22.47%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* フォントトークン（common.css :root と一致・フォント統合の正規スタック） */
  --font-mincho: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --font-serif-en: Georgia, "Times New Roman", "Yu Mincho", YuMincho, serif;
  --font-sans: Inter, "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-gothic: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic Pro", "メイリオ", sans-serif;
  --ink: #000000;
  --ink-soft: #25343b;
  --muted: #929596;
  --line: #d9d9d9;
  --paper: #ffffff;
  --paper-alt: #f3f4f4;
  --paper-warm: #f8f7f4;
  --night: #001722;
  --night-2: #0a2633;
  --accent: #c0a070;
  --shadow: none;
  --header-height: 76px;
}

/* chrome 自前 reset（common.css の `*{box-sizing:border-box}`・`a{color:inherit;text-decoration:none}` 相当を
   chrome スコープに限定して再現。legacy の Meyer reset には依存しない＝完全アイソレート）。 */
.c-SiteHeader, .c-SiteHeader *, .c-SiteFooter, .c-SiteFooter * { box-sizing: border-box; }
.c-SiteHeader, .c-SiteFooter { font-family: var(--font-sans); line-height: 1.7; }
.c-SiteHeader a, .c-SiteFooter a { color: inherit; text-decoration: none; }

/* ---------- ヘッダ / グローバルナビ（common.css 同値） ---------- */

.c-SiteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 2.6vw, 38px);
  border-bottom: 0;
  background: var(--paper-alt);
  backdrop-filter: blur(18px);
}

.c-Brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 194px;
  background: transparent;
  padding: 0;
}

.c-Brand__logo {
  display: block;
  width: 209px;
  max-width: 48vw;
  height: auto;
}

.c-GlobalNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 697px;                 /* Figma manu(324:748) nav幅固定（697×21） */
  /* Figma manu(324:748) メニュー項目: YuMincho / 14px / weight500 / #000 / letter-spacing無し。
     本体 common.css .c-GlobalNav と同値（フォント統合の単一スタック・nav=Mincho）。
     旧: sans/12px/600/0.07em/ink-soft はドリフト＝本体から取り残されていたため是正（2026-07-07）。 */
  font-family: var(--font-mincho);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
}

.c-GlobalNav__link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.c-GlobalNav__link::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.c-GlobalNav__link:hover::after,
.c-GlobalNav__link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.c-SiteHeader__menuButton {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.c-SiteHeader__menuButton span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

/* ---------- フッタ（common.css 同値） ---------- */

.c-SiteFooter {
  /* legacy の裸 footer{} は .l-legacy 境界内へ限定済み（源で遮断）。
     margin/padding:0 は多重防御として維持（common.css には無い decl だが UA 既定と同値）。 */
  margin: 0;
  padding: 0;
  border-top: 0;
  background: var(--paper-alt);
  color: var(--ink);
}

.c-SiteFooter__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 0;
}

.c-SiteFooter__brand { display: block; }

.c-SiteFooter__brandBlock .c-Brand__logo {
  width: 410px;
  height: auto;
  object-fit: contain;
}

/* 住所（和文）＝Figma Current 実測 YuMincho 16/500（lh28px）。base-font(chrome=sans)の意図的 footer 例外。common.css と同値 */
.c-SiteFooter__brandBlock p {
  max-width: 420px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
}

.c-SiteFooter__bottombar {
  background: #32447f;
  color: #fff;
  padding: 5px 40px;
}
/* legal（Privacy/Security/©）＝Figma Current 実測 YuMincho 16/500。欧文もセリフ＝意図的 footer 例外。common.css と同値 */
.c-SiteFooter__bottombarInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}
.c-SiteFooter__policy {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  width: 250px;
  max-width: 100%;
}
.c-SiteFooter__policy a {
  color: #fff;
  text-decoration: none;
}
.c-SiteFooter__policy a:hover { text-decoration: underline; }
.c-SiteFooter__bottombar .c-SiteFooter__copyright {
  margin: 0;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .c-SiteFooter__bottombar { padding: 8px 18px; }
  .c-SiteFooter__bottombarInner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .c-SiteFooter__policy { width: auto; gap: 24px; }
}

/* ---------- レスポンシブ（common.css 同値） ---------- */

@media (max-width: 980px) {
  :root {
    --header-height: 70px;
  }

  .c-SiteHeader__menuButton {
    display: inline-flex;
  }

  .c-GlobalNav {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: auto;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    max-height: calc(100svh - var(--header-height) - 24px);
    overflow: auto;
    padding: 8px;
  }

  .c-GlobalNav.is-open {
    display: flex;
  }

  .c-GlobalNav__link {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
  }

  .c-GlobalNav__link::after {
    display: none;
  }

  .c-SiteFooter__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .c-SiteFooter__inner { padding-inline: 24px; }
}

@media (max-width: 640px) {
  .c-SiteHeader {
    padding-inline: 14px;
  }

  .c-Brand {
    min-width: 0;
  }
}
