:root {
  --primary: #4A8FD4;
  --primary-light: #74B3F5;
  --primary-dark: #2B6CB0;
  --bg: #F8FBFF;
  --surface: #FFFFFF;
  --text: #1A2B4A;
  --text-muted: #3F5274;
  --radius: 16px;
  --phone-w: 248px;
  --phone-h: 492px;
  --phone-r: 36px;
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif JP', 'Noto Serif', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Hero canvas ── */
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 143, 212, 0.1);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 20px rgba(74, 143, 212, 0.18); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-icon-wrap {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.nav-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.nav-name { font-weight: 700; font-size: 16px; }
.lang-wrap { display: flex; align-items: center; gap: 6px; }
.lang-label { font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.3px; }
#lang-sel {
  border: 1px solid rgba(74, 143, 212, 0.3);
  border-radius: 8px; padding: 6px 10px;
  background: transparent; color: var(--text);
  font-size: 13px; cursor: pointer; outline: none;
}
#lang-sel:focus { border-color: var(--primary); }

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--bg);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 72px 24px 80px;
  display: flex; align-items: center;
  gap: 64px;
  position: relative; z-index: 1;
  width: 100%;
}
.hero-text { flex: 1; min-width: 0; }
.hero-logo {
  display: block;
  max-width: 420px;
  width: 100%;
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 8px 24px rgba(74, 143, 212, 0.28));
}
.tagline {
  font-size: 20px; color: var(--text-muted);
  margin-bottom: 40px; line-height: 1.6; max-width: 460px;
}
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 22px; border-radius: 14px;
  text-decoration: none; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.store-btn.ios { background: #1C1C2E; color: white; }
.store-btn.android { background: #0F2E1C; color: white; }
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.25); }
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-text small { display: block; font-size: 10px; opacity: 0.7; }
.store-text strong { display: block; font-size: 15px; font-weight: 700; }
.coming-badge {
  position: absolute; top: -9px; right: -9px;
  background: var(--primary); color: white;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  white-space: nowrap; letter-spacing: 0.3px;
}

/* ── Phone mockup ── */
.hero-phone-wrap { flex-shrink: 0; }
.phone-frame {
  width: var(--phone-w);
  height: var(--phone-h);
  background: transparent;
  border: 10px solid #18182A;
  border-radius: var(--phone-r);
  padding: 0;
  position: relative;
  box-shadow:
    0 32px 72px rgba(74, 143, 212, 0.28),
    0 4px 20px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 72px; height: 22px;
  background: #18182A;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: calc(var(--phone-r) - 10px);
  overflow: hidden; position: relative;
  background: transparent;
}

/* ── App UI mockup ── */
.mock-ui {
  position: absolute; inset: 0;
  z-index: 1;
  display: flex; flex-direction: column;
  padding: 28px 12px 10px;
  gap: 7px;
}
.mock-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-bottom: 2px;
}
.mock-appname { font-size: 12px; font-weight: 700; color: var(--text); }
.mock-settings { font-size: 11px; color: var(--text-muted); }
.mock-sub { font-size: 7.5px; color: var(--text-muted); margin-bottom: 2px; }

.mock-hf-btn {
  background: linear-gradient(135deg,
    rgba(74,143,212,0.72), rgba(116,179,245,0.72));
  border-radius: 11px; padding: 9px 11px;
  display: flex; align-items: center;
  gap: 9px; justify-content: center;
}
.mock-mic {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.mock-btn-title { font-size: 9px; font-weight: 700; color: white; }
.mock-btn-desc { font-size: 6.5px; color: rgba(255,255,255,0.82); margin-top: 1px; }
.mock-btn-title.dark { color: var(--text); }
.mock-btn-desc.dark { color: var(--text-muted); }

.mock-manual-btn {
  background: rgba(255,255,255,0.78);
  border-radius: 9px; padding: 6px 11px;
  display: flex; align-items: center;
  gap: 9px; justify-content: center;
  border: 1px solid rgba(180,210,240,0.6);
}
.mock-touch { font-size: 9px; color: var(--text-muted); flex-shrink: 0; }

.mock-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.mock-chip {
  font-size: 7px; padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  color: var(--text-muted);
  border: 1px solid rgba(180,210,240,0.6);
}
.mock-chip.active {
  background: var(--primary); color: white;
  border-color: var(--primary);
}

.mock-cards { display: flex; flex-direction: column; gap: 5px; }
.mock-card {
  background: rgba(255,255,255,0.88);
  border-radius: 9px; padding: 7px 9px;
  display: flex; align-items: flex-start; gap: 7px;
}
.card-badge {
  font-size: 6.5px; padding: 2px 6px;
  border-radius: 5px; font-weight: 700;
  flex-shrink: 0; white-space: nowrap; margin-top: 1px;
}
.note-badge { background: rgba(74,143,212,0.15); color: var(--primary-dark); }
.todo-badge { background: rgba(76,175,80,0.15); color: #2E7D32; }
.card-body { font-size: 7.5px; color: var(--text); line-height: 1.4; }

/* ── Features ── */
#features { padding: 88px 24px; background: white; }
.section-wrap { max-width: 1100px; margin: 0 auto; }
.section-wrap > h2 {
  font-size: 34px; font-weight: 700;
  text-align: center; margin-bottom: 52px;
  color: var(--text);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feat-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 34px 30px;
  border: 1px solid rgba(74,143,212,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(74,143,212,0.16);
}
.feat-icon { font-size: 38px; margin-bottom: 18px; }
.feat-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feat-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ── How it works ── */
#howto { padding: 88px 24px; background: var(--bg); }
.steps-row {
  display: flex; align-items: flex-start;
  gap: 20px; margin-top: 8px;
}
.step { flex: 1; text-align: center; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 18px rgba(74,143,212,0.38);
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.step-arr {
  font-size: 28px; color: var(--primary-light);
  margin-top: 16px; flex-shrink: 0; user-select: none;
}

/* ── Download ── */
#download {
  padding: 88px 24px; text-align: center;
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 100%);
}
#download h2 { color: white; font-size: 34px; font-weight: 700; margin-bottom: 16px; }
#download p { color: rgba(255,255,255,0.82); font-size: 17px; margin-bottom: 44px; }
.dl-badges { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.store-btn.large { padding: 16px 28px; border-radius: 16px; }
.store-btn.large svg { width: 26px; height: 26px; }
.store-btn.large .store-text strong { font-size: 17px; }
.store-btn.large .coming-badge { font-size: 10px; top: -10px; right: -10px; }

/* ── Footer ── */
footer {
  background: #0C1628; color: rgba(255,255,255,0.65);
  padding: 44px 24px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: 18px; margin-bottom: 28px;
}
.footer-brand { font-size: 18px; font-weight: 700; color: white; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 14px; transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-copy {
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .hero-inner {
    flex-direction: column;
    padding: 60px 20px 56px;
    gap: 48px; align-items: center; text-align: center;
  }
  .tagline { font-size: 17px; margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; }
  .hero-logo { margin-left: auto; margin-right: auto; max-width: 320px; }
  .hero-phone-wrap { order: -1; }
  :root { --phone-w: 210px; --phone-h: 416px; --phone-r: 30px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-arr { transform: rotate(90deg); }
}

@media (max-width: 480px) {
  .tagline { font-size: 16px; }
  .section-wrap > h2 { font-size: 26px; }
  :root { --phone-w: 188px; --phone-h: 373px; }
  .store-row { flex-direction: column; align-items: center; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
