:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --ink: #3B3B4A;
  --ink-soft: #5E5C6B;
  --muted: #9A97A3;
  --line: #ECE6DE;
  --peach: #F6C9B4;
  --coral: #EE8A78;
  --sky: #C5DCF2;
  --butter: #F8E4A6;
  --mint: #BFE3D4;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(59, 59, 74, .05);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  line-break: strict;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
a:hover { background: rgba(238, 138, 120, .12); }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

.site-header, main, .site-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header { padding-top: 20px; padding-bottom: 8px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
}
.brand img { border-radius: 10px; }

main { padding-top: 8px; padding-bottom: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin: 0 0 16px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.5; margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 20px; margin-top: 36px; margin-bottom: 10px; }
h3 { font-size: 18px; margin-top: 28px; margin-bottom: 6px; }
.card > h2:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.doc h1 { margin-bottom: 20px; }
.doc h2 { padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--coral);
  vertical-align: 2px;
}

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 1.4em; }
li { margin: 4px 0; }
li::marker { color: var(--coral); }
strong { font-weight: 700; background: linear-gradient(transparent 62%, var(--butter) 62%); }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; }

.note {
  background: #FDF4DA;
  border-radius: 16px;
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 16px;
}
.note p { margin: 0; }

.todo {
  background: var(--butter);
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 700;
}

.table { margin: 0 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
thead th { font-size: 14px; color: var(--ink-soft); border-bottom: 2px solid var(--line); }
tbody th { font-weight: 700; width: 34%; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .card { padding: 20px 16px; }
  h1 { font-size: 23px; }
  thead { display: none; }
  table, tbody, tr, th, td { display: block; width: 100%; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  tbody th, td { padding: 0; border: 0; }
  tbody th { width: auto; margin-bottom: 2px; }
}

/* アプリの紹介（トップ） */
.hero { text-align: center; padding: 24px 0 28px; }
.app-icon { display: block; margin: 0 auto 16px; border-radius: 27px; box-shadow: var(--shadow); }
.hero h1 { font-size: 34px; letter-spacing: .08em; }
.subtitle { color: var(--ink-soft); font-weight: 700; margin: 4px 0 18px; }
.lead { text-align: left; max-width: 34em; margin: 0 auto 22px; }
.store {
  display: inline-block;
  margin: 0;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
}
.store:hover { background: var(--ink); opacity: .9; }
.store.soon {
  padding: 8px 20px;
  border-radius: 14px;
  background: var(--butter);
  color: var(--ink);
  font-size: 16px;
}

.links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.links a, .app-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
}
.links a::after { content: "›"; margin-left: auto; color: var(--coral); font-size: 22px; line-height: 1; }

/* 開発者のトップ（アプリの一覧） */
.apps h1 { margin-bottom: 16px; }
.app-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.app-list img { border-radius: 16px; flex: none; }
.app-text { display: flex; flex-direction: column; line-height: 1.6; }
.app-text strong { background: none; font-size: 19px; }
.app-sub { font-weight: 500; font-size: 15px; color: var(--ink-soft); }

.site-footer {
  padding-top: 8px;
  padding-bottom: 40px;
  font-size: 15px;
  color: var(--ink-soft);
}
.site-footer ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer li { margin: 0; }
.site-footer a[aria-current="page"] { text-decoration: none; font-weight: 700; }
.site-footer p { margin: 0; }
