/*
 * マルチラップ計測（MultiLap）の公開ページ用スタイル。/style.css には重ねず、これだけで完結する。
 * 色・ガラス・光彩はアプリの仕様（docs/spec.md §8）と画面モックのトークンに合わせている。
 *
 * テーマの優先順位: <html data-theme>（site.js が付ける）> URL の #theme-light / #theme-dark
 * （JavaScript が無くても効く）> 端末の設定（prefers-color-scheme）。
 * 色（とアイコンの出し分け --show-light / --show-dark）を変えるときは、ダークの 2 箇所（:root と #theme-dark）とライトの 3 箇所
 * （prefers-color-scheme / data-theme / #theme-light）を同じ値にする。
 * :has() を含むセレクタは、対応していないブラウザで他のルールを巻き込んで無効にしないよう、
 * 単独のルールに分けている。
 */

/* ---- 色: ダーク（既定） ---- */
:root {
  color-scheme: dark;
  --show-light: none;
  --show-dark: inline;
  --bg1: #0b1220;
  --bg2: #101b2e;
  --blob: 0.45;
  --glass: rgba(255, 255, 255, 0.07);
  --glass2: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --line2: rgba(255, 255, 255, 0.22);
  --surface: #162136;
  --card-base: #141d2f;
  --tx: #f2f6fa;
  --tx2: #93a2b8;
  --link: #6aa9e6;
  --start-ink: #30d158;
  --stop-ink: #ff6259;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  --inhi: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --veil: rgba(4, 8, 16, 0.5);
  --code: rgba(255, 255, 255, 0.08);

  --brand: #4a90d9;
  --start: #30d158;
  --stop: #ff453a;

  --r-28: 28px;
  --r-22: 22px;
  --r-18: 18px;
  --r-14: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Roboto, sans-serif;
}

/* ---- 色: ライト（端末の設定） ---- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --show-light: inline;
    --show-dark: none;
    --bg1: #e9eff7;
    --bg2: #f6f9fd;
    --blob: 0.28;
    --glass: rgba(255, 255, 255, 0.62);
    --glass2: rgba(255, 255, 255, 0.8);
    --line: rgba(22, 35, 58, 0.1);
    --line2: rgba(22, 35, 58, 0.18);
    --surface: #f2f6fb;
    --card-base: #ffffff;
    --tx: #16233a;
    --tx2: #47535f;
    --link: #2a649f;
    --start-ink: #16833a;
    --stop-ink: #c9271d;
    --shadow: 0 14px 30px rgba(30, 50, 80, 0.16);
    --inhi: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    --veil: rgba(22, 35, 58, 0.28);
    --code: rgba(22, 35, 58, 0.06);
  }
}

/* ---- 色: ライト（アプリまたは利用者の指定） ---- */
:root[data-theme="light"] {
  color-scheme: light;
  --show-light: inline;
  --show-dark: none;
  --bg1: #e9eff7;
  --bg2: #f6f9fd;
  --blob: 0.28;
  --glass: rgba(255, 255, 255, 0.62);
  --glass2: rgba(255, 255, 255, 0.8);
  --line: rgba(22, 35, 58, 0.1);
  --line2: rgba(22, 35, 58, 0.18);
  --surface: #f2f6fb;
  --card-base: #ffffff;
  --tx: #16233a;
  --tx2: #47535f;
  --link: #2a649f;
  --start-ink: #16833a;
  --stop-ink: #c9271d;
  --shadow: 0 14px 30px rgba(30, 50, 80, 0.16);
  --inhi: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --veil: rgba(22, 35, 58, 0.28);
  --code: rgba(22, 35, 58, 0.06);
}

/* JavaScript が無い場合の、URL の印による指定（site.js があれば data-theme が先に効く） */
:root:not([data-theme]):has(#theme-light:target) {
  color-scheme: light;
  --show-light: inline;
  --show-dark: none;
  --bg1: #e9eff7;
  --bg2: #f6f9fd;
  --blob: 0.28;
  --glass: rgba(255, 255, 255, 0.62);
  --glass2: rgba(255, 255, 255, 0.8);
  --line: rgba(22, 35, 58, 0.1);
  --line2: rgba(22, 35, 58, 0.18);
  --surface: #f2f6fb;
  --card-base: #ffffff;
  --tx: #16233a;
  --tx2: #47535f;
  --link: #2a649f;
  --start-ink: #16833a;
  --stop-ink: #c9271d;
  --shadow: 0 14px 30px rgba(30, 50, 80, 0.16);
  --inhi: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --veil: rgba(22, 35, 58, 0.28);
  --code: rgba(22, 35, 58, 0.06);
}

