@charset "UTF-8";

/* 中国語用のフォントは同梱している（tools/build_font_subset.py で生成）。
   中国からは Google Fonts が読めないので、ビルド時に落として自前で配信する。
   中国語ページで使う文字だけのサブセットなので 1 ウェイト 75KB 程度。
   収録した文字は assets/fonts/subset-chars.txt を参照。 */
@font-face {
  font-family: "CoachSC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-400-subset.woff2") format("woff2");
}
@font-face {
  font-family: "CoachSC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-sans-sc-700-subset.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   行知学園 採用サイト
   中国からのアクセスを前提にしているため、外部 CDN・Google Fonts・GTM は
   一切読み込まない。日本語は端末内蔵のフォントを使い、中国語だけ上の
   サブセットを同梱している（同梱ぶんも自前配信で、外部通信は発生しない）。
   -------------------------------------------------------------------------- */

:root {
  --red: #b41a2f;
  --red-dark: #890d1e;
  --red-soft: #dabec2;
  --ink: #111111;
  --ink-70: #4a4a4a;
  /* クリーム地に載る小さい文字（パンくず・キャプション・注記）でも
     コントラスト比 4.5 を超える濃さ。#767676 だと 4.21 で足りない。 */
  --ink-45: #707070;
  --cream: #f8f6f3;
  --line: #e6e2dd;
  --white: #ffffff;

  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
    "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, system-ui, sans-serif;
  --font-en: "Lato", "Helvetica Neue", Arial, var(--font-jp);

  --shell: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
}

/* 簡体中文は中国語のフォントを先に当てる。日本語フォントだと漢字の字形が
   日本語の形（骨・直・steps など）で出てしまい、中国語として不自然になる。 */
html[lang^="zh"] {
  --font-jp: "CoachSC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", "Heiti SC", system-ui, sans-serif;
}
/* palt は日本語向けの約物詰め。中国語にかけると句読点の間隔が崩れる */
html[lang^="zh"] body { font-feature-settings: normal; }
html[lang^="zh"] .stats dt { letter-spacing: .04em; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: 0; }

/* 中国語ページ内でも、求人票など日本語の原文は日本語フォントで出す */
html[lang^="zh"] [lang="ja"] {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
    "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, system-ui, sans-serif;
  font-feature-settings: "palt" 1;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  font-feature-settings: "palt" 1;
}

img, svg { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.only-sp { display: none; }

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand__sub {
  font-size: 10px; line-height: 1.5; color: var(--ink-45);
  letter-spacing: .04em; white-space: nowrap;
}
.gnav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.gnav a { font-size: 14px; font-weight: 600; letter-spacing: .03em; padding-block: 6px; }
.gnav a:hover { color: var(--red); }
.header-cta { margin-left: 24px; flex-shrink: 0; }

/* スマホ用のナビ帯。sticky なヘッダーの外に置いてあるので、
   スクロールすればそのまま流れて消える（sticky を高くしたくない）。
   右端に言語切り替えが入る（PC では帯ごと非表示で、代わりに右下に浮かせる）。 */
.subnav { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .05em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--onred { background: var(--white); color: var(--red); }
.btn--onred:hover { background: var(--cream); }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn[aria-disabled="true"] { background: #d8d4cf; color: #8a8580; pointer-events: none; }

/* ---------- ヒーロー ---------- */

.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero__grid {
  position: relative; z-index: 1;
  padding-block: clamp(48px, 7vw, 88px) clamp(48px, 7vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
  letter-spacing: .28em; color: var(--red); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 62px); font-weight: 700;
  line-height: 1.3; letter-spacing: .01em;
}
.hero h1 .accent { color: var(--red); }
.hero__lead { margin-top: 24px; font-size: clamp(14.5px, 1.4vw, 16px); color: var(--ink-70); max-width: 32em; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 3px; box-shadow: 0 18px 50px rgba(17, 17, 17, .16);
}
.hero__figure figcaption,
.split__figure figcaption,
.movie figcaption,
.gallery figcaption {
  margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--ink-45);
}
.hero__figure figcaption { text-align: right; }

.hero__watermark {
  position: absolute; left: -1vw; bottom: -2.5vw; z-index: 0;
  pointer-events: none; user-select: none;
  font-family: var(--font-en); font-weight: 900;
  font-size: clamp(90px, 15vw, 220px); line-height: .82;
  color: var(--red); opacity: .06; white-space: nowrap;
}

.stats {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats > div { padding: 26px 4px 30px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 12px; letter-spacing: .1em; color: var(--ink-45); }
.stats dd { margin: 4px 0 0; font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.3; }
.stats dd small { font-size: 14px; font-weight: 600; margin-left: 4px; color: var(--ink-70); }
.stats dd.stats__text { font-size: clamp(19px, 2.2vw, 26px); }

/* ---------- セクション ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.job-hero + .section { padding-top: clamp(36px, 5vw, 56px); }
.section--cream { background: var(--cream); }
.section--red { background: var(--red); color: var(--white); }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head__en {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: .26em; color: var(--red); margin-bottom: 12px;
}
.section--red .section-head__en { color: var(--red-soft); }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.45; }
.section-head p { margin-top: 18px; color: var(--ink-70); max-width: 46em; }
.section--red .section-head p { color: rgba(255, 255, 255, .85); }

/* ---------- 見出し＋写真の2カラム ---------- */

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.split--reverse .split__figure { order: -1; }
.section-head--tight { margin-bottom: 0; }
.split__figure { margin: 0; }
.split__figure img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px;
}

/* ---------- ムービー ----------
   poster を出しておいて preload="none" にしてあるので、再生を押すまで
   動画本体は読み込まれない（index.php 側のコメントも参照）。
   aspect-ratio を先に決めておき、読み込み中に高さが動かないようにしている。 */

.movie { margin: 0; max-width: 940px; }
.movie video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; background: var(--ink);
  border-radius: 3px;
}

/* ---------- ギャラリー ---------- */

.gallery { display: grid; gap: 26px 20px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px;
  background: var(--cream);
}

/* ---------- 社員インタビュー ----------
   旧サイトと同じく、写真を左右交互に置く。偶数番目は列幅ごと入れ替えて、
   写真が広いほうの列に入らないようにしている。 */

.persona-cta { margin-top: clamp(28px, 4vw, 40px); }

.interview-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-45); }

