@charset "UTF-8";

/* 中国語用のフォントは同梱している（tools/build_font_subset.py で生成）。
   中国からは Google Fonts が読めないので、ビルド時に落として自前で配信する。
   中国語ページで使う 581 文字だけのサブセットなので 1 ウェイト 75KB 程度。 */
@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;
  --ink-45: #767676;
  --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); }

.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;
  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,
.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;
}

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

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

/* ---------- 言語切り替え ---------- */

.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(230px, 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; }

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

.persona { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(300px, 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%;
}

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

.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; 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;
}

.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); }

.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; }

.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 40px; 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; }
}

@media (max-width: 780px) {
  :root { --header-h: 64px; }
  .gnav { display: none; }
  .gnav--cta { display: flex; }
  .brand__sub { display: none; }
  .only-sp { display: block; }
  .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; }
}
