/* Ripen LP の共通スタイル（全言語のページが読む）。build-lp.mjs は触らない。 */
:root {
  /* Ripen ライトモード（実りの庭：白地 × 新緑グリーン × 収穫ゴールド） */
  --green: #16A34A;       /* 主役グリーン（塗り・大きな見出し） */
  --green-d: #0C7A35;     /* 濃いグリーン（小さな文字・ホバー） */
  --green-a: #34C759;     /* 明るいグリーン（ドット・装飾の差し色） */
  --gold: #FFC400;        /* 収穫ゴールド（塗り・ドット） */
  --gold-ink: #B26B00;    /* 文字用の濃いゴールド（白地で可読） */
  --coral: #FF7A66;
  --lav: #9B7DE0;
  /* surfaces (light) */
  --bg: #FBFCF9;
  --bg-alt: #F1F6EE;
  --bg-card: #FFFFFF;
  --bg-card2: #F6F8F3;
  --border: rgba(20,45,28,0.10);
  --border-light: rgba(20,45,28,0.18);
  /* text */
  --text: #13241A;
  --text-sub: rgba(19,36,26,0.66);
  --text-light: rgba(19,36,26,0.45);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-script, 'Noto Sans'), 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.8; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251,252,249,0.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.nav-inner { max-width: 1100px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.nav-brand .nav-icon { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; background: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px var(--border); }
.nav-brand .nav-icon svg { width: 26px; height: 26px; }
.nav-cta {
  background: var(--green); color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 20px; border-radius: 9px; transition: all 0.2s;
}
.nav-cta:hover { background: var(--green-a); transform: translateY(-1px); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-select { background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; cursor: pointer; }
.lang-select:focus { outline: none; border-color: var(--green); }
@media (max-width: 480px) { .nav-cta { display: none; } }

/* HERO */
.hero {
  padding: 124px 24px 0;
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(22,163,74,0.12) 0%, transparent 60%),
    radial-gradient(60% 50% at 85% 30%, rgba(255,196,0,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #FBFCF9 0%, #EEF5EA 60%, #FBFCF9 100%);
  position: relative; overflow: hidden;
}
.hero-inner { max-width: 1000px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(22,163,74,0.10); color: var(--green-d); font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 100px; border: 1px solid rgba(22,163,74,0.28); margin-bottom: 28px; }
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-a); box-shadow: 0 0 8px var(--green-a); }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 900; color: var(--text); line-height: 1.18; margin-bottom: 22px; letter-spacing: -0.5px; }
h1 .accent { color: var(--green); }
h1 .gold { color: var(--gold-ink); }
.hero-desc { font-size: clamp(15px,2vw,18px); color: var(--text-sub); line-height: 1.85; margin-bottom: 36px; max-width: 680px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; font-size: 15px; font-weight: 800; padding: 15px 32px; border-radius: 12px; border: none; cursor: pointer; box-shadow: 0 8px 24px rgba(22,163,74,0.30); transition: all 0.2s; }
.btn-primary:hover { background: var(--green-d); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(22,163,74,0.38); }
.btn-primary svg { width: 20px; height: 20px; fill: currentColor; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; color: var(--text-sub); font-size: 14px; font-weight: 600; padding: 14px 8px; transition: color 0.2s; }
.btn-ghost:hover { color: var(--text); }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-light); margin-bottom: 52px; }

.hero-screenshot {
  max-width: 940px; margin: 0 auto; border-radius: 18px 18px 0 0; overflow: hidden;
  box-shadow: 0 -10px 70px rgba(52,199,89,0.14), 0 0 0 1px var(--border);
}
.hero-screenshot img { width: 100%; display: block; }

/* CONCEPT BANNER */
.concept-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 44px 24px; text-align: center;
}
.concept-inner { max-width: 760px; margin: 0 auto; }
.concept-heading { font-size: clamp(20px,3vw,26px); font-weight: 800; color: var(--green); margin-bottom: 10px; line-height: 1.4; }
.concept-heading .gold { color: var(--gold-ink); }
.concept-sub { font-size: 15px; color: var(--text-sub); line-height: 1.8; }

/* SECTIONS */
section { padding: 96px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--green-d); margin-bottom: 12px; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--text); line-height: 1.35; margin-bottom: 16px; }
.section-lead { font-size: 16px; color: var(--text-sub); max-width: 640px; line-height: 1.85; margin-bottom: 56px; }
.section-center { text-align: center; }
.section-center .section-lead { margin-left: auto; margin-right: auto; }
.bg-alt { background: var(--bg-alt); }

/* PROBLEM BANNER */
.problem-banner {
  background: linear-gradient(135deg, #EEF5EA, #E6F2E2, #EEF5EA);
  color: var(--text); padding: 80px 24px; text-align: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.problem-banner h2 { color: var(--text); margin-bottom: 16px; }
.problem-banner p { color: var(--text-sub); font-size: 17px; max-width: 660px; margin: 0 auto; line-height: 1.9; }
.problem-banner .highlight { color: var(--green-d); font-weight: 700; }

/* FLOW */
.flow-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; max-width: 940px; margin: 0 auto; }
.flow-timeline::before { content: ''; position: absolute; top: 28px; left: calc(12.5% + 12px); right: calc(12.5% + 12px); height: 2px; background: linear-gradient(90deg, var(--border), var(--green), var(--gold)); border-radius: 2px; }
.flow-item { text-align: center; position: relative; z-index: 1; padding: 0 10px; }
.flow-num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--green-d), var(--green)); color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(22,163,74,0.32); }
.flow-item h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.flow-item p { font-size: 13px; color: var(--text-sub); line-height: 1.65; }

