* {
  box-sizing: border-box;
}

:root {
  --green: #0f6b3a;
  --green-dark: #073b24;
  --lime: #b8e986;
  --gold: #f4b740;
  --cream: #fff9ec;
  --text: #143326;
  --muted: #62736b;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 107, 58, 0.16);
  --radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fbfff7;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 107, 58, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--green), #6abf4b);
  box-shadow: 0 12px 30px rgba(15, 107, 58, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #315244;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-button {
  padding: 10px 18px;
  background: var(--green);
  color: white;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(184, 233, 134, 0.42), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(244, 183, 64, 0.26), transparent 30%),
    linear-gradient(135deg, #f7ffef 0%, #eefbea 48%, #ffffff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -120px -5%;
  height: 250px;
  background: white;
  transform: rotate(-3deg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: center;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.18rem;
  margin: 24px 0 34px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
}

.primary {
  color: white;
  background: linear-gradient(135deg, var(--green), #2d9f56);
  box-shadow: 0 18px 38px rgba(15, 107, 58, 0.24);
}

.secondary {
  border: 1px solid rgba(15, 107, 58, 0.2);
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.7);
}

.trust-row {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-row span {
  border: 1px solid rgba(15, 107, 58, 0.12);
  background: rgba(255, 255, 255, 0.72);
  padding: 9px 13px;
  border-radius: 999px;
  color: #4f685d;
  font-size: 0.9rem;
  font-weight: 750;
}

.phone-wrap {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(330px, 82vw);
  height: 610px;
  border-radius: 46px;
  padding: 16px;
  background: #11231a;
  box-shadow: 0 35px 85px rgba(7, 59, 36, 0.25);
  transform: rotate(4deg);
}

.phone-top {
  width: 112px;
  height: 25px;
  border-radius: 0 0 17px 17px;
  background: #11231a;
  margin: -4px auto 10px;
}

.app-screen {
  height: calc(100% - 31px);
  border-radius: 34px;
  background: linear-gradient(180deg, #f8fff2, #e7f7df);
  padding: 24px;
  overflow: hidden;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  margin-bottom: 18px;
}

.screen-header small {
  color: var(--green);
}

.weather-card,
.chat-card {
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 38px rgba(15, 107, 58, 0.12);
}

.weather-card strong {
  display: block;
  font-size: 1.35rem;
}

.weather-card p,
.chat-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.mini-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-grid div {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 96px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 107, 58, 0.08);
  border-radius: 22px;
  font-weight: 850;
}

.mini-grid div span {
  font-size: 0.76rem;
}

.chat-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(244, 183, 64, 0.18);
}

.floating-card {
  position: absolute;
  right: 5%;
  bottom: 120px;
  background: white;
  padding: 18px 22px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}

.floating-card span {
  color: var(--muted);
}

.intro,
.features,
.farmers,
.app,
.contact {
  padding: 92px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.split p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: white;
  border: 1px solid rgba(15, 107, 58, 0.08);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 12px 36px rgba(15, 107, 58, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.farmers {
  background: var(--cream);
}

.farmers-grid,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 58px;
  align-items: center;
}

.image-panel {
  min-height: 430px;
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(15, 107, 58, 0.92), rgba(78, 156, 55, 0.84)),
    url("data:image/svg+xml,%3Csvg width='700' height='500' viewBox='0 0 700 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.16'%3E%3Ccircle cx='130' cy='90' r='70'/%3E%3Ccircle cx='560' cy='350' r='120'/%3E%3Cpath d='M120 420 C210 280 330 220 520 130' stroke='%23fff' stroke-width='18' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-content {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  color: white;
}

.panel-content span {
  font-size: 3rem;
}

.panel-content p {
  color: rgba(255, 255, 255, 0.78);
}

.leaf {
  position: absolute;
  border-radius: 60% 0 60% 0;
  background: rgba(184, 233, 134, 0.42);
}

.leaf.one {
  width: 130px;
  height: 130px;
  top: 46px;
  right: 60px;
  transform: rotate(22deg);
}

.leaf.two {
  width: 90px;
  height: 90px;
  top: 190px;
  left: 55px;
  transform: rotate(-20deg);
}

.farmers-copy p {
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 800;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: white;
  background: var(--green);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.app-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  border-radius: 38px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-shadow: var(--shadow);
}

.app-box .section-label,
.app-box p {
  color: rgba(255, 255, 255, 0.78);
}

.dark {
  background: white;
  color: var(--green-dark);
  box-shadow: none;
}

.contact-card {
  background: white;
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 107, 58, 0.08);
}

.contact-label {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-card a {
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 900;
  word-break: break-all;
}

.footer {
  background: #071f14;
  color: white;
  padding: 58px 0 24px;
}

.footer-grid {
  align-items: start;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
}

.footer p,
.footer a,
.copyright {
  color: rgba(255, 255, 255, 0.68);
}

.footer strong {
  display: block;
  margin-bottom: 14px;
}

.footer a {
  display: block;
  margin-bottom: 10px;
}

.footer-brand {
  margin-bottom: 14px;
}

.copyright {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    padding: 20px;
    background: white;
    border-radius: 22px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .farmers-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .phone-wrap {
    min-height: 530px;
  }

  .phone {
    height: 520px;
    transform: rotate(0);
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .app-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 64px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .trust-row,
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro,
  .features,
  .farmers,
  .app,
  .contact {
    padding: 64px 0;
  }

  .app-box {
    padding: 30px;
    border-radius: 28px;
  }
}


.language-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(15, 107, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: #315244;
  font-weight: 850;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--green);
  color: white;
}

html[lang="ja"] body {
  font-family: Inter, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
  letter-spacing: -0.03em;
  line-height: 1.16;
}

@media (max-width: 900px) {
  .language-switch {
    margin-left: auto;
    margin-right: 10px;
  }

  .nav {
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .language-switch {
    order: 2;
  }

  .menu-toggle {
    order: 3;
  }

  .brand {
    flex: 1;
  }

  .lang-btn {
    padding: 7px 10px;
    font-size: 0.82rem;
  }
}
