/* ===========================================
   Rayer 基本スタイル（最小構成）
   =========================================== */
:root {
  --color-text: #2b2b2b;
  --color-sub: #777;
  --color-bg: #faf8f5;
  --color-surface: #fff;
  --color-line: #e6e1da;
  --color-accent: #8a6d4b;
  --radius: 6px;
  --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding-block: 48px; }
.page-title { font-size: 1.6rem; margin: 0 0 24px; line-height: 1.4; }

.button {
  display: inline-block;
  padding: 10px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* ---- ヘッダー ---- */
.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.site-logo { font-size: 1.4rem; font-weight: 700; text-decoration: none; letter-spacing: .05em; }
.site-logo__tagline { display: block; font-size: .7rem; font-weight: 400; color: var(--color-sub); letter-spacing: 0; }
.global-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.global-nav a { text-decoration: none; font-size: .9rem; }
.global-nav a.is-current { color: var(--color-accent); border-bottom: 2px solid currentColor; }

/* ---- パンくず ---- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 16px 0 0; list-style: none; font-size: .8rem; color: var(--color-sub); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 4px; }

/* ---- トップ ---- */
.hero { padding-block: 72px; background: var(--color-surface); text-align: center; }
.hero__title { font-size: clamp(1.4rem, 4vw, 2.2rem); margin: 0 0 12px; }
.hero__lead { color: var(--color-sub); margin: 0 0 24px; }
.section__title { font-size: 1.3rem; margin: 0 0 24px; }

/* ---- 検索 ---- */
.search-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.search-form input, .search-form select {
  padding: 10px 12px; border: 1px solid var(--color-line); border-radius: var(--radius); font: inherit; background: var(--color-surface);
}
.search-form input { flex: 1 1 240px; }
.result-count { color: var(--color-sub); font-size: .9rem; }

/* ---- 商品カード ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.product-card a { display: block; height: 100%; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s; }
.product-card a:hover { transform: translateY(-2px); }
.product-card__image, .product-detail__image { aspect-ratio: 1 / 1.414; background: #efe9e1; display: grid; place-items: center; }
.product-card__image img, .product-detail__image img { width: 100%; height: 100%; object-fit: cover; }
.no-image { color: var(--color-sub); font-size: .9rem; }
.product-card__body { padding: 16px; }
.product-card__category { display: inline-block; font-size: .75rem; color: var(--color-accent); border: 1px solid currentColor; border-radius: 99px; padding: 0 10px; }
.product-card__name { font-size: 1rem; margin: 8px 0 4px; line-height: 1.5; }
.product-card__summary { font-size: .85rem; color: var(--color-sub); margin: 0 0 8px; }
.product-card__price, .product-detail__price { font-weight: 700; margin: 0; }
.product-card__price small, .product-detail__price small { font-weight: 400; font-size: .75em; color: var(--color-sub); }

/* ---- 商品詳細 ---- */
.product-detail { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail__price { font-size: 1.4rem; margin-bottom: 16px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 16px; }
.spec dt { color: var(--color-sub); }
.spec dd { margin: 0; }
.product-detail__description { margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; font-size: .85rem; }
.tags a { color: var(--color-accent); text-decoration: none; }

/* ---- ページ送り ---- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; padding: 6px 12px; text-align: center; border: 1px solid var(--color-line); border-radius: var(--radius); text-decoration: none; background: var(--color-surface); }
.pagination span { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ---- 汎用 ---- */
.prose { max-width: 760px; }
.notice { padding: 12px 16px; background: var(--color-surface); border-left: 4px solid var(--color-accent); }
.empty { color: var(--color-sub); }

/* ---- フッター ---- */
.site-footer { margin-top: 64px; padding-block: 32px; background: var(--color-text); color: #ddd; font-size: .85rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 12px; padding: 0; list-style: none; }
.footer-nav a { text-decoration: none; }
.copyright { margin: 0; color: #999; }
