/* ============================================
   AI Diagnosis Plugin
   名前空間: .yd- (Yoguchi Diagnosis)
   ============================================ */

/* ----------- CSS Variables ----------- */
.yd-wrapper {
  --yd-primary: #ff6b4a;
  --yd-primary-bg: #FFFFFF;
  --yd-secondary-bg: #F8F9FA;
  --yd-secondary-accent: #00b8d4;
  --yd-tertiary-accent: #ff9f43;
  --yd-score-excellent: #00b8d4;
  --yd-score-fair: #ff9f43;
  --yd-score-poor: #ff5757;
  --yd-text-primary: #333333;
  --yd-text-secondary: #666666;
  --yd-text-muted: #999999;
  --yd-gradient-accent: linear-gradient(135deg, var(--yd-primary) 0%, var(--yd-tertiary-accent) 100%);
  --yd-gradient-card: #FFFFFF;
  --yd-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --yd-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --yd-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --yd-border-light: 1px solid #EEEEEE;
  --yd-radius-sm: 8px;
  --yd-radius-md: 12px;
  --yd-radius-lg: 20px;
  --yd-spacing-xs: 0.5rem;
  --yd-spacing-sm: 1rem;
  --yd-spacing-md: 1.5rem;
  --yd-spacing-lg: 2rem;
  --yd-spacing-xl: 3rem;
}

/* ----------- Wrapper Reset ----------- */
.yd-wrapper {
  all: initial;
  display: block;
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px !important;
  background: var(--yd-primary-bg);
  color: var(--yd-text-primary);
  line-height: 1.6 !important;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.yd-wrapper *,
.yd-wrapper *::before,
.yd-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------- Background Decoration ----------- */
.yd-bg-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.yd-bg-decoration--top-left {
  top: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.1) 0%, transparent 70%);
  filter: blur(60px);
}

.yd-bg-decoration--top-right {
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 184, 212, 0.08) 0%, transparent 70%);
  filter: blur(60px);
}

.yd-bg-decoration--bottom-left {
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 159, 67, 0.08) 0%, transparent 70%);
  filter: blur(60px);
}

.yd-bg-decoration--bottom-right {
  bottom: -150px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 87, 87, 0.06) 0%, transparent 70%);
  filter: blur(60px);
}

/* ----------- Container ----------- */
.yd-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--yd-spacing-lg);
}

@media (max-width: 768px) {
  .yd-container {
    padding: 10px;
    /* Minimal padding for mobile to maximize width */
  }
}

/* ============================================
   STATE 1: 入力フォーム
   ============================================ */
.yd-form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 0.5rem var(--yd-spacing-lg);
  /* Approved: Top padding 0.5rem */
  padding-bottom: var(--yd-spacing-lg);
}

@media (max-width: 768px) {
  .yd-form-section {
    padding: 0.5rem 0;
    /* Approved: Top padding 0.5rem */
    padding-bottom: var(--yd-spacing-md);
    min-height: auto;
  }
}

.yd-hero {
  text-align: center;
  margin-bottom: 0.75rem;
  /* Approved: 12px */
}

