:root {
  --green-deep: #122c20;
  --green-dark: #1a3a2b;
  --green: #2e7d5b;
  --green-soft: #e7f0ea;
  --ink: #1d2a23;
  --ink-soft: #4c5b53;
  --paper: #f7f6f1;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(18, 44, 32, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(18, 44, 32, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  background: var(--green-dark);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--green);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-dark) 60%, #24503a 100%);
  color: var(--white);
  padding: 96px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1.4;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36em;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: clamp(220px, 24vw, 290px);
  padding: 12px;
  background: #0b1f16;
  border-radius: 38px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.phone-screen {
  width: 100%;
  border-radius: 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--white);
  color: var(--green-deep);
}

.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.btn-outline {
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
}

.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 42em;
  margin: 0 auto 48px;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.feature-emoji {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* On-device AI */
.section-dark {
  background: var(--green-deep);
  color: var(--white);
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

.ai-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.ai-point {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.ai-point h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.ai-point p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* Privacy */
.privacy-block {
  text-align: center;
}

/* Download CTA */
.section-cta {
  background: var(--green-soft);
  text-align: center;
}

.cta-icon {
  width: 88px;
  border-radius: 22%;
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-deep);
  color: var(--white);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.store-badge-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge:hover {
  opacity: 1;
}

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.85rem;
}

/* Legal / support pages */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.page h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.page .updated {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.page h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-soft);
}

.page p,
.page li {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.page ul {
  padding-left: 1.4em;
  margin: 12px 0;
}

.page a {
  color: var(--green);
}

/* Responsive */
@media (max-width: 760px) {
  .hero {
    padding: 64px 0;
  }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
}

.lang-select {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--green-soft);
  border-radius: 999px;
  padding: 6px 30px 6px 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c5b53' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.lang-select:hover {
  border-color: var(--green);
}

[dir="rtl"] .lang-select {
  padding: 6px 12px 6px 30px;
  background-position: left 10px center;
}

/* Machine-translation disclaimer (legal pages, non-Japanese) */
.mt-disclaimer {
  max-width: 760px;
  margin: 16px auto -32px;
  padding: 10px 16px;
  background: var(--green-soft);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* RTL adjustments */
[dir="rtl"] .page ul {
  padding-left: 0;
  padding-right: 1.4em;
}
