:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f2f2f4;
  --text: #16161a;
  --muted: #62626c;
  --border: #dcdce1;
  --accent: #b8741a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --surface: #1f1f23;
    --text: #f2f2f4;
    --muted: #a5a5ad;
    --border: #34343a;
    --accent: #eda03d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.6;
}

main {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 40px;
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.2;
}

.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.card:hover { border-color: var(--accent); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.card img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--border);
}

.card h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.3;
}

/* 日本語は、ja/index.htmlの<wbr>の位置と記号でだけ折り返す（keep-all）。
   auto-phraseはiOS Safariで効かず、単語の途中で折れる。文言を変えたら<wbr>も付け直す。 */
.card p {
  margin: 0;
  color: var(--muted);
  word-break: keep-all;
  overflow-wrap: break-word;
}

footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { color: inherit; }
footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  main { padding-top: 48px; }
  .apps { grid-template-columns: 1fr; }
}
