/* ============================
   BCJ Employer Panel — Modern SaaS Design
   ============================ */

/* --- Design Tokens --- */
:root {
  /* Primary: BCJ Blue */
  --emp-primary: #1f4ef0;
  --emp-primary-light: #3b6ff8;
  --emp-primary-dark: #1a3ed0;
  --emp-primary-50: #eef2ff;
  --emp-primary-100: #dbeafe;

  /* Sidebar */
  --emp-sidebar-width: 260px;
  --emp-sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --emp-sidebar-text: #94a3b8;
  --emp-sidebar-hover: rgba(255,255,255,0.06);
  --emp-sidebar-active-bg: rgba(31,78,240,0.15);
  --emp-sidebar-active-text: #60a5fa;

  /* Layout */
  --emp-bg: #f8fafc;
  --emp-surface: #ffffff;
  --emp-border: #e2e8f0;
  --emp-border-light: #f1f5f9;

  /* Text */
  --emp-text: #0f172a;
  --emp-text-secondary: #475569;
  --emp-text-muted: #94a3b8;

  /* Semantic */
  --emp-success: #16a34a;
  --emp-warning: #f59e0b;
  --emp-danger: #ef4444;
  --emp-info: #3b82f6;

  /* Shadows */
  --emp-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --emp-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --emp-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --emp-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --emp-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Radius */
  --emp-radius: 12px;
  --emp-radius-sm: 8px;
  --emp-radius-lg: 16px;
  --emp-radius-full: 9999px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after { box-sizing: border-box; }

body.employer-body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--emp-bg);
  color: var(--emp-text);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: var(--emp-primary); }
a:hover { color: var(--emp-primary-dark); }

/* ============================
   Sidebar
   ============================ */
.employer-sidebar {
  width: var(--emp-sidebar-width);
  background: var(--emp-sidebar-bg);
  color: var(--emp-sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  overflow-y: auto;
}

/* Brand */
.employer-sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.employer-sidebar-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.employer-sidebar-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b6ff8, #1a3ed0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.employer-sidebar-brand-text {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.employer-sidebar-brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--emp-sidebar-text);
  margin-top: 2px;
  letter-spacing: 0;
}

.employer-sidebar-logo {
  display: block;
  height: 24px;
  width: auto;
  /* サイドバーは濃紺背景のため、青ロゴを白く反転させて視認性を確保する */
  filter: brightness(0) invert(1);
}

/* Nav */
.employer-sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.employer-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--emp-sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--emp-radius-sm);
  transition: all 0.15s ease;
}

.employer-sidebar-nav a .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
}

.employer-sidebar-nav a .nav-icon svg {
  width: 20px;
  height: 20px;
}

.employer-sidebar-nav a:hover {
  background: var(--emp-sidebar-hover);
  color: #e2e8f0;
}

.employer-sidebar-nav a:hover .nav-icon { opacity: 1; }

.employer-sidebar-nav a.active {
  background: var(--emp-sidebar-active-bg);
  color: var(--emp-sidebar-active-text);
  font-weight: 600;
}

.employer-sidebar-nav a.active .nav-icon {
  opacity: 1;
  color: var(--emp-sidebar-active-text);
}

/* Sidebar divider */
.employer-sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 0;
}

/* Sidebar footer — user info */
.employer-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.employer-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employer-sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--emp-radius-full);
  background: linear-gradient(135deg, #3b6ff8, #1a3ed0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.employer-sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.employer-sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employer-sidebar-company-name {
  font-size: 11px;
  color: var(--emp-sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employer-sidebar-logout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--emp-sidebar-text);
  text-decoration: none;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.employer-sidebar-logout:hover {
  color: #fca5a5;
  background: rgba(239,68,68,0.1);
}

/* ============================
   Main content
   ============================ */
.employer-main {
  flex: 1;
  margin-left: var(--emp-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.employer-header {
  background: var(--emp-surface);
  border-bottom: 1px solid var(--emp-border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.85);
}

.employer-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--emp-text);
}

.employer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hamburger (mobile only) */
.employer-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--emp-text);
  cursor: pointer;
  padding: 4px;
  font-size: 24px;
  line-height: 1;
}

