/* 開発者のサイトの共通のスタイル。色はアプリのアイコン（紫 #4A2F96・黄 #FFB300）に合わせる。 */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f3fb;
  --text: #1d1b20;
  --muted: #5f5a6b;
  --accent: #4a2f96;
  --accent-text: #ffffff;
  --border: #e4dfee;
  --highlight: #ffb300;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141218;
    --surface: #1f1b26;
    --text: #e8e2ec;
    --muted: #b7afc4;
    --accent: #cdbdff;
    --accent-text: #23124f;
    --border: #3a3446;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  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", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

[lang="en"],
[lang="es"],
[lang="pt"] {
  line-height: 1.65;
}

/* 韓国語は、語の途中で折り返さない */
[lang="ko"] {
  word-break: keep-all;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* ヘッダー */

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand span {
  color: var(--muted);
  font-weight: 400;
}

.lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.lang a {
  padding: 2px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  text-decoration: none;
}

/* 本文 */

main {
  padding: 16px 0 48px;
}

h1 {
  margin: 0.7em 0 0.2em;
  font-size: 2rem;
  line-height: 1.3;
}

h2 {
  margin: 1.75em 0 0.5em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid var(--border);
  font-size: 1.5rem;
  line-height: 1.4;
}

h3 {
  margin: 1.5em 0 0.4em;
  font-size: 1.15rem;
  line-height: 1.5;
}

p,
ul {
  margin: 0.6em 0;
}

ul {
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.35em;
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
}

[id] {
  scroll-margin-top: 16px;
}

.button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

/* トップページ */

.hero {
  padding: 24px 0 8px;
  text-align: center;
}

.hero img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.15);
}

.hero h1 {
  margin-top: 16px;
}

.hero .subname {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.links {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.links li + li {
  margin-top: 0;
}

.links a {
  display: block;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.links a span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

/* フッター */

.site-footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

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

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