.mpjca-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  color: #173f34;
}

.mpjca-hero {
  background: linear-gradient(135deg, #f2fbf7 0%, #ffffff 58%, #edf8f2 100%);
  border: 1px solid #d8eee4;
  border-radius: 28px;
  padding: 34px 28px;
  box-shadow: 0 14px 38px rgba(20, 80, 60, 0.08);
  margin-bottom: 22px;
}

.mpjca-label,
.mpjca-step-label {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #e4f5ed;
  color: #116044;
  font-size: 13px;
  font-weight: 700;
}

.mpjca-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.35;
  color: #123d32;
}

.mpjca-hero-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #365f52;
}

.mpjca-note {
  margin-top: 18px;
  padding: 13px 15px;
  background: #fffaf0;
  border: 1px solid #f1dfb8;
  border-radius: 16px;
  color: #6b5221;
  font-size: 13px;
  line-height: 1.7;
}

.mpjca-card {
  background: #ffffff;
  border: 1px solid #dcefe6;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(20, 80, 60, 0.07);
}

.mpjca-form-head {
  margin-bottom: 18px;
}

.mpjca-form-head h2,
.mpjca-result h2 {
  margin: 0 0 8px;
  color: #123d32;
  font-size: 24px;
  line-height: 1.4;
}

.mpjca-form-head p,
.mpjca-result p {
  margin: 0;
  color: #365f52;
  line-height: 1.8;
}

.mpjca-progress {
  width: 100%;
  height: 9px;
  background: #eef6f2;
  border-radius: 999px;
  overflow: hidden;
  margin: 22px 0;
}

.mpjca-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #137a55, #8acfb3);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.mpjca-question {
  padding: 20px 0;
  border-bottom: 1px solid #edf4f1;
}

.mpjca-question:first-of-type {
  padding-top: 0;
}

.mpjca-question-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.mpjca-question-head span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 30px;
  border-radius: 999px;
  background: #123d32;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.mpjca-question-head p {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 700;
  color: #173f34;
}

.mpjca-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.mpjca-options label {
  cursor: pointer;
}

.mpjca-options input {
  display: none;
}

.mpjca-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d8eee4;
  border-radius: 16px;
  background: #f8fcfa;
  color: #28574b;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
  text-align: center;
}

.mpjca-options input:checked + span {
  background: #123d32;
  border-color: #123d32;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(18, 61, 50, 0.18);
}

.mpjca-actions {
  padding-top: 24px;
  text-align: center;
}

.mpjca-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 52px;
  padding: 13px 22px;
  border: none;
  border-radius: 999px;
  background: #123d32;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(18, 61, 50, 0.2);
  transition: 0.2s ease;
}

.mpjca-submit:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.mpjca-error {
  margin: 14px 0 0;
  color: #b42318;
  font-weight: 700;
  font-size: 14px;
}

.mpjca-result {
  margin-top: 24px;
}

.mpjca-result-card {
  background: linear-gradient(135deg, #ffffff 0%, #f5fbf8 100%);
}

.mpjca-result-intro {
  margin: 0 0 18px;
  color: #365f52;
  line-height: 1.8;
}

.mpjca-chart-area {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px auto 22px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dcefe6;
  border-radius: 22px;
  overflow: hidden;
}

.mpjca-chart-area canvas {
  max-width: 100%;
  height: auto;
}

.mpjca-score-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 18px 0 20px;
}

.mpjca-score-row {
  background: #f2fbf7;
  border: 1px solid #d8eee4;
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
}

.mpjca-score-row span {
  display: block;
  margin-bottom: 5px;
  color: #365f52;
  font-size: 12px;
  font-weight: 700;
}

.mpjca-score-row strong {
  display: block;
  color: #123d32;
  font-size: 24px;
  line-height: 1;
}

.mpjca-main-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  background: #123d32;
  color: #ffffff;
}

.mpjca-main-result .mpjca-result-label {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

.mpjca-main-result h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.4;
}

.mpjca-main-result p {
  margin: 0;
  color: #eef8f3;
  line-height: 1.8;
}

.mpjca-result-box {
  background: #ffffff;
  border: 1px solid #dcefe6;
  border-radius: 18px;
  padding: 18px;
  margin-top: 14px;
}

.mpjca-result-box h3 {
  margin: 0 0 10px;
  color: #173f34;
  font-size: 17px;
}

.mpjca-result-box p {
  margin: 0;
  color: #365f52;
  line-height: 1.8;
}

.mpjca-result-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mpjca-result-box li {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf7f1;
  color: #116044;
  font-size: 14px;
  font-weight: 700;
}

.mpjca-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.mpjca-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 52px;
  padding: 13px 22px;
  border: none;
  border-radius: 999px;
  background: #123d32;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(18, 61, 50, 0.2);
  transition: 0.2s ease;
}

.mpjca-search-button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.mpjca-retry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid #cfe8dd;
  background: #ffffff;
  color: #123d32;
  font-weight: 800;
  cursor: pointer;
}

/* ==============================
   次におすすめ導線
============================== */

.mpjca-next-actions {
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f2fbf7 0%, #ffffff 100%);
  border: 1px solid #d8eee4;
}

.mpjca-next-head {
  margin-bottom: 16px;
}

.mpjca-next-head h3 {
  margin: 0 0 8px;
  color: #123d32;
  font-size: 21px;
  line-height: 1.45;
}

.mpjca-next-head p {
  margin: 0;
  color: #365f52;
  line-height: 1.8;
}

.mpjca-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mpjca-next-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dcefe6;
  color: #173f34 !important;
  text-decoration: none;
  transition: 0.2s ease;
}

.mpjca-next-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 80, 60, 0.1);
}

.mpjca-next-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #e4f5ed;
  color: #116044;
  font-size: 20px;
  font-weight: 800;
}

.mpjca-next-card strong {
  display: block;
  margin-bottom: 8px;
  color: #123d32;
  font-size: 16px;
  line-height: 1.5;
}

.mpjca-next-card em {
  display: block;
  color: #365f52;
  font-style: normal;
  font-size: 13px;
  line-height: 1.75;
}

/* ==============================
   スマホ調整
============================== */

@media (max-width: 720px) {
  .mpjca-wrap {
    padding: 18px 12px 42px;
  }

  .mpjca-hero,
  .mpjca-card {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .mpjca-options {
    grid-template-columns: 1fr;
  }

  .mpjca-options span {
    justify-content: flex-start;
    min-height: 48px;
  }

  .mpjca-question-head {
    gap: 9px;
  }

  .mpjca-question-head p {
    font-size: 15px;
  }

  .mpjca-submit {
    width: 100%;
  }

  .mpjca-chart-area {
    padding: 8px;
  }

  .mpjca-score-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mpjca-result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mpjca-search-button,
  .mpjca-retry-button {
    width: 100%;
  }

  .mpjca-next-actions {
    padding: 18px;
  }

  .mpjca-next-grid {
    grid-template-columns: 1fr;
  }
}