/* Astryx（Meta の OSS デザインシステム）theme-neutral のトークンで組み直した画面。
   出典：@astryxdesign/theme-neutral 0.7.14（dist/theme.css）の実測値。
   地 #f1f1f1／面 #ffffff／罫 rgba(0,0,0,.08)／文字 #1b1b1b・#474747・#919191／
   情報色 #0067ce／角丸 部品10px・容器12px・内側6px／書体 Figtree＋システム系。
   unslop の直し順（間隔→色→アイコン→文面→書体→配置→細部）を通した版。 */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #eae4da;
  --surface-muted: #f4f0e8;
  --ink: #292524;
  --ink-2: #57534e;
  --ink-3: #a39e96;
  --line: rgba(87, 83, 78, .14);
  --line-strong: #ddd5c8;
  --info: #0067ce;
  --info-deep: #003978;
  --ok: #2f7d33;
  --ok-deep: #00490b;
  --ok-muted: #bce0bb;
  --warn: #836700;
  --warn-muted: #fae19e;
  --err: #c0262c;
  --err-muted: #ffc4be;
  --grad: linear-gradient(45deg, #0082fb 0%, #833ab4 45%, #e1306c 75%, #f77737 100%);
  --radius-el: 12px;
  --radius-box: 16px;
  --radius-in: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- App bar（Astryx AppShell 風） ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.appbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 16px; border-radius: 8px;
}
.brand-name { font-size: 15px; font-weight: 600; white-space: nowrap; }
.appnav { display: flex; gap: 4px; }
.appnav a {
  color: var(--ink-2); font-size: 14px; padding: 6px 10px; border-radius: var(--radius-in);
  white-space: nowrap;
}
.appnav a:hover { background: var(--surface-muted); text-decoration: none; }
.appnav a.current { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  padding: 16px 24px 4px; margin: 0 -24px;
  background:
    radial-gradient(600px 300px at 12% -20px, rgba(0, 130, 251, .15), rgba(0, 130, 251, 0) 60%),
    radial-gradient(520px 280px at 52% -30px, rgba(131, 58, 180, .13), rgba(131, 58, 180, 0) 60%),
    radial-gradient(520px 280px at 84% -10px, rgba(225, 48, 108, .11), rgba(225, 48, 108, 0) 60%),
    radial-gradient(440px 240px at 102% 40px, rgba(247, 119, 55, .11), rgba(247, 119, 55, 0) 60%);
}
.hero-main { display: block; }
.hero-tag {
  font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 0 0 12px;
}
.hero h1 {
  font-weight: 600; font-size: 34px; line-height: 1.35; margin: 0 0 12px; color: var(--ink);
  letter-spacing: 0;
}
.hero h1 .accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ph { white-space: nowrap; }
h1, h2 { text-wrap: balance; }
.hero p.lede { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 680px; margin: 0 0 20px; }
.hero-note { font-size: 12px; color: var(--ink-2); margin: 0 0 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-stats-line { color: var(--ink-2); font-size: 15px; margin: 0; }
.hero-stats-line strong { color: var(--ink); font-weight: 600; font-size: 15px; }
.hero h1.hero-stats-line { font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid transparent;
  padding: 0 20px; height: 44px; font-weight: 600; font-size: 15px; text-decoration: none;
  white-space: nowrap; transition: background .12s ease;
}
a.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-muted); }
button.primary {
  background: var(--grad); color: #fff; border: 1px solid transparent;
  border-radius: 999px; padding: 0 24px; height: 48px;
  font-weight: 600; font-size: 15px;
}
button.primary:hover:not(:disabled) { opacity: .92; }
button.primary:disabled { opacity: .55; cursor: default; }

