/* FDEキャリア — site.css
   Ported from the Next.js design source app/globals.css (design canonical).
   The `@import "tailwindcss"` line was dropped: the markup uses only bespoke
   class names, no Tailwind utilities. Design tokens/classes are kept verbatim;
   static-site additions are appended at the end under the ADDITIONS banner. */

:root {
  /* ---- Codex パレット（正本: _codex_handoff/deliverables/tokens.md） ---- */
  --ink: #17243d;
  --ink-soft: #4f5e73;
  --ink-muted: #707b8c;
  --paper: #ffffff;
  --surface-blue: #eef4ff;
  --brand: #1748d2;
  --brand-dark: #10338f;
  --brand-pale: #dfeaff;
  --salary: #bc451e;
  --salary-pale: #fff0e9;
  --mint: #d9f3e5;
  --mint-ink: #145d3a;
  --focus: #ffbf47;

  /* ---- フェーズ意味色（Issue/Prototype/Production/Adoption・維持） ---- */
  --phase-issue: #008f6b;
  --phase-prototype: #3156e3;
  --phase-production: #d98d16;
  --phase-adoption: #d45163;

  /* ---- 旧トークン名を Codex パレットへ張り替え（既存参照を新色へ波及） ---- */
  --canvas: #f4f7fa;            /* ページ背景 = Codex surface */
  --surface: #ffffff;          /* カード・パネル = Codex paper */
  --surface-soft: #eef4ff;     /* 淡い面 = surface-blue */
  --muted: #707b8c;            /* = ink-muted */
  --muted-on-surface: #4f5e73; /* = ink-soft */
  --line: #d9e0e8;
  --line-strong: #b9c5d3;
  --jade: #1748d2;             /* 旧プライマリ緑 → ブランド青 */
  --jade-dark: #10338f;        /* → ブランド濃 */
  --blue: #1748d2;             /* 汎用青アクセント → ブランド */
  --amber: #bc451e;            /* 汎用アンバー/年収 → salary */
  --coral: #d45163;            /* 維持（phase-adoption と同値） */
  --marker: #ffbf47;           /* ハイライト/マーカー → focus ゴールド */
  --error: #b72d3c;

  --font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", Meiryo, sans-serif;
  --font-data: "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono",
    monospace;

  /* ---- タイポスケール（Codex clamp） ---- */
  --step-2: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);  /* 求人タイトル */
  --step-3: clamp(1.65rem, 1.45rem + 1vw, 2.25rem);   /* セクション見出し */
  --step-4: clamp(2rem, 1.55rem + 2.25vw, 3.4rem);    /* ヒーロー */
  --salary-size: clamp(1.55rem, 2.4vw, 2rem);

  /* ---- 形状（Codex: 入力7 / カード12 / 大面18） ---- */
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --content: 1160px;
  --shadow: 0 12px 32px rgb(28 47 79 / 0.08);
  --shadow-board: 0 12px 32px rgb(28 47 79 / 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "palt" 1;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin-top: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

main {
  overflow-x: clip;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 10px max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgb(16 23 19 / 0.16);
  background: rgb(242 244 239 / 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--marker);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-links > a:not(.header-cta) {
  position: relative;
}

.nav-links > a:not(.header-cta)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--jade);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links > a:not(.header-cta):hover {
  color: var(--ink);
}

.nav-links > a:not(.header-cta):hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
}

.header-cta:hover {
  background: var(--jade-dark);
}

.hero-shell {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  gap: 62px;
  align-items: center;
  width: min(var(--content), calc(100% - 48px));
  min-height: 690px;
  margin-inline: auto;
  padding: 52px 0 48px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 670px;
  margin-bottom: 26px;
  font-size: 68px;
  font-weight: 900;
  line-height: 1.08;
}

.hero h1 span {
  display: block;
  color: var(--jade-dark);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 29px;
  color: var(--ink-soft);
  font-size: 1.03rem;
  font-weight: 560;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 36px;
}

.primary-button,
.form-submit,
.job-consult-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 850;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.primary-button:hover,
.form-submit:hover,
.job-consult-button:hover {
  background: var(--jade-dark);
  transform: translateY(-2px);
}

.text-button {
  padding: 9px 0 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.text-button:hover {
  color: var(--jade-dark);
  border-color: var(--jade-dark);
}

.market-facts {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.25fr;
  margin: 0;
  border-block: 1px solid var(--line-strong);
}

.market-facts div {
  min-width: 0;
  padding: 14px 12px 15px 0;
}

.market-facts div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.market-facts dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 800;
}

.market-facts dd {
  margin: 0;
  font-family: var(--font-data);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.3;
}

.route-board {
  position: relative;
  padding: 23px;
  border: 1px solid #26322c;
  border-radius: var(--radius-md);
  background: var(--ink);
  box-shadow: var(--shadow-board);
  color: var(--surface);
}

.route-board::after {
  position: absolute;
  right: 17px;
  bottom: 14px;
  color: rgb(255 255 255 / 0.22);
  font-family: var(--font-data);
  font-size: 0.57rem;
  content: "35.6762N / 139.6503E";
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.18);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 800;
}

.board-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 0.7);
}

.board-header strong {
  color: var(--marker);
}

.board-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 4px rgb(0 143 107 / 0.18);
}

.board-search,
.board-filter-grid label,
.salary-control {
  display: grid;
  gap: 8px;
}

.board-search > span,
.board-filter-grid label > span,
.salary-control > span:first-child,
.origin-filter legend {
  color: rgb(255 255 255 / 0.64);
  font-size: 0.72rem;
  font-weight: 800;
}

.route-board input[type="search"],
.route-board select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-sm);
  background: #f7f8f5;
  color: var(--ink);
}

.route-board input[type="search"] {
  padding: 0 14px;
}

.route-board select {
  padding: 0 34px 0 12px;
}

.origin-filter {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.origin-filter legend {
  margin-bottom: 8px;
}

.origin-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.origin-options button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgb(255 255 255 / 0.76);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 800;
}

.origin-options button:hover {
  border-color: rgb(255 255 255 / 0.55);
  color: #ffffff;
}

