/* ============================================================
   AI市場価値診断サイト - スタイルシート
   スマホファースト / 青系UI / カードデザイン
   ============================================================ */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --primary-bg: #EFF6FF;
  --secondary: #0EA5E9;
  --text: #1E293B;
  --text-2: #475569;
  --text-muted: #94A3B8;
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --bg: #F0F9FF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: #93C5FD;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  transition: background var(--transition), transform var(--transition);
}
.btn-secondary:hover { background: var(--primary-bg); transform: translateY(-1px); }

.btn-full { width: 100%; }
.btn-lg { font-size: 1.1rem; padding: 18px 28px; }
.btn-sm { font-size: 0.82rem; padding: 7px 14px; font-weight: 600; }

/* ---- CTA ボタン（赤・目立つ） ---- */
.btn-cta {
  background: linear-gradient(135deg, #DC2626 0%, #F97316 100%);
  box-shadow: 0 4px 18px rgba(220,38,38,.45);
  position: relative;
  overflow: hidden;
  animation: cta-pulse 2.2s ease-in-out infinite;
}
.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #B91C1C 0%, #EA580C 100%);
  box-shadow: 0 6px 24px rgba(220,38,38,.6);
  animation: none;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(220,38,38,.45); transform: translateY(0); }
  50%       { box-shadow: 0 6px 28px rgba(220,38,38,.65), 0 0 0 6px rgba(220,38,38,.12); transform: translateY(-2px); }
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.logo-icon { font-size: 1.3rem; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(145deg, #1E40AF 0%, #2563EB 50%, #0EA5E9 100%);
  padding: 48px 0 56px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }

.badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-title .highlight {
  color: #FDE68A;
}

.hero-desc {
  color: rgba(255,255,255,.88);
  font-size: 0.92rem;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.stat {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.2);
}
.stat-num {
  font-size: 0.68rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  margin-bottom: 2px;
}
.stat-label {
  font-size: 1rem;
  font-weight: 900;
  color: #FDE68A;
  line-height: 1;
  margin-bottom: 2px;
}
.stat-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,.75);
}

.hero-note {
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 0.8rem;
  margin-top: 12px;
}

/* ============================================================
   DIAGNOSIS SECTION
   ============================================================ */
.diagnosis-section {
  padding: 28px 0 40px;
  min-height: calc(100vh - 60px);
}

.progress-wrapper {
  margin-bottom: 24px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 8px;
}
.progress-bar-bg {
  height: 8px;
  background: var(--primary-light);
  border-radius: 50px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 50px;
  transition: width 0.4s ease;
}

/* ---- Question Card ---- */
.question-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question-header { margin-bottom: 20px; }
.q-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.q-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.5;
}

