/* INFINITY ── NFC Tools の使い方 */
.g-top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 62px; padding: env(safe-area-inset-top) max(18px, calc((100% - 1040px) / 2)) 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; }
.led { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.g-main { width: min(100% - 36px, 1040px); margin: 0 auto; padding: 0 0 40px; }

.g-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px 48px; align-items: center; padding: clamp(36px, 6vw, 80px) 0 24px; }
.kicker { margin: 0 0 12px; }
.g-h { margin: 0; font-weight: 900; font-size: clamp(29px, 4.6vw, 46px); line-height: 1.36; letter-spacing: .02em; text-wrap: balance; }
html[lang='en'] .g-h { line-height: 1.2; }
.g-lead { margin: 18px 0 0; max-width: 33em; font-size: 16px; line-height: 1.95; color: var(--sub); }
html[lang='en'] .g-lead { line-height: 1.75; }
.g-meta { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-meta li { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.g-meta b { font-family: var(--hud); font-weight: 900; font-size: 16px; color: var(--amber-t); letter-spacing: .04em; }
.g-meta span { font-size: 12.5px; font-weight: 700; color: var(--sub); }

/* 書き込みの図（スマホから蓋へ） */
.uplink-fig { margin: 0; justify-self: center; width: min(100%, 380px); padding: 18px; border-radius: 32px; background: radial-gradient(circle at 50% 40%, var(--space-2), var(--space) 75%); box-shadow: 0 0 0 10px #fff, 0 0 0 12px var(--line-2), var(--shadow-l); }
.uplink-fig svg { width: 100%; height: auto; overflow: visible; }
.uf-phone { animation: hover 4.6s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(10px) rotate(1deg); } }
.uf-waves .w { opacity: 0; transform-box: fill-box; transform-origin: center; animation: ufw 2.4s cubic-bezier(.2, .6, .3, 1) infinite; stroke-width: 1.4; }
.uf-waves .w2 { animation-delay: .8s; }
.uf-waves .w3 { animation-delay: 1.6s; }
@keyframes ufw { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
.uf-tag { animation: tagGlow 2.4s ease-in-out infinite; }
@keyframes tagGlow { 50% { stroke-width: 2.6; filter: drop-shadow(0 0 6px rgba(255, 176, 74, .9)); } }
.uf-bar { transform-box: fill-box; transform-origin: left center; animation: bar 2.4s linear infinite; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.uf-dot { animation: tagGlow 1.2s ease-in-out infinite; }
.pk { offset-path: path('M170 172 C 170 186, 170 196, 170 214'); animation: pk 1.2s linear infinite; opacity: 0; }
.pk.p2 { animation-delay: .4s; }
.pk.p3 { animation-delay: .8s; }
@keyframes pk { 0% { offset-distance: 0%; opacity: 0; } 20% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.g-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 10px 0 0; }
.g-toc a { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 900; box-shadow: var(--shadow); transition: border-color .2s, background-color .2s; }
.g-toc a:hover { border-color: var(--sun); background: var(--sun-soft); }
.g-toc b { 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: 12px; }

.g-sec { padding: clamp(52px, 7vw, 88px) 0 0; scroll-margin-top: 70px; }
.sec-no { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sec-no::after { content: ''; flex: 1 1 auto; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--line-2), transparent); }
.g-h2 { margin: 0 0 22px; font-weight: 900; font-size: clamp(23px, 3.2vw, 32px); line-height: 1.4; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.g-card { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.g-card .label { margin: 0 0 6px; }
.g-card h3 { margin: 0 0 6px; font-size: 17.5px; line-height: 1.5; font-weight: 900; }
.g-card p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink); }
.g-card p + p { margin-top: 8px; }
.g-card .sub { font-size: 13px; color: var(--sub); }
.g-card.ok { border-color: #B9E6D2; background: var(--signal-soft); }
.g-link { display: inline-flex; margin-top: 10px; color: var(--sky-d); font-size: 14.5px; font-weight: 700; }
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.store { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; 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; font-size: 10px; }
.g-note { margin: 14px 0 0; padding: 11px 14px; border-radius: 14px; border: 1px solid #FFE59A; background: var(--sun-soft); font-size: 14px; line-height: 1.8; color: var(--ink); }

.phones { display: flex; justify-content: center; gap: clamp(24px, 8vw, 80px); }
.phone-spot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone-spot svg { width: 110px; height: auto; overflow: visible; }
.spot { fill: rgba(247, 147, 26, .3); }
.spot-ring { fill: none; stroke: var(--amber); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ufw 2.2s cubic-bezier(.2, .6, .3, 1) infinite; }
.phone-spot figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.phone-spot figcaption b { font-family: var(--hud); font-weight: 900; letter-spacing: .06em; }
.phone-spot figcaption span { font-size: 13px; color: var(--sub); }

.os-tabs { max-width: 360px; margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--amber); color: #fff; font-family: var(--hud); font-weight: 900; font-size: 17px; box-shadow: 0 3px 0 var(--amber-d); }
.steps b::before { content: none; }
.steps h3 { margin: 0; font-size: 16.5px; line-height: 1.5; font-weight: 900; }
.steps p { margin: 4px 0 0; font-size: 15px; line-height: 1.9; color: var(--ink); }
.steps.swap li { animation: stepIn .6s var(--spring-soft) both; }
.steps.swap li:nth-child(2) { animation-delay: .06s; }
.steps.swap li:nth-child(3) { animation-delay: .12s; }
.steps.swap li:nth-child(4) { animation-delay: .18s; }
@keyframes stepIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
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; }

.lockbox { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border: 1px solid #F6C9BD; border-radius: var(--r); background: var(--alert-soft); }
.lockbox p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--ink); }
.lockbox p + p { margin-top: 8px; }
.warn-line { padding-top: 10px; border-top: 1px solid #F6C9BD; color: var(--ink) !important; font-weight: 700; }

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

.g-end { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 56px 0 10px; }
.g-foot { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 18px 22px calc(26px + env(safe-area-inset-bottom)); }
.g-foot p { margin: 0; max-width: 46em; font-size: 12.5px; line-height: 1.7; color: var(--sub); }

@media (prefers-reduced-motion: reduce) {
  .uf-phone, .uf-waves .w, .uf-tag, .uf-bar, .uf-dot, .pk, .spot-ring { animation: none !important; }
  .pk { opacity: 0; }
}