.origin-options button.is-selected {
  border-color: var(--marker);
  background: var(--marker);
  color: var(--ink);
}

.board-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.salary-control {
  margin-top: 18px;
}

.salary-control strong {
  color: var(--marker);
  font-family: var(--font-data);
}

.salary-control input[type="range"] {
  width: 100%;
  height: 8px;
  margin: 2px 0;
  padding: 0;
  border: 0;
  accent-color: var(--marker);
}

.salary-marks {
  display: flex;
  justify-content: space-between;
  color: rgb(255 255 255 / 0.42);
  font-family: var(--font-data);
}

.salary-marks i {
  font-size: 0.59rem;
  font-style: normal;
}

.board-phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 19px 0 18px;
  padding: 1px;
  background: rgb(255 255 255 / 0.16);
}

.phase-summary {
  min-width: 0;
  padding: 11px 9px 13px;
  background: #16201b;
  box-shadow: inset 0 3px 0 var(--jade);
}

.phase-summary span,
.phase-summary strong {
  display: block;
  font-family: var(--font-data);
}

.phase-summary span {
  overflow: hidden;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.56rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-summary strong {
  margin-top: 7px;
  font-size: 1.18rem;
}

.phase-prototype {
  box-shadow: inset 0 3px 0 var(--blue);
}

.phase-production {
  box-shadow: inset 0 3px 0 var(--amber);
}

.phase-adoption {
  box-shadow: inset 0 3px 0 var(--coral);
}

.definition-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.definition-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--content), 100%);
  margin-inline: auto;
}

.definition-step {
  position: relative;
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 7px;
  padding: 18px 24px 18px 34px;
  border-left: 1px solid var(--line);
}

.definition-step:last-child {
  border-right: 1px solid var(--line);
}

.definition-step::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--jade);
  content: "";
}

.definition-step.step-2::before {
  background: var(--blue);
}

.definition-step.step-3::before {
  background: var(--amber);
}

.definition-step.step-4::before {
  background: var(--coral);
}

.definition-step span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.65rem;
  font-weight: 850;
}

.definition-step strong {
  font-size: 0.92rem;
}

.atlas-section,
.jobs-section {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 100px 0;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.62fr);
  gap: 64px;
  align-items: end;
}

.section-label {
  margin-bottom: 12px;
  color: var(--jade-dark);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 900;
}

.section-label-light {
  color: var(--marker);
}

.section-heading h2,
.field-visual h2,
.lens-heading h2,
.consult-copy h2 {
  margin-bottom: 0;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.16;
}

.section-heading > p,
.field-visual-copy > p:not(.section-label),
.consult-copy > p:not(.section-label):not(.media-note) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.atlas-table-wrap {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--surface);
}

.atlas-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.atlas-table th,
.atlas-table td {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.atlas-table th:last-child,
.atlas-table td:last-child {
  border-right: 0;
}

.atlas-table tbody tr:last-child td {
  border-bottom: 0;
}

.atlas-table th {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.64rem;
  font-weight: 850;
}

.atlas-table th:nth-child(1) {
  width: 17%;
}

.atlas-table th:nth-child(2) {
  width: 24%;
}

.atlas-table th:nth-child(3) {
  width: 36%;
}

.atlas-table th:nth-child(4) {
  width: 23%;
}

.atlas-table td {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.atlas-table td:last-child strong {
  color: var(--jade-dark);
}

.route-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--jade);
  vertical-align: middle;
}

.route-2 {
  background: var(--blue);
}

.route-3 {
  background: var(--amber);
}

.route-4 {
  background: var(--coral);
}

.route-5 {
  background: var(--ink);
}

.field-visual {
  background: var(--ink);
  color: var(--surface);
}

.field-visual-inner {
  display: grid;
  grid-template-columns: minmax(270px, 0.55fr) minmax(0, 1.45fr);
  gap: 52px;
  align-items: center;
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 72px 0;
}

.field-visual h2 {
  font-size: 38px;
}

.field-visual-copy > p:not(.section-label) {
  margin-top: 24px;
  color: rgb(255 255 255 / 0.66);
}

.field-visual figure {
  margin: 0;
}

.field-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.9 / 1;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.field-visual figcaption {
  margin-top: 10px;
  color: rgb(255 255 255 / 0.42);
  font-family: var(--font-data);
  font-size: 0.6rem;
}

.jobs-section {
  padding-bottom: 112px;
}

.jobs-heading {
  margin-bottom: 56px;
}

.jobs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.jobs-index {
  position: sticky;
  top: 96px;
  padding-top: 15px;
  border-top: 3px solid var(--ink);
}

.index-label {
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.67rem;
  font-weight: 850;
}

.index-count {
  display: block;
  color: var(--blue);
  font-family: var(--font-data);
  font-size: 74px;
  line-height: 0.82;
}

.index-unit {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-snapshot {
  display: grid;
  gap: 10px;
  margin: 25px 0 18px;
  padding-block: 15px;
  border-block: 1px solid var(--line);
}

.filter-snapshot div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
}

.filter-snapshot dt,
.filter-snapshot dd {
  font-size: 0.72rem;
}

.filter-snapshot dt {
  color: var(--muted);
}

.filter-snapshot dd {
  overflow: hidden;
  margin: 0;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reset-button {
  width: 100%;
  min-height: 38px;
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.reset-button:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.aside-consult-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--jade-dark);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 850;
}

.aside-consult-link:hover {
  background: var(--ink);
}

.index-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.7;
}

.job-list {
  display: grid;
  gap: 16px;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--jade);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 30px rgb(16 23 19 / 0.05);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.job-card:nth-child(4n + 2) {
  border-left-color: var(--blue);
}

.job-card:nth-child(4n + 3) {
  border-left-color: var(--amber);
}

.job-card:nth-child(4n + 4) {
  border-left-color: var(--coral);
}

.job-card:hover {
  border-top-color: var(--line-strong);
  border-right-color: var(--line-strong);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 18px 46px rgb(16 23 19 / 0.1);
  transform: translateY(-3px);
}

.job-main {
  min-width: 0;
  padding: 24px 26px;
}

