:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0a66d8;
  --accent-soft: rgba(10, 102, 216, 0.1);
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --bg-soft: #1a1a1d;
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --line: #3a3a3f;
    --accent: #4fa3ff;
    --accent-soft: rgba(79, 163, 255, 0.14);
    --card: #1f1f23;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
                    }
}

* {
  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", "Helvetica Neue", "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 15px;
}

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

.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Hero */
/* Documents */

.doc {
  max-width: 720px;
  padding: 40px 16px 64px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.3;
}

.doc h2 {
  margin: 40px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 22px;
}

.doc p,
.doc ul {
  margin: 0 0 12px;
}

.doc ul {
  padding-left: 1.2em;
}

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

.contact-card {
  display: block;
  margin: 24px 0 8px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.contact-card:hover {
  text-decoration: none;
}

.contact-label {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
}

.contact-address {
  display: block;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

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

@media (max-width: 900px) {
.doc .links {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 19px;
}
