:root {
  color-scheme: dark;
  /* アプリ本体（Theme.swift のダーク配色）と同じ色 */
  --bg: #0e1117;
  --bg-2: #12161f;
  --surface: #171b24;
  --raised: #1f2531;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f2f4f8;
  --muted: #9aa3b2;
  --faint: #6b7484;
  --now: #ff5c7a;
  /* 項目の色 */
  --sleep: #7a6cf0;
  --work: #1e8fff;
  --meet: #12b3a0;
  --lunch: #f08a3c;
  --move: #1cb8dc;
  --rest: #4cc27a;
  --study: #f2b90f;
  --accent: var(--work);
  --radius: 24px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Maru Gothic", ui-rounded, "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #6db8ff; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 900; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 68px 0; } }
.num { font-variant-numeric: tabular-nums; font-feature-settings: normal; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 17, 23, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: .03em; font-size: 18px; }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; gap: 22px; font-size: 14px; white-space: nowrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.site-header nav a:hover { color: var(--text); }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* ---------- shared ---------- */
.phone {
  border-radius: 36px;
  overflow: hidden;
  border: 6px solid #232a38;
  background: #232a38;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone img { width: 100%; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .24em; color: var(--accent); margin-bottom: 12px; }
.section-title h2 { font-size: clamp(26px, 4.4vw, 38px); }
.section-title p { color: var(--muted); margin-top: 16px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 18px;
  background: var(--text); color: #0e1117; text-decoration: none; font-weight: 900;
  box-shadow: 0 5px 0 #aab2c0;
  transition: transform .08s, box-shadow .08s;
}
.store-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #aab2c0; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 12px; font-weight: 700; opacity: .7; line-height: 1.3; }
.store-btn span { line-height: 1.4; font-size: 17px; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-note { color: var(--muted); font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow-x: clip; padding: 72px 0 56px;
  background:
    radial-gradient(760px 480px at 88% 8%, rgba(30, 143, 255, .17), transparent 62%),
    radial-gradient(640px 460px at 0% 100%, rgba(122, 108, 240, .15), transparent 62%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px;
  background: var(--raised); border: 1px solid var(--line); color: var(--text);
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--now); box-shadow: 0 0 0 4px rgba(255, 92, 122, .2); }
.hero h1 { font-size: clamp(36px, 5.6vw, 62px); letter-spacing: .01em; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7a6cf0, #1e8fff 45%, #12b3a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--muted); font-size: clamp(15px, 1.8vw, 17px); margin: 24px 0 32px; max-width: 34em; }
.hero-visual { position: relative; justify-self: center; width: min(300px, 78vw); }
.hero-visual .phone { position: relative; z-index: 1; }
.hero-visual .glow {
  position: absolute; inset: 10% -30% -6% -30%; z-index: 0;
  background: radial-gradient(closest-side, rgba(30, 143, 255, .32), transparent);
  filter: blur(10px);
}
.chips { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-size: 13px; font-weight: 700; color: var(--text);
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.chips li::before { content: "✓"; color: var(--rest); margin-right: 6px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { width: min(260px, 70vw); }
}

/* ---------- demo（押してみる） ---------- */
#try { background: var(--bg-2); }
.demo {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  max-width: 900px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 36px;
}
.dial { position: relative; width: 100%; max-width: 300px; margin-inline: auto; }
.dial svg { width: 100%; height: auto; display: block; }
.dial .track { stroke: var(--raised); }
.dial text { fill: var(--faint); font-size: 9px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.dial-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial-center b { font-size: 34px; line-height: 1.1; letter-spacing: .02em; }
.dial-center span { font-size: 12px; color: var(--muted); font-weight: 700; }
.running {
  display: flex; align-items: center; gap: 12px; min-height: 64px;
  padding: 12px 16px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line);
  margin-bottom: 16px;
}
.running .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--c, var(--faint)); flex: none; display: grid; place-items: center; }
.running .dot svg { width: 20px; height: 20px; }
.running .name { font-weight: 900; line-height: 1.3; }
.running .since { font-size: 12px; color: var(--muted); line-height: 1.4; }
.running .elapsed { margin-left: auto; font-size: 22px; font-weight: 900; color: var(--c, var(--muted)); }
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.deck button {
  --c: var(--faint);
  display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px;
  background: var(--raised); border: 1.5px solid var(--line); border-radius: 20px; cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
  transition: transform .08s, box-shadow .08s, border-color .15s, background .15s;
  font-weight: 700; font-size: 14px; line-height: 1.3;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.deck button .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); }
.deck button svg, .running .dot svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.deck button svg { width: 22px; height: 22px; }
.deck button small { font-size: 12px; color: var(--faint); font-weight: 700; min-height: 1.3em; }
.deck button:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.deck button:focus-visible, .demo-reset:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.deck button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--raised)); }
.deck button[aria-pressed="true"] .ic { background: var(--c); color: #fff; }
.deck button[aria-pressed="true"] small { color: var(--c); }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.demo-reset { background: none; border: 1px solid var(--line-strong); border-radius: 99px; padding: 4px 14px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.demo-reset:hover { color: var(--text); }
@media (max-width: 800px) {
  .demo { grid-template-columns: 1fr; padding: 24px 18px; gap: 24px; }
  .dial { max-width: 240px; }
}

/* ---------- target ---------- */
.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.target {
  --c: var(--work);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
  border-top: 4px solid var(--c);
}
.target:nth-child(2) { --c: var(--sleep); }
.target:nth-child(3) { --c: var(--lunch); }
.target h3 { font-size: 19px; }
.target .worry { color: var(--muted); font-size: 14px; }
.target .answer { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 14px; font-weight: 700; color: var(--c); }
@media (max-width: 860px) { .targets { grid-template-columns: 1fr; } }

/* ---------- scenes ---------- */
#features { background: var(--bg-2); }
.scenes { display: grid; gap: 36px; }
.scene {
  --c: var(--work);
  display: grid; grid-template-columns: 1fr 250px; gap: 48px; align-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, var(--surface)), var(--surface) 55%);
  border: 1px solid var(--line); border-radius: 30px; padding: 44px;
}
.scene:nth-child(even) { grid-template-columns: 250px 1fr; }
.scene:nth-child(even) .scene-body { order: 2; }
.scene-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; color: var(--c); letter-spacing: .08em; }
.scene-tag b { font-size: 12px; background: var(--c); color: #0e1117; border-radius: 7px; padding: 1px 9px; letter-spacing: .1em; }
.scene h3 { font-size: clamp(22px, 3vw, 28px); margin: 12px 0 14px; }
.scene p { color: var(--muted); font-size: 15px; }
.scene ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 15px; }
.scene li { padding-left: 24px; position: relative; }
.scene li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.scene .phone { width: 100%; max-width: 250px; margin-inline: auto; }
@media (max-width: 820px) {
  .scene, .scene:nth-child(even) { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; }
  .scene:nth-child(even) .scene-body { order: 0; }
  .scene .phone { max-width: 220px; }
}

