/* LiftSmart site — v2 (2026-09). Palette from the app: blue accent on light/dark navy.
   Light by default, dark via system preference or the manual toggle (html[data-theme] wins). */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --card: #E9EEF6;
  --card-2: #F7F9FC;
  --text: #1F2937;
  --text-2: #6B7280;
  --accent: #368DEB;
  --accent-strong: #1A6FD4;
  --accent-soft: rgba(54, 141, 235, 0.12);
  --on-accent: #FFFFFF;
  --border: rgba(31, 41, 55, 0.08);
  --shadow: 0 18px 60px rgba(31, 41, 55, 0.12);
  --shadow-sm: 0 6px 24px rgba(31, 41, 55, 0.08);
  --phone: #0F1117;
  --pill: #111827;
  --pill-text: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1A2E; --surface: #232739; --card: #2A2F44; --card-2: #262B3E;
    --text: #FFFFFF; --text-2: #9CA3AF; --accent: #4A9FFF; --accent-strong: #77B9FF;
    --accent-soft: rgba(74, 159, 255, 0.16); --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.45); --shadow-sm: 0 6px 24px rgba(0, 0, 0, 0.35);
    --pill: #FFFFFF; --pill-text: #111827;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1A2E; --surface: #232739; --card: #2A2F44; --card-2: #262B3E;
  --text: #FFFFFF; --text-2: #9CA3AF; --accent: #4A9FFF; --accent-strong: #77B9FF;
  --accent-soft: rgba(74, 159, 255, 0.16); --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45); --shadow-sm: 0 6px 24px rgba(0, 0, 0, 0.35);
  --pill: #FFFFFF; --pill-text: #111827;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
  padding-top: 92px;
}
:lang(ja) body, body:lang(ja) { font-family: Inter, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, h3, .display { font-family: Manrope, Inter, -apple-system, sans-serif; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: 0.6; }
.lede { font-size: 1.125rem; color: var(--text-2); max-width: 560px; }

/* ---------- Floating nav ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav-inner {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: Manrope, sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.brand-mark-dark { display: none; }
:root[data-theme="dark"] .brand-mark-light { display: none; } :root[data-theme="dark"] .brand-mark-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark-light { display: none; } :root:not([data-theme="light"]) .brand-mark-dark { display: block; } }
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a { color: var(--text); font-size: 0.9rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 1000px) { .nav-links { display: none; } }
.nav-links a:hover { background: var(--card); text-decoration: none; }
.nav-spacer { flex: 1; }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.icon-btn:hover { background: var(--card); }
.icon-sun { display: none; } :root[data-theme="dark"] .icon-moon { display: none; } :root[data-theme="dark"] .icon-sun { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-moon { display: none; } :root:not([data-theme="light"]) .icon-sun { display: inline; } }

/* language switcher */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--card); }
.lang-menu { position: absolute; right: 0; top: 46px; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 6px; }
.lang-menu a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 12px; color: var(--text); font-size: 0.9rem; }
.lang-menu a:hover { background: var(--card); text-decoration: none; }
.lang-menu a.current { color: var(--accent); font-weight: 600; }
.lang-menu small { color: var(--text-2); font-weight: 400; }

