/* 速度測定のページ（/xx/speed-test）。見た目は NoSnoop アプリ（ns.css の上に重ねる）。2026-12-05
   色が付くのは玉だけ：測っている間は青紫で呼吸、測り終えたら速さで緑・橙・赤。 */
/* 横幅は NoSnoop の紹介ページ（body.lp）と同じ 1040px */
body.st main { max-width: 1040px; padding: 8px 24px 72px; }
body.st header.site { max-width: 1040px; padding: 16px 24px; }
/* ロゴ：ns.css の「紹介ページ以外は gap 0」（規約ページ用）を打ち消し、紹介ページと同じアイコンと文字の間隔に */
body.ns.st header.site .brand { gap: 10px; }

/* 上の面：測定の下に NoSnoop の案内を中央そろえで（紹介ページのファーストビューと同じ面） */
.st-top {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center;
  background: linear-gradient(160deg, #FFFFFF 0%, var(--soft) 100%);
  border: 1px solid var(--line); border-radius: 24px; padding: 36px 40px; margin: 8px 0 0;
}
.st-top .st-tool { width: 100%; max-width: 560px; }
.st-top .st-ns { margin: 0; width: 100%; max-width: 620px; text-align: center; }
html[lang=ja] .st-ns p, html[lang=ja] .st-h1, html[lang=ja] .st-verdict, html[lang=ja] .st-label { word-break: auto-phrase; }
.st-top .st-ns-head { justify-content: center; }
.st-top .st-ns .gp-badge { margin: 0 auto; }
.st-top .st-ns .gp-badge img { margin: 0 auto; }

/* 測定の面 */
.st-tool { text-align: center; padding: 28px 16px 8px; }
.st-h1 { font-size: 22px; font-weight: 300; letter-spacing: -.01em; margin: 0 0 6px; }
.st-label { color: var(--muted); font-size: 15px; margin: 0; min-height: 1.6em; }
.st-orb { width: 200px; height: 200px; border-radius: 50%; margin: 22px auto 18px; transition: filter .6s; }
.st-orb[data-state="idle"], .st-orb[data-state="run"] {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.8), rgba(255,255,255,0) 30%),
    radial-gradient(circle at 30% 35%, #BFDBFE, rgba(191,219,254,0) 45%),
    radial-gradient(circle at 70% 75%, #AD46FF, rgba(173,70,255,0) 45%),
    radial-gradient(circle, #2B7FFF, #6D28D9 72%);
  box-shadow: 0 40px 50px -24px rgba(43,127,255,.45);
}
.st-orb[data-state="run"] { animation: st-breathe 1.1s ease-in-out infinite alternate; }
.st-orb[data-state="good"] {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.8), rgba(255,255,255,0) 30%),
    radial-gradient(circle at 30% 35%, #86EFAC, rgba(134,239,172,0) 45%),
    radial-gradient(circle at 70% 75%, #0EA5A4, rgba(14,165,164,0) 45%),
    radial-gradient(circle, #22C55E, #0F766E 72%);
  box-shadow: 0 40px 50px -24px rgba(34,197,94,.45);
}
.st-orb[data-state="ok"] {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.8), rgba(255,255,255,0) 30%),
    radial-gradient(circle at 30% 35%, #FDE68A, rgba(253,230,138,0) 45%),
    radial-gradient(circle at 70% 75%, #F97316, rgba(249,115,22,0) 45%),
    radial-gradient(circle, #F59E0B, #EA580C 72%);
  box-shadow: 0 40px 50px -24px rgba(245,158,11,.45);
}
.st-orb[data-state="slow"], .st-orb[data-state="error"] {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.8), rgba(255,255,255,0) 30%),
    radial-gradient(circle at 30% 35%, #FDA4AF, rgba(253,164,175,0) 45%),
    radial-gradient(circle at 70% 75%, #F6339A, rgba(246,51,154,0) 45%),
    radial-gradient(circle, #FB2C36, #BE123C 72%);
  box-shadow: 0 40px 50px -24px rgba(251,44,54,.40);
}
@keyframes st-breathe { from { opacity: .72; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st-orb[data-state="run"] { animation: none; } }

.st-speed { font-size: 76px; font-weight: 300; letter-spacing: -.04em; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.st-speed .st-unit { font-size: 22px; color: var(--muted); letter-spacing: 0; margin-inline-start: 6px; }
.st-verdict { margin: 12px 0 0; font-size: 15px; min-height: 1.5em; }
.st-verdict[data-tone="good"] { color: var(--safe); }
.st-verdict[data-tone="ok"] { color: var(--caution); }
.st-verdict[data-tone="slow"], .st-verdict[data-tone="error"] { color: var(--danger); }

.st-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 0; }
.st-card { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; color: var(--muted); font-size: 12.5px; }
.st-card b { display: block; color: var(--ink); font-size: 26px; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-meta { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); font-size: 12px; margin: 14px 0 0; min-height: 1.5em; }
.st-btn { display: inline-block; margin: 16px 0 0; background: var(--ink); color: #fff !important; border: 0; border-radius: 999px; padding: 11px 26px; font: inherit; font-size: 15px; cursor: pointer; }
.st-btn[hidden] { display: none; }
.st-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* NoSnoop の案内（測っている最中から出す・位置は動かさない） */
.st-ns { display: block; margin: 28px 0 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); }
.st-ns-head { display: flex; align-items: center; gap: 12px; }
.st-ns-head img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.st-ns .st-ns-title { font-size: 22px; font-weight: 300; letter-spacing: -.01em; margin: 0; }
.st-ns p { color: #3d3a36; margin: 10px 0 12px; font-size: 14.5px; }
.st-ns .gp-badge { margin: 0 0 0 -8px; }
.st-ns .gp-badge img { height: 64px; width: auto; display: block; margin: 0; }

/* 関連アプリ（記事と同じ中身を NoSnoop の札の形で） */
body.st .apps-related { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
body.st .apps-related h2 { grid-column: 1 / -1; }
body.st .apps-related h2 { font-size: 22px; font-weight: 300; letter-spacing: -.01em; margin: 0 0 12px; padding: 0; border: 0; }
body.st .apps-related .cta-top { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
body.st .apps-related img.ct-icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); flex: none; }
body.st .apps-related .ct-text { flex: 1 1 0; min-width: 0; line-height: 1.35; }
body.st .apps-related .ct-text strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; font-weight: 500; }
body.st .apps-related .ct-text span { display: block; font-size: 12.5px; color: var(--muted); }
body.st .apps-related img.ct-badge { height: 36px; width: auto; flex: none; }

/* 説明文 */
body.st .st-doc { margin: 48px 0 0; }
body.st .st-doc { max-width: 760px; }
body.st .st-doc h2 { font-weight: 300; font-size: 36px; letter-spacing: -.02em; margin: 40px 0 12px; }
body.st .st-doc p, body.st .st-doc li { color: #3d3a36; }
body.st .st-doc table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
body.st .st-doc th, body.st .st-doc td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: start; }
body.st .st-doc th { background: var(--soft); font-weight: 500; }
body.st .st-doc .st-src { font-size: 12.5px; color: var(--muted); }

@media (max-width: 860px) {
  .st-top { padding: 28px 18px; border-radius: 18px; gap: 20px; }
  body.st .apps-related { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.st main { padding: 8px 18px 56px; }
  .st-h1 { font-size: 19px; }
  .st-orb { margin: 16px auto 12px; }
  .st-orb { width: 160px; height: 160px; }
  .st-speed { font-size: 64px; }
  .st-card b { font-size: 22px; }
  .st-ns .gp-badge img { height: 56px; }
  body.st .apps-related img.ct-badge { height: 30px; }
  body.st .st-doc h2 { font-size: 24px; }
}