.yd-hero__badge {
  display: inline-block;
  background: var(--yd-gradient-accent);
  color: white;
  font-size: 12px !important;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: var(--yd-spacing-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.yd-hero__title {
  font-size: clamp(28px, 4vw, 40px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin-bottom: var(--yd-spacing-md);
  color: var(--yd-text-primary);
}

.yd-hero__subtitle {
  font-size: 16px !important;
  color: var(--yd-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* Form Card */
.yd-form-card {
  width: 100%;
  max-width: 800px;
  background: var(--yd-gradient-card);
  border: var(--yd-border-light);
  border-radius: var(--yd-radius-lg);
  padding: var(--yd-spacing-lg);
  box-shadow: var(--yd-shadow-md);
}

.yd-form-group {
  margin-bottom: var(--yd-spacing-md);
}

.yd-form-label {
  display: block;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--yd-text-secondary);
  margin-bottom: var(--yd-spacing-xs);
}

.yd-form-input,
.yd-form-select {
  width: 100%;
  padding: 14px 16px !important;
  font-size: 16px !important;
  font-family: inherit;
  color: var(--yd-text-primary);
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: var(--yd-radius-sm);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.yd-form-input::placeholder {
  color: var(--yd-text-muted);
}

.yd-form-input:focus,
.yd-form-select:focus {
  border-color: var(--yd-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.2);
}

.yd-form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.yd-form-select option {
  background: #FFFFFF;
  color: var(--yd-text-primary);
}

.yd-btn-submit {
  width: 100%;
  padding: 16px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  font-family: inherit;
  color: white;
  background: var(--yd-gradient-accent);
  border: none;
  border-radius: var(--yd-radius-sm);
  cursor: pointer;
  margin-top: var(--yd-spacing-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.yd-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 74, 0.4);
}

/* Form Fields Container */
.yd-form-fields {
  /* Placeholder for dynamically generated fields */
}

.yd-form-loading {
  text-align: center;
  padding: var(--yd-spacing-md);
  color: var(--yd-text-muted);
  font-size: 14px !important;
}

/* Form Validation Errors */
.yd-form-input--error,
.yd-form-select--error {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

.yd-form-input--error:focus,
.yd-form-select--error:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.yd-form-error {
  color: #dc3545;
  font-size: 13px !important;
  margin-top: 4px;
  display: none;
}

.yd-form-error--visible {
  display: block;
}

.yd-form-hint {
  color: var(--yd-text-muted);
  font-size: 12px !important;
  margin-top: 2px;
}


/* ============================================
   STATE 2: Loading
   ============================================ */
.yd-loading-section {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--yd-spacing-xl);
}

.yd-loading-section.yd-active {
  display: flex;
}

.yd-loading-spinner {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: var(--yd-spacing-lg);
}

.yd-loading-spinner__circle {
  width: 100%;
  height: 100%;
  border: 4px solid #EEEEEE;
  border-top-color: var(--yd-primary);
  border-radius: 50%;
  animation: yd-spin 1s linear infinite;
}

@keyframes yd-spin {
  to {
    transform: rotate(360deg);
  }
}

.yd-loading-spinner__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px !important;
}

.yd-loading-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: var(--yd-spacing-xs);
}

.yd-loading-subtitle {
  font-size: 16px !important;
  color: var(--yd-text-secondary);
  margin-bottom: var(--yd-spacing-md);
}

.yd-loading-quote {
  max-width: 450px;
  padding: var(--yd-spacing-md);
  background: var(--yd-secondary-bg);
  border-radius: var(--yd-radius-md);
  font-style: italic;
  color: var(--yd-text-secondary);
  font-size: 16px !important;
  border-left: 4px solid var(--yd-primary);
}

.yd-loading-progress {
  width: 250px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: var(--yd-spacing-md);
  overflow: hidden;
}

.yd-loading-progress__bar {
  height: 100%;
  background: var(--yd-gradient-accent);
  border-radius: 3px;
  animation: yd-progress 10s ease-out forwards;
}

@keyframes yd-progress {
  0% {
    width: 0%;
  }

  20% {
    width: 30%;
  }

  50% {
    width: 60%;
  }

  80% {
    width: 85%;
  }

  100% {
    width: 95%;
  }
}

/* ============================================
   STATE 3: Results
   ============================================ */
.yd-result-section {
  display: none;
  padding: var(--yd-spacing-lg) 0;
}

.yd-result-section.yd-active,
.yd-result-section--visible {
  display: block;
}

/* Result Page Modifier */
.yd-result-page {
  /* Modifier for dedicated result pages */
}

/* Result Content Container */
.yd-result-content {
  /* Container for report sections */
}


.yd-result-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--yd-spacing-lg);
}

/* Sidebar */
.yd-result-sidebar {
  position: sticky;
  top: var(--yd-spacing-lg);
  height: fit-content;
}

.yd-result-sidebar__card {
  background: #FFFFFF;
  border: var(--yd-border-light);
  border-radius: var(--yd-radius-lg);
  padding: var(--yd-spacing-md);
  box-shadow: var(--yd-shadow-md);
}

.yd-score-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--yd-spacing-sm);
  position: relative;
}

