:root {
  color-scheme: light;
  --paper: #fff7ec;
  --ink: #31231f;
  --accent: #9e3e4e;
  --muted: #705a50;
  --line: #d6bfb1;
  font-family: system-ui, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0 0 .65em; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #156c64; outline-offset: 4px; }
.shell { width: min(1100px, calc(100% - 36px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 68px; font-size: .88rem; font-weight: 800; }
.brand { text-decoration: none; color: var(--accent); }
.site-footer { margin-top: 72px; padding: 24px 0 34px; border-top: 1px solid var(--line); display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 68px 0 56px; }
.eyebrow { color: var(--accent); font-weight: 850; font-size: .8rem; letter-spacing: .13em; }
.hero h1 { font-size: clamp(3rem, 7.7vw, 6rem); line-height: 1; letter-spacing: -.065em; margin: 14px 0 24px; }
.hero h1 span { color: var(--accent); }
.lead { font-weight: 750; font-size: clamp(1rem, 2.1vw, 1.35rem); }
.hero-art { position: relative; background: #f3dbd9; border: 1px solid var(--line); border-radius: 50% 47% 44% 47%; }
.hero-art img { width: 100%; display: block; aspect-ratio: 1; object-fit: contain; padding: 4%; }
.stamp { position: absolute; z-index: 1; right: 1%; top: 6%; transform: rotate(10deg); border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); background: #fff7ec; text-align: center; padding: 12px; font-size: clamp(.65rem, 2vw, .95rem); font-weight: 800; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.button, .options button { display: inline-flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; padding: 12px 17px; font-weight: 800; color: var(--ink); text-decoration: none; cursor: pointer; }
.button:hover, .options button:hover, .options .selected { background: #f5e0e2; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.primary:hover { background: #80313e; }
.text-link { text-underline-offset: 4px; font-weight: 750; }
.feature { border-top: 1px solid var(--line); padding-top: 34px; }
.feature h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); }
.intro { padding-top: 48px; }
.page-title { font-size: clamp(1.7rem, 5vw, 3rem); line-height: 1.2; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 15px; margin-top: 24px; }
.type-card { position: relative; display: block; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fffdfa; text-decoration: none; }
.type-card:hover { border-color: var(--accent); background: #fff0ed; }
.type-card img { width: 100%; height: auto; display: block; max-height: 260px; object-fit: contain; }
.type-card h3 { font-size: 1rem; margin-top: 10px; }
.type-card p { font-size: .85rem; color: var(--muted); margin: 0; }
.panel { width: min(100%, 690px); margin: 42px auto 0; border: 1px solid var(--line); border-radius: 22px; background: #fffdfa; padding: clamp(18px, 5vw, 38px); }
.progress-label { display: flex; justify-content: space-between; margin-top: 26px; color: var(--accent); font-size: .8rem; font-weight: 800; }
progress, meter { width: 100%; height: 16px; accent-color: var(--accent); }
#quiz h2 { margin-top: 19px; font-size: clamp(1.1rem, 3vw, 1.5rem); }
.options, .tie-options { display: grid; gap: 9px; }
.back { padding: 8px 0; margin-top: 10px; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.result-panel { text-align: center; }
.result-panel .actions { justify-content: center; }
.result-art { display: block; width: min(100%, 360px); height: auto; margin: 0 auto 12px; }
.result-line { font-size: 1.2rem; font-weight: 850; }
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .hero-art { width: min(85%, 340px); margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .type-card { padding: 10px; }
}

.profile { text-align: left; margin-top: 24px; }
.profile h2 { font-size: 1.05rem; margin-top: 18px; }