/* App Store button */
.store {
  display: inline-flex; align-items: center; gap: 10px; background: var(--pill); color: var(--pill-text);
  border-radius: 999px; padding: 9px 18px 9px 14px; line-height: 1.1; white-space: nowrap;
}
.store:hover { text-decoration: none; opacity: 0.92; }
.store svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 0.62rem; font-weight: 500; opacity: 0.8; letter-spacing: 0.02em; }
.store b { display: block; font-size: 0.95rem; font-weight: 700; }
.store.lg { padding: 12px 24px 12px 18px; } .store.lg svg { width: 26px; height: 26px; } .store.lg b { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 0; text-align: center; }
.hero .kicker { justify-content: center; } .hero .kicker::before { display: none; }
.hero h1 { font-size: clamp(2.9rem, 8.5vw, 6.5rem); margin: 8px auto 22px; max-width: 16ch; }
.hero h1 .accent { display: block; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: keep-all; line-break: strict; }
.hero .lede { margin: 0 auto 30px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-ghost { color: var(--text); font-weight: 600; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.btn-ghost:hover { background: var(--card); text-decoration: none; }
.hero-note { margin-top: 16px; color: var(--text-2); font-size: 0.9rem; }
.hero-phones { display: flex; justify-content: center; align-items: flex-start; margin: 56px auto 0; max-width: 1000px; padding: 24px 0 72px; }
.hero-phones .p-main { width: clamp(240px, 30vw, 320px); z-index: 3; }
.hero-phones .p-left, .hero-phones .p-right { width: clamp(190px, 24vw, 260px); margin-top: 70px; }
.hero-phones .p-left { transform: rotate(-9deg) translateX(34px); transform-origin: bottom right; }
.hero-phones .p-right { transform: rotate(9deg) translateX(-34px); transform-origin: bottom left; }
@media (max-width: 720px) { .hero-phones .p-left, .hero-phones .p-right { display: none; } .hero-phones { padding-bottom: 32px; } }

/* ---------- Phone frame ---------- */
.phone { background: var(--phone); border-radius: 46px; padding: 10px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.08); }
.phone img { width: 100%; height: auto; border-radius: 37px; background: #000; }
.phone.sm { border-radius: 38px; padding: 8px; } .phone.sm img { border-radius: 31px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 span { display: block; }
.section-head p { color: var(--text-2); font-size: 1.05rem; margin-top: 16px; }
.block {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  background: var(--card); border-radius: 36px; padding: clamp(28px, 4.5vw, 64px); margin-bottom: 24px; overflow: hidden;
}
.block h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); } .block h2 span { display: block; }
.block p { color: var(--text-2); margin-top: 16px; font-size: 1.02rem; }
.block ul { margin-top: 18px; list-style: none; display: grid; gap: 8px; }
.block li { padding-left: 18px; position: relative; color: var(--text-2); }
.block li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.block .phone { width: min(300px, 80%); margin: 0 auto; transform: rotate(6deg); }
.block.flip { grid-template-columns: 0.9fr 1.1fr; } .block.flip .block-text { order: 2; } .block.flip .phone { transform: rotate(-6deg); }
.block.accent-block { background: var(--accent-strong); color: #fff; }
.block.accent-block .kicker, .block.accent-block .accent { color: #fff; }
.block.accent-block h2 span:last-child { color: rgba(255,255,255,0.72); }
.block.accent-block p, .block.accent-block li { color: rgba(255,255,255,0.85); } .block.accent-block li::before { background: #fff; }
.block.accent-block .phone { box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
@media (max-width: 820px) { .block, .block.flip { grid-template-columns: 1fr; } .block.flip .block-text { order: 0; } .block .phone { width: min(260px, 75%); } }

/* small card grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border-radius: 28px; padding: 28px; }
.card .num { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; } .card p { color: var(--text-2); font-size: 0.97rem; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 500; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--text-2); font-weight: 400; flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--text-2); padding: 0 4px 20px; max-width: 60ch; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* Final CTA */
.cta { text-align: center; padding: 80px 0 60px; }
.cta h2 { font-size: clamp(3rem, 9vw, 7rem); margin: 10px 0 18px; }
:lang(ja) .cta h2 { font-size: clamp(2.6rem, 8vw, 6rem); }
.cta p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 28px; }
.cta .fine { font-size: 0.8rem; margin-top: 18px; color: var(--text-2); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 30px 0 40px; margin-top: 30px; color: var(--text-2); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; } .footer-links a { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding: 40px 0 60px; }
.legal-side { position: sticky; top: 100px; }
.toc { background: var(--card); border-radius: 22px; padding: 18px 18px 12px; }
.toc strong { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.toc ul { list-style: none; } .toc li { margin: 0 0 6px; } .toc a { color: var(--text); font-size: 0.9rem; } .toc a:hover { color: var(--accent); text-decoration: none; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 10px; }
.legal .updated { color: var(--text-2); font-size: 0.9rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; scroll-margin-top: 110px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text); font-size: 1rem; }
.legal p { margin-bottom: 14px; } .legal ul { padding-left: 20px; margin-bottom: 14px; } .legal li { margin-bottom: 8px; }
.legal .note { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.legal .note p { margin: 0; }
.governs { background: var(--card); border-radius: 16px; padding: 14px 18px; font-size: 0.9rem; color: var(--text-2); margin-bottom: 24px; }
@media (max-width: 900px) { .legal-wrap { grid-template-columns: 1fr; gap: 24px; } .legal-side { position: static; } }

@media (max-width: 720px) {
  body { padding-top: 84px; }
  .nav-links { display: none; }
  .nav-inner { padding: 6px 6px 6px 12px; }
  .store span { display: none; } .store { padding: 9px 12px; } .store.lg span { display: block; } .store.lg { padding: 12px 22px 12px 16px; }
  .section { padding: 52px 0; }
}
