:root {
  --navy: #1e3a8a;
  --navy-dark: #172554;
  --navy-light: #eff6ff;

  --green: #10b981;
  --green-dark: #047857;
  --green-light: #ecfdf5;

  --background: #f9fafb;
  --white: #ffffff;

  --text: #1f2937;
  --muted: #6b7280;

  --border: #e5e7eb;
  --border-dark: #d1d5db;

  --amber: #f59e0b;
  --amber-light: #fffbeb;

  --red: #ef4444;
  --red-light: #fef2f2;

  --shadow:
    0 12px 32px rgba(15, 23, 42, 0.07);

  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--background);

  color: var(--text);

  font-family:
    "Noto Sans JP",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;

  line-height: 1.7;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[v-cloak] {
  display: none;
}

/* =========================
   HEADER
========================= */

.app-header {
  padding: 22px 18px;

  background:
    linear-gradient(
      135deg,
      var(--navy-dark),
      var(--navy)
    );

  color: var(--white);
}

.header-inner {
  width: min(1040px, 100%);

  margin: 0 auto;

  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 20px;
}

.header-eyebrow {
  margin: 0 0 2px;

  font-size: 0.78rem;

  opacity: 0.78;
}

.app-header h1 {
  margin: 0;

  font-size:
    clamp(
      1.25rem,
      4vw,
      1.85rem
    );

  line-height: 1.35;
}

.step-chip {
  flex-shrink: 0;

  padding: 8px 13px;

  background:
    rgba(255, 255, 255, 0.12);

  border:
    1px solid
    rgba(255, 255, 255, 0.18);

  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 700;
}

.mobile-only {
  display: none;
}

/* =========================
   MAIN
========================= */

.main-container {
  width:
    min(
      1000px,
      calc(100% - 28px)
    );

  margin:
    30px auto 70px;
}

/* =========================
   PROGRESS
========================= */

.progress-card {
  margin-bottom: 20px;

  padding: 18px;

  background: var(--white);

  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.progress-head {
  display: flex;

  justify-content: space-between;
  align-items: center;

  margin-bottom: 9px;

  color: var(--muted);

  font-size: 0.82rem;
}

.progress-head strong {
  color: var(--navy);
}

.progress-track {
  height: 9px;

  overflow: hidden;

  background: var(--border);

  border-radius: 100px;
}

.progress-value {
  height: 100%;

  background:
    linear-gradient(
      90deg,
      var(--navy),
      var(--green)
    );

  border-radius: inherit;

  transition:
    width 0.3s ease;
}

.progress-steps {
  margin-top: 12px;

  display: flex;

  justify-content: space-between;
}

.progress-steps span {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  background: var(--border);

  border-radius: 50%;

  color: var(--muted);

  font-size: 0.72rem;
  font-weight: 700;

  transition: 0.2s;
}

.progress-steps span.active {
  background: var(--navy);

  color: var(--white);
}

.progress-steps span.current {
  background: var(--green);

  box-shadow:
    0 0 0 4px
    rgba(16, 185, 129, 0.15);
}

/* =========================
   WIZARD
========================= */

.wizard-card,
.result-card {
  padding: 26px;

  background: var(--white);

  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.question-heading {
  margin-bottom: 28px;
}

.question-heading h2 {
  margin:
    9px 0 7px;

  color: var(--navy-dark);

  font-size:
    clamp(
      1.45rem,
      4vw,
      2rem
    );

  line-height: 1.45;
}

.question-heading p {
  margin: 0;

  color: var(--muted);
}

.step-label {
  display: inline-flex;

  padding: 5px 10px;

  background: var(--navy-light);

  border-radius: 999px;

  color: var(--navy);

  font-size: 0.73rem;
  font-weight: 800;
}

/* =========================
   FORM
========================= */

.form-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 18px;

  margin-bottom: 28px;
}

.form-field > span {
  display: block;

  margin-bottom: 7px;

  font-size: 0.9rem;
  font-weight: 700;
}

.input-unit {
  display: flex;

  align-items: center;

  min-height: 52px;

  overflow: hidden;

  background: var(--white);

  border:
    1px solid
    var(--border-dark);

  border-radius: 11px;
}

.input-unit:focus-within {
  border-color: var(--navy);

  box-shadow:
    0 0 0 3px
    rgba(30, 58, 138, 0.1);
}

.input-unit input {
  width: 100%;

  min-width: 0;

  padding: 12px;

  border: 0;

  outline: 0;

  color: var(--text);
}

.input-unit b {
  flex-shrink: 0;

  padding-right: 13px;

  color: var(--muted);

  font-size: 0.86rem;
}

.selection-title {
  margin:
    28px 0 14px;

  color: var(--navy-dark);

  font-size: 1rem;
}

/* =========================
   CHOICES
========================= */

.choice-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 12px;
}

