:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #24211f;
  background: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  line-height: 1.5;
}

a { color: #174b55; }

.site-header, main, footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 22px 0;
  border-bottom: 1px solid #dedbd7;
}

.site-header p { margin: 4px 0 0; color: #625e59; }
.brand { color: #24211f; font-size: 1.35rem; font-weight: bold; text-decoration: none; }
main { padding: 24px 0 48px; }
.intro { max-width: 700px; }
h1 { line-height: 1.2; }

.notice, .disclosure, .error {
  padding: 12px 14px;
  border-left: 4px solid #986d36;
  background: #f7f3ed;
}

.disclosure { border-color: #687b69; }
.error { border-color: #9c2929; color: #7a1717; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 24px 0; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
input, select, button { min-height: 42px; padding: 8px; font: inherit; }
button { cursor: pointer; color: #fff; background: #174b55; border: 0; padding: 8px 18px; }
.clear-link { padding: 10px 0; }
.result-count, .certificate { color: #625e59; font-size: .9rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.product-card { border: 1px solid #dedbd7; padding: 12px; }
.product-card img, .image-placeholder {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #f7f6f4;
}
.image-placeholder { display: grid; place-items: center; color: #625e59; }
.product-card h2 { font-size: 1.05rem; margin: 10px 0 4px; }
.product-card a { color: inherit; text-decoration: none; }
.product-card p { margin: 4px 0; }
.price { font-size: 1.2rem; font-weight: bold; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 28px 0; }
footer { border-top: 1px solid #dedbd7; padding: 16px 0; color: #625e59; font-size: .9rem; }
.detail { max-width: 760px; }
.detail-image { display: block; width: min(100%, 520px); max-height: 480px; object-fit: contain; }
dl { display: grid; grid-template-columns: minmax(130px, 190px) 1fr; gap: 8px 16px; }
dt { font-weight: bold; }
dd { margin: 0; }

@media (max-width: 600px) {
  .site-header, main, footer { width: calc(100% - 24px); }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filters label { min-width: 0; }
  .filters input, .filters select { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { padding: 8px; }
  .product-card img, .image-placeholder { height: 140px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 10px; }
}
