.jun-history-quiz {
  max-width: 760px;
  margin: 24px auto;
  padding: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: #263238;
}

.jun-history-quiz * {
  box-sizing: border-box;
}

.jun-quiz-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d8e7f3;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(40, 80, 120, 0.12);
  overflow: hidden;
}

.jun-quiz-label {
  display: inline-block;
  background: #e6f3ff;
  color: #1976a8;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.jun-quiz-title {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 12px;
  color: #17324d;
}

.jun-quiz-lead {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 20px;
  color: #455a64;
}

.jun-start-box {
  background: #ffffff;
  border: 1px solid #d9edf9;
  border-radius: 18px;
  padding: 18px;
  margin-top: 18px;
}

.jun-point-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.8;
}

.jun-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
  line-height: 1.5;
}

.jun-btn-main {
  margin-top: 20px;
  background: linear-gradient(135deg, #1e88e5, #00acc1);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(30, 136, 229, 0.28);
}

.jun-btn-main:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.jun-progress-wrap {
  margin: 10px 0 18px;
}

.jun-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #607d8b;
  margin-bottom: 8px;
}

.jun-progress-bar {
  width: 100%;
  height: 10px;
  background: #e8f2fa;
  border-radius: 999px;
  overflow: hidden;
}

.jun-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1e88e5, #00acc1);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.jun-question-box {
  background: #ffffff;
  border: 1px solid #dbeaf4;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
}

.jun-question {
  font-size: 20px;
  line-height: 1.65;
  font-weight: 800;
  color: #17324d;
  margin: 0;
}

.jun-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.jun-option {
  width: 100%;
  text-align: left;
  border: 2px solid #dbeaf4;
  background: #ffffff;
  color: #263238;
  border-radius: 15px;
  padding: 15px 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  transition: 0.15s ease;
}

.jun-option:hover {
  background: #f1f8ff;
  border-color: #90caf9;
}

.jun-option.correct {
  background: #e8f5e9;
  border-color: #43a047;
  color: #1b5e20;
}

.jun-option.wrong {
  background: #ffebee;
  border-color: #e53935;
  color: #b71c1c;
}

.jun-option:disabled {
  cursor: default;
  opacity: 1;
}

.jun-feedback {
  display: none;
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 15px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  font-size: 15px;
  line-height: 1.8;
  color: #5d4037;
}

.jun-feedback strong {
  color: #17324d;
}

.jun-result-score {
  text-align: center;
  background: linear-gradient(135deg, #e3f2fd, #e0f7fa);
  border-radius: 20px;
  padding: 24px 18px;
  margin: 16px 0;
}

.jun-result-score .score {
  font-size: 46px;
  font-weight: 900;
  color: #0d47a1;
  line-height: 1.1;
}

.jun-result-score .label {
  font-size: 15px;
  font-weight: 700;
  color: #455a64;
  margin-top: 8px;
}

.jun-result-message {
  font-size: 16px;
  line-height: 1.9;
  background: #ffffff;
  border: 1px solid #dbeaf4;
  border-radius: 18px;
  padding: 18px;
  margin: 16px 0;
}

.jun-review {
  margin-top: 18px;
}

.jun-review-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #17324d;
}

.jun-review-item {
  background: #ffffff;
  border: 1px solid #e0edf6;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.jun-review-item .ok {
  color: #2e7d32;
  font-weight: 800;
}

.jun-review-item .ng {
  color: #c62828;
  font-weight: 800;
}

.jun-consult-box {
  margin-top: 24px;
  background: linear-gradient(180deg, #fffdf7 0%, #fff8e1 100%);
  border: 1px solid #ffe082;
  border-radius: 20px;
  padding: 22px;
}

.jun-consult-box h3 {
  font-size: 22px;
  line-height: 1.45;
  margin: 0 0 12px;
  color: #4e342e;
}

.jun-consult-box p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.85;
  color: #5d4037;
}

.jun-consult-box ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.8;
  color: #5d4037;
}

.jun-cta-button {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8a00, #ff7043);
  color: #ffffff !important;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(255, 112, 67, 0.24);
}

.jun-small-note {
  font-size: 13px;
  line-height: 1.7;
  color: #78909c;
  margin-top: 12px;
  text-align: center;
}

@media (max-width: 600px) {
  .jun-history-quiz {
    margin: 16px auto;
  }

  .jun-quiz-card {
    border-radius: 18px;
    padding: 18px;
  }

  .jun-quiz-title {
    font-size: 23px;
  }

  .jun-question {
    font-size: 18px;
  }

  .jun-option {
    font-size: 15px;
    padding: 14px;
  }

  .jun-result-score .score {
    font-size: 40px;
  }
}