.choice-card {
  min-height: 80px;

  padding: 16px;

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  justify-content: center;

  gap: 3px;

  text-align: left;

  background: var(--white);

  border:
    2px solid
    var(--border);

  border-radius: 14px;

  color: var(--text);

  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}

.choice-card:hover {
  border-color: #93c5fd;

  transform:
    translateY(-1px);
}

.choice-card.selected {
  background: var(--green-light);

  border-color: var(--green);

  box-shadow:
    0 0 0 3px
    rgba(16, 185, 129, 0.1);
}

.choice-icon {
  margin-bottom: 2px;

  font-size: 1.3rem;
}

.choice-card strong {
  font-size: 0.95rem;
}

.choice-card small {
  color: var(--muted);

  font-size: 0.76rem;
}

.choice-card.selected small {
  color: var(--green-dark);
}

/* =========================
   SLIDER
========================= */

.slider-section {
  display: grid;

  gap: 16px;
}

.slider-card {
  padding: 20px;

  background: #f9fafb;

  border:
    1px solid
    var(--border);

  border-radius: 14px;
}

.slider-head {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 16px;

  margin-bottom: 16px;
}

.slider-label {
  display: block;

  font-weight: 700;
}

.slider-head small {
  display: block;

  color: var(--muted);

  font-size: 0.76rem;
}

.slider-head strong {
  flex-shrink: 0;

  color: var(--navy);

  font-size: 1.1rem;
}

.slider-card input[type="range"] {
  width: 100%;

  min-height: 44px;

  accent-color: var(--green);
}

.range-labels {
  display: flex;

  justify-content: space-between;

  color: var(--muted);

  font-size: 0.72rem;
}

/* =========================
   NAVIGATION
========================= */

.wizard-nav {
  margin-top: 20px;

  display: flex;

  gap: 12px;
}

.nav-spacer {
  flex: 1;
}

