:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #37352f;
  --muted: rgba(55, 53, 47, 0.62);
  --faint: rgba(55, 53, 47, 0.42);
  --line: rgba(55, 53, 47, 0.16);
  --hover: rgba(55, 53, 47, 0.06);
  --soft: #f7f6f3;
  --blue: #337ea9;
  --brown: #9f6b53;
  --green: #448361;
  --yellow: #dfab01;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(51, 126, 169, 0.28);
  text-underline-offset: 3px;
}

a:hover {
  background: var(--hover);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.brand:hover {
  background: var(--hover);
  color: var(--ink);
  text-decoration: none;
}

.brand-mark,
.page-icon,
.bookmark-icon {
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(55, 53, 47, 0.18);
  border-radius: 4px;
  background: #fbfbfa;
}

.brand-mark {
  width: 18px;
  height: 22px;
}

.brand-mark::before,
.page-icon::before,
.bookmark-icon::before {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-bottom: 1px solid rgba(55, 53, 47, 0.18);
  border-left: 1px solid rgba(55, 53, 47, 0.18);
  border-radius: 0 4px 0 2px;
  background: #efeee9;
  content: "";
}

.brand-name {
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 9px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--hover);
  color: var(--ink);
}

.document {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 74px 44px 88px;
}

.notion-page {
  max-width: 760px;
  margin: 0 auto;
}

.page-head {
  padding: 0;
}

.page-icon {
  width: 78px;
  height: 92px;
  margin-bottom: 22px;
}

.page-icon::after {
  position: absolute;
  right: 13px;
  bottom: 14px;
  left: 13px;
  height: 3px;
  border-top: 3px solid rgba(55, 53, 47, 0.2);
  border-bottom: 3px solid rgba(55, 53, 47, 0.2);
  content: "";
}

.app-icon {
  background: #f9f5e8;
}

.support-icon {
  background: #f1f7f3;
}

.privacy-icon {
  background: #f3f6fb;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 10px;
  padding-top: 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.35;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.lead {
  max-width: 690px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
}

.small,
.section-lead,
.bookmark small {
  color: var(--muted);
  font-size: 14px;
}

.properties {
  display: grid;
  gap: 0;
  margin: 26px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.properties div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 38px;
  align-items: baseline;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(55, 53, 47, 0.08);
}

.properties div:last-child {
  border-bottom: 0;
}

.properties dt {
  color: var(--faint);
  font-size: 14px;
}

.properties dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.callout,
.notice {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 4px;
  background: var(--soft);
}

.callout-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(55, 53, 47, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.callout p,
.notice p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 14px;
}

.notice h2 {
  grid-column: 1 / -1;
  padding-top: 0;
  margin-bottom: 0;
  font-size: 19px;
}

.notice p {
  grid-column: 1 / -1;
}

hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

.section {
  margin-top: 32px;
}

.section-lead {
  margin-bottom: 12px;
}

.notion-list {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}

.notion-list div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 4px;
  border-radius: 4px;
}

.notion-list div:hover {
  background: var(--hover);
}

.notion-list span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}

.notion-list p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 15px;
}

.bookmark-list {
  display: grid;
  gap: 8px;
}

.bookmark {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
}

.bookmark:hover {
  background: var(--hover);
  color: var(--ink);
  text-decoration: none;
}

.bookmark-icon {
  width: 28px;
  height: 34px;
}

.bookmark strong,
.bookmark small {
  display: block;
}

.bookmark strong {
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 600;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid rgba(55, 53, 47, 0.1);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 4px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.faq-item summary:hover {
  background: var(--hover);
}

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

.faq-item summary::before {
  display: inline-block;
  width: 18px;
  color: var(--faint);
  content: ">";
  font-size: 13px;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item p {
  max-width: 680px;
  margin: -2px 0 14px 22px;
  color: var(--muted);
  font-size: 14px;
}

.policy {
  margin-top: 28px;
}

.policy-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(55, 53, 47, 0.1);
}

.policy-row > span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--soft);
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}

.policy h2 {
  padding-top: 0;
  margin-bottom: 6px;
  font-size: 18px;
}

.policy p,
.policy li {
  color: var(--muted);
  font-size: 14px;
}

.policy p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 44px 42px;
  border-top: 1px solid rgba(55, 53, 47, 0.1);
  color: var(--faint);
  font-size: 13px;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
}

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

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    justify-content: center;
  }

  .document {
    padding: 46px 24px 64px;
  }

  .page-icon {
    width: 60px;
    height: 72px;
    margin-bottom: 18px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 22px;
  }

  .lead {
    font-size: 15px;
  }

  .properties div {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .policy-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
