/* ============================================================
   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;
  /* ---- CTAボタンカラー（管理画面から変更可能） ---- */
  --cta-color: #ff6a00;
}

/* ---- 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: 8px 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-title-line1 {
  font-size: 2.15rem;
  display: block;
  margin-bottom: 6px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0;           /* heroの下paddingで間隔を管理 */
}
.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: 0 0 40px;          /* 上部は diagnosis-hero が担当 */
  min-height: calc(100vh - 60px);
}
.diagnosis-section .container {
  padding-top: 14px;          /* TOPセクションとQ1の間隔を詰める */
}

/* ============================================================
   DIAGNOSIS HERO - Q1 表示時のヒーロービジュアル
   ============================================================ */
.diagnosis-hero {
  background: linear-gradient(145deg, #1E40AF 0%, #2563EB 50%, #0EA5E9 100%);
  padding: 28px 0 20px;       /* 下部余白を縮めてQ1カードとの距離を詰める */
  overflow: hidden;
  position: relative;
}
.diagnosis-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.diagnosis-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.diagnosis-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 0;             /* hero内では上部paddingを除去 */
}

/* Q2以降: prev-btn が表示状態（style=""）のとき diagnosis-hero を非表示 */
#diagnosis-section:has(#prev-btn:not([style*="display"])) .diagnosis-hero {
  display: none;
}

/* Q2以降: diagnosis-section の上部余白を元に戻す */
#diagnosis-section:has(#prev-btn:not([style*="display"])) {
  padding-top: 28px;
}

.progress-wrapper {
  margin-top: 0;
  margin-bottom: 12px;        /* Q1カード上部との間隔 */
  padding: 2px 0 12px;
  border-bottom: 1px solid var(--border);
}
.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: 18px;        /* 参考イメージに合わせてやや大きめの角丸 */
  box-shadow: var(--shadow-lg);  /* 参考イメージに合わせてシャドウを強化 */
  padding: 24px 20px;         /* ← サイズ・padding は変更しない */
  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;
}
/* Q1 補足テキスト（小さめグレー文字） */
.q-hint {
  font-size: 0.78rem;
  color: #9CA3AF;
  margin: 4px 0 0;
  line-height: 1.4;
}

/* ---- 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 はデフォルトのまま維持（黄色枠・青枠 追加しない） */
}
.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: 28px 0 28px;
  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); }

/* ---- 転職サービス一覧へのCTAボタン（見出し代替） ---- */
.services-cta-btn {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1A6FE8;
  text-align: center;
  line-height: 1;            /* テキスト高さ＝ボーダー高さに揃える */
  margin: 0 -16px 16px;
  background: #F7F8FA;
  padding: 16px 16px;        /* 上下16pxで存在感を維持しつつ帯の高さを制御 */
  display: flex;
  align-items: center;       /* line-height:1 でもボーダーとテキストを縦中央に */
  justify-content: center;
}

.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;
}

/* ---- New Service Card Design ---- */
.svc-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.10);
  padding: 22px 18px 18px;
  position: relative;
  overflow: hidden;
}
.svc-card--featured {
  box-shadow: 0 4px 22px rgba(0,0,0,0.15);
}
.svc-badge {
  position: absolute;
  top: 8px;           /* 4px → 8px：上端との余白を確保 */
  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;
}
.svc-title-wrap {
  margin-bottom: 14px;
  min-height: 24px;   /* 1行時も崩れない最小高さ */
}
.svc-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #1a1a2e;
  margin: 0 0 11px 0;
  line-height: 1.4;
  padding-right: 80px; /* おすすめNo.1バッジとの重なり防止（1行・2行とも有効） */
}
.svc-title-line {
  height: 3px;
  background: #e53935;
  border-radius: 2px;
  width: 100%;
}
.svc-catch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 14px;
}
.svc-check {
  color: #e53935;
  font-size: 1rem;
  font-weight: 900;
}
.svc-info-area {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.svc-img-wrap { flex: 0 0 120px; max-width: 120px; }
.svc-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
.svc-table {
  flex: 1;
  border-collapse: collapse;
  width: 100%;
}
.svc-th {
  font-size: 12px;
  color: #777;
  padding: 6px 8px 6px 0;
  white-space: nowrap;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
}
.svc-td {
  font-size: 12px;
  color: #222;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.svc-points-wrap {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 20px 0 4px;
  margin-bottom: 16px;
}
.svc-points-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 10px;
}
.svc-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 14px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff3d71 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  box-sizing: border-box;
  gap: 8px;
  line-height: 1.45;
  transition: opacity 0.2s, transform 0.2s;
}
.svc-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.svc-cta-copy {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-align: center;
  margin: 0 0 10px;
}
.svc-cta-arrow {
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
}

