/* neruzou.com の見た目。色・角丸・紙の寸法はアプリのトークン
   （apps/neruzou/lib/core/ui/theme/ の NzColors.night・NzScoredPaperStyle）の値に合わせている。 */
:root {
  --bg: #16131f;
  --surface: #221d33;
  --card: #1e1a2c;
  --line: rgba(184, 169, 232, .22);
  --lavender: #b8a9e8;
  --text: #f8f7f5;
  --sub: #a9a3bf;
  --bubble: #d4deee;
  --ink: #0f172a;
  --paper: #f8f2e2;
  --paper-ink: #3d3550;
  --paper-muted: #8a7fa3;
  --paper-title: #5f548a;
  --gold: #d9b46a;
  --check: #9a7fc2;
  --font-zen: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-kiwi: "Kiwi Maru", var(--font-zen);
  --font-mincho: "Hiragino Mincho ProN", "Shippori Mincho", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) radial-gradient(120% 60% at 50% 0%, #2a2440 0%, rgba(42, 36, 64, 0) 70%) no-repeat;
  color: var(--text);
  font: 400 15px/1.8 var(--font-zen);
  overflow-wrap: anywhere;
  line-break: strict;
}
body.has-sticky { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
a { color: var(--lavender); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1 { font: 700 26px/1.45 var(--font-zen); text-wrap: balance; }
h2 { font: 700 18px/1.5 var(--font-zen); margin-bottom: 14px; }
h3 { font: 700 16px/1.5 var(--font-zen); }
main { max-width: 600px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.fine { color: var(--sub); font-size: 12.5px; margin-top: 12px; }

/* 上の帯・下の帯 */
.top { max-width: 960px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 500 18px/1 var(--font-kiwi); }
.brand img { border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.top nav a:not(.btn) { color: var(--text); text-decoration: none; }
.foot { margin-top: 72px; padding: 28px 20px 36px; border-top: 1px solid var(--line); text-align: center; color: var(--sub); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 12px; }
.foot a { color: var(--sub); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: 999px; background: var(--lavender); color: var(--ink); font: 700 15px/1.2 var(--font-zen); text-decoration: none;
}
.btn.small { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ねるぞうと吹き出し */
.nz { display: block; flex: none; }
.nz-64 { width: 64px; height: 64px; }
.nz-140 { width: 140px; height: 140px; }
.nz-200 { width: 200px; height: 200px; }
.hello { display: flex; align-items: center; gap: 6px; margin: 16px 0 14px; }
.bubble {
  position: relative; background: var(--bubble); color: var(--ink); padding: 12px 16px; border-radius: 18px;
  font: 400 14.5px/1.6 var(--font-kiwi);
}
.bubble::before {
  content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; background: var(--bubble);
  transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}

/* トップ */
.hero { text-align: center; padding: 16px 0 8px; }
.hero .nz { margin: 0 auto; }
.hero h1 { font: 500 28px/1.5 var(--font-kiwi); margin: 4px 0 14px; }
.hero h1 span { display: inline-block; }
.hero p { color: var(--sub); }
.hero .btn { margin-top: 22px; }
.block { margin-top: 56px; }
.block.first { margin-top: 20px; }
.block > p + p { margin-top: 12px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; }
.card p { color: var(--sub); font-size: 14px; margin-top: 4px; }
.more-link { margin-top: 14px; text-align: right; font-size: 14px; }

/* セッション */
.session-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--text); text-decoration: none; }
.session-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.session-card div { padding: 14px 18px 18px; }
.session-card p:last-child { color: var(--sub); font-size: 14px; }
.kind { color: var(--lavender); font-size: 12.5px; }
.cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; margin-bottom: 18px; }
.lead-line { font: 500 17px/1.7 var(--font-kiwi); margin: 10px 0 14px; }
.block .btn { margin-top: 22px; }
ul, ol { padding-left: 0; list-style: none; }
li { position: relative; padding-left: 21px; }
li + li { margin-top: 6px; }
ul.dots li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
ul.checks li::before, ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--check); font-weight: 700; }
ol.steps { counter-reset: step; }
ol.steps li { counter-increment: step; padding-left: 34px; }
ol.steps li + li { margin-top: 12px; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--lavender); font: 700 12px/22px var(--font-zen); text-align: center;
}
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.types a { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--text); text-decoration: none; text-align: center; font-size: 14px; }
.types a[aria-current] { border-color: var(--gold); }
.types span { display: block; padding: 10px 8px 12px; }

