:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1d1b18;
  --muted: #6b665e;
  --line: #e7e2d9;
  --accent: #4a3bd6;
  --accent-soft: #ecebfc;
  --thread: #5b3cf6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1d1c19;
    --text: #efebe4;
    --muted: #a39d93;
    --line: #2f2d29;
    --accent: #6fd3ea;
    --accent-soft: #1c2140;
    --thread: #0fd9e8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", sans-serif;
  font-feature-settings: "palt";
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.brand-mark { width: 26px; height: 26px; }
nav.lang a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav.lang a:hover { color: var(--text); }

.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero p { color: var(--muted); font-size: 18px; margin: 0; max-width: 34em; }
.thread { display: block; width: 120px; height: 14px; margin: 0 0 28px; }

section { padding: 32px 0; }
h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; font-weight: 600; }

.apps { display: grid; gap: 16px; }
.app {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
}
.app > div { min-width: 0; }
.app img { width: 64px; height: 64px; border-radius: 15px; }
.app h3 { margin: 0; font-size: 20px; }
.app .tagline { margin: 2px 0 10px; color: var(--muted); font-size: 15px; }
.app p { margin: 0 0 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.meta li { font-size: 13px; background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 2px 10px; }
.app .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; }

.about p { margin: 0 0 12px; }

footer.site {
  border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 48px;
  color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
footer.site a { color: var(--muted); }

/* 文書ページ (プライバシーポリシー) */
.doc { padding: 24px 0; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.3; margin: 24px 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 20px; margin: 36px 0 10px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 4px 0; }

@media (max-width: 480px) {
  .app { grid-template-columns: 1fr; }
  .app img { width: 56px; height: 56px; }
}
