:root {
  --orange: #ffa51f;
  --orange-deep: #f28f00;
  --yellow: #ffe38a;
  --cream: #fff3dc;
  --ink: #1e2231;
  --ink-soft: #3a3f52;
  --space: #0b0f24;
  --white: #ffffff;
  --teal: #a8dcd1;
  --head: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  --logo: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Segoe UI', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .display { font-family: var(--head); font-weight: 900; line-height: 1.25; letter-spacing: 0.01em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--orange);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--logo); font-weight: 700; font-size: 22px; color: var(--white); }
.nav-cta {
  font-family: var(--head); font-weight: 800; font-size: 14px;
  background: var(--ink); color: var(--white);
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; text-decoration: none;
}

/* ---------- hero ---------- */
.hero { background: var(--orange); color: var(--white); position: relative; z-index: 2; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: end;
  padding-top: 56px;
}
.hero-text { padding-bottom: 72px; }
.eyebrow {
  display: inline-block;
  font-family: var(--head); font-weight: 800; font-size: 14px;
  color: var(--ink); background: var(--yellow);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 64px; line-height: 1.15; }
.hero h1 .mark {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  color: var(--white);
  padding: 0 4px;
}
.hero .tag { font-family: var(--head); font-weight: 900; font-size: 30px; margin-top: 10px; }
.hero .lead { color: var(--ink); font-size: 17px; margin-top: 22px; max-width: 460px; }
.cta { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.badge img { height: 56px; width: auto; }
.cta-note { font-size: 13px; color: var(--ink); font-weight: 700; opacity: 0.85; }
.qr { display: none; align-items: center; gap: 10px; margin-left: 8px; }
.qr img { width: 72px; height: 72px; border-radius: 8px; background: var(--white); padding: 4px; }
.qr span { font-size: 12px; color: var(--ink); opacity: 0.7; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .qr { display: flex; } }
.hero-art { align-self: end; }
.hero-art .bon { width: 100%; max-width: 480px; margin: 0 auto; }
video.bon { display: block; height: auto; object-fit: contain; background: transparent; }

/* ---------- numbers ---------- */
.stats { background: var(--ink); color: var(--white); padding: 40px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; }
.stat .num { font-family: var(--logo); font-weight: 700; font-size: 44px; line-height: 1; color: var(--yellow); }
.stat .num small { font-family: var(--head); font-weight: 900; font-size: 20px; margin-left: 2px; color: var(--white); }
.stat .label { font-family: var(--head); font-weight: 800; font-size: 14px; margin-top: 8px; opacity: 0.85; }

/* ---------- screenshots ---------- */
.shots { background: var(--orange); padding: 0; }
.shots-track {
  display: flex; gap: 0; max-width: 1240px; margin: 0 auto;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.shots-track::-webkit-scrollbar { display: none; }
.shots-track img { flex: 0 0 auto; width: 25%; scroll-snap-align: start; }

/* ---------- features ---------- */
.feature { padding: 88px 0; }
.feature.cream { background: var(--cream); }
.feature.white { background: var(--white); }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.flip .art { order: 2; }
.feature .num { font-family: var(--logo); font-weight: 700; font-size: 16px; color: var(--orange-deep); letter-spacing: 0.08em; }
.feature h2 { font-size: 36px; margin-top: 8px; }
.feature p { font-size: 16px; color: var(--ink-soft); margin-top: 18px; max-width: 440px; }
.feature .art { display: flex; justify-content: center; }
.feature .art .bon { width: 100%; max-width: 340px; }
.phone {
  width: 250px; padding: 10px; border-radius: 40px; background: var(--ink);
}
.phone img { border-radius: 30px; }

.more { background: var(--white); padding: 0 0 88px; }
.more h3 { font-size: 18px; text-align: center; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.chip {
  font-family: var(--head); font-weight: 800; font-size: 14px;
  background: var(--cream); color: var(--ink); padding: 9px 16px; border-radius: 999px;
}

/* ---------- audience ---------- */
.who { background: var(--yellow); padding: 88px 0; position: relative; overflow: hidden; }
.who .wrap { position: relative; z-index: 1; }
/* ショップ画面の漂流オブジェクト(無重力で左→右に流れて回る)を背景に流す */
.who-junk { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.jk { position: absolute; left: 0; top: var(--y); width: var(--s); transform: translateX(-160px); animation: junkDrift var(--d) linear infinite; animation-delay: var(--dl); will-change: transform; }
.jk img { display: block; width: 100%; height: auto; -webkit-user-drag: none; animation: junkSpin var(--d) linear infinite, junkBob 3.9s ease-in-out infinite; animation-delay: var(--dl), var(--bd, 0s); }
@keyframes junkDrift { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw + 60px)); } }
@keyframes junkSpin { from { rotate: 0deg; } to { rotate: var(--r); } }
@keyframes junkBob { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 5px; } }
@media (max-width: 600px) { .jk { width: calc(var(--s) * 0.8); } }
@media (min-width: 861px) { .jk { width: calc(var(--s) * 1.35); } }
@media (prefers-reduced-motion: reduce) { .jk, .jk img { animation: none; } .jk { left: var(--x); transform: none; } }
.who h2 { font-size: 36px; text-align: center; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.who-card { background: var(--white); border-radius: 24px; padding: 28px 24px; }
.who-card h3 { font-size: 20px; }
.who-card p { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- pricing ---------- */
.free { background: var(--white); padding: 72px 0; text-align: center; }
.free h2 { font-size: 32px; }
.free p { color: var(--ink-soft); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- final cta ---------- */
.final { background: var(--orange); color: var(--white); overflow: hidden; }
.final .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding-top: 64px; }
.final .text { padding-bottom: 64px; }
.final h2 { font-size: 44px; }
.final .sub { color: var(--ink); font-size: 16px; margin-top: 12px; }
.final .cta { margin-top: 24px; }
.final .bon { width: 260px; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--white); padding: 40px 0; }
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
footer a { font-size: 13px; text-decoration: none; opacity: 0.7; }
footer a:hover { opacity: 1; }
footer .copy { font-size: 12px; opacity: 0.55; }
footer .social { display: flex; gap: 22px; }
footer .social a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
footer .social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-text { padding-bottom: 32px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero h1 { font-size: 46px; }
  .hero .tag { font-size: 24px; }
  .hero-art .bon { max-width: 360px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat .num { font-size: 36px; }
  .shots-track img { width: 76%; }
  .feature { padding: 64px 0; }
  .feature .wrap { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feature.flip .art { order: 0; }
  .feature h2 { font-size: 28px; }
  .feature p { margin-left: auto; margin-right: auto; }
  .feature .art .bon { max-width: 240px; }
  .phone { width: 220px; }
  .who { padding: 64px 0; }
  .who h2 { font-size: 28px; }
  .who-grid { grid-template-columns: 1fr; }
  .final .wrap { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .final .text { padding-bottom: 32px; }
  .final h2 { font-size: 32px; }
  .final .cta { justify-content: center; }
  .final .bon { width: 200px; margin: 0 auto; }
}

/* ---------- document pages (privacy / terms / support) ---------- */
.doc { background: var(--cream); }
.doc-wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px 88px; }
.doc h1 { font-size: 34px; }
.doc .updated, .doc .subtitle { font-size: 14px; color: var(--ink-soft); opacity: 0.75; margin: 8px 0 40px; }
.doc h2 { font-size: 20px; margin: 40px 0 12px; }
.doc p, .doc li { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc-wrap a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.faq-item { background: var(--white); border-radius: 20px; padding: 20px 22px; margin-bottom: 12px; }
.faq-q { font-family: var(--head); font-weight: 800; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.faq-a { font-size: 14px; margin: 0; }
.contact-box { background: var(--yellow); border-radius: 24px; padding: 32px 24px; margin-top: 40px; text-align: center; }
.contact-box p { color: var(--ink); margin-bottom: 16px; }
.contact-box a {
  display: inline-block; background: var(--ink); color: var(--white);
  font-family: var(--head); font-weight: 800; font-size: 15px;
  padding: 12px 28px; border-radius: 999px; text-decoration: none;
}
@media (max-width: 860px) { .doc h1 { font-size: 28px; } }

/* ---------- mini quiz (feature 01) ---------- */
.quiz { background: var(--white); border-radius: 16px; padding: 22px 22px 22px; width: 100%; max-width: 400px; text-align: left; box-shadow: 0 10px 28px rgba(30,34,49,0.10); }
.quiz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.quiz-bon { width: 52px; height: auto; display: block; }
.quiz-title { font-family: var(--head); font-weight: 900; font-size: 20px; }
.quiz-body { opacity: 0; transform: translateY(4px); transition: opacity .22s ease, transform .22s ease; }
.quiz-body.is-in { opacity: 1; transform: none; }
.quiz-label {
  display: inline-block; font-family: var(--head); font-weight: 800; font-size: 12px;
  color: var(--ink); background: var(--yellow); padding: 3px 10px; border-radius: 6px;
}
.quiz-prompt { font-size: 22px; min-height: 92px; display: flex; align-items: center; justify-content: center; padding: 6px 0 10px; overflow-x: auto; }
.quiz-prompt .katex-display { margin: 0; }
.quiz-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-choice {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--yellow);
  border: 0; border-radius: 8px; min-height: 64px; padding: 8px 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: background-color .15s ease, opacity .15s ease, transform .1s ease;
}
.quiz-choice:hover:not(:disabled) { background: #ffd35a; }
.quiz-choice:active:not(:disabled) { transform: scale(0.98); }
.quiz-choice:disabled { cursor: default; }
.quiz-choice.is-right { background: #9fdcb7; }
.quiz-choice.is-wrong { background: #f5b8c3; }
.quiz-choice.is-dim { background: var(--cream); opacity: 0.7; }
.quiz-result { margin-top: 16px; display: grid; grid-template-rows: 22px 48px 26px; row-gap: 12px; }
.quiz .quiz-msg { font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--ink); line-height: 22px; margin: 0; max-width: none; text-align: center; }
.quiz-msg a { color: var(--orange-deep); }
.quiz .quiz-msg.is-hint { color: var(--ink-soft); font-weight: 700; opacity: 0.7; }
.quiz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-actions[hidden] { display: none; }
.quiz-app {
  font-family: var(--head); font-weight: 800; font-size: 14px; text-decoration: none;
  background: var(--ink); color: var(--white); border-radius: 8px; line-height: 1;
  display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 12px;
}
.quiz-next { font: inherit; font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--ink); background: var(--yellow); border: 0; border-radius: 8px; height: 48px; padding: 0 12px; cursor: pointer; line-height: 1; }
@media (max-width: 860px) { .quiz { max-width: 420px; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .quiz-body { transition: none; } }

/* ---------- unit pages (/p, /about) ---------- */
.doc.unit { background: var(--white); }
.unit .doc-wrap { padding-top: 28px; }
.unit-hero { background: var(--orange); color: var(--white); padding: 22px 0 34px; }
.unit-hero .wrap { max-width: 720px; }
.unit-hero .crumbs { font-size: 13px; color: rgba(30,34,49,0.8); margin: 0; }
.unit-hero .crumbs a { color: rgba(30,34,49,0.8); }
.unit-tag { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 12px; color: var(--ink); background: var(--yellow); padding: 3px 10px; border-radius: 6px; margin: 16px 0 10px; }
.unit-hero h1 { font-size: 34px; line-height: 1.25; }
.unit-hero .lead { color: var(--ink); font-size: 17px; margin-top: 10px; }
.atom .formula { background: var(--ink); color: var(--white); border-radius: 12px; padding: 22px 24px; margin: 28px 0 18px; overflow-x: auto; font-size: 22px; }
.atom .formula .katex { color: var(--white); }
.atom .formula .katex-display { margin: 0; }
.atom .formula .katex-display > .katex { transform-origin: center; }
.atom .point { font-size: 16px; color: var(--ink-soft); line-height: 1.9; }
.atom .point + .point { margin-top: 12px; }
.atom .point-eq { margin: 10px 0 12px; padding: 8px 0; font-size: 18px; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.atom .point-eq .katex-display > .katex { padding: 4px 0; }
.atom .point-eq .katex-display { margin: 0; }
.atom .point-eq::-webkit-scrollbar { display: none; }
.atom .graph { margin: 22px auto 8px; max-width: 520px; }
.atom .graph svg { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--white); box-shadow: 0 1px 0 rgba(30,34,49,0.06); }
.atom .graph figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; text-align: center; }
.atom .graph svg { touch-action: none; user-select: none; -webkit-user-select: none; }
.atom .graph .handle { cursor: grab; }
.atom .graph .handle:active { cursor: grabbing; }
.atom .graph-read { margin-top: 10px; font-family: var(--body); color: var(--ink); font-variant-numeric: tabular-nums; min-height: 1.4em; text-align: center; }
.atom .graph-read .pri { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 19px; font-weight: 800; line-height: 1.5; }
.atom .graph-read .sec { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.atom .graph-read b { color: var(--orange-deep); }
.atom .graph-read .blue { color: #1c7ed6; }
.atom .graph-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); opacity: 0.8; }
.atom .graph.is-static .graph-hint { display: none; }
.atom .graph .halo { transform-box: fill-box; transform-origin: center; opacity: 0.35; animation: graphHalo 1.6s ease-out infinite; pointer-events: none; }
@keyframes graphHalo { 0% { transform: scale(1); opacity: 0.38; } 100% { transform: scale(2.4); opacity: 0; } }
.atom .graph .dlabel { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .atom .graph .halo { animation: none; opacity: 0.25; } }
.atom h2 { font-size: 22px; margin: 40px 0 14px; }
.atom .examples { list-style: none; padding: 0; }
.atom .examples li { background: var(--cream); border-radius: 12px; margin-bottom: 10px; }
.atom .ex-ans summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; column-gap: 12px; padding: 16px 16px; }
.atom .ex-ans summary::-webkit-details-marker { display: none; }
.atom .ex-ans .num { font-family: var(--logo); font-weight: 700; font-size: 14px; color: var(--orange-deep); }
.atom .ex-ans .label { font-family: var(--head); font-weight: 800; font-size: 12px; color: var(--ink); background: var(--yellow); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.atom .ex-q { font-size: 20px; overflow-x: auto; overflow-y: hidden; padding: 10px 0; scrollbar-width: none; text-align: center; }
.atom .ex-q::-webkit-scrollbar, .atom .ex-a::-webkit-scrollbar { display: none; }
.atom .ex-q .katex, .atom .ex-a .katex { white-space: nowrap; }
.atom .ex-toggle { font-family: var(--head); font-weight: 800; font-size: 13px; color: var(--ink); background: var(--white); padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.atom .ex-toggle .t-close { display: none; }
.atom .ex-ans[open] .ex-toggle .t-open { display: none; }
.atom .ex-ans[open] .ex-toggle .t-close { display: inline; }
.atom .ex-ans .a { display: flex; align-items: center; gap: 12px; padding: 0 16px 14px; font-size: 20px; }
.atom .ex-ans .atag { font-family: var(--head); font-weight: 800; font-size: 12px; color: var(--white); background: var(--ink); padding: 2px 8px; border-radius: 6px; }
.atom .ex-a { flex: 1; overflow-x: auto; overflow-y: hidden; padding: 10px 0; scrollbar-width: none; text-align: center; }
/* ラベルが長い単元: 全画面幅で 2 段組み(ラベル行 / 式行)。式のない問題は式行を出さない */
.atom .examples.long .ex-ans summary { grid-template-columns: auto 1fr auto; grid-template-areas: "num label toggle" "q q q"; row-gap: 6px; }
.atom .examples.long .ex-ans .num { grid-area: num; }
.atom .examples.long .ex-ans .label { grid-area: label; justify-self: start; white-space: normal; line-height: 1.6; padding: 3px 10px; }
.atom .examples.long .ex-toggle { grid-area: toggle; }
.atom .examples.long .ex-q { grid-area: q; padding: 8px 0 2px; }
.atom .ex-ans.noq summary { grid-template-areas: "num label toggle"; }
.atom .ex-ans.noq .ex-q { display: none; }
.atom .faq dt { font-family: var(--head); font-weight: 800; font-size: 16px; margin-top: 18px; }
.atom .faq dd { margin: 6px 0 0; color: var(--ink-soft); }
.unit-cta { background: var(--orange); border-radius: 12px; padding: 20px 24px; margin-top: 40px; display: flex; align-items: center; gap: 18px; }
.unit-cta img.bon { width: 92px; height: auto; flex: 0 0 auto; }
.unit-cta p { color: var(--white); font-family: var(--head); font-weight: 900; font-size: 18px; margin: 0 0 10px; }
.unit-cta .badge img { height: 48px; width: auto; }
/* 前提 → この単元 → 次 の流れ図。色は「この単元」だけ、他は文字のみで静かに */
.unit-path { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px 18px; align-items: center; margin-top: 44px; }
.up-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; align-self: start; }
.up-items { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.up-k { font-family: var(--logo); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); }
.up-arrow { display: flex; align-self: center; color: rgba(30,34,49,0.35); }
.up-arrow svg { width: 18px; height: 18px; }
.up-muted { font-size: 14px; color: var(--ink-soft); }
.doc-wrap .unit-path .chip-link { display: inline-block; max-width: 100%; padding: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
.doc-wrap .unit-path a.chip-link:hover { color: var(--ca); }
.doc-wrap .unit-path .chip-link.current { padding: 6px 12px; margin: -6px -12px; border-radius: 10px; background: var(--cb); color: var(--ink); }
.doc-wrap .unit-path .chip-muted { box-shadow: none; color: var(--ink-soft); }
.doc-wrap .unit-path .chip-muted small { display: block; margin: 0 0 2px; font-family: var(--logo); font-size: 10px; letter-spacing: 0.08em; white-space: nowrap; color: var(--ink-soft); opacity: 1; }
@media (max-width: 600px) { .unit-path { grid-template-columns: minmax(0, 1fr); gap: 10px; } .up-arrow { justify-self: start; margin-left: 2px; } .up-arrow svg { transform: rotate(90deg); } }
/* 同じ章の単元(番号付きリスト。流れ図とは別物) */
.unit-ch { margin-top: 40px; }
.ch-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
@media (max-width: 600px) { .ch-list { grid-template-columns: 1fr; } }
.ch-list a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.ch-list .no { flex: none; min-width: 30px; font-family: var(--logo); font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.ch-list li.current a { font-weight: 800; }
.ch-list li.current .no { color: var(--ca); }
.ch-list a:hover { color: var(--ca); }
.doc-wrap .chip-link { background: var(--cream); color: var(--ink); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.chip-link.current { background: var(--yellow); }
.atom .updated { font-size: 12px; color: var(--ink-soft); opacity: 0.7; margin-top: 28px; }
.atom-cta { background: var(--orange); border-radius: 12px; padding: 24px; margin-top: 36px; text-align: center; }
.atom-cta p { color: var(--white); font-family: var(--head); font-weight: 900; font-size: 18px; margin-bottom: 14px; }
.atom-cta .badge img { height: 48px; width: auto; margin: 0 auto; }
.atom .related { font-size: 14px; color: var(--ink-soft); margin-top: 28px; }
.atom .related a { color: var(--orange-deep); }
.plist { list-style: none; padding: 0; margin: 14px 0 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 600px) { .plist { grid-template-columns: minmax(0, 1fr); } }
/* 章ごとの色(番号・見出しの丸・カード地)。茶色寄りの amber は使わない */
.ch1 { --ca: #e8850c; --cb: #fff3df; --chv: #ffe6bf; }
.ch2 { --ca: #1c7ed6; --cb: #e9f3ff; --chv: #d3e7ff; }
.ch3 { --ca: #d6336c; --cb: #ffe9f1; --chv: #ffd3e2; }
.ch4 { --ca: #0f8f5f; --cb: #e6f7ee; --chv: #cdefdc; }
.ch5 { --ca: #6f4bd8; --cb: #efeaff; --chv: #e0d8ff; }
.plist li { min-width: 0; background: var(--cb, var(--cream)); border-radius: 14px; }
.plist li[hidden], .pl-ch[hidden], .plist[hidden] { display: none; }
.plist li a { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; min-height: 176px; padding: 16px 18px 14px; color: var(--ink); text-decoration: none; border-radius: 14px; -webkit-tap-highlight-color: rgba(30,34,49,0.08); }
.plist li a:hover { background: var(--chv, var(--yellow)); }
.pl-no { font-family: var(--logo); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; color: var(--ca, var(--orange-deep)); }
.pl-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-family: var(--head); font-weight: 800; font-size: 17px; line-height: 1.35; }
.pl-f { display: flex; align-items: center; min-width: 0; height: 44px; margin-top: 8px; overflow: hidden; white-space: nowrap; font-size: 15px; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.pl-f .katex { display: inline-block; flex: none; width: max-content; max-width: none; font-size: 1.15em; transform-origin: left center; }
.pl-f .katex, .pl-f .katex-html { white-space: nowrap; }
.pl-f.is-fit { -webkit-mask-image: none; mask-image: none; }
.pl-meta { margin-top: auto; padding-top: 10px; font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.01em; }
.pl-ch { display: flex; align-items: baseline; gap: 12px; }
.pl-ch .ch-no { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--ca, var(--orange-deep)); color: var(--white); font-family: var(--logo); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
.pl-ch { align-items: center; }
/* 検索窓(ヒーロー内)と章チップ */
.psearch { position: relative; display: flex; align-items: center; max-width: 560px; margin-top: 22px; background: var(--white); border-radius: 14px; color: var(--ink); }
.psearch svg { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--ink-soft); pointer-events: none; }
.psearch input { flex: 1; min-width: 0; height: 48px; padding: 0 12px 0 44px; border: 0; background: transparent; border-radius: 14px; font-family: var(--body); font-size: 16px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.psearch input::placeholder { color: rgba(30,34,49,0.45); }
.psearch input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; height: 16px; width: 16px; margin-right: 4px; background: rgba(30,34,49,0.25); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18 6 6 18M6 6l12 12' stroke='black' stroke-width='3' stroke-linecap='round'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18 6 6 18M6 6l12 12' stroke='black' stroke-width='3' stroke-linecap='round'/></svg>") center/contain no-repeat; cursor: pointer; }
.psearch:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,0.55); }
.ps-n { flex: none; padding: 0 14px; font-family: var(--logo); font-weight: 700; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.ps-n:empty { display: none; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.pchip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--cb); color: var(--ca); font-family: var(--head); font-weight: 800; font-size: 14px; text-decoration: none; }
.pchip:hover { background: var(--chv); }
.ps-none { margin: 18px 0 40px; padding: 18px 20px; border-radius: 14px; background: var(--cream); color: var(--ink-soft); font-size: 15px; }
.ps-none[hidden] { display: none; }
.pl-ch .ch-n { margin-left: auto; font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 860px) { .atom .formula { font-size: 16px; padding: 14px 16px; } .atom .ex-q, .atom .ex-ans .a { font-size: 18px; } .atom .ex-ans summary { column-gap: 8px; } .quiz-prompt { font-size: 22px; } .unit-hero h1 { font-size: 27px; } .unit-cta { flex-direction: column; text-align: center; } .unit-cta .badge img { margin: 0 auto; } }
@media (max-width: 600px) {
  .atom .ex-ans summary { grid-template-columns: auto 1fr auto; grid-template-areas: "num label toggle" "q q q"; row-gap: 6px; }
  .atom .ex-ans .num { grid-area: num; }
  .atom .ex-ans .label { grid-area: label; justify-self: start; }
  .atom .ex-toggle { grid-area: toggle; }
  .atom .ex-q { grid-area: q; padding: 10px 0 4px; }
}

/* ---------- share button + preview sheet ---------- */
.share { position: relative; display: inline-block; }
.share-main {
  font: inherit; font-family: var(--head); font-weight: 800; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px;
  background: var(--ink); color: var(--white); padding: 9px 14px; line-height: 1;
}

.share-menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 300px; background: var(--white); color: var(--ink); border-radius: 12px; padding: 12px 12px 10px; box-shadow: 0 12px 32px rgba(30,34,49,0.18); text-align: left;
  visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.share.is-open .share-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
.share-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }
.share-close { font: inherit; font-size: 18px; line-height: 1; color: var(--ink-soft); background: transparent; border: 0; padding: 2px 6px; cursor: pointer; border-radius: 6px; }
.share-close:hover { background: var(--cream); }
.share-text { font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--ink); margin: 8px 0 2px; line-height: 1.5; }
.share-url { font-size: 12px; color: var(--ink-soft); margin: 0 0 10px; word-break: break-all; }
.share-item { display: block; width: 100%; text-align: center; font: inherit; font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--ink); background: var(--cream); border: 0; border-radius: 8px; padding: 10px 12px; cursor: pointer; text-decoration: none; }
.share-item:hover { background: var(--yellow); }
.share-item[hidden] { display: none; }
.share-primary { background: var(--ink); color: var(--white); }
.share-primary:hover { background: var(--ink-soft); }
.share-quiz { justify-self: center; }
.share-quiz .share-main { background: transparent; color: var(--ink-soft); padding: 4px 8px; font-size: 12px; }
.share-quiz .share-main:hover { background: var(--cream); color: var(--ink); }
.share-quiz .share-menu { left: 50%; transform: translate(-50%, 6px); top: auto; bottom: calc(100% + 8px); }
.share-quiz.is-open .share-menu { transform: translate(-50%, 0); }
.share-quiz[hidden] { display: none; }
@media (max-width: 600px) {
  .share-menu, .share-quiz .share-menu { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 18px 18px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 40px rgba(30,34,49,0.25);
    transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease, visibility 0s linear .28s; }
  .share.is-open .share-menu, .share.is-open.share-quiz .share-menu { transform: none; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease, visibility 0s; }
  .share::before { content: ''; position: fixed; inset: 0; background: rgba(30,34,49,0.35); z-index: 29; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
  .share.is-open::before { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
}
@media (prefers-reduced-motion: reduce) { .share-menu, .share.is-open .share-menu, .share::before { transition: none; } }
.nav-right { display: flex; align-items: center; gap: 8px; }
.share-nav .share-main { padding: 0; width: 36px; height: 36px; justify-content: center; border-radius: 8px; background: rgba(30,34,49,0.12); color: var(--ink); }
.share-nav .share-main:hover { background: rgba(30,34,49,0.2); }
.share-nav .share-menu { left: auto; right: 0; top: calc(100% + 10px); }
@media (max-width: 600px) { .share-nav .share-menu { left: 12px; right: 12px; top: auto; } }
.share-img { display: block; width: auto; max-width: 100%; max-height: 170px; border-radius: 10px; margin: 8px auto 6px; }
.share-img[hidden] { display: none; }
.share-apps { display: flex; justify-content: center; gap: 2px; margin-top: 10px; flex-wrap: wrap; }
.share-app { min-width: 54px; }
.share-app { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; font-size: 11px; font-weight: 700; color: var(--ink-soft); background: transparent; border: 0; padding: 6px 0; cursor: pointer; text-decoration: none; border-radius: 8px; line-height: 1.2; text-align: center; }
.share-app:hover { background: var(--cream); }
.share-app img, .share-app .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.share-app .ic { background: var(--cream); color: var(--ink); }
.share-app .ic svg { width: 22px; height: 22px; }
.share-app .ic-x { background: #000; color: #fff; }
.share-app[hidden] { display: none; }
.share-hint { font-size: 12px; color: var(--ink-soft); margin: 8px 0 0; }
.share-hint[hidden] { display: none; }
.nav-link { font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; background: rgba(30,34,49,0.12); }
.nav-link:hover { background: rgba(30,34,49,0.2); }
.plist-sec { background: var(--cream); padding: 80px 0; }
.plist-sec .num { font-family: var(--logo); font-weight: 700; font-size: 16px; color: var(--orange-deep); letter-spacing: 0.08em; }
.plist-sec h2 { font-size: 32px; margin-top: 8px; }
.plist-sec .sub { font-size: 16px; color: var(--ink-soft); margin-top: 12px; max-width: 620px; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0 22px; }
.pcard { display: flex; flex-direction: column; justify-content: center; min-height: 104px; background: var(--white); border-radius: 12px; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.pcard:hover { background: var(--yellow); }
.pcard h3 { font-size: 18px; }
.pcard p { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn-ink { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--white); background: var(--ink); text-decoration: none; padding: 12px 20px; border-radius: 8px; }
@media (max-width: 860px) { .plist-sec { padding: 56px 0; } .plist-sec h2 { font-size: 26px; } .pgrid { grid-template-columns: 1fr; } .nav-link { padding: 0 10px; font-size: 13px; } .nav-cta { padding: 0 12px; font-size: 13px; } }
.quiz { position: relative; overflow: visible; }
.quiz-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
@keyframes qpop { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 70% { transform: scale(0.97); } 100% { transform: scale(1); } }
@keyframes qshake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes bonjump { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px) rotate(-4deg); } 60% { transform: translateY(0); } 80% { transform: translateY(-4px); } }
.quiz-choice.pop { animation: qpop .45s cubic-bezier(.2,.8,.2,1); }
.quiz-choice.shake { animation: qshake .4s ease; }
.quiz-bon.jump { animation: bonjump .6s ease; }
.share-apps.is-busy { opacity: 0.45; pointer-events: none; }
.nav-ic { width: 18px; height: 18px; display: none; }
.nav-link, .nav-cta { gap: 6px; }
@media (max-width: 600px) {
  .nav-ic { display: block; }
  .nav-link span, .nav-cta span { display: none; }
  .nav-link, .nav-cta { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .nav-right { gap: 8px; }
}
.nav-right { position: relative; }
.nav-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 31; width: 240px; background: var(--white); color: var(--ink); border-radius: 12px; padding: 14px; box-shadow: 0 12px 32px rgba(30,34,49,0.18); text-align: left; }
.nav-pop p { font-family: var(--head); font-weight: 800; font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.nav-pop-go { display: block; text-align: center; font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--white); background: var(--ink); text-decoration: none; padding: 11px 12px; border-radius: 8px; }
.nav-pop-x { display: block; width: 100%; margin-top: 6px; font: inherit; font-family: var(--head); font-weight: 800; font-size: 13px; color: var(--ink-soft); background: transparent; border: 0; padding: 8px; cursor: pointer; border-radius: 8px; }
.nav-pop-x:hover { background: var(--cream); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.nav a:focus-visible, .share-main:focus-visible { outline-color: var(--white); }
/* オレンジ地の白い見出し: 可読性のためのごく薄い影 */
.hero h1, .hero .tag, .unit-hero h1, .final h2, .unit-cta p { text-shadow: 0 1px 2px rgba(30,34,49,0.22); }
.doc-wrap .chip-muted { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--cream); cursor: default; }
.chip-muted small { font-size: 10px; margin-left: 6px; opacity: 0.8; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.who-card.reveal:nth-child(2) { transition-delay: .08s; } .who-card.reveal:nth-child(3) { transition-delay: .16s; }
/* ランクアップの区画: 宇宙背景＋岩 */
.feature.space { background: var(--space); color: var(--white); }
.feature.space h2 { color: var(--white); }
.feature.space p { color: rgba(255,255,255,0.78); }
.feature.space .num { color: var(--yellow); }
.feature.space .art { position: relative; min-height: 440px; }
.feature.space .phone { position: relative; z-index: 2; background: #2a2f44; }
.rock { position: absolute; z-index: 1; height: auto; pointer-events: none; animation: rockFloat var(--fd) ease-in-out infinite; animation-delay: var(--fdl); will-change: transform; }
/* 手前(大)ほど大きくゆっくり、奥(小)ほど小さく速く上下する。回転はしない(背景スプライトの規則) */
.rock.r1 { --fd: 7.5s; --fdl: -1.2s; --fa: -16px; }
.rock.r2 { --fd: 6.2s; --fdl: -3.4s; --fa: -11px; }
.rock.r3 { --fd: 5.4s; --fdl: -0.6s; --fa: -8px; }
.rock.r4 { --fd: 6.8s; --fdl: -4.1s; --fa: -13px; }
@keyframes rockFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--fa)); } }
@media (prefers-reduced-motion: reduce) { .rock { animation: none; } }
.rock.r1 { width: 120px; left: 2%; top: 6%; opacity: 0.95; }
.rock.r2 { width: 76px; right: 6%; top: 14%; opacity: 0.8; }
.rock.r3 { width: 56px; left: 10%; bottom: 8%; opacity: 0.7; }
.rock.r4 { width: 96px; right: 0; bottom: 4%; opacity: 0.9; }
@media (max-width: 860px) { .feature.space .art { min-height: 0; } .rock.r1 { width: 90px; left: 0; top: 0; } .rock.r2 { width: 58px; right: 0; top: 10%; } .rock.r3 { width: 44px; left: 4%; bottom: 6%; } .rock.r4 { width: 72px; right: 2%; bottom: 0; } }
/* ---------- フレンドのプロフィールカード(アプリの ProfileCard/RankMedal の定義値に合わせる) ---------- */
.fcard-wrap { width: 100%; max-width: 360px; perspective: 1000px; user-select: none; -webkit-user-select: none; }
.fcard { position: relative; width: 100%; aspect-ratio: 1.4 / 1; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); cursor: pointer; outline: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
.fcard.is-flipped { transform: rotateY(180deg); }
.fcard, .fcard * { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", Arial, sans-serif; }
.fcard img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.fcard-face { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 6px 12px rgba(0,0,0,0.35); border: 2px solid rgba(255,255,255,0.7); }
.fcard-front { color: var(--white); background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20360%20230%27%3E%3Ccircle%20cx%3D%22122%22%20cy%3D%2279%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22247%22%20cy%3D%2241%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%22104%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22115%22%20cy%3D%22135%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%22213%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22111%22%20cy%3D%228%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22101%22%20cy%3D%2244%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22323%22%20cy%3D%22224%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22312%22%20cy%3D%2288%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%2293%22%20cy%3D%2265%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2247%22%20cy%3D%22211%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22151%22%20cy%3D%22148%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22213%22%20cy%3D%22110%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22233%22%20cy%3D%2243%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22134%22%20cy%3D%22210%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%2225%22%20cy%3D%22120%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22177%22%20cy%3D%2239%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22213%22%20cy%3D%2253%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2296%22%20cy%3D%2293%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22326%22%20cy%3D%22144%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2253%22%20cy%3D%22216%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22144%22%20cy%3D%22197%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22171%22%20cy%3D%2247%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2212%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22148%22%20cy%3D%22190%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22167%22%20cy%3D%2275%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22335%22%20cy%3D%22107%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22318%22%20cy%3D%2251%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2271%22%20cy%3D%2266%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22171%22%20cy%3D%22148%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%22118%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22187%22%20cy%3D%2276%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22108%22%20cy%3D%22110%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2217%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22306%22%20cy%3D%22175%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22281%22%20cy%3D%22127%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2233%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22335%22%20cy%3D%2253%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22125%22%20cy%3D%22114%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2258%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22129%22%20cy%3D%22167%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22257%22%20cy%3D%2250%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22132%22%20cy%3D%2266%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22120%22%20cy%3D%22108%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22168%22%20cy%3D%2215%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22293%22%20cy%3D%22105%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3C/svg%3E"), linear-gradient(to bottom right, #223065 0%, #141a3c 100%); background-size: 100% 100%, 100% 100%; }
.fcard-top { position: absolute; left: 18px; right: 18px; top: 18px; height: 32px; display: flex; align-items: center; gap: 6px; }
/* 六角メダル: 厚み(edge, 下にずらす)→面→ハイライト→境目リング→紺の中央→紋章 */
.fcard-medal { position: relative; width: 32px; height: 32px; display: block; flex: none; }
.fcard-medal img { position: absolute; left: -12px; top: -12px; width: 56px; height: 56px; max-width: none; }
.fcard-rank { font-weight: 800; font-size: 13px; }
.fcard-streak { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 18px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fcard-streak .flame { width: auto; height: 19px; }
.fcard-planet { position: absolute; left: 50%; top: 50%; width: 28%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 5px 12px rgba(0,0,0,0.45)); }
.fcard-bottom { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.fcard-lv { font-weight: 800; font-size: 20px; line-height: 1.2; color: #fbbf24; }
.fcard-name { font-weight: 800; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%); background-size: 200% 100%; opacity: 0; transition: opacity .2s; }
.fcard.is-tilting .fcard-sheen { opacity: 1; }
.fcard-hint { font-size: 12px; color: var(--ink-soft); margin-top: 12px; text-align: center; }
/* 裏面 */
.fcard-back { transform: rotateY(180deg); background: linear-gradient(180deg, #f7f8fc 0%, #e9edf6 100%); color: #1b2440; display: flex; flex-direction: column; }
.fb-top { flex: 0 0 56%; background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20360%20230%27%3E%3Ccircle%20cx%3D%22122%22%20cy%3D%2279%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22247%22%20cy%3D%2241%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%22104%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22115%22%20cy%3D%22135%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%22213%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22111%22%20cy%3D%228%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22101%22%20cy%3D%2244%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22323%22%20cy%3D%22224%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22312%22%20cy%3D%2288%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%2293%22%20cy%3D%2265%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2247%22%20cy%3D%22211%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22151%22%20cy%3D%22148%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22213%22%20cy%3D%22110%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22233%22%20cy%3D%2243%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22134%22%20cy%3D%22210%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%2225%22%20cy%3D%22120%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22177%22%20cy%3D%2239%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22213%22%20cy%3D%2253%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2296%22%20cy%3D%2293%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22326%22%20cy%3D%22144%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2253%22%20cy%3D%22216%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22144%22%20cy%3D%22197%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22171%22%20cy%3D%2247%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2212%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22148%22%20cy%3D%22190%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22167%22%20cy%3D%2275%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22335%22%20cy%3D%22107%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22318%22%20cy%3D%2251%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2271%22%20cy%3D%2266%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22171%22%20cy%3D%22148%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%22118%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%22187%22%20cy%3D%2276%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22108%22%20cy%3D%22110%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2217%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22306%22%20cy%3D%22175%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22281%22%20cy%3D%22127%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.7%22/%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2233%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22335%22%20cy%3D%2253%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22125%22%20cy%3D%22114%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2258%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3Ccircle%20cx%3D%22129%22%20cy%3D%22167%22%20r%3D%221.4%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22257%22%20cy%3D%2250%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22132%22%20cy%3D%2266%22%20r%3D%220.9%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22120%22%20cy%3D%22108%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.5%22/%3E%3Ccircle%20cx%3D%22168%22%20cy%3D%2215%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%220.35%22/%3E%3Ccircle%20cx%3D%22293%22%20cy%3D%22105%22%20r%3D%220.7%22%20fill%3D%22%23fff%22%20opacity%3D%220.9%22/%3E%3C/svg%3E"), linear-gradient(to bottom right, #223065 0%, #141a3c 100%); background-size: 100% 100%, 100% 100%; color: var(--white); display: flex; align-items: center; justify-content: center; gap: 24px; }
.fb-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 8px; }
.fb-v { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 900; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.fb-v .flame { width: auto; height: 22px; align-self: center; }
.fb-v small { font-size: 13px; font-weight: 900; }
.fb-l { font-size: 10px; font-weight: 600; opacity: 0.85; margin-top: 4px; }
.fb-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }
.fb-days { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.fd { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fd-w { font-size: 10px; font-weight: 700; color: rgba(27,36,64,0.4); }
.fd-c { width: 30px; height: 30px; border-radius: 50%; background: rgba(27,36,64,0.07); color: rgba(27,36,64,0.45); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.fd-c .flame { width: auto; height: 14px; }
.fd.done .fd-c { background: linear-gradient(180deg, #fb923c, #f97316); color: var(--white); }
.fd.today .fd-c { box-shadow: inset 0 0 0 2px #f5a623; color: rgba(27,36,64,0.7); }
@media (max-width: 860px) { .fcard-wrap { margin: 0 auto; } }

/* 太陽系の惑星(アプリの素材)。使うのは LP 無料セクションの白地の帯だけ。上下にゆっくり浮く(回転なし) */
@keyframes plFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--fa, -8px)); } }
.pl-float { animation: plFloat var(--fd, 6s) ease-in-out infinite; animation-delay: var(--fdl, 0s); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .pl-float { animation: none; } }
.free .orbit { display: flex; justify-content: center; align-items: center; gap: 22px; margin-bottom: 30px; }
.free .orbit img { width: var(--s, 60px); height: auto; filter: drop-shadow(0 4px 6px rgba(30,34,49,0.1)); }
@media (max-width: 600px) { .free .orbit { gap: 7px; } .free .orbit img { width: calc(var(--s, 60px) * 0.56); } }

/* FAQ: アプリの会話風カード(ボンが質問 → タップで答えの吹き出し) */
.atom .faqg { display: grid; gap: 12px; margin-top: 14px; }
.atom .faq-card { background: var(--cream); border-radius: 18px; }
.atom .faq-card summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; column-gap: 12px; padding: 14px 16px; }
.atom .faq-card summary::-webkit-details-marker { display: none; }
.atom .faq-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #000; }
.atom .faq-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.atom .faq-q { font-family: var(--head); font-weight: 800; font-size: 16px; line-height: 1.5; color: var(--ink); }
.atom .faq-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 8px; background: var(--ink); color: var(--white); font-family: var(--logo); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; vertical-align: 2px; }
.atom .faq-btn { font-family: var(--head); font-weight: 800; font-size: 13px; color: var(--ink); background: var(--yellow); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.atom .faq-btn .c { display: none; }
.atom .faq-card[open] .faq-btn .o { display: none; }
.atom .faq-card[open] .faq-btn .c { display: inline; }
.atom .faq-card[open] .faq-btn { background: var(--white); }
.atom .faq-a { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 0 16px 16px; animation: faqPop .28s cubic-bezier(.2,.8,.2,1); }
.atom .faq-atag { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: var(--logo); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.atom .faq-ab { position: relative; background: var(--white); border-radius: 16px 16px 16px 4px; padding: 12px 16px; font-size: 15px; line-height: 1.8; color: var(--ink); }
.atom .faq-ab::before { content: ''; position: absolute; left: -8px; top: 14px; border: 6px solid transparent; border-right-color: var(--white); }
@keyframes faqPop { from { transform: translateY(6px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) { .atom .faq-card summary { grid-template-columns: 36px 1fr; row-gap: 8px; } .atom .faq-avatar { width: 36px; height: 36px; } .atom .faq-btn { grid-column: 2; justify-self: start; } .atom .faq-a { grid-template-columns: 36px 1fr; } .atom .faq-atag { width: 36px; height: 36px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .atom .faq-a { animation: none; } }
