:root {
  --primary: #1E40AF;
  --primary-hover: #1D3A9F;
  --primary-light: #3B82F6;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --bg: #F1F5F9;
  --card-bg: #FFFFFF;
  --border: #E2E8F0;
  --border-focus: #3B82F6;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 7px;
  --radius-xs: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', 'Segoe UI', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  font-size: 15px;
}

/* ===== HEADER ===== */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .logo {
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.site-header .logo span {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.site-header nav a:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.auth-header-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.65rem 0.25rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  max-width: 260px;
}

.auth-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.auth-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.auth-user-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user-role {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.auth-logout-btn {
  font-family: inherit;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
  line-height: 1.4;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 3px rgba(30,64,175,0.3);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 2px 6px rgba(30,64,175,0.4); }

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 3px rgba(245,158,11,0.3);
}
.btn-accent:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-50); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-danger {
  background: #FEF2F2;
  color: var(--danger);
  border: 1.5px solid #FECACA;
}
.btn-danger:hover { background: #FEE2E2; }

.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-block { display: flex; width: 100%; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 45%, #2563EB 100%);
  color: white;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero p {
  opacity: 0.85;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ===== SEARCH BOX ===== */
.search-box {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.search-box select,
.search-box input[type="text"] {
  flex: 1;
  min-width: 140px;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.search-box select:focus,
.search-box input[type="text"]:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ===== MAIN LAYOUT ===== */
.main-content {
  max-width: 940px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.result-count span {
  color: var(--primary);
}

/* ===== JOB CARDS ===== */
.job-list { display: flex; flex-direction: column; gap: 0.85rem; }

.job-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
  border: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.15s;
}

.job-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.job-card:hover::before { opacity: 1; }

.job-card-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid var(--primary-100);
}

.job-card-body { flex: 1; min-width: 0; padding: 1.1rem 1.4rem 1.2rem; }

.job-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.job-card:hover .job-card-title { color: var(--primary); }

.job-card-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.65rem; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tag-area { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.tag-type { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.tag-employment { background: #F0FDF4; color: #065F46; border: 1px solid #A7F3D0; }
.tag-new { background: var(--danger); color: white; animation: pulse-new 2s infinite; }

@keyframes pulse-new {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.job-card-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.job-card-salary {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dark);
}

/* ===== JOB CARD THUMBNAIL ===== */
.job-card-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg);
}
.job-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.job-card:hover .job-card-thumb img { transform: scale(1.04); }
.job-card-thumb-overlay {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  gap: 0.35rem;
}
.job-card-logo-sm {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== JOB GALLERY ===== */
.job-gallery {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.job-gallery-main {
  position: relative;
  background: #000;
}
.job-gallery-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: white;
  font-size: 0.8rem;
  padding: 1.25rem 1rem 0.7rem;
}
.job-gallery-thumbs {
  display: flex;
  gap: 3px;
  background: #0F172A;
  padding: 3px;
}
.gallery-thumb {
  flex: 1;
  height: 64px;
  background-size: cover;
  background-position: center;
  border: 2.5px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s, border-color 0.15s;
}
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.active { opacity: 1; border-color: var(--accent); }

.job-card-station {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.job-card-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ===== JOB DETAIL ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.job-detail-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
}

.detail-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.detail-header {
  margin-bottom: 1.5rem;
}

.detail-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.detail-salary-box {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  display: inline-block;
  margin-top: 0.5rem;
}

.detail-salary-label { font-size: 0.75rem; color: #92400E; font-weight: 600; margin-bottom: 0.2rem; }
.detail-salary-value { font-size: 1.25rem; font-weight: 800; color: #B45309; }

.info-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }

.info-table th {
  background: var(--bg);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 140px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.info-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.detail-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-100);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.job-description {
  line-height: 1.9;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: var(--text);
}

.apply-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  position: sticky;
  top: 80px;
}

.apply-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.apply-card-salary {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 1.25rem;
}

/* ===== DAILY SCHEDULE TIMELINE ===== */
.daily-schedule {
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
}

.schedule-item {
  display: grid;
  grid-template-columns: 52px 24px 1fr;
  gap: 0 0.75rem;
  align-items: stretch;
  min-height: 52px;
}

.schedule-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 0.15rem;
  white-space: nowrap;
  text-align: right;
}

.schedule-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.schedule-dot::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
  z-index: 1;
}

.schedule-dot--first::before {
  background: var(--primary);
}

.schedule-dot--last::before {
  background: var(--border);
  border-color: var(--border);
}

.schedule-dot::after {
  content: '';
  flex: 1;
  width: 2px;
  background: var(--border);
  margin-top: 4px;
}

.schedule-item:last-child .schedule-dot::after {
  display: none;
}

.schedule-body {
  padding-bottom: 1.1rem;
  padding-top: 0.05rem;
}

.schedule-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.schedule-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* ===== APPLY FORM ===== */
.apply-section {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  margin-top: 1.25rem;
}

/* ===== FORM CONTROLS ===== */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group label .required {
  color: var(--danger);
  margin-left: 0.3rem;
  font-size: 0.7rem;
  background: #FEF2F2;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-control::placeholder { color: var(--text-light); }

textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ===== AUTH PAGES ===== */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem;
  flex: 1;
}

.auth-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  width: 100%;
  max-width: 440px;
}

.auth-card-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card-logo .logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.auth-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
  text-align: center;
}

.auth-card .subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.auth-divider {
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-light);
  font-size: 0.8rem;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.tab-group {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  gap: 0.25rem;
}

.tab-btn {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  transition: all 0.15s;
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ===== DASHBOARD ===== */
.dashboard-layout {
  display: flex;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  align-items: flex-start;
}

.sidebar {
  width: 230px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.sidebar-user {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  margin-bottom: 1rem;
  text-align: center;
}

.sidebar-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.75rem;
}

.sidebar-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.sidebar-role { font-size: 0.75rem; color: var(--text-muted); }

.sidebar-menu {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: var(--primary-50);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.sidebar-menu a + a { border-top: 1px solid var(--border); }

.dashboard-main { flex: 1; min-width: 0; }

.dashboard-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  margin-bottom: 1.25rem;
}

.dashboard-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s;
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-card .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

.data-table th {
  background: var(--bg);
  padding: 0.7rem 1rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

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

.data-table tr:hover td { background: var(--primary-50); }

/* ===== ALERTS ===== */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.alert-success { background: #F0FDF4; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info { background: var(--primary-50); color: #1E3A8A; border: 1px solid var(--primary-100); }
.alert-warning { background: #FFFBEB; color: #78350F; border: 1px solid #FDE68A; }

/* ===== QUICK CATEGORIES ===== */
.quick-categories {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}
.quick-categories-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.quick-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 0.25rem;
}
.quick-cat-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.quick-cat-btn:hover,
.quick-cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ===== 地図検索リンク ===== */
.hero-sub-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.map-search-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 30px;
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  backdrop-filter: blur(4px);
}
.map-search-link:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}
.map-search-link-icon { font-size: 1.1rem; }
.map-search-link-arrow {
  opacity: 0.7;
  transition: transform 0.18s;
}
.map-search-link:hover .map-search-link-arrow { transform: translateX(3px); }

/* ===== 最近見た求人 ===== */
.recent-section {
  background: var(--bg);
  padding: 1.5rem 1.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.recent-inner { max-width: 1100px; margin: 0 auto; }
.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.recent-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
.recent-clear-btn {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}
.recent-clear-btn:hover { background: var(--card-bg); color: var(--text); }
.recent-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.recent-list::-webkit-scrollbar { display: none; }
.recent-card {
  flex: 0 0 200px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
}
.recent-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.recent-card-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
}
.recent-card-thumb-icon {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--bg);
}
.recent-card-body { padding: 0.7rem 0.75rem 0.75rem; }
.recent-card-company { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.recent-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-card-salary { font-size: 0.75rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 0.4rem; }
.recent-card-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }

@media (max-width: 480px) {
  .recent-section { padding: 1.25rem 1rem 0; }
  .recent-card { flex: 0 0 160px; }
  .recent-card-thumb { height: 72px; }
}

/* ===== 人気の条件で探す ===== */
.popular-conditions-section {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.popular-conditions-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.popular-conditions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.popular-conditions-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.popular-conditions-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.popular-conditions-clear:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--text-muted);
}
.popular-conditions-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
}
.popular-cond-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.5rem 0.9rem;
  background: var(--cond-bg, #f8fafc);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  min-height: 110px;
}
.popular-cond-card:hover {
  border-color: var(--cond-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.popular-cond-card.active {
  border-color: var(--cond-color);
  background: var(--cond-bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cond-color) 18%, transparent);
}
.popular-cond-icon {
  font-size: 1.8rem;
  line-height: 1;
  display: block;
}
.popular-cond-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cond-color);
  display: block;
  white-space: nowrap;
}
.popular-cond-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.3;
}
.popular-cond-count {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  background: var(--cond-color);
  border-radius: 20px;
  padding: 0.1rem 0.55rem;
  margin-top: 0.15rem;
}
.popular-cond-check {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 18px;
  height: 18px;
  background: var(--cond-color);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* 選択中条件バー */
.popular-conditions-active {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.active-conditions-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.active-conditions-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.active-cond-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cond-color);
  background: var(--cond-bg);
  border: 1.5px solid var(--cond-color);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  animation: tagPop 0.2s ease;
}
.active-cond-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cond-color);
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.active-cond-tag button:hover { opacity: 1; }
@keyframes tagPop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0F172A;
  color: #64748B;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.35rem;
}

