:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-soft: #eef6f8;
  --navy: #071c2f;
  --text: #112238;
  --muted: #5b6b7a;
  --line: #d8e2ea;
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --orange: #f59e0b;
  --red: #dc5f4a;
  --shadow: 0 18px 44px rgba(7, 28, 47, 0.12);
  --radius: 8px;
  font-family:
    "Inter",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body * {
  overflow-wrap: anywhere;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 226, 234, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  padding: 9px 10px;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-soft);
  color: var(--navy);
  outline: none;
}

.nav-links .nav-cta {
  background: var(--teal);
  color: #ffffff;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1360px;
  min-height: clamp(560px, calc(100svh - 96px), 720px);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 56px) 36px;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 999px;
  background: #ecfdf8;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 900;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.trust-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 999px;
  background: #ecfdf8;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 3.3vw, 2.75rem);
  line-height: 1.14;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.38;
}

.hero-lead {
  max-width: 660px;
  color: #314457;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.8;
}

.hero-copy .hero-lead {
  max-width: 700px;
  margin-bottom: 24px;
}

.hero-actions,
.result-actions,
.diagnosis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-button {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.22);
}

.hero-actions .primary-button {
  min-width: 220px;
}

.secondary-button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--navy);
}

.ghost-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

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

.privacy-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual,
.hero-preview,
.result-preview-card,
.share-preview-card,
.feature-card,
.flow-steps article,
.diagnosis-shell,
.result-main-card,
.result-visual-card,
.result-detail-card,
.generated-share-card,
.plan-card,
.trust-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-visual {
  position: relative;
  padding-bottom: 0;
  border: 0;
  background: transparent;
  min-width: 0;
}

.hero-visual > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(216, 226, 234, 0.86);
  border-radius: 30px;
  background: #f8fbff;
  box-shadow: 0 28px 80px rgba(38, 92, 160, 0.16);
}

.hero-preview {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(78%, 390px);
  margin: -128px 24px 0 auto;
  padding: clamp(16px, 2.4vw, 24px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 58px rgba(38, 92, 160, 0.18);
  min-width: 0;
}

.hero-preview .preview-header {
  margin-bottom: 18px;
}

.hero-preview .sample-title {
  margin-bottom: 18px;
}

.hero-preview .sample-title h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.14;
}

.hero-preview .sample-bars {
  gap: 10px;
}

.hero-preview .sample-bar {
  font-size: 0.9rem;
}

.hero-preview .sample-bar::after {
  height: 8px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.preview-header strong {
  color: var(--navy);
  letter-spacing: 0.04em;
}

.sample-title {
  margin-bottom: 22px;
}

.sample-title p,
.sample-title span {
  color: var(--muted);
}

.sample-title h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
}

.sample-bars,
.score-bars {
  display: grid;
  gap: 14px;
}

.sample-bar,
.score-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.sample-bar span,
.score-name {
  color: #314457;
  font-weight: 800;
}

.sample-bar::after,
.bar-track {
  grid-column: 1 / -1;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--teal) var(--value), transparent 0),
    #e3ebf1;
  content: "";
}

.sample-bar strong,
.score-value {
  color: var(--navy);
  font-weight: 900;
  text-align: right;
}