/* 診断の結果（アプリの「生成りの紙」） */
.crumbs { color: var(--sub); font-size: 12.5px; margin-top: 4px; }
.crumbs a { color: var(--sub); }
.paper {
  position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 22px; padding: 22px 20px 20px;
  border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-align: center;
}
.paper::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(217, 180, 106, .45); border-radius: 17px; pointer-events: none; }
.face { width: 150px; height: 125px; margin: 6px auto 12px; border-radius: 50%; overflow: hidden; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.plead { color: var(--paper-muted); font-size: 12px; letter-spacing: .2em; }
.paper h1 { font: 500 26px/1.4 var(--font-mincho); letter-spacing: .04em; margin-top: 2px; }
.tag { display: inline-block; margin-top: 8px; padding: 2px 12px; border: 1px solid rgba(217, 180, 106, .7); border-radius: 999px; color: #8a6d2f; font-size: 12px; }
.map { max-width: 260px; margin: 18px auto 0; color: var(--paper-muted); font-size: 10.5px; line-height: 1.3; }
.map .axis { text-align: left; margin-bottom: 5px; }
.map .sides { display: flex; justify-content: space-between; margin: 5px 0 0; }
.map .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #ece3cf; border-radius: 14px; overflow: hidden; }
.map .grid > * { background: #f3ecdc; min-height: 62px; display: flex; align-items: center; justify-content: center; padding: 6px; color: #b0a58f; text-decoration: none; }
.map .grid strong { background: #efe8fb; color: #6c56a0; font-weight: 700; box-shadow: inset 0 0 0 2px rgba(154, 127, 194, .45); }
.map .grid > :nth-child(1) { border-top-left-radius: 14px; }
.map .grid > :nth-child(2) { border-top-right-radius: 14px; }
.map .grid > :nth-child(3) { border-bottom-left-radius: 14px; }
.map .grid > :nth-child(4) { border-bottom-right-radius: 14px; }
.paper hr { border: 0; border-top: 1px dashed rgba(217, 180, 106, .6); margin: 18px 0 4px; }
.pcard { text-align: left; margin-top: 14px; font-size: 14px; line-height: 1.85; }
.pcard h2 { font: 500 14px/1.6 var(--font-mincho); color: var(--paper-title); margin-bottom: 4px; }
.pcard.filled, .pcard.framed { padding: 12px 14px; border-radius: 14px; }
.pcard.filled { background: rgba(217, 180, 106, .25); }
.pcard.framed { border: 1px solid rgba(217, 180, 106, .6); }
.pcard p + p, .pcard p + ul, .pcard ul + p { margin-top: 6px; }
.pcard .strong { font: 500 16px/1.8 var(--font-mincho); }
.pcard .quiet { font-size: 13.5px; color: var(--paper-title); }
.pcard li + li { margin-top: 0; }
.more { margin-top: 16px; background: #efe8fb; border-radius: 14px; padding: 0 14px; text-align: left; }
.more summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 13.5px; color: var(--paper-title); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "＋"; }
.more[open] summary::after { content: "−"; }
.more[open] { padding-bottom: 14px; }
.more .pcard:first-of-type { margin-top: 0; }
.note { margin-top: 16px; color: var(--paper-muted); font-size: 11.5px; line-height: 1.7; }
.sign { margin-top: 10px; text-align: right; font: 400 13px/1.6 var(--font-kiwi); }
.cta { margin-top: 40px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.cta .hello { margin-top: 0; text-align: left; }
.cta > p { color: var(--sub); font-size: 14px; }
.cta .btn { margin-top: 16px; }
.cta .more-link { text-align: center; }
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(22, 19, 31, .92); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13.5px;
}
.sticky .btn { padding: 0 20px; }
@media (max-width: 380px) { .sticky span { display: none; } }

/* OGP の画像の元（tool/og.sh） */
body.og { width: 1200px; height: 630px; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg) radial-gradient(90% 90% at 50% 0%, #332b52 0%, rgba(42, 36, 64, 0) 75%); }
.og-plain { text-align: center; }
.og-plain img { width: 180px; border-radius: 40px; margin: 0 auto 24px; }
.og-plain h1 { font: 500 84px/1.2 var(--font-kiwi); }
.og-plain p { font: 400 36px/1.6 var(--font-kiwi); color: var(--sub); margin-top: 8px; }
.og-paper {
  width: 1080px; height: 510px; background: var(--paper); color: var(--paper-ink); border-radius: 44px; border: 2px solid var(--gold);
  outline: 2px solid rgba(217, 180, 106, .45); outline-offset: -14px; display: flex; align-items: center; gap: 56px; padding: 0 64px;
}
.og-paper .face { width: 380px; height: 316px; margin: 0; flex: none; }
.og-wide { width: 420px; height: 316px; object-fit: cover; border-radius: 28px; flex: none; }
.og-paper .plead { font-size: 26px; }
.og-paper h1 { font: 500 62px/1.35 var(--font-mincho); letter-spacing: .04em; margin-top: 8px; }
.og-sub { font-size: 26px; line-height: 1.6; color: var(--paper-title); margin-top: 16px; }
.og-brand { display: flex; align-items: center; gap: 12px; margin-top: 30px; font: 500 28px/1 var(--font-kiwi); }
.og-brand img { width: 48px; border-radius: 11px; }
