:root {
  --bg: #fbf6ee;
  --paper: #ffffff;
  --ink: #2b2a33;
  --muted: #6b6672;
  --navy: #2f3a64;
  --accent: #e0674f;
  --accent-dark: #c4513b;
  --line: #e8dfd1;
  --soft: #f3ebdd;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 500;
  line-height: 1.8;
  font-size: 16px;
}
#app { max-width: 560px; margin: 0 auto; padding: 32px 16px 56px; }
.screen[hidden] { display: none; }

/* はじめの画面 */
#start { text-align: center; padding-top: 24px; }
.book-mark {
  width: 76px; height: 96px; margin: 0 auto 20px; border-radius: 6px 12px 12px 6px;
  background: linear-gradient(90deg, var(--navy) 0 14px, #44518a 14px);
  box-shadow: 0 10px 24px rgba(47, 58, 100, .25);
  position: relative;
}
.book-mark::after {
  content: ""; position: absolute; right: 16px; top: 0; width: 14px; height: 34px;
  background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}
.kicker { color: var(--accent-dark); font-weight: 700; font-size: 14px; margin: 0 0 4px; letter-spacing: .05em; }
h1 { font-size: 40px; font-weight: 900; color: var(--navy); margin: 0 0 16px; letter-spacing: .02em; }
.lead { font-size: 17px; margin: 0 0 20px; }
.lead strong { color: var(--accent-dark); }
.points { list-style: none; padding: 16px 20px; margin: 0 0 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.points li { padding-left: 1.6em; position: relative; }
.points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ボタン */
.btn {
  display: block; width: 100%; padding: 16px 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 17px; text-align: center; text-decoration: none;
}
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 0 var(--accent-dark); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--muted); font-size: 15px; margin-top: 16px; }
.btn.x { background: #1f1f1f; color: #fff; }

/* 質問 */
.progress { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar { height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.count { color: var(--muted); font-size: 14px; margin: 12px 0 4px; }
#qText { font-size: 22px; color: var(--navy); line-height: 1.6; margin: 0 0 20px; font-weight: 900; }
.choices { display: grid; gap: 12px; }
.choice {
  font: inherit; font-size: 16px; text-align: left; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 2px solid var(--line); line-height: 1.6;
}
.choice:hover { border-color: var(--accent); }
.choice.picked { border-color: var(--accent); background: #fff3ef; }

/* 結果 */
#result .kicker { text-align: center; }
.catch { text-align: center; font-weight: 700; color: var(--accent-dark); margin: 4px 0 0; font-size: 16px; }
.type-name { font-size: 24px; font-weight: 900; color: var(--navy); text-align: center; line-height: 1.5; margin: 0 0 16px; }
.desc { margin: 0 0 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 14px; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 17px; color: var(--navy); font-weight: 900; border-left: 5px solid var(--accent); padding-left: 10px; line-height: 1.4; }
.genre { margin: 0 0 8px; font-weight: 700; }
.genre.sub { font-weight: 500; color: var(--muted); }
.rank { display: inline-block; font-size: 12px; padding: 0 10px; border-radius: 99px; background: var(--navy); color: #fff; margin-right: 8px; vertical-align: 2px; }
.genre.sub .rank { background: var(--muted); }
.themes, .steps { margin: 0 0 6px; padding-left: 1.4em; }
.themes li, .steps li { margin-bottom: 6px; }
.toc { list-style: none; margin: 0 0 10px; padding: 0; }
.toc li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.small { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.fine { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.market { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.market th, .market td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.market th { font-weight: 500; color: var(--muted); width: 55%; }
.market td { font-weight: 700; }
.cta { background: var(--navy); color: #fff; border-radius: 18px; padding: 22px 18px 26px; margin: 28px 0 20px; text-align: center; }
.cta p { margin: 0 0 14px; font-weight: 700; }
.share .btn { margin-top: 12px; }

/* シェアされたページ */
.shared { text-align: center; }
.shared .card { text-align: left; }
