/* ================================================
   キッズコスメアドバイザー検定 3級 - スタイル
   ================================================ */

:root {
  --pink-main: #F5BEF7;
  --pink-light: #FDF0FD;
  --pink-dark: #D48ED6;
  --pink-accent: #E8A0BF;
  --text-dark: #1a1a2e;
  --text-body: #444;
  --text-light: #666;
  --bg-light: #f8f8f8;
  --border: #e0e0e0;
  --white: #fff;
  --green: #4CAF50;
  --red: #e74c3c;
}

/* ---- 検定共通 ---- */
.exam-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.exam-page-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
}

.exam-page-subtitle {
  font-size: 15px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
}

/* ---- 検定トップ ---- */
.exam-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 28px;
}

.exam-info-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
  margin: 0 0 16px 0;
  padding-left: 14px;
  border-left: 4px solid var(--pink-main);
}

.exam-info-card p,
.exam-info-card li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

.exam-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exam-info-card ul li {
  padding: 6px 0;
  padding-left: 1.4em;
  position: relative;
}

.exam-info-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pink-dark);
  font-weight: bold;
}

.exam-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.exam-spec-item {
  background: var(--pink-light);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.exam-spec-item .label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.exam-spec-item .value {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-dark);
}

.exam-start-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 36px auto 0;
  padding: 18px 32px;
  background: var(--pink-main);
  color: var(--white);
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.exam-start-btn:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
}

/* 2級誘導 */
.exam-upgrade-card {
  background: var(--pink-light);
  border: 1px solid var(--pink-main);
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 32px;
  text-align: center;
}

.exam-upgrade-card h3 {
  font-size: 17px;
  font-weight: bold;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  border: none;
  padding-left: 0;
}

.exam-upgrade-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 8px 0;
}

.exam-upgrade-card .price-info {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.exam-link-secondary {
  display: inline-block;
  padding: 10px 28px;
  background: var(--white);
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid var(--pink-main);
  border-radius: 50px;
  transition: background 0.3s;
}

.exam-link-secondary:hover {
  background: var(--pink-light);
}

/* YouTube placeholder */
.exam-video-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-top: 12px;
}

/* ---- 試験ページ ---- */
.exam-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.exam-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.exam-progress-fill {
  height: 100%;
  background: var(--pink-main);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.exam-progress-text {
  font-size: 14px;
  color: var(--text-light);
  white-space: nowrap;
}

/* 問題カード */
.exam-question-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

.exam-question-number {
  display: inline-block;
  background: var(--pink-main);
  color: var(--white);
  font-size: 13px;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.exam-question-title {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.exam-question-text {
  font-size: 17px;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 選択肢 */
.exam-choices {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exam-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.5;
}

.exam-choice:hover {
  border-color: var(--pink-main);
  background: var(--pink-light);
}

.exam-choice.selected {
  border-color: var(--pink-dark);
  background: var(--pink-light);
  font-weight: bold;
}

.exam-choice-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  color: var(--text-light);
}

.exam-choice.selected .exam-choice-label {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
}

/* ナビゲーションボタン */
.exam-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.exam-nav-btn {
  padding: 14px 36px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.exam-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.exam-nav-btn.primary {
  background: var(--pink-main);
  color: var(--white);
}

.exam-nav-btn.primary:hover:not(:disabled) {
  background: var(--pink-dark);
  transform: translateY(-2px);
}

.exam-nav-btn.submit {
  background: var(--pink-dark);
  color: var(--white);
}

.exam-nav-btn.submit:hover:not(:disabled) {
  background: #c070c2;
  transform: translateY(-2px);
}

/* ---- 結果画面 ---- */
.exam-result {
  text-align: center;
}

.exam-result-icon {
  font-size: 64px;
  margin-bottom: 12px;
}

.exam-result-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.exam-result-title.pass {
  color: var(--green);
}

.exam-result-title.fail {
  color: var(--red);
}

.exam-result-score {
  font-size: 48px;
  font-weight: bold;
  color: var(--text-dark);
  margin: 16px 0;
}

.exam-result-score span {
  font-size: 20px;
  color: var(--text-light);
}

.exam-result-message {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 28px;
}

.exam-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

/* 解説一覧 */
.exam-review {
  text-align: left;
  margin-top: 40px;
}

.exam-review h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--pink-main);
}

.exam-review-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 14px;
}

.exam-review-item.correct {
  border-left: 4px solid var(--green);
}

.exam-review-item.wrong {
  border-left: 4px solid var(--red);
}

.exam-review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.exam-review-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  color: var(--white);
}

.exam-review-badge.correct {
  background: var(--green);
}

.exam-review-badge.wrong {
  background: var(--red);
}

.exam-review-question {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
}

.exam-review-answer {
  font-size: 13px;
  color: var(--text-body);
  margin: 4px 0;
}

.exam-review-explanation {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ---- レスポンシブ ---- */
@media screen and (max-width: 600px) {
  .exam-container {
    padding: 24px 16px 40px;
  }

  .exam-page-title {
    font-size: 22px;
  }

  .exam-spec-grid {
    grid-template-columns: 1fr;
  }

  .exam-question-text {
    font-size: 15px;
  }

  .exam-choice {
    padding: 12px 14px;
    font-size: 14px;
  }

  .exam-nav {
    flex-direction: column;
  }

  .exam-nav-btn {
    width: 100%;
  }

  .exam-result-score {
    font-size: 36px;
  }

  .exam-result-actions {
    flex-direction: column;
  }

  .exam-info-card {
    padding: 24px 20px;
  }
}
