/**
 * 婚活エニアグラム診断 ページ専用スタイル
 */

.diagnosis-wrap {
  max-width: 800px;
  margin: 4rem auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(225, 232, 237, 0.5);
  overflow: hidden;
  min-height: 580px; /* セクション切り替え時のコンテンツ高さの潰れを防ぐ */
}

/* --- Section Control --- */
.diag-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  padding: 4rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* スタート画面はロード時のガタつきを防ぐためスライドさせずフェードのみにする */
#diagnosis-welcome.diag-section {
  transform: none;
}

.diag-section.current {
  display: block;
}

.diag-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

#diagnosis-welcome.diag-section.fade-in {
  opacity: 1;
  transform: none;
}

/* --- Welcome (Start) Section --- */
.diag-hero {
  text-align: center;
  margin-bottom: 4rem;
  border-bottom: 1px dashed #e1e8ed;
  padding-bottom: 3rem;
}

/* ヒーロー画像（スタート画面） */
.diag-hero-image {
  margin-bottom: 2.5rem;
}

.diag-hero-img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
}

/* タイプ別イラスト（結果画面） */
.diag-result-type-image {
  margin-bottom: 2rem;
}

.diag-type-img {
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(58, 191, 190, 0.15);
}

.diag-hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: #2a9e9d;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.diag-hero-lead {
  font-size: 1.5rem;
  color: #6c7a89;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

.diag-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.diag-feature-item {
  text-align: center;
  background: #fafbfc;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #f0f2f5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diag-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.diag-feature-item .icon {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 1.5rem;
}

.diag-feature-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.diag-feature-item p {
  font-size: 1.3rem;
  color: #6c7a89;
  line-height: 1.6;
}

.diag-start-action {
  text-align: center;
}

.diag-time-note {
  font-size: 1.2rem;
  color: #9aaab8;
  margin-top: 1rem;
}

/* --- Buttons --- */
.diag-btn {
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1.4rem 4rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.diag-btn.primary {
  background: linear-gradient(135deg, #3ABFBE 0%, #29a09f 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(58, 191, 190, 0.3);
}

.diag-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 191, 190, 0.4);
}

.diag-btn.secondary {
  background: #ffffff;
  color: #6c7a89;
  border: 1.5px solid #cbd5e0;
  font-size: 1.4rem;
  padding: 1rem 2.5rem;
}

.diag-btn.secondary:hover:not(:disabled) {
  background: #f7fafc;
  color: #2c3e50;
  border-color: #a0aec0;
}

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

.diag-btn.text {
  background: transparent;
  color: #6c7a89;
  font-size: 1.3rem;
  text-decoration: underline;
  padding: 0.5rem 1.5rem;
}

.diag-btn.text:hover {
  color: #2a9e9d;
}

/* --- Quiz Section --- */
.diag-progress-bar {
  margin-bottom: 4.5rem;
}

.progress-info {
  text-align: right;
  font-size: 1.4rem;
  color: #6c7a89;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.progress-info .current-step {
  color: #3ABFBE;
  font-size: 1.8rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #edf2f7;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #3ABFBE, #2a9e9d);
  border-radius: 5px;
  transition: width 0.3s ease;
}

@keyframes progress-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(58, 191, 190, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(58, 191, 190, 0); }
}

.progress-fill.complete {
  animation: progress-pulse 1s ease-out;
}

.diag-question-box {
  min-height: 250px;
  transition: opacity 0.25s ease;
}

.diag-question-box.fade-out {
  opacity: 0;
}

.diag-question-text {
  font-size: 2.1rem;
  font-weight: 900;
  color: #2c3e50;
  line-height: 1.5;
  margin-bottom: 3.5rem;
  border-left: 5px solid #3ABFBE;
  padding-left: 1.5rem;
}

