:root {
  --bg: #fdfcf7;
  --bg-soft: #f5f1e6;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --border: #e5e0d3;
  --card: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --radius: 14px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

nav.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

nav.site-nav a {
  color: var(--text-muted);
}

nav.site-nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.hero .tagline {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 600px;
}

.app-store-note {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Sections */
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

section h2 {
  font-size: clamp(22px, 4vw, 28px);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

section h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature .emoji {
  font-size: 28px;
  margin-bottom: 8px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Screenshots */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.screenshots img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 18px 64px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

/* Doc / long-form pages */
.doc {
  padding: 56px 0;
}

.doc h1 {
  font-size: clamp(26px, 5vw, 32px);
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.doc h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.doc h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

.doc ul, .doc ol {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.lang-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.lang-switch a {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
}

.lang-switch a:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

/* Contact card */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}

.contact-card .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-card .value {
  font-size: 18px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.site-footer nav {
  margin-bottom: 8px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--text-muted);
}

/* App grid (developer top) */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.app-card {
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  align-items: flex-start;
}

.app-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  object-fit: cover;
}

.app-card-body {
  flex: 1;
  min-width: 0;
}

.app-card-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.app-card-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.app-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.btn:hover {
  text-decoration: none;
  background: var(--bg-soft);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #b45309;
  color: #fff;
}

@media (max-width: 600px) {
  .hero {
    padding: 48px 0 36px;
  }
  section {
    padding: 40px 0;
  }
  .app-card {
    flex-direction: column;
    align-items: stretch;
  }
}