/* ---------- more features ---------- */
.merits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.merit { --c: var(--work); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.merit .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.merit .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.merit h3 { font-size: 19px; margin: 14px 0 10px; }
.merit p { color: var(--muted); font-size: 15px; }
@media (max-width: 1080px) { .merits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .merits { grid-template-columns: 1fr; } }

/* ---------- screens ---------- */
#screens { background: var(--bg-2); }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 20px;
  scrollbar-width: thin; scrollbar-color: var(--raised) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery .phone { border-radius: 30px; border-width: 5px; }
.gallery figcaption { text-align: center; font-size: 14px; font-weight: 700; margin-top: 14px; }
.gallery figcaption span { display: block; font-size: 12px; color: var(--muted); }
@media (min-width: 1480px) { .gallery { justify-content: center; } }

/* ---------- privacy / price ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 960px; margin-inline: auto; }
.promise div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.promise b { display: block; font-size: 30px; font-weight: 900; line-height: 1.3; }
.promise span { display: block; font-size: 13px; font-weight: 900; letter-spacing: .08em; color: var(--rest); margin-bottom: 4px; }
.promise p { color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
#faq { background: var(--bg-2); }
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--accent); font-weight: 900; margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15px; padding: 0 0 20px 24px; }

/* ---------- changelog ---------- */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 14px; font-weight: 500; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.9; }
.legal ul { padding-left: 1.3em; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal .tag { display: inline-block; font-size: 12px; font-weight: 900; padding: 1px 10px; border-radius: 99px; vertical-align: 2px; margin-left: 6px; }
.legal .tag.live { background: color-mix(in srgb, var(--rest) 20%, transparent); color: var(--rest); }
.legal .tag.review { background: color-mix(in srgb, var(--study) 20%, transparent); color: var(--study); }

/* ---------- final / footer ---------- */
.final { text-align: center; background: radial-gradient(700px 400px at 50% 100%, rgba(30, 143, 255, .16), transparent 70%); }
.final .icon { margin: 0 auto 28px; border-radius: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.final .section-title { margin-bottom: 32px; }
.final .cta { justify-content: center; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
