/* Mojicast 製品ページ（日本語 / English 共通） */
/* レイアウト: 字幕デモのヒーロー → いま配信中 → 機能のベント → 3ステップ → 見た目 → 利用者さん → 更新情報 → くわしい人向け（折りたたみ）
   色はアプリ本体（コックピット）のトークンをそのまま使う。ライトが既定、OS がダークならダーク。 */
:root {
  --bg: #f7f9fc;
  --bg-alt: #eef4fa;
  --panel: #ffffff;
  --line: #dbe2ec;
  --ink: #16202e;
  --ink-2: #3d4b5e;
  --dim: #5c6b80;
  --cyan: #0499bd;
  --cyan-soft: #d8f3fa;
  --magenta: #d4247a;
  --magenta-soft: #fde4ef;
  --live: #e0244a;
  --on-accent: #ffffff;
  --checker-a: #ffffff;
  --checker-b: #e7ecf3;
  --shadow: 0 1px 2px rgb(22 32 46 / .06), 0 8px 24px rgb(22 32 46 / .07);

  /* 英字は Nunito、かなと漢字は M PLUS Rounded 1c（Nunito に和文が無いので自然に切り替わる） */
  --f-display: "Nunito", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-round: var(--f-display);
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-card: 20px;
  color-scheme: light;
}
/* 英語版は本文も丸い欧文に（和文のフォールバックは残す） */
html[lang="en"] { --f-body: "Nunito", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --bg-alt: #121925; --panel: #161c26; --line: #2a3547;
    --ink: #e6eef9; --ink-2: #c3cfdf; --dim: #8b99ae;
    --cyan: #00d4f0; --cyan-soft: #0b3340; --magenta: #ff3d9e; --magenta-soft: #3d1328;
    --live: #ff4d6a; --on-accent: #0d1117; --checker-a: #1a212c; --checker-b: #141a23;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --bg-alt: #121925; --panel: #161c26; --line: #2a3547;
  --ink: #e6eef9; --ink-2: #c3cfdf; --dim: #8b99ae;
  --cyan: #00d4f0; --cyan-soft: #0b3340; --magenta: #ff3d9e; --magenta-soft: #3d1328;
  --live: #ff4d6a; --on-accent: #0d1117; --checker-a: #1a212c; --checker-b: #141a23;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px rgb(0 0 0 / .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--f-body); font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 8px; }
/* 日本語の見出しは文節で折り返す（balance は語の途中で割るので使わない） */
h1, h2, h3 { color: var(--ink); word-break: auto-phrase; text-wrap: pretty; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.lang-switch {
  font-family: var(--f-round); font-weight: 800; font-size: 13px; color: var(--ink-2); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--cyan); color: var(--cyan); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 34px; width: auto; }
.brand .wm-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .wm-light { display: none; } :root:not([data-theme="light"]) .brand .wm-dark { display: block; } }
:root[data-theme="dark"] .brand .wm-light { display: none; }
:root[data-theme="dark"] .brand .wm-dark { display: block; }
.nav { display: flex; gap: 4px; font-family: var(--f-round); font-weight: 800; font-size: 14px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav .nav-live { color: var(--live); display: inline-flex; align-items: center; gap: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-round); font-weight: 800; font-size: 16px; line-height: 1.2;
  text-decoration: none; border-radius: 999px; padding: 14px 26px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--magenta); color: var(--on-accent); box-shadow: 0 6px 0 color-mix(in srgb, var(--magenta) 55%, var(--ink)); }