/* ---- 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); }
/* おすすめポイント内の [テキスト] 赤強調 / {{テキスト}} 黒太字 */
.svc-points-body .highlight { color: red; font-weight: bold; }
.svc-points-body .bold { color: #000; font-weight: bold; }

/* ============================================================
   RESPONSIVE - Tablet+
   ============================================================ */
@media (min-width: 600px) {
  .container { padding: 0 24px; }
  .hero { padding: 64px 0 72px; }
  .hero-title { font-size: 2.2rem; }
  .hero-title-line1 { font-size: 2.6rem; }
  .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.3rem; }
  .hero-title-line1 { font-size: 2.7rem; }
  .hero-title .highlight { white-space: nowrap; }
  .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;
}

/* ===== 事例カード：モバイル省略対策 ===== */
/* iPhone等の狭い画面ではプロフィールが1行目、年収→メソッドが2行目に折り返す */
@media (max-width: 520px) {
  .case-card {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .case-profile {
    flex: 1 1 100%;     /* 1行目を占有 */
    min-width: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
  }
  .case-result {
    flex-shrink: 0;
  }
  .case-method {
    margin-left: auto;  /* メソッドタグを右寄せ */
  }
}

/* ===== サイトフッター ===== */
.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);
}

/* ============================================================
   CTA ボタンカラー（管理画面の ctaButtonColor 設定で上書き）
   JS が --cta-color を :root に setProperty して反映する。
   ボタンサイズ・角丸・フォント・animation 構造はそのまま維持。
   ============================================================ */
.result-service-btn,
.service-btn,
.cta-button {
  background: var(--cta-color) !important;
  /* グラデーションを単色上書き */
  background-image: none !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.25) !important;
}
.result-service-btn:hover,
.service-btn:hover,
.cta-button:hover {
  filter: brightness(0.88);
  box-shadow: 0 6px 24px rgba(0,0,0,.35) !important;
}

/* btn-cta は animation が付いているため pulse の影色だけ維持し背景を上書き */
.btn-cta.result-cta-btn {
  background: var(--cta-color) !important;
  background-image: none !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.3) !important;
}
.btn-cta.result-cta-btn:hover {
  background: var(--cta-color) !important;
  filter: brightness(0.88);
  box-shadow: 0 6px 24px rgba(0,0,0,.45) !important;
  animation: none;
}

/* ============================================================
   スマホ専用フォント調整（max-width: 599px）
   PC表示（600px以上）は一切変更しない
   対象：市場価値見出し / 案件タイトル / CTAボタン
   ============================================================ */
@media (max-width: 599px) {
  /* ============================================================
     結果ヒーロー縦余白最適化
     目的：ファーストビュー内にランキング1位カード上部を見せる
     ============================================================ */

  /* ① ヒーロー上下padding：約30%削減 */
  .result-hero {
    padding: 30px 0 38px;   /* 44px→30px / 52px→38px */
  }

  /* ② 見出し下の余白を圧縮 */
  .result-title {
    margin-bottom: 12px;    /* 18px→12px */
  }

  /* ③ 年収レンジ〜+350万円間の余白を圧縮 */
  .result-salary {
    margin-bottom: 8px;     /* 16px→8px */
  }

  /* ④ 中央値カード下余白を圧縮（最優先）
        result-body の padding-top が中央値カードとcases-sectionの間隔を決める */
  .result-body {
    padding-top: 12px;      /* 24px→12px */
  }

  /* ⑤ ユーザー事例セクション下余白を圧縮 → services-titleまでの詰まりを調整 */
  .cases-section {
    padding-bottom: 14px !important;  /* 24px→14px */
  }

  /* 転職サービス見出し：スマホ調整 */
  .services-cta-btn {
    font-size: 1.2rem;      /* スマホで約20px */
    text-align: left;       /* 左アイコン絵文字の視認性向上 */
  }

  /* 案件カードタイトル */
  .svc-title {
    font-size: 1.275rem;  /* 1.15rem + 約2px */
    font-weight: 700;
    line-height: 1.4;
    padding-right: 80px;  /* モバイルでもバッジ重なり防止を継承・明示 */
  }

  /* CTAボタン */
  .svc-cta-btn {
    font-size: 1.025rem;  /* 0.9rem + 約2px */
    font-weight: 700;
    line-height: 1.4;
  }
}

