/* ================================================================
   MikaRipple — brand stylesheet
   Palette: rose gradient from the app icon (#F0637E → #C93A56),
   warm cream paper, ink text. Motif: breathing ripple (sine wave).
   ================================================================ */

:root {
  --rose: #E4536F;
  --rose-deep: #C4375C;
  --rose-dark: #A62B4B;
  --rose-soft: #FBE9EC;
  --rose-line: #F3CBD3;
  --paper: #FDFAF8;
  --card: #FFFFFF;
  --ink: #33262B;
  --ink-soft: #75606A;
  --ink-faint: #A78F98;
  --ok: #3E9E6E;
  --shadow: 0 10px 30px rgba(196, 55, 92, .10);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --rose: #F07C93;
    --rose-deep: #F090A4;
    --rose-dark: #F4A9B8;
    --rose-soft: #3A2229;
    --rose-line: #55323C;
    --paper: #201418;
    --card: #2B1B21;
    --ink: #F5E8EB;
    --ink-soft: #CFAEB8;
    --ink-faint: #9C7D88;
    --ok: #6FC496;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rose-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------------- header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rose-line) 55%, transparent);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 12px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8.5px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: .92rem; }
.site-nav a { color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.site-nav a:hover { color: var(--rose-deep); text-decoration: none; }
@media (max-width: 640px) { .site-nav { gap: 14px; font-size: .85rem; } }
@media (max-width: 560px) { .site-nav .hide-sm { display: none; } }

/* 言語トグル（日本語 | EN）。現在の言語をピルで強調 */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--rose-line); border-radius: 999px;
  padding: 2px; font-size: .8rem;
}
.lang-toggle a {
  padding: 3px 10px; border-radius: 999px;
  color: var(--ink-faint); font-weight: 600; white-space: nowrap;
}
.lang-toggle a:hover { text-decoration: none; color: var(--rose-deep); }
.lang-toggle a.on {
  background: var(--rose); color: #fff;
}
@media (prefers-color-scheme: dark) {
  .lang-toggle a.on { color: #2B1B21; }
}

/* ---------------- hero ---------------- */

.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 18% 8%, color-mix(in srgb, var(--rose-soft) 90%, transparent) 0%, transparent 70%),
    radial-gradient(50% 45% at 90% 20%, color-mix(in srgb, var(--rose-soft) 65%, transparent) 0%, transparent 75%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  align-items: center; padding-top: 72px; padding-bottom: 40px;
}
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border: 1px solid var(--rose-line);
  padding: 5px 14px; border-radius: 999px;
}

h1.catch {
  font-size: clamp(1.75rem, 4.6vw, 2.7rem);
  line-height: 1.45; letter-spacing: .01em;
  margin: 20px 0 18px; font-weight: 800;
}
h1.catch .accent { color: var(--rose); }

.lead { color: var(--ink-soft); font-size: 1.02rem; max-width: 34em; }

.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.appstore-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 58px; padding: 8px 22px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px; line-height: 1.35;
}
.appstore-badge:hover { text-decoration: none; }
.appstore-badge .small { font-size: .68rem; opacity: .8; }
.appstore-badge .big { font-size: 1.12rem; font-weight: 700; }
.appstore-badge.soon { cursor: default; opacity: .88; }

.cta-sub { font-size: .82rem; color: var(--ink-faint); }

/* phone mock */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(280px, 72vw);
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #3a3a3f, #131316);
  box-shadow: 0 24px 60px rgba(120, 30, 55, .28), 0 4px 14px rgba(0,0,0,.18);
  animation: breathe 5.2s ease-in-out infinite;
}
.phone img { border-radius: 34px; }
.ripple-halo {
  position: absolute; inset: -12% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rose) 16%, transparent), transparent 72%);
  animation: haloBreathe 5.2s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.012); } }
@keyframes haloBreathe { 0%,100% { opacity: .65; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .phone, .ripple-halo, .wave path { animation: none !important; }
}

/* breathing wave divider */
.wave { display: block; width: 100%; height: 70px; overflow: hidden; }
.wave path { animation: waveDrift 9s linear infinite; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-240px); } }