.btn {
  min-height: 52px;

  padding: 11px 24px;

  border: 0;

  border-radius: 12px;

  font-weight: 800;

  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.btn:not(:disabled):hover {
  transform:
    translateY(-1px);
}

.btn-primary {
  background: var(--green);

  color: var(--white);

  box-shadow:
    0 5px 18px
    rgba(16, 185, 129, 0.2);
}

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

.btn-primary:disabled {
  background: #d1d5db;

  color: #9ca3af;

  box-shadow: none;
}

.btn-secondary {
  background: #e5e7eb;

  color: var(--text);
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-diagnose {
  min-width: 170px;
}

/* =========================
   RESULT HERO
========================= */

.result-container {
  display: grid;

  gap: 22px;
}

.result-hero {
  padding:
    34px 24px;

  background:
    linear-gradient(
      135deg,
      var(--navy-dark),
      var(--navy)
    );

  border-radius: 24px;

  color: var(--white);

  text-align: center;

  box-shadow:
    0 18px 50px
    rgba(30, 58, 138, 0.18);
}

.result-eyebrow {
  display: block;

  margin-bottom: 8px;

  font-size: 0.78rem;

  opacity: 0.8;
}

.strategy-badge {
  display: inline-flex;

  margin: 5px 0 14px;

  padding: 6px 13px;

  background:
    rgba(16, 185, 129, 0.18);

  border:
    1px solid
    rgba(167, 243, 208, 0.32);

  border-radius: 999px;

  color: #d1fae5;

  font-size: 0.78rem;
  font-weight: 800;
}

.result-hero h2 {
  margin: 0;

  font-size:
    clamp(
      2rem,
      7vw,
      3.5rem
    );

  line-height: 1.35;
}

.score-display {
  margin:
    18px 0 12px;

  display: flex;

  justify-content: center;
  align-items: baseline;

  gap: 7px;
}

.score-display span {
  font-size: 0.82rem;

  opacity: 0.8;
}

.score-display strong {
  color: #6ee7b7;

  font-size:
    clamp(
      3rem,
      10vw,
      4.8rem
    );

  line-height: 1;
}

.score-display small {
  opacity: 0.8;
}

.hero-message {
  max-width: 700px;

  margin:
    15px auto 0;

  opacity: 0.92;
}

/* =========================
   RESULT SECTIONS
========================= */

.result-card {
  margin: 0;
}

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

.section-title > span {
  display: block;

  color: var(--green-dark);

  font-size: 0.7rem;

  font-weight: 900;

  letter-spacing: 0.09em;
}

.section-title h2 {
  margin:
    4px 0 3px;

  color: var(--navy-dark);

  font-size:
    clamp(
      1.3rem,
      4vw,
      1.75rem
    );
}

.section-title p {
  margin: 0;

  color: var(--muted);
}

/* =========================
   RANKING
========================= */

.ranking-grid {
  display: grid;

  gap: 13px;
}

.ranking-card {
  padding: 17px;

  display: flex;

  align-items: center;

  gap: 16px;

  background: #f9fafb;

  border:
    1px solid
    var(--border);

  border-radius: 14px;
}

.ranking-card.first {
  background: var(--green-light);

  border-color: #a7f3d0;
}

.ranking-number {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: grid;

  place-items: center;

  background: var(--navy);

  border-radius: 50%;

  color: var(--white);

  font-size: 1.1rem;
  font-weight: 900;
}

.ranking-card.first
.ranking-number {
  background: var(--green);
}

.ranking-content {
  flex: 1;
}

.ranking-content > span {
  color: var(--muted);

  font-size: 0.72rem;
}

.ranking-content h3 {
  margin:
    0 0 7px;

  color: var(--navy-dark);

  font-size: 1.1rem;
}

.ranking-content strong {
  font-size: 0.8rem;
}

.score-bar,
.mini-bar {
  overflow: hidden;

  background: #e5e7eb;

  border-radius: 100px;
}

.score-bar {
  height: 6px;

  margin-bottom: 6px;
}

.score-bar > div,
.mini-bar > div {
  height: 100%;

  background:
    linear-gradient(
      90deg,
      var(--navy),
      var(--green)
    );

  border-radius: inherit;
}

/* =========================
   ADVICE
========================= */

.advice-box {
  padding: 22px;

  background: var(--navy-light);

  border-left:
    5px solid
    var(--navy);

  border-radius: 12px;
}

.advice-box p {
  margin: 0;
}

/* =========================
   COMBINATION
========================= */

.combination-card {
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f0fdf4
    );
}

.combination {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;
  align-items: center;

  gap: 10px;

  margin:
    25px 0;
}

.combination-item {
  padding:
    12px 16px;

  background: var(--navy);

  border-radius: 12px;

  color: var(--white);

  font-weight: 800;

  text-align: center;
}

.combination-item.highlight {
  background: var(--green);
}

.multiply {
  color: var(--muted);

  font-size: 1.4rem;
  font-weight: 900;
}

.combination-card > p {
  margin: 0;

  text-align: center;
}

/* =========================
   SCORE DETAILS
========================= */

.score-detail-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 14px;
}

.score-detail {
  padding: 15px;

  background: #f9fafb;

  border-radius: 11px;
}

.score-detail > span {
  display: inline-block;

  margin-bottom: 3px;

  color: var(--muted);

  font-size: 0.8rem;
}

.score-detail > strong {
  float: right;

  color: var(--navy);
}

.mini-bar {
  clear: both;

  height: 5px;

  margin-top: 8px;
}

/* =========================
   ROADMAP
========================= */

.roadmap {
  display: grid;

  gap: 0;
}

