:root {
  --paper: #F6F0E4;
  --card: #FFFCF6;
  --ink: #2A2622;
  --sub: #7A7065;
  --line: #E3D9C8;
  --shu: #C8372D;
  --shu-d: #A42A22;
  --shu-l: #F6DCD6;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background-image: radial-gradient(rgba(120, 90, 50, .06) 1px, transparent 1px);
  background-size: 14px 14px;
}
button { font: inherit; color: inherit; }
.app { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.logo { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.logo b { font-size: 17px; letter-spacing: .08em; }
.seal { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--shu); color: var(--shu); display: grid; place-items: center; font-family: var(--mincho); font-weight: 700; font-size: 15px; transform: rotate(-8deg); }
.count { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px 22px; box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 12px 32px -18px rgba(80, 50, 20, .35); }
.card.center { text-align: center; }
.kicker { margin: 0 0 6px; color: var(--shu); font-weight: 700; font-size: 14px; letter-spacing: .1em; }
h1 { margin: 0 0 20px; font-family: var(--mincho); font-size: clamp(30px, 8.4vw, 40px); line-height: 1.3; letter-spacing: .02em; }
.how { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 12px; }
.how li { counter-increment: n; position: relative; padding-left: 36px; font-size: 15px; line-height: 1.55; }
.how li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--shu-l); color: var(--shu-d); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.how small { display: block; color: var(--sub); font-size: 13px; }
.fine { margin: 14px 0 0; font-size: 12px; color: var(--sub); text-align: center; line-height: 1.6; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 54px; width: 100%; border-radius: 14px; border: 2px solid transparent; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn.main, .btn.yes { background: var(--shu); color: #fff; }
.btn.main:hover, .btn.yes:hover { background: var(--shu-d); }
.btn.no { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn.no:hover { background: #F1EADD; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); font-weight: 600; font-size: 15px; min-height: 48px; }
.btn:focus-visible, .link:focus-visible, .logo:focus-visible { outline: 3px solid #E9A13B; outline-offset: 2px; }
.qno { margin: 0; font-family: var(--mincho); font-size: 22px; font-weight: 700; color: var(--shu); }
.q { margin: 6px 0 8px; font-size: clamp(20px, 5.6vw, 24px); line-height: 1.5; font-weight: 700; min-height: 2.4em; }
.q.in { animation: in .28s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.note { margin: 0 0 4px; color: var(--sub); font-size: 13px; line-height: 1.6; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.yn .btn { min-height: 64px; font-size: 20px; }
.sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; min-height: 28px; }
.center .sub { justify-content: center; }
.link { background: none; border: 0; padding: 6px 2px; font-size: 14px; color: var(--sub); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:disabled { visibility: hidden; }
.meter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); }
.meter i { display: block; width: 92px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter b { display: block; height: 100%; width: 3%; background: var(--shu); border-radius: 4px; transition: width .35s ease; }
.stamp { width: 168px; height: 168px; margin: 10px auto 16px; border-radius: 50%; border: 6px double var(--shu); display: grid; place-items: center; color: var(--shu); transform: rotate(-6deg); background: radial-gradient(circle, rgba(200, 55, 45, .06), transparent 70%); }
.stamp span { writing-mode: vertical-rl; font-family: var(--mincho); font-weight: 700; font-size: 34px; letter-spacing: .08em; line-height: 1; }
.stamp span.long { font-size: 26px; }
.stamp.hit { animation: stamp .42s cubic-bezier(.3, 1.5, .5, 1); }
.stamp.done { background: var(--shu); color: #fff; border-color: #fff; box-shadow: 0 0 0 4px var(--shu); }
@keyframes stamp { 0% { transform: scale(1.8) rotate(-14deg); opacity: 0; } 60% { transform: scale(.94) rotate(-5deg); opacity: 1; } 100% { transform: scale(1) rotate(-6deg); } }
.big { margin: 0 0 4px; font-family: var(--mincho); font-size: 28px; }
.col { display: grid; gap: 10px; margin-top: 20px; }
.field { width: 100%; min-height: 54px; margin-top: 12px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 20px; color: var(--ink); }
.field:focus { outline: none; border-color: var(--shu); }
.err { margin: 6px 0 0; min-height: 1.2em; color: var(--shu-d); font-size: 13px; }
.foot { text-align: center; font-size: 12px; padding: 4px 0; }
.foot a { color: var(--sub); text-decoration: none; }
@media (min-width: 600px) { .card { padding: 36px 34px 28px; } }
@media (prefers-reduced-motion: reduce) { .q.in, .stamp.hit { animation: none; } .btn { transition: none; } }
.docpage { background-image: none; }
.doc-top { max-width: 720px; margin: 0 auto; padding: 16px; }
.doc-top a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .06em; }
.doc { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; line-height: 1.85; font-size: 15px; }
.doc h1 { font-size: 26px; margin: 8px 0 20px; }
.doc h2 { font-size: 18px; margin: 32px 0 8px; padding-left: 10px; border-left: 4px solid var(--shu); }
.doc a { color: var(--shu-d); }
.doc .date { color: var(--sub); font-size: 13px; margin-top: 28px; }
.doc-foot { max-width: 720px; margin: 0 auto; padding: 16px 16px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.doc-foot nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.doc-foot a { color: var(--sub); }
.foot { display: flex; justify-content: center; gap: 16px; }
