:root {
  --bg: #f8f6f6;
  --surface: #ffffff;
  --text: #231416;
  --muted: #756568;
  --line: #ead6d8;
  --green: #de0a15;
  --green-soft: #ffe5e7;
  --amber: #a84610;
  --blue: #5d5265;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.page-header {
  padding: 44px 24px 26px;
  max-width: 1080px;
  margin: 0 auto;
}

.page-header p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.2;
}

.page-header span {
  color: var(--muted);
  line-height: 1.7;
}

.genre-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto 18px;
  padding: 0 24px;
}

.genre-nav a,
.card-footer a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.genre-nav a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.product-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  gap: 14px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.product-head {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 128px minmax(0, 1fr);
}

.product-head img {
  aspect-ratio: 1;
  background: #fff8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  width: 128px;
}

.genre {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: 20px;
}

.summary {
  color: var(--muted);
  line-height: 1.7;
}

dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

dl div {
  background: #fff8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.priority {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.priority-a { background: #fff0d8; color: var(--amber); }
.priority-b { background: #eeeaf2; color: var(--blue); }
.priority-c { background: var(--green-soft); color: var(--green); }

@media (max-width: 760px) {
  h1 { font-size: 28px; }
  .product-head { grid-template-columns: 86px minmax(0, 1fr); }
  .product-head img { width: 86px; }
  dl { grid-template-columns: 1fr; }
}