.section,
.diagnosis-section,
.result-section {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 56px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p,
.feature-card p,
.flow-steps p,
.preview-list p,
.trust-grid p,
.plan-card p,
.faq-list p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-grid,
.flow-steps,
.plan-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid > *,
.flow-steps > *,
.plan-grid > *,
.trust-grid > *,
.hero-section > *,
.flow-layout > *,
.sample-layout > *,
.result-layout > * {
  min-width: 0;
}

.feature-card,
.flow-steps article,
.plan-card,
.trust-grid article {
  min-height: 176px;
  padding: 22px;
}

.feature-icon,
.flow-steps span,
.card-kicker,
.result-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.sample-section,
.basis-section,
.plan-section {
  background: #ffffff;
}

.sample-layout,
.result-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.result-preview-card,
.share-preview-card,
.result-main-card,
.result-visual-card,
.result-detail-card,
.generated-share-card {
  padding: clamp(18px, 3vw, 28px);
}

.preview-list {
  display: grid;
  gap: 16px;
}

.preview-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.action-box {
  margin-top: 20px;
  padding: 16px;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: #fff7ed;
}

.action-box span {
  display: block;
  margin-bottom: 6px;
  color: #9a5b00;
  font-size: 0.8rem;
  font-weight: 900;
}

.action-box p {
  margin-bottom: 0;
  color: #51351a;
  line-height: 1.7;
}

.share-preview-card {
  display: grid;
  align-content: center;
  gap: 16px;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  padding: 0;
  border: 0;
  background: transparent;
}

.section-art {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(216, 226, 234, 0.86);
  border-radius: 24px;
  background: #f8fbff;
  box-shadow: 0 16px 44px rgba(38, 92, 160, 0.12);
}

.share-preview-card .section-art {
  max-width: 420px;
  margin-inline: auto;
}

.share-preview-card .share-square {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.share-square,
.generated-share-card {
  display: grid;
  gap: 10px;
  aspect-ratio: 1 / 1;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #ffffff;
}

.share-square strong,
.generated-share-card strong {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.share-square p,
.generated-share-card p {
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.share-square h3,
.generated-share-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.share-square span,
.generated-share-card span {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.share-square small,
.generated-share-card small {
  align-self: end;
  color: var(--teal);
  font-weight: 900;
}

.share-caption {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.flow-section {
  background: var(--bg);
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1120px;
}

.flow-layout .flow-steps {
  grid-template-columns: 1fr;
  gap: 12px;
}

.flow-visual-card {
  display: grid;
  min-width: 0;
  margin: 0;
}

.flow-visual-card .section-art {
  height: 100%;
  min-height: 0;
  max-height: 470px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.flow-steps article {
  position: relative;
}

.flow-layout .flow-steps article {
  min-height: 0;
  padding: 20px;
}

.flow-steps span {
  color: var(--orange);
}

.diagnosis-section {
  background: #071c2f;
}

.diagnosis-section .section-heading h2,
.diagnosis-section .section-heading p {
  color: #ffffff;
}

.diagnosis-section .eyebrow {
  color: #74f2e1;
}

.diagnosis-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
}

.diagnosis-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.diagnosis-topline span:last-child {
  color: #9a5b00;
}

.progress-track {
  width: 100%;
  height: 10px;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ebf1;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 180ms ease;
}

.question-stage {
  min-height: 360px;
}

.question-number {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

#questionText {
  min-height: 66px;
  margin-bottom: 22px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.answer-options {
  display: grid;
  gap: 10px;
}

.answer-button {
  display: grid;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #22364a;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.answer-button:hover,
.answer-button:focus-visible {
  border-color: var(--teal);
  outline: none;
}

.answer-button[aria-checked="true"] {
  border-color: var(--teal);
  background: #ecfdf8;
  color: var(--teal-dark);
  box-shadow: inset 4px 0 0 var(--teal);
}

.diagnosis-actions {
  margin-top: 20px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.is-hidden {
  display: none !important;
}

.result-section {
  background: #ffffff;
}

.result-layout {
  grid-template-columns: minmax(280px, 1.02fr) minmax(280px, 0.92fr) minmax(260px, 0.76fr);
  grid-template-areas:
    "main visual visual"
    "main detail share";
  align-items: start;
}

.result-main-card {
  grid-area: main;
  grid-row: auto;
}

.result-visual-card {
  grid-area: visual;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #f8fbff;
}

.result-detail-card {
  grid-area: detail;
}

.score-bars {
  margin: 20px 0 24px;
}

.score-row {
  grid-template-columns: minmax(120px, 1fr) 52px;
}

.bar-track {
  grid-column: 1 / -1;
  background: #e3ebf1;
}

.bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.generated-share-card {
  grid-area: share;
  min-height: 280px;
}

.result-illustration {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: inherit;
  background: #f8fbff;
  box-shadow: none;
}

.trait-table {
  overflow: hidden;
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.trait-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
}

.trait-row + .trait-row {
  border-top: 1px solid var(--line);
}

.trait-row span {
  padding: 15px 16px;
  line-height: 1.6;
}

.trait-row span + span {
  border-left: 1px solid var(--line);
}

.trait-head {
  background: var(--surface-soft);
  color: var(--navy);
  font-weight: 900;
}

.trust-section {
  background: var(--bg);
}

.trust-grid {
  grid-template-columns: minmax(240px, 0.75fr) minmax(280px, 1fr) minmax(260px, 0.75fr);
}

.trust-grid ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.trust-art-card {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: #f8fbff;
}

.trust-art-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
}

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

.plan-featured {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: var(--shadow);
}

.price {
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 1.65rem;
  font-weight: 900;
}

.plan-link {
  width: 100%;
  margin-top: 8px;
}

.faq-section {
  background: var(--bg);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.final-cta {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 56px);
  background: var(--navy);
  color: #ffffff;
  text-align: center;
}

.final-cta h2 {
  max-width: 820px;
  margin-inline: auto;
  color: #ffffff;
}

.final-cta .eyebrow {
  color: #74f2e1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(20px, 5vw, 56px);
  color: var(--muted);
  font-size: 0.9rem;
}

.report-page {
  background: #ffffff;
}

.report-hero,
.report-overview,
.report-section-block,
.report-disclaimer {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(620px, 1.28fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  padding-top: clamp(42px, 6vw, 82px);
  padding-bottom: clamp(38px, 6vw, 72px);
}

.report-hero-copy {
  min-width: 0;
}

.report-status {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  background: #ecfdf8;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.report-hero h1 {
  max-width: 720px;
  font-size: clamp(2.15rem, 4.4vw, 3.9rem);
}

.report-lead {
  max-width: 640px;
  color: #314457;
  font-size: clamp(1.04rem, 1.6vw, 1.24rem);
  line-height: 1.85;
}

.report-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.report-hero-card {
  margin: 0;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: 0 28px 70px rgba(38, 92, 160, 0.16);
}

.report-illustration {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.report-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  padding-bottom: clamp(36px, 5vw, 62px);
}

.report-access-panel {
  max-width: 860px;
  margin: 0 auto clamp(36px, 5vw, 62px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(20, 184, 166, 0.32);
  border-radius: var(--radius);
  background: #ecfdf8;
}

.report-access-panel h2 {
  font-size: clamp(1.4rem, 2.7vw, 2.1rem);
}

.report-access-panel p {
  max-width: 680px;
  color: #314457;
  line-height: 1.8;
}

.report-access-panel .primary-button {
  margin-top: 8px;
}

.report-locked .report-protected {
  display: none !important;
}

.report-summary-card,
.report-note-card,
.premium-score-card,
.trait-detail-card,
.advice-card,
.memo-grid article,
.report-disclaimer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.report-summary-card,
.report-note-card,
.premium-score-card,
.trait-detail-card,
.advice-card,
.memo-grid article,
.report-disclaimer {
  padding: clamp(18px, 3vw, 28px);
}

.report-label {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.report-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.report-pill-row span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
}

.report-section-block {
  padding-top: clamp(46px, 7vw, 82px);
  padding-bottom: clamp(46px, 7vw, 82px);
}

.report-section-block:nth-of-type(odd) {
  background: #ffffff;
}

.report-section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.report-section-heading p,
.report-summary-card p,
.report-note-card p,
.trait-detail-card p,
.advice-card p,
.memo-grid p,
.report-disclaimer p {
  color: var(--muted);
  line-height: 1.82;
}

.premium-score-card {
  margin-bottom: 16px;
}

.premium-score-bars {
  display: grid;
  gap: 16px;
}

.premium-score-row {
  display: grid;
  gap: 8px;
}

.premium-score-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.premium-score-head span {
  color: #314457;
  font-weight: 900;
}

.premium-score-head strong {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 900;
}

.premium-score-head small {
  color: var(--muted);
  font-size: 0.76rem;
}

.trait-detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.trait-detail-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.trait-detail-card h3 {
  font-size: 1.05rem;
}

.mini-insight {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mini-insight + .mini-insight {
  margin-top: 0;
}

.mini-insight span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.mini-insight p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.mini-insight-warn {
  border-top-color: rgba(245, 158, 11, 0.35);
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.advice-card {
  min-height: 240px;
}

.advice-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.advice-card-wide {
  grid-column: span 2;
  background: #fbf7ef;
}

.action-plan-section {
  background: var(--bg);
}

.action-plan-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: action-day;
}

.action-plan-list li {
  position: relative;
  min-height: 190px;
  padding: 52px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #314457;
  line-height: 1.7;
  counter-increment: action-day;
}

.action-plan-list li::before {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  content: counter(action-day);
}

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

.report-disclaimer {
  margin-bottom: clamp(48px, 7vw, 78px);
  background: #f8fbff;
}

.report-disclaimer h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.success-page {
  min-height: 100vh;
  background: var(--bg);
}

.success-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(32px, 7vw, 72px) clamp(18px, 5vw, 56px);
}

.success-card {
  width: min(100%, 760px);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.success-card h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.success-card p {
  color: var(--muted);
  line-height: 1.8;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 1120px) {
  .report-hero,
  .report-overview {
    grid-template-columns: 1fr;
  }

  .report-hero-card {
    justify-self: center;
    max-width: 900px;
  }
}

@media (max-width: 980px) {
  .hero-section,
  .sample-layout,
  .result-layout,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .flow-layout {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-inline: auto;
  }

  .flow-layout .flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-visual-card .section-art {
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .hero-visual {
    padding-bottom: 0;
  }

  .hero-preview {
    width: min(88%, 400px);
    margin: -92px auto 0;
  }

  .result-main-card {
    grid-row: auto;
  }

  .result-layout {
    grid-template-areas:
      "main"
      "visual"
      "detail"
      "share";
  }

  .result-visual-card {
    aspect-ratio: 16 / 9;
  }

  .report-hero-card {
    max-width: 860px;
  }

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

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

  .action-plan-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .feature-grid,
  .flow-steps,
  .plan-grid,
  .trait-detail-grid,
  .advice-grid,
  .memo-grid {
    grid-template-columns: 1fr;
  }

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

  .section,
  .diagnosis-section,
  .result-section,
  .report-hero,
  .report-overview,
  .report-section-block,
  .report-disclaimer {
    width: 100%;
    max-width: 100vw;
    padding-inline: 16px;
    overflow: hidden;
  }

  .hero-section {
    width: 100%;
    max-width: 100vw;
    padding-inline: 16px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-actions,
  .report-hero-copy,
  .report-hero-actions,
  .hero-lead,
  .report-lead,
  .privacy-note,
  .section-heading,
  .report-section-heading,
  .hero-visual,
  .hero-visual > img,
  .report-hero-card,
  .hero-preview,
  .diagnosis-shell,
  .result-preview-card {
    max-width: calc(100vw - 32px);
  }

  .hero-visual > img {
    border-radius: 20px;
  }

  .hero-preview {
    width: calc(100% - 20px);
    margin-top: -42px;
  }

  .share-preview-card,
  .share-preview-card .section-art,
  .share-preview-card .share-square,
  .result-illustration {
    max-width: 100%;
  }

  .hero-actions,
  .diagnosis-actions,
  .result-actions,
  .report-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .question-stage {
    min-height: 430px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .advice-card-wide {
    grid-column: auto;
  }

  .action-plan-list {
    grid-template-columns: 1fr;
  }

  .action-plan-list li {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  h1 {
    max-width: 10.7em;
    font-size: clamp(1.95rem, 8.2vw, 2.1rem);
    line-height: 1.12;
    word-break: break-all;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.58rem, 6.3vw, 1.72rem);
    line-height: 1.16;
  }

  h2 {
    max-width: 12em;
    font-size: clamp(1.55rem, 7vw, 1.9rem);
    word-break: break-all;
  }

  h3,
  p,
  strong,
  span {
    word-break: break-all;
  }

  .hero-preview {
    width: 100%;
    margin-top: -28px;
    padding: 16px;
  }

  .hero-preview .preview-header {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-preview .sample-title h2 {
    font-size: 1.25rem;
  }

  .sample-bar,
  .score-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .trait-row {
    grid-template-columns: 1fr;
  }

  .trait-row span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
