:root {
    color-scheme: light;
    --background: #fbf7f0;
    --paper: #fffdfa;
    --ink: #33261e;
    --muted: #69584c;
    --line: #e7dace;
    --accent: #964418;
    --accent-dark: #743112;
    --sand: #faebd2;
    --radius: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.7 "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif; }
.site-width { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
main { min-height: 62vh; overflow-wrap: anywhere; padding-block: 2rem 4rem; }
h1, h2, h3 { line-height: 1.42; margin: 0 0 .65rem; }
h1 { font-size: clamp(1.83rem, 4.5vw, 3rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.22rem, 2.8vw, 1.7rem); }
h3 { font-size: 1.04rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { background: var(--paper); border-block-end: 1px solid var(--line); }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-content { min-height: 68px; }
.header-content nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); font-size: .92rem; }
.header-content a { font-weight: 700; text-decoration: none; color: var(--ink); }
.header-content nav a:hover { color: var(--accent); text-decoration: underline; }
.brand img { display: block; width: clamp(115px, 22vw, 168px); height: auto; }
.site-footer { border-block-start: 1px solid var(--line); }
.footer-content { justify-content: flex-start; flex-wrap: wrap; padding-block: 1.3rem; color: var(--muted); font-size: .86rem; }
.hero { position: relative; isolation: isolate; min-height: 385px; display: flex; align-items: center; overflow: hidden; border-radius: 20px; background: var(--sand); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #fff1d5 3%, #fff1d5f5 30%, #fff1d5cf 45%, #fff1d54f 59%, transparent 69%); }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right 53%; }
.hero-copy { max-width: 34rem; padding: clamp(1.4rem, 6vw, 3.75rem); }
.hero h1 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 800; }
.hero p { color: #503d2d; max-width: 28em; margin-block: 1rem 1.3rem; }
.search-bar, .lookup { display: flex; gap: .55rem; }
input, select, button, .button { font: inherit; min-height: 44px; padding: .58rem .8rem; border: 1px solid var(--line); border-radius: 8px; }
input, select { min-width: 0; background: var(--paper); color: var(--ink); }
.lookup input, .search-bar input { flex: 1; }
button, .button { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); border-color: var(--accent); color: white; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
button:hover, .button:hover { background: var(--accent-dark); color: white; }
.button.secondary { background: var(--paper); color: var(--accent); white-space: normal; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.8rem); }
.browse, .lookup-panel, .results, .recent, .record-panel { margin-block-start: clamp(1.75rem, 5vw, 3rem); }
.category-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.category-links a { display: block; min-height: 42px; padding: .45rem 1rem; border: 1px solid var(--line); background: var(--paper); border-radius: 100px; color: var(--ink); font-weight: 700; text-decoration: none; }
.category-links a:hover { border-color: var(--accent); color: var(--accent-dark); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; }
.section-heading a { font-weight: 700; }
.date { color: var(--muted); font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.card-grid li { min-width: 0; }
.product-card { height: 100%; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.product-card:hover { border-color: var(--accent); color: var(--ink); }
.product-card:hover h3 { text-decoration: underline; }
.product-card img, .product-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.product-placeholder { display: grid; place-items: center; background: var(--sand); color: #683d25; }
.card-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: .8rem .95rem; }
.card-copy h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .55rem; }
.category-label { color: var(--muted); font-size: .85rem; margin: 0 0 .25rem; }
.card-amount { color: var(--accent-dark); margin: auto 0 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.breadcrumbs { display: flex; gap: .65rem; color: var(--muted); margin-block-end: 1.3rem; font-size: .88rem; }
.page-title { margin-block-end: 1.4rem; }
.filter-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; gap: .7rem; }
.filter-form input, .filter-form select { width: 100%; }
label { display: block; margin-bottom: .3rem; font-weight: 650; font-size: .9rem; }
.pagination { display: flex; justify-content: center; gap: 1.2rem; padding-block: 1.5rem 0; }
.pagination a { padding: .45rem .85rem; }
.detail-panel { display: flex; align-items: flex-start; gap: clamp(1rem, 5vw, 3.5rem); }
.detail-image { width: min(38%, 380px); aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-intro { flex: 1; min-width: 0; }
.detail-intro h1 { font-size: clamp(1.5rem, 3.2vw, 2.55rem); }
.latest { color: var(--accent-dark); font-weight: 800; font-size: 2.25rem; line-height: 1.3; font-variant-numeric: tabular-nums; margin: .8rem 0 .1rem; }
.latest span { font-size: .55em; margin-left: .1em; }
.source-list, .products { margin: 0; padding: 0; list-style: none; }
.source-list li, .products li { padding: .65rem 0; border-block-start: 1px solid var(--line); }
.condition-lookup { flex-wrap: wrap; }
.condition-lookup label { flex: 1 0 100%; }
.condition-lookup select { max-width: 100%; }
.record-heading { margin-top: 1.3rem; }
.products small { display: block; color: var(--muted); }
.nav { margin-block-end: 1rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
td, th { padding: .65rem .5rem; border-block-end: 1px solid var(--line); text-align: start; }
td:last-child, th:last-child { text-align: end; white-space: nowrap; }
tbody tr:nth-child(odd) { background: #faf3e9; }
@media (max-width: 840px) {
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-form > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .site-width { width: calc(100% - 1.5rem); }
    main { padding-block: 1rem 2.5rem; }
    .header-content { min-height: 57px; gap: .5rem; }
    .header-content nav { font-size: .82rem; }
    .header-content .ranking-link { display: none; }
    .hero { min-height: auto; display: block; border-radius: 14px; }
    .hero::after { display: none; }
    .hero-image { position: static; display: block; height: clamp(136px, 48vw, 232px); object-position: right 61%; }
    .hero-copy { padding: 1.25rem; }
    .hero p { margin-block: .6rem 1rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .card-copy { padding: .65rem; }
    .card-copy h3 { font-size: .92rem; }
    .detail-panel { flex-direction: column-reverse; }
    .detail-image { width: min(100%, 360px); }
}
@media (max-width: 360px) { .lookup { flex-direction: column; } }