.job-company-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.job-number {
  color: var(--blue);
  font-family: var(--font-data);
  font-size: 0.67rem;
}

.listing-badge {
  padding: 4px 7px;
  border: 1px solid rgb(217 141 22 / 0.38);
  border-radius: var(--radius-sm);
  background: rgb(217 141 22 / 0.1);
  color: #805005;
  font-size: 0.65rem;
}

.job-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

.job-title-row h3 {
  margin-bottom: 7px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.23;
}

.job-title-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
}

.job-salary {
  margin: 2px 0 0;
  color: var(--amber);
  font-family: var(--font-data);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.signal-meter {
  min-width: 0;
}

.signal-meter + .signal-meter {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.signal-meter-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
}

.signal-meter-label strong {
  color: var(--ink);
  font-family: var(--font-data);
}

.signal-cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.signal-cells i {
  height: 5px;
  background: var(--surface-soft);
}

.signal-cells i.is-filled {
  background: var(--jade);
}

.signal-meter:nth-child(2) .signal-cells i.is-filled {
  background: var(--blue);
}

.signal-meter:nth-child(3) .signal-cells i.is-filled {
  background: var(--coral);
}

.phase-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.phase-rail::before {
  position: absolute;
  top: 5px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: var(--line);
  content: "";
}

.phase-rail span {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--line-strong);
  font-family: var(--font-data);
  font-size: 0.58rem;
  font-weight: 800;
}

.phase-rail i {
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line);
}

.phase-rail span.is-active {
  color: var(--jade-dark);
}

.phase-rail span.is-active i {
  background: var(--jade);
  box-shadow: 0 0 0 1px var(--jade);
}

.phase-rail span.is-active:nth-child(2) {
  color: var(--blue);
}

.phase-rail span.is-active:nth-child(2) i {
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.phase-rail span.is-active:nth-child(3) {
  color: #9a5e00;
}

.phase-rail span.is-active:nth-child(3) i {
  background: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}

.phase-rail span.is-active:nth-child(4) {
  color: var(--coral);
}

.phase-rail span.is-active:nth-child(4) i {
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--coral);
}

.job-highlights {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.job-highlights li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.job-highlights li::before {
  position: absolute;
  top: 0.7em;
  left: 1px;
  width: 7px;
  height: 2px;
  background: var(--jade);
  content: "";
}

.job-footer-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink-soft);
  font-family: var(--font-data);
  font-size: 0.61rem;
  font-weight: 750;
}

.origin-note {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  text-align: right;
}

.job-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 18px;
  border-left: 1px solid var(--line);
  background: #f8faf6;
}

.job-side dl {
  display: grid;
  gap: 17px;
  margin: 0;
}

.job-side dl div {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.job-side dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.58rem;
  font-weight: 850;
}

.job-side dd {
  margin: 0;
  font-size: 0.77rem;
  font-weight: 850;
  line-height: 1.45;
}

.job-consult-button {
  min-height: 44px;
  gap: 8px;
  padding: 0 11px;
  font-size: 0.72rem;
}

.empty-state {
  padding: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.empty-state > span {
  color: var(--coral);
  font-family: var(--font-data);
  font-size: 0.67rem;
  font-weight: 850;
}

.empty-state h3 {
  margin: 12px 0 8px;
  font-size: 1.35rem;
}

.empty-state p {
  margin-bottom: 22px;
  color: var(--muted);
}

.empty-state button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
}

.lens-band {
  background: var(--ink);
  color: var(--surface);
}

.lens-inner {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 86px 0;
}

.lens-heading {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 48px;
}

.lens-heading .section-label {
  margin-bottom: 6px;
}

.lens-heading h2 {
  max-width: 650px;
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgb(255 255 255 / 0.22);
}

.lens-grid article {
  min-height: 245px;
  padding: 22px 22px 28px;
  border-left: 1px solid rgb(255 255 255 / 0.18);
}

.lens-grid article:last-child {
  border-right: 1px solid rgb(255 255 255 / 0.18);
}

.lens-grid article > span {
  display: block;
  margin-bottom: 62px;
  color: var(--marker);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 850;
}

.lens-grid h3 {
  margin-bottom: 12px;
  font-family: var(--font-data);
  font-size: 0.88rem;
}

.lens-grid p {
  margin-bottom: 0;
  color: rgb(255 255 255 / 0.65);
  font-size: 0.86rem;
  line-height: 1.75;
}

.consult-section {
  border-bottom: 1px solid var(--line-strong);
  background: #dcefe6;
}

.consult-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 0.74fr);
  gap: 80px;
  align-items: start;
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 104px 0;
}

.consult-copy h2 {
  max-width: 650px;
}

.consult-copy > p:not(.section-label):not(.media-note) {
  max-width: 620px;
  margin-top: 25px;
  color: var(--ink-soft);
}

.consult-facts {
  display: grid;
  gap: 0;
  margin: 38px 0 28px;
  border-top: 1px solid rgb(16 23 19 / 0.3);
}

.consult-facts div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgb(16 23 19 / 0.2);
}

.consult-facts dt {
  color: var(--jade-dark);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 850;
}

.consult-facts dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.media-note {
  margin: 0;
  padding-left: 13px;
  border-left: 3px solid var(--jade);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.7;
}

.consult-form {
  display: grid;
  gap: 15px;
  padding: 26px;
  border: 1px solid rgb(16 23 19 / 0.2);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 24px 56px rgb(16 23 19 / 0.12);
}

.form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 3px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.form-heading span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.61rem;
  font-weight: 850;
}

.form-heading strong {
  font-size: 1rem;
}

.selected-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 14px;
  align-items: center;
  padding: 11px 12px;
  border-left: 4px solid var(--blue);
  background: rgb(49 86 227 / 0.07);
}

.selected-job > div {
  min-width: 0;
}

.selected-job span,
.selected-job strong {
  display: block;
}

.selected-job span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
}

.selected-job strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-job button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.consult-form label:not(.consent-row) {
  display: grid;
  gap: 7px;
}

.consult-form label > span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
}

.consult-form input:not([type="checkbox"]),
.consult-form select,
.consult-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #f7f9f5;
  color: var(--ink);
}