.interviews { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: clamp(48px, 6vw, 80px); }
.interview {
  display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px); align-items: start;
}
.interview:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, .42fr); }
.interview:nth-child(even) .interview__figure { order: 2; }

.interview__figure { margin: 0; }
.interview__figure img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 3px; background: var(--cream);
}
.interview__num {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: .2em; color: var(--red); margin-bottom: 12px;
}
.interview__body h2 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.55; }
.interview__body h2 .accent { color: var(--red); }
.interview__text { margin-top: 20px; color: var(--ink-70); line-height: 2; font-size: 14.5px; }
.interview__who {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline;
  font-size: 13px; color: var(--ink-45);
}
.interview__who b { font-size: 16px; font-weight: 700; color: var(--ink); }

/* 氏名は簡体字なので、日本語ページでも中国語のフォントを当てる。
   日本語の書体のままだと「梦」「叶」「马」あたりが別の字形になるか、出ない。

   同梱の CoachSC を先頭に置くと、名前 7 つのために日本語ページが woff2 を
   100KB 以上取りに行くことになる。端末の中国語フォント（PingFang SC /
   Microsoft YaHei など）で足りるので、そちらを先に当てて、CoachSC は
   最後の保険にしてある。中国語ページ側は今までどおり CoachSC が先。 */
html:not([lang^="zh"]) [lang^="zh"] {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "CoachSC", sans-serif;
}

@media (max-width: 900px) {
  .interview,
  .interview:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .interview:nth-child(even) .interview__figure { order: 0; }
  .interview__figure { max-width: 240px; }
}

/* ---------- 言語切り替え ----------
   PC は画面右下に浮かせる。スマホは全幅の CTA ボタンに必ず重なってしまうので、
   浮かせず、ヘッダー下のナビ帯（.subnav）の右端に置く。
   markup は両方出ていて、CSS で片方だけ表示している。 */

