/* ============================================================
   BCJ Jobs — 求人一覧 (/jobs/) ・求人詳細
   mock /works/top・/works/detail のスタイルをテーマトークンへ移植
   ============================================================ */

/* ============================================================
   一覧 (archive-job.php)
   ============================================================ */
.jobs-section {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 140px;
  background: var(--bg);
}
.jobs-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section header */
.jobs-header {
  margin-bottom: 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.jobs-header-left { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.jobs-eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--blue-2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.jobs-eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--blue); }
.jobs-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--fg);
}
.jobs-title .accent { color: var(--blue-2); }
.jobs-subtitle { font-size: 14px; line-height: 1.9; color: var(--fg-dim); max-width: 520px; }
.jobs-header-right {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  letter-spacing: -.02em;
}

/* Layout */
.jobs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* ===== Sidebar ===== */
.jobs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.jobs-sidebar::-webkit-scrollbar { width: 6px; }
.jobs-sidebar::-webkit-scrollbar-thumb { background: var(--line); }
.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 6px;
}
.sidebar-head h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--fg);
}
.sidebar-head .reset {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 11px;
  color: var(--fg-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sidebar-head .reset:hover { color: var(--blue-2); }
.arrow-mobile { display: none; }

.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--blue-2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-group h4 .jp {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 11px;
  color: var(--gray-200);
  letter-spacing: .02em;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 12px;
  color: var(--gray-400);
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 11px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease-out);
  user-select: none;
}
.chip:hover { border-color: var(--gray-500); color: var(--fg); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

/* ===== Main ===== */
.jobs-main { min-width: 0; }

.jobs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}
.jobs-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: .04em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.jobs-count .num { color: var(--fg); font-size: 22px; font-weight: 500; line-height: 1; }
.jobs-count .jp { color: var(--gray-200); margin-left: 8px; }
.jobs-sort { display: flex; gap: 4px; }
.sort-tab {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--fg-dim);
  border-bottom: 1px solid transparent;
  padding: 8px 14px;
  text-decoration: none;
  transition: all var(--t-fast);
}
.sort-tab:hover { color: var(--fg); }
.sort-tab.active { color: var(--fg); border-bottom-color: var(--blue); }

/* ===== Job card ===== */
.job-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  margin-bottom: 14px;
  overflow: hidden;
  transition: background var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.job-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s var(--ease-out);
  z-index: 3;
}
.job-card:hover { border-color: var(--line); background: var(--bg-3); transform: translateY(-2px); }
.job-card:hover::before { transform: scaleY(1); }

.job-card-link {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  color: inherit;
  text-decoration: none;
}

.job-thumb {
  position: relative;
  aspect-ratio: 5 / 4;
  background-image: var(--bg);
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.job-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 40%, rgba(5, 5, 5, .55) 100%);
}
.job-cat-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(5, 5, 5, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px 6px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #fff;
  letter-spacing: .08em;
}
.job-cat-badge::before { content: ""; width: 6px; height: 6px; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.job-cat-badge .jp { font-family: var(--font-jp); font-weight: 700; font-size: 11px; margin-left: 4px; }
.job-new-flag {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 10px;
  color: #fff;
  background: var(--blue);
  padding: 4px 7px;
  letter-spacing: .08em;
}

.job-content {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.job-tag {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 10.5px;
  color: var(--fg-dim);
  border: 1px solid var(--line-2);
  padding: 3px 7px;
}
.job-tag.accent { color: var(--blue-2); border-color: rgba(31, 78, 240, .45); }
.job-tag.closed { color: var(--fg-mute); border-color: var(--line-2); }

.job-card-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-excerpt {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fg-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  gap: 14px;
  flex-wrap: wrap;
}
.job-meta-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.job-company {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--gray-400);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-location { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim); letter-spacing: .04em; }
.job-meta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.job-salary {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
  letter-spacing: .02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.job-salary .currency { font-size: 10px; color: var(--blue-2); font-weight: 700; }
.job-salary .unit { font-size: 10.5px; color: var(--fg-dim); font-weight: 500; margin-left: 2px; }
.job-deadline { font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); letter-spacing: .04em; }

/* 0件表示 */
.jobs-empty {
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: 64px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--fg-dim);
}
.jobs-empty-en {
  font-family: var(--font-display);
  font-size: 28px;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  letter-spacing: .02em;
}