/* ---------- Sections ---------- */
section { padding: 32px 0 4px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sticky-head {
  position: sticky; top: 56px; z-index: 5;
  background: rgba(241, 241, 241, .95); backdrop-filter: blur(6px);
  padding: 12px 0 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
}
h2 { font-weight: 600; font-size: 22px; margin: 0; line-height: 1.333; color: var(--ink); }
.section-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.note { color: var(--ink-2); font-size: 13px; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box);
  margin-top: 24px; overflow: hidden;
}
.stat { padding: 16px 20px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-weight: 600; font-size: 26px; line-height: 1.333; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 12px; font-weight: 500; margin-left: 4px; color: var(--ink-2); }
.stat .label { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 22px; }
.step .no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 12px; margin-bottom: 12px;
}
.step h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.step p { margin: 0; font-size: 15px; color: var(--ink-2); }
.step p strong { color: var(--ink); }
.alert-note {
  margin-top: 16px; background: var(--warn-muted); border-radius: var(--radius-el);
  padding: 14px 18px; color: #622700; font-size: 15px;
}
.guide-note { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.guide-note a { font-weight: 600; }

/* ---------- Value band ---------- */
.value-band {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-box); padding: 16px 20px;
}
.value-band p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.value-band strong { color: var(--ink); }

/* ---------- Toolbar / listing cards ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; }
.toolbar label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.toolbar select {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--radius-el); padding: 0 10px; height: 40px; font-size: 14px;
}
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badges { display: inline-flex; gap: 4px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500;
  border-radius: 9999px; padding: 2px 10px; background: var(--ok-muted); color: var(--ok-deep);
}
.badge.new { background: var(--surface-2); color: var(--ink-2); }
.card-date { font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card .code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600; font-size: 28px; letter-spacing: .12em; line-height: 1.2; color: var(--ink);
}
.slots { font-size: 14px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.slots strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slots .unit { color: var(--ink-2); font-size: 12px; }
.slots .few {
  font-size: 12px; font-weight: 500; color: var(--warn);
  background: var(--warn-muted); border-radius: 9999px; padding: 1px 8px;
}
.gauge { height: 4px; border-radius: 9999px; background: var(--surface-2); overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 9999px; background: var(--ink); }
.card .meta { color: var(--ink-2); font-size: 13px; display: flex; gap: 4px 16px; flex-wrap: wrap; }
.card .comment { font-size: 15px; color: var(--ink-2); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; align-items: center; }
.chip-btn {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 0 16px; height: 40px; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip-btn:hover:not(:disabled) { background: var(--surface-muted); }
.chip-btn.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn.solid:hover:not(:disabled) { background: #333333; }
.chip-btn.share { background: var(--ink); border-color: var(--ink); color: #fff; text-decoration: none; }
.chip-btn.share:hover:not(:disabled) { background: #333333; color: #fff; }
.chip-btn.share-line { background: #06c755; border-color: #06c755; color: #fff; text-decoration: none; }
.chip-btn.share-line:hover:not(:disabled) { background: #05a847; border-color: #05a847; color: #fff; }
.chip-btn.danger { color: var(--ink-2); }
.chip-btn.danger:hover:not(:disabled) { border-color: var(--err); color: var(--err); }
.chip-btn:disabled { opacity: .55; cursor: default; }
.status { color: var(--ink-2); font-size: 12px; }
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-box);
  padding: 32px 20px; text-align: center; color: var(--ink-2); font-size: 14px; background: var(--surface);
}
.empty p { margin: 0; }
.loading { grid-column: 1 / -1; text-align: center; color: var(--ink-2); font-size: 14px; padding: 32px 20px; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 16px; font-variant-numeric: tabular-nums; }
.pager button {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-el); padding: 0 16px; height: 40px; font-weight: 600;
}
.pager button:hover:not(:disabled) { background: var(--surface-muted); }
.pager button:disabled { opacity: .55; cursor: default; }

/* ---------- Intro page ---------- */
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.ip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 20px; }
.ip-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.ip-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.ip-facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 20px 24px; margin-top: 16px; }
.ip-facts h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.ip-facts ul { margin: 0; padding-left: 1.3em; }
.ip-facts li { margin: 6px 0; }
.ip-assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.ip-asset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 16px; text-align: center; }
.ip-asset img { max-width: 100%; height: auto; border-radius: var(--radius-in); }
.ip-asset p { font-size: 12px; color: var(--ink-2); margin: 8px 0 0; }
.ip-quotes { background: var(--surface-muted); border-radius: var(--radius-box); padding: 20px 24px; margin-top: 16px; }
.ip-quotes h3 { margin: 0 0 8px; }
.ip-quotes ul { margin: 0; padding-left: 1.3em; }
.ip-quotes li { margin: 6px 0; font-size: 14px; }
.share-card-box { margin-top: 12px; }
.share-card-box img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-in); }
.share-card-box .kit-note { margin-top: 8px; }

