:root {
  color-scheme: light;
  --ink: #2f3542;
  --text: #343c4b;
  --muted: #667085;
  --paper: #ffffff;
  --section: #f6f7f9;
  --surface: #ffffff;
  --line: #e5e8ec;
  --analyst: #88619a;
  --diplomat: #33a474;
  --sentinel: #4298b4;
  --explorer: #e4ae3a;
  --primary: #2f9ab2;
  --primary-dark: #247f93;
  --shadow: 0 14px 34px rgba(47, 53, 66, 0.1);
  font-family:
    "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 4px;
  width: 30px;
  height: 30px;
  place-content: center;
}

.brand-mark i {
  width: 10px;
  height: 10px;
  display: block;
}

.brand-mark i:nth-child(1) {
  background: var(--analyst);
}

.brand-mark i:nth-child(2) {
  background: var(--sentinel);
}

.brand-mark i:nth-child(3) {
  background: var(--explorer);
}

.brand-mark i:nth-child(4) {
  background: var(--diplomat);
}

.nav {
  display: flex;
  gap: 30px;
  color: #4d5868;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  max-width: 1180px;
  min-height: 640px;
  margin: 0 auto;
  padding: 80px 24px 92px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12em;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions,
.share-actions,
.quiz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.button,
.filter,
.text-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.filter:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 9px 20px rgba(47, 154, 178, 0.24);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary);
  background: #ffffff;
  border: 2px solid var(--primary);
}

.personality-visual {
  position: relative;
  min-height: 430px;
}

.role-tile {
  position: absolute;
  display: grid;
  gap: 5px;
  width: 172px;
  min-height: 132px;
  padding: 24px 20px;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(47, 53, 66, 0.14);
}

.role-tile span {
  font-size: 14px;
  font-weight: 900;
  opacity: 0.9;
}

.role-tile strong {
  font-size: 24px;
  line-height: 1.12;
}

