/* ---- RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- VARIABLES ---- */
:root {
  --green-dark: #1b5e20;
  --green: #2e7d32;
  --green-mid: #388e3c;
  --green-light: #4caf50;
  --green-pale: #f1f8e9;
  --green-tint: #e8f5e9;
  --accent: #66bb6a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-300: #e0e0e0;
  --gray-500: #9e9e9e;
  --gray-700: #616161;
  --text: #212121;
}

/* ---- BASE ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    sans-serif;
  color: var(--text);
  line-height: 1.7;
}

/* ---- NAV ---- */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-300);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--green-light);
}

/* ---- FOOTER ---- */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 0.875rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

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

/* ================================================================
   PAGE: HOME (index.html)
   ================================================================ */

.page-home {
  background: var(--white);
}

.page-home nav {
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-home footer {
  padding: 32px 24px;
}

/* ---- NAV CTA ---- */
.nav-cta {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

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

/* ---- HERO ---- */
.hero {
  background: linear-gradient(
    160deg,
    var(--green) 0%,
    var(--green-mid) 50%,
    var(--green-light) 100%
  );
  color: var(--white);
  padding: 80px 24px 72px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #a5d6a7, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-home .btn-primary {
  background: var(--white);
  color: var(--green-dark);
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.page-home .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ---- GRID MOCKUP ---- */
.hero-visual {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.phone-frame {
  background: var(--green-dark);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  width: min(320px, 85vw);
}

.phone-screen {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
}

.phone-header {
  background: var(--green);
  color: var(--white);
  padding: 12px 16px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-demo {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.grid-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.cell-empty {
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
}

.cell-tomato {
  background: #ffebee;
}

.cell-carrot {
  background: #fff3e0;
}

.cell-lettuce {
  background: #e8f5e9;
}

.cell-onion {
  background: #f3e5f5;
}

.cell-potato {
  background: #fff8e1;
}

.cell-spinach {
  background: #e0f7fa;
}

.cell-bean {
  background: #e8eaf6;
}

.phone-legend {
  padding: 8px 12px 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--gray-700);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* ---- SECTIONS ---- */
section {
  padding: 72px 24px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

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

.section-desc {
  text-align: center;
  color: var(--gray-700);
  font-size: 1.0625rem;
  max-width: 580px;
  margin: 0 auto 56px;
}

/* ---- FEATURES ---- */
.features-bg {
  background: var(--gray-100);
}

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

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ---- HOW IT WORKS ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: steps;
}

.step {
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ---- USE CASES ---- */
.usecases-bg {
  background: var(--green-pale);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.usecase-card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  border: 2px solid transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.usecase-card:hover {
  border-color: var(--green-light);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
}

.usecase-card .uc-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.usecase-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.usecase-card p {
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* ---- CTA ---- */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.0625rem;
  opacity: 0.85;
  margin-bottom: 36px;
}

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

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 12px 24px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.store-btn-icon {
  font-size: 1.5rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .page-home .hero {
    padding: 60px 20px 56px;
  }

  .page-home section {
    padding: 56px 20px;
  }
}

/* ================================================================
   PAGE: 404
   ================================================================ */

.page-404 {
  background: var(--green-pale);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-404 footer {
  padding: 24px;
}

.page-404 main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--green-light);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  margin-bottom: 32px;
}

.page-404 .btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.2s;
}

.page-404 .btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.35);
}

@media (max-width: 480px) {
  .card {
    padding: 36px 24px;
  }

  .error-code {
    font-size: 4rem;
  }
}

/* ================================================================
   PAGE: DOCUMENT (privacy.html / terms.html / support.html)
   ================================================================ */

.page-doc {
  background: var(--gray-100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-doc footer {
  padding: 24px;
}

.page-doc main {
  flex: 1;
  padding: 48px 24px 80px;
}

.doc-container {
  max-width: 720px;
  margin: 0 auto;
}

.doc-container h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.doc-meta {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-300);
}

.doc-container h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--green-light);
}

.doc-container p,
.doc-container li {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.doc-container ul,
.doc-container ol {
  padding-left: 1.5em;
  margin: 8px 0 16px;
}

.doc-container li + li {
  margin-top: 4px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.doc-back:hover {
  color: var(--green-dark);
}

/* legal notice table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  line-height: 1.8;
  vertical-align: top;
}

.legal-table th {
  width: 160px;
  background: #f5f8f5;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .legal-table th {
    width: auto;
    display: block;
    border-bottom: none;
  }
  .legal-table td {
    display: block;
    border-top: none;
  }
  .legal-table tr {
    display: block;
    margin-bottom: 8px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
  }
  .legal-table th,
  .legal-table td {
    border: none;
  }
}

/* support contact box */
.support-box {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  padding: 28px;
  margin-top: 32px;
  text-align: center;
}

.support-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.support-box p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  margin-bottom: 20px;
}

.support-box .btn-contact {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.support-box .btn-contact:hover {
  background: var(--green-dark);
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.faq-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}