.yd-score-circle__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.yd-score-circle__bg {
  fill: none;
  stroke: #EEEEEE;
  stroke-width: 8;
}

.yd-score-circle__progress {
  fill: none;
  stroke: var(--yd-secondary-accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.5s ease-out;
}

.yd-score-circle__value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.yd-score-circle__number {
  font-size: 40px !important;
  font-weight: 800 !important;
  line-height: 1;
  color: var(--yd-text-primary);
}

.yd-score-circle__label {
  font-size: 13px !important;
  color: var(--yd-text-secondary);
}

.yd-score-status {
  text-align: center;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--yd-secondary-accent);
  margin-bottom: var(--yd-spacing-md);
}

.yd-category-scores {
  border-top: var(--yd-border-light);
  padding-top: var(--yd-spacing-sm);
}

.yd-category-item {
  margin-bottom: var(--yd-spacing-sm);
}

.yd-category-item:last-child {
  margin-bottom: 0;
}

.yd-category-item__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.yd-category-item__name {
  font-size: 13px !important;
  color: var(--yd-text-secondary);
}

.yd-category-item__score {
  font-size: 13px !important;
  font-weight: 600 !important;
}

.yd-category-item__bar {
  height: 6px;
  background: #EEEEEE;
  border-radius: 3px;
  overflow: hidden;
}

.yd-category-item__progress {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-out;
}

.yd-category-item__progress--excellent {
  background: var(--yd-score-excellent);
}

.yd-category-item__progress--fair {
  background: var(--yd-score-fair);
}

.yd-category-item__progress--poor {
  background: var(--yd-score-poor);
}

/* Main Content */
.yd-result-main {
  min-width: 0;
}

/* Main Content Area Grid */
#yd-result-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--yd-spacing-md);
  margin-bottom: var(--yd-spacing-lg);
}

@media (max-width: 768px) {
  #yd-result-content {
    grid-template-columns: 1fr;
  }
}

.yd-result-section-card {
  grid-column: span 1;
  /* Default to half-width */
}

.yd-result-section-card--full {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .yd-result-section-card--full {
    grid-column: span 1;
  }
}

.yd-result-header {
  margin-bottom: var(--yd-spacing-lg);
}

.yd-result-header__url {
  font-size: 13px !important;
  color: var(--yd-text-muted);
  margin-bottom: 4px;
}

.yd-result-header__title {
  font-size: 29px !important;
  font-weight: 800 !important;
  color: var(--yd-text-primary);
}

/* Result Section Card */
.yd-result-section-card {
  background: #FFFFFF;
  border: var(--yd-border-light);
  border-radius: var(--yd-radius-lg);
  padding: var(--yd-spacing-lg);
  margin-bottom: var(--yd-spacing-lg);
  box-shadow: var(--yd-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: yd-fadeInUp 0.5s ease-out both;
}

.yd-result-section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yd-shadow-md);
}

@keyframes yd-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.yd-result-section-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--yd-spacing-md);
  margin-bottom: var(--yd-spacing-md);
}

.yd-result-section-card__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yd-secondary-bg);
  border-radius: var(--yd-radius-md);
  font-size: 40px !important;
}

.yd-result-section-card__img-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--yd-radius-md);
}

.yd-result-section-card__title {
  font-size: 19px !important;
  font-weight: 700 !important;
  margin-top: 8px;
  /* Align with top of icon */
}

.yd-result-section-card__number {
  font-size: 11px !important;
  color: var(--yd-text-muted);
  margin-left: auto;
}

.yd-result-section-card__content {
  color: var(--yd-text-secondary);
  line-height: 1.7 !important;
  font-size: 15px !important;
}

