/* AmA Verify — 公式メンバー認証（白と紫）。外部の読み込みは使わない（CSPで自サイトのみ許可） */
@font-face { font-family: "AmA Display"; src: url("./fonts/display-en.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "AmA Mono"; src: url("./fonts/mono.woff2") format("woff2"); font-display: swap; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #f8f6ff;
  --bg-2: #f1ecff;
  --ink: #1c1233;
  --ink-2: #3b2e5a;
  --dim: #6e6688;
  --line: rgba(91, 33, 182, .12);
  --line-2: rgba(91, 33, 182, .22);
  --p0: #4c1d95;
  --p1: #6d28d9;
  --p2: #7c3aed;
  --p3: #a855f7;
  --p4: #c4b5fd;
  --p5: #ede9fe;
  --indigo: #6366f1;
  --pink: #ec4899;
  --amber: #d97706;
  --rose: #e11d48;
  --tone: var(--p2);
  --grad: linear-gradient(120deg, #6d28d9 0%, #8b5cf6 45%, #a855f7 70%, #6366f1 100%);
  --glass: rgba(255, 255, 255, .74);
  --shadow: 0 40px 90px -30px rgba(76, 29, 149, .38), 0 12px 30px -12px rgba(76, 29, 149, .18);
  --en: "AmA Display", "Segoe UI", system-ui, sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Segoe UI", Meiryo, system-ui, sans-serif;
  --mono-f: "AmA Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --snap: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}
body[data-tone="pending"] { --tone: #8b5cf6; }
body[data-tone="ok"] { --tone: var(--p1); }
body[data-tone="wait"] { --tone: var(--amber); }
body[data-tone="warn"] { --tone: var(--rose); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 15.5px/1.8 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
.mono { font-family: var(--mono-f); letter-spacing: .14em; }
::selection { background: var(--p4); color: var(--p0); }
:focus-visible { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 3px; border-radius: 10px; }

/* ───── 背景：光の粒（canvas）とオーロラ ───── */
#field { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.aurora { position: fixed; inset: -20vmax; z-index: 0; pointer-events: none; filter: blur(70px); opacity: .7; }
.aurora i { position: absolute; border-radius: 50%; }
.aurora i:nth-child(1) { width: 55vmax; height: 55vmax; left: 8%; top: 4%; background: radial-gradient(circle, rgba(167, 139, 250, .55), transparent 65%); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 48vmax; height: 48vmax; right: 6%; top: 18%; background: radial-gradient(circle, rgba(99, 102, 241, .32), transparent 65%); animation: drift-b 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 42vmax; height: 42vmax; left: 34%; bottom: 0; background: radial-gradient(circle, rgba(236, 72, 153, .18), transparent 65%); animation: drift-c 30s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(10vmax, 6vmax) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-8vmax, 10vmax) scale(.9); } }
@keyframes drift-c { to { transform: translate(6vmax, -8vmax) scale(1.15); } }

/* ───── ヘッダー ───── */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(248, 246, 255, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--grad); box-shadow: 0 8px 20px -6px rgba(109, 40, 217, .6); }
.logo-mark svg { width: 22px; height: 22px; }
.logo-mark .lm-a { fill: rgba(255, 255, 255, .95); }
.logo-mark .lm-b { fill: var(--p2); }
.logo-word { font: 700 19px/1 var(--en); letter-spacing: .02em; color: var(--ink); }
.logo-word b { margin-left: 6px; font: 600 12px/1 var(--mono-f); letter-spacing: .2em; color: var(--p2); text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: 14px; }
.nav a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background .25s, color .25s; }
.nav a:hover { background: var(--p5); color: var(--p1); }
.bar-clock { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: 0 10px 26px -14px rgba(109, 40, 217, .55), inset 0 1px 0 #fff; font-size: 16px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.bar-clock #clock { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: grad-move 6s ease-in-out infinite alternate; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); animation: led 2s ease-in-out infinite; }
@keyframes led { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.motion { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--ink-2); font: 600 12px var(--body); cursor: pointer; transition: border-color .25s, color .25s; }
.motion:hover { border-color: var(--p3); color: var(--p1); }

/* ───── ファーストビュー ───── */
main { position: relative; z-index: 1; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vh, 88px) clamp(16px, 4vw, 48px) clamp(40px, 6vh, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 11px; color: var(--p1); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--p3); }
.title { margin: 0; font: 900 clamp(32px, 3.6vw, 52px)/1.2 var(--body); word-break: keep-all; overflow-wrap: anywhere; letter-spacing: -.01em; color: var(--ink); }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: grad-move 6s ease-in-out infinite alternate; }
@keyframes grad-move { to { background-position: 100% 0; } }
.lead { max-width: 30em; margin: 22px 0 26px; font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: 0 6px 16px -10px rgba(76, 29, 149, .3); }
.chips svg { width: 18px; height: 18px; fill: none; stroke: var(--p2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───── 認証カード ───── */
.panel { position: relative; padding: 24px clamp(18px, 3vw, 30px) 20px; border-radius: 28px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); box-shadow: var(--shadow); isolation: isolate; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; padding: 1.5px; border-radius: inherit; background: conic-gradient(from var(--spin), rgba(124, 58, 237, .65), rgba(196, 181, 253, .25), rgba(99, 102, 241, .6), rgba(236, 72, 153, .35), rgba(124, 58, 237, .65)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin-border 9s linear infinite; }
.panel-glow { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(167, 139, 250, .22), transparent 60%); transition: opacity .3s; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-tag { font-size: 11px; font-weight: 700; color: var(--p1); }
.panel-secure { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--p5); font-size: 10.5px; color: var(--p1); }
.panel-secure i { width: 6px; height: 6px; border-radius: 50%; background: var(--p2); }

/* 進み具合（4段階） */
.track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; }
.track::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 13px; height: 2px; background: var(--line-2); border-radius: 2px; }
.track li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.track li i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); transition: background .4s, border-color .4s, box-shadow .4s; }
.track li i::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--line-2); transition: background .4s, transform .4s var(--ease); }
.track li b { font-size: 10px; color: var(--dim); }
.track li span { font-size: 12.5px; font-weight: 700; color: var(--dim); transition: color .3s; }
.track li[data-state="active"] i { border-color: var(--p2); box-shadow: 0 0 0 6px rgba(124, 58, 237, .14); animation: pulse-ring 1.6s ease-in-out infinite; }
.track li[data-state="active"] i::after { background: var(--p2); }
.track li[data-state="active"] span { color: var(--p1); }
.track li[data-state="done"] i { background: var(--grad); border-color: transparent; }
.track li[data-state="done"] i::after { inset: 8px 7px 9px; background: none; border: solid #fff; border-width: 0 0 2.5px 2.5px; border-radius: 0; transform: rotate(-45deg); }
.track li[data-state="done"] span { color: var(--ink); }
.track li[data-state="fail"] i { border-color: var(--rose); background: #fff1f3; }
.track li[data-state="fail"] i::after { background: var(--rose); }
.track li[data-state="fail"] span { color: var(--rose); }
.track li[data-state="hold"] i { border-color: var(--amber); background: #fff7ed; }
.track li[data-state="hold"] i::after { background: var(--amber); }
.track li[data-state="hold"] span { color: var(--amber); }
@keyframes pulse-ring { 50% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); } }

/* 入力部分 */
.body[hidden], .result[hidden] { display: none; }
.panel-title { margin: 0 0 12px; font: 800 clamp(20px, 2.6vw, 24px)/1.4 var(--body); color: var(--ink); }
body[data-view="standby"] .panel-title::after { content: "AmAへの参加と認証を、このページからはじめられます。あまねの認証ボタンから届いたリンクでも認証できます。"; display: block; margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 1.75; color: var(--dim); }
.howto { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: h; }
.howto li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(237, 233, 254, .55); font-size: 14px; color: var(--ink-2); }
.howto b { flex: none; padding: 3px 8px; border-radius: 8px; background: #fff; font-size: 10.5px; color: var(--p1); box-shadow: 0 2px 6px -2px rgba(76, 29, 149, .25); }
body[data-view="standby"] .howto, body[data-view="standby"] #start-form { display: none; }
.standby-start { display: none; }
body[data-view="standby"] .standby-start { display: grid; gap: 12px; margin-top: 18px; }
.app-step[hidden], #start-form[hidden], .app-note[hidden] { display: none; }
#start-form { display: grid; gap: 14px; }

.agree { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.agree:hover { border-color: var(--p4); }
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid var(--p4); border-radius: 8px; background: #fff; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.tick svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--ease) .05s; }
.agree:has(input:checked) { border-color: var(--p3); box-shadow: 0 0 0 4px rgba(167, 139, 250, .18); }
.agree input:checked + .tick { background: var(--grad); border-color: transparent; transform: scale(1.06); }
.agree input:checked + .tick svg { stroke-dashoffset: 0; }
.agree input:focus-visible + .tick { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 3px; }

/* メインボタン */
.launch { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 22px; border: 0; border-radius: 18px; background: var(--grad); background-size: 160% 100%; color: #fff; font: 800 16.5px/1 var(--body); letter-spacing: .04em; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; box-shadow: 0 18px 36px -14px rgba(109, 40, 217, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .3s var(--ease), box-shadow .3s, background-position .6s, filter .3s; }
.launch::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 0; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: shine 3.2s ease-in-out infinite; }
.launch-fill { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px circle at 50% 120%, rgba(255, 255, 255, .35), transparent 70%); opacity: 0; transition: opacity .3s; }
.launch-label, .launch-arrow, .launch-spin { position: relative; z-index: 1; }
.launch-arrow { font-size: 18px; transition: transform .3s var(--ease); }
.launch:hover:not(:disabled) { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 24px 44px -14px rgba(109, 40, 217, .8), inset 0 1px 0 rgba(255, 255, 255, .4); }
.launch:hover:not(:disabled) .launch-fill { opacity: 1; }
.launch:hover:not(:disabled) .launch-arrow { transform: translate(3px, -3px); }
.launch:active:not(:disabled) { transform: translateY(0) scale(.99); }
.launch:disabled { cursor: not-allowed; background: linear-gradient(120deg, #d9d2f5, #e6e0fb); color: #8f86ad; box-shadow: none; }
.launch:disabled::after { display: none; }
.launch-spin { width: 22px; height: 22px; flex: none; display: none; overflow: visible; }
.launch-spin path { fill: none; stroke-width: 2.4; stroke-linejoin: round; }
.launch-spin .spin-t { stroke: rgba(255, 255, 255, .3); }
.launch-spin .spin-p { stroke: #fff; stroke-dasharray: 38 62; animation: ring-run .9s linear infinite; }
.launch.busy { cursor: progress; background: var(--grad); color: #fff; }
.launch.busy .launch-spin { display: block; }
.launch.busy .launch-arrow { display: none; }
.app-note { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--dim); }

details.info { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.info summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--p1); list-style: none; display: flex; align-items: center; gap: 8px; }
details.info summary::-webkit-details-marker { display: none; }
details.info summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--p5); font: 700 14px/1 var(--mono-f); transition: transform .3s var(--ease); }
details.info[open] summary::before { transform: rotate(45deg); }
details.info ul { margin: 10px 0 0; padding-left: 1.1em; font-size: 13px; color: var(--ink-2); }
details.info li + li { margin-top: 4px; }

.status { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 11.5px; color: var(--dim); text-align: center; letter-spacing: .08em; min-height: 1.8em; }

/* ───── 結果 ───── */
.result { text-align: center; padding: 6px 0 2px; outline: none; }
.badge-wrap { position: relative; width: 116px; height: 116px; margin: 4px auto 12px; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring path { fill: none; stroke-width: 3; stroke-linejoin: round; }
.ring-t { stroke: var(--line-2); }
.ring-p { stroke: var(--tone); stroke-dasharray: 100 0; opacity: .45; transition: stroke-dasharray .9s var(--ease), opacity .4s, stroke .6s; }
.result[data-code="verified"] .ring-p { stroke-dasharray: 24 76; opacity: 1; animation: ring-run 1.15s linear infinite; }
.result[data-code="granted"] .ring-p { stroke-dasharray: 100 0; opacity: 1; }
.badge { position: relative; width: 88px; height: 88px; display: grid; place-items: center; font: 700 38px var(--mono-f); color: #fff; background: var(--tone); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); box-shadow: 0 20px 50px -10px var(--tone); }
body[data-tone="ok"] .badge, body[data-tone="pending"] .badge { background: var(--grad); }
body[data-tone="pending"] .badge { animation: throb 1s ease-in-out infinite; }
.ck { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ck path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.result[data-code="granted"] .badge { color: transparent; }
.result[data-code="granted"] .ck path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease) .45s; }
.result.burst .badge { animation: badge-pop .9s var(--snap) both; }
.result-code { margin: 0; font-size: 11px; color: var(--tone); }
.result h2 { margin: 6px 0 8px; font: 800 clamp(21px, 3vw, 27px)/1.4 var(--body); color: var(--ink); }
.result #result-body { max-width: 30em; margin: 0 auto; font-size: 14px; color: var(--ink-2); }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.result-actions:not(:has(.go:not([hidden]))) { display: none; }
.go { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 14px; background: var(--grad); color: #fff; font: 800 14.5px var(--body); text-decoration: none; box-shadow: 0 14px 28px -12px rgba(109, 40, 217, .7); transition: transform .3s var(--ease), box-shadow .3s; }
.go:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(109, 40, 217, .8); }
.go.retry { background: #fff; color: var(--p1); border: 1.5px solid var(--p4); box-shadow: none; }
.go.retry:hover { border-color: var(--p2); background: var(--p5); }
.go[hidden] { display: none; }

/* ───── 下のセクション ───── */
.sec { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 8vh, 96px) clamp(16px, 4vw, 48px) 0; }
.sec-no { margin: 0; font-size: 11.5px; color: var(--p2); }
.sec-title { margin: 6px 0 28px; font: 900 clamp(26px, 3.6vw, 40px)/1.3 var(--body); color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step, .card { position: relative; padding: 24px 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .78); box-shadow: 0 16px 40px -24px rgba(76, 29, 149, .35); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.step:hover, .card:hover { transform: translateY(-4px); border-color: var(--p4); box-shadow: 0 26px 50px -24px rgba(76, 29, 149, .45); }
.step b { display: block; margin: 14px 0 4px; font-size: 10.5px; color: var(--p2); }
.step h3, .card h3 { margin: 0 0 6px; font: 800 17px/1.5 var(--body); color: var(--ink); }
.step p, .card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.step-ico, .card-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); box-shadow: 0 12px 24px -10px rgba(109, 40, 217, .6); }
.step-ico svg, .card-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card .card-ico { margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.qa { display: grid; gap: 10px; max-width: 820px; }
.qa details { border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .8); transition: border-color .3s, box-shadow .3s; }
.qa details[open] { border-color: var(--p4); box-shadow: 0 16px 36px -24px rgba(76, 29, 149, .4); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: var(--p5); color: var(--p1); font: 700 16px/1 var(--mono-f); transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 20px 18px; font-size: 14px; color: var(--ink-2); }

.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; max-width: 1180px; margin: clamp(56px, 9vh, 110px) auto 0; padding: 28px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.foot-logo { font: 700 16px/1 var(--en); color: var(--ink); }
.foot-logo b { margin-left: 5px; font: 600 10px/1 var(--mono-f); letter-spacing: .2em; color: var(--p2); text-transform: uppercase; }
.foot a { margin-left: auto; color: var(--p1); font-weight: 700; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line-2); border-radius: 28px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.contact h3 { margin: 0 0 6px; font: 800 19px/1.5 var(--body); color: var(--ink); }
.contact p { max-width: 34em; margin: 0; font-size: 14px; color: var(--ink-2); }
.contact .launch { flex: none; width: auto; padding: 0 28px; }
@media (max-width: 760px) { .contact .launch { width: 100%; } }

/* ───── オーナー用：メンバーの復元 ───── */
.restore-main { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: clamp(32px, 6vh, 72px) 16px 64px; }
.restore-lead { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
#r-login[hidden], #r-form[hidden], #r-job[hidden], .restore-note[hidden] { display: none; }
#r-form { display: grid; }
#r-form .agree { margin: 4px 0 14px; }
.restore-count { margin: 0 0 12px; font-weight: 700; color: var(--ink-2); }
.restore-count b { font: 700 24px var(--mono-f); color: var(--p1); }
.restore-steps { margin: 0 0 16px; padding-left: 1.3em; font-size: 13.5px; color: var(--ink-2); }
.restore-steps li + li { margin-top: 4px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input { padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; font: 500 15px var(--mono-f); color: var(--ink); outline: none; transition: border-color .25s, box-shadow .25s; }
.field input:focus { border-color: var(--p3); box-shadow: 0 0 0 4px rgba(167, 139, 250, .18); }
.restore-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff1f3; color: var(--rose); font-size: 13.5px; font-weight: 700; }
.restore-job { margin-top: 16px; }
.restore-bar { height: 10px; border-radius: 999px; background: var(--p5); overflow: hidden; }
.restore-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad); transition: width .6s var(--ease); }
.restore-progress { margin: 10px 0 0; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.restore-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.restore-stats li { padding: 10px 4px; border-radius: 12px; background: rgba(237, 233, 254, .6); text-align: center; font-size: 11.5px; color: var(--dim); }
.restore-stats b { display: block; font: 700 20px var(--mono-f); color: var(--ink); }

/* 中くらいの画面幅：上のメニューと時計が2行に折れないように */
.nav a, .bar-clock { white-space: nowrap; }
@media (max-width: 900px) { .nav { display: none; } }

/* ───── 登場の演出 ───── */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f3eeff 55%, #e9e1ff 100%); cursor: pointer; transition: opacity .7s var(--ease), visibility .7s; }
.intro-bloom { position: absolute; width: 60vmin; height: 60vmin; border-radius: 50%; background: radial-gradient(circle, rgba(167, 139, 250, .55), transparent 65%); filter: blur(10px); animation: bloom 1.4s var(--ease) both; }
.intro-core { position: relative; display: grid; justify-items: center; gap: 16px; }
.intro-mark { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 22px; background: var(--grad); box-shadow: 0 24px 50px -14px rgba(109, 40, 217, .7); animation: pop-in .8s var(--snap) both; }
.intro-mark svg { width: 46px; height: 46px; }
.intro-mark .lm-a { fill: rgba(255, 255, 255, .95); }
.intro-mark .lm-b { fill: var(--p2); }
.intro-logo { font: 700 clamp(42px, 9vw, 76px)/1 var(--en); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .9s var(--ease) .15s both; }
.intro-line { width: min(240px, 50vw); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.intro-line i { display: block; height: 100%; background: var(--grad); transform-origin: left; animation: load 1.1s var(--ease) .2s both; }
.intro-text { font-size: 11px; color: var(--p1); animation: rise .9s var(--ease) .3s both; }
.intro.open { opacity: 0; visibility: hidden; }
.intro.open .intro-core { transform: scale(1.08); transition: transform .7s var(--ease); }
@keyframes bloom { from { transform: scale(.2); opacity: 0; } }
@keyframes pop-in { 0% { transform: scale(0) rotate(-20deg); } 70% { transform: scale(1.1) rotate(4deg); } 100% { transform: none; } }
@keyframes load { from { transform: scaleX(0); } }

body.live .hero-copy > *, body.live .panel { animation: rise .9s var(--ease) both; }
body.entering .hero-copy > :nth-child(1) { animation-delay: .05s; } body.entering .hero-copy > :nth-child(2) { animation-delay: .12s; }
body.entering .hero-copy > :nth-child(3) { animation-delay: .2s; } body.entering .hero-copy > :nth-child(4) { animation-delay: .28s; }
body.entering .panel { animation-delay: .22s; }
body.live .result:not([hidden]) > * { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }

/* ───── 押したとき・成功したときの演出 ───── */
.warp { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0 10%, rgba(167, 139, 250, .5) 30%, rgba(109, 40, 217, .35) 60%, rgba(248, 246, 255, .9) 100%); }
.flash { position: fixed; inset: 0; z-index: 61; pointer-events: none; background: #fff; opacity: 0; }
body.launching .warp { animation: warp .75s var(--snap) forwards; }
body.launching .flash { animation: flash .75s ease-in forwards; }
body.launching .stage { animation: zoom-out .75s var(--snap) forwards; }
body.flashing .flash { background: var(--p4); animation: flash-soft .7s ease-out; }
.shock { position: fixed; z-index: 40; pointer-events: none; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid var(--tone); border-radius: 50%; animation: shock 1s var(--ease) forwards; }
.spark { position: fixed; left: 0; top: 0; z-index: 41; pointer-events: none; width: 7px; height: 14px; border-radius: 2px; background: var(--tone); }
.stamp { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; pointer-events: none; font: 700 clamp(30px, 8vw, 120px)/1 var(--en); white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 12px 30px rgba(109, 40, 217, .35)); animation: stamp 1.6s var(--snap) forwards; }
@keyframes spin-border { to { --spin: 360deg; } }
@keyframes ring-run { to { stroke-dashoffset: -100; } }
@keyframes badge-pop { 0% { transform: scale(0) rotate(-90deg); } 60% { transform: scale(1.2) rotate(8deg); } 100% { transform: none; } }
@keyframes throb { 50% { transform: scale(.94); } }
@keyframes shine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
@keyframes shock { to { width: 520px; height: 520px; margin: -260px 0 0 -260px; opacity: 0; border-width: 1px; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.8); } 25% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(.96); } }
@keyframes warp { 0% { opacity: 0; transform: scale(1.4); } 40% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes flash { 0%, 60% { opacity: 0; } 100% { opacity: 1; } }
@keyframes flash-soft { 0% { opacity: .55; } 100% { opacity: 0; } }
@keyframes zoom-out { to { transform: scale(.94); opacity: 0; filter: blur(6px); } }

/* ───── 画面幅 ───── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .bar { gap: 12px; }
  .bar-clock { font-size: 14px; padding: 7px 14px 7px 12px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero .chips { display: none; }
  .lead { margin-bottom: 0; }
  .foot a { margin-left: 0; }
}
@media (max-width: 420px) {
  .bar-clock { font-size: 12.5px; gap: 8px; padding: 6px 12px 6px 10px; }
  .track li span { font-size: 11.5px; }
}

/* ───── 動きを止める ───── */
body.paused *, body.paused *::before, body.paused *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ───── 追加の演出 ───── */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s), transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.reveal.in { opacity: 1; translate: 0 0; }
.step, .card { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.step:hover, .card:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.step::after, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(260px circle at var(--hx, 50%) var(--hy, 0%), rgba(167, 139, 250, .2), transparent 60%); opacity: 0; transition: opacity .3s; }
.step:hover::after, .card:hover::after { opacity: 1; }
.step:hover .step-ico, .card:hover .card-ico { animation: ico-pop .6s var(--snap); }
@keyframes ico-pop { 40% { transform: scale(1.15) rotate(-6deg); } }

