/* =============================================
   ミライコンパス - ミライ診断ページ CSS
   ============================================= */

/* ヒーロー */
.shindan-hero {
  background: var(--navy);
  border-radius: 20px;
  padding: 40px 40px 36px;
  margin-bottom: 28px;
}
.shindan-hero .eyebrow {
  display: inline-block;
  background: var(--accent); color: var(--navy);
  font-size: 0.72rem; font-weight: 900; letter-spacing: 2px;
  padding: 4px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.shindan-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900; color: white; line-height: 1.4;
  margin-bottom: 10px;
}
.shindan-hero p { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.8; }

/* ステップバー */
.step-bar {
  display: flex; gap: 6px; align-items: center;
  margin-bottom: 20px;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e0e0e0; transition: all 0.3s;
}
.step-dot.done { background: var(--primary); opacity: 0.4; }
.step-dot.now  { background: var(--primary); transform: scale(1.4); }
.step-label    { font-size: 0.78rem; color: #aaa; margin-left: 8px; font-weight: 700; }

/* 質問カード */
.q-card {
  background: white; border-radius: 20px;
  border: 2px solid #f0f0f0;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.q-num {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 2px;
  color: var(--primary); margin-bottom: 10px;
}
.q-text {
  font-size: 1.1rem; font-weight: 900; color: var(--navy);
  line-height: 1.6; margin-bottom: 24px;
}

/* 選択肢 */
.shindan-opts { display: grid; gap: 10px; }
.shindan-opt {
  padding: 14px 18px; border-radius: 14px;
  border: 2px solid #ebebeb; background: white;
  font-size: 0.9rem; font-weight: 700; color: var(--text);
  cursor: pointer; text-align: left;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.5; transition: all 0.15s;
}
.shindan-opt:hover {
  border-color: var(--primary);
  background: rgba(255,107,53,0.04);
  transform: translateX(4px);
}

.shindan-back {
  margin-top: 16px; background: none; border: none;
  color: #bbb; font-size: 0.84rem; font-weight: 700;
  cursor: pointer; font-family: inherit; display: block;
  transition: color 0.15s;
}
.shindan-back:hover { color: var(--primary); }

/* ===== 結果画面 ===== */
.shindan-result { display: none; }
.shindan-result.show { display: block; animation: fadeInUp 0.5s ease both; }

.r-hero {
  border-radius: 20px; padding: 36px;
  text-align: center; margin-bottom: 20px;
}
.r-type-badge {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 2px;
  margin-bottom: 10px;
}
.r-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900; line-height: 1.4; margin-bottom: 10px;
}
.r-sub { font-size: 0.9rem; line-height: 1.8; opacity: 0.8; }

/* スコアバー */
.score-card {
  background: white; border-radius: 18px;
  border: 2px solid #f0f0f0; padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}
.score-card-label {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 1.5px;
  color: #aaa; margin-bottom: 16px;
}
.bar-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.bar-name {
  font-size: 0.84rem; font-weight: 900; color: var(--navy);
  width: 76px; flex-shrink: 0;
}
.bar-track {
  flex: 1; height: 10px; background: #f0f0f0;
  border-radius: 999px; overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 999px; transition: width 0.7s ease; }
.bar-pct {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem; font-weight: 700; color: #aaa;
  width: 36px; text-align: right; flex-shrink: 0;
}

/* おすすめ進路 */
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.path-card {
  background: white; border-radius: 16px;
  border: 2px solid #f0f0f0; padding: 20px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.path-card h4 { font-size: 0.9rem; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.path-card p  { font-size: 0.78rem; color: #666; line-height: 1.6; }
.path-tag {
  display: inline-block; margin-top: 10px;
  font-size: 0.7rem; font-weight: 900;
  padding: 3px 10px; border-radius: 999px;
}

/* 道しるべアドバイス */
.shindan-advice {
  border-left: 4px solid var(--primary);
  border-radius: 0 16px 16px 0;
  padding: 18px 22px;
  background: rgba(255,107,53,0.04);
  margin-bottom: 24px;
}
.advice-label {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 1.5px;
  color: var(--primary); margin-bottom: 8px;
}
.shindan-advice p { font-size: 0.9rem; color: #555; line-height: 1.9; }

/* リトライ */
.retry-btn {
  width: 100%; padding: 16px; border-radius: 14px;
  border: 2px solid #e8e8e8; background: white;
  font-size: 0.95rem; font-weight: 900; color: var(--navy);
  cursor: pointer; font-family: 'Zen Kaku Gothic New', sans-serif;
  transition: all 0.2s;
}
.retry-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(255,107,53,0.04); }

/* レスポンシブ */
@media (max-width: 768px) {
  .shindan-hero { padding: 28px 22px; }
  .q-card { padding: 24px 18px; }
  .paths-grid { grid-template-columns: 1fr; }
  .r-hero { padding: 28px 20px; }
}
