:root {
  --bg: #fff8ec;
  --card: #ffffff;
  --ink: #3b2f2a;
  --muted: #8a7b72;
  --line: #f1e3cf;
  --orange: #ff9f1c;
  --orange-dark: #e07b00;
  --green: #2bb673;
  --teal: #1fa7a0;
  --pink: #ff6fa5;
  --blue: #4d96ff;
  --yellow: #ffd23f;
  --alert: #d7263d;
  --radius: 18px;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Rounded Mplus 1c", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
}

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
}

h1, h2, h3 { margin: 0 0 12px; line-height: 1.3; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { line-height: 1.6; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.loading { text-align: center; margin-top: 30vh; color: var(--muted); font-size: 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 0 var(--orange-dark);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-dark); }
.btn.big { min-height: 68px; font-size: 1.3rem; padding: 16px 28px; }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.btn.kid-btn { background: var(--pink); box-shadow: 0 5px 0 #d94f86; }
.btn.parent-btn { background: var(--teal); box-shadow: 0 5px 0 #177f7a; }

.link {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  padding: 12px;
  min-height: 44px;
}

.chip {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 38px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.chip.light { border-color: rgba(255, 255, 255, 0.7); background: #fff; color: var(--alert); font-weight: 700; }

/* ---------- まんなか寄せのページ ---------- */

.center {
  text-align: center;
  padding-top: 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.logo { font-size: 5rem; line-height: 1; }
.lead { font-size: 1.2rem; }
.choose { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 360px; }

/* ---------- テンキー ---------- */

.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin: 12px auto;
}
.key {
  min-height: 64px;
  border: none;
  border-radius: 16px;
  background: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--line);
}
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.key.fn { font-size: 1.1rem; background: #fff3dc; }

.pin-dots { display: flex; gap: 16px; justify-content: center; margin: 8px 0; }
.pin-dots span { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--teal); }
.pin-dots span.on { background: var(--teal); }
.pin-dots.shake { animation: shake 0.4s; }
.pin-msg { min-height: 1.6em; margin: 0; color: var(--alert); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* ---------- 子どもの画面 ---------- */

.child { display: flex; flex-direction: column; gap: 16px; }
.kid-head h1 { text-align: center; font-size: 1.6rem; margin: 4px 0 0; }
.kid-card {
  background: var(--card);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 4px 0 var(--line);
  text-align: center;
}
.kid-card h2 { font-size: 1.2rem; }
.balance-card { background: linear-gradient(135deg, #fff1c1, #ffd9e8); }
.balance-card p { margin: 0; font-size: 1.15rem; }
.balance-card .money { font-size: 3.4rem; font-weight: 800; letter-spacing: 0.02em; }
.money small { font-size: 1.4rem; margin-left: 6px; }
.kid-lead { font-size: 1.25rem; font-weight: 700; margin: 4px 0 12px; }
.kid-sub { font-size: 1.1rem; margin: 8px 0 0; color: var(--muted); }
.done-icon { width: 130px; margin: 0 auto; transform: rotate(-8deg); }

.stamp-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  border-radius: 50%;
  border: 8px solid #fff;
  background: radial-gradient(circle at 35% 30%, #ffe27a, var(--orange));
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 0 var(--orange-dark), 0 0 0 6px #ffe8b8;
  animation: bounce 1.6s ease-in-out infinite;
}
.stamp-btn:active { transform: translateY(6px) scale(0.97); box-shadow: 0 2px 0 var(--orange-dark); animation: none; }
.stamp-btn:disabled { opacity: 0.6; animation: none; }
.stamp-icon {
  display: block;
  width: 46%;
  aspect-ratio: 1;
  margin-bottom: 6px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.spend-btn {
  min-height: 76px;
  font-size: 1.4rem;
  background: var(--blue);
  box-shadow: 0 5px 0 #2f6fd0;
  border-radius: 24px;
}
.kid-big { width: 100%; min-height: 72px; font-size: 1.35rem; border-radius: 24px; }

.designs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.design {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 84px;
  padding: 8px 4px;
  border-radius: 18px;
  border: 3px solid var(--line);
  background: #fff;
  font-size: 0.9rem;
}
.design .stamp-svg { width: 56px; height: 56px; margin-bottom: 2px; }
.design.selected { border-color: var(--pink); background: #fff0f6; }

.foot { text-align: center; }

/* つかった の入力 */
dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: none;
  border-radius: 24px;
  padding: 20px;
  background: var(--bg);
  color: var(--ink);
}
dialog::backdrop { background: rgba(59, 47, 42, 0.45); }
.kid-modal { text-align: center; }
.kid-modal > * + * { margin-top: 12px; }
.kid-modal h2 { font-size: 1.4rem; }
.kid-modal .btn { width: 100%; }
.del-what { font-size: 1.4rem; }
.del-what span { font-size: 3rem; display: block; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 110px;
  justify-content: center;
  border: none;
  border-radius: 20px;
  background: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--line);
}
.cat span { font-size: 2.8rem; }
.amount-display { font-size: 2.6rem; font-weight: 800; }
.memo {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 1.05rem;
}
.gentle {
  background: #fff3c4;
  border-radius: 16px;
  padding: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* スタンプを押したときのお祝い */
.celebrate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 248, 236, 0.94);
  animation: fade-in 0.2s ease-out;
  text-align: center;
}
.big-stamp { font-size: 9rem; line-height: 1; width: min(60vw, 220px); animation: stamp-in 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.sparkles { font-size: 2.5rem; animation: float-up 1.6s ease-out both; }
.cele-title { font-size: 2.2rem; font-weight: 800; margin: 12px 0 0; color: var(--orange-dark); }
.cele-text { font-size: 1.4rem; margin: 4px 0 0; }
@keyframes stamp-in {
  0% { transform: scale(3) rotate(-25deg); opacity: 0; }
  60% { transform: scale(0.9) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
@keyframes float-up {
  0% { transform: translateY(40px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(-20px); opacity: 1; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* スタンプを押す わく */
.pad-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 248, 236, 0.97);
  animation: fade-in 0.2s ease-out;
  text-align: center;
}
.pad-title { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--orange-dark); }
.stamp-pad {
  position: relative;
  width: min(84vw, 58vh, 440px);
  aspect-ratio: 1;
  border: 6px dashed var(--orange);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 8px 0 var(--line);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
  overflow: hidden;
  animation: pad-breathe 1.6s ease-in-out infinite;
}
.stamp-pad:active:not(.done) { transform: scale(0.97); }
.stamp-pad.done { animation: pad-thump 0.25s ease-out; border-style: solid; }
.pad-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18%;
  opacity: 0.15;
  pointer-events: none;
}
.stamp-pad.done .pad-hint { display: none; }
.pressed-stamp {
  position: absolute;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
  animation: stamp-press 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  pointer-events: none;
}
.pad-msg { margin: 0; display: flex; flex-direction: column; }
.pad-msg[hidden] { display: none; }
.pad-msg .cele-title { margin: 0; }
.pad-close { width: min(84vw, 440px); }
@keyframes stamp-press {
  0% { transform: translate(-50%, -50%) scale(2.2) rotate(var(--tilt, 0deg)); opacity: 0; }
  55% { transform: translate(-50%, -50%) scale(0.88) rotate(var(--tilt, 0deg)); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(var(--tilt, 0deg)); opacity: 1; }
}
@keyframes pad-breathe {
  0%, 100% { border-color: var(--orange); }
  50% { border-color: var(--yellow); }
}
@keyframes pad-thump {
  0% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

/* ---------- カレンダー ---------- */

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-size: 1.2rem; font-weight: 700; }
.nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 1.6rem;
  line-height: 1;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-size: 0.8rem; color: var(--muted); padding: 2px 0; }
.cal-head.sun { color: #e0607e; }
.cal-head.sat { color: var(--blue); }
.cal-cell {
  position: relative;
  aspect-ratio: 1 / 1.1;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fffdf8;
  padding: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.cal-cell.empty { background: transparent; }
.cal-cell .num { font-size: 0.8rem; line-height: 1.3; }
.cal-cell.today { background: #fff1c1; }
.cal-cell.today .num { font-weight: 800; }
.cal-cell.selected { border-color: var(--orange); }
.cal-cell.payday .num { color: var(--orange-dark); font-weight: 800; }
.cal-cell.missing { background: #ffe3e6; border-style: dashed; border-color: var(--alert); }
.cal-cell.missing.selected { border-style: solid; }
.cal-stamp { width: 78%; max-width: 46px; line-height: 0; transform: rotate(-8deg); }
.miss { font-size: 0.7rem; font-weight: 800; color: #fff; background: var(--alert); border-radius: 6px; padding: 0 4px; }
.marks { position: absolute; bottom: 3px; display: flex; gap: 3px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot.in { background: var(--green); }
.dot.out { background: var(--blue); }
.dot.help { background: var(--orange); }
.legend { font-size: 0.8rem; color: var(--muted); margin: 8px 0 0; }
.legend .dot { margin: 0 3px 0 8px; }
.day-title { margin-top: 14px; text-align: left; }

.items { list-style: none; margin: 0; padding: 0; text-align: left; }
.item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.item .ico { font-size: 1.5rem; }
.item .what { flex: 1; min-width: 8em; }
.item .what small { display: block; color: var(--muted); font-size: 0.8rem; }
.item .when { width: 100%; font-size: 0.8rem; color: var(--muted); }
.item .amt { font-weight: 700; }
.amt.plus { color: var(--green); }
.amt.minus { color: var(--blue); }
.child .item { font-size: 1.1rem; }

/* ---------- 親の画面 ---------- */

.parent { display: flex; flex-direction: column; gap: 14px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bar h1 { font-size: 1.25rem; margin: 0; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 0 var(--line);
}
.page { gap: 14px; }
.balance-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 1.05rem; }
.balance-row .chip { margin-left: auto; }
.balance-row strong { font-size: 1.8rem; }

.banner { border-radius: var(--radius); padding: 16px; font-weight: 700; }
.banner.ok { background: #e3f7ec; color: #17774a; font-weight: 600; }
.banner.alert {
  background: var(--alert);
  color: #fff;
  box-shadow: 0 0 0 4px #ffc2ca;
  animation: pulse 2s ease-in-out infinite;
}
.banner-title { font-size: 1.25rem; margin: 0 0 8px; }
.banner ul { list-style: none; margin: 0; padding: 0; }
.banner li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.banner-hint { font-weight: 400; font-size: 0.9rem; margin: 8px 0 0; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px #ffc2ca; }
  50% { box-shadow: 0 0 0 10px #ffe0e4; }
}
@media (prefers-reduced-motion: reduce) {
  .banner.alert, .stamp-btn, .stamp-pad { animation: none; }
}

.pform { display: flex; flex-direction: column; gap: 12px; }
.pform + .pform { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pform label { display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; font-weight: 600; }
.pform input, .pform select {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  font-weight: 400;
}
.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit input { flex: 1; }
.hint { font-size: 0.85rem; color: var(--muted); margin: -4px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.row { display: flex; gap: 10px; justify-content: flex-end; }
.sum { margin: 0 0 4px; color: var(--muted); }
.missing-row .what { color: var(--alert); font-weight: 700; }

/* ---------- お知らせ ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 40px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  max-width: calc(100vw - 32px);
  text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 600px) {
  .cal-cell .num { font-size: 0.95rem; }
  .balance-card .money { font-size: 4.2rem; }
}

/* ---------- スタンプの絵（stamps.js） ---------- */

.stamp-svg, .hanko-svg { display: block; width: 100%; height: 100%; }
.mini-stamp { display: inline-block; width: 1.6em; height: 1.6em; vertical-align: middle; }
.item .ico .mini-stamp { width: 1.4em; height: 1.4em; }

/* ---------- お手伝いスタンプ・ごほうび ---------- */

.help-count { margin: 0; font-size: 1.2rem; }
.help-count span { font-size: 3rem; font-weight: 800; color: var(--orange-dark); margin-right: 4px; }
.help-sheet {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 380px;
  margin: 10px auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: #fff7e0;
}
.slot {
  aspect-ratio: 1;
  border: 3px dashed #f3d9a6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--orange-dark);
}
.slot.on { border: none; }
.slot.on .stamp-svg { transform: rotate(-10deg); }
.slot.on:nth-child(even) .stamp-svg { transform: rotate(8deg); }
.help-btn { background: var(--green); box-shadow: 0 5px 0 #1d8a55; }
.contract-btn { background: #8e6cd8; box-shadow: 0 5px 0 #6c4db5; }

.rewards { list-style: none; margin: 0; padding: 0; text-align: left; }
.reward {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}
.reward .r-cost { font-weight: 800; white-space: nowrap; }
.reward .r-label { flex: 1; min-width: 8em; font-weight: 700; }
.reward .r-left { color: var(--muted); }
.reward.ready { background: #fff7e0; border-radius: 14px; }
.chip.go { background: var(--green); border-color: var(--green); color: #fff; font-weight: 800; font-size: 1.1rem; min-height: 48px; padding: 8px 18px; }

.tasks { display: flex; flex-direction: column; gap: 10px; }
.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 72px;
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  background: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--line);
  text-align: left;
}
.task .t-n { white-space: nowrap; }

.pad-undo { width: min(84vw, 440px); }
.pad-undo[hidden] { display: none; }

.count-badge { font-size: 0.9rem; font-weight: 700; color: var(--orange-dark); background: #fff3dc; border-radius: 999px; padding: 2px 10px; margin-left: 6px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.rule-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.rule-row { flex-wrap: nowrap; }
.pform .rule-row .rule-label { flex: 1 1 0; min-width: 0; width: auto; }
.rule-row .with-unit { flex: 0 0 auto; font-size: 0.9rem; font-weight: 600; }
.pform .rule-row .rule-n { width: 4em; flex: none; padding: 8px 6px; text-align: center; }
.rule-row .chip { flex: none; padding: 6px 10px; }
.pform h3 { margin: 8px 0 0; }

/* ---------- 契約書（やくそくの かみ） ---------- */

.contract-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  background: rgba(59, 47, 42, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fade-in 0.2s ease-out;
}
.contract-screen > .btn { width: min(100%, 560px); flex: none; }
.paper {
  width: min(100%, 560px);
  flex: none;
  padding: 28px 22px;
  background: #fffdf6;
  border-radius: 6px;
  border: 1px solid #e9dcc3;
  box-shadow: 0 0 0 6px #fffdf6, 0 0 0 8px #c9a96b, 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 1.1rem;
}
.paper h1 { text-align: center; font-size: 1.8rem; margin: 0; letter-spacing: 0.2em; }
.paper-sub { text-align: center; margin: 0 0 16px; color: var(--muted); }
.paper-note { background: #fff3c4; border-radius: 12px; padding: 10px; text-align: center; font-weight: 700; }
.paper section { margin: 16px 0; }
.paper h2 { font-size: 1.15rem; border-bottom: 2px solid #e9dcc3; padding-bottom: 4px; }
.paper ul { margin: 0; padding-left: 1.2em; }
.paper li { margin: 6px 0; line-height: 1.6; }
.paper p { margin: 6px 0; }
.paper b { color: var(--orange-dark); }
.seals { display: flex; justify-content: space-around; gap: 12px; margin-top: 24px; }
.seal { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.seal-who { font-weight: 700; }
.seal .hanko-svg { width: 96px; height: 96px; animation: stamp-press-in 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) both; transform: rotate(-6deg); }
.seal-date { font-size: 0.8rem; color: var(--muted); }
.seal-empty {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px dashed #d9333f;
  background: #fff;
  color: #d9333f;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.seal-empty.wait { border-color: var(--line); color: var(--muted); font-size: 0.75rem; }
@keyframes stamp-press-in {
  0% { transform: scale(2) rotate(-6deg); opacity: 0; }
  100% { transform: scale(1) rotate(-6deg); opacity: 1; }
}

/* 見本のときの しるし */
body.demo::before {
  content: "みほん";
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 300;
  padding: 2px 10px;
  border-radius: 999px;
  background: #8e6cd8;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
}