.employer-sidebar-overlay { display: none; }

/* Content area */
.employer-content {
  padding: 28px 32px;
  flex: 1;
}

/* ============================
   Flash messages
   ============================ */
.employer-flash {
  padding: 14px 18px;
  border-radius: var(--emp-radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: emp-flash-in 0.3s ease;
}

@keyframes emp-flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.employer-flash-notice {
  background: var(--emp-primary-50);
  color: var(--emp-primary-dark);
  border-left: 4px solid var(--emp-primary);
}

.employer-flash-alert {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid var(--emp-danger);
}

/* ============================
   Cards
   ============================ */
.employer-card {
  background: var(--emp-surface);
  border-radius: var(--emp-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--emp-shadow);
  border: 1px solid var(--emp-border-light);
  transition: box-shadow 0.2s ease;
}

.employer-card:hover {
  box-shadow: var(--emp-shadow-md);
}

.employer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--emp-border-light);
}

.employer-card-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--emp-text);
}

/* ============================
   Dashboard Stats — Gradient Cards
   ============================ */
.employer-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.employer-stat-card {
  border-radius: var(--emp-radius-lg);
  padding: 24px 24px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: default;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.employer-stat-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
}

/* ウォーターマークアイコン（右下に大きく半透明で配置） */
.employer-stat-card .stat-watermark {
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 96px;
  height: 96px;
  opacity: 0.15;
  color: #fff;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.employer-stat-card:hover .stat-watermark {
  opacity: 0.25;
  transform: scale(1.05) rotate(-3deg);
}

.employer-stat-card .stat-watermark svg {
  width: 100%;
  height: 100%;
}

/* カードバリエーション */
.employer-stat-emerald {
  background: linear-gradient(135deg, #1a3ed0 0%, #1f4ef0 50%, #3b6ff8 100%);
  box-shadow: 0 4px 14px rgba(31, 78, 240, 0.35), 0 1px 3px rgba(0,0,0,0.08);
}

.employer-stat-blue {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35), 0 1px 3px rgba(0,0,0,0.08);
}

.employer-stat-slate {
  background: linear-gradient(135deg, #334155 0%, #475569 50%, #64748b 100%);
  box-shadow: 0 4px 14px rgba(51, 65, 85, 0.35), 0 1px 3px rgba(0,0,0,0.08);
}

.employer-stat-amber {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35), 0 1px 3px rgba(0,0,0,0.08);
}

.employer-stat-rose {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 50%, #fb7185 100%);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35), 0 1px 3px rgba(0,0,0,0.08);
}

/* テキスト要素 */
.employer-stat-card .stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.employer-stat-card .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.employer-stat-card .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.employer-stat-card .stat-icon svg {
  width: 20px;
  height: 20px;
}

.employer-stat-card .stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
  margin-top: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.employer-stat-card .stat-footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* ============================
   Tables
   ============================ */
.employer-table-wrapper {
  overflow-x: auto;
  border-radius: var(--emp-radius-sm);
}

.employer-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.employer-table thead {
  background: #f8fafc;
}

.employer-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emp-text-muted);
  border-bottom: 1px solid var(--emp-border);
  white-space: nowrap;
}

.employer-table th:first-child { border-radius: var(--emp-radius-sm) 0 0 0; }
.employer-table th:last-child { border-radius: 0 var(--emp-radius-sm) 0 0; }

.employer-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--emp-border-light);
  vertical-align: middle;
}

.employer-table tbody tr {
  transition: background 0.1s ease;
}

.employer-table tbody tr:hover {
  background: #f8fafc;
}

.employer-table tbody tr:last-child td {
  border-bottom: none;
}

.employer-table a {
  font-weight: 500;
  text-decoration: none;
}

.employer-table a:hover {
  text-decoration: underline;
}

/* ============================
   Buttons
   ============================ */