.consult-form input:not([type="checkbox"]),
.consult-form select {
  min-height: 44px;
  padding: 0 11px;
}

.consult-form textarea {
  min-height: 118px;
  padding: 11px;
  resize: vertical;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 4px 0;
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--jade-dark);
}

.consent-row span {
  font-size: 0.67rem !important;
  line-height: 1.5;
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-caption {
  margin: -4px 0 0;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.59rem;
  text-align: center;
}

.form-success {
  min-height: 310px;
  padding: 42px 18px;
  text-align: center;
}

.form-success > span {
  color: var(--jade-dark);
  font-family: var(--font-data);
  font-size: 0.67rem;
  font-weight: 850;
}

.form-success h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
}

.form-success p {
  max-width: 330px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.form-success button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 36px max(24px, calc((100vw - var(--content)) / 2));
  background: var(--surface);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand span {
  padding: 7px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--marker);
  font-family: var(--font-data);
  font-size: 0.65rem;
  font-weight: 850;
}

.footer-brand strong {
  font-size: 0.84rem;
}

.site-footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 750;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.mobile-consult-bar {
  display: none;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
    gap: 38px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .section-heading h2,
  .consult-copy h2 {
    font-size: 40px;
  }

  .jobs-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
  }

  .job-card {
    grid-template-columns: minmax(0, 1fr) 166px;
  }

  .job-main {
    padding: 22px;
  }

  .consult-inner {
    gap: 48px;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .route-board {
    width: 100%;
  }

  .definition-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .definition-step:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .definition-step:nth-child(4) {
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .section-heading-wide,
  .field-visual-inner,
  .lens-heading,
  .consult-inner {
    grid-template-columns: 1fr;
  }

  .section-heading-wide {
    gap: 24px;
    align-items: start;
  }

  .section-heading-wide > p {
    max-width: 680px;
  }

  .field-visual-inner {
    gap: 36px;
  }

  .field-visual-copy {
    max-width: 650px;
  }

  .jobs-layout {
    grid-template-columns: 1fr;
  }

  .jobs-index {
    position: static;
    display: grid;
    grid-template-columns: auto auto minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
  }

  .index-label,
  .index-unit,
  .index-note {
    display: none;
  }

  .index-count {
    font-size: 50px;
  }

  .filter-snapshot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0 14px;
    border: 0;
  }

  .filter-snapshot div {
    display: block;
  }

  .filter-snapshot dt {
    margin-bottom: 4px;
  }

  .reset-button,
  .aside-consult-link {
    width: auto;
    margin: 0;
    white-space: nowrap;
  }

  .lens-heading {
    gap: 14px;
  }

  .lens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lens-grid article:nth-child(3) {
    border-top: 1px solid rgb(255 255 255 / 0.18);
  }

  .lens-grid article:nth-child(4) {
    border-top: 1px solid rgb(255 255 255 / 0.18);
    border-right: 1px solid rgb(255 255 255 / 0.18);
  }

  .consult-inner {
    gap: 48px;
  }

  .consult-copy {
    max-width: 720px;
  }

  .consult-form {
    max-width: 700px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p {
    display: none;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 68px;
  }

  body {
    padding-bottom: 68px;
  }

  .site-header {
    min-height: 62px;
    padding: 9px 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 44px;
    height: 38px;
  }

  .brand-copy small,
  .nav-links > a:not(.header-cta) {
    display: none;
  }

  .nav-links {
    gap: 0;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.75rem;
  }

  .hero,
  .atlas-section,
  .jobs-section,
  .field-visual-inner,
  .lens-inner,
  .consult-inner {
    width: min(100% - 30px, var(--content));
  }

  .hero {
    gap: 34px;
    padding: 36px 0 32px;
  }

  .hero-kicker {
    margin-bottom: 18px;
    font-size: 0.58rem;
  }

  .hero-kicker span:last-child {
    display: none;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: 42px;
    line-height: 1.12;
  }

  .hero-lead {
    margin-bottom: 23px;
    font-size: 0.93rem;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 14px;
    margin-bottom: 28px;
  }

  .primary-button {
    min-height: 46px;
  }

  .market-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-facts div,
  .market-facts div + div {
    padding: 11px 8px;
  }

  .market-facts div:first-child {
    padding-left: 0;
  }

  .market-facts dt {
    font-size: 0.7rem;
  }

  .market-facts dd {
    font-size: 0.72rem;
  }

  .route-board {
    padding: 18px;
  }

  .board-header {
    margin-bottom: 17px;
    font-size: 0.6rem;
  }

  .origin-options button {
    min-height: 32px;
    font-size: 0.62rem;
  }

  .board-filter-grid {
    grid-template-columns: 1fr;
  }

  .board-phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
  }

  .definition-inner {
    grid-template-columns: 1fr;
  }

  .definition-step,
  .definition-step:nth-child(2),
  .definition-step:nth-child(3),
  .definition-step:nth-child(4) {
    min-height: 76px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .definition-step:first-child {
    border-top: 0;
  }

  .atlas-section,
  .jobs-section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .field-visual h2,
  .lens-heading h2,
  .consult-copy h2 {
    font-size: 31px;
    line-height: 1.2;
  }

  .section-heading > p,
  .field-visual-copy > p:not(.section-label),
  .consult-copy > p:not(.section-label):not(.media-note) {
    font-size: 0.9rem;
  }

  .atlas-table,
  .atlas-table tbody,
  .atlas-table tr,
  .atlas-table td {
    display: block;
    width: 100%;
  }

  .atlas-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .atlas-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line-strong);
  }

  .atlas-table tr:last-child {
    border-bottom: 0;
  }

  .atlas-table td,
  .atlas-table td:first-child {
    display: block;
    min-height: 92px;
    padding: 34px 12px 13px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
  }

  .atlas-table td:nth-child(2n) {
    border-right: 0;
  }

  .atlas-table td::before {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-family: var(--font-data);
    font-size: 0.54rem;
    font-weight: 800;
    content: attr(data-label);
  }

  .atlas-table td:first-child {
    position: relative;
  }

  .atlas-table td:first-child .route-dot {
    position: absolute;
    top: 15px;
    left: 13px;
    margin: 0;
  }

  .field-visual-inner {
    padding: 58px 0;
  }

  .field-visual img {
    aspect-ratio: 1.45 / 1;
  }

  .jobs-heading {
    margin-bottom: 34px;
  }

  .jobs-index {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .filter-snapshot {
    display: none;
  }

  .aside-consult-link {
    display: none;
  }

  .job-card {
    grid-template-columns: 1fr;
  }

  .job-main {
    padding: 19px 17px;
  }

  .job-title-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .job-title-row h3 {
    font-size: 21px;
  }

  .job-salary {
    font-size: 18px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .signal-meter + .signal-meter {
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .phase-rail {
    gap: 3px;
  }

  .phase-rail span {
    font-size: 0.49rem;
  }

  .job-footer-row {
    display: grid;
  }

  .origin-note {
    text-align: left;
  }

  .job-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .job-side dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .job-side dl div {
    padding: 0;
    border: 0;
  }

  .job-consult-button {
    align-self: center;
  }

  .empty-state {
    padding: 36px 20px;
  }

  .lens-inner {
    padding: 64px 0;
  }

  .lens-grid {
    grid-template-columns: 1fr;
  }

  .lens-grid article,
  .lens-grid article:nth-child(2),
  .lens-grid article:nth-child(3),
  .lens-grid article:nth-child(4) {
    min-height: 178px;
    border-top: 1px solid rgb(255 255 255 / 0.18);
    border-right: 1px solid rgb(255 255 255 / 0.18);
  }

  .lens-grid article:first-child {
    border-top: 0;
  }

  .lens-grid article > span {
    margin-bottom: 32px;
  }

  .consult-inner {
    grid-template-columns: 1fr;
    padding: 72px 0;
  }

  .consult-form {
    padding: 19px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 16px;
  }

  .site-footer nav {
    gap: 14px;
  }

  .mobile-consult-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 16px;
    border-top: 1px solid rgb(255 255 255 / 0.2);
    background: var(--ink);
    color: var(--surface);
  }

  .mobile-consult-bar span {
    color: rgb(255 255 255 / 0.64);
    font-size: 0.68rem;
  }

  .mobile-consult-bar strong {
    color: var(--marker);
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    font-size: 0.82rem;
  }

  .header-cta {
    padding: 0 9px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .text-button {
    font-size: 0.79rem;
  }

  .market-facts dd {
    font-size: 0.65rem;
  }

  .board-header strong {
    font-size: 0.59rem;
  }

  .job-side {
    grid-template-columns: 1fr;
  }

  .job-consult-button {
    width: 100%;
  }
}

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

/* =====================================================================
   ADDITIONS — static-site-only styles (not in the design source).
   These extend the ported design for pages the SPA prototype did not
   have: shared header/footer chrome, job-card provenance + unconfirmed
   states, job detail, articles, and standalone legal/consult pages.
   All values reuse the design tokens declared in :root above.
   ===================================================================== */

/* --- Shared footer (base.html) with 職業安定法 legal block --- */
.site-footer {
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
  padding-top: 44px;
  padding-bottom: 44px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  align-items: center;
  justify-content: space-between;
}
.footer-legal {
  max-width: 900px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.85;
}
.footer-legal a { border-bottom: 1px solid var(--line-strong); }
.footer-legal a:hover { color: var(--ink); }
.footer-operator {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.8;
}
.footer-operator a { color: var(--jade-dark); border-bottom: 1px solid var(--line); }
.site-footer .copyright {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.62rem;
}

/* --- Job-card provenance + honest unconfirmed states --- */
.fde-badge {
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: var(--marker);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.company-type-badge {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted-on-surface);
  font-size: 12px;
  font-weight: 800;
}
.job-title-row h3 a { color: inherit; }
.job-title-row h3 a:hover { color: var(--jade-dark); }
.salary-na {
  color: var(--muted-on-surface);
  font-size: 13px;
  font-weight: 700;
}
.signal-meter.is-na .signal-meter-label strong { color: var(--muted); }
.phase-na,
.signal-na-note {
  display: inline-block;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.6rem;
  font-weight: 800;
}
.phase-rail-wrap { margin-bottom: 18px; }
.phase-rail-wrap .phase-rail { margin-bottom: 0; }
.phase-rail.is-unconfirmed { opacity: 0.5; }
.phase-na { margin-top: 8px; }
.job-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}
.job-source-row a {
  color: var(--jade-dark);
  font-family: var(--font-data);
  border-bottom: 1px solid var(--line-strong);
}
.job-source-row a:hover { color: var(--ink); }
.job-collect-date { font-family: var(--font-data); }

/* --- 求人カード 可読性リデザイン（会社→職名→職種→勤務地→年収のスキャン文法） --- */
.job-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}
.ws-chip {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--muted-on-surface);
  font-size: 12px;
  font-weight: 800;
}
.job-company {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.job-title {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.job-title a { color: var(--ink); }
.job-title a:hover { color: var(--jade-dark); }
.job-attrs {
  margin: 0;
  color: var(--muted-on-surface);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.job-signals {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.job-phases {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 2px 0 0;
}
.job-phases .ph {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-on-surface);
  font-size: 12px;
  font-weight: 800;
}
.job-phases .ph i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.job-phases .ph-issue i { background: var(--phase-issue); }
.job-phases .ph-prototype i { background: var(--phase-prototype); }
.job-phases .ph-production i { background: var(--phase-production); }
.job-phases .ph-adoption i { background: var(--phase-adoption); }
.job-detail-link {
  align-self: flex-end;
  margin-top: 6px;
  color: var(--jade-dark);
  font-size: 13px;
  font-weight: 800;
}
.job-detail-link:hover { color: var(--ink); }
.def-phase-ja {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.jobs-salary-note {
  margin: 0 0 18px;
  color: var(--muted-on-surface);
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .job-card { padding: 16px 15px 14px; }
  .job-title { font-size: 20px; }
}

/* --- Generic content shell for standalone pages --- */
.page-shell {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 72px 0 96px;
}
.page-narrow { max-width: 760px; }
.page-shell h1 {
  margin-bottom: 14px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.16;
}
.page-kicker {
  margin-bottom: 12px;
  color: var(--jade-dark);
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 900;
}
.page-shell h2 {
  margin: 44px 0 14px;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
}
.page-shell h3 { margin: 26px 0 10px; font-size: 1.1rem; font-weight: 850; }
.page-shell p { margin-bottom: 16px; color: var(--ink-soft); font-size: 1rem; line-height: 1.9; }
.page-shell ul, .page-shell ol { margin: 0 0 18px; padding-left: 1.3em; color: var(--ink-soft); line-height: 1.9; }
.page-shell li { margin-bottom: 8px; }
.page-shell a:not(.primary-button):not(.aside-consult-link) { color: var(--jade-dark); border-bottom: 1px solid var(--line-strong); }
.page-shell a:hover { color: var(--ink); }
.info-table {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  font-size: 0.92rem;
}
.info-table th, .info-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.info-table th {
  width: 30%;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}
.info-table a { color: var(--jade-dark); border-bottom: 1px solid var(--line); }

/* --- Job detail --- */
.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 700;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.detail-headrow {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.detail-title { margin-bottom: 10px; font-size: 34px; font-weight: 900; line-height: 1.2; }
.detail-sub { margin-bottom: 26px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.detail-signal-block {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--jade);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.detail-signal-block h2 { margin: 0 0 16px; font-size: 1rem; font-weight: 900; }
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 26px 0;
  padding: 1px;
  background: var(--line);
}
.detail-meta-grid div { padding: 14px 15px; background: var(--surface); }
.detail-meta-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.6rem;
  font-weight: 850;
}
.detail-meta-grid dd { margin: 0; font-size: 0.88rem; font-weight: 850; line-height: 1.5; }
.detail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 30px 0;
}
.external-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 850;
  transition: background 180ms ease, transform 180ms ease;
}
.external-button:hover { background: var(--jade-dark); transform: translateY(-2px); }
.detail-note { color: var(--muted); font-size: 0.72rem; line-height: 1.8; }
.detail-highlights { display: grid; gap: 8px; margin: 8px 0 20px; padding: 0; list-style: none; }
.detail-highlights li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; }
.detail-highlights li::before { position: absolute; top: 0.7em; left: 1px; width: 7px; height: 2px; background: var(--jade); content: ""; }

/* --- Articles --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.article-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 30px rgb(16 23 19 / 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 46px rgb(16 23 19 / 0.1); }
.article-thumb {
  padding: 22px 20px;
  background: var(--ink);
  color: var(--surface);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
}
.article-body { padding: 16px 20px 20px; }
.article-body p { margin: 0 0 12px; color: var(--muted); font-size: 0.86rem; line-height: 1.7; }
.article-date { color: var(--muted); font-family: var(--font-data); font-size: 0.66rem; }
.article-main {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
  padding: 64px 0 90px;
}
.article-main h1 { margin-bottom: 14px; font-size: 36px; font-weight: 900; line-height: 1.22; }
.article-info { margin-bottom: 30px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.article-content h2 { margin: 40px 0 14px; padding-top: 8px; font-size: 1.6rem; font-weight: 900; line-height: 1.35; border-top: 1px solid var(--line); }
.article-content h3 { margin: 28px 0 10px; font-size: 1.18rem; font-weight: 850; }
.article-content p { margin-bottom: 18px; color: var(--ink-soft); font-size: 1rem; line-height: 1.95; }
.article-content ul, .article-content ol { margin: 0 0 20px; padding-left: 1.35em; color: var(--ink-soft); line-height: 1.9; }
.article-content li { margin-bottom: 9px; }
.article-content a { color: var(--jade-dark); border-bottom: 1px solid var(--line-strong); }
.article-content a:hover { color: var(--ink); }
.article-content strong { font-weight: 850; }
.article-content blockquote { margin: 0 0 20px; padding: 4px 18px; border-left: 4px solid var(--jade); color: var(--ink-soft); }
.article-content .table-wrap { overflow-x: auto; margin: 0 0 22px; }
.article-content table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 0.9rem; }
.article-content th, .article-content td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; line-height: 1.6; }
.article-content th { color: var(--muted); font-weight: 850; }
.guide-link { margin-top: 24px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-soft); font-size: 0.9rem; }

/* --- FAQ (article + index) --- */
.faq-grid { display: grid; gap: 10px; margin-top: 20px; }
.faq-grid details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.faq-grid summary {
  padding: 15px 18px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::before { content: "＋ "; color: var(--jade-dark); font-family: var(--font-data); }
.faq-grid details[open] summary::before { content: "− "; }
.faq-grid details p { margin: 0; padding: 0 18px 16px; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.85; }
.faq-section { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; padding: 0 0 40px; }
.faq-section.on-index { padding: 0 0 100px; }
.faq-section .section-label { margin-bottom: 10px; }
.faq-section h2 { margin-bottom: 4px; font-size: 31px; font-weight: 900; }

/* --- Author box --- */
.author-box {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.author-box h3 { margin-bottom: 6px; font-size: 0.95rem; font-weight: 850; }
.author-box p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.8; }
.author-box a { color: var(--jade-dark); border-bottom: 1px solid var(--line); }
.author-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--marker);
  font-family: var(--font-data);
  font-weight: 900;
}

