:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #3a2e25;
  --ink-soft: #7a6a5c;
  --line: #ece3d6;
  --accent: #e07a3f;
  --accent-soft: #fdeee3;
  --sale: #d0453b;
  --sale-soft: #fdebe9;
  --good: #3d8b5a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(58, 46, 37, .06), 0 4px 14px rgba(58, 46, 37, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  font-size: 15px; line-height: 1.6;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.pr-bar { background: var(--ink); color: #fff; font-size: 12px; text-align: center; padding: 4px 16px; }
.sample-bar { background: #fff3c4; color: #6b5300; font-size: 13px; text-align: center; padding: 6px 16px; font-weight: 700; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 800; font-size: 20px; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.logo-mark { font-size: 22px; }
.fav-link { display: flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; min-height: 44px; padding: 0 4px; color: var(--ink-soft); }
.fav-link:hover { color: var(--accent); }
.fav-count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 700; }

.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(20px, 4.5vw, 28px); margin: 0 0 6px; line-height: 1.35; }
.hero .lead { margin: 0; color: var(--ink-soft); }
.hero-meta { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }

.section-title { font-size: 17px; margin: 0; }
.guides { margin: 18px 0 8px; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
@media (max-width: 639px) {
  .guide-list { display: flex; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 0 16px 4px; }
  .guide-list::-webkit-scrollbar { display: none; }
  .guide { flex: 0 0 140px; }
}
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, transform .15s; }
.guide:hover { border-color: var(--accent); transform: translateY(-1px); }
.guide strong { font-size: 15px; }
.guide span { font-size: 12px; color: var(--ink-soft); }

.fav-notice { margin: 18px 0 0; background: var(--sale-soft); border: 1px solid #f6c9c4; color: var(--sale); border-radius: var(--radius); padding: 12px 14px; font-weight: 700; }
.fav-notice a { color: inherit; }

.browser { margin: 22px 0 40px; }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; text-decoration: none; padding: 8px 14px; min-height: 40px; display: flex; align-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.cat-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.controls { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--ink-soft); }
.search:focus-within { border-color: var(--accent); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; height: 44px; font-size: 16px; color: var(--ink); min-width: 0; }
.control-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.control-row select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; }
.toggle { display: flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; font-size: 14px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--sale); }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; min-height: 36px; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: #a2481a; font-weight: 700; }

.result-bar { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; }
.count { color: var(--ink-soft); font-size: 13px; }
.clear { margin-left: auto; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; min-height: 32px; font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; } }
.loading, .empty { grid-column: 1 / -1; color: var(--ink-soft); text-align: center; padding: 40px 0; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card-img { display: block; aspect-ratio: 1; background: #f3ece2; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: #c8b8a6; }
.badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 6px; background: var(--surface); }
.badge.sale { background: var(--sale); color: #fff; }
.badge.new { background: var(--good); color: #fff; }
.badge.fav-down { background: var(--accent); color: #fff; }
.fav-btn { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.fav-btn svg path { fill: rgba(0,0,0,.15); }
.fav-btn[aria-pressed="true"] { color: #ef5a6f; }
.fav-btn[aria-pressed="true"] svg path { fill: currentColor; }

.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 11px; color: var(--ink-soft); }
.card-name { font-size: 13px; line-height: 1.45; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-name:hover { color: var(--accent); }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.card-tags span { font-size: 10px; background: var(--accent-soft); color: #a2481a; border-radius: 4px; padding: 1px 5px; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.price { font-size: 18px; font-weight: 800; }
.price small { font-size: 12px; font-weight: 700; }
.ref { font-size: 12px; color: var(--ink-soft); text-decoration: line-through; }
.drop { font-size: 12px; font-weight: 800; color: var(--sale); }
.sub { font-size: 11px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.sub .pt { color: #b5482c; font-weight: 700; }
.unit { font-size: 12px; font-weight: 700; color: var(--good); }
.meta-row { margin-top: auto; padding-top: 4px; font-size: 11px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 6px; }
.meta-row .shop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stars { color: #e3a008; white-space: nowrap; }

.more { display: block; margin: 20px auto 0; min-height: 44px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; }
.more:hover { border-color: var(--accent); color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 22px 0 30px; font-size: 12px; color: var(--ink-soft); }
.site-footer p { margin: 0 0 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0; }
.footer-nav a { min-height: 32px; display: inline-flex; align-items: center; }
.copy { margin-top: 10px; }

.prose { max-width: 760px; padding-top: 24px; padding-bottom: 40px; }
.prose h1 { font-size: 24px; }
.prose h2 { font-size: 18px; margin-top: 32px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.prose h3 { font-size: 15px; margin-bottom: 4px; }
.prose p, .prose li { color: #4d4036; }
.prose dl { display: grid; grid-template-columns: 6em 1fr; gap: 6px 12px; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; }
