/* ----------------------------------------------------------------------
   Diagnosis page specific styles
---------------------------------------------------------------------- */

.diagnosis-page {
  background-color: #fff;
}

/* ----------------------------------------------------------------------
   Diagnosis header
---------------------------------------------------------------------- */
.diagnosis-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 40px 24px;
}

.diagnosis-header-content {
  max-width: 375px;
  margin: 0 auto;
  text-align: center;
}

.diagnosis-category {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary, #e86b36);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 16px;
}

.diagnosis-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  line-height: 1.4;
  margin-bottom: 16px;
}

.diagnosis-lead {
  font-size: 1.4rem;
  color: #4b5563;
  line-height: 1.8;
}

/* ----------------------------------------------------------------------
   Diagnosis area
---------------------------------------------------------------------- */
.diagnosis-area {
  padding: 40px 24px;
  max-width: 600px;
  margin: 0 auto;
}

/* Diagnosis intro */
.diagnosis-intro {
  max-width: 500px;
  margin: 0 auto;
}

.intro-card {
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.intro-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  margin-bottom: 16px;
  text-align: center;
}

.intro-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro-list li {
  font-size: 1.4rem;
  color: #4b5563;
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  line-height: 1.6;
}

.intro-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--primary, #e86b36);
  font-weight: 700;
  font-size: 1.6rem;
}

.intro-notice {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 16px;
  margin-bottom: 32px;
}

.notice-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.notice-title:before {
  content: "⚠";
  margin-right: 6px;
  font-size: 1.6rem;
}

.notice-text {
  font-size: 1.3rem;
  color: #78350f;
  line-height: 1.7;
}

.intro-button-wrapper {
  text-align: center;
}

.btn-diagnosis-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary, #e86b36);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(232, 107, 54, 0.3);
  text-decoration: none;
}

.btn-diagnosis-start:hover {
  background-color: #d4561c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 107, 54, 0.4);
}

.btn-diagnosis-start:active {
  transform: translateY(0);
}

/* Progress bar */
.diagnosis-questions {
  max-width: 500px;
  margin: 0 auto;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary, #e86b36) 0%, #f59e0b 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  font-size: 1.3rem;
  color: #6b7280;
  margin-bottom: 24px;
}

/* Question card */
.question-card {
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 24px;
  min-height: 300px;
}