.btn-primary:hover { box-shadow: 0 8px 0 color-mix(in srgb, var(--magenta) 55%, var(--ink)); }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { font-size: 14px; padding: 8px 16px; box-shadow: none; }
.btn-sm.btn-primary:hover { box-shadow: none; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-round); font-weight: 800;
  font-size: 13px; letter-spacing: .08em; color: var(--cyan);
  background: var(--cyan-soft); padding: 6px 14px; border-radius: 999px;
}
.hero h1 {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 64px);
  line-height: 1.12; letter-spacing: .01em; margin-block: 20px 22px;
}
.hero h1 .accent { color: var(--magenta); }
/* 英語は和文より横に長いので、2行目（Captions appear.）が1行に収まる大きさに */
html[lang="en"] .hero h1 { font-size: clamp(38px, 4.2vw, 52px); }
html[lang="en"] .hero h1 .accent { white-space: nowrap; }
.hero h1 .nb { white-space: nowrap; }
.hero .lead { font-size: clamp(16px, 1.6vw, 18px); max-width: 32em; color: var(--ink-2); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .meta { margin-top: 18px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pill {
  font-family: var(--f-round); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink-2); background: var(--panel);
}

/* 字幕デモ: OBS の配信プレビューに見立てた透過（市松）画面 */
.stage {
  position: relative; border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 12px; transform: rotate(1.2deg);
}
.stage-bar { display: flex; align-items: center; gap: 10px; padding: 2px 6px 10px; font-family: var(--f-round); font-weight: 800; font-size: 12px; color: var(--dim); }
.stage-bar .dots { display: flex; gap: 6px; }
.stage-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.stage-bar .rec { margin-left: auto; color: var(--live); display: inline-flex; align-items: center; gap: 6px; }
.screen {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden;
  background-color: var(--checker-a);
  background-image:
    linear-gradient(45deg, var(--checker-b) 25%, transparent 25%, transparent 75%, var(--checker-b) 75%),
    linear-gradient(45deg, var(--checker-b) 25%, transparent 25%, transparent 75%, var(--checker-b) 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px;
  display: flex; align-items: flex-end; justify-content: center;
}
.screen .src-label {
  position: absolute; top: 10px; left: 10px; font-family: var(--f-round); font-weight: 800; font-size: 11px;
  color: var(--dim); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
}
.caption-box {
  width: 88%; margin-bottom: 6%; padding: 12px 18px; border-radius: 14px;
  background: rgb(20 26 38 / .58); min-height: 6.4em;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
}
.cap-line { font-family: var(--f-round); font-weight: 800; line-height: 1.35; }
.cap-ja {
  color: #ffffff; font-size: clamp(15px, 2.3vw, 24px);
  -webkit-text-stroke: 5px #0d1117; paint-order: stroke fill;
}
.cap-ja.partial { color: #c9d4e2; }
.cap-en { color: #7fefff; font-size: clamp(11px, 1.4vw, 14px); font-weight: 500; -webkit-text-stroke: 3px #0d1117; paint-order: stroke fill; transition: opacity .3s ease; }
.cap-ja .hot { color: #ffd34d; }
.sparkle { position: absolute; pointer-events: none; font-size: 18px; color: #ffd34d; animation: spark 1.1s ease-out forwards; }
@keyframes spark { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.2); opacity: 0; } }
.stage-note { margin-top: 12px; font-size: 12px; color: var(--dim); text-align: center; transform: rotate(-1.2deg); }
.stage-note code { font-family: var(--f-round); font-weight: 800; color: var(--cyan); }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- sections ---------- */
section.block { padding-block: clamp(56px, 8vw, 104px); }
section.alt { background: var(--bg-alt); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 44em; }
.sec-kicker { font-family: var(--f-round); font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--magenta); }
.sec-head h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.25; }
.sec-head p { color: var(--ink-2); }

/* ---------- live ---------- */
.live-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.live-head h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3.6vw, 38px); display: flex; align-items: center; gap: 14px; }
.live-status { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.live-status .warn { color: var(--magenta); }
/* 1段のカルーセル（ページ送りの仕組みは利用者さん欄と共通） */
.live-carousel { --cols: 3; --gap: 18px; display: grid; gap: 18px; min-width: 0; }
@media (max-width: 900px) { .live-carousel { --cols: 2; } }
@media (max-width: 560px) { .live-carousel { --cols: 1; --gap: 14px; } }
.live-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-block: 4px 6px; min-width: 0;
}
.live-track::-webkit-scrollbar { display: none; }
.live-track:focus-visible { outline: 3px solid var(--magenta); outline-offset: 4px; border-radius: 16px; }
.live-track .live-card { scroll-snap-align: start; }
.live-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .15s ease, border-color .15s ease;
}
.live-card:hover { transform: translateY(-3px); border-color: var(--live); }
.live-thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--bg-alt); }
.live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-live {
  position: absolute; top: 10px; left: 10px; background: var(--live); color: #fff; font-family: var(--f-round);
  font-weight: 800; font-size: 12px; letter-spacing: .06em; padding: 3px 10px; border-radius: 6px;
}
.badge-archive {
  position: absolute; top: 10px; left: 10px; background: rgb(13 17 23 / .78); color: #fff; font-family: var(--f-round);
  font-weight: 800; font-size: 12px; letter-spacing: .04em; padding: 3px 10px; border-radius: 6px;
}
.live-card.is-archive:hover { border-color: var(--cyan); }
.badge-viewers {
  position: absolute; bottom: 10px; right: 10px; background: rgb(13 17 23 / .78); color: #fff; font-size: 12px;
  padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
/* どのサイトの配信か。サイトの色そのままだと目立ちすぎるので、白地に色文字の小さな札にする */
.badge-plat {
  position: absolute; top: 10px; right: 10px; background: rgb(255 255 255 / .92); font-family: var(--f-round);
  font-weight: 800; font-size: 11px; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; line-height: 1.5;
}
.badge-plat.is-youtube { color: #d4141c; }
.badge-plat.is-twitch { color: #7c3aed; }
.user .avatar { position: relative; display: inline-block; line-height: 0; margin-bottom: 6px; }
.user .avatar .badge-plat { top: auto; right: 50%; bottom: -8px; transform: translateX(50%); font-size: 10px; padding: 1px 6px;
  box-shadow: 0 0 0 1px var(--line); white-space: nowrap; line-height: 1.5; }
.live-body { padding: 12px 14px 14px; display: grid; gap: 4px; min-width: 0; }
.live-title { color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-ch { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-empty {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center;
  background: var(--panel); border: 2px dashed var(--line); border-radius: 18px; padding: 22px 24px;
}
.live-empty .mic { width: 56px; height: 56px; border-radius: 16px; background: var(--cyan-soft); display: grid; place-items: center; }
.live-empty strong { color: var(--ink); font-family: var(--f-round); font-weight: 800; font-size: 17px; display: block; }
.live-empty span { font-size: 14px; color: var(--dim); }
.sample-tag { font-family: var(--f-round); font-weight: 800; font-size: 12px; color: var(--magenta); background: var(--magenta-soft); padding: 2px 10px; border-radius: 999px; }

.getlisted {
  margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px;
}
@media (max-width: 640px) { .getlisted { grid-template-columns: minmax(0, 1fr); } }
.getlisted p { font-size: 14px; }
.getlisted b { color: var(--ink); }
.credit { display: flex; align-items: center; gap: 8px; min-width: 0; }
.credit code {
  font-family: var(--f-round); font-weight: 500; font-size: 13px; color: var(--ink); background: var(--bg-alt);
  border-radius: 10px; padding: 8px 12px; overflow-x: auto; white-space: nowrap; min-width: 0;
}

/* ---------- features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.feat {
  grid-column: span 2; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.feat.wide { grid-column: span 3; }
/* 横長の帯カード（いちばん伝えたい価値を1つだけ） */
.feat.banner {
  grid-column: span 6; flex-direction: row; align-items: center; gap: 20px;
  background: var(--cyan-soft); border-color: transparent; padding: 22px 28px;
}
.feat.banner .icon { flex: none; width: 52px; height: 52px; background: var(--panel); }
.feat.banner > div { display: grid; gap: 6px; min-width: 0; }
.feat.hero-feat { grid-column: span 6; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: 30px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat, .feat.wide { grid-column: span 1; }
  .feat.hero-feat { grid-column: span 2; grid-template-columns: minmax(0, 1fr); }
  .feat.banner { grid-column: span 2; }
}
@media (max-width: 560px) { .bento { grid-template-columns: minmax(0, 1fr); } .feat, .feat.wide, .feat.hero-feat, .feat.banner { grid-column: span 1; } .feat.banner { flex-direction: column; align-items: flex-start; } }
.feat .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); }
.feat .icon.m { background: var(--magenta-soft); color: var(--magenta); }
.feat .icon svg { width: 24px; height: 24px; }
.feat h3 { font-family: var(--f-round); font-weight: 800; font-size: 20px; line-height: 1.4; }
.feat.hero-feat h3 { font-size: clamp(22px, 2.6vw, 28px); }
.feat p { font-size: 15px; }
.feat .shot { border-radius: 12px; border: 1px solid var(--line); margin-top: 6px; }
.feat .example { font-family: var(--f-round); font-weight: 800; font-size: 14px; color: var(--ink); background: var(--bg-alt); border-radius: 10px; padding: 8px 12px; }
.feat .example s { color: var(--dim); text-decoration-color: var(--magenta); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs span { font-family: var(--f-round); font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); }
.kv { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 24px 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--cyan);
}
.step h3 { font-family: var(--f-round); font-weight: 800; font-size: 19px; }
.step p { font-size: 15px; }
.step .note { font-size: 13px; color: var(--dim); }
.url-chip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.url-chip code { font-family: var(--f-round); font-weight: 800; font-size: 15px; color: var(--magenta); background: var(--magenta-soft); border-radius: 10px; padding: 6px 12px; }
.copy { font-family: var(--f-round); font-weight: 800; font-size: 12px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.copy:hover { border-color: var(--cyan); color: var(--cyan); }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.dl-row .small { font-size: 13px; color: var(--dim); }

/* ---------- styles gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.gallery figure { margin: 0; display: grid; gap: 8px; }
.gallery img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.gallery figcaption { font-family: var(--f-round); font-weight: 800; font-size: 14px; color: var(--ink); }
.gallery-foot { margin-top: 22px; font-size: 15px; }

/* ---------- users ---------- */
/* 2段のカードを横に並べ、1ページ（見えている列ぶん）ずつスライド。スワイプ・ボタン・点のどれでも動く */
.users-carousel { --cols: 6; --gap: 14px; display: grid; gap: 18px; min-width: 0; }
@media (max-width: 900px) { .users-carousel { --cols: 4; } }
@media (max-width: 560px) { .users-carousel { --cols: 3; --gap: 10px; } }
.users-track {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
  grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-block: 4px; min-width: 0;
}
.users-track::-webkit-scrollbar { display: none; }
.users-track:focus-visible { outline: 3px solid var(--magenta); outline-offset: 4px; border-radius: 16px; }
.user {
  scroll-snap-align: start; display: grid; justify-items: center; align-content: start; gap: 10px;
  text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 10px 14px; min-width: 0; text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.user:hover { transform: translateY(-3px); border-color: var(--cyan); }
.user img {
  width: clamp(56px, 7vw, 76px); height: clamp(56px, 7vw, 76px); max-width: 100%; border-radius: 50%; object-fit: cover;
  background: var(--bg-alt); box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--cyan-soft);
}
.user:hover img { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--cyan); }
.user .name {
  font-family: var(--f-round); font-weight: 800; font-size: 13px; line-height: 1.4; width: 100%; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.users-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.users-nav[hidden] { display: none; }
.pager {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink);
  font-family: var(--f-round); font-weight: 800; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.pager:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.pager:disabled { opacity: .35; cursor: default; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 60%; }
.dot { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; transition: width .2s ease, background .2s ease; }
.dot[aria-current="true"] { width: 22px; background: var(--magenta); }
.users-count { font-family: var(--f-round); font-weight: 800; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.users-empty { font-size: 15px; color: var(--dim); background: var(--panel); border: 2px dashed var(--line); border-radius: 16px; padding: 20px 22px; }
.users-note { margin-top: 16px; font-size: 13px; color: var(--dim); }

/* ---------- updates ---------- */
.updates { display: grid; gap: 0; border-top: 1px solid var(--line); }
.upd { display: grid; grid-template-columns: 8.5em 6em minmax(0, 1fr); gap: 4px 20px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (max-width: 640px) { .upd { grid-template-columns: auto minmax(0, 1fr); } .upd .upd-body { grid-column: 1 / -1; } }
.upd time { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.upd .ver { font-family: var(--f-round); font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; }
html[lang="en"] .upd .ver.new::after { content: "New"; }
.upd .ver.new::after { content: "最新"; display: block; width: max-content; margin-top: 4px; font-size: 11px; color: var(--on-accent); background: var(--magenta); padding: 1px 8px; border-radius: 999px; vertical-align: 2px; }
.upd h3 { font-family: var(--f-round); font-weight: 800; font-size: 17px; line-height: 1.5; }
.upd p { font-size: 14px; color: var(--dim); margin-top: 2px; }
.upd-more { margin-top: 18px; font-size: 14px; }

/* ---------- deep (折りたたみ) ---------- */
.deep { display: grid; gap: 12px; }
.deep details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.deep summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--f-round); font-weight: 800; font-size: 17px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.deep summary::-webkit-details-marker { display: none; }
.deep summary::after { content: "+"; font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--cyan); line-height: 1; transition: transform .2s ease; }
.deep details[open] summary::after { transform: rotate(45deg); }
.deep summary small { font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--dim); margin-left: 10px; }
.deep .inner { padding: 0 22px 22px; display: grid; gap: 14px; font-size: 15px; min-width: 0; }
.deep .inner ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.tbl-wrap { overflow-x: auto; }
.deep table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
.deep th, .deep td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.deep th { color: var(--ink); font-weight: 700; background: var(--bg-alt); }
.pipeline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--f-round); font-weight: 800; font-size: 13px; }
.pipeline span { background: var(--bg-alt); border-radius: 8px; padding: 5px 10px; color: var(--ink); }
.pipeline i { font-style: normal; color: var(--cyan); }
.pipeline span small { display: block; font-weight: 500; font-size: 11px; color: var(--dim); }

/* ---------- footer ---------- */
.site-foot { padding-block: 48px; border-top: 1px solid var(--line); font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr); } }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-round); font-weight: 800; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--cyan); }
.site-foot .fine { color: var(--dim); font-size: 12px; margin-top: 12px; max-width: 46em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .stage, .stage-note { transform: none; }
}

/* ---------- 作者より ---------- */
.maker { padding-block: 0 clamp(56px, 8vw, 96px); }
.maker-card {
  display: grid; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 32px); max-width: 52em;
}
.maker-card .sec-kicker { margin: 0; }
.maker-card blockquote {
  margin: 0; padding-left: 16px; border-left: 3px solid var(--magenta);
  font-family: var(--f-round); font-weight: 800; font-size: clamp(17px, 2vw, 20px); color: var(--ink); line-height: 1.6;
}
.maker-card p { font-size: 15px; }
