/* Diagnosis result page.
   Reference: .claude/references/diagnosis-result/lv1–lv5.png (1672x941; body content 1520px wide).
   Reproduced at site scale: the content column is the site container min(1366px, 100% - 64px),
   so every measurement below is a reference pixel x 0.899. Capture at 1503x846 to compare 1:1
   (see .claude/ui-targets/diagnosis-result.json).

   The five levels share ONE layout. Only the palette below and the text in result-levels.js differ. */

/* ---------- Level palettes ---------- */
.diagnosis-result-page {
  --rv-accent: #2D6395;          /* level colour: %, level name, chart stroke, icons */
  --rv-accent-soft: #6C8FB0;
  --rv-tint: #F4F7F9;            /* summary card fill */
  --rv-line: var(--c-border, #D9E5E8);  /* dividers inside the summary card */
  --rv-chart-fill: rgba(45, 99, 149, .22);
  --rv-chart-grid: #E7EAEC;
  --rv-chart-base: #FBFCFD;
  --rv-ink: var(--c-ink, #102A43);      /* headings */
  --rv-body: var(--c-ink-body, #1E3A50);/* body copy */
  --rv-muted: var(--c-ink-sub, #587083);
  --rv-page: var(--c-bg, #F7FAFC);
  --rv-card-border: var(--c-border, #D9E5E8);
  --rv-label-bg: var(--c-action-soft, #EAF7F5);  /* training category chip (constant across levels) */
  --rv-label-text: var(--c-action-text, #066A63);
  background: var(--rv-page);
}
.diagnosis-result-page[data-result-level="2"] {
  --rv-accent: #2265A3; --rv-accent-soft: #658FB7; --rv-tint: #F2F6F9; --rv-line: #DFE5EB;
  --rv-chart-fill: rgba(34, 101, 163, .20); --rv-chart-grid: #E7EAED;
}
.diagnosis-result-page[data-result-level="3"] {
  --rv-accent: #0E827A; --rv-accent-soft: #5FA7A2; --rv-tint: #F1FAF9; --rv-line: #D4EAE9;
  --rv-chart-fill: rgba(14, 130, 122, .18); --rv-chart-grid: #E0EBEA;
}
.diagnosis-result-page[data-result-level="4"] {
  --rv-accent: #0A726B; --rv-accent-soft: #5CA09B; --rv-tint: #F1F9F8; --rv-line: #D2E8E7;
  --rv-chart-fill: rgba(10, 114, 107, .18); --rv-chart-grid: #DFEAE9;
}
/* Lv.5 keeps the deep teal and adds gold only on the crown mark. */
.diagnosis-result-page[data-result-level="5"] {
  --rv-accent: #0A6660; --rv-accent-soft: #559B96; --rv-tint: #F2FAF9; --rv-line: #D2E7E6;
  --rv-chart-fill: rgba(10, 102, 96, .20); --rv-chart-grid: #DEE9E8;
  --rv-gold: #B08114;
}

/* ---------- Page shell ---------- */
.maturity-main.rv {
  position: relative;
  box-sizing: border-box;
  width: min(1366px, 100% - 64px);
  margin-inline: auto;
  padding: 10px 0 56px;
  color: var(--rv-body);
  font-size: 16px;
}
.rv > * { position: relative; z-index: 1; }
.rv-icon { display: block; width: 100%; height: 100%; }

/* ---------- Breadcrumb row ---------- */
.rv-topline { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rv-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--rv-muted); }
.rv-breadcrumb li + li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 16px 1px; border-top: 1.4px solid #8CA0B2; border-right: 1.4px solid #8CA0B2; transform: rotate(45deg); }
.rv-breadcrumb a { color: inherit; text-decoration: none; }
.rv-breadcrumb a:hover { text-decoration: underline; }
.rv-breadcrumb [aria-current] { color: var(--rv-ink); }
.rv-topline__tagline { display: flex; align-items: center; margin: 0 !important; font-size: 14px; color: var(--rv-muted); white-space: nowrap; }
.rv-topline__rule { width: 108px; height: 1px; margin-right: 16px; background: #CBD1D6; }

/* ---------- Hero ---------- */
.rv-hero { position: relative; display: grid; grid-template-columns: minmax(0, 652px) minmax(0, 1fr); align-items: start; margin-top: 30px; padding-bottom: 11px; }
.rv-hero__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 !important; color: var(--rv-accent); font-size: 12.5px; font-weight: 600; line-height: 1.2; letter-spacing: .34em; }
.rv-hero__eyebrow-mark { flex: 0 0 9px; width: 9px; height: 9px; stroke-width: 2.4; opacity: .75; }
.maturity-main.rv .rv-hero__title { margin: 14px 0 0 !important; color: var(--rv-ink); font-size: 48px; font-weight: 800; letter-spacing: .05em; line-height: 1.1; }
.rv-hero__title:focus { outline: none; }
.rv-hero__lead { margin: 10px 0 0 !important; color: #3C5266; font-size: 21.5px; line-height: 1.4; letter-spacing: .02em; }
.rv-hero__message { margin: 4px 0 0 !important; padding-left: 27px; border-left: 1px solid #D5DBE0; color: #32485D; font-size: 16px; line-height: 1.6; letter-spacing: .02em; }

/* Decorative panel bleeding to the right viewport edge, behind the cards.
   The reference shows a bright office/city photograph. No such asset exists in this repo and
   none was fetched from outside, so the same box is filled with a brand gradient for now.
   To swap in the real photo later, keep this element and this geometry and only replace the
   `background` below with:  url("/images/diagnosis/hero-result.<ext>") center/cover no-repeat;
   leaving the white-to-transparent overlay and the mask as they are. */
.rv-hero__visual {
  position: absolute;
  z-index: 0;
  top: -12px;
  left: 1069px;
  right: calc(50% - 50vw);
  height: 470px;
  overflow: hidden;
  background:
    linear-gradient(200deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .25) 34%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(140deg, #ECF0F4 0%, #E0E6EC 42%, #D3DBE3 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0, rgba(0, 0, 0, .5) 18%, #000 44%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 0, rgba(0, 0, 0, .5) 18%, #000 44%, #000 100%);
}
.rv-hero__visual-copy {
  position: absolute;
  top: 38px;
  right: 42px;
  margin: 0 !important;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 50, 75, .28);
  color: #2B4965;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3em;
  line-height: 1.9;
}

/* ---------- Overview (summary card + radar card) ---------- */
.rv-overview { display: grid; grid-template-columns: minmax(0, 1fr) var(--rv-chart-width, 547px); gap: 13px; align-items: stretch; }
.rv-panel { box-sizing: border-box; border: 1px solid var(--rv-card-border); border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(23, 50, 75, .04); }

.rv-summary { padding: 18px 26px 14px 28px; }
.rv-summary__card { box-sizing: border-box; height: 100%; padding: 18px 26px 12px 28px; border-radius: 11px; background: var(--rv-tint); }
.rv-summary__label { display: flex; align-items: center; gap: 9px; margin: 0 !important; color: #1A3651; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; }
.rv-summary__info { flex: 0 0 17px; width: 17px; height: 17px; color: #8197AC; }

.rv-score-row { display: grid; grid-template-columns: 272px minmax(0, 1fr); align-items: center; margin-top: 8px; }
.rv-percent { display: flex; align-items: baseline; justify-content: center; margin: 0 !important; color: var(--rv-accent); line-height: .7; }
.rv-percent strong { font-size: 114px; font-weight: 700; letter-spacing: -.015em; }
.rv-percent small { margin-left: 10px; font-size: 41px; font-weight: 700; }

.rv-level { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 18px; padding-left: 38px; border-left: 1px solid var(--rv-line); }
.rv-level__icon { grid-row: span 2; width: 50px; height: 50px; color: var(--rv-accent); }
.rv--lv5 .rv-level__icon { color: var(--rv-gold, #B08114); }
.rv-level__name { display: flex; align-items: baseline; gap: 16px; margin: 0 !important; color: var(--rv-accent); line-height: 1.25; }
.rv-level__name span { font-size: 30px; font-weight: 600; letter-spacing: .02em; }
.rv-level__name strong { font-size: 36px; font-weight: 700; letter-spacing: .06em; }
.rv--lv5 .rv-level__name strong { color: var(--rv-gold, #B08114); }
.rv-level__summary { grid-column: 2; margin: 6px 0 0 !important; color: #3D5367; font-size: 14.5px; line-height: 1.4; letter-spacing: .02em; min-height: 41px;}

/* ---------- Focus bar ---------- */
.rv-focus { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; min-height: 63px; margin-top: 12px; padding: 10px 21px; border-radius: 10px; background: #fff; color: var(--rv-ink) !important; text-decoration: none; }
.rv-focus:hover { box-shadow: 0 2px 10px rgba(23, 50, 75, .08); }
.rv-focus__icon { width: 36px; height: 36px; margin-right: 16px; color: var(--rv-accent); }
.rv-focus__icon .rv-icon { stroke-width: 1.5; }
.rv-focus__title { font-size: 17px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.rv-focus__text { padding-left: 24px; margin-left: 28px; border-left: 1px solid var(--rv-line); color: #45596C; font-size: 13px; line-height: 1.6; }
.rv-focus__chevron { width: 15px; height: 15px; margin-left: 14px; color: #7C91A4; stroke-width: 2; }

/* 15.2px: 参考のLv.5も45文字の文を1行に収めており、カード内幅696pxに収まる最大級。
   min-height は2行分の予約（文章を切らずに5状態の高さを揃えるため）。 */
.rv-description { margin: 12px 0 0 !important; color: #3A5671; font-size: 15.2px; line-height: 1.47; letter-spacing: 0; min-height: 45px;}

/* ---------- Radar card ---------- */
.rv-chart { padding: 20px 34px 14px; }
.maturity-main.rv .rv-chart h2 { display: flex; align-items: center; gap: 10px; margin: 0 !important; color: var(--rv-ink); font-size: 20px; font-weight: 700; letter-spacing: .03em; }
.rv-chart__info { flex: 0 0 17px; width: 17px; height: 17px; color: #8197AC; }
.rv-radar { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.rv-radar__base { fill: var(--rv-chart-base); }
.rv-radar__grid { fill: none; stroke: var(--rv-chart-grid); stroke-width: 1; }
.rv-radar__area { fill: var(--rv-chart-fill); stroke: var(--rv-accent); stroke-width: 2; stroke-linejoin: round; }
.rv-radar__dot { fill: var(--rv-accent); }
.rv-radar__label { font-size: 15px; fill: #34495D; }
.rv-radar__value { font-size: 25px; font-weight: 700; fill: var(--rv-ink); }
.rv-chart__legend { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 0 !important; color: #45596C; font-size: 14px; line-height: 1.2; }
.rv-chart__legend-mark { position: relative; width: 34px; height: 2px; background: var(--rv-accent); }
.rv-chart__legend-mark::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--rv-accent); transform: translate(-50%, -50%); }

/* ---------- Score cards ---------- */
.rv-scores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 15px 0 0 !important; padding: 0; list-style: none; }
.rv-scores__card { display: flex; align-items: center; gap: 14px; height: 78px; padding: 0 14px 0 16px; border: 1px solid var(--rv-card-border); border-radius: 10px; background: #fff; color: var(--rv-ink) !important; text-decoration: none; box-shadow: 0 1px 5px rgba(23, 50, 75, .03); }
.rv-scores__card:hover { box-shadow: 0 4px 14px rgba(23, 50, 75, .08); }
.rv-scores__icon { flex: 0 0 48px; width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--rv-tint); color: var(--rv-accent); }
.rv-scores__text { display: flex; flex-direction: column; min-width: 0; }
.rv-scores__text b { font-size: 16px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.rv-scores__text > span { margin-top: 3px; font-size: 20px; font-weight: 600; white-space: nowrap; }
.rv-scores__text strong { font-weight: 700; }
.rv-scores__chevron { flex: 0 0 14px; width: 14px; height: 14px; margin-left: auto; color: #8CA0B2; stroke-width: 2; }

/* ---------- Recommended trainings ---------- */
.rv-recommend { margin-top: 18px; padding-top: 12px; border-top: 1px solid #E2E6EA; }
.rv-recommend__head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; padding-bottom: 14px; }
.rv-recommend__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 20px 0 0 !important; color: var(--rv-muted); font-size: 13px; font-weight: 600; letter-spacing: .28em; }
.rv-recommend__eyebrow-mark { flex: 0 0 9px; width: 9px; height: 9px; stroke-width: 2.4; opacity: .8; }
.maturity-main.rv .rv-recommend h2 { margin: 0 !important; color: var(--rv-ink); font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: .04em; }
.rv-recommend__lead { margin: 0 !important; padding-left: 28px; margin-left: 28px !important; border-left: 1px solid #DBE0E5; color: var(--rv-muted); font-size: 15px; letter-spacing: .02em; }
.rv-recommend__all { display: inline-flex; align-items: center; gap: 12px; color: var(--rv-accent) !important; font-size: 16px; font-weight: 600; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.rv-recommend__all .rv-icon { width: 20px; height: 20px; stroke-width: 1.8; }
.rv-recommend__all:hover { text-decoration: underline; }
.rv-recommend__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.rv-status { margin: 0 0 14px !important; color: var(--rv-body); }

.rv-training { min-width: 0; }
.rv-training__link { position: relative; display: block; min-height: 176px; overflow: hidden; border: 1px solid var(--rv-card-border); border-radius: 12px; background: #fff; color: var(--rv-ink) !important; text-decoration: none; box-shadow: 0 2px 10px rgba(23, 50, 75, .05); transition: box-shadow .2s ease, transform .2s ease; }
.rv-training__link:hover { box-shadow: 0 10px 26px rgba(23, 50, 75, .12); transform: translateY(-2px); }
.rv-training__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* The photo runs under the copy; this veil keeps the left half readable, as in the reference. */
.rv-training__veil { position: absolute; inset: 0; background: linear-gradient(95deg, #fff 0%, rgba(255, 255, 255, .96) 36%, rgba(255, 255, 255, .72) 52%, rgba(255, 255, 255, .12) 72%, rgba(255, 255, 255, 0) 88%); }
.rv-training__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 16px 18px 18px; }
.rv-training__label { max-width: 100%; overflow: hidden; padding: 5px 13px; border-radius: 999px; background: var(--rv-label-bg); color: var(--rv-label-text); font-size: 13px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.rv-training__title { display: -webkit-box; margin-top: 14px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 74%; font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: .03em; }
.rv-training__desc { display: -webkit-box; margin-top: 10px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 68%; color: #43596E; font-size: 14px; line-height: 1.6; letter-spacing: .02em; }
.rv-training__arrow { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rv-accent); box-shadow: 0 2px 8px rgba(23, 50, 75, .16); }
.rv-training__arrow .rv-icon { stroke-width: 2.2; }

/* ---------- Existing detail sections (kept below the redesigned area) ---------- */
.rv-details { margin-top: 34px; }
.rv-details__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.rv-details__aside { display: grid; gap: 20px; }
.rv-details__roadmap { margin-top: 20px; }
.rv-details .maturity-panel { border-radius: 14px; border-color: var(--rv-card-border); }
.rv-details .maturity-levels .is-active span { background: var(--rv-accent); border-color: var(--rv-accent); }
.rv-details .maturity-button--primary { background: var(--rv-accent); border-color: var(--rv-accent); }
.rv-details > .maturity-button { margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .rv-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
  .rv-hero__visual { display: none; }
  .rv-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
  .rv-score-row { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); }
  .rv-percent strong { font-size: 92px; }
  .rv-percent small { font-size: 34px; }
  .rv-level { padding-left: 28px; column-gap: 18px; }
  .rv-level__name strong { font-size: 30px; }
  .rv-level__name span { font-size: 25px; }
  .rv-focus { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 4px; }
  .rv-focus__text { grid-column: 2; padding-left: 0; margin-left: 0; border-left: 0; }
}
@media (max-width: 1024px) {
  .rv-hero { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .rv-hero__message { padding-left: 20px; }
  .rv-overview { grid-template-columns: minmax(0, 1fr); }
  .rv-scores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rv-recommend__head { grid-template-columns: auto minmax(0, 1fr); row-gap: 10px; }
  .rv-recommend__lead { grid-column: 1 / -1; padding-left: 0; margin-left: 0 !important; border-left: 0; }
  .rv-recommend__all { grid-column: 2; justify-self: end; }
  .rv-recommend__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-details__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .maturity-main.rv { width: min(100% - 32px, 1366px); padding-top: 12px; }
  .rv-topline__tagline { display: none; }
  .rv-hero { margin-top: 18px; padding-bottom: 16px; }
  .rv-hero__title { font-size: 30px; }
  .rv-hero__lead { font-size: 16px; }
  .rv-hero__message { font-size: 14px; }
  .rv-summary { padding: 12px; }
  .rv-summary__card { padding: 18px 16px; }
  .rv-score-row { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .rv-percent { justify-content: flex-start; }
  .rv-percent strong { font-size: 76px; }
  .rv-percent small { font-size: 30px; }
  .rv-level { padding-left: 0; border-left: 0; column-gap: 14px; }
  .rv-level__icon { width: 40px; height: 40px; }
  .rv-level__name span { font-size: 20px; }
  .rv-level__name strong { font-size: 26px; }
  .rv-level__summary { font-size: 14px; }
  .rv-focus { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; padding: 12px 14px; }
  .rv-focus__chevron { display: none; }
  .rv-focus__title { font-size: 15px; }
  .rv-description { font-size: 15px; }
  .rv-chart { padding: 18px 14px 14px; }
  .rv-chart h2 { font-size: 17px; }
  .rv-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rv-scores__card { height: 68px; gap: 10px; padding: 0 10px; }
  .rv-scores__icon { flex-basis: 40px; width: 40px; height: 40px; padding: 9px; }
  .rv-scores__text b { font-size: 14px; }
  .rv-scores__text > span { font-size: 17px; }
  .rv-recommend h2 { font-size: 22px; }
  .rv-recommend__grid { grid-template-columns: minmax(0, 1fr); }
  .rv-training__title { max-width: 100%; font-size: 18px; }
  .rv-training__desc { max-width: 100%; }
}