.yd-result-section-card__content h4 {
  color: var(--yd-primary);
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: var(--yd-spacing-md) 0 var(--yd-spacing-xs);
}

.yd-result-section-card__content ul,
.yd-result-section-card__content ol {
  padding-left: 1.5rem;
}

.yd-result-section-card__content li {
  margin-bottom: 4px;
}

.yd-result-section-card__content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--yd-spacing-sm) 0;
}

.yd-result-section-card__content th,
.yd-result-section-card__content td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: var(--yd-border-light);
}

.yd-result-section-card__content th {
  color: var(--yd-text-primary);
  font-weight: 600;
}

/* ============================================
   Report Sections (for result.php)
   ============================================ */

/* Report Grid Layout */
.yd-report-grid {
  display: grid;
  gap: var(--yd-spacing-lg);
  margin-bottom: var(--yd-spacing-lg);
}

.yd-report-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .yd-report-grid--2col {
    grid-template-columns: 1fr;
  }
}

/* Report Section */
.yd-report-section {
  background: #FFFFFF;
  border: var(--yd-border-light);
  border-radius: var(--yd-radius-lg);
  padding: var(--yd-spacing-lg);
  margin-bottom: var(--yd-spacing-lg);
  box-shadow: var(--yd-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yd-report-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--yd-shadow-md);
}

.yd-report-section--highlight {
  border-left: 4px solid var(--yd-primary);
}

.yd-report-section--warning {
  border-left: 4px solid var(--yd-score-poor);
}

.yd-report-section--cta {
  background: var(--yd-secondary-bg);
  border-left: 4px solid var(--yd-secondary-accent);
}

.yd-report-section--faq {
  background: #FAFAFA;
}

.yd-report-section--final-cta {
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.05) 0%, rgba(0, 184, 212, 0.05) 100%);
  border: 2px solid var(--yd-primary);
}

.yd-report-section__header {
  display: flex;
  align-items: flex-start;
  gap: var(--yd-spacing-md);
  margin-bottom: var(--yd-spacing-md);
}

.yd-report-section__icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.yd-report-section__title {
  font-size: 21px !important;
  font-weight: 700 !important;
  color: var(--yd-text-primary);
  margin: 0;
  flex: 1;
}

.yd-report-section__content {
  color: var(--yd-text-secondary);
  line-height: 1.7 !important;
  font-size: 15px !important;
}

.yd-report-section__content h3,
.yd-report-section__content h4 {
  color: var(--yd-text-primary);
  font-weight: 700;
  margin: var(--yd-spacing-md) 0 var(--yd-spacing-xs);
}

.yd-report-section__content h3 {
  font-size: 18px !important;
}

.yd-report-section__content h4 {
  font-size: 16px !important;
}

.yd-report-section__content p {
  margin-bottom: var(--yd-spacing-sm);
}

.yd-report-section__content ul,
.yd-report-section__content ol {
  padding-left: 1.5rem;
  margin-bottom: var(--yd-spacing-sm);
}

.yd-report-section__content li {
  margin-bottom: 4px;
}

.yd-report-section__content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--yd-spacing-sm) 0;
}

.yd-report-section__content th,
.yd-report-section__content td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: var(--yd-border-light);
}

.yd-report-section__content th {
  color: var(--yd-text-primary);
  font-weight: 600;
  background: var(--yd-secondary-bg);
}

.yd-report-section__content strong {
  color: var(--yd-text-primary);
  font-weight: 600;
}

/* FAQ specific styles */
.yd-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--yd-spacing-md);
}

.yd-faq-item {
  padding: var(--yd-spacing-md);
  background: white;
  border-radius: var(--yd-radius-md);
  border: var(--yd-border-light);
}

.yd-faq-item__question {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--yd-text-primary);
  margin-bottom: var(--yd-spacing-xs);
}

.yd-faq-item__answer {
  font-size: 15px !important;
  color: var(--yd-text-secondary);
  line-height: 1.6 !important;
  margin: 0;
}

/* Final CTA specific styles */
.yd-final-cta {
  text-align: center;
  padding: var(--yd-spacing-xl);
}

