:root {
  color-scheme: light;
  --ink: #12161d;
  --muted: #667085;
  --faint: #8a93a2;
  --paper: #fbfbfa;
  --surface: #ffffff;
  --line: rgba(18, 22, 29, 0.09);
  --line-strong: rgba(18, 22, 29, 0.14);
  --accent: #b4530a;
  --accent-soft: #fdf0e2;
  --shadow: 0 1px 2px rgba(18, 22, 29, 0.04), 0 8px 30px rgba(18, 22, 29, 0.05);
  --shadow-lift: 0 2px 6px rgba(18, 22, 29, 0.06), 0 18px 46px rgba(18, 22, 29, 0.10);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", Meiryo, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-header, .page, .document {
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
}

/* Header */
.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.brand::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: var(--shadow);
}

nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  color: var(--faint);
  font-size: 14px;
  font-weight: 600;
}
nav a:hover { color: var(--muted); }

/* App landing hero */
.hero { padding: 64px 0 40px; }

.app-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}
.app-hero .icon {
  width: 84px; height: 84px; flex: none;
  border-radius: 19px;
  box-shadow: 0 6px 18px rgba(18, 22, 29, 0.16);
}
.app-hero .eyebrow { margin: 0 0 6px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.app-hero h1 { margin: 0; }

.hero .subtitle {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.store-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.store-note .dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 48px;
}
.feature {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.feature h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* Link cards */
.section-label {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 0 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--faint);
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 56px;
}
.links a {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.links a::after { content: "→"; color: var(--faint); font-weight: 800; }
.links a:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

/* Legal / document pages */
.document {
  padding: 52px 0 72px;
  line-height: 1.9;
}
.document h1 {
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 14px;
}
.document h2 {
  margin: 34px 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.document p, .document li { color: var(--muted); font-size: 16px; }
.document a { word-break: break-word; }
.updated { margin-top: -6px; color: var(--faint); font-size: 14px; font-weight: 600; }

/* Footer */
.foot {
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
}
.foot a { color: var(--faint); font-weight: 600; }
.foot a:hover { color: var(--muted); }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 20px 0; min-height: 0; }
  nav { justify-content: flex-start; gap: 16px; }
  .app-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .features { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
}