/* ============================================================
   転職タイミング判定 — 結果ヒーロー内（ベース）
   ============================================================ */
.timing-grade-wrap {
  display: inline-block;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 44px 10px;
  margin: 8px auto 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.timing-grade {
  display: block;
  font-size: 4.8rem;
  font-weight: 900;
  color: #2563EB;
  line-height: 1;
  letter-spacing: -3px;
  text-align: center;
}
.timing-grade-sublabel {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 6px;
  color: #94a3b8;
}
.timing-tagline {
  color: #6EE7B7;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 8px;
  display: block;
}

/* ---- バッジ（判定ラベル） ---- */
.timing-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

/* 判定別ヒーロー背景なし — ベースの .result-hero グラデで統一 */

/* ============================================================
   判定別 — グレードカード（timing-grade-wrap）
   ============================================================ */
.timing-grade-wrap--a {
  border: 2px solid rgba(251,191,36,0.55);
  box-shadow: 0 6px 28px rgba(0,0,0,0.2), 0 0 0 4px rgba(251,191,36,0.09);
}
.timing-grade-wrap--bp {
  border: 2px solid rgba(99,102,241,0.28);
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
}
.timing-grade-wrap--b {
  box-shadow: 0 4px 18px rgba(0,0,0,0.14);
}
.timing-grade-wrap--c {
  background: #f1f5f9;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* ============================================================
   判定別 — グレード文字色
   ============================================================ */
.timing-grade--a  { color: #1d4ed8; }
.timing-grade--bp { color: #2563eb; }
.timing-grade--b  { color: #3b82f6; }
.timing-grade--c  { color: #64748b; }

/* ============================================================
   判定別 — サブラベル文字色
   ============================================================ */
.timing-grade-sublabel--a  { color: #d97706; }
.timing-grade-sublabel--bp { color: #6366f1; }
.timing-grade-sublabel--b  { color: #3b82f6; }
.timing-grade-sublabel--c  { color: #94a3b8; }

/* ============================================================
   判定別 — バッジ
   ============================================================ */
.timing-badge--a {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.35);
}
.timing-badge--bp {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
}
.timing-badge--b {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.22);
}
.timing-badge--c {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.14);
}

/* ============================================================
   判定別 — タグライン（一言コメント）
   ============================================================ */
.timing-tagline--a  { color: #6EE7B7; font-size: 1.15rem; }
.timing-tagline--bp { color: #93c5fd; font-size: 1.05rem; }
.timing-tagline--b  { color: #bfdbfe; font-size: 1rem; }
.timing-tagline--c  { color: rgba(255,255,255,0.55); font-size: 0.95rem; }

/* ============================================================
   転職タイミング — 総評カード
   ============================================================ */
.timing-summary-wrap {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
@media (min-width: 768px) {
  .timing-summary-wrap {
    margin-top: 0;
  }
}

.timing-summary-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: #374151;
}
.timing-jobnote {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  color: #555;
  font-size: 13px;
  margin-bottom: 0;
}

/* ============================================================
   補強インジケーター
   ============================================================ */
.indicator-block {
  background: #f0f6ff;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.indicator-row {
  margin-bottom: 14px;
}
.indicator-row:last-child {
  margin-bottom: 0;
}
.indicator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.indicator-value {
  font-weight: 700;
}
.indicator-bar-bg {
  height: 8px;
  background: #dce8f5;
  border-radius: 4px;
  overflow: hidden;
}
.indicator-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.9s ease;
}

/* ============================================================
   共通フッター ナビリンク（信頼ページ追加 2025）
   ============================================================ */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin-bottom: 10px;
}
.footer-nav a {
  font-size: 11px;
  color: var(--text-2);
  text-decoration: none;
  padding: 4px 10px;
  white-space: nowrap;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--primary);
}
.footer-nav a + a {
  border-left: 1px solid var(--border);
}
.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   固定ページ（プライバシーポリシー / 利用規約 / 運営者情報 /
   お問い合わせ）共通レイアウト
   ※ 既存 LP のスタイルに影響を与えないよう .static-page 配下に限定
   ============================================================ */
.static-page {
  background: var(--bg);
  min-height: 100vh;
}
.static-page-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
.static-page-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  letter-spacing: -0.3px;
}
.static-page-updated {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.static-section {
  margin-bottom: 28px;
}
.static-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}
.static-section p,
.static-section li {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.8;
}
.static-section ul,
.static-section ol {
  padding-left: 1.4em;
  margin-top: 4px;
}
.static-section li {
  margin-bottom: 4px;
}
.static-section a {
  color: var(--primary);
  word-break: break-all;
}
.static-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 8px;
}
.static-info-table th,
.static-info-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
  color: var(--text-2);
}
.static-info-table th {
  background: var(--primary-bg);
  font-weight: 600;
  color: var(--text);
  width: 36%;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .static-info-table th {
    width: 38%;
    font-size: 0.83rem;
  }
  .static-info-table td {
    font-size: 0.83rem;
  }
  .static-page-title {
    font-size: 1.2rem;
  }
}
.contact-mail-box {
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  text-align: center;
}
.contact-mail-box a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  word-break: break-all;
}

/* ============================================================
   お問い合わせフォーム専用スタイル（contact.html のみに適用）
   ※ .contact-form- プレフィックスで既存スタイルへの副作用を回避
   ============================================================ */

/* フォーム全体ラッパー */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

/* 各フィールドのグループ */
.contact-form-group {
  margin-bottom: 20px;
}
.contact-form-group:last-of-type {
  margin-bottom: 0;
}

/* ラベル */
.contact-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* 必須・任意バッジ */
.contact-form-req {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--danger);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.6;
}
.contact-form-opt {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.6;
}

/* テキスト入力・セレクト共通 */
.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 11px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.contact-form-input.is-error,
.contact-form-textarea.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* セレクトボックス 矢印 */
.contact-form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* テキストエリア */
.contact-form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

/* エラーメッセージ */
.contact-form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
  min-height: 1.2em;
}

/* CAPTCHAエリア */
.contact-captcha-area {
  margin: 20px 0 24px;
  min-height: 4px; /* CAPTCHA未設置時は最小高さ */
}

/* 送信ボタン */
.contact-form-submit-wrap {
  margin-top: 24px;
  text-align: center;
}
.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 320px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 50px;
  padding: 15px 28px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
  transition: background var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.contact-form-submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}
