/* INFINITY ── つくり方の案内（setup） */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 62px; padding: env(safe-area-inset-top) 18px 0; background: rgba(255, 252, 244, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink); text-decoration: none; font-family: var(--hud); font-weight: 900; font-size: 16px; letter-spacing: .14em; }
.logo svg { width: 38px; height: 19px; fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round; }
.logo svg circle { fill: var(--sky); stroke: none; }
.top-label { font-size: 11.5px; margin-left: auto; white-space: nowrap; letter-spacing: .08em; }
@media (max-width: 370px) { .top-label { display: none; } }
.top .lang-tg { margin-left: 4px; }
/* 工程のブロック（終わるごとに一つ積まれる） */
.chainbar { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.chainbar i { position: relative; width: 13px; height: 13px; border: 2px solid #E8C999; border-radius: 3px; background: #fff; transform: rotate(45deg) scale(.82); transition: background-color .4s, border-color .4s; }
.chainbar i + i::before { content: ''; position: absolute; left: -10px; top: 14px; width: 9px; height: 2px; border-radius: 2px; background: #E8C999; transform: rotate(-45deg); transform-origin: left center; }
.chainbar i.done { background: var(--amber); border-color: var(--amber-d); }
.chainbar i.done.just { animation: mined .9s var(--spring); }
.chainbar i.now { border-color: var(--amber); animation: mining 1.6s ease-in-out infinite; }
@keyframes mining { 50% { transform: rotate(45deg) scale(1); } }
@keyframes mined { 0% { transform: rotate(45deg) translateY(-14px) scale(.4); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(45deg) scale(.82); } }

.main { flex: 1 1 auto; display: flex; flex-direction: column; overflow-x: clip; }
.step { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; padding: 16px 18px 0; }
.step.enter-fwd { animation: stepFwd .55s var(--spring-soft) both; }
.step.enter-back { animation: stepBack .55s var(--spring-soft) both; }
@keyframes stepFwd { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
.step.enter-fwd .plan li { animation: riseIn .6s var(--spring) both; animation-delay: calc(100ms + var(--i) * 50ms); }

.kicker { margin: 10px 0 -8px; }
.kicker.center { text-align: center; margin: 8px 0 -10px; }
.h { margin: 0; font-weight: 900; font-size: 26px; line-height: 1.45; letter-spacing: .03em; }
h1.h { font-size: 30px; line-height: 1.4; }
.h:focus { outline: none; }
.lead { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--sub); }
.center { text-align: center; }
.sub { font-size: 13.5px; line-height: 1.7; color: var(--sub); }
p.sub { margin: 0; }
.p { margin: 0 0 12px; font-size: 15px; line-height: 1.85; color: var(--ink); }
.led { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }

.plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.plan b { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--amber); color: #fff; font-family: var(--hud); font-size: 15px; font-weight: 900; box-shadow: 0 3px 0 var(--amber-d); }
.plan strong { display: block; font-size: 15.5px; line-height: 1.5; font-weight: 900; }
.plan small { display: block; font-size: 13px; line-height: 1.6; color: var(--sub); }

.card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.card-h { margin: 0 0 8px; }
.need { margin: 0; padding-left: 1.2em; font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.need li + li { margin-top: 6px; }

.nav { position: sticky; bottom: 0; z-index: 5; margin: auto -18px 0; padding: 26px 18px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 4px; background: linear-gradient(to bottom, rgba(255, 252, 244, 0), rgba(255, 252, 244, .97) 26px); }
.btn.wide + .btn.wide { margin-top: 10px; }

.panel .how + .note, .panel .note { margin-top: 14px; }
.how { margin: 0; padding: 0; list-style: none; counter-reset: how; display: flex; flex-direction: column; gap: 10px; }
.how li { position: relative; padding-left: 38px; font-size: 15px; line-height: 1.8; counter-increment: how; color: var(--ink); }
.how li::before { content: counter(how); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-t); font-family: var(--hud); font-size: 13px; font-weight: 900; }
.how b { color: var(--ink); font-weight: 900; }
.panel .btn + .how { margin-top: 14px; }
.note { margin: 0; padding: 11px 14px; border-radius: 14px; background: var(--sun-soft); border: 1px solid #FFE59A; font-size: 14px; line-height: 1.8; color: var(--ink); }
.slip { margin: 14px 0 0; }
.slip svg { width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.slip figcaption { margin-top: 6px; font-size: 12.5px; color: var(--sub); text-align: center; }
.safe { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid #B9E6D2; background: var(--signal-soft); font-size: 14px; line-height: 1.7; color: var(--ink); }

.checks { display: flex; flex-direction: column; gap: 8px; }
.more { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; font-weight: 900; font-size: 15px; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ''; flex: 0 0 auto; width: 9px; height: 9px; margin-top: -4px; border-right: 2.5px solid var(--amber); border-bottom: 2.5px solid var(--amber); transform: rotate(45deg); transition: transform .45s var(--spring), margin .3s; }
.more[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.more > div { padding: 0 16px 14px; font-size: 14.5px; line-height: 1.85; color: var(--ink); animation: riseIn .45s var(--spring-soft) both; }
.more ol { margin: 6px 0; padding-left: 1.3em; }
.more p { margin: 6px 0; }

.field { display: flex; flex-direction: column; gap: 8px; }
.addr-row { display: flex; gap: 8px; align-items: stretch; }
.addr-row textarea, .field input { flex: 1 1 auto; min-width: 0; padding: 12px 14px; border: 2px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
.addr-row textarea { font-family: var(--mono); resize: none; overflow-wrap: anywhere; }
.field input { font-family: var(--sans); min-height: 52px; }
.addr-row textarea:focus, .field input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(59, 158, 255, .16); }
.addr-row textarea.ok { border-color: var(--signal); }
.addr-row textarea.ng, .field input.ng { border-color: var(--alert); }
.paste { flex: 0 0 auto; min-width: 90px; border: 0; border-radius: 14px; background: var(--amber); color: #fff; box-shadow: 0 4px 0 var(--amber-d); font-family: var(--sans); font-weight: 900; font-size: 15px; cursor: pointer; }
.paste:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-d); }
.msg { margin: -6px 0 0; min-height: 1.7em; font-size: 14px; line-height: 1.7; font-weight: 700; }
.field .msg { margin: 0; }
.msg.ok { color: var(--signal-d); }
.msg.ng { color: var(--alert); }
.verify { display: flex; flex-direction: column; gap: 10px; animation: riseIn .5s var(--spring-soft) both; }
.hint { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); }
.count { margin: 0; font-size: 14px; font-weight: 700; color: var(--sub); }
.count.all { color: var(--signal-d); }
.meter { height: 8px; border-radius: 999px; background: var(--card-3); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--amber); transition: width .5s var(--spring), background-color .3s; }
.meter.over span { background: var(--alert); }

.urlbox { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); }
.urlbox-l { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--sub); }
.urlbox code { display: block; margin-top: 6px; font-family: var(--mono); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; color: var(--amber-t); font-weight: 700; user-select: all; -webkit-user-select: all; }
.url-acts { display: flex; gap: 8px; margin-top: 12px; }
.url-acts .btn { flex: 1 1 auto; min-height: 48px; }
.url-acts #share-url { flex: 0 0 auto; }
/* ショートカット：アドレスを貼り付けたら、すぐ出るURL */
.q-out { margin-top: 14px; }
.q-out .msg { margin: 10px 0 0; }
.q-out .url-acts { flex-wrap: wrap; } /* 狭い画面では、ボタンを縦に並べる（文字を途中で折らない） */
.q-out .url-acts .btn { white-space: nowrap; }
.q-out.over .urlbox-l .num { color: var(--alert); font-weight: 800; }
.warn-note { border-left: 3px solid var(--amber); padding-left: 10px; }
.q-ctx { margin: 10px 0 2px; padding: 10px 14px 6px; border: 1px dashed var(--line); border-radius: 14px; }
.q-ctx p { margin: 0; font-size: 13.5px; color: var(--sub); }
.q-ctx-l { display: flex; flex-wrap: wrap; gap: 0 6px; margin-left: -12px; }
kbd.kc { display: inline-block; margin: 0 1px; padding: 0 8px; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 8px; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 13.5px; font-weight: 900; line-height: 1.7; white-space: nowrap; }
.store { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: border-color .2s, background-color .2s; }
.store:hover { border-color: var(--sun); background: var(--sun-soft); }
.store::after { content: '↗'; color: var(--sky-d); font-weight: 900; }
.store .label { margin-right: auto; }
.testbox { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid #B9E6D2; background: var(--signal-soft); }
.testbox .label { margin: 0; }
.testbox .p { margin: 0; }
.testbox .msg { margin: 0; min-height: 0; }
.guide-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--sky-d); font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(27, 111, 199, .35); }
.os-panel { display: flex; flex-direction: column; gap: 12px; animation: popIn .5s var(--spring) both; }
.nfc-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 16px 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: radial-gradient(60% 60% at 50% 35%, #FFF6E8, transparent 70%), var(--card); box-shadow: var(--shadow); text-align: center; }
.nfc-wrap strong { font-size: 16px; font-weight: 900; }
.after { display: flex; flex-direction: column; gap: 8px; animation: riseIn .5s var(--spring-soft) both; }
.after .msg { margin: 0 0 6px; }
.btn.arm { color: var(--alert); box-shadow: 0 0 0 2px var(--alert) inset; }
.btn.good { color: var(--signal-d); box-shadow: 0 0 0 2px var(--signal) inset; }

.scene { margin: 0 auto; width: min(80vw, 320px); }
.scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.scene .band { transform-box: fill-box; transform-origin: center; transform: translate(calc((1 - var(--p, 0)) * 50px), calc((1 - var(--p, 0)) * -96px)) scale(calc(1 + (1 - var(--p, 0)) * .14)) rotate(calc((1 - var(--p, 0)) * -28deg)); opacity: calc(.55 + var(--p, 0) * .45); filter: drop-shadow(0 calc((1 - var(--p, 0)) * 14px) calc(3px + (1 - var(--p, 0)) * 10px) rgba(34, 43, 69, .25)); transition: transform .75s var(--spring), opacity .4s, filter .4s; }
.scene.holding .band { transition: none; }
.scene .shine { opacity: 0; }
.scene.sealed .shine { animation: shine 1.2s .3s ease-out both; }
@keyframes shine { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(170px); } }
.scene .stamp { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(1.9) rotate(-28deg); transition: opacity .18s ease, transform .6s var(--press); }
.scene.sealed .stamp { opacity: 1; transform: rotate(-8deg); transition-delay: .35s; }
.tips { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.85; color: var(--ink); }
.hold-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hold { position: relative; display: flex; align-items: center; justify-content: center; width: 140px; height: 140px; border: 0; padding: 0; border-radius: 50%; background: radial-gradient(circle, #FFF6E8, var(--amber-soft) 72%); box-shadow: 0 0 0 3px var(--amber), 0 8px 0 rgba(196, 106, 0, .25); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .55s var(--press), background-color .3s; }
.hold.holding { transform: scale(.92); transition: transform .3s ease-out; }
.hold svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hold .track { fill: none; stroke: rgba(196, 106, 0, .14); stroke-width: 6; }
.hold .prog { fill: none; stroke: var(--amber); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 400; transition: stroke-dasharray .5s var(--spring); }
.hold.holding .prog { transition: none; }
.hold .c { position: relative; font-weight: 900; font-size: 46px; line-height: 1; color: var(--amber-t); transition: color .3s; }
html[lang='en'] .hold .c { font-family: var(--hud); font-weight: 900; font-size: 26px; letter-spacing: .12em; margin-right: -.12em; }
.hold.done { background: radial-gradient(circle, #F2FCF7, var(--signal-soft) 72%); box-shadow: 0 0 0 3px var(--signal), 0 8px 0 rgba(15, 125, 85, .22); animation: stampHit .7s var(--press); cursor: default; }
.hold.done .c { color: var(--signal-d); }
.hold.done .prog, .hold.done .track { stroke: transparent; }
@keyframes stampHit { 0% { transform: scale(.86); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
.link-btn.small { font-size: 13.5px; }

.preview { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 10px; padding: 24px 16px 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: radial-gradient(70% 60% at 50% 40%, #FFF6E8, transparent 70%), var(--card); box-shadow: var(--shadow); animation: popIn .6s var(--spring) both; }
.pv-name { margin: 0; font-weight: 900; font-size: 16px; color: var(--ink); letter-spacing: .1em; overflow-wrap: anywhere; text-align: center; }
.pv-em { width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--space-2), var(--space) 70%); box-shadow: 0 0 0 8px #fff, 0 0 0 10px var(--line-2); overflow: hidden; }
.pv-em svg { width: 100%; height: 100%; }
.acts { display: flex; flex-direction: column; gap: 10px; }

.foot { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); }
.foot p { margin: 0; font-size: 12.5px; color: var(--sub); }
.noscript { max-width: 560px; margin: 24px auto; padding: 0 22px; }

/* ── 1 印刷する／2 NFCタグを入れる */
.dl-links { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
.pk-fig { margin: 2px 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #FFFCF4; box-shadow: var(--shadow); }
.pk-fig svg { display: block; width: 100%; height: auto; max-width: 440px; margin: 0 auto; }