/* ---- Radio Options ---- */
.options-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  -webkit-user-select: none;
  user-select: none;
}
.option-card:hover { background: var(--primary-bg); border-color: var(--primary-light); }
.option-card.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
}
.option-card input[type="radio"] { display: none; }
.option-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.option-card.selected .option-text { color: var(--primary); }
.option-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: transparent;
  flex-shrink: 0;
  transition: all var(--transition);
}
.option-card.selected .option-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- Checkbox Options ---- */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.checkbox-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  -webkit-user-select: none;
  user-select: none;
  gap: 6px;
}
.checkbox-card:hover { background: var(--primary-bg); border-color: var(--primary-light); }
.checkbox-card.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
}
.checkbox-card input[type="checkbox"] { display: none; }
.checkbox-card .option-text { font-size: 0.88rem; font-weight: 600; }
.checkbox-card.selected .option-text { color: var(--primary); }
.checkbox-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: transparent;
  flex-shrink: 0;
  transition: all var(--transition);
}
.checkbox-card.selected .checkbox-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- Nav Buttons ---- */
.nav-btns {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-btns .btn-secondary { flex-shrink: 0; }
.nav-btns .btn-primary { flex: 1; }

/* ============================================================
   LOADING SECTION
   ============================================================ */
.loading-section {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.loading-inner { text-align: center; width: 100%; max-width: 320px; }

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.dot { opacity: 0; animation: dot-fade 1.5s ease-in-out infinite; }
.d1  { animation-delay: 0s; }
.d2  { animation-delay: 0.5s; }
.d3  { animation-delay: 1s; }
@keyframes dot-fade { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.loading-sub {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.loading-bar-bg {
  height: 6px;
  background: var(--primary-light);
  border-radius: 50px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 50px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.result-hero {
  background: linear-gradient(145deg, #1E3A8A 0%, #2563EB 60%, #0EA5E9 100%);
  padding: 44px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.result-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 14px;
}

.result-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: 18px;
}

.result-salary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}
.salary-low, .salary-high {
  font-size: 3rem;
  font-weight: 900;
  color: #FDE68A;
  line-height: 1;
  letter-spacing: -2px;
}
.salary-separator {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}
.salary-unit {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FDE68A;
  align-self: flex-end;
  padding-bottom: 4px;
}

.salary-diff {
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
  font-weight: 500;
}
.diff-amount {
  font-weight: 900;
  font-size: 1.2rem;
  color: #6EE7B7;
}
.diff-amount.negative { color: #FCA5A5; }

/* ---- 結果ヒーロー CTA（salary-diff 直下） ---- */
.result-cta-wrap {
  margin-top: 24px;
  padding: 0 4px;
}
.result-cta-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius);
}
.result-cta-free {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.88;
  letter-spacing: 0.3px;
}

/* ---- Result Body ---- */
.result-body {
  padding: 24px 16px 48px;
}

.value-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: 4px solid var(--primary);
}
.value-card-icon { font-size: 1.6rem; flex-shrink: 0; }
.value-card-content h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.value-card-content p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.8;
}

/* ---- Detail Card ---- */
.result-detail-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.detail-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.detail-rows { display: flex; flex-direction: column; gap: 10px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}
.detail-label { color: var(--text-2); }
.detail-value { font-weight: 700; color: var(--text); }
.detail-value.positive { color: var(--success); }
.detail-value.negative { color: var(--danger); }
.detail-row.total {
  padding-top: 10px;
  border-top: 2px solid var(--border);
  font-size: 0.95rem;
}
.detail-row.total .detail-label { font-weight: 700; color: var(--text); }
.detail-row.total .detail-value { font-size: 1.1rem; color: var(--primary); }

/* ---- Reassure Card ---- */
.reassure-card {
  background: var(--success-bg);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
  border: 1px solid #A7F3D0;
}
.reassure-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: #065F46;
  margin-bottom: 8px;
}
.reassure-item:last-child { margin-bottom: 0; }

/* ---- Services Section ---- */
.services-section { margin-bottom: 28px; }
.services-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.5;
}
.services-title .highlight { color: var(--primary); }
.services-list { display: flex; flex-direction: column; gap: 14px; }

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 2px solid var(--border);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.service-card.service-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.service-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.5px;
}
.service-content { margin-bottom: 14px; }
.service-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}
.match-score {
  font-size: 13px;
  color: #2e7d32;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 6px;
}
.service-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}
.service-btn {
  display: block;
  text-align: center;
  text-decoration: none;
}

/* ---- Retry ---- */
.retry-section { margin-top: 10px; }

/* ============================================================
   AI コメントカード
   ============================================================ */
.ai-comment-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
  animation: fadeInUp 0.5s ease 0.3s both;
}