.yd-final-cta__title {
  font-size: 24px !important;
  font-weight: 800 !important;
  margin-bottom: var(--yd-spacing-sm);
  color: var(--yd-text-primary);
}

.yd-final-cta__desc {
  font-size: 16px !important;
  color: var(--yd-text-secondary);
  margin-bottom: var(--yd-spacing-lg);
  line-height: 1.7 !important;
}

/* Score comparison in sidebar */
.yd-score-comparison {
  margin-top: var(--yd-spacing-md);
  padding-top: var(--yd-spacing-md);
  border-top: var(--yd-border-light);
}

.yd-score-comparison__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--yd-spacing-sm);
}

.yd-score-comparison__label {
  font-size: 14px !important;
  color: var(--yd-text-secondary);
}

.yd-score-comparison__value {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.yd-score-comparison__value--high {
  color: var(--yd-secondary-accent);
}

.yd-score-comparison__value--low {
  color: var(--yd-text-muted);
}

/* Result sidebar info */
.yd-result-sidebar__info {
  margin-top: var(--yd-spacing-md);
  padding: var(--yd-spacing-md);
  background: var(--yd-secondary-bg);
  border-radius: var(--yd-radius-md);
  font-size: 14px !important;
}

.yd-result-sidebar__info p {
  margin-bottom: var(--yd-spacing-xs);
  color: var(--yd-text-secondary);
}

.yd-result-sidebar__info strong {
  color: var(--yd-text-primary);
}

.yd-result-sidebar__url {
  word-break: break-all;
  font-size: 12px !important;
  color: var(--yd-text-muted);
}

/* Result header */
.yd-result-header__date {
  font-size: 14px !important;
  color: var(--yd-text-muted);
  margin-top: var(--yd-spacing-xs);
}


/* CTA */
.yd-result-cta {
  background: var(--yd-secondary-bg);
  border: 1px solid #E0E0E0;
  border-left: 6px solid var(--yd-primary);
  border-radius: var(--yd-radius-lg);
  padding: var(--yd-spacing-xl) var(--yd-spacing-lg);
  text-align: center;
  margin-top: var(--yd-spacing-xl);
  box-shadow: var(--yd-shadow-sm);
}

.yd-result-cta__title {
  font-size: 21px !important;
  font-weight: 700 !important;
  margin-bottom: var(--yd-spacing-xs);
}

.yd-result-cta__desc {
  color: var(--yd-text-secondary);
  margin-bottom: var(--yd-spacing-md);
  font-size: 15px !important;
}

.yd-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--yd-spacing-xs);
  padding: 14px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: white;
  background: var(--yd-gradient-accent);
  border: none;
  border-radius: var(--yd-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.yd-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 74, 0.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .yd-result-layout {
    grid-template-columns: 1fr;
  }

  .yd-result-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 600px) {
  .yd-container {
    padding: var(--yd-spacing-sm);
  }

  .yd-form-card {
    padding: var(--yd-spacing-md);
  }

  .yd-hero__title {
    font-size: 1.5rem;
  }
}

/* Utilities */
.yd-hidden {
  display: none !important;
}

/* ============================================
   Phase 4.6 追加スタイル
   ============================================ */

/* 免責コメント */
.yd-report-disclaimer {
  font-size: 13px !important;
  color: var(--yd-text-muted);
  margin-top: var(--yd-spacing-md);
  padding-top: var(--yd-spacing-sm);
  border-top: 1px dashed #DDDDDD;
  font-style: italic;
}

/* 成功事例パート */
.yd-success-cases {
  display: flex;
  flex-direction: column;
  gap: var(--yd-spacing-lg);
}

.yd-case-card {
  background: #FFFFFF;
  border: var(--yd-border-light);
  border-radius: var(--yd-radius-md);
  overflow: hidden;
  box-shadow: var(--yd-shadow-sm);
}

.yd-case-card__header {
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.08) 0%, rgba(0, 184, 212, 0.05) 100%);
  padding: var(--yd-spacing-md);
  border-bottom: var(--yd-border-light);
}

