:root {
  --navy: #2c3e50;
  --navy-dark: #1f2d3a;

  --gold: #d4af37;
  --gold-dark: #a88924;
  --gold-light: #faf4dd;

  --background: #f9f8f6;
  --paper: #ffffff;

  --text: #333333;
  --muted: #7f8c8d;

  --border: #e6e2dc;

  --shadow:
    0 12px 38px
    rgba(44, 62, 80, 0.08);

  --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.8;
}

h1,
h2,
h3,
blockquote {
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
}

button {
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[v-cloak] {
  display: none;
}

/* Header */

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

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

  color: #fff;
}

.header-inner {
  width: min(900px, 100%);
  margin: 0 auto;

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

  gap: 20px;
}

.eyebrow {
  margin: 0 0 3px;

  color: #e4cc78;

  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.app-header h1 {
  margin: 0;

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

.header-step {
  flex-shrink: 0;

  padding: 7px 12px;

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

  border-radius: 999px;

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

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

/* Main */

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

  margin:
    30px auto 70px;
}

/* Progress */

.progress-card {
  padding: 18px;

  margin-bottom: 20px;

  background: var(--paper);

  border-radius: 16px;

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

.progress-head {
  display: flex;
  justify-content: space-between;

  margin-bottom: 9px;

  color: var(--muted);

  font-size: 0.8rem;
}

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

.progress-track {
  height: 7px;

  overflow: hidden;

  background: #ece9e4;

  border-radius: 100px;
}

.progress-value {
  height: 100%;

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

  transition: width 0.25s;
}

.progress-points {
  display: flex;
  justify-content: space-between;

  margin-top: 12px;
}

.progress-points span {
  width: 26px;
  height: 26px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #ece9e4;

  color: var(--muted);

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

.progress-points span.active {
  background: var(--navy);
  color: #fff;
}

.progress-points span.current {
  background: var(--gold);

  color: var(--navy-dark);

  box-shadow:
    0 0 0 4px
    rgba(212, 175, 55, 0.15);
}

/* Question */

.question-card,
.result-card {
  padding:
    28px 22px;

  background: var(--paper);

  border-radius: var(--radius);

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

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

.step-label {
  display: inline-block;

  padding: 4px 10px;

  background: var(--gold-light);

  border-radius: 999px;

  color: var(--gold-dark);

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

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

  color: var(--navy);

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

.question-heading p {
  margin: 0;

  color: var(--muted);
}

/* Choices */

.choice-list {
  display: grid;
  gap: 12px;
}

.choice-button {
  width: 100%;
  min-height: 70px;

  padding: 16px 18px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  text-align: left;

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

  border-radius: 14px;

  background: #fff;

  color: var(--text);

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

.choice-button:hover {
  border-color: #d8c379;

  transform: translateY(-1px);
}

.choice-button.selected {
  border-color: var(--gold);

  background: var(--gold-light);

  box-shadow:
    0 0 0 3px
    rgba(212, 175, 55, 0.1);
}

.choice-button span {
  font-weight: 700;
}

.choice-button small {
  margin-top: 3px;

  color: var(--muted);

  font-size: 0.77rem;
}

/* Navigation */

.wizard-nav {
  display: flex;
  gap: 12px;

  margin-top: 20px;
}

.nav-spacer {
  flex: 1;
}

.button {
  min-height: 50px;

  padding: 10px 24px;

  border: 0;

  border-radius: 12px;

  font-weight: 700;

  transition:
    background 0.15s,
    transform 0.15s;
}

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

.button-primary {
  background: var(--navy);
  color: #fff;
}

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

.button-primary:disabled {
  background: #d6d6d6;
  color: #9a9a9a;
}

.button-secondary {
  background: #e8e6e2;
  color: var(--text);
}

/* Results */

.result-container {
  display: grid;
  gap: 22px;
}

.result-intro {
  text-align: center;

  padding:
    30px 20px;
}

.result-label {
  display: block;

  color: var(--gold-dark);

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

.result-intro h2 {
  margin:
    4px 0 22px;

  color: var(--navy);

  font-size:
    clamp(
      2rem,
      8vw,
      3rem
    );
}

.theme-box {
  max-width: 680px;

  margin: auto;

  padding: 20px;

  background: var(--paper);

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

  border-radius: 16px;

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

.theme-box span {
  display: block;

  color: var(--muted);

  font-size: 0.75rem;
}

.theme-box strong {
  display: block;

  margin-top: 6px;

  color: var(--navy);

  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;

  font-size:
    clamp(
      1.15rem,
      4vw,
      1.55rem
    );
}

/* Primary */

.primary-result {
  padding:
    36px 24px;

  text-align: center;

  border-radius: 22px;

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

  color: #fff;

  box-shadow:
    0 20px 50px
    rgba(44, 62, 80, 0.18);
}

.primary-eyebrow {
  margin: 0;

  color: #e8d78e;

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

.primary-result h2 {
  margin:
    7px 0 14px;

  font-size:
    clamp(
      2.3rem,
      9vw,
      4rem
    );
}

.main-score {
  display: flex;
  justify-content: center;
  align-items: baseline;

  gap: 7px;
}

.main-score span {
  font-size: 0.8rem;
  opacity: 0.75;
}

.main-score strong {
  color: #ebce67;

  font-size: 3.6rem;
  line-height: 1;
}

.main-score small {
  opacity: 0.7;
}

.primary-description {
  max-width: 640px;

  margin:
    20px auto 0;

  opacity: 0.9;
}

/* Result common */

.section-heading {
  margin-bottom: 20px;
}

.section-heading > span {
  color: var(--gold-dark);

  font-size: 0.68rem;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin:
    4px 0 0;

  color: var(--navy);

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

/* Ranking */

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;

  grid-template-columns:
    auto 1fr auto;

  align-items: center;

  gap: 14px;

  padding: 16px;

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

  border-radius: 14px;

  background: #fcfbf9;
}

.ranking-item.first {
  background: var(--gold-light);

  border-color: #dfca79;
}

.rank-number {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--navy);

  color: #fff;

  font-weight: 800;
}

.ranking-item.first
.rank-number {
  background: var(--gold);

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

.rank-body > span {
  color: var(--muted);

  font-size: 0.7rem;
}

.rank-body h3 {
  margin:
    0 0 6px;

  color: var(--navy);
}

.score-bar,
.detail-bar {
  height: 5px;

  overflow: hidden;

  background: #e9e7e2;

  border-radius: 100px;
}

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

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

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

/* Reason */

.reason-box {
  padding: 22px;

  border-left:
    4px solid
    var(--gold);

  border-radius: 10px;

  background: #fcfaf2;
}

.reason-box p {
  margin: 0;
}

/* Detail score */

.score-detail-grid {
  display: grid;
  gap: 14px;
}

.score-detail {
  padding: 15px;

  background: #fbfaf8;

  border-radius: 12px;
}

.detail-head {
  display: flex;
  justify-content: space-between;

  margin-bottom: 8px;
}

.detail-head span {
  color: var(--muted);

  font-size: 0.8rem;
}

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

/* Combination */

.combination {
  display: flex;
  flex-wrap: wrap;

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

  gap: 10px;

  margin:
    20px 0;
}

.combination span {
  padding:
    11px 16px;

  border-radius: 10px;

  background: var(--navy);

  color: #fff;

  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;

  font-weight: 700;
}

.combination span:last-child {
  background: var(--gold);

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

.combination b {
  color: var(--muted);

  font-size: 1.4rem;
}

.combination-text {
  margin: 0;

  text-align: center;
}

/* Low priority */

.low-priority-card {
  border-top:
    4px solid
    #b9b2a5;
}

.low-priority-box {
  display: grid;
  gap: 16px;

  padding: 20px;

  background: #f3f1ed;

  border-radius: 14px;
}

.low-priority-box > div {
  text-align: center;
}

.low-priority-box span {
  display: block;

  color: var(--muted);

  font-size: 0.72rem;
}

.low-priority-box strong {
  color: var(--muted);

  font-size: 1.7rem;
}

.low-priority-box h3 {
  margin:
    0 0 6px;

  color: var(--navy);
}

.low-priority-box p {
  margin: 0;
}

/* Roadmap */

.roadmap {
  display: grid;
  gap: 0;
}

.roadmap-item {
  position: relative;

  display: grid;

  grid-template-columns:
    80px 1fr;

  gap: 16px;

  padding-bottom: 25px;
}

.roadmap-item:not(:last-child)::after {
  content: "";

  position: absolute;

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

  width: 2px;

  background: #e4dcae;
}

.roadmap-number {
  position: relative;

  z-index: 1;

  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 999px;

  background: var(--gold);

  color: var(--navy-dark);

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

.roadmap-item h3 {
  margin:
    1px 0 4px;

  color: var(--navy);
}

.roadmap-item p {
  margin: 0;

  color: var(--muted);

  font-size: 0.87rem;
}

/* Today's question */

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

  text-align: center;

  border-radius: 20px;

  background: var(--gold-light);

  border:
    1px solid
    #e6d698;
}

.question-result > span {
  color: var(--gold-dark);

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

.question-result blockquote {
  max-width: 650px;

  margin:
    17px auto;

  color: var(--navy);

  font-size:
    clamp(
      1.4rem,
      5vw,
      2rem
    );

  font-weight: 700;

  line-height: 1.7;
}

.question-result p {
  margin: 0;

  color: var(--muted);

  font-size: 0.8rem;
}

/* Reset */

.button-reset {
  width: 100%;

  background: #e7e4df;

  color: var(--text);
}

/* Responsive */

@media (min-width: 650px) {

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

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

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

  .low-priority-box {
    grid-template-columns:
      130px 1fr;

    align-items: center;
  }

}

@media (max-width: 480px) {

  .main-container {
    width:
      calc(100% - 16px);

    margin-top: 15px;
  }

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

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

  .header-step {
    font-size: 0.65rem;
  }

  .question-card,
  .result-card {
    padding:
      21px 16px;
  }

  .wizard-nav {
    position: sticky;

    bottom: 7px;

    z-index: 20;

    padding: 7px;

    background:
      rgba(
        249,
        248,
        246,
        0.94
      );

    border-radius: 14px;

    backdrop-filter: blur(8px);
  }

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

  .ranking-item {
    grid-template-columns:
      auto 1fr;
  }

  .rank-score {
    grid-column: 2;
  }

}