/* ページネーション（WP標準 the_posts_pagination） */
.jobs-main .pagination { margin-top: 40px; }
.jobs-main .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.jobs-main .page-numbers {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  border: 1px solid var(--line-2);
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  text-decoration: none;
  transition: all var(--t-fast);
}
.jobs-main .page-numbers:hover { border-color: var(--line); color: var(--fg); }
.jobs-main .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.jobs-main .page-numbers.dots { border: 0; }

/* ============================================================
   詳細 (single-job.php)
   ============================================================ */
.job-hero { position: relative; padding: calc(var(--header-h) + 40px) 0 0; }
.job-hero .hero-head { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.job-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: .06em;
  margin-bottom: 26px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.job-hero .breadcrumb a { color: var(--fg-dim); text-decoration: none; transition: color var(--t-fast); }
.job-hero .breadcrumb a:hover { color: var(--blue-2); }
.job-hero .breadcrumb .sep { color: var(--fg-mute); }
.job-hero .breadcrumb .current {
  color: var(--gray-200);
  max-width: 32em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-2);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-cat::before { content: ""; width: 6px; height: 6px; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.hero-new {
  font-family: var(--font-display);
  font-size: 10px;
  color: #fff;
  background: var(--blue);
  padding: 4px 8px;
  letter-spacing: .08em;
}
.hero-closed {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 11px;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  padding: 4px 8px;
}

.job-detail-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--fg);
  margin-bottom: 18px;
}
.job-company-name {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-200);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.job-company-name::before { content: ""; width: 20px; height: 1px; background: var(--line); }

.hero-conds { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-cond {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 13px;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-cond.salary {
  border-color: rgba(31, 78, 240, .5);
  color: var(--blue-2);
  font-weight: 700;
  font-family: var(--font-sans);
}

.hero-cover { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.hero-cover-inner { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--bg-2); }
.hero-cover-img {
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(.15) contrast(1.05);
}
.hero-cover-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 5, 5, .5), transparent 45%); }
.cv-corner { position: absolute; width: 20px; height: 20px; z-index: 3; }
.cv-corner.tl { top: 16px; left: 56px; border-top: 1px solid var(--blue); border-left: 1px solid var(--blue); }
.cv-corner.br { bottom: 16px; right: 56px; border-bottom: 1px solid var(--blue); border-right: 1px solid var(--blue); }

/* ===== Body grid ===== */
.job-body { padding: 80px 0 120px; }
.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.job-main { min-width: 0; }

/* 本文（Rails body 由来のコンテンツ） */
.story-sec { margin-bottom: 72px; }
.story-sec p { font-size: 16px; line-height: 1.95; color: var(--gray-200); letter-spacing: .01em; margin-bottom: 20px; }
.story-sec p strong { color: var(--fg); font-weight: 700; }
.story-sec h2 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  color: var(--fg);
  margin: 40px 0 24px;
  padding-left: 18px;
  position: relative;
}
.story-sec h2::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
}
.story-sec h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  margin: 32px 0 16px;
}
.story-sec ul { list-style: none; margin: 24px 0; padding: 0; }
.story-sec ul li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-200);
  margin-bottom: 14px;
  padding-left: 30px;
  position: relative;
}
.story-sec ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 8px;
  background: var(--blue);
  transform: rotate(45deg);
}
.story-sec img { max-width: 100%; height: auto; border: 1px solid var(--line-2); margin: 32px 0; }

/* ---- Inline CTA ---- */
.inline-cta { margin: 48px 0; }
.inline-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid rgba(31, 78, 240, .3);
  background: radial-gradient(ellipse at 20% 50%, rgba(31, 78, 240, .1), transparent 60%);
  transition: all var(--t-base) var(--ease-out);
  gap: 20px;
  flex-wrap: wrap;
}
.inline-cta-inner:hover { border-color: rgba(31, 78, 240, .6); box-shadow: 0 0 40px rgba(31, 78, 240, .1); }
.inline-cta-eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--blue-2);
  margin-bottom: 6px;
}
.inline-cta-text { font-family: var(--font-jp); font-weight: 700; font-size: 17px; color: var(--fg); }
.inline-cta-btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  background: var(--blue);
  color: #fff;
  padding: 14px 26px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--t-base) var(--ease-out);
  flex-shrink: 0;
  white-space: nowrap;
}
.inline-cta-btn:hover { background: var(--fg); color: var(--bg); }

