/* Sodalice LP — DESIGN.md 準拠の最小構成 (Cloudflare Pages デプロイ用) */

:root {
  --primary: #22D372;
  --primary-pressed: #1AB35F;
  --primary-tint: #E1F7EA;
  --on-primary: #073F1F;
  --coral: #FF6B5B;
  --coral-tint: #FFE5DF;
  --on-coral: #6B1F0E;

  --label: #1c1c1e;
  --label-2: #3c3c43;
  --label-3: #8e8e93;
  --bg: #ffffff;
  --bg-2: #f7f7f8;
  --separator: rgba(60,60,67,0.18);

  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-rounded: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-tint: rgba(34, 211, 114, 0.18);
    --coral: #FF8475;
    --coral-tint: rgba(255, 132, 117, 0.18);
    --label: #ffffff;
    --label-2: #ebebf5;
    --label-3: #ebebf599;
    --bg: #000000;
    --bg-2: #1c1c1e;
    --separator: rgba(84,84,88,0.6);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  color: var(--label);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 18px;
  color: var(--label);
  text-decoration: none;
}
.nav__links { display: flex; gap: 20px; }
.nav__links a {
  color: var(--label-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--primary); }

/* ===== HERO ===== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero__copy { max-width: 540px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero__copy h1 {
  font-family: var(--font-rounded);
  font-weight: 900;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.lede {
  font-size: 18px;
  color: var(--label-2);
  margin-bottom: 28px;
  max-width: 480px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta:hover { transform: scale(1.02); background: var(--primary-pressed); }
.cta:active { transform: scale(0.98); }
.hero__sodi {
  background: var(--primary-tint);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  justify-content: center;
}
.hero__sodi img { max-width: 320px; }

/* ===== HOW ===== */
.how {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}
.how h2 {
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 40px;
  text-align: center;
  margin-bottom: 48px;
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps li {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.steps li img {
  max-width: 120px;
  margin: 0 auto 16px;
}
.steps h3 {
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 8px;
}
.steps p { color: var(--label-2); font-size: 15px; }

/* ===== PRIVACY ===== */
.privacy {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}
.privacy__copy h2 {
  font-family: var(--font-rounded);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.privacy__copy p {
  color: var(--label-2);
  font-size: 16px;
  max-width: 440px;
}
.privacy__list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.privacy__list li {
  background: var(--bg-2);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 20px;
}
.privacy__list h3 {
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 6px;
}
.privacy__list p {
  color: var(--label-2);
  font-size: 14px;
}
.privacy__list a {
  color: var(--on-primary);
  font-weight: 700;
  text-decoration-color: var(--primary);
}

/* ===== WAITLIST ===== */
.waitlist {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
.waitlist__inner {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.waitlist__sodi {
  max-width: 120px;
  margin: 0 auto 16px;
}
.waitlist__inner h2 {
  font-family: var(--font-rounded);
  font-weight: 900;
  font-size: 40px;
  margin-bottom: 12px;
}
.waitlist__inner p {
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 24px;
  opacity: 0.85;
}
.waitlist__form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.waitlist__form input {
  flex: 1;
  background: white;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--label);
  font-family: var(--font-text);
}
.waitlist__form input:disabled {
  color: var(--label-3);
  cursor: not-allowed;
}
.waitlist__form button {
  background: var(--on-primary);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.waitlist__form button:hover { transform: scale(1.03); }
.waitlist__form button:disabled {
  cursor: not-allowed;
  opacity: 0.74;
  transform: none;
}
.waitlist__note {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--separator);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-rounded);
  font-weight: 800;
}
.footer__brand img { width: 36px; height: 36px; }
.footer__links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--label-2);
  text-decoration: none;
  font-size: 13px;
}
.footer__links a:hover { color: var(--primary); }
.footer__copy {
  font-size: 12px;
  color: var(--label-3);
  text-align: right;
}

/* ===== 404 ===== */
.not-found {
  min-height: calc(100vh - 84px);
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.not-found img {
  width: 132px;
  height: auto;
  margin-bottom: 20px;
}
.not-found h1 {
  font-family: var(--font-rounded);
  font-weight: 900;
  font-size: 56px;
  line-height: 1.08;
  margin-bottom: 16px;
}
.not-found .lede { margin-left: auto; margin-right: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
  }
  .nav__links {
    flex: 0 0 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 12px;
  }
  .nav__links a { font-size: 13px; }
  .hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 40px 20px 24px;
  }
  .nav,
  .how,
  .privacy,
  .waitlist,
  .footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
  }
  .hero__copy { width: 100%; max-width: none; }
  .hero__copy h1 { font-size: 42px; }
  .lede { max-width: 330px; }
  .hero__sodi { order: -1; width: 100%; margin-bottom: 32px; }
  .hero__sodi img { max-width: 220px; }
  .how h2,
  .privacy__copy h2,
  .waitlist__inner h2 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; padding-bottom: 56px; }
  .waitlist__form { flex-direction: column; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer__copy { text-align: center; }
  .not-found h1 { font-size: 38px; }
}
