:root {
  --bg: #ffffff;
  --bg2: #f6f7f9;
  --text: #0f172a;
  --sub: #475569;
  --muted: #94a3b8;
  --line: #e5e7eb;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --purple: #a855f7;
  --green: #22c55e;
  --orange: #f97316;
  --phone: #0f172a;
  --screen: #ffffff;
  --bubble: #f1f5f9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg2: #111827;
    --text: #e5e7eb;
    --sub: #b6c0cf;
    --muted: #6b7686;
    --line: #1f2937;
    --card: #121a28;
    --accent: #60a5fa;
    --accent-soft: #14213a;
    --phone: #2a3342;
    --screen: #0f1520;
    --bubble: #1c2533;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-size: 28px; font-weight: 300; letter-spacing: 2px; color: var(--text); text-decoration: none; font-style: italic; }
.bar nav a { color: var(--sub); text-decoration: none; font-size: 14px; margin-left: 18px; }
.bar nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.logo-img { width: min(360px, 80%); height: auto; display: block; margin: 0 0 8px -12px; mix-blend-mode: multiply; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.35; margin: 8px 0 14px; letter-spacing: -0.5px; }
.hero p.lead { font-size: 17px; color: var(--sub); margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; line-height: 1.2; }
.btn .big { display: block; font-size: 17px; line-height: 1.2; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Phone mockup (pure HTML/CSS, sample data only) */
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; height: 520px; border-radius: 42px; background: var(--phone); padding: 11px; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35); }
.phone .screen { width: 100%; height: 100%; border-radius: 32px; background: var(--screen); overflow: hidden; display: flex; flex-direction: column; font-size: 11px; color: var(--text); }
.phone.back { right: 0; top: 40px; transform: rotate(5deg); }
.phone.front { left: 0; top: 0; transform: rotate(-3deg); }
.island { width: 80px; height: 22px; border-radius: 12px; background: #000; margin: 8px auto 6px; flex: none; }
.scr-head { padding: 2px 14px 8px; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.scr-head .plus { width: 24px; height: 24px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 400; }
.cal { margin: 0 10px; background: var(--bg2); border-radius: 14px; padding: 8px 6px; }
.cal .m { text-align: center; font-weight: 800; font-size: 12px; margin-bottom: 4px; }
.cal .g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; row-gap: 3px; }
.cal .g span { font-size: 10px; height: 22px; line-height: 20px; position: relative; }
.cal .g .w { color: var(--muted); font-size: 9px; height: 16px; }
.cal .g .sun { color: #ef4444; }
.cal .g .sat { color: #3b82f6; }
.cal .g .sel { background: var(--accent); color: #fff; border-radius: 7px; }
.cal .g .dot::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--purple); }
.cal .g .dot.b::after { background: var(--accent); }
.evs { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.ev { background: var(--bg2); border-radius: 10px; padding: 7px 9px; border-left: 3px solid var(--accent); }
.ev.p { border-left-color: var(--purple); }
.ev .tag { display: inline-block; font-size: 8.5px; font-weight: 700; padding: 0 6px; border-radius: 99px; background: color-mix(in srgb, var(--purple) 15%, transparent); color: var(--purple); }
.ev .tag.me { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.ev b { display: block; font-size: 11.5px; }
.ev i { font-style: normal; color: var(--muted); font-size: 9.5px; }

.chat-head { text-align: center; font-weight: 800; font-size: 12px; padding: 2px 0 8px; border-bottom: 1px solid var(--line); }
.next { margin: 8px 10px 4px; background: var(--bg2); border-radius: 10px; padding: 6px 9px; font-size: 10px; }
.msgs { flex: 1; padding: 6px 10px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.msg { display: flex; gap: 6px; align-items: flex-start; }
.msg .av { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.msg .nm { font-size: 8.5px; color: var(--muted); }
.msg .bb { background: var(--bubble); border-radius: 12px; border-top-left-radius: 4px; padding: 5px 9px; max-width: 160px; }
.msg.me { justify-content: flex-end; }
.msg.me .bb { background: var(--accent); color: #fff; border-radius: 12px; border-top-right-radius: 4px; }
.inp { margin: 6px 10px 14px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; color: var(--muted); font-size: 10px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg2); }
.kicker { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 2px; }
h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.4; margin: 6px 0 12px; }
.sec-lead { color: var(--sub); max-width: 640px; margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--accent-soft); margin-bottom: 10px; }
.feat h3 { font-size: 17px; margin: 0 0 6px; }
.feat p { color: var(--sub); font-size: 14px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 22px 20px 20px; border-radius: 20px; border: 1px dashed var(--line); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.step h3 { margin: 4px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--sub); font-size: 14px; }

.safe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.safe .feat .ic { background: color-mix(in srgb, var(--green) 14%, transparent); }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--accent); }
.faq details p { color: var(--sub); margin: 8px 0 0; }

.final { text-align: center; }
.final .logo-img { margin: 0 auto 4px; width: 240px; }

footer.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site-foot a { color: var(--sub); text-decoration: none; margin-right: 16px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 540px; max-width: 420px; width: 100%; margin: 0 auto; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bar nav a { margin-left: 12px; font-size: 13px; }
  .bar nav a.hide-sm { display: none; }
  .hero { padding-top: 36px; }
  .grid, .steps, .safe { grid-template-columns: 1fr; }
  .steps { row-gap: 26px; }
  .phones { height: 470px; }
  .phone { width: 200px; height: 430px; border-radius: 36px; }
  .phone .screen { border-radius: 27px; font-size: 10px; }
  .phone.back { right: 0; }
  section { padding: 56px 0; }
}

@media (prefers-color-scheme: dark) {
  .logo-img { mix-blend-mode: normal; background: #fff; border-radius: 28px; padding: 6px 18px; margin-left: 0; }
}

/* このアプリについて */
#about .members { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
#about .mem { display:flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:12px 14px; }
#about .mem .ic { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:var(--accent-soft); flex:none; }
#about .mem img.ic { border-radius:50%; object-fit:cover; }
#about .mem b { display:block; font-size:15px; }
#about .mem small { color:var(--sub); font-size:12px; }
#about .tech { color:var(--sub); font-size:14px; margin:0 0 8px; }
@media (max-width: 760px) { #about .members { grid-template-columns:1fr 1fr; } }