/* ---------------- sections ---------------- */

section { padding: 56px 0; }
section.tint { background: color-mix(in srgb, var(--rose-soft) 42%, var(--paper)); }

.section-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  color: var(--rose); text-transform: uppercase;
}
h2.section-title {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin: 8px 0 18px; font-weight: 800; line-height: 1.5;
}
.section-lead { color: var(--ink-soft); max-width: 42em; }

/* why cards */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--card); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--rose-line) 45%, transparent);
}
.why-card .num {
  font-size: .78rem; font-weight: 700; color: var(--rose);
  letter-spacing: .1em;
}
.why-card h3 { font-size: 1.05rem; margin: 6px 0 8px; line-height: 1.6; }
.why-card p { font-size: .92rem; color: var(--ink-soft); }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--rose-line) 45%, transparent);
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--rose-soft); color: var(--rose-deep);
  margin-bottom: 14px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { font-size: .9rem; color: var(--ink-soft); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; background: var(--card); border-radius: var(--radius);
  padding: 30px 24px 24px; box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--rose-line) 45%, transparent);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--rose), var(--rose-deep));
  color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 6px 14px rgba(196, 55, 92, .35);
}
@media (prefers-color-scheme: dark) {
  .step::before { color: #2B1B21; }
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--ink-soft); }

/* story */
.story-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center;
  background: var(--card); border-radius: 26px; padding: 34px 34px;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--rose-line) 45%, transparent);
  margin-top: 34px;
}
/* モバイルでは1カラム化。中央に置くのはアイコンだけで、文章は左揃えのまま */
@media (max-width: 640px) { .story-card { grid-template-columns: 1fr; } .story-card img { margin: 0 auto; } }
.story-card img { width: 110px; height: 110px; border-radius: 26px; }
.story-card h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.story-card p { font-size: .93rem; color: var(--ink-soft); }
.story-card .name { color: var(--rose-deep); font-weight: 700; }
.story-quote {
  font-size: 1.12rem; font-weight: 700; line-height: 1.8;
  color: var(--ink);
  padding-left: 16px; border-left: 3px solid var(--rose);
  margin-bottom: 14px;
}

/* disclaimer band */
.disclaimer {
  border-top: 1px solid color-mix(in srgb, var(--rose-line) 55%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--rose-line) 55%, transparent);
  background: color-mix(in srgb, var(--rose-soft) 30%, var(--paper));
  padding: 26px 0;
}
/* ブロックは中央寄せ・文章は左揃え（複数行本文を text-align:center にすると
   行末がジグザグになり読みにくい。中央にするのはブロックの置き位置だけ） */
.disclaimer p {
  font-size: .85rem; color: var(--ink-soft);
  max-width: 52em; margin: 0 auto; text-align: left;
}
.disclaimer strong { color: var(--ink); }

/* ---------------- footer ---------------- */

.site-footer { padding: 44px 0 60px; }
.site-footer .cols { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.site-footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-footer nav { display: flex; gap: 20px; font-size: .88rem; margin-left: auto; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink-soft); }
.copyright { margin-top: 18px; font-size: .8rem; color: var(--ink-faint); }

/* ---------------- document pages (privacy / support) ---------------- */

.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.doc h1 {
  font-size: 1.5rem; font-weight: 800; line-height: 1.5;
  padding-bottom: 12px; margin-bottom: 8px;
  border-bottom: 2px solid var(--rose);
}
.doc h2 { font-size: 1.08rem; margin-top: 2.2em; margin-bottom: .4em; color: var(--rose-deep); }
.doc p, .doc li { font-size: .95rem; color: var(--ink); }
.doc ul { padding-left: 1.4em; margin: .5em 0 1em; }
.doc .updated { color: var(--ink-faint); font-size: .85rem; margin-bottom: 1.5em; }
.doc hr.lang { margin: 56px 0; border: none; border-top: 1px dashed var(--rose-line); }
