:root {
  --bg: #f6f7f9;
  --fg: #1c1f24;
  --muted: #5b6370;
  --surface: #ffffff;
  --border: #d9dde3;
  --accent: #0b6bcb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --fg: #e8eaed;
    --muted: #9aa3b0;
    --surface: #1d2127;
    --border: #2f353d;
    --accent: #6cb2ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/pic.jpeg") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

h1 { font-size: 1.8rem; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }

.profile { margin: 0; color: var(--muted); }

ul { list-style: none; margin: 0; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-block;
  padding: 10px 18px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.notice { margin: 0 0 16px; font-size: 0.92rem; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.card-title { display: block; font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
.card-desc { display: block; margin-top: 4px; font-size: 0.92rem; color: var(--muted); }

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

@media (min-width: 768px) {
  .container { padding-top: 56px; }
  h1 { font-size: 2.2rem; }
}