:root:not([data-theme]):has(#theme-dark:target) {
  color-scheme: dark;
  --show-light: none;
  --show-dark: inline;
  --bg1: #0b1220;
  --bg2: #101b2e;
  --blob: 0.45;
  --glass: rgba(255, 255, 255, 0.07);
  --glass2: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --line2: rgba(255, 255, 255, 0.22);
  --surface: #162136;
  --card-base: #141d2f;
  --tx: #f2f6fa;
  --tx2: #93a2b8;
  --link: #6aa9e6;
  --start-ink: #30d158;
  --stop-ink: #ff6259;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  --inhi: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --veil: rgba(4, 8, 16, 0.5);
  --code: rgba(255, 255, 255, 0.08);
}

/* ---- 基本 ---- */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 背景のグラデーションは html に置く。body に置くと、z-index: -1 の .aurora がその下に隠れる */
html {
  background: var(--bg1) linear-gradient(160deg, var(--bg1), var(--bg2)) fixed;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--tx);
  overflow-x: hidden;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }

/*
 * テーマに合わせてアプリのアイコンを出し分ける。明るい版（data-for="light"）と暗い版
 * （data-for="dark"）を並べて置き、テーマの色の定義にある --show-light / --show-dark で片方だけを出す。
 */
img[data-for="light"] { display: var(--show-light, inline); }
img[data-for="dark"] { display: var(--show-dark, none); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 背景の光彩 ---- */

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob);
}
.aurora i:nth-child(1) { width: 520px; height: 520px; background: #2e5f9e; top: -160px; left: -160px; animation: drift1 28s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 460px; height: 460px; background: #2fa8c4; top: 30vh; right: -200px; animation: drift2 34s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 420px; height: 420px; background: #1c3a6b; bottom: -180px; left: 20vw; animation: drift3 40s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { width: 260px; height: 260px; background: #30d158; top: 55vh; left: -120px; opacity: calc(var(--blob) * 0.35); animation: drift2 46s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(80px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-70px, -80px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(60px, -50px); } }

/* ---- ガラス ---- */

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--inhi);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}

/* ---- 上部のバー ---- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 10px 16px;
}
.topbar-in {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 12px; border-radius: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px; flex: none;
  color: var(--tx); text-decoration: none; font-weight: 800; letter-spacing: 0.02em;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.brand span { font-size: 15px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 7px 12px; border-radius: 12px; color: var(--tx2);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--tx); background: var(--glass); }
.nav a[aria-current="page"] { color: var(--tx); background: var(--glass2); box-shadow: var(--inhi); }
.tools { display: flex; gap: 6px; flex: none; }
.tool {
  height: 36px; min-width: 36px; padding: 0 10px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--inhi);
  color: var(--tx); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.tool:hover { background: var(--glass2); }
.tool svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .t-auto, .theme-btn .t-light, .theme-btn .t-dark { display: none; }
.theme-btn[data-mode="auto"] .t-auto, .theme-btn[data-mode="light"] .t-light, .theme-btn[data-mode="dark"] .t-dark { display: block; }
.theme-btn { display: none; }
.js .theme-btn { display: inline-flex; }

@media (max-width: 760px) {
  .topbar { padding: 8px 10px; }
  .topbar-in { flex-wrap: wrap; row-gap: 6px; padding: 8px; }
  .brand span { font-size: 14px; }
  .tools { margin-left: auto; }
  .nav {
    order: 3; flex: 1 0 100%; margin: 0; overflow-x: auto; scrollbar-width: none;
    padding-top: 6px; border-top: 1px solid var(--line);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 13px; }
}

/* ---- レイアウト ---- */

main { max-width: 1120px; margin: 0 auto; padding: 12px 16px 40px; }
.narrow { max-width: 820px; }