.lang-subnav { display: none; }

.lang-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(8px);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(17, 17, 17, .18);
}
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; letter-spacing: .02em; }
.lang-switch b { font-weight: 700; color: var(--ink); }
.lang-switch a { color: var(--ink-45); }
.lang-switch a:hover { color: var(--red); text-decoration: underline; }
.lang-switch i { color: var(--line); font-style: normal; }

/* ---------- 事業紹介 ---------- */

.prose { max-width: 46em; color: var(--ink-70); }
.prose p + p { margin-top: 1.2em; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 4px; padding: 28px 24px 30px;
}
.card__num {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; color: var(--red); margin-bottom: 14px;
}
.card h3 { font-size: 18px; font-weight: 700; line-height: 1.6; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-70); line-height: 1.85; }
/* 本部カードの住所。日本語のまま出すので、中国語ページでも lang="ja" が付く */
.card__addr { margin-bottom: .6em; }

/* ---------- 求める人物像 ---------- */

.persona { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.28); }
.persona li {
  background: var(--red); padding: 30px 26px;
  display: flex; gap: 16px; align-items: flex-start;
  font-size: 16.5px; font-weight: 600; line-height: 1.75;
}
.persona li::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: .65em;
  background: var(--white); border-radius: 50%;
}

/* ---------- 求人 ---------- */

[hidden] { display: none !important; }
.job-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  padding: 22px 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 4px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-45); }
.field select, .field input {
  font: inherit; font-size: 14px; padding: 10px 12px; min-width: 170px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink);
}
.field input { min-width: 200px; }
.job-toolbar .btn { margin-left: auto; }

.result-count { margin: 28px 0 18px; font-size: 14px; color: var(--ink-45); }
.result-count strong { font-size: 22px; color: var(--ink); font-weight: 700; margin-inline: 4px; }

