.fs-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); align-items: start; }
@media (min-width: 1000px) { .fs-stage { grid-template-columns: 1fr 300px; } }

/* ブラウザ */
.win { position: relative; border-radius: 14px; overflow: hidden; overflow: clip; background: #fff; color: #222; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 40px 80px -40px rgba(0, 0, 0, .45); font-family: var(--font-body); letter-spacing: .02em; line-height: 1.7; }
.w-tabs { background: #dfe1e5; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px 0; }
.w-dots { display: flex; gap: 6px; padding: 0 8px 10px 2px; }
.w-dots i { width: 11px; height: 11px; border-radius: 50%; background: #c4c7cc; }
.w-tab { background: #fff; border-radius: 9px 9px 0 0; padding: 7px 10px 7px 14px; font-size: .78rem; display: flex; align-items: center; gap: 10px; max-width: 280px; min-width: 0; }
.w-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-tab .fav { width: 14px; height: 14px; border-radius: 3px; background: #e0312b; flex: none; }
.w-x { appearance: none; border: 0; background: transparent; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: .9rem; line-height: 22px; padding: 0; color: #444; flex: none; }
@media (hover: hover) { .w-x:hover { background: #ddd; } }
/* 長いページを下へ読み進めても、アドレスバーと「戻る」が見えるように、上端に留める */
.w-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #e5e5e5; background: #fff; position: sticky; top: 64px; z-index: 31; }
@media (orientation: landscape) and (max-height: 560px) { .w-bar { position: static; } }
.w-nav { appearance: none; border: 0; background: transparent; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: #555; font-size: 1rem; flex: none; }
@media (hover: hover) { .w-nav:hover { background: #eee; } }
.w-addr { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #f1f3f4; border-radius: 999px; padding: 4px 6px 4px 6px; position: relative; }
.w-lock, .w-url { appearance: none; border: 0; background: transparent; font: inherit; cursor: zoom-in; color: #333; border-radius: 999px; }
.w-lock { width: 26px; height: 26px; display: grid; place-items: center; flex: none; }
.w-lock svg { width: 14px; height: 14px; }
@media (hover: hover) { .w-lock:hover, .w-url:hover { background: #e3e5e8; } }
.w-lock:active, .w-url:active { background: #e3e5e8; }
.w-url { font-family: var(--mono); font-size: .76rem; padding: 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; min-width: 0; }
.w-url b { font-weight: 400; color: #111; }
.w-url span { color: #5f6368; }
.w-count { flex: none; align-self: center; margin: 0 2px 4px auto; font-size: .75rem; font-weight: 700; color: #fff; background: #c4241b; border-radius: 999px; padding: 2px 10px; white-space: nowrap; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.w-count.zero { background: #5f6368; }
.w-count.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.3); } }
.pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: min(340px, 86vw); background: #fff; color: #222; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); padding: 16px 18px; font-size: .82rem; line-height: 1.8; animation: popIn .25s cubic-bezier(.2, .8, .2, 1); }
.pop h4 { margin: 0 0 6px; font-family: var(--font-head); font-size: .92rem; }
.pop p { margin: 0; color: #444; }
.pop code { font-family: var(--mono); background: #f3f3f3; padding: 0 4px; border-radius: 4px; word-break: break-all; }
/* 説明の右上に、見つけた違和感の数を出す（タブの数字が画面の外にあっても分かるように） */
.pop h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pop-n { flex: none; font-family: var(--font-body); font-size: .75rem; font-weight: 700; color: #fff; background: #c4241b; border-radius: 999px; padding: 0 9px; line-height: 1.7; }
/* 表記やレビューのページを開いたときの説明は、ページの中に置く */
.pop.insp { position: static; width: auto; margin: 0 0 16px; border-left: 4px solid #c4241b; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } }

/* ショップ */
.shop { position: relative; min-height: 560px; }
.s-view { display: none; }
.s-view.on { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.s-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid #eee; }
.s-logo { font-family: var(--font-head); font-weight: 700; letter-spacing: .25em; font-size: 1rem; }
.s-logo small { font-family: var(--font-body); font-weight: 400; letter-spacing: .05em; font-size: .75rem; color: #6b6b6b; margin-left: 8px; }
.s-cart { font-size: .78rem; color: #555; }
.s-sale { appearance: none; border: 0; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 16px; background: linear-gradient(90deg, #c4241b, #c8401c); color: #fff; padding: 9px 16px; font: inherit; font-weight: 700; font-size: .84rem; cursor: zoom-in; }
.s-sale .t { font-family: var(--mono); font-weight: 400; background: rgba(0, 0, 0, .22); border-radius: 6px; padding: 0 8px; }
.s-item { display: grid; gap: 24px; padding: 26px 22px; }
@media (min-width: 720px) { .s-item { grid-template-columns: 1fr 1fr; gap: 32px; } }
.s-img { background: radial-gradient(circle at 50% 60%, #fff 0, #f1f1f1 70%); border-radius: 10px; aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden; }
.s-img svg { width: 82%; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-1deg); } }
.s-img .badge { position: absolute; left: 12px; top: 12px; background: #d42a20; color: #fff; font-weight: 700; font-size: .78rem; border-radius: 6px; padding: 2px 8px; }
.s-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.5; margin: 0 0 6px; }
.s-rev { appearance: none; border: 0; background: transparent; padding: 0; font: inherit; font-size: .8rem; color: #555; cursor: zoom-in; }
.s-rev .st { color: #a86400; letter-spacing: .05em; }
.s-rev u { text-underline-offset: 3px; }
.s-price { appearance: none; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-align: left; cursor: zoom-in; display: block; margin: 14px 0 6px; }
.s-price del { color: #6b6b6b; font-size: .84rem; margin-right: 8px; }
.s-price b { font-family: var(--font-head); color: #d42a20; font-size: 1.9rem; letter-spacing: .02em; }
.s-price em { font-style: normal; font-weight: 700; color: #fff; background: #d42a20; border-radius: 4px; padding: 0 6px; margin-left: 8px; font-size: .8rem; vertical-align: 4px; }
.s-stock { font-size: .78rem; color: #d42a20; margin-bottom: 14px; }
.s-size { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.s-size button { appearance: none; font: inherit; font-size: .8rem; min-width: 46px; padding: 6px 8px; border: 1px solid #ccc; background: #fff; border-radius: 8px; cursor: pointer; color: #222; }
.s-size button[aria-pressed="true"] { border-color: #222; background: #222; color: #fff; }
.s-buy { appearance: none; width: 100%; border: 0; border-radius: 10px; background: #111; color: #fff; font: inherit; font-weight: 700; padding: 14px; cursor: pointer; transition: transform .15s, background .2s; }
@media (hover: hover) { .s-buy:hover { background: #333; } }
.s-buy:active { transform: scale(.98); }
.s-buy:disabled { background: #bbb; cursor: not-allowed; }
.s-trust { display: flex; gap: 0 14px; flex-wrap: wrap; margin-top: 12px; font-size: .75rem; color: #666; }
.s-foot { border-top: 1px solid #eee; padding: 16px 22px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: .8rem; background: #fafafa; }
.s-foot button { appearance: none; border: 0; background: transparent; padding: 0; font: inherit; color: #1a4ea8; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.s-foot span { color: #6b6b6b; }
.s-panel { padding: 22px; }
.s-panel h3 { font-size: 1.02rem; margin-bottom: 14px; }
.s-back { appearance: none; border: 0; background: transparent; padding: 0; font: inherit; font-size: .8rem; color: #1a4ea8; cursor: pointer; margin-bottom: 14px; }
.law { width: 100%; border-collapse: collapse; font-size: .8rem; }
.law th, .law td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid #eee; }
.law th { width: 9em; color: #666; font-weight: 400; }
.law td { overflow-wrap: anywhere; }
.law td.blank { color: #bbb; }
/* 開いたときに、足りない項目と怪しい項目に印を付ける */
.seen .law td.sus { background: #fff1ee; box-shadow: inset 3px 0 #d42a20; padding-left: 10px; color: #222; }
.seen .law td.sus::after { content: attr(data-note); display: inline-block; margin-left: 8px; font-size: .75rem; font-weight: 700; color: #b3261e; white-space: nowrap; }
.revs { display: grid; gap: 12px; }
.revs div { border: 1px solid #eee; border-radius: 10px; padding: 10px 14px; font-size: .8rem; }
.revs .st { color: #a86400; }
.revs .d { color: #6b6b6b; font-family: var(--mono); font-size: .75rem; margin-left: 8px; }
.seen .revs .d { color: #b3261e; background: #fff1ee; border-radius: 4px; padding: 0 4px; }
.seen .revs .odd { text-decoration: underline wavy #d42a20; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pay { display: grid; gap: 8px; margin: 10px 0 16px; }
.pay label { display: flex; align-items: center; gap: 10px; border: 1px solid #ddd; border-radius: 10px; padding: 10px 14px; font-size: .84rem; cursor: pointer; }
.pay label.off { color: #aaa; cursor: not-allowed; background: #fafafa; }
.pay label { flex-wrap: wrap; }
.pay label.off small { margin-left: auto; font-size: .75rem; }
@media (max-width: 560px) { .pay label.off small { flex-basis: 100%; margin-left: 26px; } }
.bank { appearance: none; border: 1px dashed #d42a20; background: #fff8f6; border-radius: 10px; padding: 12px 14px; width: 100%; text-align: left; font: inherit; font-size: .82rem; color: #222; cursor: zoom-in; margin-bottom: 16px; }
.bank b { font-family: var(--mono); font-weight: 400; }
.addr-f { display: grid; gap: 8px; margin-bottom: 14px; font-size: .8rem; }
.addr-f div { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 6px 0; }
.addr-f span { color: #6b6b6b; }

/* 送金後・脱出後 */
.s-end { position: absolute; inset: 0; z-index: 30; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; background: #fff; }
.s-end.on { display: flex; animation: fadeIn .35s ease; }
.s-end .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.5; }
.s-end .cal { display: flex; gap: 6px; font-family: var(--mono); }
.s-end .cal span { display: inline-block; min-width: 2.2em; padding: 6px 4px; border-radius: 8px; background: #222; color: #fff; animation: flip .5s ease both; }
.s-end .cal span:nth-child(2) { animation-delay: .15s; } .s-end .cal span:nth-child(3) { animation-delay: .3s; }
@keyframes flip { from { transform: rotateX(90deg); } }
.s-end p { color: #555; font-size: .88rem; max-width: 30em; margin: 0; }
.s-404 { font-family: var(--mono); color: #6b6b6b; font-size: .82rem; }

/* 違和感の一覧 */
.clues h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.clues .count { font-family: var(--mono); color: var(--ink-3); font-size: .9rem; margin: 8px 0 0; }
.cl { list-style: none; margin: 20px 0 0; padding: 0; }
.cl li { display: grid; grid-template-columns: 1.8em 1fr; gap: 10px; align-items: baseline; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-3); }
.cl li:last-child { border-bottom: 1px solid var(--line); }
.cl li i { font-style: normal; font-family: var(--mono); font-size: .8rem; }
.cl li .t:empty::before { content: ""; display: inline-block; width: min(10em, 100%); height: 1px; background: var(--line); vertical-align: middle; }
.cl li.on { color: var(--ink); animation: clIn .5s cubic-bezier(.2, .8, .2, 1); }
.cl li.on i { color: var(--accent); }
.cl li.missed { color: var(--ink-2); }
.cl li.missed .t::after { content: "見逃し"; margin-left: 10px; font-size: .74rem; color: var(--ink-3); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; white-space: nowrap; }
@keyframes clIn { from { opacity: 0; transform: translateX(-10px); background: var(--accent-soft); } }
.fs-result { margin-top: 36px; }
.fs-result:empty { display: none; }
.fs-result .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.5; margin-bottom: 10px; }
.fs-result .big:focus { outline: none; }
.fs-result.good .big { color: var(--ok); }
.fs-result.bad .big { color: var(--danger); }
.fs-result p { color: var(--ink-2); }
.fs-result .rule { margin-top: 14px; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 700; line-height: 1.8; word-break: auto-phrase; text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { .s-img svg, .s-end .cal span, .cl li.on, .w-count.bump, .pop, .s-view.on, .s-end.on { animation: none; } }
.s-end:focus { outline: none; }
/* 違和感の数を目立たせ、操作がないときは未発見の場所を光らせる */
.w-count { font-size: .82rem; padding: 3px 12px; }
.hint { animation: hintPulse 1.6s ease-in-out infinite; border-radius: 8px; }
@keyframes hintPulse { 50% { box-shadow: 0 0 0 4px rgba(212, 42, 32, .35); } }
@media (prefers-reduced-motion: reduce) { .hint { animation: none; box-shadow: 0 0 0 3px rgba(212, 42, 32, .35); } }

/* 指で触れる端末では、ブラウザの操作部やリンクを押しやすい大きさにする */
@media (pointer: coarse) {
  .w-x { position: relative; width: 32px; height: 32px; line-height: 32px; }
  .w-nav { position: relative; width: 40px; height: 40px; }
  .w-x::before, .w-nav::before { content: ""; position: absolute; inset: -6px; }
  .w-addr { padding: 2px 4px; }
  .w-lock { width: 44px; height: 44px; }
  .w-url { min-height: 44px; }
  .s-sale { min-height: 44px; }
  .s-rev, .s-back { min-height: 44px; }
  .s-size { gap: 8px; }
  .s-size button { min-width: 48px; min-height: 44px; }
  .s-foot { padding-block: 6px 12px; column-gap: 24px; }
  .s-foot button { min-height: 44px; }
  .pay label { min-height: 48px; }
}
/* 実機のスマートフォンでは、スマートフォンのブラウザに近い見た目にし、商品を広く見せる */
@media (max-width: 600px) {
  .fs-stage > .win { margin-inline: -8px; }
  .w-tabs { padding: 6px 8px 0; }
  .w-dots { display: none; }
  .w-tab { flex: 0 1 auto; }
  .w-bar { padding: 6px 8px; gap: 6px; }
  .w-url span { display: none; }
  .w-url { padding-inline: 4px; letter-spacing: 0; }
  .s-head { padding: 12px 16px; gap: 12px; }
  .s-logo { letter-spacing: .16em; }
  .s-logo small { display: block; margin-left: 0; }
  .s-cart { white-space: nowrap; }
  .s-item { padding: 18px 16px 20px; gap: 16px; }
  .s-img { aspect-ratio: 16 / 9; }
  .s-img svg { width: 64%; }
  .s-foot { padding-inline: 16px; }
  .s-panel { padding: 16px; }
  .shop { min-height: 480px; }
  .law th { width: 7em; }
  .s-end { justify-content: flex-start; padding-top: 64px; }
}

.signs { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .signs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .signs { grid-template-columns: repeat(3, 1fr); } }
.signs div { background: var(--bg); padding: clamp(22px, 3vw, 32px); }
.signs h3 { font-size: 1.02rem; margin-bottom: 8px; }
.signs p { color: var(--ink-2); font-size: .92rem; }