.diag-options-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.diag-option-btn {
  font-family: inherit;
  font-size: 1.55rem;
  text-align: left;
  background: #ffffff;
  border: 2px solid #edf2f7;
  border-radius: 16px;
  padding: 1.8rem 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

@media (hover: hover) {
  .diag-option-btn:hover {
    border-color: #3ABFBE;
    background: #f4fbfb;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 15px rgba(58, 191, 190, 0.12);
  }
}

.diag-option-btn.selected {
  border-color: #3ABFBE;
  background: linear-gradient(135deg, #f0fbfb 0%, #e6f7f7 100%);
  box-shadow: 0 0 0 3px rgba(58, 191, 190, 0.2);
  pointer-events: none;
}

.diag-option-btn .opt-key {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #f0fbfb;
  color: #3ABFBE;
  font-weight: 900;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(58, 191, 190, 0.2);
}

@media (hover: hover) {
  .diag-option-btn:hover .opt-key {
    background: #3ABFBE;
    color: #ffffff;
    border-color: #3ABFBE;
  }
}

.diag-option-btn.selected .opt-key {
  background: #3ABFBE;
  color: #ffffff;
  border-color: #3ABFBE;
}

.opt-text {
  line-height: 1.5;
  color: #2c3e50;
  font-weight: 500;
}

.diag-quiz-footer {
  border-top: 1px solid #edf2f7;
  padding-top: 2rem;
}

/* --- Result Section --- */
.diag-result-header {
  text-align: center;
  margin-bottom: 4rem;
  border-bottom: 1.5px solid #edf2f7;
  padding: 6.5rem 2rem 2.5rem; /* 上部パディングを3remから6.5remに増やし、ヘッダー被りを回避 */
  background: linear-gradient(180deg, #f0fbfb 0%, #ffffff 100%);
  border-radius: 20px 20px 0 0;
}

.diag-result-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3ABFBE;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.diag-result-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #2c3e50 0%, #3ABFBE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.diag-result-catch {
  font-size: 1.6rem;
  font-weight: 700;
  color: #6c7a89;
}

.diag-result-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}

.diag-result-chart-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: 420px;
  background: transparent;
  border: none;
  padding: 0;
}

.diag-result-summary-box h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.diag-result-desc {
  font-size: 1.55rem;
  color: #334155;
  line-height: 2.1;
  background: #f8fafc;
  padding: 2.5rem;
  border-radius: 20px;
  border-left: 6px solid #3ABFBE;
}

.diag-result-desc p {
  margin-bottom: 1.5rem;
}

.diag-result-desc p:last-child {
  margin-bottom: 0;
}

/* Accordion */
.diag-result-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.diag-image-placeholder {
  width: 100%;
  min-height: 140px;
  background: #f8fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  padding: 2rem;
  margin: 0.5rem 0;
}

