:root { --ink:#1C1C1A; --muted:#5E5E59; --line:#E4E4DF; --bg:#F6F6F3; --accent:#1D5FD1; --accent-soft:#EAF1FD; --green:#2E7D4F; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans JP', 'Hiragino Sans', system-ui, sans-serif; line-height: 1.75; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.brand { font-weight: 800; font-style: italic; letter-spacing: .04em; color: var(--accent); font-size: 20px; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ヘッダー */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }

/* はじめの画面 */
.hero { padding: 40px 0 48px; background: #fff; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(28px, 7.5vw, 44px); letter-spacing: .01em; }
.lead { margin-top: 16px; font-size: 16px; color: #3D3D39; }
.cta { margin-top: 24px; }
.note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* スマホ画面の枠 */
.phone { margin: 0; }
.phone img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(28,28,26,.10); background: #fff; }
.phone figcaption { text-align: center; font-size: 14px; font-weight: 700; margin-top: 12px; }
.hero-phone { max-width: 300px; margin: 0 auto; }

/* 各セクション */
section { scroll-margin-top: 64px; }
section h2 { font-size: 24px; margin-bottom: 24px; }
.features, .screens, .how { padding: 48px 0; }
.screens { background: #fff; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.feature-list h3 { font-size: 17px; margin-bottom: 6px; }
.feature-list h3::before { content: "○"; color: var(--green); font-weight: 800; margin-right: 8px; }
.feature-list p { font-size: 15px; color: #3D3D39; }

.screen-row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px; }
.screen-row .phone { flex: 0 0 72%; max-width: 280px; scroll-snap-align: center; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps b { font-size: 16px; }
.steps span { font-size: 15px; color: #3D3D39; }
.invite { margin-top: 24px; background: var(--accent-soft); border-radius: 14px; padding: 18px 20px; }
.invite h3 { font-size: 16px; color: var(--accent); margin-bottom: 6px; }
.invite p { font-size: 15px; }

/* フッター */
.foot { background: var(--ink); color: #fff; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot .brand { color: #9DBBF0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { color: #fff; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }

/* プライバシーポリシーなどの文章ページ */
.doc { max-width: 760px; padding-top: 32px; padding-bottom: 56px; }
.doc h1 { font-size: 26px; margin-bottom: 16px; }
.doc h2 { font-size: 19px; margin: 32px 0 10px; }
.doc h3 { font-size: 16px; margin: 18px 0 6px; }
.doc p, .doc li { font-size: 15px; }
.doc ul { padding-left: 1.3em; margin: 6px 0; }
.doc li + li { margin-top: 4px; }
.doc p + p { margin-top: 10px; }
.doc .muted { margin-top: 32px; }

/* タブレット・パソコン */
@media (min-width: 720px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .lead { font-size: 17px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .screen-row { overflow: visible; justify-content: center; }
  .screen-row .phone { flex: 1 1 0; max-width: 300px; }
  .features, .screens, .how { padding: 72px 0; }
  section h2 { font-size: 28px; }
}