.yd-case-card__title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--yd-text-primary);
  margin: 0;
}

.yd-case-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 768px) {
  .yd-case-card__body {
    grid-template-columns: 1fr;
  }
}

.yd-case-card__section {
  padding: var(--yd-spacing-md);
}

.yd-case-card__section--challenge {
  background: rgba(255, 87, 87, 0.03);
  border-right: 1px solid #EEEEEE;
}

@media (max-width: 768px) {
  .yd-case-card__section--challenge {
    border-right: none;
    border-bottom: 1px solid #EEEEEE;
  }
}

.yd-case-card__section--result {
  background: rgba(0, 184, 212, 0.03);
}

.yd-case-card__label {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--yd-spacing-xs);
}

.yd-case-card__label--challenge {
  color: var(--yd-score-poor);
}

.yd-case-card__label--result {
  color: var(--yd-secondary-accent);
}

.yd-case-card__text {
  font-size: 14px !important;
  color: var(--yd-text-secondary);
  line-height: 1.6 !important;
  margin: 0;
}

/* 成功事例の強調数値 */
.yd-highlight-number {
  font-weight: 700;
  color: var(--yd-primary);
}

/* 推奨アクション（タイムライン風） */
.yd-timeline {
  position: relative;
  padding-left: 40px;
}

.yd-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--yd-primary) 0%, var(--yd-secondary-accent) 100%);
  border-radius: 2px;
}

.yd-timeline__item {
  position: relative;
  margin-bottom: var(--yd-spacing-lg);
}

.yd-timeline__item:last-child {
  margin-bottom: 0;
}

.yd-timeline__step {
  position: absolute;
  left: -40px;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--yd-gradient-accent);
  color: white;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 107, 74, 0.3);
}

.yd-hero__image {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
  max-width: 800px;
  /* Wider for PC */
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.yd-hero__image img {
  display: block;
  /* Removes inline gap */
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Smartphone Adjustments */
@media (max-width: 768px) {
  .yd-hero__image {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

/* Form Card */
.yd-timeline__content {
  background: #FFFFFF;
  border: var(--yd-border-light);
  border-radius: var(--yd-radius-md);
  padding: var(--yd-spacing-md);
  box-shadow: var(--yd-shadow-sm);
}

.yd-timeline__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--yd-text-primary);
  margin: 0 0 var(--yd-spacing-xs);
}

.yd-timeline__desc {
  font-size: 14px !important;
  color: var(--yd-text-secondary);
  margin: 0;
  line-height: 1.6 !important;
}

.yd-timeline__conclusion {
  margin-top: var(--yd-spacing-lg);
  padding: var(--yd-spacing-md);
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.08) 0%, rgba(0, 184, 212, 0.08) 100%);
  border-radius: var(--yd-radius-md);
  text-align: center;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--yd-text-primary);
}

/* 診断結果まとめパート - CTA中央寄せ */
.yd-report-cta {
  text-align: center;
  margin-top: var(--yd-spacing-md);
}

.yd-report-cta .yd-btn-cta {
  margin: 0 auto;
}

/* 背中を押すテキスト（FAQ後、パート外） */
.yd-push-text {
  text-align: center;
  padding: var(--yd-spacing-xl) var(--yd-spacing-lg);
  margin: var(--yd-spacing-lg) 0;
  background: transparent;
}

.yd-push-text__main {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--yd-text-primary);
  margin-bottom: var(--yd-spacing-md);
}

.yd-push-text__options {
  font-size: 16px !important;
  color: var(--yd-text-secondary);
  line-height: 1.8 !important;
  margin-bottom: var(--yd-spacing-md);
}

.yd-push-text__options em {
  font-style: italic;
  color: var(--yd-text-muted);
}

.yd-push-text__conclusion {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--yd-primary);
}

/* CTAボタン大サイズ */
.yd-btn-cta--large {
  padding: 16px 32px !important;
  font-size: 18px !important;
}