:root {
  color-scheme: light;
  --ink: #1d2433;
  --muted: #5d6677;
  --line: #e6e9ef;
  --accent: #1fc5ae;
  --link: #0f8f7e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", sans-serif;
}

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

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  display: block;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.top nav > a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.top nav > a:hover {
  color: var(--ink);
}

details.lang {
  position: relative;
}

details.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

details.lang summary::-webkit-details-marker {
  display: none;
}

details.lang summary:hover,
details.lang[open] summary {
  color: var(--ink);
  border-color: #cfd5df;
}

details.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 10;
  min-width: 220px;
  max-height: 70vh;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(29, 36, 51, 0.14);
  list-style: none;
}

details.lang li a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

details.lang li a:hover {
  background: #f3f5f8;
}

details.lang li a[aria-current="page"] {
  background: #e8f9f6;
  font-weight: 600;
}

html[lang="ja"],
html[lang="zh-Hans"],
html[lang="zh-Hant"],
html[lang="ko"] {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero h1,
.card h2 {
  text-wrap: balance;
}

.lead span {
  display: block;
  text-wrap: balance;
}

.card p {
  text-wrap: pretty;
}

.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  text-align: center;
}

.app-icon {
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 12px 20px rgba(31, 197, 174, 0.3));
}

.hero h1 {
  margin: 28px 0 16px;
  font-size: clamp(2rem, 5.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 auto;
  max-width: 900px;
  color: var(--muted);
  font-size: 1.2rem;
}

.badge {
  display: inline-block;
  margin: 28px 0 0;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.badge:hover {
  background: var(--link);
}

.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(29, 36, 51, 0.16);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px 24px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.card svg {
  width: 48px;
  height: 48px;
}

.card h2 {
  margin: 16px 0 4px;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 24px;
}

.doc h1 {
  margin: 16px 0 4px;
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.doc h2 {
  margin: 36px 0 4px;
  font-size: 1.3rem;
}

.doc h3 {
  margin: 22px 0 2px;
  font-size: 1.05rem;
}

.doc p,
.doc ul {
  margin: 8px 0;
}

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

.doc table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}

.doc th,
.doc td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.doc th {
  width: 30%;
  font-weight: 600;
}

.bottom {
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.bottom p {
  margin: 0;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 8px !important;
  font-size: 0.85rem;
}

.legal a {
  color: var(--muted);
  text-decoration: none;
}

.legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.faq {
  margin: 8px 0 24px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

html[dir="rtl"] .faq summary {
  padding: 18px 0 18px 40px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

.usage {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

.usage h1 {
  margin: 16px 0 4px;
  font-size: 2.2rem;
  line-height: 1.2;
}

.usage .intro {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.step:nth-child(even) .text {
  order: 2;
}

.step.no-image {
  grid-template-columns: 1fr;
}

.step.no-image .text {
  order: 0;
}

.step .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.step h2 {
  margin: 12px 0 6px;
  font-size: 1.4rem;
}

.step .pro {
  margin-inline-start: 10px;
  padding: 2px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--link);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step figure {
  margin: 0;
}

.step img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(29, 36, 51, 0.12);
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }

  .doc th {
    width: 38%;
  }

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

  .step:nth-child(even) .text {
    order: 0;
  }
}
