:root {
  --accent: #2EB06B;
  --accent-dark: #228a53;
  --accent-insect: #4A8B3A;
  --bg: #ffffff;
  --bg-soft: #f7faf5;
  --text: #1f2a24;
  --text-muted: #5c6b62;
  --border: #e3ece5;
  --shadow: 0 6px 24px rgba(31, 42, 36, 0.08);
  --radius: 16px;
  --max: 960px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

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

/* Language bar */
.langbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.langbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 10px 16px;
  max-width: var(--max);
  margin: 0 auto;
}
.langbar button {
  font: inherit;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}
.langbar button:hover { color: var(--text); }
.langbar button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 20px 48px;
  background: var(--bg-soft);
}
.hero .logo { width: min(220px, 50vw); margin: 0 auto 24px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.hero p {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 600px;
}

/* Sections */
section.block {
  padding: 64px 0;
}
section.block h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 0 0 24px;
  text-align: center;
  letter-spacing: -0.01em;
}
section.block p.lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 24px;
}

/* App cards */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 12px;
}
@media (min-width: 640px) {
  .apps-grid { grid-template-columns: 1fr 1fr; }
}
.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(31,42,36,0.12);
}
.app-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 14px;
  background: var(--accent);
  color: #fff;
}
.app-card.insect .icon { background: var(--accent-insect); }
.app-card .icon-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(31,42,36,0.12);
  object-fit: cover;
}
.app-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.app-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.app-card .badge {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-dark);
  background: #e8f6ef;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* About */
.about {
  background: var(--bg-soft);
}
.about p {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
}

/* Contact */
.contact { text-align: center; }
.contact .mail {
  display: inline-block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.contact .mail:hover { background: var(--accent-dark); text-decoration: none; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}
footer a { margin: 0 8px; }

/* Locale switching */
.locale { display: none; }
.locale.active { display: block; }
