/* gnosis-echo.com。色はアプリ（apps/desktop の styles.css）の青に合わせる。外部フォントは読まない。 */
:root {
  --bg: #f6f5f1;
  --panel: #ffffff;
  --panel-2: #f0efea;
  --line: #e3e1da;
  --line-strong: #d9d6cc;
  --fg: #1b1f27;
  --fg-2: #3a404c;
  --muted: #5f6673;
  --accent: #2f5bd3;
  --accent-hover: #2349b3;
  --on-accent: #ffffff;
  --ink: #1b1f27;
  --on-ink: #eef0f4;
  --on-ink-muted: #c3c8d2;
  --warn-bg: #fff6e0;
  --warn-fg: #6b4a06;
  --code-bg: #ecebe6;
  --radius: 12px;
  --font: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --panel: #1d2027;
    --panel-2: #262a33;
    --line: #2e333d;
    --line-strong: #3a404c;
    --fg: #eef0f4;
    --fg-2: #cdd2db;
    --muted: #9aa1ad;
    --accent: #6d93f5;
    --accent-hover: #8eacf8;
    --on-accent: #0f1320;
    --ink: #0f1116;
    --on-ink: #eef0f4;
    --on-ink-muted: #b3b9c4;
    --warn-bg: #3a2e12;
    --warn-fg: #f3d58f;
    --code-bg: #262a33;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.75; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--panel); padding: 8px 12px; }

/* ヘッダー */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-inner { max-width: 1280px; margin: 0 auto; height: 64px; padding: 0 32px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; }
.wordmark { font-weight: 900; font-size: 24px; letter-spacing: -0.02em; }
.by { font-size: 12px; color: var(--muted); }
.top-nav { display: flex; gap: 24px; font-size: 15px; }
.top-nav a { color: var(--fg-2); text-decoration: none; }
.top-nav a[aria-current='page'] { color: var(--fg); font-weight: 700; }
.top-gh { color: var(--fg-2); text-decoration: none; font-size: 15px; }

/* 検索 */
.search { position: relative; margin-left: auto; width: 340px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search input { border: 0; background: transparent; outline: none; font: inherit; font-size: 14px; color: var(--fg); flex: 1; min-width: 0; }
.search kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; }
.search-results { position: absolute; top: 44px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); max-height: 420px; overflow: auto; }
.search-results li a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--fg); }
.search-results li a span { display: block; font-size: 12px; color: var(--muted); }
.search-results li[aria-selected='true'] a, .search-results li a:hover { background: var(--panel-2); }
.search-empty { padding: 8px 10px; font-size: 14px; color: var(--muted); }

/* 共通 */
main { min-height: 60vh; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 40px 32px 64px; }
.wrap.narrow { max-width: 760px; }
.page-title { font-size: 34px; line-height: 1.35; margin: 0 0 24px; }
.block { margin-top: 56px; }
.block h2 { font-size: 22px; margin: 0 0 16px; }
.muted { color: var(--muted); }
.more { margin: 12px 0 0; font-size: 14px; }

