/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Optima, "Noto Sans JP", sans-serif;
  color: #3f4652;
  background:
    radial-gradient(circle at 10% 10%, #f7e9ee 0, transparent 28%),
    radial-gradient(circle at 90% 20%, #e6efff 0, transparent 32%),
    #f7f9fc;
}

button,
a {
  font-family: inherit;
}

button {
  cursor: pointer;
}


/* =========================
   HEADER
========================= */

.header {
  width: 100%;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #edf0f5;
}

.header-logo {
  display: block;
  width: fit-content;
  margin: 0 auto;
  color: #ca6d78;
  text-decoration: none;
  font-family: Optima, "Noto Sans JP", sans-serif;
  font-size: 26px;
  letter-spacing: 1px;

}


/* =========================
   MAIN
========================= */

.diagnosis-page {
  width: 100%;
  min-height: calc(100vh - 140px);
  padding: 60px 20px 80px;
}

.diagnosis-screen {
  display: none;
}

.diagnosis-screen.active {
  display: block;
}

.diagnosis-card {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 60px 60px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #edf1f7;
  border-radius: 32px;
  box-shadow: 0 18px 50px rgba(74, 87, 115, 0.08);
  text-align: center;
}


/* =========================
   START
========================= */

.diagnosis-label {
  margin: 0 0 18px;
  color: #7288b5;
  font-family: "Tenor Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
}

.diagnosis-title {
  margin: 0;
  color: #455b88;
  font-size: 40px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.diagnosis-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  margin: 24px auto 28px;
  background: #d9a7ae;
}

.diagnosis-lead {
  margin: 0 0 18px;
  color: #4c5360;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.9;
}

.diagnosis-description {
  max-width: 500px;
  margin: 0 auto;
  color: #777e8b;
  font-size: 15px;
  line-height: 2;
}

.diagnosis-info {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 36px 0;
}

.diagnosis-info span {
  padding: 7px 16px;
  color: #62759c;
  background: #edf3ff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}


/* =========================
   BUTTON
========================= */

.primary-button {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 18px 25px;
  border: 0;
  border-radius: 100px;
  color: #fff;
  background: linear-gradient(135deg, #7189bd, #91a6d2);
  box-shadow: 0 8px 22px rgba(113, 137, 189, 0.25);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(113, 137, 189, 0.32);
}

.diagnosis-note {
  margin: 24px auto 0;
  color: #a2a7b0;
  font-size: 11px;
  line-height: 1.8;
}


/* =========================
   QUESTION
========================= */

.question-card {
  text-align: left;
}

.progress-area {
  margin-bottom: 48px;
}

.progress-text {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 10px;
  color: #8992a2;
  font-size: 13px;
}

#questionNumber {
  color: #7189bd;
  font-size: 18px;
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: #edf0f5;
  border-radius: 100px;
}

.progress-bar-inner {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, #8298c6, #d9a7ae);
  border-radius: 100px;
  transition: width 0.35s ease;
}

.question-area {
  text-align: center;
}

.question-subtitle {
  margin: 0 0 15px;
  color: #d0949e;
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
}

.question-title {
  margin: 0 0 40px;
  color: #454d5c;
  font-size: 24px;
  line-height: 1.8;
}

.answer-list {
  display: grid;
  gap: 14px;
}

.answer-button {
  width: 100%;
  padding: 17px 22px;
  border: 1px solid #dfe5ef;
  border-radius: 16px;
  color: #525a69;
  background: #fff;
  font-size: 15px;
  text-align: left;
  transition: 0.2s ease;
}

.answer-button:hover {
  color: #526891;
  background: #f3f7ff;
  border-color: #9fb1d5;
  transform: translateY(-1px);
}


/* =========================
   RESULT
========================= */

.result-small-title {
  margin: 0 0 15px;
  color: #717987;
  font-size: 16px;
}

.result-score {
  margin-bottom: 8px;
  color: #7189bd;
  font-family: "Tenor Sans", sans-serif;
  font-size: 72px;
  line-height: 1.1;
}

.result-title {
  margin: 0 0 28px;
  color: #455b88;
  font-size: 28px;
}

.result-description {
  margin: 0 auto;
  color: #6d7480;
  font-size: 15px;
  line-height: 2;
}

.result-advice {
  margin: 36px 0;
  padding: 28px 30px;
  background: #f2f6ff;
  border-radius: 20px;
  text-align: left;
}

.result-advice-title {
  margin: 0 0 12px;
  color: #5c709a;
  font-size: 15px;
  font-weight: 700;
}

.result-advice-text {
  margin: 0;
  color: #626a77;
  font-size: 14px;
  line-height: 1.9;
}

.result-cta {
  margin-top: 46px;
  padding: 38px 30px;
  background: #fff2f4;
  border-radius: 24px;
}

.result-cta-small {
  margin: 0 0 12px;
  color: #99747a;
  font-size: 13px;
  line-height: 1.7;
}

.result-cta h3 {
  margin: 0 0 25px;
  color: #9e626d;
  font-size: 22px;
  line-height: 1.7;
}

.cta-button {
  background: linear-gradient(135deg, #c96f7b, #dc909b);
}

.retry-button {
  margin-top: 30px;
  padding: 10px 20px;
  border: 0;
  color: #8a919d;
  background: transparent;
  font-size: 13px;
  text-decoration: underline;
}


/* =========================
   FOOTER
========================= */

.footer {
  padding: 30px 20px;
  color: #a0a5ae;
  text-align: center;
  font-size: 11px;
}


/* =========================
   MOBILE
========================= */

.sp-only {
  display: none;
}

@media screen and (max-width: 600px) {

  .header {
    padding: 16px 20px;
  }

  .header-logo {
    font-size: 22px;
  }

  .diagnosis-page {
    padding: 30px 16px 60px;
  }

  .diagnosis-card {
    padding: 42px 22px;
    border-radius: 24px;
  }

  .diagnosis-title {
    font-size: 30px;
  }

  .sp-only {
    display: block;
  }

  .diagnosis-lead {
    font-size: 16px;
  }

  .diagnosis-description {
    font-size: 14px;
  }

  .diagnosis-info {
    gap: 6px;
    margin: 28px 0;
  }

  .diagnosis-info span {
    padding: 6px 11px;
    font-size: 11px;
  }

  .primary-button {
    padding: 16px 20px;
    font-size: 15px;
  }

  .progress-area {
    margin-bottom: 38px;
  }

  .question-title {
    margin-bottom: 30px;
    font-size: 20px;
  }

  .answer-button {
    padding: 16px 18px;
    font-size: 14px;
  }

  .result-score {
    font-size: 60px;
  }

  .result-title {
    font-size: 24px;
  }

  .result-advice {
    padding: 24px 20px;
  }

  .result-cta {
    padding: 30px 20px;
  }

  .result-cta h3 {
    font-size: 19px;
  }
}
.diagnosis-main-image {
  margin: 0 auto 28px;
}

.diagnosis-main-image img {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 20px;
}
.map-italic {
  font-style: italic;
}
.header-logo {
  font-family: Optima, "Noto Sans JP", sans-serif;
}

.map-italic {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.header-inner {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  margin: 0;
}

.header-back {
  position: absolute;
  left: 0;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 8px 14px;

  color: #6f7890;
  background: #f5f7fb;

  border: 1px solid #e3e8f1;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 500;
  text-decoration: none;

  transition: 0.2s ease;
}

.header-back:hover {
  color: #ca6d78;
  background: #fff5f6;
  border-color: #e8c6cb;
  transform: translateX(-2px);
}
@media screen and (max-width: 600px) {

  .header-back {
    left: 0;
    padding: 7px 10px;
    font-size: 10px;
  }

  .header-back-arrow {
    font-size: 13px;
  }
}
/* =========================
   RESULT BREAKDOWN
========================= */

.result-breakdown {
  margin-top: 38px;
  text-align: left;
}

.result-section-label {
  margin: 0 0 16px;
  color: #66799f;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.result-breakdown-list {
  overflow: hidden;
  background: #f7f9fd;
  border: 1px solid #e8edf5;
  border-radius: 18px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid #e8edf5;
  color: #59616f;
  font-size: 14px;
}

.breakdown-item:last-child {
  border-bottom: 0;
}

.breakdown-level {
  flex-shrink: 0;
  padding: 5px 12px;
  color: #62769f;
  background: #e9f0ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}


/* =========================
   LOCKED RESULT
========================= */

.locked-result {
  margin-top: 50px;
}

.locked-eyebrow {
  margin: 0 0 10px;
  color: #d18f9b;
  font-family: Optima, "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
}

.locked-title {
  margin: 0 0 28px;
  color: #455b88;
  font-size: 22px;
  line-height: 1.7;
}

.locked-preview {
  position: relative;
  overflow: hidden;
  padding: 8px 0 40px;
  text-align: left;
}

.locked-preview-item {
  margin-bottom: 14px;
  padding: 22px;
  background: #f7f9fd;
  border-radius: 16px;
}

.locked-preview-item strong {
  display: block;
  margin-bottom: 8px;
  color: #53698f;
  font-size: 14px;
}

.locked-preview-item p {
  margin: 0;
  color: #727987;
  font-size: 13px;
  line-height: 1.9;
}

.blur-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.locked-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 55px 20px 20px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0.96) 45%,
    #fff 100%
  );
  color: #66799f;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.lock-icon {
  display: block;
  margin-bottom: 6px;
  color: #cf8793;
  font-size: 20px;
}


/* =========================
   EMAIL
========================= */

.email-result-box {
  margin-top: 15px;
  padding: 34px 30px;
  background: #fff3f5;
  border-radius: 22px;
  text-align: center;
}

.email-result-title {
  margin: 0 0 12px;
  color: #9e626d;
  font-size: 19px;
  font-weight: 700;
}

.email-result-description {
  margin: 0 0 24px;
  color: #846f73;
  font-size: 13px;
  line-height: 1.8;
}

.email-input {
  width: 100%;
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid #e7d8dc;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #4f5560;
  font-size: 15px;
}

.email-input:focus {
  border-color: #cc8a95;
}

.email-submit-button {
  width: 100%;
  max-width: none;
  background: linear-gradient(135deg, #c96f7b, #dc909b);
}

.email-privacy {
  margin: 14px 0 0;
  color: #a28e92;
  font-size: 10px;
  line-height: 1.7;
}


@media screen and (max-width: 600px) {

  .breakdown-item {
    padding: 15px 14px;
    font-size: 12px;
  }

  .breakdown-level {
    padding: 5px 9px;
    font-size: 10px;
  }

  .locked-title {
    font-size: 19px;
  }

  .email-result-box {
    padding: 28px 18px;
  }

}
.result-chart-area {
  margin-top: 10px;
}

.result-chart-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 28px;
}

.result-chart {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(
    #8ea6d8 0deg 90deg,
    #b9a7db 90deg 180deg,
    #f0b5be 180deg 270deg,
    #a8c8d8 270deg 360deg
  );
}

.result-chart::after {
  content: "";
  position: absolute;
  inset: 28px;
  background: #fff;
  border-radius: 50%;
}

.result-chart-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.chart-center-label {
  margin-bottom: 6px;
  color: #7f8ba5;
  font-size: 13px;
}

.result-chart-center strong {
  color: #5f79af;
  font-size: 34px;
  font-weight: 700;
}

.result-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f9fd;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  font-size: 14px;
  color: #59616f;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.color-workload {
  background: #8ea6d8;
}

.color-relationship {
  background: #b9a7db;
}

.color-fit {
  background: #f0b5be;
}

.color-future {
  background: #a8c8d8;
}

.legend-label {
  flex: 1;
}

.legend-value {
  font-weight: 700;
  color: #62769f;
}

@media screen and (max-width: 600px) {
  .result-chart-wrap {
    width: 190px;
    height: 190px;
  }

  .result-chart {
    width: 190px;
    height: 190px;
  }

  .result-chart::after {
    inset: 24px;
  }

  .result-chart-center strong {
    font-size: 28px;
  }

  .legend-item {
    font-size: 12px;
  }
}

/* =========================
   CATEGORY DONUT CHART
========================= */

.category-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  max-width: 500px;
  margin: 26px auto 0;
}