/* --- Standalone consult page: keep section chrome, drop min-heights --- */
.consult-section.standalone .consult-inner { padding: 72px 0 90px; }

/* --- Form status line (Google Form pattern) --- */
.form-status { margin: 6px 0 0; font-size: 0.8rem; font-weight: 800; line-height: 1.6; }
.form-status.ok { color: var(--jade-dark); }
.form-status.ng { color: var(--error); }

@media (max-width: 700px) {
  .page-shell { width: min(100% - 30px, var(--content)); padding: 48px 0 72px; }
  .page-shell h1, .detail-title { font-size: 30px; }
  .article-main { width: min(100% - 30px, 760px); padding: 44px 0 64px; }
  .article-main h1 { font-size: 28px; }
  .article-content h2 { font-size: 1.35rem; }
  .faq-section h2 { font-size: 24px; }
}

/* hidden属性の確実な非表示（.job-card等のdisplay指定がUAデフォルトを上書きするため） */
[hidden] { display: none !important; }

/* カード下部のアクション行: 詳細（主）＋相談（KPI導線・全カード必須） */
.job-actions { display: flex; align-items: center; gap: 18px; margin: 10px 0 0; }
.job-consult-link {
  font-size: 13px; font-weight: 700; color: var(--muted-on-surface);
  text-decoration: underline; text-underline-offset: 3px;
}
.job-consult-link:hover { color: var(--ink); }