h1, h2, h3 { line-height: 1.35; letter-spacing: 0.01em; }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 10px; font-weight: 900; }
h2 { font-size: clamp(22px, 3.2vw, 28px); margin: 0 0 12px; font-weight: 850; }
h3 { font-size: 18px; margin: 0 0 6px; font-weight: 800; }
p { margin: 0 0 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--tx2); text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--start), var(--brand)); }
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--tx2); max-width: 36em; }

.section { margin: 56px 0; scroll-margin-top: 84px; }
.section-head { margin-bottom: 18px; }
.section-head p { color: var(--tx2); max-width: 44em; }

.panel { border-radius: var(--r-28); padding: clamp(20px, 4vw, 36px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.chips li {
  font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--tx);
}
.chips li::before { content: "✓"; color: var(--start-ink); margin-right: 6px; font-weight: 900; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 15px; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--tx);
  background: var(--glass2); border: 1px solid var(--line2); box-shadow: var(--inhi);
}
.cta.primary { color: #fff; border-color: rgba(48, 209, 88, 0.6); background: linear-gradient(160deg, rgba(48, 209, 88, 0.95), rgba(28, 158, 63, 0.95)); }
.cta:hover { transform: translateY(-1px); }
.cta svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- ヒーロー ---- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center;
  padding: 32px 0 8px;
}
.hero-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero-mark img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.hero-mark b { display: block; font-size: 18px; }
.hero-mark small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: var(--tx2); }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--start) 0%, #3fd8e9 45%, var(--brand) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 20px; }
}