.question-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: center;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-option {
  background-color: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.4rem;
  color: #374151;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.answer-option:hover {
  border-color: var(--primary, #e86b36);
  background-color: #fff;
  transform: translateX(4px);
}

.answer-option.selected {
  border-color: var(--primary, #e86b36);
  background-color: #fef3ed;
  font-weight: 600;
}

.answer-option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.answer-option.selected .answer-option-radio {
  border-color: var(--primary, #e86b36);
  background-color: var(--primary, #e86b36);
}

.answer-option.selected .answer-option-radio:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
}

/* Navigation buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background-color: #fff;
  color: var(--secondary, #1f2937);
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  border-color: var(--primary, #e86b36);
  background-color: #fef3ed;
  color: var(--primary, #e86b36);
}

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

.btn-next {
  margin-left: auto;
  background-color: var(--primary, #e86b36);
  color: #fff;
  border-color: var(--primary, #e86b36);
}

.btn-next:hover:not(:disabled) {
  background-color: #d4561c;
  border-color: #d4561c;
  color: #fff;
}

/* Diagnosis result */
.diagnosis-result {
  max-width: 500px;
  margin: 0 auto;
}

.result-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.result-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  margin-bottom: 24px;
}

.result-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.score-number {
  font-size: 4.8rem;
  font-weight: 700;
  color: var(--primary, #e86b36);
  line-height: 1;
}

.score-total {
  font-size: 1.6rem;
  color: #6b7280;
  margin-top: 4px;
}

.result-level {
  font-size: 2rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 50px;
  display: inline-block;
}

.result-level.level-low {
  background-color: #d1fae5;
  color: #065f46;
}

.result-level.level-mild {
  background-color: #fef3c7;
  color: #92400e;
}

.result-level.level-moderate {
  background-color: #fed7aa;
  color: #9a3412;
}

.result-level.level-high {
  background-color: #fecaca;
  color: #991b1b;
}

.result-description {
  font-size: 1.4rem;
  color: #374151;
  line-height: 1.8;
  text-align: left;
}

/* Result advice */
.result-advice {
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.advice-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  margin-bottom: 16px;
}

.advice-content {
  font-size: 1.4rem;
  color: #374151;
  line-height: 1.8;
}

.advice-content ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.advice-content li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.advice-content li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--primary, #e86b36);
  font-weight: 700;
}

/* Result actions */
.result-actions {
  text-align: center;
}

.btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  color: var(--secondary, #1f2937);
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-restart:hover {
  border-color: var(--primary, #e86b36);
  background-color: #fef3ed;
  color: var(--primary, #e86b36);
}

/* ----------------------------------------------------------------------
   Supervisor section
---------------------------------------------------------------------- */
.diagnosis-page .supervisor {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
}

/* ----------------------------------------------------------------------
   Diagnosis source
---------------------------------------------------------------------- */
.diagnosis-source {
  background-color: #f9fafb;
  padding: 40px 24px;
}

.source-content {
  max-width: 600px;
  margin: 0 auto;
}

.source-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  margin-bottom: 16px;
  text-align: center;
}

.source-text {
  font-size: 1.4rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 16px;
}

.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.source-list li {
  font-size: 1.3rem;
  color: #6b7280;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.source-list li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary, #e86b36);
}

/* ----------------------------------------------------------------------
   Clinic promo
---------------------------------------------------------------------- */
.clinic-promo {
  background: linear-gradient(135deg, #fef3ed 0%, #fef9f5 100%);
  padding: 40px 24px;
}

.promo-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.promo-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
  margin-bottom: 16px;
}

.promo-lead {
  font-size: 1.4rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 32px;
}

.promo-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary, #1f2937);
}

.feature-text {
  font-size: 1.2rem;
  color: #6b7280;
  line-height: 1.6;
}

.promo-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #06c755;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.btn-promo:hover {
  background-color: #05b24c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
}

.promo-note {
  font-size: 1.2rem;
  color: #6b7280;
}

/* ----------------------------------------------------------------------
   FAQ section (診断ページ用)
---------------------------------------------------------------------- */
.diagnosis-page .faq-section {
  padding: 40px 24px 40px;
  margin: 0;
  max-width: unset;
}

.diagnosis-page .faq-content {
  max-width: 600px;
}

.diagnosis-page .faq-item {
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
}

.section-header p {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary, #e86b36);
  margin-bottom: 8px;
}

.section-header .section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin-bottom: 0;
}

/* FAQ section */
.faq-section {
  background-color: #fff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.faq-item {
  background-color: #f6f6f6;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px 0 0;
  width: 100%;
}

.faq-question h3 {
  line-height: 1.71;
  color: var(--secondary);
  margin: 0;
}

.faq-answer {
  width: 100%;
}

.faq-answer p {
  line-height: 1.71;
  color: var(--secondary);
  margin: 0;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  text-decoration-thickness: 2px;
}

.faq-button-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* ----------------------------------------------------------------------
   Responsive design
---------------------------------------------------------------------- */
@media (max-width: 480px) {
  .diagnosis-title {
    font-size: 2.2rem;
  }

  .diagnosis-area {
    padding: 32px 16px;
  }

  .intro-card {
    padding: 20px;
  }

  .question-card {
    padding: 24px 16px;
    min-height: 250px;
  }

  .question-text {
    font-size: 1.6rem;
  }

  .score-circle {
    width: 140px;
    height: 140px;
  }

  .score-number {
    font-size: 4rem;
  }
}

@media (max-width: 375px) {
  .diagnosis-header {
    padding: 32px 16px;
  }

  .diagnosis-title {
    font-size: 2rem;
  }

  .btn-diagnosis-start {
    padding: 14px 32px;
    font-size: 1.5rem;
  }

  .result-level {
    font-size: 1.8rem;
  }
}