/* ============================================================
   HOME REDESIGN 2026-07 — 通常の求人サイト型トップページ
   （巨大ヒーロー / 黒Route Finder / Field Map / FDE Lens を廃止し、
    白背景・検索バー密着・普通に読めるレイアウトへ再構築）
   ============================================================ */

/* --- コンパクトヒーロー（白背景・縦幅を大幅圧縮） --- */
.home-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.home-hero-inner {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 40px 0 34px;
}
.home-hero h1 {
  margin: 0 0 14px;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.home-hero-sub {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
}
.home-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-hero-chips li {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}
.home-hero-chips strong {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--jade-dark);
}

/* --- 求人ボードのラッパ（検索バー＋一覧を content 幅で束ねる） --- */
.board-section {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 26px 0 96px;
}

/* --- 検索バー（ライト・横並び・一覧に密着・sticky） --- */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 20;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 6px 20px rgb(16 23 19 / 0.06);
}
.fb-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.fb-row-sub {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.fb-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-on-surface);
  font-size: 0.72rem;
  font-weight: 800;
}
.fb-field {
  display: block;
  min-width: 0;
}
.fb-keyword {
  flex: 1 1 240px;
}
.filter-bar input[type="search"],
.filter-bar select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.filter-bar select {
  padding-right: 30px;
  min-width: 150px;
}
.filter-bar input[type="search"]:focus,
.filter-bar select:focus {
  outline: 2px solid var(--jade);
  outline-offset: 1px;
  border-color: var(--jade);
}
.fb-count {
  margin-left: auto;
  white-space: nowrap;
  color: var(--muted-on-surface);
  font-size: 0.9rem;
  font-weight: 800;
}
.fb-count strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--jade-dark);
}
.fb-reset {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.fb-reset:hover {
  border-color: var(--ink);
  background: var(--canvas);
}
.fb-pure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.fb-pure input {
  width: 16px;
  height: 16px;
  accent-color: var(--jade);
}
.fb-salary {
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  min-width: 180px;
}
.fb-salary .fb-label {
  margin-bottom: 3px;
}
.fb-salary .fb-label strong {
  color: var(--jade-dark);
  font-weight: 900;
}
.fb-salary input[type="range"] {
  width: 100%;
  accent-color: var(--jade);
}

/* --- 出身バックグラウンド（ライトに再スキン。origin-options はJS依存で維持） --- */
.origin-filter {
  flex: 1 1 320px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.origin-filter legend {
  padding: 0;
  color: var(--muted-on-surface);
  font-size: 0.72rem;
  font-weight: 800;
}
.origin-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.origin-options button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.origin-options button:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.origin-options button.is-selected {
  border-color: var(--jade-dark);
  background: var(--jade-dark);
  color: var(--surface);
}

/* --- フェーズ別件数チップ（バー直下・1行・4色ドット維持・ライト） --- */
.phase-chips-live {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  background: none;
}
.phase-chips-live .phase-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: none;
}
.phase-chips-live .phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--phase-issue);
}
.phase-chips-live .phase-prototype .phase-dot { background: var(--phase-prototype); }
.phase-chips-live .phase-production .phase-dot { background: var(--phase-production); }
.phase-chips-live .phase-adoption .phase-dot { background: var(--phase-adoption); }
.phase-chips-live .phase-name {
  display: inline;
  overflow: visible;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.phase-chips-live .phase-summary strong {
  display: inline;
  margin: 0;
  font-family: var(--font-data);
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--jade-dark);
}