.footer-desc {
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 1.1rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover { color: white; }

.footer-copy { font-size: 0.78rem; color: #475569; }

/* ===== SOCIAL AUTH BUTTONS ===== */
.social-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.btn-social {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: box-shadow 0.15s, transform 0.1s, border-color 0.15s;
}
.btn-social:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.btn-google {
  background: white;
  color: #3c4043;
}
.btn-google:hover { border-color: #4285F4; }

.btn-line-social {
  background: #06C755;
  color: white;
  border-color: #06C755;
}
.btn-line-social:hover { background: #05a847; border-color: #05a847; }

/* ローディングアニメーション */
.social-loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.social-loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: dot-bounce 1.2s infinite ease-in-out;
}
.social-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.social-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* ===== LINE APPLY ===== */
.btn-line-apply {
  background: #06C755;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
  justify-content: center;
}
.btn-line-apply:hover { background: #05a847; transform: translateY(-1px); }
.line-apply-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.4rem 0 0;
}
.line-apply-block { margin-bottom: 1rem; }

.apply-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-light);
  font-size: 0.78rem;
}
.apply-divider::before, .apply-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== ONE-TAP APPLY ===== */
.onetap-banner {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1.5px solid var(--primary-100);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.onetap-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.onetap-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}
.onetap-text { flex: 1; min-width: 0; }
.onetap-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}
.onetap-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-onetap {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  font-size: 0.825rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-onetap:hover { background: var(--primary-hover); }

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary-100);
}