.role-tile::after {
  content: "";
  align-self: end;
  width: 58px;
  height: 12px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.role-tile.analyst {
  top: 12px;
  left: 18px;
  background: var(--analyst);
}

.role-tile.diplomat {
  top: 58px;
  right: 18px;
  background: var(--diplomat);
}

.role-tile.sentinel {
  bottom: 38px;
  left: 0;
  background: var(--sentinel);
}

.role-tile.explorer {
  right: 0;
  bottom: 0;
  background: var(--explorer);
}

.center-device {
  position: absolute;
  inset: 50%;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border: 12px solid #edf0f2;
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: translate(-50%, -45%);
}

.device-face {
  width: 84px;
  height: 54px;
  background: var(--ink);
  position: relative;
}

.device-face::before,
.device-face::after {
  content: "";
  position: absolute;
  bottom: -18px;
  width: 22px;
  height: 18px;
  background: var(--ink);
}

.device-face::before {
  left: 10px;
}

.device-face::after {
  right: 10px;
}

.device-port {
  position: absolute;
  bottom: 42px;
  width: 58px;
  height: 10px;
  background: #cfd6dd;
}

.quiz-section,
.result-section,
.characters-section {
  padding: 86px 24px;
}

.quiz-section {
  background: var(--section);
}

.diagnosis-page {
  padding-top: 58px;
}

.characters-section {
  padding: 86px 0 0;
  background: var(--paper);
}

.characters-section > .section-head {
  padding: 0 24px;
  margin-bottom: 64px;
}

.section-head {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h1,
.section-head h2,
.result-card h2 {
  margin: 0;
  max-width: none;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.quiz-head {
  margin-bottom: 22px;
}

.quiz-shell,
.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.progress-wrap,
.quiz-card,
.result-card,
.share-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(47, 53, 66, 0.07);
}

.progress-wrap {
  padding: 22px 24px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.progress-track {
  height: 12px;
  margin-top: 14px;
  background: #e6eaee;
  overflow: hidden;
}

.progress-bar {
  width: 10%;
  height: 100%;
  background: var(--primary);
  transition: width 220ms ease;
}

.quiz-card {
  padding: clamp(28px, 5vw, 54px);
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  width: 100%;
  min-height: 112px;
  color: var(--ink);
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  max-width: 720px;
  margin: 28px auto 18px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
}

.scale-labels span:first-child {
  color: var(--diplomat);
}

.scale-labels span:last-child {
  color: var(--analyst);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(54px, 1fr));
  align-items: center;
  gap: 18px;
  max-width: 720px;
  min-height: 84px;
  margin: 0 auto;
}

.question-list {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 860px;
  min-height: 0;
  margin-top: 6px;
}

.question-row {
  display: grid;
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.question-row:first-child {
  border-top: 0;
}

.question-text {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.65;
  text-align: left;
}

.question-scale {
  display: grid;
  grid-template-columns: repeat(6, minmax(54px, 1fr));
  align-items: center;
  gap: 18px;
  max-width: 720px;
  min-height: 84px;
  margin: 0 auto;
}

.question-response {
  display: grid;
  grid-template-columns: max-content minmax(420px, 720px) max-content;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.question-response .question-scale {
  width: 100%;
  margin: 0;
}

.question-scale-label {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.agree-label {
  color: var(--diplomat);
}

.disagree-label {
  color: var(--analyst);
}

.answer-option {
  position: relative;
  display: grid;
  min-height: 84px;
  place-items: center;
}

.answer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-option span {
  display: grid;
  place-items: center;
  width: var(--option-size, 48px);
  height: var(--option-size, 48px);
  border: 3px solid var(--option-color, #d8dde3);
  border-radius: 50%;
  background: #ffffff;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.answer-option span::after {
  content: "";
  color: #ffffff;
  font-size: calc(var(--option-size, 48px) * 0.46);
  font-weight: 800;
  line-height: 1;
}

.answer-option.strength-3 {
  --option-size: 68px;
}

.answer-option.strength-2 {
  --option-size: 56px;
}

.answer-option.strength-1 {
  --option-size: 44px;
}

.answer-option.agree {
  --option-color: var(--diplomat);
}

.answer-option.disagree {
  --option-color: var(--analyst);
}

.answer-option:hover span {
  transform: translateY(-2px);
}

.answer-option input:checked + span {
  background: var(--option-color);
  box-shadow: 0 0 0 7px rgba(47, 53, 66, 0.08);
  transform: translateY(-2px) scale(1.04);
}

.answer-option input:checked + span::after {
  content: "✓";
}

.diagnosis-page .quiz-controls {
  justify-content: center;
}

.diagnosis-page .quiz-controls .button {
  min-width: 240px;
}

.icon-button {
  width: 50px;
  height: 50px;
  border: 2px solid #d8dde3;
  background: var(--surface);
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
}

.icon-button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.result-section {
  background: #ffffff;
}

.result-section.is-hidden {
  display: none;
}

.result-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  max-width: 1120px;
  align-items: start;
}

.result-card,
.share-card {
  padding: clamp(30px, 5vw, 54px);
}

.result-card {
  border-top: 8px solid var(--primary);
}

.result-section[data-role="analyst"] .result-card {
  border-top-color: var(--analyst);
}

.result-section[data-role="diplomat"] .result-card {
  border-top-color: var(--diplomat);
}

.result-section[data-role="sentinel"] .result-card {
  border-top-color: var(--sentinel);
}

.result-section[data-role="explorer"] .result-card {
  border-top-color: var(--explorer);
}

.result-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 26px;
}

.result-badge {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.08;
  box-shadow: 0 14px 28px rgba(47, 53, 66, 0.16);
}

.result-section[data-role="analyst"] .result-badge,
.result-section[data-role="analyst"] .type-code,
.result-section[data-role="analyst"] .result-details dt {
  background-color: var(--analyst);
  color: #ffffff;
}

.result-section[data-role="diplomat"] .result-badge,
.result-section[data-role="diplomat"] .type-code,
.result-section[data-role="diplomat"] .result-details dt {
  background-color: var(--diplomat);
  color: #ffffff;
}

.result-section[data-role="sentinel"] .result-badge,
.result-section[data-role="sentinel"] .type-code,
.result-section[data-role="sentinel"] .result-details dt {
  background-color: var(--sentinel);
  color: #ffffff;
}

.result-section[data-role="explorer"] .result-badge,
.result-section[data-role="explorer"] .type-code,
.result-section[data-role="explorer"] .result-details dt {
  background-color: var(--explorer);
  color: #ffffff;
}

.type-code {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 0 0 10px;
  padding: 0 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.result-hero h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 5vw, 50px);
  line-height: 1.12;
}

.catch {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.result-desc {
  margin: 34px 0;
  color: #465160;
  font-size: 17px;
  line-height: 2;
}

.detail-link {
  width: fit-content;
  margin: 0 0 30px;
}

.result-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.result-details div {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.result-details dt {
  margin: 0;
  padding: 12px 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.result-details dd {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.axis-meter {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.axis-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  color: #465160;
  font-size: 13px;
  font-weight: 900;
}

.axis-track {
  position: relative;
  height: 12px;
  background: #e6eaee;
}

.axis-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  background: var(--diplomat);
}

.axis-fill.negative {
  right: 50%;
  left: auto;
  background: var(--sentinel);
}

.share-card {
  position: sticky;
  top: 92px;
}

.share-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.share-card p {
  color: var(--muted);
  line-height: 1.75;
}

.copy-status {
  min-height: 1.5em;
  margin: 12px 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.text-button {
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
}

.character-groups {
  width: 100%;
}

.character-group + .character-group {
  margin-top: 0;
}

.character-group {
  --group-text: #ffffff;
  padding: 72px 24px 82px;
  color: var(--group-text);
}

.character-group[data-role="analyst"] {
  --group-text: #5f3f6e;
  background: rgba(136, 97, 154, 0.2);
}

.character-group[data-role="diplomat"] {
  --group-text: #176247;
  background: rgba(51, 164, 116, 0.2);
}

.character-group[data-role="sentinel"] {
  --group-text: #205f74;
  background: rgba(66, 152, 180, 0.2);
}

.character-group[data-role="explorer"] {
  --group-text: #765500;
  background: rgba(228, 174, 58, 0.2);
}

.character-group-head {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.character-group-head h3 {
  margin: 0;
  color: var(--group-text);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.2;
}

.character-group-head p {
  margin: 12px 0 0;
  color: var(--group-text);
  line-height: 1.8;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 36px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.character-card {
  min-width: 0;
}

.character-profile {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.character-image-link {
  display: grid;
  place-items: end center;
  aspect-ratio: 1;
  overflow: hidden;
}

.character-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.character-image-link:hover .character-image {
  transform: scale(1.09);
}

.character-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 20px 6px 0;
}

.character-name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
}

.character-name strong {
  color: var(--group-text);
  font-size: 23px;
  line-height: 1.3;
}

.character-name small {
  color: var(--group-text);
  font-size: 12px;
  font-weight: 900;
}

.character-catch {
  margin-top: 10px;
  color: var(--group-text);
  font-size: 14px;
  line-height: 1.7;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 30px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

.type-page {
  background: #ffffff;
}

.type-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.68fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  max-width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  padding: 78px 24px 90px;
}

.type-hero-copy {
  max-width: 700px;
}

.type-hero .type-code {
  margin-bottom: 14px;
}

.type-catch {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.35;
}

.type-lead {
  margin: 26px 0 0;
  color: #465160;
  font-size: 18px;
  line-height: 2;
}

.trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trait-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.trait-row strong {
  color: var(--ink);
  font-size: 16px;
}

.type-quote {
  margin: 30px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--primary);
  background: #f7f9fb;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.65;
}

.type-quote p {
  margin: 0;
}

.type-quote cite {
  display: block;
  margin-top: 12px;
  color: inherit;
  opacity: 0.78;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.type-quote cite::before {
  content: "— ";
}

.type-line-quote {
  margin: 18px 0;
}

.type-panel .type-line-quote p {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.65;
}

.type-page[data-role="analyst"] .type-quote {
  border-left-color: var(--analyst);
  background: rgba(136, 97, 154, 0.2);
  color: #5f3f6e;
}

.type-page[data-role="analyst"] {
  --type-accent: var(--analyst);
}

.type-page[data-role="diplomat"] .type-quote {
  border-left-color: var(--diplomat);
  background: rgba(51, 164, 116, 0.2);
  color: #176247;
}

.type-page[data-role="diplomat"] {
  --type-accent: var(--diplomat);
}

.type-page[data-role="sentinel"] .type-quote {
  border-left-color: var(--sentinel);
  background: rgba(66, 152, 180, 0.2);
  color: #205f74;
}

.type-page[data-role="sentinel"] {
  --type-accent: var(--sentinel);
}

.type-page[data-role="explorer"] .type-quote {
  border-left-color: var(--explorer);
  background: rgba(228, 174, 58, 0.2);
  color: #765500;
}

.type-page[data-role="explorer"] {
  --type-accent: var(--explorer);
}

.type-art {
  display: grid;
  place-items: center;
}

.detail-portrait {
  width: min(100%, 430px);
  aspect-ratio: 1;
  background-image: var(--portrait-image, url("./assets/img/connector-character-color-variants-sample.png"));
  background-repeat: no-repeat;
  background-size: 200% 200%;
  box-shadow: none;
}

.detail-portrait.has-character-image {
  background-position: center;
  background-size: cover;
}

.detail-portrait.analyst {
  background-position: left top;
}

.detail-portrait.diplomat {
  background-position: right top;
}

.detail-portrait.sentinel {
  background-position: left bottom;
}

.detail-portrait.explorer {
  background-position: right bottom;
}

.type-page[data-role="analyst"] .type-code,
.type-page[data-role="analyst"] .button.primary,
.type-page[data-role="analyst"] .type-panel::before {
  background: var(--analyst);
}

.type-page[data-role="diplomat"] .type-code,
.type-page[data-role="diplomat"] .button.primary,
.type-page[data-role="diplomat"] .type-panel::before {
  background: var(--diplomat);
}

.type-page[data-role="sentinel"] .type-code,
.type-page[data-role="sentinel"] .button.primary,
.type-page[data-role="sentinel"] .type-panel::before {
  background: var(--sentinel);
}

.type-page[data-role="explorer"] .type-code,
.type-page[data-role="explorer"] .button.primary,
.type-page[data-role="explorer"] .type-panel::before {
  background: var(--explorer);
}

.type-content {
  padding: 86px 24px;
  background: var(--section);
}

.type-content > * {
  max-width: 1080px;
  margin-inline: auto;
}

.type-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(47, 53, 66, 0.07);
}

.type-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary);
}

.type-panel + .type-panel,
.type-two-column + .type-panel,
.type-panel + .type-two-column,
.type-two-column + .type-two-column {
  margin-top: 22px;
}

.type-panel h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
}

.type-panel p {
  margin: 0;
  color: #465160;
  font-size: 17px;
  line-height: 1.95;
}

.type-panel .eyebrow {
  margin-bottom: 12px;
  color: var(--type-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.strength-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.strength-radar {
  min-width: 0;
  margin: 0;
}

.strength-radar svg {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  overflow: visible;
}

.radar-ring,
.radar-axis {
  fill: none;
  stroke: #d9dee5;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.radar-axis {
  stroke: #cbd2da;
}

.radar-shape {
  fill: color-mix(in srgb, var(--type-accent) 28%, transparent);
  stroke: var(--type-accent);
  stroke-width: 4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.radar-dot {
  fill: #ffffff;
  stroke: var(--type-accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.radar-label {
  fill: #566170;
  font-size: 15px;
  font-weight: 800;
}

.radar-label.is-strongest {
  fill: var(--type-accent);
  font-weight: 900;
}

.radar-score {
  fill: #7a8491;
  font-size: 12px;
  font-weight: 800;
}

.strength-radar figcaption {
  margin-top: -12px;
  color: #66717f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.strength-copy {
  display: grid;
  gap: 28px;
}

.strength-copy section + section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.strength-copy h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.4;
}

.type-scenes {
  border-top: 6px solid var(--primary);
}

.type-rivalry {
  border-top: 6px solid var(--primary);
}

.type-page[data-role="analyst"] .type-scenes,
.type-page[data-role="analyst"] .type-rivalry {
  border-top-color: var(--analyst);
}

.type-page[data-role="diplomat"] .type-scenes,
.type-page[data-role="diplomat"] .type-rivalry {
  border-top-color: var(--diplomat);
}

.type-page[data-role="sentinel"] .type-scenes,
.type-page[data-role="sentinel"] .type-rivalry {
  border-top-color: var(--sentinel);
}

.type-page[data-role="explorer"] .type-scenes,
.type-page[data-role="explorer"] .type-rivalry {
  border-top-color: var(--explorer);
}

.aruaru-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  counter-reset: aruaru;
  list-style: none;
}

.aruaru-list li {
  counter-increment: aruaru;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  background: #f7f9fb;
  color: #465160;
  font-size: 17px;
  line-height: 1.75;
}

.aruaru-list li::before {
  content: counter(aruaru);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.rivalry-versus {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  margin-top: 28px;
  border-block: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 900;
  text-align: center;
}

.rivalry-versus span {
  padding: 24px 12px;
  text-align: left;
}

.rivalry-versus strong {
  display: grid;
  place-items: center;
  align-self: stretch;
  background: var(--type-accent);
  color: #ffffff;
  font-size: 18px;
}

.rivalry-complaint {
  padding: 28px;
  background: #f7f9fb;
}

.type-panel .rivalry-label {
  margin-bottom: 10px;
  color: var(--type-accent);
  font-size: 13px;
  font-weight: 900;
}

.rivalry-complaint blockquote {
  margin: 0;
}

.rivalry-complaint blockquote p {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.type-say p {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.45;
}

.type-handling p {
  font-weight: 700;
}

.type-disconnect #typeDisconnect {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.95;
}

.type-handling #typeHandling {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.95;
}

.type-reading h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
}

.type-reading h3:first-of-type {
  margin-top: 28px;
}

.famous-note {
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px !important;
}

.famous-character {
  display: grid;
  justify-items: center;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--type-accent) 10%, #ffffff);
}

.famous-character img {
  display: block;
  width: min(100%, 380px);
  aspect-ratio: 1;
  object-fit: contain;
}

.famous-character figcaption {
  width: 100%;
  padding: 14px 18px;
  background: var(--type-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.type-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.type-two-column .type-panel {
  margin-top: 0;
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compat-grid.compat-ranking {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compat-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  background: #f7f9fb;
}

.rank-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.compat-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.type-cta {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 28px;
  text-align: center;
  background: #eaf4f7;
  border: 0;
  border-radius: 6px;
}

.type-cta::before {
  display: none;
}

.type-cta .button {
  justify-self: center;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  .personality-visual {
    min-height: 380px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

  .share-card {
    position: static;
  }

  .result-details {
    grid-template-columns: 1fr;
  }

  .type-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  .type-art {
    order: -1;
  }

  .detail-portrait {
    width: min(100%, 360px);
  }

  .type-two-column,
  .compat-grid,
  .strength-layout {
    grid-template-columns: 1fr;
  }

  .strength-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strength-copy section + section {
    padding-top: 0;
    padding-left: 24px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

}

@media (max-width: 767px) {
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding: 0 16px;
  }

  .strength-copy {
    grid-template-columns: 1fr;
  }

  .strength-copy section + section {
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .radar-label {
    font-size: 17px;
  }

  .radar-score {
    font-size: 14px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
  }

  .brand-mark {
    grid-template-columns: repeat(2, 8px);
    gap: 3px;
    width: 22px;
    height: 22px;
  }

  .brand-mark i {
    width: 8px;
    height: 8px;
  }

  .nav {
    gap: 12px;
    font-size: 12px;
  }

  .hero {
    gap: 28px;
    padding: 42px 18px 60px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .share-actions,
  .quiz-controls {
    align-items: stretch;
  }

  .hero-actions .button,
  .share-actions .button,
  .quiz-controls .button {
    flex: 1 1 180px;
  }

  .personality-visual {
    min-height: 340px;
  }

  .role-tile {
    width: 142px;
    min-height: 112px;
    padding: 18px 16px;
  }

  .role-tile strong {
    font-size: 20px;
  }

  .center-device {
    width: 140px;
    height: 140px;
    border-width: 9px;
  }

  .device-face {
    width: 66px;
    height: 42px;
  }

  .quiz-section,
  .result-section {
    padding: 58px 18px;
  }

  .characters-section {
    padding: 58px 0 0;
  }

  .characters-section > .section-head {
    padding: 0 18px;
    margin-bottom: 46px;
  }

  .section-head {
    text-align: left;
  }

  legend {
    min-height: 144px;
    text-align: left;
  }

  .answer-grid {
    grid-template-columns: repeat(6, minmax(30px, 1fr));
    gap: 8px;
    min-height: 58px;
  }

  .question-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .question-row {
    gap: 16px;
    padding: 26px 0;
  }

  .question-text {
    text-align: left;
  }

  .question-scale {
    grid-template-columns: repeat(6, minmax(30px, 1fr));
    gap: 8px;
    min-height: 58px;
    width: 100%;
  }

  .question-response {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .question-response .question-scale {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .question-scale-label {
    grid-row: 1;
    font-size: 14px;
  }

  .disagree-label {
    text-align: right;
  }

  .answer-option {
    min-height: 58px;
  }

  .answer-option.strength-3 {
    --option-size: 42px;
  }

  .answer-option.strength-2 {
    --option-size: 36px;
  }

  .answer-option.strength-1 {
    --option-size: 30px;
  }

  .diagnosis-page .quiz-controls .button {
    width: min(100%, 320px);
    flex: 0 1 320px;
  }

  .result-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
  }

  .result-badge {
    font-size: 15px;
  }

  .detail-link {
    width: 100%;
  }

  .type-hero {
    padding: 42px 18px 60px;
  }

  .type-content {
    padding: 58px 18px;
  }

  .rivalry-versus {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    font-size: 18px;
  }

  .rivalry-versus span {
    padding: 18px 8px;
  }

  .rivalry-versus strong {
    font-size: 14px;
  }

  .rivalry-complaint {
    padding: 22px 18px;
  }

  .rivalry-complaint blockquote p {
    font-size: 16px;
  }

  .type-lead {
    font-size: 16px;
  }

  .detail-portrait {
  }

  .axis-row {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
  }

  .characters-section .section-head,
  .character-group-head {
    text-align: center;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .character-group {
    padding: 56px 18px 64px;
  }

  .character-card {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .footer {
    padding: 24px 18px;
  }
}