/* --- 「FDEとは」コンパクト帯（4フェーズ・1行4カラム＋記事リンク） --- */
.whatis-band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.whatis-inner {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 40px 0;
}
.whatis-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.whatis-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}
.whatis-link {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--jade-dark);
  border-bottom: 1px solid var(--line-strong);
}
.whatis-link:hover { border-color: var(--jade-dark); }
.whatis-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.whatis-step {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--phase-issue);
  border-radius: var(--radius-sm);
  background: var(--canvas);
}
.whatis-step.step-2 { border-top-color: var(--phase-prototype); }
.whatis-step.step-3 { border-top-color: var(--phase-production); }
.whatis-step.step-4 { border-top-color: var(--phase-adoption); }
.whatis-step .ws-en {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.whatis-step .ws-ja {
  display: block;
  margin: 2px 0 6px;
  font-size: 1rem;
  font-weight: 900;
}
.whatis-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* --- 出身職種 → FDEルート（Atlas簡略版・リンクリスト） --- */
.route-list-section {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 56px 0;
}
.route-list-head {
  margin-bottom: 22px;
}
.route-list-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
}
.route-list-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.route-links {
  display: grid;
  gap: 10px;
}
.route-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--jade);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}
.route-link:hover {
  border-color: var(--line-strong);
  border-left-color: var(--jade-dark);
  transform: translateX(2px);
}
.route-link strong {
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--ink);
}
.route-link .route-arrow {
  color: var(--jade-dark);
  font-weight: 900;
}
.route-link .route-desc {
  color: var(--muted-on-surface);
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- レスポンシブ: 検索バーは縦積み・sticky解除・320pxで横スクロールなし --- */
@media (max-width: 860px) {
  .whatis-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-hero-inner { width: min(var(--content), calc(100% - 30px)); padding: 30px 0 26px; }
  .home-hero h1 { font-size: 30px; }
  .board-section,
  .whatis-inner,
  .route-list-section { width: min(var(--content), calc(100% - 30px)); }
  .filter-bar {
    position: static;
    top: auto;
  }
  .fb-row-main,
  .fb-row-sub { flex-direction: column; align-items: stretch; }
  .fb-field,
  .fb-keyword,
  .fb-salary,
  .origin-filter { flex: 1 1 auto; width: 100%; }
  .filter-bar select { min-width: 0; }
  .fb-count { margin-left: 0; }
  .fb-reset { align-self: flex-start; }
  .whatis-steps { grid-template-columns: 1fr; }
  .whatis-head h2,
  .route-list-head h2 { font-size: 22px; }
}

/* 年収・シグナルは判読優先でsans（monospaceは極小カウンタのみ・2026-07-12可読性改修） */
.job-salary, .job-signals, .job-card [class*="signal"] {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif !important;
}

/* ============================================================
   CODEX 移植レイヤー（正本: _codex_handoff/deliverables/*）
   末尾に置き、先行の旧カード/ボタン定義を上書きする。
   ============================================================ */

/* --- ヒーロー: eyebrow ＋ 実数チップを枠付きボックスへ --- */
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.home-hero h1 {
  font-size: var(--step-4);
  line-height: 1.22;
  letter-spacing: -0.03em;
}
.home-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.home-hero-chips li {
  flex: 1 1 33%;
  min-width: 92px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
}
.home-hero-chips li + li { border-left: 1px solid var(--line); }
.home-hero-chips strong {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 900;
  color: var(--ink);
}
.home-hero-chips span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

/* --- 検索パネルの見出し（Codex「経験と希望から探す」枠） --- */
.search-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.section-kicker {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.search-heading h2 {
  margin: 0;
  font-size: var(--step-3);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.search-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
}
.filter-bar { border-top: 4px solid var(--brand); }

/* FDE直球トグル: 既存 input#rf-pure を Codex スイッチ様式へ（JS挙動=checkboxのまま） */
.fb-pure input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 34px;
  height: 20px;
  margin: 0;
  border-radius: 20px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.18s ease;
  flex: 0 0 auto;
}
.fb-pure input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease;
}
.fb-pure input:checked { background: var(--brand); }
.fb-pure input:checked::after { transform: translateX(14px); }

