:root {
  color-scheme: light;
  --ink: #25302d;
  --muted: #65736f;
  --line: #d5ddd8;
  --paper: #fbfaf4;
  --surface: #fffdf8;
  --mint: #91aaa2;
  --mint-dark: #4f6963;
  --sun: #d8be79;
  --peach: #dba39c;
  --blue: #8aa0ad;
  --shadow: 0 24px 70px rgba(36, 49, 45, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.62), transparent 18%, rgba(255, 255, 255, 0.36) 41%, transparent 62%),
    radial-gradient(circle at 12% 18%, rgba(216, 190, 121, 0.18), transparent 31%),
    radial-gradient(circle at 86% 15%, rgba(138, 160, 173, 0.2), transparent 28%),
    radial-gradient(circle at 50% 110%, rgba(76, 103, 94, 0.16), transparent 38%),
    linear-gradient(135deg, #f2f1ea 0%, #faf8f0 48%, #eef2ed 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    linear-gradient(88deg, transparent 0 18%, rgba(255, 255, 255, 0.42) 24%, transparent 33%),
    linear-gradient(106deg, transparent 0 44%, rgba(255, 255, 255, 0.34) 53%, transparent 66%),
    linear-gradient(76deg, transparent 0 62%, rgba(80, 105, 97, 0.08) 72%, transparent 82%);
  filter: blur(20px);
  opacity: 0.78;
}

body::after {
  z-index: -1;
  opacity: 0.11;
  background-image:
    radial-gradient(circle at 1px 1px, #26322f 0.7px, transparent 0.9px),
    radial-gradient(circle at 8px 5px, #26322f 0.5px, transparent 0.8px);
  background-size: 12px 12px, 19px 19px;
  mix-blend-mode: multiply;
}

button {
  font: inherit;
}

.app {
  width: min(960px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(820px, 100%);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(250, 249, 242, 0.86)),
    repeating-linear-gradient(0deg, rgba(37, 48, 45, 0.025) 0 1px, transparent 1px 5px);
  border: 1px solid rgba(204, 213, 208, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
  backdrop-filter: blur(22px) saturate(0.94);
}

.hidden {
  display: none;
}

.topbar,
.progress-row,
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 48, 45, 0.92);
  color: #f4efe2;
  font-weight: 800;
}

.brand {
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  align-items: center;
  gap: clamp(22px, 5vw, 54px);
  margin-top: 28px;
}

.eyebrow,
.prompt-kicker {
  margin: 0 0 10px;
  color: var(--mint-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow::before,
.prompt-kicker::before {
  content: "観測 ";
  color: rgba(37, 48, 45, 0.44);
  font-weight: 800;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.25rem, 5.8vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
#result-copy {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.85;
}

.mascot-card {
  display: grid;
  place-items: center;
  min-height: 270px;
}

.mascot {
  width: min(100%, 285px);
  filter: drop-shadow(0 18px 22px rgba(48, 66, 60, 0.12)) grayscale(0.18) saturate(0.82);
  opacity: 0.82;
}

.field-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.field-notes span {
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid rgba(217, 226, 222, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(247, 246, 239, 0.64)),
    repeating-linear-gradient(90deg, rgba(37, 48, 45, 0.025) 0 1px, transparent 1px 7px);
  color: #46534f;
  font-size: 0.92rem;
  line-height: 1.55;
}

.notice,
.care-box,
.offload-box {
  display: grid;
  gap: 7px;
  margin: 28px 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  line-height: 1.7;
}

.notice strong,
.care-box strong,
.offload-box strong {
  color: var(--ink);
}

.offload-box {
  margin-top: -8px;
  background:
    linear-gradient(180deg, rgba(248, 242, 230, 0.7), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(90deg, rgba(37, 48, 45, 0.025) 0 1px, transparent 1px 7px);
}

.primary,
.secondary,
.ghost,
.answer {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary,
.secondary {
  min-height: 52px;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 800;
}

.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(40, 51, 48, 0.24);
}

.secondary {
  background: #e9f1ee;
  color: var(--ink);
}

.primary:hover,
.secondary:hover,
.answer:hover {
  transform: translateY(-2px);
}

.ghost {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ef;
  color: var(--ink);
  font-size: 1.2rem;
}

.progress-wrap {
  flex: 1;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ece8;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #697f77, var(--sun));
  transition: width 240ms ease;
}

#progress-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.question-area {
  display: grid;
  gap: 12px;
  margin: clamp(28px, 7vw, 54px) 0 26px;
}

.mini-mascot {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 45% 45%;
  background: #f8f2e6;
  box-shadow: 0 12px 0 rgba(80, 105, 97, 0.16);
  filter: grayscale(0.16) saturate(0.82);
}

.face {
  font-size: 1.15rem;
  font-weight: 800;
}

#question-text {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.observation-note {
  max-width: 58ch;
  margin: 2px 0 0;
  padding-left: 14px;
  border-left: 3px solid rgba(79, 105, 99, 0.34);
  color: #5f6d69;
  font-size: 0.98rem;
  line-height: 1.75;
}

.answers {
  display: grid;
  gap: 12px;
}

.answer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(249, 248, 241, 0.92)),
    repeating-linear-gradient(0deg, rgba(37, 48, 45, 0.02) 0 1px, transparent 1px 6px);
  color: var(--ink);
  padding: 14px 18px;
  text-align: left;
  box-shadow: 0 10px 20px rgba(48, 65, 60, 0.07);
}

.answer strong {
  font-size: 1rem;
}

.answer span {
  color: var(--muted);
  font-size: 0.88rem;
}

.answer::after {
  content: "→";
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eef1ec;
  color: #526b64;
  font-weight: 900;
}

.result-header {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.result-illustration {
  width: min(190px, 52vw);
}

.result-header h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
}

.score-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 16px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #eef1ec, #f8f6ed),
    repeating-linear-gradient(90deg, rgba(37, 48, 45, 0.025) 0 1px, transparent 1px 8px);
}

.score-card span,
.score-card small {
  color: var(--muted);
  font-weight: 700;
}

.score-card strong {
  grid-row: span 2;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.9;
}

.actions {
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 720px) {
  .app {
    align-items: stretch;
    padding: 12px;
  }

  .panel {
    min-height: calc(100vh - 24px);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  h1,
  #question-text {
    max-width: 100%;
  }

  .mascot-card {
    min-height: 185px;
    order: -1;
  }

  .mascot {
    width: min(70vw, 220px);
  }

  .field-notes {
    grid-template-columns: 1fr;
  }

  .answer {
    align-items: flex-start;
  }

  .actions,
  .primary,
  .secondary {
    width: 100%;
  }
}