/* ボタン */
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 12px 20px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; width: 100%; }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary .icon { width: 22px; height: 22px; }
.btn-kind { font-weight: 400; font-size: 15px; }
.btn-secondary { min-height: 48px; width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); color: var(--fg); font: inherit; font-size: 15px; cursor: pointer; }
.btn-light { display: flex; justify-content: center; padding: 12px; border-radius: 8px; background: var(--on-ink); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.btn-light:hover { color: var(--ink); opacity: 0.9; }
.btn-ghost { display: flex; justify-content: center; padding: 12px; border-radius: 8px; border: 1px solid #4a505c; color: var(--on-ink); font-size: 14px; text-decoration: none; }
.btn-ghost:hover { color: var(--on-ink); background: rgba(255, 255, 255, 0.06); }

/* OS 切り替え */
.os-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel-2); border-radius: 10px; }
.os-tabs button { border: 0; cursor: pointer; font: inherit; font-size: 14px; padding: 8px 18px; min-height: 40px; border-radius: 7px; background: transparent; color: var(--muted); }
.os-tabs button[aria-selected='true'] { background: var(--panel); color: var(--fg); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* ダウンロード */
.dl { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 40px 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.dl h2 { font-size: 38px; line-height: 1.3; margin: 0 0 20px; letter-spacing: -0.01em; }
.dl-desktop { display: flex; flex-direction: column; gap: 18px; }
.dl-desktop .os-tabs { align-self: flex-start; }
.dl-panel { display: flex; flex-direction: column; gap: 14px; }
.dl-meta { margin: 0; font-size: 14px; color: var(--fg-2); }
.dl-size:not(:empty)::before { content: ' · '; }
.dl-alts { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.dl-alts-head { color: var(--muted); }
.dl-alt { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); text-decoration: none; }
.dl-alt:hover { border-color: var(--accent); color: var(--fg); }
.dl-alt .dl-size { color: var(--muted); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.dl-alt .dl-size::before { content: none; }
.dl-limit { margin: 0; font-size: 13px; color: var(--muted); }
.dl-version { margin: 0; font-size: 14px; color: var(--muted); }
.dl-version [data-release-version] { font-family: var(--mono); color: var(--fg); }
.dl-phone { display: none; flex-direction: column; gap: 12px; }
.dl-phone p { margin: 0; }
.dl-after { background: var(--bg); border-radius: var(--radius); padding: 28px 32px; }
.dl-soon { grid-template-columns: minmax(0, 1fr); }
.dl-soon-lead { margin: 0 0 20px; font-size: 17px; color: var(--fg-2); }
.dl-soon-os { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dl-soon-os li { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 14px; color: var(--fg-2); }
.dl-soon-os strong { color: var(--fg); }
.dl-after h2 { font-size: 19px; margin: 0 0 18px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps li strong { font-size: 15px; }
.steps li span { font-size: 14px; color: var(--fg-2); }
.note-warn { margin: 20px 0 0; background: var(--warn-bg); color: var(--warn-fg); border-radius: 8px; padding: 12px 14px; font-size: 13px; }
.note-warn a { color: var(--warn-fg); font-weight: 700; }
html[data-device='mobile'] .dl-desktop { display: none; }
html[data-device='mobile'] .dl-phone { display: flex; }

/* 製品紹介トップ */
.soon-pill { font-size: 10px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 20px; padding: 2px 7px; }
.hero { min-height: 490px; padding: 56px 24px 48px; display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 32px; align-items: center; }
.hero-copy { padding-left: 16px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font: 700 11px/1.4 var(--mono); letter-spacing: .12em; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: #49a987; box-shadow: 0 0 0 4px rgba(73,169,135,.13); }
.hero h1 { margin: 0; font-size: clamp(38px, 4vw, 52px); line-height: 1.2; letter-spacing: -.045em; }
.hero h1 span { color: var(--accent); }
.hero-lead { margin: 22px 0 24px; color: var(--fg-2); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.hero-cta { display: inline-flex; align-items: center; gap: 28px; background: var(--ink); color: var(--on-ink); border-radius: 8px; padding: 13px 18px; text-decoration: none; font-weight: 700; }
.hero-cta:hover { color: var(--on-ink); opacity: .86; }
.hero-cta span, .hero-link span { color: #87a6ff; }
.hero-link { color: var(--fg); font-size: 14px; font-weight: 650; text-decoration: none; }
.hero-meta { margin: 18px 0 0; font: 11px var(--mono); color: var(--muted); }
.hero-visual { min-width: 0; margin: 0; padding: 12px; background: linear-gradient(145deg,#dfe5f2,#cfd8ec); border: 1px solid #c6cee0; border-radius: 16px; box-shadow: 0 24px 55px rgba(32,48,82,.14); transform: perspective(1200px) rotateY(-4deg) rotateX(1deg); }
.hero-shot { display: block; width: 100%; height: auto; border: 1px solid #c5ccda; border-radius: 8px; box-shadow: 0 5px 20px rgba(25,37,58,.12); background: #fff; }
.trust-strip { display:flex; align-items:center; gap:18px; padding:17px 30px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); font:9px var(--mono); letter-spacing:.08em; }.trust-strip i { width:3px;height:3px;border-radius:50%;background:var(--accent); }.trust-jp { margin-left:auto; font:12px var(--font); letter-spacing:0; }
.feature-intro { max-width:780px; margin:88px auto 28px; text-align:center; }.feature-intro h2,.section-heading h2,.use-flow h2 { margin:0; font-size:32px; letter-spacing:-.03em; }.feature-intro>p:last-child { max-width:620px; margin:14px auto 0; color:var(--muted); }
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.feature-grid article { min-height:220px; padding:22px; background:var(--panel); border:1px solid var(--line); border-radius:12px; }.feature-number { color:var(--muted); font:10px var(--mono); letter-spacing:.08em; }.feature-icon { display:grid;place-items:center;width:38px;height:38px;margin-top:18px;border-radius:9px;background:var(--panel-2);color:var(--accent);font-size:20px; }.feature-grid h3 { margin:13px 0 6px; font-size:17px; }.feature-grid p { margin:0 0 16px; color:var(--muted); font-size:13px; line-height:1.8; }.feature-grid a,.text-arrow { color:var(--accent); font-size:13px; font-weight:700; text-decoration:none; }.feature-grid a b { padding-left:5px; }
.dl { scroll-margin-top:90px; margin-top:68px; box-shadow:0 12px 35px rgba(30,40,60,.04); }.dl h2 { letter-spacing:-.04em; }
.use-flow { display:grid; grid-template-columns: .85fr 1.15fr; gap:64px; align-items:center; padding:34px 12px; }.use-flow>div>p:not(.eyebrow) { color:var(--muted); font-size:14px; }.use-flow ol { list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }.use-flow li { display:flex; gap:18px; align-items:center; padding:17px 6px; border-bottom:1px solid var(--line); }.use-flow li>b { color:var(--accent); font:12px var(--mono); }.use-flow li strong,.use-flow li small { display:block; }.use-flow li small { color:var(--muted); font-size:12px; }
.ecosystem { padding:34px 12px; }.section-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:22px; }.ecosystem-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--line); gap:1px; }.ecosystem-grid a,.ecosystem-grid>div { min-height:130px; display:flex; flex-direction:column; padding:20px; background:var(--panel); color:var(--fg); text-decoration:none; }.ecosystem-grid a:hover { background:var(--panel-2); }.ecosystem-grid small { color:var(--muted); font:9px var(--mono); letter-spacing:.08em; }.ecosystem-grid strong { margin:12px 0 6px; font-size:16px; }.ecosystem-grid strong .soon-pill { font:9px var(--font); vertical-align:2px; }.ecosystem-grid span { color:var(--muted); font-size:12px; }.contribute-note { margin:12px 0; color:var(--muted); font-size:12px; }
.server-banner { scroll-margin-top:90px; display:flex; justify-content:space-between; align-items:center; gap:28px; margin-top:38px; padding:26px 30px; background:var(--ink); color:var(--on-ink); border-radius:14px; }.server-banner .eyebrow { color:#8eabff; }.server-banner h2 { margin:0; font-size:20px; }.server-banner p:not(.eyebrow) { margin:6px 0 0; max-width:690px; color:var(--on-ink-muted); font-size:13px; }.server-actions { display:grid; grid-template-columns:auto auto; gap:8px; align-items:center; flex:none; }.server-actions button { padding:11px 15px; border:0; border-radius:7px; background:#454b56; color:#aeb5c1; font:inherit; font-size:12px; cursor:not-allowed; }.server-actions>a { padding:10px 12px; border:1px solid #626a78; border-radius:7px; color:var(--on-ink); font-size:12px; text-decoration:none; }.server-actions>a span { padding-left:6px; color:#8eabff; }.server-actions small { grid-column:1/-1; color:var(--on-ink-muted); font-size:10px; text-align:right; }

/* やりたいこと */
.goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.goal { display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; }
.goal:hover { border-color: var(--accent); color: var(--fg); }
.goal strong { font-size: 16px; }
.goal span { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* リンクの一覧（FAQ・ヘルプ目次） */
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.link-list a { display: flex; flex-direction: column; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); text-decoration: none; }
.link-list a:hover { border-color: var(--accent); color: var(--fg); }
.link-list a span { font-size: 13px; color: var(--muted); }
.faq-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.support { background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; margin-top: 46px; }
.support h2 { color: #fff; font-size: 19px; margin: 0; }
.support p { margin: 0; font-size: 14px; color: var(--on-ink-muted); }
.help-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.help-index h2 { font-size: 20px; margin: 0 0 12px; }

/* ヘルプ記事 */
.help { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; min-height: 70vh; }
.help-nav { padding: 32px 20px 48px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; font-size: 14px; }
.help-nav-group { display: flex; flex-direction: column; gap: 2px; }
.help-nav-head { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 4px; }
.help-nav a { padding: 6px 10px; border-radius: 6px; color: var(--fg-2); text-decoration: none; }
.help-nav a:hover { background: var(--panel-2); }
.help-nav a[aria-current='page'] { background: var(--panel-2); color: var(--fg); font-weight: 700; }
.article { padding: 32px 56px 64px; max-width: 800px; }
.article h1 { font-size: 32px; line-height: 1.4; margin: 0 0 16px; }
.crumbs { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.article-os { margin: 8px 0 20px; }
.prose { font-size: 16px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li + li { margin-top: 6px; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--code-bg); padding: 1px 6px; border-radius: 4px; }
.prose pre { background: var(--ink); color: var(--on-ink); padding: 18px 20px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0 0 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel-2); }
.prose blockquote { margin: 0 0 16px; padding: 12px 16px; background: var(--warn-bg); color: var(--warn-fg); border-radius: 8px; }
.prose blockquote p:last-child { margin: 0; }
.prose kbd { font-family: var(--mono); font-size: 0.85em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--panel); }
.article-foot { margin-top: 40px; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.article-foot p { margin: 0; }
.article-foot p + p { margin-top: 8px; }
.help-side { padding: 104px 24px 32px 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.help-side-head { font-weight: 700; color: var(--muted); }
.help-side a { text-decoration: none; }

/* フッター */
.foot { border-top: 1px solid var(--line); }
.foot-inner { max-width: 1280px; margin: 0 auto; padding: 24px 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }

/* 幅が狭いとき */
@media (max-width: 1100px) {
  .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help { grid-template-columns: 240px minmax(0, 1fr); }
  .help-side { display: none; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns:minmax(0,1fr); gap:24px; padding:40px 4px 32px; }.hero-copy { padding-left:4px; }.hero-visual { transform:none; max-width:700px; width:100%; margin:auto; }
  .trust-strip { flex-wrap:wrap; justify-content:center; }.trust-jp { flex-basis:100%; margin:0; text-align:center; }
  .feature-grid { grid-template-columns:1fr; }.feature-grid article { min-height:0; }
  .use-flow { grid-template-columns:minmax(0,1fr); gap:22px; }.ecosystem-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .server-banner { align-items:flex-start; flex-direction:column; }
  .top-inner { padding: 0 16px; gap: 16px; }
  .top-nav, .top-gh { display: none; }
  .search { width: auto; flex: 1; }
  .search kbd { display: none; }
  .wrap { padding: 20px 16px 48px; }
  .dl { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 28px; }
  .dl h2 { font-size: 28px; }
  .dl-after { padding: 20px; }
  .faq-row, .help-index { grid-template-columns: minmax(0, 1fr); }
  .support { margin-top: 0; }
  .help { grid-template-columns: minmax(0, 1fr); }
  .help-nav { order: 2; border-right: 0; border-top: 1px solid var(--line); padding: 24px 16px; }
  .article { padding: 20px 16px 40px; }
  .article h1 { font-size: 26px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size:44px; }.hero-lead br { display:none; }.hero-actions { align-items:flex-start; flex-direction:column; gap:14px; }.hero-visual { padding:6px; }
  .trust-strip { gap:9px; font-size:8px; }.trust-strip span:nth-of-type(2),.trust-strip span:nth-of-type(3),.trust-strip i { display:none; }.trust-jp { display:block !important; }
  .feature-intro { margin-top:56px; }.feature-intro h2,.section-heading h2,.use-flow h2 { font-size:25px; }.ecosystem-grid { grid-template-columns:1fr; }.section-heading { align-items:flex-start; flex-direction:column; gap:10px; }
  .goals { grid-template-columns: minmax(0, 1fr); }
  .by { display: none; }
}
