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

:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --text: #222222;
  --muted: #777777;
  --border: #e2e2de;
  --accent: #d9480f;
}

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

.site-header,
main,
.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  padding-top: 48px;
  padding-bottom: 24px;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.site-lead {
  margin: 4px 0 24px;
  color: var(--muted);
}

.search input {
  width: 100%;
  max-width: 480px;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 72, 15, 0.15);
}

.count {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card[hidden] {
  display: none;
}

.card-thumb {
  display: block;
  aspect-ratio: 1200 / 630;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.15s;
}

.card-thumb:hover img {
  opacity: 0.85;
}

.card-body {
  padding: 16px 20px 20px;
}

.card-title {
  margin: 0;
  font-size: 1.15rem;
}

.card-title-link {
  color: var(--text);
  text-decoration: none;
}

.card-title-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.card-desc {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.empty {
  text-align: center;
  color: var(--muted);
}

.site-footer {
  padding-top: 40px;
  padding-bottom: 24px;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted);
}

.copyright {
  margin: 0;
}

.social {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--muted);
  color: #ffffff;
  transition: background 0.15s;
}

.social-link:hover {
  background: var(--text);
}

.social-link svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