/* ---- ページへのカード ---- */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tile {
  position: relative; display: block; padding: 22px; border-radius: var(--r-22);
  color: var(--tx); text-decoration: none; overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.tile:hover { transform: translateY(-2px); border-color: var(--line2); }
.tile .ico {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tile-ac, #4a90d9) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--tile-ac, #4a90d9) 55%, transparent);
  color: var(--tile-ac, #4a90d9);
}
.tile .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-bottom: 4px; }
.tile p { color: var(--tx2); font-size: 14px; margin: 0; }
.tile .go { position: absolute; top: 22px; right: 20px; color: var(--tx2); font-size: 20px; }

/* ---- 端末の枠 ---- */

.device {
  position: relative; width: min(360px, 100%); margin: 0 auto;
  aspect-ratio: 360 / 740; border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--line2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), var(--inhi);
}
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden;
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  isolation: isolate;
}
.screen .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: var(--blob); pointer-events: none; z-index: -1; }
.screen .blob.a { width: 240px; height: 240px; background: #2e5f9e; top: -70px; left: -90px; }
.screen .blob.b { width: 240px; height: 240px; background: #2fa8c4; bottom: 40px; right: -110px; }
.screen .blob.c { width: 200px; height: 200px; background: #1c3a6b; bottom: -90px; left: 10px; }
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 14px; background: #05080f; z-index: 30; }

/* ---- アプリの部品（画面モックと同じ見た目） ---- */

.app { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 40px; font-size: 14px; line-height: 1.3; }
.a-hdr { display: flex; align-items: center; gap: 6px; padding: 6px 12px 8px; }
.a-hdr .ttl { flex: 1; text-align: center; font-weight: 800; font-size: 14px; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb {
  min-width: 34px; height: 32px; padding: 0 9px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--glass); color: var(--tx); font-size: 12px; font-weight: 700; box-shadow: var(--inhi);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.hb.icon { padding: 0; }
.hb svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.a-bulk { display: flex; gap: 6px; padding: 0 12px 8px; }
.bb {
  flex: 1; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass);
  box-shadow: var(--inhi); color: var(--tx); cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.bb b { font-size: 11.5px; font-weight: 800; }
.bb span { font-size: 8.5px; color: var(--tx2); font-weight: 700; }
.bb.g b { color: var(--start); }
.bb.r b { color: var(--stop); }
.bb.tg { flex: 0 0 38px; }
.bb.tg svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.bb:disabled, .hb:disabled, .cbtn:disabled { opacity: 0.32; cursor: default; }
.a-list { flex: 1; overflow: hidden; padding: 2px 10px 90px; }

.card {
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 9px 10px; margin-bottom: 7px; border-radius: 17px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--inhi);
}
.card[style*="--ac"] {
  background: color-mix(in srgb, var(--ac) 30%, var(--card-base));
  border-color: color-mix(in srgb, var(--ac) 58%, var(--card-base));
}
.card .nm { flex: 0 0 4.6em; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.card .tz { flex: 1; min-width: 0; text-align: center; cursor: pointer; border-radius: 10px; }
.card .tt { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: 0.01em; }
.card .lp { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 2px; font-size: 11px; color: var(--tx2); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb {
  border-radius: 999px; padding: 1px 6px; font-size: 12px; font-weight: 800; line-height: 1.2;
  color: var(--ac, #4a90d9); background: color-mix(in srgb, var(--ac, #4a90d9) 18%, transparent);
  transition: background 0.35s;
}
.lb.hit { color: var(--start); background: rgba(48, 209, 88, 0.18); }
.lb.flash { background: color-mix(in srgb, var(--ac, #4a90d9) 45%, transparent); }
.cbtns { display: flex; gap: 6px; flex: none; }
.cbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); padding: 0; cursor: pointer;
  background: var(--glass2); color: var(--tx); font-weight: 800; font-size: 10.5px; box-shadow: var(--inhi);
}
.cbtn.start { background: rgba(48, 209, 88, 0.2); border-color: rgba(48, 209, 88, 0.55); color: var(--start); }
.cbtn.stop { background: rgba(255, 69, 58, 0.18); border-color: rgba(255, 69, 58, 0.55); color: var(--stop); }
.hb:active, .bb:active, .cbtn:active { transform: scale(0.94); }

.a-tabs {
  position: absolute; left: 12px; right: 12px; bottom: 14px; height: 56px; z-index: 5;
  display: flex; gap: 5px; padding: 5px; border-radius: 21px;
}
.a-tab {
  flex: 1; border: 0; border-radius: 16px; background: transparent; color: var(--tx2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 9.5px; font-weight: 800;
}
.a-tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-tab.on { background: var(--glass2); color: var(--tx); box-shadow: var(--inhi); }

/* 詳細ページ・共有シート・トースト */
.a-page {
  position: absolute; inset: 0; z-index: 10; padding-top: 40px;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  transform: translateX(104%); transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.a-page.open { transform: none; }
.d-total { text-align: center; font-size: 44px; font-weight: 850; font-variant-numeric: tabular-nums; color: var(--ac, var(--tx)); margin: 10px 0 0; line-height: 1.2; }
.d-sub { text-align: center; color: var(--tx2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.d-laps { flex: 1; overflow-y: auto; padding: 0 12px 20px; }
.laprow {
  display: flex; align-items: center; padding: 10px 14px; margin-bottom: 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.laprow .ln { color: var(--tx2); font-weight: 700; font-size: 12.5px; }
.laprow .lt { margin-left: auto; font-weight: 750; font-size: 15px; }
.laprow.cur { border-color: var(--ac, #4a90d9); background: color-mix(in srgb, var(--ac, #4a90d9) 14%, transparent); }
.laprow.cur .ln::after { content: "●"; color: var(--ac, #4a90d9); font-size: 7px; margin-left: 6px; vertical-align: 2px; animation: pulse 1.2s ease-in-out infinite; }
.laprow.fast .lt { color: var(--start); font-weight: 900; }
.laprow.slow .lt { color: var(--stop); font-weight: 900; }
@keyframes pulse { 50% { opacity: 0.25; } }

.a-veil { position: absolute; inset: 0; z-index: 20; background: var(--veil); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.a-veil.show { opacity: 1; pointer-events: auto; }
.a-sheet { position: absolute; left: 8px; right: 8px; bottom: 10px; z-index: 21; transform: translateY(120%); transition: transform 0.28s cubic-bezier(0.3, 0.8, 0.3, 1); }
.a-sheet.show { transform: none; }
.a-grp { border-radius: 20px; overflow: hidden; margin-bottom: 8px; background: var(--glass2); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
.a-grp button { display: block; width: 100%; padding: 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--tx); font-size: 14px; font-weight: 700; cursor: pointer; }
.a-grp button:last-child { border-bottom: 0; }
.a-grp button:active { background: rgba(127, 150, 180, 0.15); }
.a-grp.cancel button { font-weight: 850; }
.a-dlg {
  position: absolute; left: 50%; top: 44%; z-index: 22; width: calc(100% - 56px);
  transform: translate(-50%, -50%) scale(0.92); opacity: 0; pointer-events: none; transition: 0.2s;
  padding: 18px 16px 12px; border-radius: 22px; text-align: center;
  background: var(--glass2); border: 1px solid var(--line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
}
.a-dlg.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.a-dlg p { font-size: 13.5px; font-weight: 700; margin: 0 0 14px; }
.a-dlg .acts { display: flex; gap: 8px; }
.a-dlg .acts button { flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--tx); font-weight: 800; cursor: pointer; }
.a-dlg .acts .danger { color: #fff; border-color: rgba(255, 69, 58, 0.5); background: linear-gradient(160deg, rgba(255, 89, 77, 0.92), rgba(214, 48, 38, 0.92)); }
.a-toast {
  position: absolute; left: 50%; bottom: 84px; z-index: 40; max-width: 86%;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: 0.25s;
  padding: 9px 14px; border-radius: 13px; font-size: 12.5px; font-weight: 800; text-align: center;
  background: var(--glass2); border: 1px solid var(--line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.a-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- 触れるデモ ---- */

.demo { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; }
.demo .device { position: sticky; top: 92px; }
@media (max-width: 860px) {
  .demo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .demo .device { position: relative; top: 0; }
}
.coach {
  position: absolute; z-index: 35; pointer-events: none; border-radius: 16px;
  box-shadow: 0 0 0 3px var(--start), 0 0 0 9px rgba(48, 209, 88, 0.22);
  transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.2s;
  animation: ring 1.4s ease-in-out infinite;
}
.coach[hidden] { display: block; opacity: 0; }
@keyframes ring { 50% { box-shadow: 0 0 0 3px var(--start), 0 0 0 15px rgba(48, 209, 88, 0); } }
.tip {
  position: absolute; z-index: 36; pointer-events: none; max-width: 200px;
  padding: 7px 11px; border-radius: 12px; font-size: 12px; font-weight: 800; line-height: 1.4;
  color: #062b12; background: var(--start); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease, top 0.3s ease, opacity 0.2s;
}
.tip::after { content: ""; position: absolute; left: var(--arrow-x, 50%); width: 10px; height: 10px; background: var(--start); transform: translateX(-50%) rotate(45deg); }
.tip.below::after { top: -4px; }
.tip.above::after { bottom: -4px; }
.tip[hidden] { display: block; opacity: 0; }

.steps-panel { border-radius: var(--r-28); padding: 22px; }
.progress { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--tx2); font-size: 13px; font-weight: 800; }
.progress .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--glass2); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--start), #3fd8e9); transition: width 0.4s ease; }
.tour { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.tour li {
  position: relative; padding: 12px 14px 12px 52px; border-radius: 16px; margin-bottom: 6px;
  color: var(--tx2); transition: background 0.25s, color 0.25s;
}
.tour li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; background: var(--glass2); border: 1px solid var(--line2); color: var(--tx2);
}
.tour li b { display: block; color: inherit; font-size: 15px; }
.tour li .why { display: none; font-size: 14px; margin-top: 4px; color: var(--tx2); }
.tour li.now { background: var(--glass2); color: var(--tx); box-shadow: var(--inhi); }
.tour li.now::before { background: var(--start); border-color: var(--start); color: #062b12; }
.tour li.now .why, .tour li.done .why { display: block; }
.tour li.done { color: var(--tx); }
.tour li.done::before { content: "✓"; background: rgba(48, 209, 88, 0.18); border-color: rgba(48, 209, 88, 0.55); color: var(--start-ink); }
.tour-done { display: none; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(48, 209, 88, 0.14); border: 1px solid rgba(48, 209, 88, 0.45); font-weight: 700; }
.tour-done.show { display: block; }
.tour-actions { display: flex; gap: 8px; margin-top: 14px; }
.tour-actions button { cursor: pointer; }
.nojs-note { display: block; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); color: var(--tx2); font-size: 14px; }
.js .nojs-note { display: none; }

/* ---- 図解 ---- */

.figure-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .figure-grid { grid-template-columns: minmax(0, 1fr); } }
.fig { border-radius: var(--r-22); padding: 22px; min-width: 0; }
.fig > h3 { display: flex; align-items: center; gap: 10px; }
.fig > p { color: var(--tx2); font-size: 15px; }
.fig .more { font-size: 14px; font-weight: 700; margin: 10px 0 0; }
.fig.wide { grid-column: 1 / -1; }
.stage {
  position: relative; border-radius: 18px; padding: 18px 14px; margin: 14px 0;
  background: linear-gradient(160deg, var(--bg1), var(--bg2)); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
}
.stage .card { margin-bottom: 0; box-shadow: none; }
.stage .card + .card { margin-top: 7px; }
.pin {
  position: absolute; z-index: 3; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #062b12; background: var(--start);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
}
.legend { list-style: none; padding: 0; margin: 0; counter-reset: l; }
.legend li { position: relative; padding-left: 32px; margin-bottom: 8px; font-size: 15px; }
.legend li::before {
  counter-increment: l; content: counter(l); position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #062b12; background: var(--start);
}
.legend b { font-weight: 800; }

/* 状態の遷移図 */
.states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin: 14px 0; }
.state { border-radius: 16px; padding: 14px 12px; text-align: center; background: var(--surface); border: 1px solid var(--line); }
.state .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--tx2); }
.state.run .dot { background: var(--start); box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.2); }
.state.pause .dot { background: var(--stop); }
.state b { font-size: 14px; }
.state .pair { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.state .pair .cbtn { width: 40px; height: 40px; font-size: 9.5px; cursor: default; }
.state .pair .cbtn:active { transform: none; }
.state small { display: block; margin-top: 8px; color: var(--tx2); font-size: 12px; line-height: 1.5; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.flow li { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.flow li b { color: var(--start-ink); }
.flow li b.r { color: var(--stop-ink); }
@media (max-width: 520px) { .states { grid-template-columns: minmax(0, 1fr); } }

/* 3 つの画面 */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .screens { grid-template-columns: minmax(0, 1fr); } }
.scr { border-radius: var(--r-22); padding: 16px; min-width: 0; }
.scr h3 { margin: 12px 0 4px; }
.scr p { color: var(--tx2); font-size: 14px; margin: 0; }
.scr .stage { margin: 0; padding: 10px; min-height: 190px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.card.mini { flex-direction: column; align-items: stretch; gap: 5px; padding: 7px 8px 8px; margin: 0; }
.card.mini .nm { flex: none; text-align: center; font-size: 11px; }
.card.mini .row { display: flex; align-items: center; gap: 5px; }
.card.mini .tz { text-align: left; }
.card.mini .tt { font-size: 13px; letter-spacing: 0; }
.card.mini .lp { justify-content: flex-start; font-size: 8.5px; gap: 3px; }
.card.mini .lb { font-size: 9.5px; padding: 0 4px; }
.card.mini .cbtns { gap: 4px; }
.card.mini .cbtn { width: 28px; height: 28px; font-size: 7.5px; }
.card.rich { flex-direction: column; align-items: stretch; gap: 6px; }
.card.rich .nm { flex: none; }
.card.rich .row { display: flex; align-items: center; gap: 8px; }
.photo {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: rgba(127, 150, 180, 0.16); border: 1px solid var(--line2); color: var(--tx2);
  font-size: 18px; font-weight: 900;
}
.scr .card .cbtn { width: 34px; height: 34px; font-size: 8.5px; }
.scr .card .tt { font-size: 17px; }
.scr .card .nm { font-size: 11.5px; flex-basis: 3.6em; }

/* グループ */
.ghd {
  display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 8px; margin-bottom: 6px; border-radius: 13px;
  background: var(--glass2); border: 1px solid var(--line); border-left: 3px solid var(--gac, #f77e31);
}
.ghd .cav { color: var(--tx2); font-size: 10px; }
.ghd .gnm { font-size: 12.5px; font-weight: 850; }
.ghd .gct { font-size: 11px; font-weight: 700; color: var(--tx2); }
.ghd .gbtns { margin-left: auto; display: flex; gap: 4px; }
.ghd .gb { min-width: 36px; height: 26px; padding: 0 5px; border-radius: 8px; font-size: 9.5px; font-weight: 850; border: 1px solid var(--line2); background: var(--glass2); color: var(--tx); }
.ghd .gb.g { color: var(--start); border-color: rgba(48, 209, 88, 0.5); }
.ghd .gb.r { color: var(--stop); border-color: rgba(255, 69, 58, 0.5); }
.gbody { margin-left: 5px; padding-left: 9px; border-left: 2px solid color-mix(in srgb, var(--gac, #f77e31) 55%, transparent); }
.drag { transform: rotate(-2.5deg) translate(18px, -6px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35) !important; opacity: 0.96; }
.hand {
  position: absolute; z-index: 4; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25), 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* 目標ラップ */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.badges .lb { font-size: 16px; padding: 3px 10px; --ac: #4a90d9; }
.badges .arrow { color: var(--tx2); font-weight: 900; }
.badges small { display: block; text-align: center; color: var(--tx2); font-size: 12px; margin-top: 4px; }

/* 共有シートの静止画 */
.stage .a-grp { box-shadow: none; }
.stage .a-grp button { cursor: default; }
.stage .a-grp button:active { background: transparent; }

/* ---- FAQ ---- */

.faq-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 8px; }
.search {
  flex: 1 1 280px; position: relative; display: none;
}
.js .search { display: block; }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 16px; font: inherit; font-size: 16px;
  color: var(--tx); background: var(--glass); border: 1px solid var(--line2); box-shadow: var(--inhi); outline: none;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.search input:focus { border-color: var(--brand); }
.search svg { position: absolute; left: 15px; top: 15px; width: 18px; height: 18px; stroke: var(--tx2); fill: none; stroke-width: 2; stroke-linecap: round; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.cats a {
  font-size: 13.5px; font-weight: 800; padding: 7px 13px; border-radius: 999px; text-decoration: none;
  color: var(--tx); background: var(--glass); border: 1px solid var(--line);
}
.cats a:hover { background: var(--glass2); }
.cats a span { color: var(--tx2); margin-left: 4px; font-variant-numeric: tabular-nums; }
.faq-sec { margin-top: 34px; scroll-margin-top: 90px; }
.faq-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.faq-sec h2 .ico { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--sec-ac, #4a90d9) 22%, transparent); color: var(--sec-ac, #4a90d9); }
.faq-sec h2 .ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
details.qa {
  border-radius: 18px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s; scroll-margin-top: 90px;
}
details.qa[open] { border-color: var(--line2); background: var(--glass2); }
details.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 18px; font-weight: 800; font-size: 16px; line-height: 1.55;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::before { content: "Q"; flex: none; width: 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #fff; background: var(--brand); margin-top: 1px; }
details.qa summary::after { content: ""; flex: none; margin-left: auto; margin-top: 8px; width: 9px; height: 9px; border-right: 2px solid var(--tx2); border-bottom: 2px solid var(--tx2); transform: rotate(45deg); transition: transform 0.2s; }
details.qa[open] summary::after { transform: rotate(225deg); margin-top: 12px; }
details.qa .ans { padding: 0 18px 16px 54px; color: var(--tx2); font-size: 15.5px; }
details.qa .ans p:last-child { margin-bottom: 0; }
details.qa .ans a.see { font-weight: 700; font-size: 14px; }
details.qa:target { border-color: var(--brand); }
mark { background: rgba(250, 181, 91, 0.45); color: inherit; border-radius: 4px; padding: 0 2px; }
.no-hit { display: none; text-align: center; color: var(--tx2); padding: 30px 10px; }
.no-hit.show { display: block; }

/* ---- 規約・ポリシー ---- */

.doc { border-radius: var(--r-28); padding: clamp(22px, 5vw, 44px); }
.doc h1 { font-size: clamp(28px, 4.5vw, 38px); }
.doc .meta { color: var(--tx2); font-size: 14px; }
.doc h2 { font-size: 20px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--tx); }
.doc p, .doc li { color: color-mix(in srgb, var(--tx) 86%, var(--tx2)); }
.doc code { font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--code); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; list-style: none; }
.toc a { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; text-decoration: none; color: var(--tx); background: var(--glass); border: 1px solid var(--line); }
.callout {
  margin: 18px 0; padding: 14px 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
}
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { color: var(--tx2); font-weight: 800; white-space: nowrap; background: var(--glass); }

/* ---- 問い合わせ・フッター ---- */

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-radius: var(--r-22); padding: 22px; }
.contact .ico { width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand); flex: none; }
.contact .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact div { flex: 1 1 260px; }
.contact p { margin: 0; color: var(--tx2); font-size: 14.5px; }
.contact a.mail { font-weight: 800; font-size: 17px; word-break: break-all; }

footer { max-width: 1120px; margin: 0 auto; padding: 26px 16px 44px; color: var(--tx2); font-size: 13.5px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
footer a { color: var(--tx2); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--tx); }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .coach, .laprow.cur .ln::after { animation: none; }
  .a-page, .a-sheet, .coach, .tip, .tile, .cta { transition: none; }
}

/* ---- 使い方: 動線マップ ---- */

.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .routes { grid-template-columns: minmax(0, 1fr); } }
.route {
  display: grid; grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.2fr); align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 18px; text-decoration: none; color: var(--tx);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--inhi);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.route:hover { transform: translateY(-1px); border-color: var(--line2); }
.r-from { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14.5px; line-height: 1.35; }
.r-ico {
  flex: none; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(48, 209, 88, 0.16); border: 1px solid rgba(48, 209, 88, 0.45); color: var(--start-ink);
}
.r-ico svg, .r-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.r-arrow { color: var(--tx2); display: flex; }
.r-to b { display: block; font-size: 15px; }
.r-to small { display: block; color: var(--tx2); font-size: 12.5px; line-height: 1.45; }

/* ---- 使い方: 図解の細部 ---- */

.anat { padding-top: 26px; }
.anat .nm, .anat .tz, .anat .lb, .anat .cbtns { position: relative; overflow: visible; }
.anat .pin { top: -16px; left: -8px; }
.anat .lb .pin { top: -20px; left: -14px; }
.anat .cbtns .pin { left: auto; right: -6px; top: -16px; }
.hint-line { display: flex; align-items: flex-start; gap: 8px; color: var(--tx2); font-size: 14px; margin: 0; }
.hint-line svg { flex: none; width: 18px; height: 18px; margin-top: 3px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage .hb { cursor: default; }
.stage .cbtn { cursor: default; }
.stage .cbtn:active, .stage .hb:active, .stage .bb:active { transform: none; }
.detail-stage { padding: 10px 6px 12px; }
.detail-stage .a-hdr { padding: 0 6px 4px; }
.detail-stage .d-total { font-size: 40px; margin-top: 4px; }
.detail-stage .d-laps { padding: 0 6px; overflow: visible; }

.tpl-sheet { margin: 0; box-shadow: none; }
.tpl-head { padding: 11px 16px 9px; font-size: 12px; font-weight: 850; letter-spacing: 0.08em; color: var(--tx2); border-bottom: 1px solid var(--line); }
.tpl-save { padding: 12px 16px; font-weight: 800; font-size: 14px; color: var(--start-ink); border-bottom: 1px solid var(--line); text-align: center; }
.tpl-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.tpl-row:last-child { border-bottom: 0; }
.tpl-row > div { flex: 1; min-width: 0; padding: 11px 14px; }
.tpl-row b { display: block; font-size: 14.5px; }
.tpl-row small { display: block; color: var(--tx2); font-size: 12px; }
.tpl-row .dots { display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.tpl-row .dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.tpl-row .more-btn { flex: 0 0 48px; align-self: stretch; display: flex; align-items: center; justify-content: center; color: var(--tx2); border-left: 1px solid var(--line); letter-spacing: 0.1em; }

ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--tx2); }
ul.plain li b { color: var(--tx); }
ul.plain li:last-child { border-bottom: 0; }

.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .set-grid { grid-template-columns: minmax(0, 1fr); } }
.set-item { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.set-item b { display: block; font-size: 15px; margin-bottom: 2px; }
.set-item p { margin: 0; color: var(--tx2); font-size: 14px; line-height: 1.6; }

/* ---- トップ: 機能 ---- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 18px; border-radius: var(--r-22); }
.feature .ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; color: var(--f-ac, #4a90d9); background: color-mix(in srgb, var(--f-ac, #4a90d9) 20%, transparent); }
.feature .ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 16px; margin-bottom: 2px; }
.feature p { margin: 0; color: var(--tx2); font-size: 14px; line-height: 1.6; }
.hero .device { max-width: 330px; }
:root:not(.js) .device[data-demo] { display: none; }