.category-chart-item {
  text-align: center;
}

.category-donut {
  --percent: 0;

  position: relative;
  width: 145px;
  height: 145px;
  margin: 0 auto 14px;

  border-radius: 50%;

  background: conic-gradient(
    #8ea6d8 calc(var(--percent) * 1%),
    #edf1f7 0
  );

  display: flex;
  align-items: center;
  justify-content: center;
}

.category-donut-inner {
  width: 112px;
  height: 112px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  border-radius: 50%;

  box-shadow: inset 0 0 0 1px #edf1f7;
}

.category-donut-inner span {
  color: #53698f;
  font-size: 14px;
  font-weight: 700;
}

.category-chart-name {
  margin: 0;
  color: #59616f;
  font-size: 13px;
  font-weight: 600;
}


/* 項目ごとに少し色を変える */

#relationshipChart {
  background: conic-gradient(
    #b8a9d8 calc(var(--percent) * 1%),
    #edf1f7 0
  );
}

#fitChart {
  background: conic-gradient(
    #dfadb7 calc(var(--percent) * 1%),
    #edf1f7 0
  );
}

#futureChart {
  background: conic-gradient(
    #9ebfce calc(var(--percent) * 1%),
    #edf1f7 0
  );
}


@media screen and (max-width: 600px) {

  .category-charts {
    gap: 28px 12px;
  }

  .category-donut {
    width: 120px;
    height: 120px;
  }

  .category-donut-inner {
    width: 92px;
    height: 92px;
  }

  .category-donut-inner span {
    font-size: 12px;
  }

  .category-chart-name {
    font-size: 11px;
  }

}