:root {
  --ink: #2b2926;
  --ink-soft: #6b665f;
  --line: #e7e3dc;
  --paper: #ffffff;
  --accent: #a98a5b;
  --accent-soft: #f4efe6;
  --max-w: 480px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.screen {
  width: 100%;
  max-width: var(--max-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 0 56px;
  animation: fade-in 0.45s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Header / brand ---------- */

.brand {
  text-align: center;
  margin-bottom: 8px;
}

.brand__name {
  font-family: "Shippori Mincho", serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--ink);
}

/* ---------- Progress ---------- */

.progress {
  margin: 28px 0 40px;
}

.progress__track {
  height: 1px;
  background: var(--line);
  position: relative;
}

.progress__fill {
  height: 1px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.progress__label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- Back ---------- */

.back {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 8px 0;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  visibility: hidden;
}

.back.is-visible {
  visibility: visible;
}

.back:active {
  opacity: 0.6;
}

/* ---------- Question ---------- */

.question {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.question__text {
  font-family: "Shippori Mincho", serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.75;
  margin: 4px 0 36px;
  color: var(--ink);
}

.options {
  display: flex;
  flex-direction: column;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 20px 2px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}

.options .option:last-child {
  border-bottom: 1px solid var(--line);
}

.option:active {
  opacity: 0.55;
}

.option.is-selected {
  color: var(--accent);
}

.option__mark {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}

.option.is-selected .option__mark {
  border-color: var(--accent);
}

.option.is-selected .option__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Start screen ---------- */

.start {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.start__title {
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0 0 24px;
}

.start__lead {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
  margin: 0 0 16px;
}

.start__meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 40px;
}

.consent {
  background: var(--accent-soft);
  padding: 22px 20px;
  margin-bottom: 28px;
}

.consent__heading {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.consent__text {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.consent__privacy-link {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  text-decoration: underline;
  margin-bottom: 16px;
}

.consent__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.consent__checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.consent__mark {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--ink-soft);
  background: var(--paper);
  position: relative;
}

.consent__checkbox input:checked + .consent__mark {
  background: var(--accent);
  border-color: var(--accent);
}

.consent__checkbox input:checked + .consent__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent__label {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}

.cta {
  margin-top: auto;
  width: 100%;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: 14.5px;
  letter-spacing: 0.12em;
  padding: 18px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cta:disabled {
  background: var(--line);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.cta:not(:disabled):active {
  opacity: 0.75;
}

/* ---------- Result ---------- */

.result__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.result__title {
  font-family: "Shippori Mincho", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 28px;
}

.result__lead {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.result__how {
  background: var(--accent-soft);
  padding: 24px;
  font-size: 14.5px;
  line-height: 2;
  margin-bottom: 36px;
}

.result__3days {
  text-align: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.result__3days-label {
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.result__3days-text {
  font-size: 13px;
  color: var(--ink-soft);
}

.plusone__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 10px;
}

.plusone__title {
  font-family: "Shippori Mincho", serif;
  font-size: 17px;
  margin: 0 0 10px;
}

.plusone__text {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 48px;
}

.result__footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-top: 8px;
}

.result__footer p {
  margin: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 360px) {
  .question__text {
    font-size: 19px;
  }
  .result__title {
    font-size: 23px;
  }
}
