:root {
  --bg: #fdf9ff;
  --surface: #f3edf7;
  --text: #1d1b20;
  --muted: #5d5a66;
  --primary: #5e4a8c;
  --border: #d8d0e3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141218;
    --surface: #211f26;
    --text: #e6e0e9;
    --muted: #b3aebd;
    --primary: #cdbdff;
    --border: #3b3744;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

header.site img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

header.site a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 24px 0 8px;
}

h2 {
  font-size: 1.15rem;
  margin: 36px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1rem;
  margin: 24px 0 4px;
}

a {
  color: var(--primary);
}

p,
li {
  overflow-wrap: anywhere;
}

.lead {
  color: var(--muted);
}

.box {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

th {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
}

nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   トップページ（アプリの紹介）
   ------------------------------------------------------------------------- */

:root {
  --gold: #f6d88e;
  --hero-from: #6a55a8;
  --hero-to: #1d2142;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --card: #211f26;
  }
}

body.landing {
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.topbar .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.topbar nav {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
  overflow-x: auto;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
}

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 16px 0;
  display: flex;
  align-items: flex-end;
  gap: 40px;
}

.hero-text {
  flex: 1;
  padding-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  line-height: 1.35;
  font-weight: 800;
}

.gold {
  color: var(--gold);
}

/* 言葉の途中で改行しない（「届け／る。」のような折り返しを防ぐ） */
.phrase {
  display: inline-block;
}

.hero-lead {
  max-width: 34em;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.store-button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: #fff;
  color: #2b2140;
  font-weight: 700;
}

.store-button[aria-disabled="true"] {
  opacity: 0.85;
  cursor: default;
}

.cta-note {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.hero-phones {
  position: relative;
  flex: 0 0 auto;
  width: 400px;
  height: 470px;
  align-self: flex-end;
  overflow: hidden;
}

.phone {
  position: absolute;
  width: 230px;
  height: auto;
  border: 9px solid #15111f;
  border-bottom: none;
  border-radius: 34px 34px 0 0;
  background: #15111f;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.phone-back {
  left: 0;
  top: 40px;
  transform: rotate(-5deg);
  opacity: 0.92;
}

.phone-front {
  right: 0;
  top: 0;
  transform: rotate(3deg);
}

main.wide {
  max-width: 1040px;
}

.section-title {
  font-size: 1.4rem;
  border-bottom: none;
  margin: 48px 0 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.feature {
  padding: 18px 18px 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.feature h3 {
  margin: 10px 0 4px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  font-weight: 800;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 40px;
}

.checks,
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 6px 0 6px 30px;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 6px 0 10px 44px;
  color: var(--muted);
}

.steps li strong {
  display: block;
  color: var(--text);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  line-height: 26px;
  text-align: center;
}

.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.gallery img {
  flex: 0 0 auto;
  width: 220px;
  height: auto;
  border-radius: 18px;
  scroll-snap-align: start;
}

@media (max-width: 720px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 32px;
  }

  .hero-text {
    padding-bottom: 16px;
  }

  .hero-phones {
    width: min(360px, 92vw);
    height: 380px;
  }

  .phone {
    width: min(200px, 52vw);
  }

  .topbar nav {
    display: none;
  }

  .gallery img {
    width: 180px;
  }
}