.contact-form-submit:disabled {
  background: #93C5FD;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.8;
}

/* 送信完了メッセージ */
.contact-success {
  display: none;
  background: var(--success-bg);
  border: 1px solid #6EE7B7;
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 24px;
}
.contact-success.is-visible {
  display: block;
}
.contact-success-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.contact-success-title {
  font-size: 1rem;
  font-weight: 700;
  color: #065F46;
  margin-bottom: 6px;
}
.contact-success-body {
  font-size: 0.88rem;
  color: #047857;
  line-height: 1.7;
}

/* ハニーポット（人間には見えない、スクリーンリーダーにも隠す） */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  tabindex: -1;
}

/* メールアドレス補足テキスト */
.contact-mail-fallback {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.7;
}
.contact-mail-fallback a {
  color: var(--text-2);
}

@media (max-width: 480px) {
  .contact-form {
    padding: 20px 16px 24px;
  }
  .contact-form-submit {
    max-width: 100%;
  }
}

/* ============================================================
   お問い合わせ メールアドレス画像表示（contact.html 専用）
   ============================================================ */
.contact-addr-box {
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 24px 20px 20px;
  text-align: center;
}
.contact-addr-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-addr-img {
  display: block;
  margin: 0 auto;
  /* @2x 画像を @1x サイズで表示（Retina 対応） */
  width: 183px;
  height: 43px;
  max-width: 100%;
}
.contact-addr-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 14px;
}
