:root {
  --paper: #efe7d6;
  --paper-2: #f7f1e4;
  --ink: #1a1714;
  --ink-soft: #3c342c;
  --line: #d4c6ae;
  --stamp: #8e2b18;
  --stamp-soft: #f3e4d8;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "MS PGothic", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "MS PMincho", "Songti SC", serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-wrap: break-word;
  background:
    radial-gradient(circle at 12% -8%, rgba(142, 43, 24, 0.08), transparent 32%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin: 0;
  line-break: strict;
}

[hidden] {
  display: none !important;
}

h1,
h2,
.question,
.slip-name {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.4rem);
  max-width: 12em;
}

h2,
.question {
  max-width: 16em;
}

h2 {
  font-size: clamp(1.55rem, 2vw + 1rem, 2.15rem);
}

h3 {
  font-size: 1.15rem;
  line-height: 1.4;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

.layout-child,
.choice-copy,
.site-nav,
.slip {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  min-height: 44px;
}

.skip-link:focus {
  top: calc(8px + env(safe-area-inset-top));
}

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(239, 231, 214, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 64px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  width: 100%;
  order: 3;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 8px;
  text-decoration: none;
}

.language-control {
  margin-left: auto;
}

.language-control select {
  min-height: 44px;
  min-width: 44px;
  max-width: 8.5rem;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
}

.hero {
  padding: 48px 0 28px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--stamp);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.hero-lead,
.lede,
.narrow-copy p,
.faq-list p,
.frame-copy,
.frames p,
.source {
  margin-top: 14px;
  color: var(--ink-soft);
}

.hero-lead,
.proof {
  max-width: 38rem;
  font-size: 1.05rem;
}

.proof {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.button--line {
  background: transparent;
  color: var(--ink);
}

.trust-row {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.trust-row li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.trust-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--stamp);
  border-radius: 50%;
}

.band {
  padding: 28px 0 48px;
  scroll-margin-top: 120px;
}

.band--card {
  background: rgba(247, 241, 228, 0.72);
  border-block: 1px solid var(--line);
}

.source {
  font-size: 0.92rem;
}

.progress {
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.question {
  margin: 16px 0;
  font-size: clamp(1.35rem, 1.4vw + 1rem, 1.8rem);
}

.choice {
  display: flex;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.choice-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.choice[aria-checked="true"] {
  border-color: var(--stamp);
  background: var(--stamp-soft);
  box-shadow: inset 4px 0 0 var(--stamp);
}

.choice[aria-checked="true"] .choice-mark {
  border-color: var(--stamp);
  background:
    radial-gradient(circle at center, var(--stamp) 0 5px, transparent 6px);
}

.choice-title {
  display: block;
  font-size: 1.05rem;
}

.choice-note {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.quiz-error {
  margin-top: 12px;
  color: var(--stamp);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

#quiz-picked {
  max-width: 22em;
}

#quiz-summary .button {
  margin-top: 16px;
}

.decision {
  padding: 22px 20px 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.decision .seal {
  margin-top: 16px;
}

.decision-model {
  margin-top: 8px;
  color: var(--ink-soft);
}

.decision-price {
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

#result-slip p {
  margin-top: 14px;
}

.alt-list {
  list-style: none;
  margin-top: 4px;
}

.alt-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.check-done {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--stamp);
  border-radius: 12px;
  background: var(--stamp-soft);
}

.preview {
  margin-top: 28px;
  padding: 8px 18px 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 241, 228, 0.72);
}

.preview-list {
  list-style: none;
}

.preview-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.preview-list li:last-child {
  border-bottom: 0;
}

.preview-list li span:first-child {
  color: var(--stamp);
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.frame-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.frame-body {
  margin-top: 12px;
}

.frame-art {
  width: min(100%, 200px);
  height: auto;
  margin-bottom: 8px;
  color: var(--ink);
}

.seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.slip-name {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
}

.slip p {
  margin-top: 12px;
}

.slip-label {
  display: block;
  margin-bottom: 2px;
  color: var(--stamp);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.assume {
  margin-top: 16px;
  padding: 12px;
  border-left: 3px solid var(--stamp);
  background: rgba(142, 43, 24, 0.06);
}

.checks {
  list-style: none;
  margin-top: 8px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 44px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.check input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--stamp);
}

.after-grid {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.check-stage {
  order: -1;
  margin: 0;
  padding: 16px 16px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}

.check-figure {
  margin: 0;
}

.checks li[data-current="true"] .check {
  padding-left: 12px;
  box-shadow: inset 4px 0 0 var(--stamp);
}

.frame-index {
  margin-top: 0;
  color: var(--stamp);
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.faq-list {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 28px 12px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}

.faq-list details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 6px;
}

.faq-list p {
  padding-bottom: 14px;
}

.site-footer {
  padding: 8px 0 max(28px, env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 22px;
  }

  .site-nav {
    order: 0;
    width: auto;
    margin-left: 8px;
  }

  .hero {
    padding-top: 72px;
  }

  .band {
    padding: 48px 0 72px;
  }

  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slip {
    padding: 8px 8px 12px;
  }
}

@media (min-width: 1024px) {
  .container {
    width: min(100% - 48px, 760px);
  }

  .container--wide {
    width: min(100% - 48px, 1080px);
  }

  .hero-grid,
  .result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px;
    align-items: start;
  }

  .preview {
    margin-top: 0;
  }

  .after-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 36px;
    align-items: start;
  }

  .check-stage {
    order: 0;
    position: sticky;
    top: 96px;
  }
}

@media print {
  .site-header,
  .skip-link,
  .check-stage,
  .quiz-actions,
  .site-nav,
  .language-control,
  #check-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .band,
  .hero {
    padding: 12px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
