@charset "UTF-8";
/* ==========================================================================
   foundation.css ― サイト全体の土台
   --------------------------------------------------------------------------
   1. 変数（色・文字・余白・形）   ← 色や文字サイズを変えるときはここ
   2. リセット
   3. 土台（body・リンク・画像・フォーカス枠）
   4. 文字の上下の余白を切り詰める仕組み（u-trim）
   ========================================================================== */

/* 1. 変数 ----------------------------------------------------------------- */
:root {
  /* 色 */
  --color-main: #005bac;        /* 主色：ボタン・リンク・英字ラベル */
  --color-sub: #00afd5;         /* 副色：数字セクション・お知らせ */
  --color-dark: #132433;        /* 濃紺：濃色ボタン・写真の上のパネル */
  --color-text: #1a1d21;        /* 本文・見出し */
  --color-text-sub: #6b7280;    /* 日付・補足・フッターの小リンク */
  --color-text-mute: #9ca3af;   /* 注記 */
  --color-gray: #8a919e;        /* グレーのタグ・募集終了の表示 */
  --color-line: #b5b5b5;        /* 罫線 */
  --color-bg: #f8f8f8;          /* ページの地色 */
  --color-bg-dim: #f4f4f4;      /* 表の見出しセル */
  --color-white: #fff;
  --color-main-pale: #eaf4fc;   /* 主色の淡い面 */
  --color-sub-pale: #b4e6f0;    /* 副色の淡い面 */
  --color-sub-deep: #1b9bb8;       /* 副色の濃いめ */
  --color-yellow: #f7c21b;      /* 差し色の黄：「専従職」のラベル・ヘッダーの ENTRY ボタンの丸 */
  --color-orange: #e46a0a;      /* 差し色のオレンジ：「総合職」のラベル */

  /* 書体 */
  --font-ja: "Gen Interface JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;   /* 本文 */
  --font-display: "Gen Interface JP Display", "Gen Interface JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;   /* 大きな見出し・ステートメント（太さは 600・700 だけ） */
  --font-en: "Barlow", "Gen Interface JP", sans-serif;   /* 英字ラベル・数字 */

  /* 太さ */
  --fw-light: 300;      /* 1日のスケジュールの時刻だけ */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;   /* ステートメントの文・ページ内メニューの項目名・1日のスケジュール */
  --fw-bold: 700;

  /* 文字サイズ */
  --fs-display: 4rem;   /* 64px　大きな数字 */
  --fs-num: 2.75rem;    /* 44px　番号（01 / 02） */
  --fs-h1: 2.25rem;     /* 36px　セクションの見出し */
  --fs-unit: 2rem;      /* 32px　数字に付く単位 */
  --fs-h2: 1.75rem;     /* 28px　カードの見出し・ステートメント */
  --fs-h3: 1.25rem;     /* 20px　ボタン（大）・小見出し */
  --fs-lead: 1.125rem;  /* 18px　リード文 */
  --fs-body: 1rem;      /* 16px　本文 */
  --fs-body-s: 1rem;    /* 16px（SP は 15px）　短い説明文・フッターのメニュー */
  --fs-small: 0.9375rem; /* 15px（SP は 14px）　補足・ボタン（小） */
  --fs-caption: 0.875rem; /* 14px（SP は 13px）　フッターの小リンク・小さな補足 */
  --fs-prose: 1rem;     /* 16px（SP は 14px）　下層ページの本文（c-prose・c-list）と、見出しの下のリード文 */
  --fs-nav: 0.9375rem;  /* 15px　ヘッダーのメニュー（PC。SP の開いたメニューは 16px） */
  --fs-note: 0.75rem;   /* 12px　注記・コピーライト */
  --fs-micro: 0.6875rem; /* 11px　カードの英字ラベル・タグ */
  --fs-tiny: 0.625rem;  /* 10px　ごく小さい英字ラベル */

  /* 行間 */
  --lh-none: 1;
  --lh-title: 1.45;
  --lh-snug: 1.5;
  --lh-relaxed: 1.8;
  --lh-body: 1.9;

  /* 字間 */
  --ls-none: 0;
  --ls-title: 0.06em;   /* 見出し */
  --ls-wide: 0.08em;    /* ボタン・英字ラベル */
  --ls-body: 0.1em;     /* 本文 */
  --ls-nav: 0.14em;     /* フッターのメニュー */

  /* 幅・余白 */
  --w-content: 75rem;   /* 1200px　標準の中身の幅（1440px のとき左右 120px） */
  --w-narrow: 67.5rem; /* 1080px */
  --w-wide: 82.5rem; /* 1320px */
  --gutter: 2.5rem;     /* 40px　画面が狭いときに残す左右の余白 */
  --space-section: 6.25rem; /* 100px */

  /* 形 */
  --radius-pill: 999px;
  --radius-card: 0.75rem; /* 12px */
  --radius-panel: 2.5rem; /* 40px */
  --shadow-card: 2px 2px 4px rgba(0, 0, 0, 0.04);

  /* 動き（色の変化など短いものだけに使う） */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.2s;

  /* 重なり順 */
  --z-header: 100;
  --z-loader: 200;      /* トップのローディング（ヘッダーより手前） */

  /* ページ内リンクで飛んだとき、固定ヘッダーに隠れないための余白 */
  --header-offset: 6.25rem; /* 100px */

  /* u-trim 用：書体ごとの「行の上端〜大文字の上端」「ベースライン〜行の下端」の比率 */
  --trim-top: 0.369;      /* Gen Interface JP（Display も同じ） */
  --trim-bottom: 0.364;
}

