/* ZEN世診断 — 明るくカラフル × キャラクター主役。スマホファースト。
   タイプ色は types.css（自動生成）の .t-<slug> が --c / --s / --ink / --tint / --deep を定義する。 */
:root {
  --bg: #FFF3DC;
  --paper: #FFFBF2;
  --text: #2A1F33;
  --muted: #7A6B7F;
  --ol: #3B2A4A;
  --accent: #FF5A3C;
  --display: "Dela Gothic One", "Hiragino Sans", sans-serif;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --gutter: 16px;
  --w: 560px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --c: #FF5A3C; --s: #FFC93C; --ink: #fff; --tint: #FFE9DF; --deep: #9B2E22;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 30; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); background: var(--bg); border-bottom: 3px solid var(--ol); }
.logo { display: flex; align-items: center; gap: 1px; text-decoration: none; }
.logo-zen { font-family: var(--display); font-size: 22px; letter-spacing: 0.02em; color: var(--ol); }
.logo-yo { font-family: var(--display); font-size: 19px; color: #fff; background: var(--accent); border: 3px solid var(--ol); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; line-height: 1; margin: 0 3px; transform: rotate(-8deg); }
.logo-sub { font-family: var(--display); font-size: 16px; color: var(--ol); }
.site-footer { padding: 40px var(--gutter) calc(32px + var(--safe-b)); text-align: center; font-size: 11px; color: var(--muted); }
.footer-note { max-width: 30em; margin: 0 auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 16px; border: 3px solid var(--ol); background: #fff; color: var(--ol); font-family: var(--round); font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; box-shadow: 0 5px 0 var(--ol); transition: transform .1s, box-shadow .1s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ol); }
.btn-main { background: var(--s); color: var(--s-ink, var(--ol)); }
.btn-sub { background: #fff; }
.btn-xl { width: 100%; max-width: 360px; min-height: 62px; font-size: 19px; }

/* 共通：ステッカー・円相・放射線 */
.char { width: 100%; height: auto; aspect-ratio: 1; }
.sticker { filter: drop-shadow(6px 0 0 #fff) drop-shadow(-6px 0 0 #fff) drop-shadow(0 6px 0 #fff) drop-shadow(0 -6px 0 #fff) drop-shadow(0 12px 0 rgba(59, 42, 74, .28)); }
.enso { position: absolute; inset: 4%; width: 92%; height: 92%; color: var(--s); opacity: .9; }
.rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .16) 0deg 9deg, transparent 9deg 18deg); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 共通セクション */
.board-hero { text-align: center; padding: 30px var(--gutter) 8px; }
.bh-kicker { font-family: var(--round); font-weight: 800; font-size: 12px; color: var(--muted); }
.bh-title { margin-top: 8px; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 11vw, 56px); line-height: 1.25; color: var(--ol); }
.bh-lead { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.section { max-width: var(--w); margin: 0 auto; padding: 22px var(--gutter); }
.sec-h { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.4; color: var(--ol); margin-bottom: 14px; }
.sec-lead { font-size: 13.5px; font-weight: 700; color: var(--muted); margin: -4px 0 16px; line-height: 1.7; }
.center { text-align: center; }
.more { margin-top: 18px; }

/* ---------------- 結果ページ */
.page-result .site-header { background: var(--c); }
.page-result .logo-zen, .page-result .logo-sub { color: var(--ink); }
.r-hero { position: relative; overflow: hidden; background: var(--c); color: var(--ink); text-align: center; padding: 14px var(--gutter) 30px; border-bottom: 3px solid var(--ol); }
.r-hero > *:not(.rays) { position: relative; }
.r-kicker { display: inline-block; font-family: var(--round); font-weight: 800; font-size: 15px; background: var(--ol); color: #fff; border-radius: 99px; padding: 3px 16px; }
.r-badges { margin-top: 10px; display: flex; justify-content: center; gap: 8px; }
.r-no, .r-rarity { display: inline-flex; align-items: baseline; gap: 4px; background: #fff; color: var(--ol); border: 3px solid var(--ol); border-radius: 12px; padding: 1px 10px; font-family: var(--display); font-size: 17px; line-height: 1.5; }
.r-no small { font-size: 11px; }
.r-rarity { color: #F5A300; letter-spacing: .06em; }
.r-rarity small { font-family: var(--round); font-weight: 800; font-size: 10px; color: var(--ol); letter-spacing: 0; }
.r-art { position: relative; width: min(88vw, 430px); margin: 2px auto -12px; }
.r-art .enso { color: #fff; opacity: .55; }
.r-char { position: relative; animation: pop .8s var(--spring) both .1s; }
@keyframes pop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.r-name { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 12vw, 58px); line-height: 1.2; color: #fff; -webkit-text-stroke: 7px var(--ol); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ol); letter-spacing: .02em; }
.r-catch { margin: 16px auto 0; max-width: 21em; position: relative; background: #fff; color: var(--ol); border: 3px solid var(--ol); border-radius: 18px; padding: 8px 16px; font-family: var(--round); font-weight: 800; font-size: 16px; line-height: 1.55; }
.r-catch::before { content: ""; position: absolute; top: -12px; left: 50%; width: 18px; height: 18px; background: #fff; border-left: 3px solid var(--ol); border-top: 3px solid var(--ol); transform: translateX(-50%) rotate(45deg); }
.r-actions { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.r-actions .btn-sub { width: 100%; max-width: 360px; }

.r-body { max-width: var(--w); margin: 0 auto; padding: 22px var(--gutter) 10px; display: grid; gap: 16px; }
.card { background: #fff; border: 3px solid var(--ol); border-radius: 22px; padding: 0 18px 20px; box-shadow: 0 6px 0 var(--ol); overflow: hidden; }
.card-h { margin: 0 -18px 12px; padding: 10px 18px; background: var(--c); color: var(--ink); border-bottom: 3px solid var(--ol); font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.4; }
.card p { font-size: 15.5px; line-height: 1.9; }
.c-scroll { background: #FFF6DF; }
.c-scroll .card-h { background: #8B5A2B; color: #FFF3DC; }
.c-scroll p { font-family: var(--round); font-weight: 700; }
.legacy { display: grid; gap: 8px; }
.legacy li { display: flex; gap: 10px; align-items: flex-start; background: var(--tint); border-radius: 14px; padding: 10px 12px; font-family: var(--round); font-weight: 800; font-size: 15px; line-height: 1.5; }
.check { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--c); color: var(--ink); border: 2px solid var(--ol); display: grid; place-items: center; font-size: 15px; }
.legacy-note { margin-top: 10px; text-align: center; font-size: 12px !important; font-weight: 700; color: var(--muted); }
.card-pair { display: grid; grid-template-columns: 1fr; gap: 16px; }
.c-good .card-h { background: #2BB673; color: #fff; }
.c-bad .card-h { background: #5B5F97; color: #fff; }
.c-love .card-h { background: #FF6B9A; color: #fff; }
.c-love { background: #FFF1F5; }
.c-match .card-h { background: #2BB673; color: #fff; }
.m-list { display: grid; gap: 10px; }
.m-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--tint); border: 2px solid var(--ol); text-decoration: none; }
.m-list.bad .m-item { background: #F1F0F6; }
.avatar { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--c); border: 3px solid var(--ol); }
.avatar img { position: absolute; width: 230%; max-width: none; left: -65%; top: -22%; }
.m-body { display: flex; flex-direction: column; line-height: 1.35; }
.m-no { font-family: var(--display); font-size: 11px; color: var(--muted); }
.m-name { font-family: var(--display); font-size: 18px; }
.c-match .h-bad { margin-top: 18px; background: #5B5F97; color: #fff; border-top: 3px solid var(--ol); }
.c-dex .card-h { background: var(--ol); color: #fff; }
.dex-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.dex-row > div { background: var(--tint); border-radius: 16px; padding: 10px; }
.dex-big { font-family: var(--display); font-size: 22px !important; line-height: 1.3 !important; color: var(--ol); }
.dex-big small { font-size: 13px; }
.dex-sub { font-size: 12px !important; font-weight: 700; color: var(--muted); }
.dex-note { margin-top: 10px; font-size: 10.5px !important; color: var(--muted); line-height: 1.6 !important; }
.c-share { background: var(--c); color: var(--ink); text-align: center; padding-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.share-h { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.4; }
.share-note { font-size: 13px !important; font-weight: 700; }

/* share sheet */
.share-sheet { width: 100%; max-width: 480px; max-height: 100dvh; margin: auto auto 0; padding: 0; border: 3px solid var(--ol); border-bottom: 0; border-radius: 26px 26px 0 0; background: var(--bg); color: var(--text); }
.share-sheet::backdrop { background: rgba(42, 31, 51, .6); }
.sheet-inner { padding: 12px var(--gutter) calc(18px + var(--safe-b)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-family: var(--display); font-weight: 400; font-size: 19px; }
.sheet-close { width: 42px; height: 42px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; }
.sheet-preview { margin: 6px auto 0; width: min(50vw, 210px); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--c); border: 3px solid var(--ol); display: grid; place-items: center; }
.sheet-preview img { width: 100%; height: 100%; object-fit: cover; -webkit-touch-callout: default; }
.sheet-loading { color: var(--ink); font-weight: 800; font-size: 12px; }
.sheet-hint { margin-top: 8px; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.sheet-actions { margin-top: 12px; display: grid; gap: 10px; }
.sheet-actions .btn { width: 100%; }
.sheet-channels { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sheet-channels button { width: 100%; min-height: 48px; border: 2px solid var(--ol); border-radius: 12px; background: #fff; font-family: var(--round); font-weight: 800; font-size: 12px; cursor: pointer; }
.sheet-status { margin-top: 8px; min-height: 1.5em; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }

@media (min-width: 720px) {
  .card-pair { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------- 前世図鑑（70キャラ一覧） */
.zk-filter { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; }
.zk-filter button { flex: none; font-family: var(--round); font-weight: 800; font-size: 14px; padding: 6px 16px; border-radius: 99px; border: 3px solid var(--ol); background: #fff; color: var(--ol); cursor: pointer; }
.zk-filter button.is-on { background: var(--ol); color: #fff; }
.zk-filter small { font-size: 11px; opacity: .7; }
.zk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zk-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 4px 8px; border-radius: 16px; background: var(--c); color: var(--ink); border: 3px solid var(--ol); box-shadow: 0 4px 0 var(--ol); text-decoration: none; overflow: hidden; }
.zk-no { position: absolute; top: 5px; left: 6px; z-index: 1; font-family: var(--display); font-size: 10px; background: #fff; color: var(--ol); border: 2px solid var(--ol); border-radius: 99px; padding: 0 6px; line-height: 1.5; }
.zk-art { width: 100%; position: relative; }
/* v3.1 共通カード：白い円相（ハロー）＋足元の影。キャラSVGは透過・影なし */
.zk-art::before { content: ""; position: absolute; left: 50%; top: 44%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.38) 0 58%, rgba(255,255,255,0) 59%); box-shadow: 0 0 0 8px rgba(255,255,255,.14); }
.zk-art::after { content: ""; position: absolute; left: 28%; right: 28%; top: 85.5%; height: 4.4%; border-radius: 50%; background: rgba(42,31,51,.2); }
.zk-art .zk-char { position: relative; z-index: 1; }
.zk-char { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
.zk-name { margin-top: -6px; font-family: var(--display); font-size: 12px; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; }
.zk-rarity { font-size: 10px; letter-spacing: .04em; color: #FFD23F; text-shadow: 0 1px 0 var(--ol), 1px 0 0 var(--ol), -1px 0 0 var(--ol), 0 -1px 0 var(--ol); }
@media (min-width: 720px) { .zk-grid { grid-template-columns: repeat(6, 1fr); } }
/* 長いタイプ名は1行に収まるよう文字数で縮める（スマホ幅 ≒ 92vw を文字数で割る） */
.r-name.len-8 { font-size: min(11vw, 54px); }
.r-name.len-9 { font-size: min(9.8vw, 52px); }
.r-name.len-10 { font-size: min(8.9vw, 50px); }
.r-name.len-11 { font-size: min(8vw, 46px); }

/* ---------------- ヘッダー・フッター（本番） */
.site-nav { display: flex; align-items: center; gap: 12px; font-family: var(--round); font-weight: 800; font-size: 13px; }
.site-nav a { text-decoration: none; }
.nav-pill { background: var(--accent); color: #fff; border: 2px solid var(--ol); border-radius: 99px; padding: 3px 14px; box-shadow: 0 3px 0 var(--ol); }
.page-result .site-nav a:not(.nav-pill) { color: var(--ink); }
.page-quiz .site-nav, .page-quiz .site-footer { display: none; }
.footer-logo { font-family: var(--display); font-size: 16px; color: var(--ol); }
.footer-nav { margin: 10px 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12px; font-weight: 700; }
.footer-nav a { color: var(--text); }
.btn-go { background: var(--accent); color: #fff; }

/* ---------------- トップ */
.hero { position: relative; overflow: hidden; text-align: center; padding: 18px 0 34px; background: radial-gradient(120% 70% at 50% 0%, #FFE2B8 0%, var(--bg) 70%); border-bottom: 3px solid var(--ol); }
.hero-cast { overflow: hidden; padding: 6px 0 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hc-track { display: flex; gap: 10px; width: max-content; animation: marquee 48s linear infinite; }
.hc-item { flex: none; width: 118px; aspect-ratio: 1; border-radius: 26px; background: var(--c); border: 3px solid var(--ol); box-shadow: 0 5px 0 var(--ol); overflow: hidden; }
.hc-item:nth-child(even) { transform: translateY(14px) rotate(3deg); }
.hc-item:nth-child(odd) { transform: rotate(-3deg); }
.hc-char { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero-center { padding: 26px var(--gutter) 0; }
.hero-kicker { display: inline-block; font-family: var(--round); font-weight: 800; font-size: 12.5px; background: var(--ol); color: #fff; border-radius: 99px; padding: 3px 14px; }
.hero-title { margin: 14px 0 20px; font-family: var(--display); font-weight: 400; font-size: clamp(42px, 13vw, 68px); line-height: 1.2; color: #fff; -webkit-text-stroke: 8px var(--ol); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ol); }
.hero-meta { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.hero-count { margin-top: 6px; font-size: 13px; font-weight: 800; }
.hero-last { margin-top: 10px; font-size: 13px; font-weight: 800; }
.steps { display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: #fff; border: 3px solid var(--ol); border-radius: 18px; padding: 12px 14px; box-shadow: 0 4px 0 var(--ol); }
.st-n { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; border: 3px solid var(--ol); display: grid; place-items: center; font-family: var(--display); font-size: 20px; }
.steps b { font-family: var(--round); font-weight: 800; font-size: 15.5px; line-height: 1.4; }
.steps span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.zk-grid-4 { grid-template-columns: repeat(4, 1fr); }
.zk-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .zk-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .zk-grid-4 { grid-template-columns: repeat(4, 1fr); } .zk-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.final-cta { max-width: var(--w); margin: 20px max(var(--gutter), calc((100% - var(--w)) / 2)) 0; padding: 30px var(--gutter) 34px; text-align: center; background: var(--ol); border-radius: 28px; color: #fff; }
.fc-title { font-family: var(--display); font-size: clamp(22px, 7vw, 30px); line-height: 1.4; margin-bottom: 18px; }
.fc-meta { margin-top: 12px; font-size: 12px; font-weight: 700; opacity: .75; }
.final-cta .btn { box-shadow: 0 5px 0 #000; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + var(--safe-b)); background: linear-gradient(transparent, rgba(255, 243, 220, .96) 30%); transform: translateY(110%); transition: transform .3s; display: flex; justify-content: center; }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { width: 100%; max-width: 420px; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
[data-reveal].is-in, html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ---------------- 診断 */
.page-quiz { background: color-mix(in srgb, var(--qc, var(--accent)) 16%, #FFFBF2); transition: background-color .6s; }
.page-quiz .site-header { background: transparent; }
.quiz { max-width: var(--w); margin: 0 auto; padding: 8px var(--gutter) calc(20px + var(--safe-b)); min-height: calc(100svh - 54px); display: flex; flex-direction: column; }
.quiz-bar { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; height: 40px; }
.quiz-back { width: 38px; height: 38px; margin-left: -6px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 50%; color: var(--ol); }
.quiz-back[hidden] { display: grid !important; visibility: hidden; }
.progress { height: 14px; border-radius: 99px; background: #fff; border: 3px solid var(--ol); position: relative; overflow: hidden; }
.progress-fill { position: absolute; inset: 0; background: var(--qc, var(--accent)); transform-origin: left; transform: scaleX(0); transition: transform .45s, background-color .6s; }
.quiz-count { font-family: var(--round); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.soul { position: relative; width: 104px; height: 104px; margin: 12px auto 0; color: var(--ol); }
.soul .enso { inset: 0; width: 100%; height: 100%; color: var(--ol); opacity: .85; }
.soul-orb { position: absolute; left: 50%; top: 50%; width: 64%; height: 64%; border-radius: 50%; background: var(--qc, var(--accent)); border: 3px solid var(--ol); transform: translate(-50%, -50%) scale(var(--p, .06)); transition: transform .5s var(--spring), background-color .6s; }
.soul-q { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 30px; color: #fff; -webkit-text-stroke: 5px var(--ol); paint-order: stroke fill; }
.soul-label { text-align: center; font-family: var(--round); font-weight: 800; font-size: 12px; color: var(--muted); margin-top: 4px; }
.quiz-stage { flex: 1; padding: 14px 0 12px; overflow-x: clip; } /* 質問の切り替えアニメで横スクロールが出ないように */
.quiz-intro { text-align: center; padding-top: 20px; }
.quiz-intro-text { margin-top: 10px; color: var(--muted); font-size: 14px; }
.q { opacity: 0; transform: translateX(calc(var(--d, 1) * 24px)); transition: opacity .26s, transform .26s; }
.q[data-dir="-1"] { --d: -1; }
.q.is-in { opacity: 1; transform: none; }
.q.is-out { opacity: 0; transform: translateX(-24px); }
.q-num { display: inline-block; font-family: var(--display); font-size: 14px; background: var(--ol); color: #fff; border-radius: 99px; padding: 0 12px; }
.q-part { margin-left: 8px; font-family: var(--round); font-weight: 800; font-size: 12px; color: var(--muted); }
.q-text { margin-top: 12px; font-family: var(--round); font-weight: 800; font-size: clamp(21px, 6vw, 26px); line-height: 1.5; color: var(--ol); outline: none; }
.q-hint { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.q-options { margin-top: 20px; display: grid; gap: 12px; }
.opt { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px; background: #fff; border: 3px solid var(--ol); border-radius: 18px; box-shadow: 0 5px 0 var(--ol); font-family: var(--round); font-weight: 800; font-size: 16px; line-height: 1.45; color: var(--ol); cursor: pointer; transition: transform .1s, box-shadow .1s, background-color .15s; -webkit-tap-highlight-color: transparent; }
.opt:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ol); }
.opt-key { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 15px; background: var(--qs, var(--bg)); color: var(--ol); border: 2px solid var(--ol); }
.opt.is-chosen { background: var(--qc); color: var(--qink); transform: translateY(4px); box-shadow: 0 1px 0 var(--ol); }
.opt.is-chosen .opt-key { background: #fff; }
@media (hover: hover) { .opt:hover { background: color-mix(in srgb, var(--qc, var(--accent)) 12%, #fff); } }
.quiz-disclaimer { text-align: center; font-size: 10px; color: var(--muted); }
.analyzing { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 24px; }
.analyzing-text { font-family: var(--round); font-weight: 800; font-size: 18px; text-align: center; min-height: 2em; color: var(--ol); }
.is-analyzing .soul { width: 210px; height: 210px; margin-top: 60px; animation: spinslow 2.4s linear infinite; }
.is-analyzing .soul-q { font-size: 64px; animation: spinslow 2.4s linear infinite reverse; }
.is-analyzing .soul-label { display: none; }
@keyframes spinslow { to { transform: rotate(360deg); } }

/* ---------------- 結果ページ（本番追加分） */
.meters { display: grid; gap: 14px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--round); font-weight: 800; }
.m-label { font-size: 15px; }
.m-side { font-size: 12px; color: var(--deep); }
.meter-track { position: relative; height: 16px; border-radius: 99px; background: var(--tint); border: 2px solid var(--ol); overflow: hidden; margin-top: 4px; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); background: var(--c); border-right: 2px solid var(--ol); transition: width 1s var(--spring); }
.meter-ends { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.runners { margin-top: 14px; font-size: 13px !important; font-weight: 700; line-height: 1.7 !important; }
.runners a { color: var(--deep); font-weight: 800; }
.retry { font-size: 13px !important; font-weight: 800; }
.retry a { color: var(--ink); }

/* ---------------- 規約 */
.legal h1 { font-size: 24px; }
.legal h2 { font-family: var(--round); font-weight: 800; font-size: 16px; margin: 22px 0 6px; color: var(--ol); }
.legal p { font-size: 14px; line-height: 1.9; margin-bottom: 6px; }
.legal-note { background: #FFF1C2; border: 2px solid var(--ol); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.legal-date { margin-top: 20px; color: var(--muted); }

/* ---------------- 小さい画面（iPhone SE など）の最終調整 */
@media (max-width: 359px) {
  .site-nav a:not(.nav-pill) { display: none; }
  .hc-item { width: 96px; border-radius: 22px; }
  .hero-title { -webkit-text-stroke-width: 7px; }
}
/* 画面の高さが低い端末では、診断の「魂」を小さくして4つの選択肢が1画面に収まるようにする */
@media (max-height: 700px) {
  .soul { width: 60px; height: 60px; margin-top: 4px; }
  .soul-q { font-size: 20px; -webkit-text-stroke-width: 4px; }
  .soul-label { display: none; }
  .quiz-stage { padding-top: 8px; }
  .q-text { margin-top: 8px; font-size: clamp(19px, 5.6vw, 24px); }
  .q-options { margin-top: 14px; gap: 10px; }
  .opt { min-height: 54px; padding: 8px 12px; font-size: 15px; }
  .is-analyzing .soul { width: 180px; height: 180px; margin-top: 30px; }
  .is-analyzing .soul-q { font-size: 54px; }
}
