/* ジェムシンク（仮称）モック 共通スタイル
   配色・文字・形は要件定義書10章のとおり。グラデーションは「面」にだけ使い、文字は単色。 */
:root {
  --bg: #FBFAFF;
  --ink: #2B2A3D;
  --sub: #6B6880;
  --line: #E6E3F0;
  --card: #FFFFFF;
  --brand: linear-gradient(135deg, #6C8CFF 0%, #B58CFF 50%, #FF9EC7 100%);
  --brand-deep: #5B4FD6;
  /* 結果ページではタイプのグループ色に切り替える */
  --g1: #6C8CFF;
  --g2: #FF9EC7;
  --grad: var(--brand);
  --on-grad: #FFFFFF;
  --deep: #5B4FD6;
  --soft: #F1EFFF;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(74, 69, 120, .10);
  --head: 'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', sans-serif;
  --body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.85; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; }
a { color: var(--deep); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.4; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 900; }
h2 { font-size: clamp(22px, 4.4vw, 30px); font-weight: 900; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.3em; margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.sec { padding: 56px 0; }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head p { color: var(--sub); max-width: 620px; margin: 0 auto; }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--deep); margin-bottom: 8px; }
.sub { color: var(--sub); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt { margin-top: 20px; } .mb0 { margin-bottom: 0; }

/* モックの帯 */
.mockbar { background: #2B2A3D; color: #fff; font-size: 12px; text-align: center; padding: 6px 12px; line-height: 1.5; }

/* ヘッダー */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 900; font-size: 20px; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; }
.logo small { font-size: 10px; font-weight: 700; color: var(--sub); border: 1px solid var(--line); border-radius: 99px; padding: 0 7px; line-height: 1.7; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.nav a:hover, .nav a.on { background: var(--soft); }
.nav .btn { padding: 8px 16px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 12px; width: 42px; height: 42px; font-size: 20px; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .nav .btn { text-align: center; margin-top: 6px; }
}

/* ボタン */
.btn { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 16px; text-decoration: none; text-align: center; border: 0; cursor: pointer; border-radius: 99px; padding: 14px 28px; background: var(--grad); color: var(--on-grad); box-shadow: 0 6px 18px rgba(108, 140, 255, .28); transition: transform .15s, box-shadow .15s; line-height: 1.4; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(108, 140, 255, .34); }
.btn.big { font-size: 19px; padding: 18px 40px; }
.btn.ghost { background: #fff; color: var(--deep); border: 2px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--deep); }
.btn.sm { font-size: 14px; padding: 9px 18px; }
.btn.block { display: block; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* カード */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g2, .g3 { grid-template-columns: 1fr; } }
.badge { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 12px; padding: 3px 12px; border-radius: 99px; background: var(--grad); color: var(--on-grad); line-height: 1.6; }
.badge.plain { background: var(--soft); color: var(--deep); }
.note { background: var(--soft); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--ink); }
.note.warn { background: #FFF6E0; }

/* 宝石のカット面のような飾り（要所だけ） */
.facet { position: relative; overflow: hidden; }
.facet::before, .facet::after { content: ''; position: absolute; pointer-events: none; background: rgba(255, 255, 255, .16); }
.facet::before { width: 340px; height: 340px; right: -110px; top: -120px; clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%); }
.facet::after { width: 220px; height: 220px; left: -70px; bottom: -90px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.facet > * { position: relative; z-index: 1; }

/* トップ：ヒーロー */
.hero { background: var(--brand); color: #fff; padding: 48px 0 0; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: end; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero p.lead { font-size: 17px; margin-bottom: 22px; }
.hero .btn { background: #fff; color: var(--brand-deep); box-shadow: 0 8px 24px rgba(43, 42, 61, .2); }
.hero-meta { font-size: 13px; margin-top: 12px; opacity: .95; }
.hero-copy { padding-bottom: 48px; }
.hero-charas { display: flex; justify-content: center; align-items: flex-end; min-height: 250px; }
.hero-charas .chara { width: 44%; height: auto; margin: 0 -7%; filter: drop-shadow(0 8px 14px rgba(43, 42, 61, .18)); }
.hero-charas .chara:nth-child(2) { width: 54%; z-index: 2; }
@media (max-width: 760px) { .hero-in { grid-template-columns: 1fr; } .hero-copy { padding-bottom: 8px; text-align: center; } .hero-charas { min-height: 200px; } .hero-charas .chara { width: 36%; } .hero-charas .chara:nth-child(2) { width: 44%; } }

/* 3ステップ */
.step { text-align: center; }
.step-no { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--head); font-weight: 900; font-size: 20px; display: grid; place-items: center; margin: 0 auto 12px; }

/* タイプのカード */
.tcard { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.tcard:hover { transform: translateY(-4px); }
.tcard-top { padding: 14px 10px 0; text-align: center; background: linear-gradient(rgba(255,255,255,.62), rgba(255,255,255,.62)), linear-gradient(135deg, var(--g1), var(--g2)); }
.tcard-top .chara { width: 78%; height: auto; display: block; margin: 0 auto -4px; }
.tcard-body { padding: 14px 14px 16px; }
.tcard-name { font-family: var(--head); font-weight: 900; font-size: 16px; line-height: 1.4; margin-bottom: 2px; }
.tcard-title { font-size: 12px; color: var(--sub); font-weight: 500; margin-bottom: 6px; }
.tcard-str { font-size: 13px; line-height: 1.6; }
.group-head { display: flex; align-items: center; gap: 10px; margin: 32px 0 14px; }
.group-head .bar { width: 44px; height: 10px; border-radius: 99px; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.group-head h3 { margin: 0; }
.group-head span { color: var(--sub); font-size: 14px; }

/* 12タイプの表（段階×ズーム） */
.matrix { width: 100%; border-collapse: separate; border-spacing: 6px; }
.matrix th { font-family: var(--head); font-size: 13px; color: var(--sub); font-weight: 700; padding: 4px; }
.matrix td { padding: 0; }
.matrix a { display: block; text-decoration: none; text-align: center; padding: 10px 4px; border-radius: 14px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: var(--on-grad); font-family: var(--head); font-weight: 700; font-size: 13px; line-height: 1.4; }
.matrix a small { display: block; font-weight: 500; font-size: 10px; opacity: .92; }

/* 料金 */
.price-card { display: flex; flex-direction: column; }
.price-card h3 { margin: 8px 0 4px; }
.price { font-family: var(--head); font-weight: 900; font-size: 34px; line-height: 1.2; margin: 6px 0; }
.price small { font-size: 14px; font-weight: 700; }
.price s { font-size: 15px; color: var(--sub); font-weight: 500; margin-right: 6px; }
.price-card ul { font-size: 14px; flex: 1; }
.price-card.pick { border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--brand) border-box; }

/* 診断 */
.quiz-wrap { max-width: 640px; margin: 0 auto; padding: 28px 16px 64px; }
.progress { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .3s; }
.q-no { font-family: var(--head); font-weight: 700; color: var(--deep); font-size: 14px; margin: 18px 0 6px; }
.q-text { font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1.55; margin-bottom: 18px; }
.opt { display: block; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 15px 18px; margin-bottom: 10px; font: inherit; font-size: 15.5px; line-height: 1.6; color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover { border-color: #B58CFF; }
.opt.sel { border-color: #6C8CFF; background: #F1F4FF; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 8px 0 6px; }
.scale button { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; max-width: 60px; width: 100%; justify-self: center; font: inherit; color: var(--sub); }
.scale button:nth-child(1), .scale button:nth-child(5) { transform: scale(1); } .scale button:nth-child(2), .scale button:nth-child(4) { transform: scale(.82); } .scale button:nth-child(3) { transform: scale(.66); }
.scale button.sel, .scale button:hover { background: var(--brand); border-color: transparent; color: #fff; }
.scale-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.scale-labels span { max-width: 46%; } .scale-labels span:last-child { text-align: right; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.linkbtn { background: none; border: 0; color: var(--sub); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 8px 0; }

/* 結果ページ */
.r-hero { background: linear-gradient(135deg, var(--g1), var(--g2)); color: var(--on-grad); padding: 36px 0 0; text-align: center; }
.r-hero .eyebrow { color: var(--on-grad); opacity: .9; }
.r-hero h1 { color: var(--on-grad); margin-bottom: 4px; }
.r-title { font-family: var(--head); font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.r-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.r-tags span { background: rgba(255, 255, 255, .28); border-radius: 99px; padding: 3px 14px; font-size: 13px; font-weight: 700; font-family: var(--head); }
.r-hero .chara { width: min(300px, 70%); height: auto; display: block; margin: 8px auto -6px; filter: drop-shadow(0 10px 18px rgba(43, 42, 61, .18)); }
.bubble { display: inline-block; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 18px; border-radius: 18px; padding: 10px 20px; position: relative; margin-top: 10px; box-shadow: var(--shadow); }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -9px; border: 9px solid transparent; border-top-color: #fff; border-bottom: 0; }
.r-sec { padding: 36px 0; border-bottom: 1px solid var(--line); }
.r-sec:last-of-type { border-bottom: 0; }
.r-sec h2 { display: flex; align-items: center; gap: 10px; }
.r-sec h2::before { content: ''; width: 14px; height: 14px; background: linear-gradient(135deg, var(--g1), var(--g2)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); flex: none; }
.sparkle-in { animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* メーター */
.meter { margin-bottom: 22px; }
.meter-ends { display: flex; justify-content: space-between; font-family: var(--head); font-weight: 700; font-size: 15px; }
.meter-ends small { display: block; font-family: var(--body); font-weight: 400; color: var(--sub); font-size: 12px; }
.meter-ends div:last-child { text-align: right; }
.meter-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0; }
.meter-track i { height: 14px; border-radius: 99px; background: var(--line); }
.meter-track i.on { background: linear-gradient(135deg, var(--g1), var(--g2)); height: 22px; margin-top: -4px; box-shadow: 0 3px 10px rgba(74, 69, 120, .2); }
.meter-res { font-size: 14px; }
.fb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--sub); }
.fb button { font: inherit; font-size: 13px; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 14px; cursor: pointer; color: var(--ink); }
.fb button:hover { border-color: var(--deep); }
.fb button.sel { background: var(--deep); border-color: var(--deep); color: #fff; }
.fb-more { width: 100%; background: var(--soft); border-radius: 12px; padding: 10px 12px; color: var(--ink); }

/* タブ */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; font-family: var(--head); font-weight: 700; font-size: 14px; border: 2px solid var(--line); background: #fff; color: var(--sub); border-radius: 99px; padding: 8px 16px; cursor: pointer; }
.tabs button.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.aru { list-style: none; padding: 0; margin: 0; }
.aru li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 14px 46px; margin-bottom: 10px; position: relative; }
.aru li::before { content: '✓'; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); color: var(--on-grad); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 12px; background: #fff; }
.pair > div { padding: 14px 16px; font-size: 14.5px; }
.pair > div:first-child { background: #FAFAFD; border-right: 1px solid var(--line); }
.pair b { display: block; font-family: var(--head); font-size: 12px; color: var(--sub); margin-bottom: 4px; }
.pair > div:last-child b { color: var(--deep); }
.pair .today { grid-column: 1 / -1; border-top: 1px dashed var(--line); background: var(--soft) !important; border-right: 0 !important; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } .pair > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); } }
.serifu { display: flex; flex-wrap: wrap; gap: 10px; }
.serifu span { background: #fff; border: 2px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 9px 16px; font-family: var(--head); font-weight: 700; font-size: 15px; }
.tori { counter-reset: t; list-style: none; padding: 0; }
.tori li { counter-increment: t; padding: 10px 0 10px 40px; border-bottom: 1px dashed var(--line); position: relative; }
.tori li::before { content: counter(t); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 10px; background: var(--soft); color: var(--deep); font-family: var(--head); font-weight: 900; display: grid; place-items: center; font-size: 14px; }
.partner { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; }
.partner .chara { width: 100%; height: auto; }
@media (max-width: 480px) { .partner { grid-template-columns: 96px 1fr; } }
.swatch { display: flex; gap: 8px; margin: 6px 0 12px; }
.swatch i { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); }
.growth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.growth div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 14px; }
.growth b { display: block; font-family: var(--head); color: var(--deep); margin-bottom: 4px; }
@media (max-width: 560px) { .growth { grid-template-columns: 1fr; } }

/* AIの回答を選ぶ体験 */
.pick3 { display: grid; gap: 10px; }
.pick3 button { text-align: left; font: inherit; font-size: 14.5px; line-height: 1.75; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; color: var(--ink); }
.pick3 button:hover { border-color: var(--deep); }
.pick3 button.sel { border-color: var(--deep); background: var(--soft); }
.pick3 b { font-family: var(--head); display: block; margin-bottom: 2px; color: var(--deep); }
.pick3 .tagline { display: none; font-size: 12px; color: var(--sub); margin-top: 6px; }
.pick3.done .tagline { display: block; }

/* シェアカード */
.share-area { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sharecard { width: 300px; border-radius: 26px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: var(--on-grad); padding: 20px 18px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 14px 34px rgba(74, 69, 120, .25); }
.sharecard.tall { aspect-ratio: 9 / 16; display: flex; flex-direction: column; justify-content: space-between; }
.sharecard.square { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; }
.sharecard .sc-brand { font-family: var(--head); font-weight: 900; font-size: 13px; letter-spacing: .08em; opacity: .95; }
.sharecard .sc-name { font-family: var(--head); font-weight: 900; font-size: 23px; line-height: 1.3; }
.sharecard .sc-title { font-family: var(--head); font-weight: 700; font-size: 13px; }
.sharecard .chara { width: 78%; height: auto; margin: 0 auto; display: block; }
.sharecard.square .chara { width: 44%; }
.sharecard.square .sc-name { font-size: 19px; }
.sc-meters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sc-meters span { background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 99px; font-size: 12px; font-weight: 700; padding: 2px 12px; font-family: var(--head); }
.sc-url { font-size: 11px; opacity: .95; margin-top: 6px; letter-spacing: .02em; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ロック（有料の見本） */
.locked { position: relative; border-radius: var(--radius); overflow: hidden; }
.locked .blur { filter: blur(5px); pointer-events: none; user-select: none; }
.locked .lock-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(251, 250, 255, .62); text-align: center; padding: 16px; }

/* ズレの表示 */
.gap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.gap .side { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px; text-align: center; }
.gap .side .chara { width: 110px; height: auto; }
.gap .side b { display: block; font-family: var(--head); font-size: 15px; line-height: 1.4; }
.gap .arrow { font-family: var(--head); font-weight: 900; color: var(--deep); font-size: 13px; text-align: center; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 44px; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 8px; }
.bar { height: 14px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.quote { background: #fff; border-left: 5px solid #B58CFF; border-radius: 0 14px 14px 0; padding: 10px 14px; margin-bottom: 8px; font-size: 14.5px; }
.quote small { display: block; color: var(--sub); }

/* プロンプト見本 */
.code { background: #23222F; color: #F3F1FF; border-radius: 16px; padding: 16px 18px; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; position: relative; margin: 0 0 14px; }
.copy { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .16); color: #fff; border: 0; border-radius: 99px; font-size: 12px; padding: 4px 12px; cursor: pointer; }

/* 表 */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--soft); font-family: var(--head); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }

/* 相性表 */
.compat { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.compat th { font-family: var(--head); font-weight: 700; padding: 2px; text-align: center; min-width: 44px; }
.compat th.rowh { text-align: right; white-space: nowrap; padding-right: 6px; position: sticky; left: 0; background: var(--bg); z-index: 1; }
.compat td { width: 44px; height: 40px; text-align: center; border-radius: 10px; font-size: 16px; cursor: pointer; background: #fff; border: 1px solid var(--line); }
.compat td.lv4 { background: #FFE3EE; border-color: #FFC2D8; }
.compat td.lv3 { background: #EEE9FF; border-color: #D9D0FF; }
.compat td.lv2 { background: #EAF3FF; border-color: #D2E4FF; }
.compat td.sel { outline: 3px solid var(--deep); }

/* 説明書（A4縦の紙面） */
.book { max-width: 794px; margin: 0 auto; }
.page { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 44px 48px; margin: 0 auto 22px; position: relative; overflow: hidden; }
.page::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(180deg, var(--g1), var(--g2)); }
.page-no { font-family: var(--head); font-weight: 900; color: var(--deep); font-size: 13px; letter-spacing: .1em; }
.page h2 { font-size: 26px; margin: 2px 0 14px; }
.page .hito { display: inline-block; background: var(--soft); border-radius: 16px 16px 16px 4px; padding: 8px 16px; font-family: var(--head); font-weight: 700; margin-bottom: 14px; }
.page .key { border-top: 2px solid var(--deep); border-bottom: 2px solid var(--deep); padding: 12px 4px; margin: 4px 0 20px; font-family: var(--head); font-weight: 700; font-size: 17px; text-align: center; }
.page h3 { margin-top: 20px; color: var(--deep); font-size: 17px; }
.page.cover { text-align: center; background: linear-gradient(135deg, var(--g1), var(--g2)); color: var(--on-grad); padding: 56px 32px; }
.page.cover::before { display: none; }
.page.cover h2 { font-size: 34px; color: var(--on-grad); }
.page.cover .chara { width: 240px; height: auto; }
.page.cover .page-no, .page.cover h3 { color: var(--on-grad); }
.page.cover .hito { color: var(--ink); background: #fff; }
.page.cover .key { border-color: var(--on-grad); }
.page .pscene { float: right; width: 120px; margin: 0 0 8px 14px; }
.page .pscene .chara { width: 100%; height: auto; }
@media (max-width: 600px) { .page { padding: 28px 22px 28px 28px; } .page .pscene { width: 84px; } }
.toc { columns: 2; font-size: 14px; padding-left: 1.4em; }
@media (max-width: 560px) { .toc { columns: 1; } }

/* 方式の手順 */
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 42px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--head); font-weight: 900; display: grid; place-items: center; font-size: 14px; }

/* フォーム */
label.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 10px; cursor: pointer; }
label.chk input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
input[type=text], input[type=email], textarea, select { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.field { margin-bottom: 14px; }
.field > span { display: block; font-family: var(--head); font-weight: 700; font-size: 14px; margin-bottom: 4px; }

/* FAQ */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { font-family: var(--head); font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 26px; }
details.faq summary::after { content: '＋'; position: absolute; right: 0; top: 0; color: var(--deep); }
details.faq[open] summary::after { content: '－'; }
details.faq p { margin: 10px 0 0; font-size: 14.5px; }

/* CTA帯とフッター */
.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 52px 0; }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--brand-deep); }
.ftr { background: #2B2A3D; color: #D8D6E6; padding: 40px 0 28px; font-size: 14px; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.ftr h4 { color: #fff; font-size: 14px; margin-bottom: 8px; }
.ftr ul { list-style: none; padding: 0; margin: 0; line-height: 2.1; }
.ftr .fine { border-top: 1px solid #45435A; margin-top: 24px; padding-top: 16px; font-size: 12px; color: #A9A6BD; line-height: 1.8; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2B2A3D; color: #fff; padding: 10px 20px; border-radius: 99px; font-size: 14px; z-index: 99; box-shadow: var(--shadow); }
.doc h2 { margin-top: 36px; font-size: 22px; }
.doc h3 { margin-top: 22px; }