.testimonial-meta { flex: 1; min-width: 0; }

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  letter-spacing: 1px;
}

.testimonial-text {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.75;
  border-left: 3px solid var(--primary-light);
  padding-left: 0.85rem;
  margin: 0;
  font-style: normal;
}

/* ===== COMPARE CARD BUTTON ===== */
.compare-card-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.72rem;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
  z-index: 1;
}
.compare-card-btn:hover { border-color: var(--primary); color: var(--primary); }
.compare-card-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== COMPARE BAR ===== */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  z-index: 100;
  padding: 0.75rem 1.5rem;
}
.compare-bar-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.compare-bar-slots {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.compare-slot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  min-width: 0;
  max-width: 220px;
  position: relative;
}
.compare-slot img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.compare-slot-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.compare-slot-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.compare-slot-remove {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
  line-height: 1;
}
.compare-slot-remove:hover { color: var(--danger); }
.compare-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.compare-bar-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== COMPARE MODAL ===== */
.compare-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.compare-modal {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.compare-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.compare-modal-header h2 { font-size: 1rem; font-weight: 700; }
.compare-modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
}
.compare-modal-close:hover { background: var(--bg); color: var(--text); }
.compare-modal-body {
  overflow: auto;
  padding: 1.25rem 1.5rem;
  flex: 1;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--border);
  padding: 0.7rem 0.85rem;
  vertical-align: top;
  text-align: left;
}
.compare-table thead th {
  background: var(--primary-50);
  text-align: center;
  padding: 0.75rem;
}
.compare-th-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  display: block;
}
.compare-th-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.compare-th-link {
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
}
.compare-th-link:hover { text-decoration: underline; }
.compare-row-label {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.compare-table tbody tr:nth-child(even) td { background: #FAFBFC; }
.compare-table tbody tr:nth-child(even) .compare-row-label { background: var(--bg); }

/* ===== FAVOURITES ===== */
.job-card-wrap {
  position: relative;
}

.fav-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  color: #CBD5E1;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.1s;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.fav-btn:hover { color: #F43F5E; border-color: #F43F5E; transform: scale(1.1); }
.fav-btn.faved { color: #F43F5E; border-color: #F43F5E; background: #FFF1F2; }

.fav-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.fav-toggle-btn:hover { border-color: #F43F5E; color: #F43F5E; }
.fav-toggle-btn.active { border-color: #F43F5E; color: #F43F5E; background: #FFF1F2; font-weight: 700; }

#fav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F43F5E;
  color: white;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
}

/* 詳細ページのお気に入りボタン */
.fav-btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.fav-btn-detail:hover { border-color: #F43F5E; color: #F43F5E; }
.fav-btn-detail.faved { border-color: #F43F5E; color: #F43F5E; background: #FFF1F2; font-weight: 700; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-light);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.925rem; }
.empty-state .sub { font-size: 0.8rem; margin-top: 0.4rem; }

/* ===== LOADING ===== */
.loading { text-align: center; padding: 2.5rem; color: var(--text-light); }

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 0.75rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-green { background: #D1FAE5; color: #065F46; }
.badge-blue { background: var(--primary-100); color: #1E3A8A; }
.badge-yellow { background: #FEF3C7; color: #78350F; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-gray { background: #F1F5F9; color: var(--text-muted); }

/* ===== MISC ===== */
.flex-gap { display: flex; gap: 0.5rem; align-items: center; }

a { color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .auth-header-user {
    gap: 0.35rem;
  }
  .auth-user-pill {
    max-width: 150px;
    padding-right: 0.5rem;
  }
  .auth-user-role {
    display: none;
  }
  .auth-header-user .btn {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .popular-conditions-section { padding: 1.25rem 1rem; }
  .popular-conditions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  .popular-cond-card { min-height: 96px; padding: 0.75rem 0.35rem; }
  .popular-cond-icon { font-size: 1.5rem; }
  .popular-cond-label { font-size: 0.75rem; }
  .popular-cond-desc { display: none; }

  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.875rem; }
  .search-box { flex-direction: column; }
  .search-box select,
  .search-box input[type="text"] { width: 100%; min-width: unset; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .apply-card { position: static; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .job-card-logo { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  /* ヘッダー：ロゴを小さく、テキストリンクを非表示 */
  .site-header {
    padding: 0 0.85rem;
    height: 56px;
  }
  .site-header .logo {
    font-size: 0.875rem;
    gap: 0.3rem;
  }
  .site-header nav a:not(.btn) {
    display: none;
  }
  .site-header nav {
    gap: 0.4rem;
  }

  /* ヒーロー */
  .hero { padding: 2rem 1rem 1.75rem; }
  .hero h1 { font-size: 1.3rem; }
  .search-box { padding: 1rem; gap: 0.6rem; }

  .popular-conditions-grid { grid-template-columns: repeat(4, 1fr); }

  /* コンテンツ */
  .main-content { padding: 0 0.75rem; margin: 1.25rem auto; }

  /* 求人カード */
  .job-card { padding: 1rem 1.1rem; }
  .job-card-meta { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .job-card-date { display: none; }

  /* 求人詳細 */
  .detail-layout { margin: 1rem auto; padding: 0 0.75rem; }
  .job-detail-card { padding: 1.25rem; }
  .detail-title { font-size: 1.2rem; }
  .detail-salary-box { display: block; }

  /* テーブル：縦積みに */
  .info-table { display: block; }
  .info-table tbody, .info-table tr { display: block; }
  .info-table th {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    padding: 0.6rem 0.75rem 0.2rem;
    border-bottom: none;
    background: var(--bg);
  }
  .info-table td {
    display: block;
    width: 100%;
    padding: 0.3rem 0.75rem 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  /* データテーブル：横スクロール */
  .dashboard-card { overflow-x: auto; padding: 1rem; }
  .data-table { font-size: 0.78rem; min-width: 480px; }
  .data-table th, .data-table td { padding: 0.55rem 0.7rem; }

  /* ダッシュボード */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-card { padding: 1rem 0.75rem; }
  .stat-card .num { font-size: 1.75rem; }

  /* フォーム */
  .auth-card { padding: 1.5rem 1.1rem; }

  /* フッター */
  .site-footer { padding: 1.25rem 1rem; }
}