/* --- 求人カード: 横型・根拠レール（Codex .job-card 正本） --- */
.job-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  overflow: hidden;
  box-shadow: none;
}
.job-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.job-card:nth-child(4n + 2),
.job-card:nth-child(4n + 3),
.job-card:nth-child(4n + 4) { border-left-color: var(--line); }

.evidence-rail {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 17px 0;
  background: var(--surface-blue);
  border-right: 1px solid var(--brand-pale);
}
.evidence-rail span {
  writing-mode: vertical-rl;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.evidence-rail.is-salary { background: var(--mint); border-right-color: #b5e2ca; }
.evidence-rail.is-salary span { color: var(--mint-ink); }

.job-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  align-items: start;
  padding: 24px 26px 22px;
}
.job-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.job-actions {
  grid-column: 2;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.job-actions .button { min-height: 42px; padding: 9px 16px; white-space: nowrap; }

.company-row { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.company-name { margin: 0; color: var(--ink); font-size: 0.875rem; font-weight: 800; }
.tag {
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-soft);
  background: var(--canvas);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.tag-pure { color: var(--mint-ink); background: var(--mint); border-color: #b5e2ca; }

.job-title {
  margin: 7px 0 6px;
  font-size: var(--step-2);
  font-weight: 900;
  line-height: 1.38;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.job-title a { color: var(--ink); text-decoration: none; }
.job-title a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

.job-meta {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.job-meta li { display: flex; align-items: center; }
.job-meta li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 10px;
  background: var(--line-strong);
  border-radius: 50%;
}

.salary {
  margin: 14px 0 0;
  color: var(--salary);
  font-family: var(--font-body);
  font-size: var(--salary-size);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.salary.salary-missing {
  color: var(--ink-soft);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.job-summary {
  max-width: 740px;
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.7;
}
/* USP行（Codex案外・中身は残す。要約の下に控えめ・ink-muted基調） */
.job-body > .job-signals { margin-top: 8px; color: var(--ink-muted); font-size: 12px; }
.job-body > .job-phases { margin-top: 8px; }

/* 旧レイアウト由来の media 上書き（横スクロール/2カラム崩れ防止） */
@media (max-width: 1120px) {
  .job-card { grid-template-columns: 38px 1fr; }
  .job-main { padding: 24px 26px 22px; }
}
@media (max-width: 980px) {
  .job-main { grid-template-columns: 1fr; }
  .job-actions { grid-column: 1; flex-direction: row; align-self: start; margin-top: 18px; }
  .job-actions .button { flex: 0 1 auto; }
}
@media (max-width: 720px) {
  .job-card { grid-template-columns: 28px 1fr; }
  .job-main { padding: 20px 16px 18px; }
  .job-actions { width: 100%; flex-direction: column; }
  .job-actions .button { width: 100%; }
  .evidence-rail span { font-size: 12px; }
}
@media (max-width: 420px) {
  .job-card { grid-template-columns: 23px 1fr; }
  .job-main { padding-inline: 13px; }
}

/* --- ボタン体系（主要CTA=青塗り / 副CTA=白地青枠） --- */
.button {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }
.button-ghost { background: var(--paper); color: var(--brand); }
.button-ghost:hover { background: var(--brand); color: #fff; }

.primary-button,
.form-submit,
.job-consult-button,
.external-button,
.header-cta {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.primary-button:hover,
.form-submit:hover,
.job-consult-button:hover,
.external-button:hover,
.header-cta:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.aside-consult-link { background: var(--brand); }
.aside-consult-link:hover { background: var(--brand-dark); }
.text-button { border-color: var(--brand); color: var(--brand); }
.text-button:hover { color: var(--brand-dark); border-color: var(--brand-dark); }

/* --- 求人詳細: 根拠帯（Codex source-banner 様式） --- */
.detail-evidence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid var(--brand-pale);
  border-radius: var(--radius-sm);
  background: var(--surface-blue);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
}
.detail-evidence span {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.detail-evidence.is-salary { border-color: #b9d8c8; background: #eef9f3; color: var(--mint-ink); }
.detail-evidence.is-salary span { background: var(--mint-ink); }