.employer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--emp-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.employer-btn:active { transform: scale(0.98); }

.employer-btn-primary {
  background: linear-gradient(135deg, var(--emp-primary-light), var(--emp-primary-dark));
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(31,78,240,0.3);
}

.employer-btn-primary:hover {
  background: linear-gradient(135deg, var(--emp-primary), var(--emp-primary-dark));
  box-shadow: 0 4px 12px rgba(31,78,240,0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.employer-btn-secondary {
  background: var(--emp-surface);
  color: var(--emp-text-secondary);
  border: 1px solid var(--emp-border);
  box-shadow: var(--emp-shadow-sm);
}

.employer-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--emp-text);
}

.employer-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 6px;
}

.employer-btn-danger {
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(220,38,38,0.3);
}

.employer-btn-danger:hover {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 4px 12px rgba(220,38,38,0.35);
  color: #ffffff;
}

.employer-btn-warning {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #ffffff;
}

.employer-btn-warning:hover {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
}

.employer-btn-success {
  background: linear-gradient(135deg, #34d399, #16a34a);
  color: #ffffff;
}

.employer-btn-success:hover {
  background: linear-gradient(135deg, #10b981, #15803d);
  color: #ffffff;
}

/* ============================
   Badges / Status
   ============================ */
.employer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--emp-radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ステータスドット */
.employer-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.employer-badge-green {
  background: #ecfdf5;
  color: #065f46;
}
.employer-badge-green::before { background: #10b981; }

.employer-badge-yellow {
  background: #fffbeb;
  color: #92400e;
}
.employer-badge-yellow::before { background: #f59e0b; }

.employer-badge-gray {
  background: #f1f5f9;
  color: #475569;
}
.employer-badge-gray::before { background: #94a3b8; }

.employer-badge-red {
  background: #fef2f2;
  color: #991b1b;
}
.employer-badge-red::before { background: #ef4444; }

.employer-badge-blue {
  background: #eff6ff;
  color: #1e40af;
}
.employer-badge-blue::before { background: #3b82f6; }

.employer-badge-purple {
  background: #faf5ff;
  color: #6b21a8;
}
.employer-badge-purple::before { background: #a855f7; }

/* ============================
   Forms
   ============================ */
.employer-form-group {
  margin-bottom: 20px;
}

.employer-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--emp-text);
}

.employer-form-group .employer-hint {
  font-size: 12px;
  color: var(--emp-text-muted);
  margin-top: 4px;
}

.employer-form-input,
.employer-form-select,
.employer-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--emp-border);
  border-radius: var(--emp-radius-sm);
  font-size: 14px;
  color: var(--emp-text);
  background: var(--emp-surface);
  transition: all 0.15s ease;
  line-height: 1.5;
}

.employer-form-input:hover,
.employer-form-select:hover,
.employer-form-textarea:hover {
  border-color: #cbd5e1;
}

.employer-form-input:focus,
.employer-form-select:focus,
.employer-form-textarea:focus {
  outline: none;
  border-color: var(--emp-primary);
  box-shadow: 0 0 0 3px rgba(31,78,240,0.12);
}

.employer-form-input::placeholder,
.employer-form-textarea::placeholder {
  color: var(--emp-text-muted);
}

.employer-form-textarea {
  min-height: 100px;
  resize: vertical;
}

.employer-form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.employer-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--emp-primary);
  cursor: pointer;
}

.employer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.employer-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--emp-border-light);
}

/* Section headings inside forms */
.employer-card h3,
.employer-form h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--emp-text);
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--emp-border-light);
  letter-spacing: -0.2px;
}

/* Error messages */
.employer-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--emp-danger);
  border-radius: var(--emp-radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.employer-errors h3 {
  margin: 0 0 8px;
  padding: 0;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--emp-danger);
}

.employer-errors ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #991b1b;
}

/* ============================
   Filter bar
   ============================ */
