:root {
  --navy: #042444;
  --navy2: #06355A;
  --blue: #096298;
  --cyan: #21B5E8;
  --teal: #21AAA2;
  --mint: #eaf7fb;
  --sky: #f5f7f9;
  --ink: #042444;
  --muted: #536b80;
  --line: #dce4eb;
  --paper: #f5f7f9;
  --white: #fff;
  --warn: #b33137;
  --amber: #f4b942;
  --shadow: none;
  font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

.site-header {
  max-width: 1160px;
  min-height: 132px;
  height: auto;
  margin: auto;
  padding: 0 32px;
  background: #fff;
  color: var(--navy);
  border-bottom: 1px solid #e3e9ef;
  box-shadow: none;
}

.brand {
  min-width: 0;
  padding: 10px 0;
  text-decoration: none;
}

.brand-primary-logo {
  display: block;
  width: 220px;
  height: auto;
  flex: 0 0 auto;
}

.header-note {
  padding: 7px 13px;
  color: var(--navy);
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 700;
}

.intro {
  position: relative;
  isolation: isolate;
  min-height: 540px;
  padding-top: 84px;
  padding-bottom: 80px;
  background: linear-gradient(110deg, #042444 0%, #06355A 100%);
}

.intro::before,
.intro::after {
  content: none;
}

.eyebrow {
  color: #80d8f4;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.intro h1 {
  max-width: 760px;
  font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.intro h1 em {
  color: #fff;
  background: none;
}

.lead {
  max-width: 690px;
  color: #d7e3e9;
  font-size: 1.125rem;
  line-height: 1.95;
}

.brand-principle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  color: #adc5d5;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.brand-principle i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

.intro-card {
  padding: 30px;
  color: #fff;
  background: transparent;
  border: 1px solid #3b5b74;
  border-left: 3px solid var(--teal);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.intro-card > div {
  border-bottom-color: #3b5b74;
}

.intro-card strong {
  font-weight: 700;
}

.intro-card span {
  color: #d7e3e9;
}

.intro h1,
.section-heading h2,
.result-hero h2,
.level-card h3,
.panel h3,
.recommendation h3,
.category-title h3,
.completion-copy h3 {
  font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  border-radius: 3px;
  font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 700;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

.primary-button:hover {
  background: var(--navy2);
  box-shadow: none;
  transform: none;
}

.secondary-button {
  color: var(--blue);
  background: #fff;
  border: 1px solid #b9d0dd;
  box-shadow: none;
}

.secondary-button:hover {
  background: var(--sky);
  border-color: var(--blue);
  transform: none;
}

.diagnosis-shell,
.result-section {
  max-width: 1120px;
}

.sticky-progress {
  top: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  border-radius: 3px;
  box-shadow: none;
}

.progress-track {
  border-radius: 3px;
}

.progress-track div,
.bar-fill {
  background: var(--blue);
}

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

.section-heading h2,
.result-hero h2 {
  color: var(--navy);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.section-heading > p:last-child,
.result-hero p:last-child,
.bar-label,
.completion-copy p:not(.eyebrow) {
  color: var(--muted);
}

.category-index {
  background: var(--blue);
  border-radius: 3px;
  box-shadow: none;
}

.question-card {
  background: #fff;
  border-color: var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 0;
  box-shadow: none;
}

.question-card.unanswered {
  border-color: var(--warn);
  box-shadow: 0 0 0 3px rgba(179, 49, 55, 0.12);
}

.question {
  line-height: 1.75;
}

.question-number {
  color: var(--blue);
}

.choice span {
  border-color: var(--line);
  border-radius: 3px;
  background: #fafbfc;
  color: var(--muted);
}

.choice input:focus-visible + span {
  outline: 3px solid rgba(9, 98, 152, 0.28);
  outline-offset: 2px;
}

.choice input:checked + span {
  border-color: var(--blue);
  background: #eef5fa;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.score-ring {
  background: conic-gradient(var(--blue) 0deg, #dfe8eb 0deg);
  box-shadow: inset 0 0 0 14px #fff, 0 0 0 1px var(--line);
}

.score-ring strong {
  color: var(--navy);
}

.level-card {
  color: #fff;
  background: var(--navy);
  border-radius: 0;
}

.level-card span {
  color: #80d8f4;
}

.level-card p {
  color: #d7e3e9;
}

.panel,
.recommendation {
  background: #fff;
  border-color: var(--line);
  border-radius: 0;
}

.warning-panel {
  background: #fffaf8;
}

.critical-empty {
  border-radius: 3px;
}

.critical-item {
  border-left-color: var(--warn);
}

.recommendation {
  background: var(--paper);
  border-left: 3px solid var(--teal);
}

.completion-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 38px;
  align-items: center;
  margin-top: 28px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 0;
  box-shadow: none;
}

.completion-copy .eyebrow {
  margin-bottom: 8px;
}

.completion-copy h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.result-actions {
  display: grid;
  gap: 12px;
  margin: 0;
}

.result-actions .primary-button,
.result-actions .secondary-button {
  width: 100%;
  min-height: 56px;
  text-align: center;
}

.result-primary-cta {
  box-shadow: none;
}

.result-secondary-cta {
  color: var(--blue);
  background: #fff;
  border: 1px solid #b9d0dd;
  box-shadow: none;
}

footer {
  gap: 12px;
  background: var(--navy);
  border-top: 4px solid var(--teal);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.footer-brand strong {
  font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
}

.footer-brand span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 112px;
    padding-block: 10px;
  }

  .brand-primary-logo {
    width: 180px;
  }

  .intro {
    min-height: auto;
    padding-top: 68px;
  }

  .completion-cta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 106px;
    padding-inline: 18px;
  }

  .brand-primary-logo {
    width: 180px;
  }

  .brand-principle {
    gap: 7px;
    font-size: 0.63rem;
    letter-spacing: 0.08em;
  }

  .completion-cta {
    padding: 24px 20px;
  }

  .completion-copy p br {
    display: none;
  }

  .result-actions .primary-button,
  .result-actions .secondary-button {
    min-height: 58px;
    padding-inline: 18px;
  }
}
