/* ==========================================================================
   無料AI診断ページ専用スタイル
   ========================================================================== */

/* ---------- Hero（ダーク + オーロラ） ---------- */
.diag-hero {
  position: relative;
  overflow: hidden;
  background: var(--c-dark-bg);
  color: #fff;
  padding: calc(clamp(64px, 9vw, 120px) + 72px) 0 clamp(56px, 8vw, 96px);
}

/* 最終検証で発覚: パンくずの現在ページ表示が共有style.cssの既定色(--c-ink、
   ダーク背景と同色)のまま上書きされておらず、実質不可視になっていた。
   .page-hero--world 用の白系上書きと同じパターンをこのダークヒーロー専用に適用する。 */
.diag-hero .breadcrumb a,
.diag-hero .breadcrumb li {
  color: rgba(255, 255, 255, 0.7);
}
.diag-hero .breadcrumb [aria-current="page"] {
  color: #fff;
}

.diag-hero::before,
.diag-hero::after {
  content: "";
  position: absolute;
  width: clamp(420px, 50vw, 820px);
  height: clamp(420px, 50vw, 820px);
  border-radius: 50%;
  pointer-events: none;
}

.diag-hero::before {
  left: -12%;
  bottom: -55%;
  background: radial-gradient(circle, rgba(43, 92, 255, 0.22) 0%, transparent 62%);
}

.diag-hero::after {
  right: -14%;
  top: -55%;
  background: radial-gradient(circle, rgba(0, 196, 204, 0.14) 0%, transparent 62%);
}

.diag-hero .container {
  position: relative;
  z-index: 1;
}

.diag-hero .page-title {
  color: #fff;
}

.diag-hero .page-title-en {
  color: #9db9ff;
}

.diag-hero .page-lead {
  color: #c9d3e8;
  max-width: 620px;
}

.diag-hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
}

.diag-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--r-full);
  border: 1px solid rgba(214, 226, 255, 0.25);
  background: rgba(214, 226, 255, 0.06);
}

.diag-hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g-brand);
}

/* ---------- 診断カード ---------- */
.diag-section {
  padding-top: clamp(48px, 6vw, 72px);
}

.container--narrow {
  max-width: 860px;
  margin-inline: auto;
}

.diag-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 24px;
  padding: clamp(28px, 4.5vw, 56px);
  box-shadow: 0 24px 70px -30px rgba(10, 20, 50, 0.18);
}

/* ---------- 進捗 ---------- */
.diag-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.diag-progress-label {
  font-family: "Inter", var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-brand);
  white-space: nowrap;
}

.diag-progress-label small {
  font-size: 0.72em;
  font-weight: 700;
  color: var(--c-text-sub);
}

.diag-progress-track {
  flex: 1;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--c-line);
  overflow: hidden;
}

.diag-progress-bar {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: var(--g-brand);
  transition: width 0.45s var(--ease-out);
}

/* ---------- 設問 ---------- */
.diag-axis-tag {
  display: inline-block;
  font-family: "Inter", var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-brand-deep);
  background: rgba(43, 92, 255, 0.08);
  border-radius: var(--r-full);
  padding: 4px 14px;
  margin-bottom: 14px;
}

.diag-question {
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 26px;
}

.diag-options {
  display: grid;
  gap: 12px;
}

.diag-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-out);
}

.diag-option:hover {
  border-color: var(--c-brand);
  background: rgba(43, 92, 255, 0.05);
  transform: translateX(4px);
}

.diag-option.is-selected {
  border-color: var(--c-brand);
  background: rgba(43, 92, 255, 0.08);
}

.diag-option-mark {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c4cede;
  transition: border-color 0.25s, background 0.25s;
}

.diag-option:hover .diag-option-mark,
.diag-option.is-selected .diag-option-mark {
  border-color: var(--c-brand);
  background: radial-gradient(circle, var(--c-brand) 0 45%, transparent 50%);
}

.diag-back {
  margin-top: 22px;
  background: none;
  border: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-text-sub);
  cursor: pointer;
  padding: 4px 0;
}

.diag-back:hover {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 結果 ---------- */
.diag-result-eyebrow {
  font-family: "Inter", var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.diag-level {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.diag-level-badge {
  font-family: "Inter", var(--font-sans);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.diag-level-badge small {
  font-size: 0.5em;
  font-weight: 700;
}

.diag-level-name {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
}

.diag-headline {
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.7rem);
  font-weight: 900;
  margin-bottom: 26px;
}

.diag-result-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  margin-bottom: 30px;
}

.diag-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.diag-summary {
  color: var(--c-text-sub);
  line-height: 2;
}

.diag-sw {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 2;
}

.diag-sw-strong { color: var(--c-brand-deep); }
.diag-sw-weak { color: var(--c-welfare-text); }

.diag-invest-note {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--c-text-sub);
  background: var(--c-bg-soft);
  border-left: 3px solid var(--c-brand);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
}

.diag-sub {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 28px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.diag-roadmap {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
}

.diag-roadmap li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.8;
}

.diag-roadmap-num {
  flex: none;
  font-family: "Inter", var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-brand);
}

.diag-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.diag-service {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-bg-soft);
  color: var(--c-text);
  transition: border-color 0.25s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.diag-service:hover {
  border-color: var(--c-brand);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -18px rgba(43, 92, 255, 0.35);
}

.diag-service-name {
  display: block;
  font-weight: 800;
  font-size: 0.98rem;
}

.diag-service-price {
  display: block;
  font-family: "Inter", var(--font-sans);
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--c-brand-deep);
  margin-top: 4px;
}

.diag-service-desc {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-sub);
  line-height: 1.8;
  margin-top: 8px;
}

.diag-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.btn--ghost {
  background: none;
  border: 1.5px solid var(--c-line);
  color: var(--c-text);
  cursor: pointer;
}

.btn--ghost:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.diag-note {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--c-text-sub);
}

/* ---------- 有料診断への橋 ---------- */
.diag-next {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  overflow-x: hidden;
}

.diag-next-facts {
  border: 1px solid var(--c-line);
  border-radius: 20px;
  background: var(--c-bg);
  padding: clamp(24px, 3vw, 36px);
}

.diag-next-fact {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}

.diag-next-fact strong {
  font-family: "Inter", var(--font-sans);
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.diag-next-fact span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text-sub);
}

.diag-next-list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
}

.diag-next-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.8;
}

.diag-next-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--c-brand);
  border-bottom: 2px solid var(--c-brand);
  transform: rotate(-45deg);
}

.diag-trust {
  margin-top: clamp(32px, 5vw, 48px);
  font-size: 0.86rem;
  color: var(--c-text-sub);
  text-align: center;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 760px) {
  .diag-result-grid,
  .diag-next {
    grid-template-columns: 1fr;
  }
  .diag-chart {
    max-width: 340px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diag-option,
  .diag-progress-bar,
  .diag-service {
    transition: none;
  }
}
