:root {
  --ink: #23262b;
  --muted: #565f6a;
  --line: #dce0e4;
  --surface: #f4f5f7;
  --accent: #a92724;
  color: var(--ink);
  font: 14px/1.6 system-ui, "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: white; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #285fc4; outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: 32px; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 2; background: white; }
.skip:focus { top: 12px; }

.header {
  display: grid;
  grid-template-columns: auto minmax(0, 640px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}
.brand { text-decoration: none; font-size: 21px; font-weight: 850; line-height: 1.15; }
.brand small { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .16em; }
.header-info { font-size: 12px; white-space: nowrap; }
.searchbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 42px;
  border: 1px solid #666b73;
  border-radius: 4px;
}
.searchbar select, .searchbar input, .searchbar button {
  min-width: 0;
  border: 0;
  padding: 8px 12px;
  background: white;
}
.searchbar select { max-width: 130px; border-right: 1px solid var(--line); background: var(--surface); }
.searchbar button { background: var(--ink); color: white; font-weight: 700; padding-inline: 18px; }

.category-bar { background: #292d33; color: white; }
.category-nav { display: flex; overflow-x: auto; scrollbar-width: thin; }
.category-nav a {
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 650;
  border-bottom: 3px solid transparent;
}
.category-nav a[aria-current], .category-nav a:hover { background: #41464e; border-bottom-color: #f3695c; }
.category-nav a:focus-visible { outline-offset: -3px; outline-color: #fff; }

.catalog-section { padding-block: 24px 44px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.catalog-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.catalog-heading h1 { margin: 0; font-size: 24px; line-height: 1.35; }
.catalog-heading > span, .category-intro { font-size: 12px; color: var(--muted); }
.category-intro { margin: 8px 0 0; }
.resultline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-block: 10px;
  margin-block: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.refine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.refine select { margin-left: 5px; padding: 3px 4px; border: 1px solid var(--line); background: white; }
#reset { padding: 4px; border: 0; background: none; text-decoration: underline; }

.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; }
.product-image { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; }
.product-image > img { width: 87%; height: 87%; object-fit: contain; }
.product-image:hover { background: #fafafa; }
.no-image {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.no-image img { opacity: .4; }
.cardbody { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 10px; border-top: 1px solid #edf0f2; }
.tag { font-size: 10px; color: var(--muted); }
.card h2 { font-size: 13px; line-height: 1.5; margin: 4px 0 10px; overflow-wrap: anywhere; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.price { margin: 0; color: var(--accent); font-size: 18px; font-weight: 750; }
.price-caption { font-size: 10px; color: var(--muted); }
.shop-link {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.shop-link:hover { background: #e7e9ed; }
.buy-links { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.buy-links .shop-link { margin-top: 0; }
.pr { align-self: flex-start; font-size: 10px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 0 4px; }
.empty { background: var(--surface); padding: 24px; }
.data-note { margin-top: 18px; font-size: 11px; color: var(--muted); }
.trivia-item { max-width: 760px; margin-top: 28px; }
.trivia-item h2 { margin: 0 0 6px; padding-left: 10px; border-left: 4px solid var(--accent); font-size: 17px; line-height: 1.5; }
.trivia-item p { margin: 0; font-size: 15px; line-height: 1.85; }
.trivia-item .trivia-source-label { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.trivia-goods-link { margin-top: 20px; font-size: 15px; }
summary { cursor: pointer; }
footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer { padding-block: 20px; font-size: 12px; }
.footer p { margin: 6px 0; }
.footer span { color: var(--muted); margin-left: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer details { margin-top: 10px; }
.footer button { margin-right: 8px; }
.report { max-width: 980px; }
.report h1 { font-size: 30px; }
.report h2 { margin-top: 28px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 105px; }
th { background: var(--surface); }

@media (max-width: 1000px) {
  .wrap { padding-inline: 22px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .header { gap: 18px; }
}
@media (max-width: 690px) {
  .wrap { padding-inline: 14px; }
  .header { grid-template-columns: 1fr auto; gap: 10px; padding-block: 12px; }
  .brand { font-size: 18px; }
  .searchbar { grid-row: 2; grid-column: 1 / -1; }
  .searchbar select { max-width: 95px; }
  .searchbar input, .searchbar button, .searchbar select { padding-inline: 8px; }
  .category-nav a { padding-inline: 12px; }
  .catalog-section { padding-top: 18px; }
  .catalog-heading h1 { font-size: 21px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cardbody { padding: 8px; }
}
