/* =============================================
   ミライコンパス - 職業・キャリアページ CSS
   ============================================= */

/* 診断クイズ */
.quiz-wrap {
  max-width: 700px; margin: 0 auto;
}
.quiz-box, .result-box {
  background: white; border-radius: 24px; padding: 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10); text-align: center;
}
.quiz-progress {
  display: flex; gap: 6px; justify-content: center; margin-bottom: 32px;
}
.quiz-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e0e0e0; transition: all 0.3s;
}
.quiz-dot.active { background: var(--purple); transform: scale(1.3); }
.quiz-dot.done   { background: var(--purple); opacity: 0.4; }

.quiz-q {
  font-size: 1.3rem; font-weight: 900; color: var(--navy);
  margin-bottom: 32px; line-height: 1.5;
}
.quiz-options { display: grid; gap: 12px; }
.quiz-opt {
  padding: 16px 24px; border-radius: 14px;
  border: 2.5px solid #e8e8e8; background: white;
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  cursor: pointer; transition: all 0.2s; text-align: left;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
.quiz-opt:hover {
  border-color: var(--purple);
  background: rgba(168,85,247,0.05);
  transform: scale(1.02);
}
.quiz-back {
  margin-top: 20px; background: none; border: none;
  color: #aaa; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; font-family: inherit; display: block; width: 100%;
}
.quiz-back:hover { color: var(--purple); }

/* 診断結果 */
.result-box { display: none; }
.result-box.visible { display: block; animation: fadeInUp 0.5s ease both; }

.result-type-badge {
  display: inline-block; padding: 8px 24px; border-radius: 999px;
  background: var(--purple); color: white;
  font-weight: 900; font-size: 0.88rem; letter-spacing: 1px;
  margin-bottom: 16px;
}
.result-title { font-size: 2rem; font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.result-desc  { color: #555; line-height: 1.8; margin-bottom: 28px; }
.result-jobs  { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.result-job {
  background: rgba(168,85,247,0.10); color: var(--purple);
  border-radius: 999px; padding: 8px 18px;
  font-weight: 700; font-size: 0.88rem;
}
.result-cta {
  background: var(--purple); color: white; border: none;
  padding: 14px 32px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 900;
  cursor: pointer; font-family: inherit; transition: transform 0.2s;
}
.result-cta:hover { transform: scale(1.04); }

/* 職業分野カード */
.field-card {
  background: white; border-radius: 18px; padding: 28px 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07); text-align: center;
}
.field-icon { font-size: 2.6rem; margin-bottom: 14px; }
.field-card h3 { font-weight: 900; color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.field-card p  { font-size: 0.82rem; color: #666; line-height: 1.6; }
.field-growth {
  display: inline-block; margin-top: 10px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700;
}
.growth-up     { background: rgba(78,205,196,0.15); color: var(--secondary); }
.growth-stable { background: rgba(255,230,109,0.30); color: #b8860b; }

@media (max-width: 768px) {
  .quiz-box, .result-box { padding: 28px 20px; }
}

/* =============================================
   職業→学校ルートガイド
   ============================================= */

.route-tabs-wrap {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.route-tab-btn {
  padding: 7px 16px; border-radius: 999px;
  border: 1.5px solid #e8e8e8; background: white;
  font-size: 0.84rem; font-weight: 900; color: #888;
  cursor: pointer; font-family: 'Zen Kaku Gothic New', sans-serif;
  transition: all 0.15s; white-space: nowrap;
}
.route-tab-btn.on { color: white; border-color: transparent; }

.route-field-panel { display: none; }
.route-field-panel.on { display: block; animation: fadeInUp 0.35s ease both; }

/* パネルヘッダー */
.rfp-head {
  border-radius: 18px; padding: 20px 24px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 16px;
}
.rfp-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rfp-label { font-size: 0.7rem; font-weight: 900; letter-spacing: 1.5px; margin-bottom: 4px; }
.rfp-name  { font-size: 1.1rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.rfp-jobs  { font-size: 0.82rem; line-height: 1.6; }

/* 2カラムグリッド */
.route-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 14px;
}
.route-info-card {
  background: white; border-radius: 14px;
  border: 2px solid #f0f0f0; padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.ric-label {
  font-size: 0.68rem; font-weight: 900; letter-spacing: 1.5px;
  color: #aaa; margin-bottom: 10px;
}
.ric-item {
  display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px;
}
.ric-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.ric-item p { font-size: 0.82rem; color: #555; line-height: 1.6; }

/* ルートフロー */
.route-flow-card {
  background: white; border-radius: 14px;
  border: 2px solid #f0f0f0; padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 12px;
}
.rfc-label {
  font-size: 0.68rem; font-weight: 900; letter-spacing: 1.5px;
  color: #aaa; margin-bottom: 12px;
}
.rfc-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rfc-step {
  padding: 7px 16px; border-radius: 10px;
  font-size: 0.82rem; font-weight: 900;
}
.rfc-arr { font-size: 0.82rem; color: #ccc; }

/* ポイントボックス */
.route-point-box {
  border-left: 4px solid; border-radius: 0 12px 12px 0;
  padding: 12px 16px; margin-bottom: 28px;
}
.route-point-box p { font-size: 0.86rem; line-height: 1.7; }

@media (max-width: 600px) {
  .route-info-grid { grid-template-columns: 1fr; }
  .rfc-flow { flex-direction: column; align-items: flex-start; }
  .rfc-arr { transform: rotate(90deg); }
}
