/* ロゴ画像は黒文字の透過GIFで暗い背景では読めないため、ダークモードには対応せず白背景に固定する */
:root {
  color-scheme: light;
  --text: #222;
  --muted: #777;
  --accent: #b3261e;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background: #fff url("/images/dakigasiwaf.gif") no-repeat right bottom;
  /* 狭い画面ではリンクやフッターに重ならないよう小さくする */
  background-size: min(270px, 30vw);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.6;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

h1 {
  margin: 0 0 2rem;
  line-height: 0;
}

h1 img {
  max-width: 100%;
  height: auto;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
  border-bottom-color: currentColor;
}

footer {
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