/* アクセントカラー別 */
.ai-comment-gold    { border-left-color: #D97706; background: linear-gradient(135deg, #FFFBEB 0%, #fff 60%); }
.ai-comment-positive { border-left-color: var(--success); background: linear-gradient(135deg, #ECFDF5 0%, #fff 60%); }
.ai-comment-info    { border-left-color: var(--primary); background: linear-gradient(135deg, #EFF6FF 0%, #fff 60%); }
.ai-comment-default { border-left-color: #64748B; }

.ai-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ai-comment-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }

.ai-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.ai-comment-gold     .ai-label { background: #FEF3C7; color: #92400E; }
.ai-comment-positive .ai-label { background: var(--success-bg); color: #065F46; }

.ai-comment-headline {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}
.ai-comment-body {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.85;
}

/* ============================================================
   ADMIN LOGIN OVERLAY
   ============================================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  padding: 36px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.login-icon { font-size: 2.4rem; margin-bottom: 12px; }
.login-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}
.login-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 24px;
}
.login-card .form-group { text-align: left; }
.login-card input[type="password"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  background: #F8FAFC;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 12px;
}
.login-card input[type="password"]:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  outline: none;
}
.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  text-align: left;
  border: 1px solid #FECACA;
}
.login-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.login-note code {
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--text-2);
  font-weight: 700;
}

/* ログアウトボタン */
.btn-logout {
  background: #334155;
  color: #94A3B8;
  border: 1px solid #475569;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-logout:hover { background: #DC2626; color: #fff; border-color: #DC2626; }

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-body { background: #F1F5F9; }

.admin-header {
  background: #1E293B;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.admin-header .logo { color: #fff; }
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header .btn-secondary {
  color: #94A3B8;
  border-color: #475569;
  background: transparent;
  font-size: 0.82rem;
  padding: 7px 14px;
}
.admin-header .btn-secondary:hover { background: #334155; color: #fff; }

.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* ---- Tabs ---- */
.tab-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tab-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
  transition: all var(--transition);
}
.tab-btn:hover { background: var(--primary-bg); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; }

/* ---- Admin Cards ---- */
.admin-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-card h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
.admin-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ---- Service Table ---- */
.service-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.service-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.service-table th {
  background: #F8FAFC;
  color: var(--text-2);
  font-weight: 700;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.service-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.service-table tr:last-child td { border-bottom: none; }
.service-table tr:hover td { background: var(--primary-bg); }
.td-priority { width: 50px; text-align: center; font-weight: 700; color: var(--primary); }
.td-name { font-weight: 700; color: var(--text); white-space: nowrap; }
.td-desc { color: var(--text-2); max-width: 200px; }
.td-url { max-width: 160px; }
.url-link { font-size: 0.8rem; color: var(--primary); overflow-wrap: break-word; word-break: break-all; }
.td-actions { white-space: nowrap; width: 120px; }
.btn-edit {
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-xs);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
  transition: background var(--transition);
}
.btn-edit:hover { background: var(--primary-light); }
.btn-delete {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #FECACA;
  border-radius: var(--radius-xs);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-delete:hover { background: #FEE2E2; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.required { color: var(--danger); margin-left: 2px; }
.tag-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: #F8FAFC;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input[type="number"] { max-width: 120px; }

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}
.form-actions .btn-primary,
.form-actions .btn-secondary { min-width: 110px; }

/* ---- Toast ---- */
.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1E293B;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}
.save-msg {
  background: var(--success-bg);
  color: #065F46;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  border: 1px solid #A7F3D0;
  text-align: center;
}
.empty-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  font-size: 0.9rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.highlight { color: var(--primary); }

/* ============================================================
   RESPONSIVE - Tablet+
   ============================================================ */
@media (min-width: 600px) {
  .container { padding: 0 24px; }
  .hero { padding: 64px 0 72px; }
  .hero-title { font-size: 2.2rem; }
  .salary-low, .salary-high { font-size: 3.6rem; }
  .admin-container { padding: 32px 24px 60px; }
  .checkbox-grid { grid-template-columns: repeat(3, 1fr); }
  .result-body { max-width: 520px; margin: 0 auto; padding: 28px 16px 56px; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .question-card { padding: 32px 28px; }
}

/* ============================================================
   AI コメント追記テキスト
   ============================================================ */
.ai-comment-note {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.07);
}

/* ============================================================
   他ユーザー事例セクション
   ============================================================ */
.cases-section {
  margin-bottom: 16px;
}
.cases-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInUp .4s ease both;
}
.case-profile {
  font-size: 0.82rem;
  color: var(--text-2);
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-result {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.case-salary {
  font-size: 0.88rem;
  font-weight: 700;
}
.case-before {
  color: var(--text-2);
}
.case-arrow {
  color: var(--success);
  font-size: 1rem;
}
.case-after {
  color: var(--success);
}
.case-method {
  font-size: 0.72rem;
  color: var(--text-2);
  background: #F1F5F9;
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ===== サイトフッター ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 20px 0;
  text-align: center;
  -webkit-text-size-adjust: 100%; /* Safari のフォント自動拡大を無効化 */
  text-size-adjust: 100%;
}
.footer-notes {
  font-size: 9px;
  text-align: center;
  color: var(--text-muted);
  margin-top: 4px;
}
.footer-link {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 8px;
}
.site-footer a:hover {
  color: var(--primary);
}
