/* 規約・プライバシー・お題リンクページ共通。トーンは LP（lp.css）と同じ:
   アプリの DESIGN.md に揃えた canvas/ink/brand と丸ゴシック、硬い影、斜めのアクセント */
@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;800;900&display=swap");

:root {
  --canvas: #F7F8FC;
  --surface: #FFFFFF;
  --ink: #172033;
  --muted: #687085;
  --stroke: #D9DEE8;
  --brand: #2F6BFF;
  --on-brand: #FFFFFF;
  --hint: #FFD23F;
  --on-hint: #352900;
  --shadow: #172033;
  /* 旧トークン名。お題リンクページの inline style が参照する */
  --accent: var(--brand);
  --bg: var(--canvas);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0F1320;
    --surface: #182033;
    --ink: #EEF1F8;
    --muted: #98A1B8;
    --stroke: #2C3650;
    --brand: #5A8CFF;
    --hint: #FFD84F;
    --shadow: #050810;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 4rem;
}

header.site {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--stroke);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
}

.brand::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  margin-right: 0.6rem;
  background: url("/img/icon.png") center / cover;
}

h1 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-top: 1.5rem;
  line-height: 1.4;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.meta a {
  color: var(--brand);
}

main h2 {
  position: relative;
  font-size: 1.1rem;
  font-weight: 900;
  margin: 2.25rem 0 0.5rem;
  padding-left: 1rem;
  line-height: 1.5;
}

main h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 0.4rem;
  background: var(--brand);
  transform: skewX(-14deg);
}

main p,
main ul,
main ol {
  margin: 0.5rem 0;
}

main ul,
main ol {
  padding-left: 1.5rem;
}

main li {
  margin: 0.25rem 0;
}

main a {
  color: var(--brand);
}

.lead {
  color: var(--muted);
}

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stroke);
  font-size: 0.85rem;
  color: var(--muted);
}

footer.site nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

footer.site a {
  color: var(--muted);
}
