/* Pawback の法務ページ共通スタイル。
   依存を持たない1ファイル完結（CDN を引かない = 読み手の追跡もされない）。 */

:root {
  --bg: #fdfbf7;
  --surface: #ffffff;
  --text: #2c2724;
  --muted: #6b625b;
  --line: #e8e0d6;
  --accent: #b4795a;
  --accent-soft: #f6ece3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1917;
    --surface: #232120;
    --text: #eae4de;
    --muted: #a49a92;
    --line: #38332f;
    --accent: #d99e78;
    --accent-soft: #2e2723;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  word-break: normal;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

header.site .brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

header.site .brand span {
  color: var(--accent);
}

nav.lang a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

nav.lang a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

nav.lang a:hover {
  color: var(--accent);
}

h1 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 2.5rem 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 2.75rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0.75rem 0;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.35rem 0;
}

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

.updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

.lead {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.lead p:first-child {
  margin-top: 0;
}

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

.scroll {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.9rem;
  background: var(--surface);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.cards a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.cards a:hover {
  border-color: var(--accent);
}

.cards strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.cards span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

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