:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: #1d2420;
  --muted: #5d6a63;
  --line: #dfe4e0;
  --accent: #c8312b;
  --accent-soft: #f8e7e5;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --surface: #1b211e;
    --text: #e8ece9;
    --muted: #a3b0a9;
    --line: #2c3530;
    --accent: #f2675c;
    --accent-soft: #3a2422;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

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

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
nav.site a { text-decoration: none; }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 32px 0 48px; }

h1 { font-size: 28px; line-height: 1.35; margin: 0 0 12px; }
h2 { font-size: 21px; line-height: 1.4; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }
.lead { color: var(--muted); }

.hero { padding: 16px 0 8px; }
.hero .subtitle { font-size: 19px; color: var(--muted); margin-bottom: 24px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
@media (prefers-color-scheme: dark) { .button { color: #1a0f0e; } }

.cards { display: grid; gap: 12px; margin: 24px 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}
.note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 16px 0;
}
.path {
  font-weight: 600;
  background: var(--accent-soft);
  padding: 1px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.todo { color: #b4441b; font-weight: 600; }

dl.faq dt { font-weight: 700; margin-top: 20px; }
dl.faq dd { margin: 6px 0 0; }

table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0 20px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.table-scroll { overflow-x: auto; }

.terms p { white-space: pre-wrap; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }

/* Guide screenshots */
.step { margin: 28px 0; }
.step h3 { margin-top: 0; }
.shots { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 4px; }
figure.shot { margin: 0; width: 240px; max-width: 100%; }
figure.shot .frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.mark {
  position: absolute;
  border: 3px solid #0a72e8;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(10, 114, 232, 0.2);
  pointer-events: none;
}
.m-setup-open { top: 44.4%; left: 3.5%; width: 93%; height: 6.2%; }
.m-ext-row { top: 31.5%; left: 3%; width: 94%; height: 6%; }
.m-ext-rows { top: 17.4%; left: 3%; width: 94%; height: 16.4%; }
.m-ext-toggles { top: 27.3%; left: 3%; width: 94%; height: 11%; }
.m-ext-on { top: 19.5%; left: 76%; width: 17%; height: 12%; }
.m-app-status { top: 51.6%; left: 3.5%; width: 93%; height: 4%; }
.m-app-reload { top: 66.2%; left: 3.5%; width: 93%; height: 6.2%; }
.m-menu-button { top: 86.2%; left: 9%; width: 9%; height: 4.4%; }
.m-blocker-off { top: 71%; left: 3%; width: 94%; height: 5.6%; }
.m-menu-more { top: 89.6%; left: 74%; width: 23%; height: 5.6%; }
.m-use-blocker { top: 86.7%; left: 3%; width: 94%; height: 5.6%; }