/* ---------- Claim（受け取り） ---------- */
#claim-section { padding: 24px 0 0; }
.claim-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box);
  padding: 24px;
}
.claim-card h2 { margin: 0 0 12px; font-size: 21px; }
.claim-card > p { margin: 0 0 12px; }
.claim-result { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.claim-label { font-size: 12px; font-weight: 500; color: var(--ink-2); margin: 0 0 4px; }
.claim-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 42px; font-weight: 600; letter-spacing: .14em; line-height: 1.2; color: var(--ink);
}
.scratch-box {
  position: relative; border-radius: var(--radius-el); overflow: hidden; padding: 20px 8px; text-align: center;
  background: var(--surface-muted); border: 1px solid var(--line);
}
#scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: pointer; transition: opacity .35s ease; }
#scratch-canvas.done { opacity: 0; pointer-events: none; }
.scratch-tools { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.scratch-note { font-size: 12px; color: var(--ink-2); }
.claim-meta { font-size: 12px; color: var(--ink-2); margin: 8px 0 12px; }
.claim-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.claim-note { font-size: 12px; color: var(--ink-2); margin: 12px 0 0; }
.claim-foil {
  display: none; width: 100%; min-height: 116px; border: 1px solid var(--line-strong); border-radius: var(--radius-el);
  cursor: default; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: .04em;
  background: var(--surface-muted);
}
.claim-qr { margin-top: 16px; text-align: center; }
.claim-qr svg { width: 172px; height: 172px; }
.claim-qr-note { font-size: 12px; color: var(--ink-2); margin: 8px 0 0; }
.claim-recovery {
  background: var(--surface-muted); border: 1px solid var(--line); border-radius: var(--radius-el);
  padding: 16px; margin: 0 0 16px; text-align: left;
}
.claim-card .claim-recovery p { margin: 0 0 8px; line-height: 1.6; }
.recovery-label { font-size: 12px; font-weight: 600; color: var(--ink); }
.recovery-meta { font-weight: 400; color: var(--ink-2); }
.recovery-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.claim-recovery .mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 17px; letter-spacing: .12em; word-break: break-all;
}
.flow-steps { display: flex; justify-content: flex-start; gap: 24px; list-style: none; margin: 0 0 16px; padding: 0; }
.flow-steps li { display: flex; align-items: center; gap: 8px; }
.flow-steps .dot {
  position: relative; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong); box-sizing: border-box; flex: none;
}
.flow-steps li.current .dot { border-color: var(--ink); }
.flow-steps li.done .dot { background: var(--ink); border-color: var(--ink); }
.flow-steps li.done .dot::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 8px; font-weight: 600; line-height: 1;
}
.flow-steps .flabel { font-size: 12px; color: var(--ink-3); }
.flow-steps li.current .flabel { color: var(--ink); font-weight: 600; }
.flow-steps li.done .flabel { color: var(--ink-2); }
.start-ask { margin: 0 0 16px; }
.start-ask-q { font-weight: 600; font-size: 16px; margin: 0 0 8px; }
.start-ask-btns { display: flex; gap: 8px; margin-bottom: 8px; }
.start-ask-note { font-size: 12px; color: var(--ink-2); margin: 0 0 4px; }
.deadline-line {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--warn);
  background: var(--warn-muted); border-radius: var(--radius-in); padding: 4px 10px; margin: 8px 0 0;
}
.text-btn { background: none; border: 0; padding: 6px 8px; font-size: 12px; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.text-btn:hover { color: var(--ink); }
.use-steps { margin-top: 16px; }
.ifthen { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.use-icons { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.use-icons .ustep {
  background: var(--surface-muted); border: 1px solid var(--line); border-radius: var(--radius-in);
  padding: 4px 10px; font-size: 12px; font-weight: 500; color: var(--ink);
}
.use-icons .arrow { font-size: 12px; color: var(--ink-3); }
.remain-line { font-size: 12px; font-weight: 600; color: var(--ink-2); }
#claim-done { margin-top: 12px; }
.claim-complete {
  position: relative; margin-top: 16px; padding: 16px; border-radius: var(--radius-box);
  background: var(--surface-muted); border: 1px solid var(--line); text-align: left;
}
.claim-card .claim-complete p { margin: 0 0 8px; line-height: 1.6; }
.complete-title { font-weight: 600; font-size: 15px; color: var(--ok); }
.complete-share-label { font-size: 12px; color: var(--ink-2); }
.complete-close {
  position: absolute; top: 4px; right: 6px; width: 40px; height: 40px; border: 0; background: none;
  font-size: 20px; line-height: 1; color: var(--ink-2); cursor: pointer;
}
.complete-close:hover { color: var(--ink); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.complete-post { font-size: 12px; color: var(--ink-2); }
.recovery-done { font-size: 14px; font-weight: 600; color: var(--ok); margin: 0 0 8px; }
.claim-card #claim-btn { width: 100%; height: 52px; font-size: 16px; }

/* ---------- Form ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field label .opt { color: var(--ink-2); font-weight: 400; margin-left: 4px; font-size: 12px; }
.field input, .field textarea {
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-el);
  padding: 10px 12px; font-size: 16px; color: var(--ink); width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--info); outline-offset: 0; border-color: transparent; }
.field input.code-input {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .18em; font-weight: 600; text-transform: uppercase;
}
.field .hint { font-size: 13px; color: var(--ink-2); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.form-note { font-size: 13px; color: var(--ink-2); max-width: 560px; margin: 0; }
.preview { background: var(--surface-muted); padding: 8px 12px; border-radius: var(--radius-in); font-weight: 500; margin: 0; }
.error { color: var(--err); margin-top: 12px; font-weight: 600; }
.ok { color: var(--ok); margin-top: 12px; font-weight: 600; }
.share-box { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-box); background: var(--surface-muted); }
.share-box p { margin: 0 0 12px; }
.share-box .kit-note { font-size: 12px; color: var(--ink-2); margin: 12px 0; }
.kit-note { font-size: 12px; color: var(--ink-2); }

/* ---------- Join / links row ---------- */
.hero-post-line { font-size: 12px; color: var(--ink-2); margin: 16px 0 0; }
.join-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.join-note { font-size: 12px; color: var(--ink-2); }
.join-link {
  flex: 1 1 100%; text-align: center; text-decoration: none;
  background: var(--ok-muted); color: var(--ok-deep); font-weight: 600; font-size: 14px;
  border-radius: var(--radius-el); padding: 10px 14px;
}
.claim-next, .recovery-next { font-size: 12px; color: var(--ink-2); margin: 12px 0 0; }
.post-cta-line { font-size: 12px; color: var(--ink-2); margin: 16px 0 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 8px 24px 16px; }
.faq h3 { margin: 16px 0 4px; font-size: 14px; font-weight: 600; }
.faq p { margin: 0 0 8px; color: var(--ink-2); }

/* ---------- Footer ---------- */
footer {
  color: var(--ink-2); font-size: 13px; padding: 32px 0 40px; margin-top: 40px;
  border-top: 1px solid var(--line);
}
footer p { margin: 0 0 6px; }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Mobile (<=640px) ---------- */
@media (max-width: 640px) {
  body { padding-bottom: 76px; font-size: 14px; }
  .wrap { padding: 0 16px; }
  .appbar-in { height: 52px; }
  .brand-name { font-size: 14px; }
  .appnav a { padding: 6px 6px; font-size: 12px; }
  .appnav a:nth-child(1) { display: none; }
  @media (max-width: 480px) { .appnav a:nth-child(3) { display: none; } }
  .hero { padding: 20px 16px 4px; margin: 0 -16px; }
  .hero h1 { font-size: 27px; line-height: 1.4; }
  .hero p.lede { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 24px 0 4px; }
  h2 { font-size: 20px; }
  .sticky-head { top: 52px; }
  .sticky-head .section-head p, .sticky-head p { display: none; }
  .sticky-head h2 { font-size: 17px; }
  .claim-card { padding: 16px; }
  .claim-code { font-size: 34px; }
  .claim-qr svg { width: 132px; height: 132px; }
  .flow-steps { gap: 16px; }
  .card .code { font-size: 24px; }
  .actions .chip-btn.solid { flex: 1 1 100%; justify-content: center; }
  .claim-actions { flex-direction: column; align-items: stretch; }
  .claim-actions .btn, .claim-actions .chip-btn { width: 100%; justify-content: center; }
  #claim-qr-toggle { width: 100%; margin-top: 12px; justify-content: center; }
  .form-card { padding: 16px; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot button.primary { width: 100%; }
  .join-row .btn { flex: 1 1 100%; }
  .share-row .chip-btn { flex: 1 1 100%; justify-content: center; }
  body.cta-later .mobile-cta { transform: translateY(115%); transition: transform .3s ease; }
  body.cta-later.cta-show .mobile-cta { transform: none; }
  .mobile-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .mobile-cta .mcta {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    height: 44px; border-radius: var(--radius-el); font-weight: 600; font-size: 14px;
    text-decoration: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  }
  .mobile-cta .mcta.primary { background: var(--grad); border-color: transparent; color: #fff; }
  main.wrap { display: flex; flex-direction: column; }
  main.wrap > section { width: 100%; }
}

/* ---------- Details（タップで開く詳細） ---------- */
.faq details.qa { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details.qa:first-of-type { border-top: none; }
.faq summary { font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq details.qa p { margin: 8px 0 4px; }
.more-note { margin-top: 4px; }
.more-note summary { font-size: 13px; font-weight: 600; color: var(--info); cursor: pointer; list-style: none; }
.more-note summary::-webkit-details-marker { display: none; }

/* ---------- 作り込み（手直し第4弾：質感と仕上げ） ---------- */
:root {
  --sh-card: 0 1px 2px rgba(87,83,78,.05), 0 12px 32px -16px rgba(87,83,78,.22);
  --sh-lift: 0 2px 6px rgba(87,83,78,.05), 0 24px 48px -20px rgba(131,58,180,.26);
}
::selection { background: #f6d7ea; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
/* ヘッダー下のグラデーションの細い線（ブランドの署名） */
.appbar { position: relative; }
.appbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad); opacity: .8;
}
/* ヒーローのメッシュを滑らかに（温かい金色を左下に足す） */
.hero {
  background:
    radial-gradient(560px 300px at 88% -60px, rgba(0,130,251,.16), transparent 65%),
    radial-gradient(520px 320px at 55% -90px, rgba(131,58,180,.14), transparent 65%),
    radial-gradient(480px 300px at 18% -40px, rgba(225,48,108,.12), transparent 65%),
    radial-gradient(420px 260px at -40px 130%, rgba(247,119,55,.13), transparent 65%),
    var(--bg);
}
/* カードの奥行き（温色の影） */
.card { box-shadow: var(--sh-card); }
.claim-card { box-shadow: var(--sh-lift); border-color: var(--line-strong); }
.step-card, .post-form, .lead-card { box-shadow: var(--sh-card); }
@media (hover: hover) {
  .card { transition: transform .16s ease, box-shadow .16s ease; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(87,83,78,.05), 0 22px 44px -18px rgba(87,83,78,.3); }
}
/* コードはチケットの半券のように（切り取り線のある面） */
.card .code {
  background: var(--surface-muted); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-in); padding: 12px 14px; text-align: center;
}
/* 残り枠のゲージはグラデーションで */
.gauge { height: 6px; box-shadow: inset 0 1px 2px rgba(87,83,78,.18); }
.gauge i { background: linear-gradient(90deg, #0095f6, #833ab4, #e1306c); }
/* 主ボタンに光と影（押し心地つき） */
.btn-primary, button.primary, .mobile-cta .mcta.primary {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 22px -10px rgba(225,48,108,.55);
}
.btn, .btn-primary, button.primary, .chip-btn, .mcta {
  transition: transform .12s ease, box-shadow .16s ease, background-color .16s ease, filter .16s ease, border-color .16s ease;
}
.btn-primary:active, button.primary:active, .mobile-cta .mcta.primary:active { transform: translateY(1px); }
.chip-btn:hover:not(:disabled) { box-shadow: 0 4px 12px -6px rgba(87,83,78,.35); }
/* セクション見出しのグラデーションの目印 */
.section-head h2, .post-head h2, .doc h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2::before, .post-head h2::before, .doc h2::before {
  content: ""; width: 5px; height: .95em; border-radius: 99px; background: var(--grad); flex: none;
}
/* 手順の番号はグラデーションの丸に */
.steps .n {
  background: var(--grad); color: #fff; border: none;
  box-shadow: 0 4px 10px -4px rgba(131,58,180,.5);
}
/* 入力欄の仕上げ（内側の影＋淡いフォーカスの輪） */
.field input, .field textarea { box-shadow: inset 0 1px 3px rgba(87,83,78,.07); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--info); box-shadow: 0 0 0 3px rgba(0,103,206,.16);
}
/* 開閉する注記の見出しにホバーの色 */
details.more-note summary:hover, .qa summary:hover { color: var(--info); }

/* ---------- 動きと手応え（手直し第5弾：UXの作り込み） ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.96); } 100% { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
.anim-in { animation: fadeUp .28s ease both; }
/* 受け取れた瞬間：コードがふわりと大きく出る */
.claim-result:not([hidden]) .claim-code { animation: popIn .3s ease both; }
/* 一覧カードは、少しずつずれて滑り出る（透明にはしない：表示が遅れても中身は読める形） */
@keyframes slideUp { from { transform: translateY(10px); } to { transform: none; } }
.cards .card { animation: slideUp .35s ease both; }
.cards .card:nth-child(2) { animation-delay: .04s; }
.cards .card:nth-child(3) { animation-delay: .08s; }
.cards .card:nth-child(4) { animation-delay: .12s; }
.cards .card:nth-child(5) { animation-delay: .16s; }
.cards .card:nth-child(6) { animation-delay: .2s; }
/* 残り枠ゲージは幅が滑らかに動く */
.gauge i { transition: width .7s cubic-bezier(.22,.8,.3,1); }
/* コピーできた印：ボタンが緑に変わる */
.chip-btn.copied { background: #2f7d33; border-color: #2f7d33; color: #fff; }
/* 受け取り処理中：ボタンの横で小さく回る */
#claim-btn.busy::after {
  content: ""; width: 16px; height: 16px; margin-left: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  display: inline-block; vertical-align: -3px; animation: spin .7s linear infinite;
}
/* 開いた注記・FAQは中身がふわりと出る */
details[open] > :not(summary) { animation: fadeUp .18s ease both; }
/* 紹介ページの物語カード：画面に入ったら現れる */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.reveal.in { opacity: 1; transform: none; }
/* 動きを減らす設定の人には、動きを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 第6弾：動きをもう一段 ---------- */
html { scroll-behavior: smooth; }
/* ヒーローの色の重なりが、ゆっくり漂う */
@keyframes meshDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 26px 12px, -22px 16px, 18px -10px, -14px -12px, 0 0; }
}
.hero { animation: meshDrift 16s ease-in-out infinite alternate; }
/* 押したときの手応え：ボタンが少し沈む */
.btn-primary, button.primary, .chip-btn, .mobile-cta, .mcta {
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease, background .2s ease, opacity .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary:active, button.primary:active, .chip-btn:active, .mcta:active { transform: scale(.97); }
/* 受け取れたコードの上を、光が一度だけ流れる */
.claim-result .claim-code { position: relative; overflow: hidden; }
.claim-result .claim-code::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheenSweep 1s ease .15s both;
}
@keyframes sheenSweep { to { transform: translateX(120%); } }
/* 使い方の3ステップが、順番に灯る */
.ustep { transition: background .35s ease, border-color .35s ease, color .35s ease; }
.ustep.lit { background: #e9f6e7; border-color: #bce0bb; color: #00490b; }
/* コピーの吹き出し：小さな札が浮かんで消える */
.chip-btn { position: relative; }
.copy-toast {
  position: absolute; left: 50%; top: -6px; z-index: 5; pointer-events: none; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  animation: toastUp 1.2s ease both;
}
@keyframes toastUp {
  0% { opacity: 0; transform: translate(-50%, 4px); }
  15% { opacity: 1; transform: translate(-50%, -6px); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -14px); }
}
/* 新着の印に、小さな点滅ドット */
.badge.new::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e1306c;
  display: inline-block; margin-right: 5px; vertical-align: 1px;
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
/* 読み込み中は、光る骨組みを表示する */
.cards li.loading {
  color: transparent; height: 132px; list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-container);
  background: linear-gradient(100deg, var(--surface-muted) 40%, #ffffff 50%, var(--surface-muted) 60%);
  background-size: 200% 100%; animation: shimmerSlide 1.2s linear infinite;
}
@keyframes shimmerSlide { from { background-position: 120% 0; } to { background-position: -80% 0; } }
/* 残り枠ゲージに、伸びたあと光が一度流れる */
.gauge i { position: relative; overflow: hidden; }
.gauge i.shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.5) 50%, transparent 75%);
  transform: translateX(-120%); animation: sheenSweep .9s ease both;
}
/* 動きを減らす設定では、なめらかスクロールも止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== モック追加要素（競合調査からの試し入れ） ===== */
.poster-panel { margin-top: 8px; }
.poster-card { padding: 18px; }
.poster-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.poster-code-label { font-size: 13px; color: var(--ink-2); }
.poster-code { font-family: var(--font-mono); font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.poster-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 10px; }
.poster-stat { background: var(--surface-muted); border: 1px solid var(--line); border-radius: var(--r-inner); padding: 10px 8px; text-align: center; }
.poster-stat-num { display: block; font-size: 20px; font-weight: 700; }
.poster-stat-label { display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.poster-rank { font-size: 13.5px; color: var(--ink-2); margin: 4px 0 12px; }
.poster-link-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.poster-link-label { font-size: 13px; color: var(--ink-2); }
.poster-link { font-family: var(--font-mono); font-size: 13px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.poster-note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; }
.facts-card { padding: 18px; margin: 6px 0 18px; }
.facts-card h2 { font-size: 17px; margin: 0 0 12px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fact { text-align: center; background: var(--surface-muted); border: 1px solid var(--line); border-radius: var(--r-inner); padding: 12px 6px; }
.fact-num { display: block; font-size: 24px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact-label { display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
.facts-note { font-size: 12.5px; color: var(--ink-2); margin: 12px 0 0; line-height: 1.6; }
.phone-mocks { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0 6px; }
.phone-fig { margin: 0; text-align: center; }
.phone-fig figcaption { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.phone-frame { width: 168px; border: 2.5px solid #292524; border-radius: 26px; padding: 8px 7px 12px; background: #fff; box-shadow: var(--sh-card); margin: 0 auto; }
.phone-notch { width: 52px; height: 5px; border-radius: 3px; background: #d6d0c6; margin: 1px auto 8px; }
.phone-screen { text-align: left; }
.phone-title { font-size: 13px; font-weight: 700; margin: 0 2px 8px; }
.phone-row { font-size: 12px; padding: 7px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); display: flex; justify-content: space-between; }
.phone-row.hot { color: var(--ink); font-weight: 700; background: #fdf2f8; border-radius: 6px; border-bottom-color: transparent; }
.phone-arrow { color: #c0267c; }
.phone-input { font-family: var(--font-mono); font-size: 15px; letter-spacing: .1em; border: 1.5px solid var(--ink-3); border-radius: 8px; padding: 8px; text-align: center; margin: 4px 2px 8px; }
.phone-btn { background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; text-align: center; border-radius: 999px; padding: 7px; margin: 0 2px; }
.phone-hint { font-size: 10.5px; color: var(--ink-3); text-align: center; margin: 8px 0 0; }
@media (max-width: 560px) { .poster-stats, .facts-grid { grid-template-columns: repeat(3, 1fr); } .fact-num { font-size: 19px; } }