.diag-accordion-item {
  background: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.diag-accordion-item[open] {
  border-color: #cbd5e0;
}

.diag-accordion-trigger {
  padding: 1.6rem 2.4rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: #2c3e50;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  background: #fafbfc;
  transition: background 0.2s;
}

.diag-accordion-trigger:hover {
  background: #f4f7f9;
}

.diag-accordion-trigger::-webkit-details-marker {
  display: none; /* Safari デフォルト矢印非表示 */
}

.diag-accordion-trigger::after {
  content: '▼';
  font-size: 1rem;
  color: #a0aec0;
  position: absolute;
  right: 2.4rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

.diag-accordion-item[open] .diag-accordion-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.diag-accordion-content {
  padding: 2.4rem;
  border-top: 1px solid #edf2f7;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #4a5568;
}

.diag-result-list {
  padding-left: 0;
  list-style-type: none;
}

.diag-result-list li {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  background: #f8fafc;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  border-radius: 12px;
  position: relative;
  font-weight: 500;
  color: #334155;
}

.diag-result-list li:last-child {
  margin-bottom: 0;
}

.diag-result-list li::before {
  content: '✨';
  position: absolute;
  left: 1.2rem;
  top: 1.4rem;
  font-size: 1.5rem;
}

/* 課題リスト用のアイコン変更 */
#result-weaknesses li::before {
  content: '💦';
}

/* カウンセリング相談リスト用のアイコン変更 */
.diag-result-list.check-list li::before {
  content: '✅';
}



.diag-action-text {
  white-space: pre-line;
}

/* SNS Share Box */
.diag-share-box {
  text-align: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 4rem;
  border: 1px solid #e2e8f0;
}

.diag-share-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

/* CTA Box */
.diag-cta-box {
  background: linear-gradient(135deg, #f0fbfb 0%, #ffffff 100%);
  border: 2px solid #3ABFBE;
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(58, 191, 190, 0.1);
  position: relative;
  overflow: hidden;
}

.diag-cta-content .badge {
  display: inline-block;
  background: #3ABFBE;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.4rem 1.4rem;
  border-radius: 60px;
  margin-bottom: 1.5rem;
}

.diag-cta-message {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.diag-cta-btn {
  display: block;
  background: linear-gradient(135deg, #e8533f 0%, #d44330 100%); /* --c-accent */
  color: #ffffff !important;
  font-size: 1.8rem;
  font-weight: 900;
  padding: 1.8rem 3rem;
  border-radius: 80px;
  text-decoration: none !important;
  box-shadow: 0 8px 25px rgba(232, 83, 63, 0.3);
  transition: all 0.3s ease;
  max-width: 480px;
  margin: 0 auto;
}

.diag-cta-btn:hover {
  background: linear-gradient(135deg, #d44330 0%, #b33625 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232, 83, 63, 0.4);
}

.diag-cta-btn .sub-txt {
  display: block;
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 0.4rem;
}

.diag-restart-box {
  text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .diagnosis-wrap {
    margin: 2rem 0;
    border-radius: 0;
  }
  .diag-section {
    padding: 2rem 1.2rem;
  }
  .diag-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .diag-hero-title {
    font-size: 2.1rem;
  }
  .diag-question-text {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }
  .diag-options-list {
    gap: 1.2rem;
  }
  .diag-option-btn {
    font-size: 1.4rem;
    padding: 1.2rem 1.5rem;
  }
  .diag-result-grid {
    gap: 2rem;
  }
  .diag-result-chart-box {
    height: 350px;
  }
  .diag-result-title {
    font-size: 2.2rem;
  }
  .diag-cta-box {
    padding: 2.5rem 1.5rem;
  }
  .diag-cta-btn {
    font-size: 1.6rem;
    padding: 1.4rem 2rem;
  }
  .progress-info {
    font-size: 1.2rem;
  }
  .progress-info .current-step {
    font-size: 1.6rem;
  }
  .diag-result-header {
    padding-top: 4.5rem; /* モバイルのヘッダー被り回避 */
  }
}

/* --- Start Gender Buttons Layout --- */
.diag-start-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.diag-start-btn-wrap .diag-btn {
  margin: 0;
  min-width: 260px;
}

@media (max-width: 768px) {
  .diag-start-btn-wrap {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .diag-start-btn-wrap .diag-btn {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }
}

/* --- Quick Diagnosis Teaser (Blur / Lock) --- */
.teaser-blur-box {
  position: relative;
  min-height: 80px;
}

.teaser-blur-box .diag-result-list,
.teaser-blur-box .diag-action-text {
  filter: blur(5px);
  opacity: 0.35;
  user-select: none;
  pointer-events: none;
}

.teaser-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
}

.lock-msg {
  background: #2c3e50;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.05em;
}

/* --- Quick Diagnosis 2-Column CTA Area --- */
.diag-quick-cta-area {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.diag-quick-cta-area.single-cta {
  display: block;
  max-width: 500px;
  margin: 0 auto 4rem;
}

.diag-quick-cta-box {
  background: #ffffff;
  border: 2px solid #edf2f7;
  border-radius: 20px;
  padding: 3.5rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.diag-quick-cta-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(58, 191, 190, 0.08);
}

.diag-quick-cta-box.detailed-diagnosis {
  border-color: #3ABFBE;
  background: linear-gradient(135deg, #f0fbfb 0%, #ffffff 100%);
}

.diag-quick-cta-box.free-counseling {
  border-color: #e8533f;
  background: linear-gradient(135deg, #fef0ee 0%, #ffffff 100%);
}

.diag-quick-cta-box:hover.free-counseling {
  box-shadow: 0 15px 35px rgba(232, 83, 63, 0.08);
}

.diag-quick-cta-box .badge {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.detailed-diagnosis .badge {
  background: #e6f7f7;
  color: #2a9e9d;
  border: 1px solid rgba(58, 191, 190, 0.2);
}

.free-counseling .badge {
  background: #fdf2f0;
  color: #d44330;
  border: 1px solid rgba(232, 83, 63, 0.2);
}

.diag-quick-cta-box h4 {
  font-size: 1.75rem;
  font-weight: 900;
  color: #2c3e50;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.diag-quick-cta-box .cta-desc {
  font-size: 1.3rem;
  color: #6c7a89;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.diag-quick-cta-btn {
  display: block;
  width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.3rem 2rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-detailed {
  background: linear-gradient(135deg, #3ABFBE 0%, #2a9e9d 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(58, 191, 190, 0.25);
}

.btn-detailed:hover {
  background: linear-gradient(135deg, #2a9e9d 0%, #1e7d7b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 191, 190, 0.35);
}

.diag-quick-cta-box .btn-reserve {
  background: linear-gradient(135deg, #e8533f 0%, #d44330 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(232, 83, 63, 0.25);
}

.diag-quick-cta-box .btn-reserve:hover {
  background: linear-gradient(135deg, #d44330 0%, #b33625 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 83, 63, 0.35);
}

@media (max-width: 768px) {
  .diag-quick-cta-area {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .diag-quick-cta-box {
  }
}

/* --- Quick Diagnosis Result Page & Navigation Grid --- */
.diagnosis-wrap.result-only {
  min-height: auto;
  margin-bottom: 2rem;
}

.diagnosis-others-section {
  max-width: 800px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.others-section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.others-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #3ABFBE;
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.others-section-lead {
  font-size: 1.45rem;
  color: #6c7a89;
  text-align: center;
  margin-bottom: 4rem;
  line-height: 1.6;
}

/* 9 Type Grid Layout */
.diag-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.diag-type-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.diag-type-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* 現在表示中のタイプのカード装飾 */
.diag-type-card-link.is-current .diag-type-card {
  border: 2px solid #3ABFBE;
  background: linear-gradient(135deg, #f0fbfb 0%, #ffffff 100%);
  box-shadow: 0 10px 25px rgba(58, 191, 190, 0.1);
}

.current-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #3ABFBE;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 0 0 12px 0;
}

.type-num-label {
  font-size: 1.25rem;
  font-weight: 800;
  color: #3ABFBE;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.diag-type-card-link.is-current .type-num-label {
  color: #2a9e9d;
}

.type-name-label {
  font-size: 1.65rem;
  font-weight: 900;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.type-catch-label {
  font-size: 1.25rem;
  color: #6c7a89;
  line-height: 1.5;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-arrow {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3ABFBE;
  transition: transform 0.2s ease;
}

/* Hover Interaction */
.diag-type-card-link:hover {
  transform: translateY(-6px);
}

.diag-type-card-link:hover .diag-type-card {
  border-color: #3ABFBE;
  box-shadow: 0 15px 35px rgba(58, 191, 190, 0.15);
}

.diag-type-card-link.is-current:hover .diag-type-card {
  border-color: #2a9e9d;
  box-shadow: 0 15px 35px rgba(42, 158, 157, 0.2);
}

.diag-type-card-link:hover .card-arrow {
  transform: translateX(4px);
  color: #2a9e9d;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .diag-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .diagnosis-others-section {
    margin: 4rem auto;
  }
}

@media (max-width: 480px) {
  .diag-types-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .diag-type-card {
    padding: 2rem 1.5rem;
  }
}

/* ====================================================================
   Quick Diagnosis Welcome Section Customizations
   ==================================================================== */

/* スライダーの回り込みに備えて親ラッパーおよびinnerコンテナの前後関係を制御 */
#p-diagnosis-quick {
  position: relative;
  overflow: hidden; /* スライダーのはみ出しによる横スクロールバー発生を防ぐ */
}

#p-diagnosis-quick .inner {
  position: relative;
  z-index: 2; /* 診断コンテンツ（白背景カード）をスライダーの前面に配置 */
}

/* 流れる画像スライダーの基本構造 */
.diag-flow-sliders-wrap {
  pointer-events: none;
  user-select: none;
  width: 100%;
  
  /* クイズ中や結果表示中などは非表示にする */
  display: none;
}

/* ウェルカム画面が表示されているときだけ表示 */
#p-diagnosis-quick:has(#diagnosis-welcome.current) .diag-flow-sliders-wrap {
  display: flex;
}

.diag-flow-slider {
  overflow: hidden;
  width: 100%;
}

.diag-flow-track {
  display: flex;
  width: max-content;
  align-items: center;
}

.diag-flow-item {
  flex-shrink: 0;
}

.diag-flow-item img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  padding: 0.5rem;
  border: 1px solid rgba(225, 232, 237, 0.4);
}

/* 流れ方向ごとのアニメーション定義 */
.diag-flow-track.to-left {
  animation: diag-marquee-left 50s linear infinite;
}

.diag-flow-track.to-right {
  animation: diag-marquee-right 50s linear infinite;
}

@keyframes diag-marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes diag-marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ---------------------------------
   PC版限定：白背景のカード背面（画面幅いっぱい）に2段で流す
   --------------------------------- */
@media (min-width: 769px) {
  .diag-flow-sliders-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; /* 画面幅いっぱいに流す */
    z-index: 1; /* 診断カード（z-index: 2）の背面 */
    display: flex;
    flex-direction: column;
    gap: 16rem; /* 診断カードの上下にきれいに隠れるよう配置幅を広げる */
  }

  .diag-flow-item {
    width: 180px; /* PC版では画像を大きめに */
    margin: 0 3rem;
  }
}

/* ---------------------------------
   スマホ版：診断ボタンの下に1段で流す
   --------------------------------- */
@media (max-width: 768px) {
  /* スマホ版では非表示連動をblockに変更して下部に流す */
  #p-diagnosis-quick:has(#diagnosis-welcome.current) .diag-flow-sliders-wrap {
    display: block;
  }

  .diag-flow-sliders-wrap {
    position: relative;
    margin: 4rem auto 2rem;
    padding-top: 2rem;
    border-top: 1px dashed #e1e8ed;
    z-index: 1;
  }

  /* スマホ版では高さを抑えるため、2段目は非表示 */
  .diag-flow-slider.row-2 {
    display: none;
  }

  .diag-flow-item {
    width: 90px; /* スマホ用に画像をコンパクトに */
    margin: 0 1rem;
  }

  .diag-flow-track.to-left {
    animation-duration: 25s; /* 流れる速度をスマホ用に調整 */
  }
}

/* --- Action Box (婚活成功への近道) --- */
.diag-result-action-box {
  background: #f0fbfb;
  border-left: 5px solid #3ABFBE;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(58, 191, 190, 0.04);
}

.diag-result-action-box .action-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2a9e9d;
  margin-bottom: 1rem;
}

.diag-result-action-box .action-desc {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #4a5568;
}