/* ---- Spec / Company table ---- */
.spec-block { margin-bottom: 64px; }
.spec-head {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.spec-head .en { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: .18em; color: var(--blue-2); }
.spec-table { display: flex; flex-direction: column; }
.spec-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
}
.spec-row dt { font-family: var(--font-jp); font-weight: 700; font-size: 13px; color: var(--fg-dim); letter-spacing: .04em; }
.spec-row dd { font-size: 15px; line-height: 1.85; color: var(--gray-100); }
.spec-row dd a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Apply sticky card ===== */
.apply-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 28px 26px;
}
.apply-card .ac-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue-2);
  letter-spacing: .08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.apply-card .ac-cat::before { content: ""; width: 5px; height: 5px; background: var(--blue); }
.apply-card .ac-salary {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 30px;
  color: var(--fg);
  letter-spacing: .01em;
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.apply-card .ac-salary .cur { font-size: 15px; color: var(--blue-2); }
.apply-card .ac-salary .unit { font-size: 14px; color: var(--fg-dim); font-weight: 500; margin-left: 2px; }
.apply-card .ac-salary-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.apply-card .ac-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 22px;
}
.apply-card .ac-meta-row { display: flex; gap: 12px; font-size: 13px; line-height: 1.6; }
.apply-card .ac-meta-row .label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--blue-2);
  min-width: 48px;
  padding-top: 3px;
}
.apply-card .ac-meta-row .val { color: var(--gray-100); }
.apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  background: var(--blue);
  color: #fff;
  padding: 18px;
  text-decoration: none;
  transition: all var(--t-base) var(--ease-out);
}
.apply-btn::after { content: "\2192"; transition: transform var(--t-base); }
.apply-btn:hover { background: var(--fg); color: var(--bg); }
.apply-btn:hover::after { transform: translateX(4px); }
.apply-btn.is-closed { background: var(--bg-3); color: var(--fg-mute); cursor: not-allowed; }
.apply-btn.is-closed::after { content: none; }

/* エントリー送信中・応募済み */
.js-apply.is-sending { opacity: .6; pointer-events: none; }
.js-apply.is-done {
  background: var(--bg-3);
  color: var(--fg-dim);
  pointer-events: none;
}
.apply-btn.is-done::after { content: "\2713"; }

/* エントリー結果トースト */
.apply-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  z-index: var(--z-toast);
  max-width: min(92vw, 480px);
  background: var(--bg-3);
  border: 1px solid rgba(31, 78, 240, .5);
  color: var(--fg);
  font-family: var(--font-jp);
  font-size: 13px;
  line-height: 1.7;
  padding: 14px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.apply-toast.show { opacity: 1; transform: translate(-50%, 0); }
.apply-toast.is-error { border-color: #a33; }
@media (max-width: 980px) {
  /* モバイル応募バーと重ならないように */
  .apply-toast { bottom: 88px; }
}

/* ===== Similar jobs ===== */
.similar { padding: 100px 0; border-top: 1px solid var(--line-2); }
.similar-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.similar-header { margin-bottom: 44px; }
.similar-eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--blue-2);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.similar-eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--blue); }
.similar-title { font-family: var(--font-jp); font-weight: 700; font-size: clamp(24px, 3vw, 36px); color: var(--fg); }
.similar-title .accent { color: var(--blue-2); }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sim-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  overflow: hidden;
  text-decoration: none;
  transition: all .35s var(--ease-out);
}
.sim-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s var(--ease-out);
  z-index: 3;
}
.sim-card:hover { border-color: var(--line); transform: translateY(-2px); }
.sim-card:hover::before { transform: scaleY(1); }
.sim-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-image: var(--bg);
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.sim-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0, 0, 0, 0) 40%, rgba(5, 5, 5, .55) 100%); }
.sim-cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 5, 5, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #fff;
  letter-spacing: .06em;
}
.sim-cat-badge::before { content: ""; width: 5px; height: 5px; background: var(--blue); }
.sim-content { padding: 20px 22px; }
.sim-card-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.sim-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.sim-salary { font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: var(--fg); display: flex; align-items: baseline; gap: 2px; }
.sim-salary .cur { font-size: 10px; color: var(--blue-2); }
.sim-salary .unit { font-size: 10px; color: var(--fg-dim); font-weight: 500; margin-left: 2px; }
.sim-loc { font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); letter-spacing: .04em; }

