/* 開発者のサイトの共通のスタイル。色はアプリのテーマ（赤 #B71C1C）とアイコンに合わせる。
   使う人に高齢の方が多いので、文字は大きめ（17px）にする。 */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #fbf3f2;
  --text: #1f1a19;
  --muted: #5d5250;
  --accent: #b71c1c;
  --accent-text: #ffffff;
  --border: #ead9d6;
  --highlight: #b71c1c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1211;
    --surface: #271c1b;
    --text: #f2e3e0;
    --muted: #cdb9b5;
    --accent: #ffb4a8;
    --accent-text: #5a1b12;
    --border: #4b3835;
    --highlight: #ff8a7a;
  }
}

*,
*::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: 1.0625rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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;
  gap: 12px;
  min-height: 64px;
}

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

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

/* 本文 */

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.9375rem;
}

[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.9375rem;
  font-weight: 400;
}

/* フッター */

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

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

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