:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f9fb;
  --surface-strong: #eef3f8;
  --text: #17202a;
  --muted: #5d6b7a;
  --line: #dfe7ef;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  --shadow: 0 18px 50px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fbfd 42%, #ffffff 100%);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, env(safe-area-inset-left)) 16px max(20px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-weight: 900;
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  max-width: 1120px;
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 94px) 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(2.35rem, 7vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.45rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.lead.compact {
  max-width: 780px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--text);
}

.app-preview {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 360px);
  aspect-ratio: 9 / 18.5;
  padding: 16px;
  border: 1px solid #d8e1eb;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 96px;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #374151;
}

.result-card {
  display: flex;
  min-height: calc(100% - 24px);
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
}

.result-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-card h2 {
  font-size: clamp(1.7rem, 8vw, 2.6rem);
}

.result-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.result-card div {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
}

.result-card dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.result-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.result-card button {
  min-height: 48px;
  margin-top: auto;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 20px 78px;
}

.section-heading {
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feature-card p,
.notice p,
.policy p,
.faq p {
  margin: 0;
  color: var(--muted);
}

.notice {
  max-width: 1120px;
  margin: 0 auto 72px;
  padding: 30px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice h2 {
  margin-bottom: 12px;
}

.content-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 76px) 20px 76px;
}

.policy,
.faq {
  display: grid;
  gap: 20px;
}

.policy h1,
.faq h1 {
  font-size: clamp(2.05rem, 6vw, 4rem);
}

.policy h2 {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.22rem;
}

.policy a,
.faq a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.updated {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 900;
}

details p {
  padding: 0 20px 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px max(20px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .site-footer nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.95rem;
  }

  .site-nav {
    width: 100%;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }
}