.employer-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.employer-filter-bar select {
  padding: 8px 14px;
  border: 1.5px solid var(--emp-border);
  border-radius: var(--emp-radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--emp-surface);
  color: var(--emp-text);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.employer-filter-bar select:hover {
  border-color: #cbd5e1;
}

.employer-filter-bar select:focus {
  outline: none;
  border-color: var(--emp-primary);
  box-shadow: 0 0 0 3px rgba(31,78,240,0.12);
}

/* ============================
   Pagination
   ============================ */
.employer-pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  font-size: 14px;
}

.employer-pagination a,
.employer-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--emp-radius-sm);
  text-decoration: none;
  color: var(--emp-text);
  font-weight: 500;
  transition: all 0.15s ease;
}

.employer-pagination a:hover {
  background: var(--emp-primary-50);
  color: var(--emp-primary);
}

.employer-pagination .current {
  background: var(--emp-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(31,78,240,0.3);
}

.employer-pagination .disabled {
  color: var(--emp-text-muted);
  opacity: 0.4;
}

/* ============================
   Detail view (show)
   ============================ */
.employer-detail-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  font-size: 14px;
}

.employer-detail-grid dt {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--emp-text-muted);
  border-bottom: 1px solid var(--emp-border-light);
  background: #fafbfc;
}

.employer-detail-grid dd {
  padding: 12px 16px;
  margin: 0;
  border-bottom: 1px solid var(--emp-border-light);
  color: var(--emp-text);
}

.employer-detail-grid dt:last-of-type,
.employer-detail-grid dd:last-of-type {
  border-bottom: none;
}

/* ============================
   Status update section
   ============================ */
.employer-status-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--emp-border-light);
}

/* ============================
   Quick Links (dashboard)
   ============================ */
.employer-quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================
   Empty state
   ============================ */
.employer-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--emp-text-muted);
}

.employer-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.employer-empty p {
  margin: 0;
  font-size: 14px;
}

/* ============================
   Auth pages (login)
   ============================ */
body.employer-auth-body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--emp-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* グラデーション背景 — BCJ Blue */
  background:
    radial-gradient(ellipse at 20% 50%, rgba(31,78,240,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(99,102,241,0.1) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.employer-auth-container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.employer-auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.employer-auth-brand img {
  height: 44px;
  filter: brightness(0) invert(1);
}

.employer-auth-brand-subtitle {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.employer-auth-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--emp-radius-lg);
  padding: 36px;
  box-shadow: var(--emp-shadow-xl);
}

.employer-auth-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--emp-text);
  letter-spacing: -0.3px;
}

.employer-auth-card .auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--emp-text-muted);
  margin-bottom: 28px;
}

.employer-auth-card .employer-form-group {
  margin-bottom: 18px;
}

.employer-auth-card .employer-form-input {
  padding: 12px 16px;
  font-size: 15px;
  border-radius: var(--emp-radius-sm);
}

.employer-auth-card .employer-btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  margin-top: 8px;
}

.employer-auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--emp-text-muted);
}

.employer-auth-links a {
  color: var(--emp-primary);
  text-decoration: none;
  font-weight: 500;
}

.employer-auth-links a:hover {
  text-decoration: underline;
}

/* ============================
   Utility classes
   ============================ */
.employer-text-muted { color: var(--emp-text-muted); }
.employer-text-secondary { color: var(--emp-text-secondary); }
.employer-text-truncate {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employer-mt-0 { margin-top: 0 !important; }
.employer-mb-16 { margin-bottom: 16px; }
.employer-mb-0 { margin-bottom: 0 !important; }

/* ============================
   Job Wizard — Step-by-step form
   ============================ */

/* ウィザード全体 */
.wizard {
  max-width: 800px;
  margin: 0 auto;
}

/* --- プログレスバー --- */
.wizard-progress {
  background: var(--emp-surface);
  border-radius: var(--emp-radius-lg);
  padding: 28px 32px 24px;
  margin-bottom: 24px;
  box-shadow: var(--emp-shadow);
  border: 1px solid var(--emp-border-light);
}

.wizard-progress-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}