.job-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.job-card {
  display: block; border: 1px solid var(--line); border-radius: 4px;
  padding: 24px 26px; background: var(--white);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.job-card:hover { border-color: var(--red); box-shadow: 0 6px 24px rgba(17, 17, 17, .07); transform: translateY(-2px); }
.job-card--closed { background: var(--cream); opacity: .72; }
.job-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 2px; background: var(--cream); color: var(--ink-70);
  border: 1px solid var(--line);
}
.tag--cat { background: var(--red); color: var(--white); border-color: var(--red); }
.tag--closed { background: #6f6f6f; color: var(--white); border-color: #6f6f6f; }
.job-card h3 { font-size: clamp(17px, 2vw, 20px); font-weight: 700; line-height: 1.6; }
.job-card__meta {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: 13.5px; color: var(--ink-45);
}
.job-card__meta span::before { content: ""; }
.job-card__excerpt {
  margin-top: 12px; font-size: 14px; color: var(--ink-70); line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-card h3, .job-card__excerpt { overflow-wrap: anywhere; }

.plain-link { text-decoration: underline; text-underline-offset: 3px; }
.plain-link:hover { color: var(--red); }
.list-foot { margin-top: 36px; font-size: 13.5px; color: var(--ink-45); }
.result-count .plain-link { margin-left: 12px; }

.notice {
  margin-bottom: 32px; padding: 14px 18px; border-left: 3px solid var(--red-soft);
  background: var(--cream); font-size: 13.5px; line-height: 1.8; color: var(--ink-70);
}

.empty { padding: 60px 20px; text-align: center; color: var(--ink-45); border: 1px dashed var(--line); border-radius: 4px; }

/* ---------- 求人詳細 ---------- */

.job-hero { background: var(--cream); padding-block: clamp(36px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 12.5px; color: var(--ink-45); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }
.breadcrumb span { margin-inline: 8px; }
.job-hero h1 { margin-top: 14px; font-size: clamp(24px, 3.6vw, 38px); font-weight: 700; line-height: 1.5; }
.job-hero__site { margin-top: 14px; font-size: 14px; color: var(--ink-45); }

.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 60px); align-items: start; }
.job-body h2 {
  font-size: 20px; font-weight: 700; margin: 44px 0 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.job-body h2:first-child { margin-top: 0; }
.job-body p { font-size: 15.5px; line-height: 1.95; color: var(--ink-70); overflow-wrap: anywhere; }

.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.spec dt { padding: 18px 20px 18px 0; font-size: 14px; font-weight: 700; background: transparent; }
.spec dd { padding: 18px 0; margin: 0; font-size: 15px; color: var(--ink-70); line-height: 1.9; overflow-wrap: anywhere; }

.apply-box {
  position: sticky; top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line); border-radius: 4px; padding: 26px 24px; background: var(--cream);
}
.apply-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.apply-box dl { font-size: 13.5px; color: var(--ink-70); margin-bottom: 20px; }
.apply-box dl div { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.apply-box dt { flex: 0 0 5.5em; font-weight: 700; color: var(--ink); }
.apply-box dd { margin: 0; }
.apply-box .btn { width: 100%; justify-content: center; }
.apply-box__note { margin-top: 12px; font-size: 12px; color: var(--ink-45); line-height: 1.7; }

/* ---------- CTA / フッター ---------- */

.cta { background: var(--red); color: var(--white); padding-block: clamp(56px, 8vw, 90px); text-align: center; }
.cta h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; line-height: 1.55; }
.cta p { margin-top: 18px; color: rgba(255, 255, 255, .85); }
.cta .btn { margin-top: 32px; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding-block: 56px 76px; font-size: 13.5px; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .16em; color: rgba(255,255,255,.5); margin-bottom: 14px; font-weight: 700; }
.footer-grid li { padding: 5px 0; }
.footer-brand { font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: .08em; }
.footer-address { margin-top: 14px; line-height: 1.9; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  font-size: 12px; color: rgba(255, 255, 255, .5);
}
.footer-bottom .spacer { margin-left: auto; }

/* ---------- レスポンシブ ---------- */

/* この幅から応募ボックスが本文の下に回り、ボタンが全幅になる。
   同じ幅でグローバルナビも入らなくなるので、ヘッダーまわりもここで切り替える。
   （言語切り替えを浮かせたままにすると、全幅のボタンに必ず重なる） */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__figure { order: 0; }
  .hero__figure figcaption { text-align: left; }
  .job-layout { grid-template-columns: 1fr; }
  .apply-box { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  :root { --header-h: 58px; }
  .gnav { display: none; }
  .brand img { height: 28px; }
  .brand__sub { display: none; }
  .header-cta { margin-left: auto; }
  .only-sp { display: block; }

  .subnav { display: block; background: var(--white); border-bottom: 1px solid var(--line); }
  /* 左：リンクの列（入りきらない分は横スクロール）／右：言語切り替え（常に見える） */
  .subnav__inner { display: flex; align-items: stretch; }
  /* gap は、4つ目の項目が端から少し覗く程度に詰めてある
     （まったく見えないと横スクロールできることに気づけない）。 */
  .subnav__track {
    flex: 1 1 auto; min-width: 0;
    display: flex; gap: 15px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding-inline: var(--gutter) 10px;
  }
  .subnav__track::-webkit-scrollbar { display: none; }
  .subnav a {
    padding: 11px 0; font-size: 13px; font-weight: 600;
    color: var(--ink-70); white-space: nowrap;
  }

  /* 浮かせない。代わりにナビ帯の右端に出す（.lang-subnav） */
  .lang-float { display: none; }
  .lang-subnav {
    flex: 0 0 auto; display: flex; align-items: center;
    padding-inline: 12px max(var(--gutter), 16px);
    border-left: 1px solid var(--line); background: var(--white);
  }
  .lang-switch { font-size: 12px; }
}

/* ここから下は、フォームや定義リストも1カラムに畳む幅 */
@media (max-width: 780px) {
  .spec > div { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 0; }
  .spec dd { padding-top: 8px; }
  .job-toolbar .btn { margin-left: 0; width: 100%; justify-content: center; }
  .field { width: 100%; }
  .field select, .field input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__watermark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .job-card { transition: none; }
}
