:root {
  color-scheme: light dark;
  --bg: #fff6fb;
  --fg: #2a1830;
  --muted: #6b5a70;
  --border: #f3d5e5;
  --link: #c2186f;
  --surface: #ffffff;
  --accent: #ff4fa3;
  --on-accent: #2a1830;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2a1830;
    --fg: #fff6fb;
    --muted: #c9b6cf;
    --border: #46304d;
    --link: #ff7dbe;
    --surface: #36213d;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, "Noto Sans JP", "Yu Gothic", Meiryo, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

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

.site-header {
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 16px;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
}

.app-name {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-name a {
  color: inherit;
  text-decoration: none;
}

.app-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
}

.lang-switch {
  margin: 0;
  font-size: 0.95rem;
}

.lang-switch a {
  margin-left: 12px;
}

.lang-switch a:first-child {
  margin-left: 0;
}

main {
  padding: 8px 0 32px;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 24px 0 8px;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 28px 0 8px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}

h3 {
  font-size: 1.05rem;
  margin: 20px 0 6px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

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

li {
  margin-bottom: 4px;
}

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

.contact {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.contact:hover,
.contact:focus-visible {
  text-decoration: underline;
}

.email {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  font-weight: 600;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.lang-section + .lang-section {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav a {
  margin-right: 16px;
  display: inline-block;
  margin-bottom: 6px;
}

.site-footer nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

.site-footer p {
  margin: 10px 0 0;
}