/* ===== Mobile apply bar ===== */
.mobile-apply { display: none; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 980px) {
  /* 一覧 */
  .jobs-section { padding: calc(var(--header-h) + 24px) 0 80px; }
  .jobs-container { padding: 0 20px; }
  .jobs-header { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 32px; }
  .jobs-header-right { display: none; }
  .jobs-layout { grid-template-columns: 1fr; gap: 24px; }
  .jobs-sidebar { position: static; padding: 18px; max-height: none; overflow: visible; }
  .sidebar-head { cursor: pointer; user-select: none; padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
  .arrow-mobile { display: block; color: var(--blue-2); font-size: 14px; transition: transform var(--t-base); }
  .jobs-sidebar.collapsed .arrow-mobile { transform: rotate(180deg); }
  .jobs-sidebar.collapsed .sidebar-body,
  .jobs-sidebar.collapsed .sidebar-head .reset { display: none; }
  .sidebar-body { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line-2); }
  .job-card-link { grid-template-columns: 1fr; }
  .job-thumb { aspect-ratio: 16 / 9; }
  .job-content { padding: 18px; }
  .jobs-title { font-size: 24px; }
  .jobs-toolbar { padding-bottom: 14px; margin-bottom: 14px; }
  .jobs-count .num { font-size: 18px; }
  .sort-tab { padding: 6px 8px; font-size: 10px; letter-spacing: .12em; }

  /* 詳細 */
  .job-hero { padding: calc(var(--header-h) + 16px) 0 0; }
  .job-hero .hero-head { padding: 0 22px; }
  .hero-cover { padding: 0 22px; }
  .cv-corner.tl { left: 38px; }
  .cv-corner.br { right: 38px; }
  .hero-conds { margin-bottom: 32px; }
  .job-body { padding: 48px 0 100px; }
  .body-grid { grid-template-columns: 1fr; gap: 0; padding: 0 22px; }
  .apply-card { display: none; }
  .story-sec { margin-bottom: 56px; }
  .inline-cta-inner { flex-direction: column; text-align: center; padding: 24px; }
  .spec-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .spec-row dt { font-size: 12px; color: var(--blue-2); }
  .similar { padding: 70px 0; }
  .similar-container { padding: 0 22px; }
  .similar-grid { grid-template-columns: 1fr; gap: 16px; }

  /* モバイル応募バー */
  .mobile-apply {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 140;
    background: rgba(24, 26, 32, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-2);
    padding: 12px 18px;
    align-items: center;
    gap: 14px;
    transform: translateY(100%);
    transition: transform .4s var(--ease-out);
  }
  .mobile-apply.show { transform: translateY(0); }
  .mobile-apply .ma-salary { flex: 1; min-width: 0; }
  .mobile-apply .ma-salary .num { font-family: var(--font-sans); font-weight: 700; font-size: 18px; color: var(--fg); display: flex; align-items: baseline; gap: 2px; }
  .mobile-apply .ma-salary .num .cur { font-size: 11px; color: var(--blue-2); }
  .mobile-apply .ma-salary .num .unit { font-size: 10px; color: var(--fg-dim); font-weight: 500; }
  .mobile-apply .ma-salary .lbl {
    font-family: var(--font-jp);
    font-size: 10px;
    color: var(--fg-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-apply .ma-btn {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .1em;
    background: var(--blue);
    color: #fff;
    padding: 15px 28px;
    text-decoration: none;
    white-space: nowrap;
  }
}