/* 画面幅ごとの「1rem の大きさ」 --------------------------------------------- */
html {
  font-size: 100%;
}

@media (max-width: 1279px) {
  html {
    font-size: calc(100vw / 1280 * 16);
  }
}

@media (max-width: 767px) {
  html {
    font-size: calc(100vw / 420 * 16);
  }

  /* SP で値が変わる変数 */
  :root {
    --fs-h1: 1.75rem; /* 28px */
    --fs-body-s: 0.9375rem; /* 15px */
    --fs-small: 0.875rem; /* 14px */
    --fs-caption: 0.8125rem; /* 13px */
    --fs-prose: 0.875rem; /* 14px */
    --gutter: 1.25rem; /* 20px */
    --space-section: 3.75rem; /* 60px */
    --header-offset: 4.5625rem; /* 73px */
  }
}

/* 2. リセット ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-offset);
}

/* ページ内リンク（#〇〇 へのリンク）は、なめらかにスクロールして移動する */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* スクロールバー：細く（8px）、つまみは主色 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(0 91 172 / 0.55);
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(0 91 172 / 0.8);
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: rgb(0 91 172 / 0.55) transparent;
  }
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dt, dd,
figure, blockquote {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul, ol {
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

small {
  font-size: inherit;
}

/* 3. 土台 ----------------------------------------------------------------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* キーボード操作のときだけ出るフォーカス枠（白＋主色の二重線。どの背景でも見える） */
:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--color-main);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 4. 文字の上下の余白を切り詰める仕組み ------------------------------------ */
.u-trim {
  --lh: var(--lh-body);
  display: flow-root;
  line-height: var(--lh);
}

.u-trim--en {
  --trim-top: 0.3;      /* Barlow */
  --trim-bottom: 0.4;
}

/* 対応ブラウザ（Chrome・Edge・Safari の新しい版）は専用のプロパティで切り詰める */
@supports (text-box: trim-both cap alphabetic) {
  .u-trim {
    text-box: trim-both cap alphabetic;
  }
}

/* 未対応のブラウザ（Firefox など）は、同じ量を計算して上下から引く */
@supports not (text-box: trim-both cap alphabetic) {
  .u-trim::before,
  .u-trim::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
  }

  .u-trim::before {
    margin-top: calc((var(--trim-top) - var(--lh) / 2) * 1em);
  }

  .u-trim::after {
    margin-bottom: calc((var(--trim-bottom) - var(--lh) / 2) * 1em);
  }
}