/* SHOWCASE */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 88px; }
.showcase.reverse .showcase-img { order: -1; }
.showcase-text h3 { font-size: clamp(22px,3vw,28px); font-weight: 800; color: var(--text); margin-bottom: 12px; line-height: 1.35; }
.showcase-text h3 .accent { color: var(--green); }
.showcase-text p { font-size: 16px; color: var(--text-sub); line-height: 1.85; margin-bottom: 20px; }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-sub); line-height: 1.6; }
.feat-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 9px; box-shadow: 0 0 6px rgba(52,199,89,0.6); }
.showcase-img { border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(20,50,30,0.12), 0 0 0 1px var(--border); }
.showcase-img img { width: 100%; display: block; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 30px 26px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,50,30,0.10); border-color: rgba(22,163,74,0.35); }
.feat-icon { width: 50px; height: 50px; border-radius: 13px; background: rgba(22,163,74,0.10); border: 1px solid rgba(22,163,74,0.22); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.feat-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--text-sub); line-height: 1.75; }

/* SAFETY */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.safety-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px; }
.safety-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.safety-card p { font-size: 14px; color: var(--text-sub); line-height: 1.75; }

/* NOTE */
.note-box { max-width: 820px; margin: 0 auto; background: rgba(255,196,0,0.10); border: 1px solid rgba(178,107,0,0.28); border-radius: 16px; padding: 24px 28px; }
.note-box h3 { font-size: 15px; font-weight: 700; color: var(--gold-ink); margin-bottom: 10px; display:flex; align-items:center; gap:8px; }
.note-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.note-box li { font-size: 14px; color: var(--text-sub); line-height: 1.7; padding-inline-start: 18px; position: relative; }
.note-box li::before { content: '・'; position: absolute; inset-inline-start: 0; color: var(--gold-ink); }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover { border-color: var(--border-light); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer; padding: 20px 24px; font-size: 15px; font-weight: 600; color: var(--text); text-align: start; font-family: inherit; line-height: 1.5; }
.faq-q::after { content: ''; width: 20px; height: 20px; flex-shrink: 0; margin-inline-start: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a-inner { padding: 4px 24px 20px; font-size: 14px; color: var(--text-sub); line-height: 1.85; }

/* CTA BOTTOM */
.cta-bottom {
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(22,163,74,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #FBFCF9, #EEF5EA);
  text-align: center; padding: 96px 24px;
  border-top: 1px solid var(--border);
}
.cta-bottom h2 { margin-bottom: 24px; }
.cta-bottom h2 .gold { color: var(--gold-ink); }
.cta-checklist { max-width: 460px; margin: 0 auto 36px; text-align: start; display: flex; flex-direction: column; gap: 12px; }
.cta-check-item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--text); }
.cta-check-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--text-light); }

/* FOOTER */
footer { background: var(--bg); padding: 40px 24px; text-align: center; border-top: 1px solid var(--border); }
.footer-inner { max-width: 700px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; font-size: 13px; color: var(--text-light); }
.footer-inner a { color: var(--text-light); transition: color 0.2s; }
.footer-inner a:hover { color: var(--green-a); }

@media (max-width: 768px) {
  .hero { padding: 96px 20px 0; }
  .hero-screenshot { max-width: 100%; border-radius: 12px 12px 0 0; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase-img { order: -1; }
  .features-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .flow-timeline { grid-template-columns: 1fr 1fr; gap: 32px; }
  .flow-timeline::before { display: none; }
}
@media (max-width: 480px) {
  section { padding: 64px 16px; }
  .flow-timeline { grid-template-columns: 1fr; gap: 24px; }
  .nav { padding: 0 16px; }
}

/* 言語の案内（/ripen/ をブラウザ言語が日本語以外で開いたときだけ lp.js が出す） */
.lang-suggest { position: fixed; top: 64px; left: 0; right: 0; z-index: 99; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 16px; background: var(--green-d); color: #fff; font-size: 14px; font-weight: 600; }
.lang-suggest a { text-decoration: underline; text-underline-offset: 3px; }
.lang-suggest button { background: none; border: none; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0.8; }
.lang-suggest[hidden] { display: none; }

/* VIDEO */
.video-wrap { max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(20,50,30,0.14), 0 0 0 1px var(--border); background: #0b1a10; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 長い語の多い言語でも横にはみ出さない */
h1, h2, h3, p, li { overflow-wrap: anywhere; }
.nav-brand span { white-space: nowrap; }
@media (max-width: 480px) {
  .lang-select { max-width: 132px; }
  .lang-suggest { font-size: 13px; }
}

/* 字間を空けると崩れる文字（タイの声調記号・アラビア文字の連結・デーヴァナーガリー／ベンガル文字の結合） */
html:is([lang="th"], [lang="ar"], [lang="hi"], [lang="bn"]) .section-tag { letter-spacing: 0; }
/* 言語の案内を出したときは、その高さぶん本文を下げる */
.has-suggest .hero { padding-top: 164px; }
@media (max-width: 768px) { .has-suggest .hero { padding-top: 140px; } }