.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emp-primary), var(--emp-primary-light));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(31, 78, 240, 0.3);
}

.wizard-indicators {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.wizard-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s ease;
}

.wizard-ind-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #e2e8f0;
  background: #f8fafc;
  color: var(--emp-text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-ind-icon svg {
  width: 20px;
  height: 20px;
}

.wizard-ind-check {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.wizard-ind-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--emp-text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

/* アクティブステップ — ステップごとの固有カラーを使用 */
.wizard-ind-active .wizard-ind-icon {
  border-color: var(--ind-color, var(--emp-primary));
  background: var(--ind-bg, var(--emp-primary-50));
  color: var(--ind-color, var(--emp-primary));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ind-color, var(--emp-primary)) 12%, transparent);
  transform: scale(1.1);
}

.wizard-ind-active .wizard-ind-label {
  color: var(--ind-color, var(--emp-primary));
}

/* 完了ステップ */
.wizard-ind-done .wizard-ind-icon {
  display: none;
}

.wizard-ind-done .wizard-ind-check {
  display: flex;
  border: 2.5px solid var(--emp-success);
  background: #ecfdf5;
  color: var(--emp-success);
}

.wizard-ind-done .wizard-ind-label {
  color: var(--emp-success);
}

.wizard-ind-done {
  cursor: pointer;
}

/* 未来ステップ */
.wizard-ind-future {
  cursor: default;
  opacity: 0.7;
}

/* --- ステップコンテンツ --- */
.wizard-step {
  background: var(--emp-surface);
  border-radius: var(--emp-radius-lg);
  padding: 32px;
  box-shadow: var(--emp-shadow);
  border: 1px solid var(--emp-border-light);
}

.wizard-step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--emp-border-light);
}

/* ステップヘッダーのSVGアイコン */
.wizard-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  background: var(--step-bg, #f1f5f9);
  color: var(--step-color, var(--emp-primary));
}

.wizard-step-icon svg {
  width: 24px;
  height: 24px;
}

h3.wizard-step-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--emp-text);
  letter-spacing: -0.3px;
  border: none;
  border-bottom: none;
  padding: 0;
  padding-bottom: 0;
}

.wizard-step-desc {
  margin: 0;
  font-size: 14px;
  color: var(--emp-text-muted);
}

/* --- フィールド --- */
.wizard-field {
  margin-bottom: 22px;
}

.wizard-field:last-child {
  margin-bottom: 0;
}

.wizard-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--emp-text);
}

.wizard-hint {
  font-size: 12px;
  color: var(--emp-text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.wizard-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.wizard-field-row .wizard-field {
  margin-bottom: 0;
}

/* --- 職種カードグリッド --- */
.wizard-trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.wizard-trade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border: 2px solid var(--emp-border);
  border-radius: var(--emp-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: var(--emp-surface);
}

.wizard-trade-card:hover {
  border-color: var(--emp-primary-light);
  background: var(--emp-primary-50);
  transform: translateY(-2px);
  box-shadow: var(--emp-shadow-md);
}

.wizard-trade-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wizard-trade-card:has(input:checked) {
  border-color: var(--emp-primary);
  background: var(--emp-primary-50);
  box-shadow: 0 0 0 3px rgba(31, 78, 240, 0.15), var(--emp-shadow-md);
}

.wizard-trade-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--trade-bg, #f1f5f9);
  color: var(--trade-color, var(--emp-text-muted));
  transition: all 0.2s ease;
}

.wizard-trade-icon svg {
  width: 24px;
  height: 24px;
}

.wizard-trade-card:has(input:checked) .wizard-trade-icon {
  background: var(--trade-color, var(--emp-primary));
  color: #ffffff;
}

.wizard-trade-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--emp-text);
}

/* --- 給与種別カードグリッド --- */
.wizard-salary-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.wizard-salary-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border: 2px solid var(--emp-border);
  border-radius: var(--emp-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: var(--emp-surface);
}

.wizard-salary-card:hover {
  border-color: var(--emp-primary-light);
  background: var(--emp-primary-50);
}

