/* 前世診断（/zense/・2026-11-21）: 色は深い藍むらさき（--zs）と金。ナカミドの共通の部品（.btn・.section・.prose・.eyebrow・.lead）の上に足す */
.zs { --zs: #3b3486; --zs-t: #eceafa; --zs-line: #c9c6e6; --zs-gold: #8a6a1c; padding-top: 22px; display: grid; gap: 14px; }
.zs-eb { color: var(--zs); }
.zs h1 { font-size: clamp(24px, 7.2vw, 32px); }

.zs-tool { display: grid; gap: 14px; min-width: 0; }
.zs-form { display: grid; gap: 14px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); min-width: 0; }
.zs-field { display: grid; gap: 6px; min-width: 0; }
.zs-label { font-weight: 700; font-size: 14px; }
.zs-label small { margin-left: 4px; font-weight: 500; font-size: 12px; color: var(--muted); }
.zs-name { display: block; width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.zs-bd { display: flex; gap: 10px; flex-wrap: wrap; }
.zs-sel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.zs-sel select { height: 48px; min-width: 84px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.zs-name:focus, .zs-sel select:focus { outline: none; border-color: var(--zs); box-shadow: 0 0 0 3px var(--zs-t); }
.zs-err { margin: 0; font-size: 13.5px; font-weight: 700; color: #b3202c; }
.zs-go { width: 100%; min-height: 52px; font-size: 17px; background: var(--zs); border-color: var(--zs); color: #fff; }

/* 結果のカード */
.zs-card { display: grid; gap: 12px; padding: 20px 16px 16px; border-radius: 18px; background: linear-gradient(180deg, #fbf7ea 0%, var(--zs-t) 100%); border: 1.5px solid #d9cfa6; min-width: 0; scroll-margin-top: 72px; }
.zs-card.is-in { animation: zs-in .5s ease-out both; }
@keyframes zs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .zs-card.is-in { animation: none; } }
.zs-card-eb { margin: 0; font-size: 13px; font-weight: 700; color: var(--zs-gold); letter-spacing: .08em; }
.zs-title { margin: 0; font-size: clamp(24px, 7vw, 30px); line-height: 1.35; color: var(--zs); overflow-wrap: anywhere; }
.zs-era { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink2); }
.zs-dot { margin: 0 2px; color: var(--muted); }
.zs-story { margin: 0; font-size: 15.5px; line-height: 1.85; color: var(--ink); }
.zs-list { margin: 0; display: grid; gap: 8px; }
.zs-list div { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--zs-line); }
.zs-list dt { font-size: 12.5px; font-weight: 700; color: var(--zs); }
.zs-list dd { margin: 2px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.zs-kioku { display: grid; gap: 6px; }
.zs-kioku-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; color: var(--ink2); }
.zs-kioku-h b { font-family: var(--f-round); font-size: 22px; color: var(--zs); font-variant-numeric: tabular-nums; }
.zs-bar { height: 10px; border-radius: 99px; background: #fff; border: 1px solid var(--zs-line); overflow: hidden; }
.zs-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--zs), var(--zs-gold)); transition: width .8s ease-out; }
.zs-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zs-actions .btn { white-space: nowrap; }
.zs-actions .btn:not(.sub) { background: var(--zs); border-color: var(--zs); color: #fff; }
.zs-actions .btn.zs-x { background: #000; border-color: #000; }
.zs-actions .btn.zs-line { background: #06813a; border-color: #06813a; }
.zs-note { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* 説明 */
.zs-doc { margin-top: 8px; }
.zs-doc ol { padding-left: 1.3em; }
.zs-fig { margin: 8px auto; display: grid; gap: 6px; max-width: 420px; }
.zs-fig svg { display: block; width: 100%; height: auto; }
.zs-fig figcaption { font-size: 13px; color: var(--ink2); line-height: 1.6; }
.zs-all { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.zs-all li { display: grid; gap: 1px; padding: 8px 12px; border-radius: 10px; background: var(--zs-t); }
.zs-all b { font-size: 14.5px; color: var(--zs); }
.zs-all span { font-size: 12.5px; color: var(--ink2); }
.zs-faq details { border-bottom: 1px solid var(--line); }
.zs-faq summary { padding: 12px 0; font-weight: 700; cursor: pointer; }
.zs-faq details p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.8; color: var(--ink2); }

@media (min-width: 560px) {
  .zs-all { grid-template-columns: 1fr 1fr; }
  .zs-actions { grid-template-columns: repeat(4, auto); justify-content: start; }
}
