/* 動く LP（lp/v2/）：lp.css・noperson.css の上に重ねる。画面の中の管理画面・通知を HTML で描いて、v2.js で動かす。
   既定（動かないとき）は最後の場面。.armed（v2.js が付ける）のときだけ、はじめの状態に戻して時刻どおりに出す */

.v2-note { background: #15181d; color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; }

/* ---------------------------------------------------------------- 出し入れのきまり */
[data-at], [data-off] { transition: opacity .45s ease, transform .5s cubic-bezier(.2, .9, .25, 1.15); }
.armed [data-at]:not(.on):not(.v2-keep) { opacity: 0; transform: translateY(10px) scale(.98); }
.armed .off { display: none !important; }
.v2-scene:not(.armed) [data-off] { display: none !important; }
.v2-replay { display: none; margin: 16px auto 0; padding: .5em 1.2em; border: 1.5px solid currentColor; border-radius: 999px; background: transparent;
             color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; opacity: .8; }
.v2-scene.done .v2-replay { display: block; }
.v2-replay:hover { opacity: 1; }

/* ---------------------------------------------------------------- 写真の中の画面・写真がないときの機械の枠 */
.v2-stage { position: relative; overflow: hidden; border-radius: 22px; box-shadow: 0 40px 70px -40px rgba(21, 25, 30, .55); }
.v2-stage > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v2-stage .v2-screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.v2-screen { container-type: inline-size; overflow: hidden; background: #f6f7f9; color: var(--ink); text-align: left; line-height: 1.45; }

.v2-laptop { position: relative; padding: 2.2% 2.2% 0; border-radius: 18px 18px 6px 6px; background: #1d2026; box-shadow: 0 40px 70px -40px rgba(21, 25, 30, .6); }
.v2-laptop::after { content: ""; display: block; height: 14px; margin: 0 -7% 0; border-radius: 0 0 14px 14px; background: linear-gradient(#cfd3d8, #a9aeb5); }
.v2-laptop .v2-screen { aspect-ratio: 16 / 10; border-radius: 6px 6px 0 0; }
.v2-phone { width: min(300px, 100%); padding: 10px; border-radius: 40px; background: #121418; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .7); }
.v2-phone .v2-screen { aspect-ratio: 9 / 19.5; border-radius: 31px; }
.v2-devices { position: relative; }
.v2-phones { display: flex; justify-content: center; gap: 18px; }
.v2-phones .v2-phone { width: min(250px, 48%); }

/* ---------------------------------------------------------------- 管理画面（パソコン。文字の大きさは画面の幅に対する割合 cqi） */
.ui { position: relative; height: 100%; padding: 3cqi 3.4cqi; font-size: 1.9cqi; display: flex; flex-direction: column; gap: 2cqi; }
.ui-bar { display: flex; align-items: center; gap: 1.2cqi; padding-bottom: 1.6cqi; border-bottom: 1px solid #e3e6ea; }
.ui-bar b { font-size: 2.3cqi; }
.ui-mark { width: 3.4cqi; height: 3.4cqi; border-radius: .9cqi; background: var(--a); }
.ui-live { margin-left: auto; display: inline-flex; align-items: center; gap: .8cqi; padding: .4cqi 1.4cqi; border-radius: 99px; background: #e8f6ee;
           color: #157a45; font-weight: 700; font-size: 1.7cqi; }
.ui-live i { width: 1.2cqi; height: 1.2cqi; border-radius: 50%; background: #22a861; animation: v2-pulse 1.6s ease-in-out infinite; }
@keyframes v2-pulse { 50% { box-shadow: 0 0 0 .9cqi rgba(34, 168, 97, .18); } }
.ui-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqi; }
.ui-tiles div { padding: 1.4cqi 1.8cqi; border-radius: 1.2cqi; background: #fff; border: 1px solid #e3e6ea; }
.ui-tiles small { display: block; color: var(--muted); font-size: 1.5cqi; }
.ui-tiles b { font-size: 3.4cqi; line-height: 1.2; }
.ui-tiles b small { display: inline; font-size: .5em; color: var(--muted); }
.ui-item { padding: 2cqi; border-radius: 1.4cqi; background: #fff; border: 1px solid #e3e6ea; display: grid; gap: 1.4cqi; }
.ui-item-h { display: flex; align-items: center; gap: 1.6cqi; }
.ui-item-h b { display: block; font-size: 2.2cqi; }
.ui-item-h small { color: var(--muted); }
.ui-thumb { flex: none; width: 6.4cqi; height: 6.4cqi; border-radius: 1cqi; background: linear-gradient(135deg, #d9dde2, #c2c8cf); }
.ui-st { margin-left: auto; display: grid; }
.ui-stack { display: inline-grid; }
.ui-stack > * { grid-area: 1 / 1; }
.ui-quiet { opacity: .75; }
.ui-st > * { grid-area: 1 / 1; justify-self: end; }
.st { font-style: normal; font-weight: 700; padding: .5cqi 1.6cqi; border-radius: 99px; font-size: 1.7cqi; white-space: nowrap; }
.st.w { background: #eef0f3; color: #4a5059; }
.st.y { background: #fff3d6; color: #8a5a00; }
.st.g { background: #e1f5e9; color: #157a45; }
.ui-sites { list-style: none; margin: 0; padding: 0; display: grid; gap: .8cqi; }
.ui-sites li { display: flex; align-items: center; gap: 1.4cqi; padding: 1cqi 1.4cqi; border-radius: 1cqi; background: #f6f7f9; }
.ui-sites li > span { width: 13cqi; color: var(--muted); font-weight: 700; }
.ui-sites li { display: grid; grid-template-columns: 13cqi minmax(0, 1fr); }
.ui-sites li > em { grid-column: 2; grid-row: 1; font-style: normal; font-weight: 700; }
.s.r { color: #b3261e; }
.s.g { color: #157a45; }
.ui-toast { position: absolute; right: 3cqi; bottom: 3cqi; max-width: 70%; padding: 1.4cqi 2cqi; border-radius: 1.2cqi; background: #1f2329; color: #fff;
            font-weight: 700; font-size: 1.8cqi; box-shadow: 0 1.4cqi 3cqi rgba(0, 0, 0, .25); }
.ui-toast.g { background: #157a45; }
.ui-spin { display: inline-block; width: 1.6cqi; height: 1.6cqi; margin-right: .6cqi; vertical-align: -.2cqi; border: .35cqi solid currentColor; border-right-color: transparent;
           border-radius: 50%; animation: v2-spin .8s linear infinite; }
@keyframes v2-spin { to { transform: rotate(1turn); } }

/* フリマレーダーの検索の見張り */
.ui-cap { margin: 0; display: flex; align-items: center; gap: 1cqi; color: var(--muted); font-weight: 700; }
.ui-radar { position: relative; width: 3cqi; height: 3cqi; border-radius: 50%; border: .3cqi solid var(--a); overflow: hidden; }
.ui-radar::after { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg, color-mix(in srgb, var(--a) 70%, transparent), transparent 30%);
                   animation: v2-spin 1.6s linear infinite; }
.ui-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 1cqi; }
.ui-feed li { display: flex; align-items: center; gap: 1.6cqi; padding: 1.2cqi 1.6cqi; border-radius: 1.2cqi; background: #fff; border: 1px solid #e3e6ea; }
.ui-feed li span { display: grid; font-weight: 700; }
.ui-feed li small { color: var(--muted); font-weight: 400; }
.ui-feed li em { margin-left: auto; font-style: normal; font-size: 1.6cqi; font-weight: 700; color: #8a9099; white-space: nowrap; }
.ui-feed li.hit { border: .3cqi solid var(--a); box-shadow: 0 0 0 .8cqi color-mix(in srgb, var(--a) 14%, transparent); }
.ui-feed li.hit em { color: var(--a); }
.ui-feed .ui-thumb { width: 5cqi; height: 5cqi; }

/* ---------------------------------------------------------------- スマホ（ロック画面・アプリ。幅に対する割合で描く） */
.ph { position: relative; height: 100%; padding: 11cqi 4cqi 6cqi; background: linear-gradient(180deg, #23343a, #10161d); color: #fff; font-size: 4.2cqi; }
.ph-time { margin: 0; text-align: center; font-size: 15cqi; font-weight: 500; line-height: 1; letter-spacing: .02em; }
.ph-date { margin: 2cqi 0 7cqi; text-align: center; font-size: 4.2cqi; opacity: .85; }
.ph-notes { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2.6cqi; }
.ph-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6cqi 2cqi; padding: 4cqi 4.4cqi; border-radius: 5cqi; background: rgba(247, 248, 250, .95);
           color: var(--ink); }
.ph-note b { font-size: 4.4cqi; color: #4a5059; }
.ph-note time { font-size: 4cqi; color: var(--muted); }
.ph-note p { grid-column: 1 / -1; margin: 0; font-weight: 900; font-size: 5.6cqi; line-height: 1.35; }
.ph-note small { grid-column: 1 / -1; font-size: 4.6cqi; color: #3a3f46; }
.ph-note.ok b, .ph-note.ok small { color: #157a45; }
.ph-note.ok { box-shadow: inset 1.2cqi 0 0 #22a861; }
.ph-app { background: #eef0f3; color: var(--ink); padding: 12cqi 4cqi 4cqi; }
.ph-head { margin: 0 0 4cqi; font-weight: 900; font-size: 6cqi; }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4cqi; }
.ph-list li { position: relative; display: grid; grid-template-columns: 20cqi minmax(0, 1fr); gap: 3.4cqi; align-items: center; padding: 3cqi; border-radius: 3.6cqi; background: #fff; }
.ph-list li i { position: relative; width: 20cqi; height: 20cqi; border-radius: 2.4cqi; background: linear-gradient(135deg, #d9dde2, #c2c8cf); }
/* 右は、斜めの「SOLD」のはんこ（幅は約25cqi）の分だけあけて、商品名がはんこの下に隠れないようにする */
.ph-list li span { display: grid; font-weight: 700; font-size: 5.2cqi; line-height: 1.35; padding-right: 24cqi; word-break: auto-phrase; }
.ph-list li small { color: var(--muted); }
.ph-list li .new { position: absolute; left: -1cqi; top: -1cqi; padding: .3cqi 1.6cqi; border-radius: 1.2cqi; background: #e0473a; color: #fff; font-size: 3.6cqi; font-weight: 900; font-style: normal; }
.ph-list li .sold { position: absolute; right: 3cqi; top: 50%; translate: 0 -50%; padding: .8cqi 2.4cqi; border: .6cqi solid #e0473a; border-radius: 1.6cqi; color: #e0473a;
                    font-weight: 900; font-size: 5.4cqi; letter-spacing: .08em; rotate: -8deg; background: rgba(255, 255, 255, .9); }
.armed .ph-list li .sold:not(.on) { transform: scale(2.2); }

/* ---------------------------------------------------------------- はんこ・ひとこと・進み具合 */
.v2-stamp { position: absolute; left: 50%; top: 44%; translate: -50% -50%; rotate: -10deg; z-index: 3; padding: .25em .8em; border: .16em solid #e0473a;
            border-radius: .4em; color: #e0473a; background: rgba(255, 255, 255, .92); font-weight: 900; font-size: clamp(1.4rem, 4vw, 2.6rem); letter-spacing: .1em; white-space: nowrap; }
.armed .v2-stamp:not(.on) { transform: scale(2.4); }
.v2-msg { position: relative; z-index: 2; max-width: 30em; margin: 14px auto 0; padding: .9em 1.2em; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink);
          font-size: 14.5px; min-height: 3.2em; text-align: left; }
.v2-msg small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.v2-label { margin: 14px auto 0; display: table; padding: .45em 1.1em; border-radius: 12px; background: var(--a); color: #fff; font-weight: 900; font-size: clamp(1rem, 2vw, 1.15rem); }
.v2-progress { max-width: 420px; margin: 18px auto 0; display: grid; gap: 8px; color: #fff; font-weight: 700; }
.v2-progress .track { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.v2-progress .bar { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--a2), var(--a)); transition: width 3.6s linear; }
.armed .v2-progress .bar:not(.on) { width: 0; opacity: 1; transform: none; }
.v2-progress span b { font-size: 1.5em; color: var(--a2); }
.v2-ring { display: grid; justify-items: center; gap: 4px; margin: 18px auto 0; color: #fff; }
.v2-ring svg { width: 108px; height: 108px; rotate: -90deg; }
.v2-ring circle { fill: none; stroke-width: 8; }
.v2-ring .bg { stroke: rgba(255, 255, 255, .15); }
.v2-ring .fg { stroke: var(--a2); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 40; transition: stroke-dashoffset 1.2s ease-out; }
.armed .v2-ring:not(.on) .fg { stroke-dashoffset: 289; }
.v2-ring .num { margin-top: -78px; margin-bottom: 30px; font-weight: 900; font-size: 1.8rem; line-height: 1; }
.v2-ring .num small { font-size: .5em; }
.v2-ring > span { font-size: 13px; font-weight: 700; opacity: .85; }

/* ---------------------------------------------------------------- 悩みの場面（写真と一覧を並べる） */
.v2-problem { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; padding: 36px; border-radius: 22px; background: #1c1e23; }
.v2-problem .checklist { position: static; width: auto; }
.v2-problem .stage-wrap { position: relative; }
.armed .checklist li[data-at]:not(.on) { opacity: .25; transform: none; }
.checklist li[data-at] { transition: opacity .4s ease; }
@media (max-width: 860px) { .v2-problem { grid-template-columns: minmax(0, 1fr); padding: 22px 14px; gap: 18px; } }

.v2-after { max-width: 760px; margin: 0 auto; position: relative; }

/* ---------------------------------------------------------------- AI の振り分け（フリマレーダー） */
.v2-ai { max-width: 1000px; margin: 0 auto 34px; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.v2-ai-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 22px; margin-bottom: 18px; }
.v2-ai-head p { margin: 0; color: var(--muted); font-weight: 700; word-break: auto-phrase; text-wrap: balance; text-align: center; }
.v2-ai-head b { font-size: 2.4rem; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.v2-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.v2-chip { padding: .45em .9em; border-radius: 10px; background: var(--a-tint); color: var(--a-ink); font-size: 13.5px; font-weight: 700;
           transition: background .35s, color .35s, opacity .35s, transform .35s; }
.v2-chip.ng { background: #eef0f3; color: #9aa0a8; text-decoration: line-through; opacity: .7; }
.armed .v2-chip.ng:not(.on) { background: var(--a-tint); color: var(--a-ink); text-decoration: none; opacity: 1; }
.v2-chip.ok { background: var(--a); color: #fff; box-shadow: 0 8px 20px -10px var(--a); }
.armed .v2-chip.ok:not(.on) { background: var(--a-tint); color: var(--a-ink); box-shadow: none; transform: none; opacity: 1; }
.v2-chip.ok.on { transform: scale(1.06); }

/* ---------------------------------------------------------------- しくみ（番号が順に光る） */
.v2-flow li[data-at] .num { transition: background .4s, box-shadow .4s; }
.armed .v2-flow li[data-at]:not(.on) { opacity: .35; transform: none; }
.v2-flow li.on .num { box-shadow: 0 0 0 8px color-mix(in srgb, var(--a) 16%, transparent); }

/* ---------------------------------------------------------------- 最後の帯の写真（ゆっくり寄る） */
.v2-final { margin: 0 auto 26px; max-width: 1060px; }
.v2-final.on > img, .v2-final > img { animation: v2-zoom 18s ease-out both; }
@keyframes v2-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* 新しいものが上に積まれる一覧（通知・新着）は、出るまで場所をとらない。出るときは上から下りてくる */
.armed .ph-note[data-at]:not(.on), .armed .ui-feed li[data-at]:not(.on) { display: none; }
.armed .ph-note.on, .armed .ui-feed li.on { animation: v2-drop .5s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes v2-drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.v2-devices > .v2-phone { margin-inline: auto; }
.v2-progress small { display: block; font-size: 12px; font-weight: 400; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  .ui-live i, .ui-radar::after, .ui-spin, .v2-final > img { animation: none !important; }
}

/* いちばん上の写真の枠：イラスト用のふちをぼかす効果（mask）と高さの上限（スマホ・タブレットでは 50vh）を外す。
   ぼかすと、写真の左下に重ねた札が薄くなり、高さを切ると、札が下のポイントに重なるため。タブレットでは大きくなりすぎないよう幅で抑える */
.kv-art.v2-hero { max-height: none; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 860px) { .kv-art.v2-hero { width: 100%; max-width: 600px; } }

/* ---------------------------------------------------------------- いちばん上の写真に重ねる大きな札 */
.v2-calls { position: absolute; left: 4%; bottom: 6%; z-index: 4; display: grid; max-width: 78%; }
.v2-devices .v2-calls { left: 2%; bottom: 10%; }
.v2-calls > * { grid-area: 1 / 1; align-self: end; }
.v2-call { margin: 0; display: flex; align-items: center; gap: .6em; padding: .7em 1.1em; border-radius: 14px; background: rgba(255, 255, 255, .96);
           color: var(--ink); font-weight: 900; font-size: clamp(13px, 1.25vw, 16px); line-height: 1.4; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .55); }
.v2-call .ui-spin, .v2-call .ui-radar { width: 1.1em; height: 1.1em; margin: 0; flex: none; }
.v2-call .ui-radar { border-width: 2px; }
.v2-dot { flex: none; width: .65em; height: .65em; border-radius: 50%; background: #22a861; box-shadow: 0 0 0 .3em rgba(34, 168, 97, .18); }
.v2-call.warn .v2-dot { background: #e0473a; box-shadow: 0 0 0 .3em rgba(224, 71, 58, .18); }
.v2-call.warn { color: #8a2a1e; }
.v2-call.ok { display: grid; gap: 2px; border-left: 6px solid #22a861; }
.v2-call.ok b { font-size: 1.08em; }
.v2-call.ok span { font-size: .86em; font-weight: 700; color: #157a45; }

/* 写真（パソコンの幅）と大きな機械の枠（スマホの幅）の出し分け */
.v2-narrow { display: none; }
@media (max-width: 700px) { .v2-wide { display: none; } .v2-narrow { display: block; } }

/* 最後の帯：見出しを写真の左に重ねる */
.v2-final-wrap { max-width: 1060px; margin: 0 auto 26px; }
.v2-final { overflow: hidden; }
.v2-final-title { position: absolute; left: 5%; top: 50%; translate: 0 -50%; z-index: 4; margin: 0; max-width: 46%; text-align: left; color: #fff;
                  font-weight: 900; font-size: clamp(1.3rem, 3.2vw, 2.4rem); line-height: 1.4; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.sk .v2-final-title { color: var(--ink); text-shadow: 0 1px 14px rgba(255, 255, 255, .9); }
@media (max-width: 700px) { .v2-final-title, .sk .v2-final-title { position: static; translate: none; max-width: none; margin-top: 16px; text-align: center; color: #fff; text-shadow: none; } .v2-final { overflow: visible; } .v2-final > img { border-radius: 18px; } }
/* スマホで見出しを写真の下に出すときは、影を写真だけに付ける（見出しまで囲む影の箱が見えないように） */
@media (max-width: 700px) { .v2-final { box-shadow: none; border-radius: 0; } .v2-final > img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); } }

/* 写真の中のスマホの画面は角が丸い。ツールがあるときの場面の下の文は、上に重ねない */
/* スマホの画面は、重ねる前の幅が 400px（v2.js が写真で測った丸みにする。これは測れなかったときの丸み）。
   cqi は使わない（この要素の外に入れ物がないと、ブラウザの幅に対する割合になり、広い画面で丸くなりすぎる） */
.v2-stage .v2-screen.is-phone { border-radius: 40px; }
.v2-after + .solve-lead, .v2-after ~ .solve-lead { margin-top: 26px; }

/* 角の丸い写真のスマホに重ねるときは、ふちを少し暗くなじませる */
.v2-stage .v2-screen.is-phone { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
/* ロック画面のスマホは、地も暗くする（ゆがめて重ねると、ふちに地の明るい色が細い線になって見えるため） */
.v2-screen:has(> .ph) { background: #10161d; }
.v2-ai-head b.ui-stack { display: inline-grid; justify-items: start; }

/* スマホ1台の写真は縦長。並べたときに大きくなりすぎないように */
.v2-after { max-width: 440px; }
.v2-problem .stage-wrap .v2-stage { max-width: 440px; margin-inline: auto; }
.v2-problem.is-pair .stage-wrap .v2-stage { max-width: none; }

/* 数字のカード：数え上げる数字（.v2-num）は、単位の小さい字（.badges b span）と同じにしない。カードの数字の大きさをそろえる。
   パソコンでは3つずつ2段にして、文字を大きくする（6つを1段に並べると、カードが細くて文字を大きくできない）。
   文字はカードの幅に合わせる（カードは container-type: inline-size。スマホの2列でもはみ出さない） */
.noperson .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; gap: 14px; }
@media (max-width: 860px) { .noperson .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.noperson .badges li { align-content: space-between; gap: 10px; min-height: 0; padding: 22px 12px 20px; }
.noperson .badges small { font-size: clamp(13px, 6cqi, 17px); color: var(--ink); opacity: .78; }
.noperson .badges b { font-size: clamp(2rem, 15cqi, 3.2rem); line-height: 1.1; }
.badges b .v2-num, .noperson .badges b .v2-num { font-size: 1em; letter-spacing: -.02em; }
.noperson .badges b .os { font-size: clamp(14px, 7.6cqi, 24px); letter-spacing: 0; }
.noperson .badges-note { font-size: 13.5px; }
