/* --- 基本スタイル（明るく見やすい配色） --- */
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --accent-color: #ffe66d;
  --bg-color: #f7f9fc;
  --card-bg: #ffffff;
  --text-color: #2f3542;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  background: var(--card-bg);
  width: 100%;
  max-width: 650px;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 4px solid var(--secondary-color);
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 8px;
}

header p {
  font-size: 0.95rem;
  color: #666;
}

/* --- 質問エリア --- */
.question-card {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.question-card.active {
  display: block;
}

.question-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  background: #eef9f8;
  padding: 12px 16px;
  border-left: 6px solid var(--secondary-color);
  border-radius: 6px;
}

.options-grid {
  display: grid;
  gap: 12px;
}

.option-btn {
  background: #fff;
  border: 2px solid #e0e0e0;
  padding: 15px 20px;
  border-radius: 12px;
  text-align: left;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-btn:hover {
  border-color: var(--primary-color);
  background-color: #fff5f5;
  transform: translateY(-2px);
}

.option-btn .icon {
  font-size: 1.5rem;
}

/* --- 結果表示エリア --- */
.result-card {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.result-card.active {
  display: block;
}

.badge {
  display: inline-block;
  background: var(--accent-color);
  color: #333;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.lang-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.job-title {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

.description {
  text-align: left;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ロードマップ */
.roadmap {
  text-align: left;
  margin-top: 20px;
}

.roadmap h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.step-num {
  background: var(--secondary-color);
  color: white;
  font-weight: bold;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.step-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.step-text p {
  font-size: 0.85rem;
  color: #666;
}

.retry-btn {
  margin-top: 25px;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255,107,107,0.3);
}

.retry-btn:hover {
  opacity: 0.9;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}