:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --bg: #f1f5f9;
  --sidebar-bg: #0f172a;
  --sidebar-active: #2563eb;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius: 8px;
  --shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
}

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

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

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

/* ── Admin Layout ── */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo h1 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.sidebar-logo span {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  display: block;
}

/* ── Company tabs ── */
.co-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.co-tab {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255,255,255,.05);
  transition: all .15s;
  cursor: pointer;
}
.co-tab:hover { background: rgba(255,255,255,.1); color: #e2e8f0; }
.co-tab-active {
  background: var(--co-color, #7c3aed);
  color: #fff;
}
.sidebar nav { padding: 10px 8px; flex: 1; }

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 2px;
  transition: all .15s;
}
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #e2e8f0; }
.sidebar nav a.active { background: var(--sidebar-active); color: #fff; }
.sidebar nav .nav-icon { font-size: 15px; width: 18px; text-align: center; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  color: #475569;
}

.main-content {
  margin-left: 220px;
  flex: 1;
  min-height: 100vh;
  padding: 28px 32px;
}

/* ── Page Header ── */
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 22px; font-weight: 700; }
.page-header p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.header-row h2 { font-size: 20px; font-weight: 700; }

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.card-sm { padding: 16px; }
.card-title { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.card-value { font-size: 30px; font-weight: 700; line-height: 1; }
.card-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all .15s;
  line-height: 1;
  white-space: nowrap;
  font-family: inherit;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled)  { background: var(--primary-hover); }
.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled)  { background: #15803d; }
.btn-warning   { background: var(--warning); color: #fff; }
.btn-warning:hover:not(:disabled)  { background: #b45309; }
.btn-danger    { background: var(--error); color: #fff; }
.btn-danger:hover:not(:disabled)   { background: #b91c1c; }
.btn-ghost  { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled)    { background: var(--bg); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 20px; font-size: 15px; }
.input-sm { padding: 5px 10px; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; }

.btn-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Action Sections ── */
.action-section { margin-bottom: 20px; }
.action-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── VPN Status ── */
.vpn-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.vpn-badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.vpn-connected  { background: #dcfce7; color: #15803d; }
.vpn-connected .dot  { background: #16a34a; }
.vpn-disconnected { background: #fee2e2; color: #b91c1c; }
.vpn-disconnected .dot { background: #dc2626; animation: blink 1.2s infinite; }
.vpn-checking   { background: #fef9c3; color: #92400e; }
.vpn-checking .dot { background: #d97706; animation: blink .8s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.vpn-connect-btn {
  background: #dc2626; color: #fff; border: none; border-radius: 10px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; cursor: pointer; margin-left: 4px;
}
.vpn-connect-btn:hover { background: #b91c1c; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: #f8fafc; }
th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafafa; }

/* ── Status Badges ── */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-新規    { background: #dbeafe; color: #1d4ed8; }
.badge-未対応  { background: #fef9c3; color: #a16207; }
.badge-架電済  { background: #dcfce7; color: #15803d; }
.badge-面談済  { background: #ede9fe; color: #6d28d9; }
.badge-紹介済  { background: #cffafe; color: #0e7490; }
.badge-NG      { background: #fee2e2; color: #b91c1c; }
.badge-重複    { background: #f1f5f9; color: #64748b; }
.badge-公開    { background: #dcfce7; color: #15803d; }
.badge-非公開  { background: #f1f5f9; color: #64748b; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-error   { background: #fee2e2; color: #b91c1c; }
.badge-running { background: #dbeafe; color: #1d4ed8; }

/* ── Forms ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 14px; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
label .req { color: var(--error); margin-left: 3px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
textarea { min-height: 120px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.modal-sm { max-width: 420px; }
.modal h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.modal p  { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; line-height: 1.5; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ── Progress Box ── */
.progress-wrap { margin-top: 16px; }
.progress-wrap.hidden { display: none; }
.progress-box {
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 6px;
  padding: 14px 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  min-height: 100px;
  max-height: 260px;
  overflow-y: auto;
  line-height: 1.6;
}
.log-line { margin-bottom: 2px; }
.log-info    { color: #93c5fd; }
.log-success { color: #86efac; }
.log-error   { color: #fca5a5; }
.log-warn    { color: #fde68a; }

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 500;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 13px;
  max-width: 320px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  animation: toast-in .2s ease;
  pointer-events: auto;
}
.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error   { border-left: 4px solid var(--error); }
.toast.toast-info    { border-left: 4px solid var(--primary); }
@keyframes toast-in { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── File Drop Zone ── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  color: var(--text-muted);
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--primary); background: #eff6ff; color: var(--primary); }
.drop-zone input { display: none; }
.drop-zone-icon { font-size: 28px; margin-bottom: 8px; }
.drop-zone p { font-size: 13px; }

/* ── Status Select ── */
select.s-select { width: auto; padding: 4px 8px; font-size: 12px; border-radius: 5px; }

/* ── Filters ── */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-chip {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-chip:hover:not(.active) { background: var(--bg); }

/* ── Search Bar ── */
.search-bar { position: relative; }
.search-bar input { padding-left: 32px; }
.search-bar::before { content: '🔍'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; pointer-events: none; }

/* ── Public Pages ── */
.pub-body { background: #f8fafc; }

.pub-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 10;
}
.pub-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.pub-header-logo { font-size: 17px; font-weight: 700; color: var(--primary); }
.pub-header-nav { display: flex; gap: 20px; font-size: 13px; }

.pub-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.pub-hero {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  padding: 48px 24px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 32px;
}
.pub-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.pub-hero p  { font-size: 15px; opacity: .85; }

.pub-search {
  display: flex;
  gap: 8px;
  max-width: 540px;
  margin: 20px auto 0;
}
.pub-search input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  outline: none;
}
.pub-search button {
  padding: 10px 20px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; }

.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow .15s, border-color .15s;
  display: block;
  color: var(--text);
}
.job-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--primary); }
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.job-card-type { font-size: 11px; font-weight: 600; color: var(--primary); background: #eff6ff; padding: 2px 8px; border-radius: 4px; }
.job-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-muted); }
.job-card-meta span::before { margin-right: 3px; }
.job-card-salary { font-size: 14px; font-weight: 600; color: var(--success); margin: 8px 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.job-tag { background: #f1f5f9; color: #64748b; padding: 2px 8px; border-radius: 4px; font-size: 11px; }

/* ── Job Detail ── */
.job-detail-wrap { max-width: 820px; margin: 0 auto; }
.job-detail-header { margin-bottom: 24px; }
.job-detail-header h1 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.job-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.job-meta-item { background: var(--bg); border-radius: 6px; padding: 12px 16px; }
.job-meta-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.job-meta-value { font-size: 14px; font-weight: 600; }

.job-body h2 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.job-body p  { font-size: 14px; line-height: 1.8; color: #334155; white-space: pre-wrap; }

/* ── Apply Form ── */
.apply-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-top: 36px;
}
.apply-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.apply-section p  { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.apply-success {
  text-align: center;
  padding: 40px 20px;
}
.apply-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--success); }
.apply-success p  { color: var(--text-muted); font-size: 14px; }

/* ── BAN Risk Panel ── */
.ban-risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ban-item {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.ban-item.ban-safe   { background: #f0fdf4; border-color: #bbf7d0; }
.ban-item.ban-warn   { background: #fefce8; border-color: #fde68a; }
.ban-item.ban-danger { background: #fef2f2; border-color: #fecaca; }
.ban-item.ban-info   { background: #f8fafc; border-color: var(--border); }

.ban-item-label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.ban-item-count { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.ban-item-count span { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 2px; }
.ban-item-bar { height: 6px; background: #e2e8f0; border-radius: 3px; margin-bottom: 6px; overflow: hidden; }
.ban-safe   .ban-item-bar div { height: 100%; background: var(--success); border-radius: 3px; transition: width .3s; }
.ban-warn   .ban-item-bar div { height: 100%; background: var(--warning); border-radius: 3px; transition: width .3s; }
.ban-danger .ban-item-bar div { height: 100%; background: var(--error); border-radius: 3px; transition: width .3s; }
.ban-item-status { font-size: 12px; font-weight: 600; }

/* ── Media Breakdown Chart ── */
.media-bars { display: flex; flex-direction: column; gap: 10px; }
.media-bar-row { display: flex; align-items: center; gap: 10px; }
.media-bar-label { font-size: 12px; color: var(--text); min-width: 90px; text-align: right; flex-shrink: 0; }
.media-bar-track { flex: 1; height: 18px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.media-bar-fill  { height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s; min-width: 4px; }
.media-bar-count { font-size: 12px; font-weight: 600; min-width: 28px; color: var(--text-muted); }

/* ── Analytics Page ── */
.analytics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.analytics-full { grid-column: 1 / -1; }
.chart-wrap { width: 100%; overflow-x: auto; }
.chart-empty { color: var(--text-muted); font-size: 13px; text-align: center; padding: 24px; }
.analytics-bars { display: flex; flex-direction: column; gap: 8px; }
.analytics-bar-row { display: grid; grid-template-columns: 90px 1fr 60px; align-items: center; gap: 10px; }
.analytics-bar-label { font-size: 12px; color: var(--text); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.analytics-bar-track { height: 20px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.analytics-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s; min-width: 4px; }
.analytics-bar-meta { font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: right; }
.weekly-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.weekly-stat { text-align: center; padding: 16px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); }
.weekly-stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.weekly-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.weekly-stat-trend { font-size: 11px; font-weight: 600; margin-top: 6px; }
.trend-up { color: var(--success); }
.trend-down { color: var(--error); }
.svg-chart { font-family: inherit; }

/* ── 404 ── */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h2 { font-size: 40px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; padding: 16px; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .job-meta-grid { grid-template-columns: 1fr; }
}

/* ── Misc ── */
.text-muted { color: var(--text-muted); }
.text-sm    { font-size: 12px; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state p { font-size: 14px; }
hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Bulk Generate Modal ── */
.bulk-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.bulk-check  { display: flex; align-items: center; gap: 5px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 20px; padding: 4px 10px; font-size: 13px; cursor: pointer; transition: background .1s; }
.bulk-check:has(input:checked) { background: #ede9fe; border-color: #7c3aed; color: #5b21b6; }
.bulk-check input { margin: 0; accent-color: #7c3aed; }
.media-radio-label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1.5px solid #e2e8f0; border-radius: 20px; cursor: pointer; font-size: 13px; transition: border-color .15s, background .15s; }
.media-radio-label:has(input:checked) { border-color: #7c3aed; background: #f5f3ff; color: #5b21b6; font-weight: 600; }
.media-radio-label input { margin: 0; accent-color: #7c3aed; }

/* ── Public Footer ── */
.pub-footer { background: #f8f9fa; border-top: 1px solid var(--border); margin-top: 60px; padding: 20px 0; }
.pub-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }
.pub-footer-inner a { color: var(--text-muted); text-decoration: none; }
.pub-footer-inner a:hover { color: var(--primary); text-decoration: underline; }

/* ── Daily Task Tracker ── */
.daily-tasks { display: flex; flex-direction: column; gap: 12px; }
.daily-task { display: grid; grid-template-columns: 180px 1fr 130px; align-items: center; gap: 12px; padding: 10px 12px; background: #f8f9fa; border-radius: 8px; }
.daily-task-alert { background: #fff5f5; border: 1px solid #fecaca; }
.daily-task-label { font-size: 13px; font-weight: 600; color: var(--text); }
.daily-task-progress { display: flex; align-items: center; gap: 10px; }
.daily-task-bar-wrap { flex: 1; background: #e2e8f0; border-radius: 4px; height: 8px; overflow: hidden; }
.daily-task-bar { background: #7c3aed; height: 8px; border-radius: 4px; transition: width .4s; }
.daily-task-bar.bar-alert { background: #ef4444; }
.daily-task-count { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; min-width: 56px; text-align: right; }
.daily-task-remain { font-size: 12px; font-weight: 600; text-align: right; }
.task-done { color: #16a34a; }
.task-alert-text { color: #dc2626; }

/* ── XML Feed URL ── */
.feed-url-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-url-label { font-size: 12px; font-weight: 700; color: var(--text-muted); min-width: 80px; }
.feed-url-code { font-size: 11px; background: #f1f3f4; border: 1px solid #e0e0e0; border-radius: 6px; padding: 5px 10px; color: #374151; font-family: monospace; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Media Operation Section ── */
.media-op-section { padding: 10px 0; border-bottom: 1px solid #f1f3f4; }
.media-op-section:last-child { border-bottom: none; }
.media-op-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* ── Privacy Policy ── */
.privacy-section { margin-bottom: 32px; }
.privacy-section h2 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--primary); }
.privacy-section p { font-size: 14px; color: #3c4043; line-height: 1.8; margin-bottom: 8px; }
.privacy-section ul { padding-left: 20px; margin: 8px 0; }
.privacy-section ul li { font-size: 14px; color: #3c4043; line-height: 1.8; }

/* ══════════════════════════════════════════════════════════════
   運用管理 v2（運用管理タブ・架電リスト）
   ══════════════════════════════════════════════════════════════ */
.page-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.page-head h1 { font-size:24px; font-weight:700; }
.head-actions { display:flex; gap:8px; flex-wrap:wrap; }

/* タブバー */
.ops-tabs, .call-co-tabs, .call-media-tabs { display:flex; gap:4px; margin-bottom:18px; flex-wrap:wrap; }
.ops-tab, .call-co-tab, .call-media-tab {
  padding:10px 18px; border-radius:8px 8px 0 0; text-decoration:none; color:var(--text-muted);
  font-weight:600; font-size:14px; background:#e2e8f0; transition:.15s;
}
.ops-tab:hover, .call-co-tab:hover, .call-media-tab:hover { background:#cbd5e1; color:var(--text); }
.ops-tab.active, .call-co-tab.active { background:var(--primary); color:#fff; }
.call-media-tabs { margin-bottom:14px; }
.call-media-tab { padding:7px 14px; font-size:13px; border-radius:6px; }
.call-media-tab.active { background:var(--success); color:#fff; }

/* カード */
.card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.card-head h2, .card > h2 { font-size:16px; font-weight:700; margin-bottom:12px; }
.card .count { font-size:13px; color:var(--text-muted); font-weight:500; margin-left:8px; }
.muted, .card .muted { color:var(--text-muted); font-size:13px; margin-bottom:10px; }

/* 統計カード */
.stat-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:18px; }
.stat-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }
.stat-label { font-size:12px; color:var(--text-muted); font-weight:600; margin-bottom:6px; }
.stat-value { font-size:30px; font-weight:700; line-height:1; color:var(--primary); }

/* クロス集計テーブル */
.cross-table { width:100%; border-collapse:collapse; font-size:14px; }
.cross-table th, .cross-table td { border:1px solid var(--border); padding:8px 12px; text-align:center; }
.cross-table thead th { background:#f8fafc; font-weight:600; }
.cross-table tbody th { background:#f8fafc; text-align:left; font-weight:600; }
.cross-table td.num { text-align:right; font-variant-numeric:tabular-nums; }
.cross-table td.num.zero { color:#cbd5e1; }
.cross-table td.total, .cross-table .total { font-weight:700; background:#eff6ff; }
.cross-table tfoot th, .cross-table tfoot td { background:#eff6ff; font-weight:700; }

/* データテーブル */
.table-scroll { overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; font-size:13px; white-space:nowrap; }
.data-table th, .data-table td { border-bottom:1px solid var(--border); padding:8px 10px; text-align:left; }
.data-table thead th { background:#f8fafc; font-weight:600; position:sticky; top:0; z-index:1; }
.data-table td.num { text-align:right; font-variant-numeric:tabular-nums; }
.data-table td.empty, .empty { text-align:center; color:var(--text-muted); padding:24px; }
.data-table .job-cell { max-width:200px; overflow:hidden; text-overflow:ellipsis; }

/* 架電テーブルのインライン編集 */
.calls-table select, .calls-table input { font-size:13px; padding:4px 6px; border:1px solid var(--border); border-radius:5px; background:#fff; }
.call-count-sel { width:56px; }
.call-status-sel { min-width:120px; }
.call-memo { min-width:160px; width:100%; }
.dup-badge { display:inline-block; background:#fee2e2; color:#b91c1c; font-size:10px; padding:1px 6px; border-radius:10px; margin-left:4px; }
.status-badge { display:inline-block; background:#e0e7ff; color:#3730a3; font-size:12px; padding:2px 10px; border-radius:12px; }

/* 過去応募者セクション */
.past-section { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); margin-bottom:12px; box-shadow:var(--shadow); overflow:hidden; }
.past-section summary { padding:14px 18px; cursor:pointer; font-weight:700; font-size:15px; display:flex; align-items:center; gap:10px; user-select:none; }
.past-section summary .count { font-size:13px; color:var(--text-muted); font-weight:500; }
.past-section summary .dot { width:12px; height:12px; border-radius:50%; display:inline-block; }
.past-section .table-scroll { padding:0 8px 12px; }

/* フィルターバー */
.filter-bar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.filter-select { padding:8px 12px; border:1px solid var(--border); border-radius:6px; background:#fff; font-size:14px; }
.filter-input { padding:8px 12px; border:1px solid var(--border); border-radius:6px; background:#fff; font-size:14px; min-width:220px; flex:1; max-width:360px; }
.name-col { min-width:100px; font-weight:600; }
.exp-cell { max-width:180px; overflow:hidden; text-overflow:ellipsis; }

/* フォームグリッド（モーダル） */
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0; }
.form-grid label { display:flex; flex-direction:column; font-size:13px; font-weight:600; gap:4px; }
.form-grid label.full { grid-column:1 / -1; }
.form-grid input, .form-grid select { padding:8px 10px; border:1px solid var(--border); border-radius:6px; font-size:14px; font-weight:400; }

/* ボタン補助 */
.btn-secondary { background:#0891b2; color:#fff; }
.btn-secondary:hover { background:#0e7490; }

/* インポート結果 */
.import-result { margin:10px 0; font-size:14px; }
.import-result .ok { color:var(--success); }
.import-result .err { color:var(--error); }
