/* =========================================================================
   Rikako LP — styles
   Brand color #48AC01 (iOS app の Color(.main) と一致)
   ========================================================================= */

:root {
  --brand: #48AC01;
  --brand-dark: #3c8f02;
  --brand-soft: #eaf6e0;
  --brand-tint: #f4fbef;
  --ink: #1d2a16;
  --body: #41513a;
  --muted: #7b8a73;
  --line: #e4ebdf;
  --white: #ffffff;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(29, 42, 22, 0.06);
  --shadow: 0 12px 32px rgba(29, 42, 22, 0.10);
  --shadow-brand: 0 14px 30px rgba(72, 172, 1, 0.28);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.35; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: var(--white);
  padding: 12px 22px;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-sm { padding: 10px 18px; font-size: 0.95rem; }

/* App Store ボタン */
.btn-app {
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.btn-app:hover { transform: translateY(-2px); }
.btn-app-icon {
  width: 26px; height: 26px;
  flex: none;
  background: var(--white);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  /* Apple logo (simplified) */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268c-.2-37 16.5-65 50.3-85.6-18.9-27-47.4-41.9-85-44.9-35.6-2.8-74.5 20.8-88.7 20.8-15 0-49.4-19.8-76.4-19.8C72.4 138.9 16 175.6 16 250.5c0 22.1 4 45 12.1 68.6 10.8 31 49.7 107 90.3 105.7 21.2-.5 36.2-15.1 63.8-15.1 26.8 0 40.7 15.1 64.4 15.1 41 .6 76.2-69.5 86.5-100.6-55-25.9-52.1-75.9-52.1-77.2zM255.1 91.5c30.6-36.3 27.8-69.4 26.9-81.5-26.9 1.6-58 18.4-75.7 39-19.5 22.1-31 49.4-28.5 79.4 29.1 2.2 55.6-12.7 77.3-36.9z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268c-.2-37 16.5-65 50.3-85.6-18.9-27-47.4-41.9-85-44.9-35.6-2.8-74.5 20.8-88.7 20.8-15 0-49.4-19.8-76.4-19.8C72.4 138.9 16 175.6 16 250.5c0 22.1 4 45 12.1 68.6 10.8 31 49.7 107 90.3 105.7 21.2-.5 36.2-15.1 63.8-15.1 26.8 0 40.7 15.1 64.4 15.1 41 .6 76.2-69.5 86.5-100.6-55-25.9-52.1-75.9-52.1-77.2zM255.1 91.5c30.6-36.3 27.8-69.4 26.9-81.5-26.9 1.6-58 18.4-75.7 39-19.5 22.1-31 49.4-28.5 79.4 29.1 2.2 55.6-12.7 77.3-36.9z'/%3E%3C/svg%3E");
}
.btn-app-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-app-text small { font-size: 0.62rem; font-weight: 500; opacity: 0.85; }
.btn-app-text strong { font-size: 1.15rem; }
.btn-app--invert { background: var(--white); color: var(--ink); }
.btn-app--invert .btn-app-icon { background: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--white);
  border-radius: 10px;
  font-weight: 800;
  box-shadow: var(--shadow-brand);
}
.brand-name { font-size: 1.2rem; letter-spacing: 0.02em; }
.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a { color: var(--body); font-weight: 600; }
.nav a:hover { color: var(--brand-dark); }
.header-inner .btn-primary { flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 480px at 80% -10%, var(--brand-soft), transparent 60%),
    linear-gradient(180deg, var(--brand-tint), var(--white));
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 84px 24px 96px;
}
.eyebrow {
  display: inline-block;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-copy h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: 0.01em; }
.lead { margin-top: 20px; font-size: 1.08rem; color: var(--body); max-width: 30em; }
.hero-cta { margin-top: 32px; }
.hero-note { margin-top: 12px; font-size: 0.86rem; color: var(--muted); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }

/* ---------- Phone mockup ---------- */
.phone {
  width: 260px;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone-screen--placeholder {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, var(--brand-tint), var(--brand-tint) 12px, var(--brand-soft) 12px, var(--brand-soft) 24px);
  color: var(--brand-dark);
  font-weight: 700;
}
.phone--sm { width: 200px; }

/* mascot badge in hero */
.mascot {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 200px; height: 200px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--brand-soft), var(--brand-tint));
  border-radius: 50%;
  box-shadow: var(--shadow);
  z-index: 1;
}
.mascot img { width: 72%; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.06)); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--brand-tint); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; text-align: center; }
.section-title span { color: var(--brand); }
.section-sub { text-align: center; color: var(--muted); margin-top: 12px; }

/* ---------- Features ---------- */
.features {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: var(--brand-soft);
  border-radius: 16px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.98rem; }

/* ---------- Screenshots ---------- */
.screens {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-items: center;
}
.screen { margin: 0; text-align: center; }
.screen figcaption { margin-top: 16px; font-weight: 700; color: var(--ink); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.cta-inner { text-align: center; }
.cta h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta p { color: rgba(255,255,255,0.92); margin: 14px 0 30px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; display: grid; gap: 14px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--body); }

.contact { margin-top: 56px; text-align: center; }
.contact h3 { font-size: 1.25rem; margin-bottom: 10px; }
.contact p { color: var(--body); }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal { padding: 64px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin: 10px 0 32px; }
.legal h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal-history { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--white); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.footer-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-nav a { color: var(--body); font-weight: 600; }
.footer-nav a:hover { color: var(--brand-dark); }
.copyright { color: var(--muted); width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 64px; text-align: center; }
  .hero-cta { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-visual { min-height: 360px; margin-top: 24px; }
  .mascot { width: 140px; height: 140px; right: 50%; transform: translateX(120px); }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr; }
  .footer-nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