.wizard-salary-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wizard-salary-card:has(input:checked) {
  border-color: var(--emp-primary);
  background: var(--emp-primary-50);
  box-shadow: 0 0 0 3px rgba(31, 78, 240, 0.15);
}

.wizard-salary-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--emp-text);
}

/* --- ファイルアップロード --- */
.wizard-file-upload {
  position: relative;
}

.wizard-file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wizard-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px;
  border: 2px dashed var(--emp-border);
  border-radius: var(--emp-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--emp-text-muted);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.wizard-file-label:hover {
  border-color: var(--emp-primary-light);
  color: var(--emp-primary);
  background: var(--emp-primary-50);
}

.wizard-file-label svg {
  opacity: 0.6;
}

.wizard-file-label:hover svg {
  opacity: 1;
}

.wizard-current-image {
  margin-top: 12px;
}

/* --- 区切り線 --- */
.wizard-divider {
  height: 1px;
  background: var(--emp-border-light);
  margin: 24px 0;
}

/* --- 完了メッセージ --- */
.wizard-complete-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 18px;
  background: #ecfdf5;
  border-radius: var(--emp-radius-sm);
  border: 1px solid #bbf7d0;
  color: #065f46;
  font-size: 14px;
  font-weight: 500;
}

.wizard-complete-hint svg {
  flex-shrink: 0;
  color: var(--emp-success);
}

/* --- ナビゲーション --- */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 20px 0;
}

.wizard-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--emp-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wizard-nav-btn:active {
  transform: scale(0.97);
}

.wizard-nav-prev {
  background: var(--emp-surface);
  color: var(--emp-text-secondary);
  border: 1.5px solid var(--emp-border);
  box-shadow: var(--emp-shadow-sm);
}

.wizard-nav-prev:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.wizard-nav-next {
  background: linear-gradient(135deg, var(--emp-primary-light), var(--emp-primary-dark));
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(31, 78, 240, 0.3);
}

.wizard-nav-next:hover {
  box-shadow: 0 4px 16px rgba(31, 78, 240, 0.4);
  transform: translateY(-1px);
}

.wizard-nav-submit {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
  font-size: 16px;
  padding: 14px 36px;
}

.wizard-nav-submit:hover {
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
  transform: translateY(-1px);
}

.wizard-nav-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--emp-text-muted);
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: var(--emp-radius-full);
}

/* --- hidden属性の優先（CSSのdisplayに上書きされるのを防止） --- */
.wizard [hidden] {
  display: none !important;
}

/* --- バリデーションエラー --- */
.wizard-field-error {
  border-color: var(--emp-danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
  .employer-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  body.employer-nav-open .employer-sidebar {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
  }
  body.employer-nav-open .employer-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
  }
  .employer-hamburger {
    display: inline-flex;
    align-items: center;
  }
  .employer-main {
    margin-left: 0;
  }
  .employer-header {
    padding: 0 16px;
    gap: 8px;
  }
  .employer-content {
    padding: 16px;
  }
  .employer-form-row,
  .wizard-field-row {
    grid-template-columns: 1fr;
  }
  .employer-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .employer-detail-grid {
    grid-template-columns: 1fr;
  }
  .employer-detail-grid dt {
    background: transparent;
    padding-bottom: 0;
    border-bottom: none;
  }
  .employer-detail-grid dd {
    padding-top: 2px;
    margin-bottom: 8px;
  }
  /* ウィザード */
  .wizard-progress {
    padding: 20px 16px 16px;
  }
  .wizard-ind-label {
    font-size: 10px;
  }
  .wizard-ind-icon,
  .wizard-ind-check {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .wizard-step {
    padding: 20px 16px;
  }
  .wizard-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .wizard-step-title {
    font-size: 17px;
  }
  .wizard-trade-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  .wizard-salary-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .employer-stats-grid {
    grid-template-columns: 1fr;
  }
  .employer-auth-card {
    padding: 24px;
  }
}