.launch { transform: translate(var(--bx, 0px), var(--by, 0px)); }
.launch:hover:not(:disabled) { transform: translate(var(--bx, 0px), calc(var(--by, 0px) - 2px)); }
.launch:active:not(:disabled) { transform: translate(var(--bx, 0px), var(--by, 0px)) scale(.98); }
.launch:hover:not(:disabled) .launch-fill { background: radial-gradient(140px circle at var(--hx, 50%) var(--hy, 120%), rgba(255, 255, 255, .4), transparent 70%); }
.go { position: relative; overflow: hidden; transform: translate(var(--bx, 0px), var(--by, 0px)); }
.go:hover { transform: translate(var(--bx, 0px), calc(var(--by, 0px) - 2px)); }
.press-wave { position: absolute; z-index: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; animation: press-wave .7s var(--ease) forwards; }
@keyframes press-wave { to { transform: scale(28); opacity: 0; } }

.cursor-glow { position: fixed; left: 0; top: 0; z-index: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(167, 139, 250, .24), transparent 65%); opacity: 0; transition: opacity .4s; }
.cursor-glow.on { opacity: 1; }
.tap { position: fixed; z-index: 39; width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 1.5px solid rgba(124, 58, 237, .55); border-radius: 50%; pointer-events: none; animation: tap .6s var(--ease) forwards; }
@keyframes tap { to { transform: scale(6); opacity: 0; } }
.eyebrow i { animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0), 0 0 16px var(--p3); } }
.logo-mark { transition: transform .5s var(--snap); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }

body.paused .reveal { opacity: 1; translate: none; }
body.paused .cursor-glow, body.paused .tap, body.paused .press-wave { display: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; }
  .cursor-glow, .tap, .press-wave { display: none; }
}