.roadmap-step {
  position: relative;

  display: grid;

  grid-template-columns:
    78px 1fr;

  gap: 15px;

  padding:
    0 0 25px;
}

.roadmap-step:not(:last-child)::before {
  content: "";

  position: absolute;

  left: 37px;
  top: 38px;
  bottom: 0;

  width: 2px;

  background: #d1fae5;
}

.roadmap-month {
  position: relative;

  z-index: 1;

  height: 38px;

  display: grid;

  place-items: center;

  background: var(--green);

  border-radius: 999px;

  color: var(--white);

  font-size: 0.72rem;
  font-weight: 800;
}

.roadmap-body {
  padding:
    4px 0 0;
}

.roadmap-body h3 {
  margin:
    0 0 4px;

  color: var(--navy-dark);

  font-size: 1rem;
}

.roadmap-body p {
  margin: 0;

  color: var(--muted);

  font-size: 0.86rem;
}

/* =========================
   QUALIFICATION
========================= */

.qualification-box {
  padding: 20px;

  background: var(--navy-light);

  border:
    1px solid #bfdbfe;

  border-radius: 14px;
}

.qualification-box.high {
  background: var(--green-light);

  border-color: #a7f3d0;
}

.qualification-box > div {
  margin-bottom: 10px;
}

.qualification-box span {
  display: block;

  color: var(--muted);

  font-size: 0.73rem;
}

.qualification-box strong {
  color: var(--navy);

  font-size: 1.3rem;
}

.qualification-box.high strong {
  color: var(--green-dark);
}

.qualification-box p {
  margin: 0;
}

/* =========================
   NOT RECOMMENDED
========================= */

.caution-card {
  border-top:
    5px solid
    var(--amber);
}

.not-recommended {
  display: grid;

  gap: 18px;

  padding: 20px;

  background: var(--amber-light);

  border:
    1px solid #fde68a;

  border-radius: 14px;
}

.not-recommended > div {
  text-align: center;
}

.not-recommended > div span {
  display: block;

  color: var(--muted);

  font-size: 0.72rem;
}

.not-recommended > div strong {
  color: #b45309;

  font-size: 1.8rem;
}

.not-recommended h3 {
  margin:
    0 0 7px;

  color: var(--navy-dark);
}

.not-recommended p {
  margin: 0;
}

/* =========================
   RESET
========================= */

.btn-reset {
  width: 100%;

  background: #e5e7eb;

  color: var(--text);
}

.btn-reset:hover {
  background: #d1d5db;
}

.footer-note {
  margin: 0;

  color: var(--muted);

  font-size: 0.75rem;

  text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 600px) {

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

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

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

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

  .not-recommended {
    grid-template-columns:
      130px 1fr;

    align-items: center;
  }

}

@media (min-width: 850px) {

  .wizard-card,
  .result-card {
    padding: 34px;
  }

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

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

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

  .ranking-card {
    align-items: flex-start;
  }

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

    gap: 14px;
  }

  .roadmap-step {
    display: block;

    padding: 0;
  }

  .roadmap-step:not(:last-child)::before {
    display: none;
  }

  .roadmap-month {
    width: 78px;

    margin-bottom: 12px;
  }

  .roadmap-body {
    padding: 0;
  }

}

@media (max-width: 500px) {

  .mobile-only {
    display: block;
  }

  .main-container {
    width:
      min(
        100% - 18px,
        1000px
      );

    margin-top: 18px;
  }

  .app-header {
    padding:
      18px 12px;
  }

  .header-inner {
    align-items: flex-start;
  }

  .step-chip {
    padding:
      6px 9px;

    font-size: 0.68rem;
  }

  .wizard-card,
  .result-card {
    padding:
      21px 17px;
  }

  .wizard-nav {
    position: sticky;

    bottom: 8px;

    z-index: 20;

    padding: 8px;

    background:
      rgba(
        249,
        250,
        251,
        0.94
      );

    border-radius: 14px;

    backdrop-filter:
      blur(8px);
  }

  .wizard-nav .btn {
    flex: 1;
  }

  .slider-head {
    align-items: flex-start;
  }

  .slider-head strong {
    font-size: 0.95rem;
  }

}