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

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #2c2a26;
  --text-muted: #6b665e;
  --border: #e4e0d8;
  --accent: #4a6b5a;
  --accent-hover: #3a5547;
  --shadow: 0 2px 12px rgba(44, 42, 38, 0.06);
  --radius: 10px;
  --max-width: 720px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.site-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 3.5rem;
}

.works {
  display: grid;
  gap: 1.25rem;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(44, 42, 38, 0.1);
}

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

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

.card__arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.card__arrow::after {
  content: " →";
}

.card--with-image {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.card__thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--border);
}

.empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 2rem 0;
}

@media (max-width: 480px) {
  .page {
    padding-top: 3rem;
  }

  .card--with-image {
    grid-template-columns: 72px 1fr;
  }

  .card__thumb {
    width: 72px;
    height: 72px;
  }
}
