/* ---- tokens: warm greige / terracotta ---- */
:root {
  --bg: #f6f3ee;
  --card: #fffdfa;
  --soft: #efeae2;
  --fg: #2b2926;
  --muted: #8a847b;
  --line: #e6e0d6;
  --accent: #b5765b;      /* terracotta */
  --accent-dark: #2b2926;
  --serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 41, 38, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.9;
  letter-spacing: .02em;
}
a { color: inherit; }
img { display: block; }
.container { max-width: 880px; margin: 0 auto; padding: 0 20px 80px; }

/* ---- header ---- */
.site-header { text-align: center; padding: 56px 20px 40px; }
.site-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-decoration: none;
}
.site-title { display: inline-block; }
.site-sub { display: block; font-size: .78rem; letter-spacing: .3em; color: var(--muted); margin-top: 6px; font-weight: 400; }
.site-tagline { margin: 14px 0 0; color: var(--muted); font-size: .85rem; letter-spacing: .08em; }
.site-header::after {
  content: ""; display: block; width: 36px; height: 1px; background: var(--accent); margin: 26px auto 0;
}

/* ---- index ---- */
.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: .2em;
  color: var(--muted);
  margin: 8px 0 24px;
}
.page-title small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .3em; margin-bottom: 4px; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(43, 41, 38, .09); }
.post-card > a { text-decoration: none; display: block; }
.post-cover { aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.post-cover.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--serif); letter-spacing: .2em; }
.post-card-body { padding: 18px 22px 22px; }
.post-card-meta { display: flex; gap: 12px; align-items: center; font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.tag { color: var(--accent); }
.post-card-title { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; line-height: 1.6; margin: 8px 0 6px; }
.post-card-desc {
  margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- post ---- */
.post { max-width: 720px; margin: 0 auto; }
.post-header { text-align: center; margin-bottom: 40px; }
.post-header time { font-size: .75rem; color: var(--muted); letter-spacing: .15em; }
.post-header .tag { display: inline-block; margin-left: 12px; font-size: .75rem; letter-spacing: .15em; }
.post-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.55;
  letter-spacing: .04em;
  margin: 14px 0 18px;
}
.disclosure { display: inline-block; font-size: .72rem; color: var(--muted); letter-spacing: .05em; border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px; }
.post-body { font-size: .98rem; }
.post-body p { margin: 0 0 1.4em; }
.post-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.6;
  letter-spacing: .04em;
  margin: 3.2em 0 1.2em;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  counter-increment: pick;
}
.post-body h2::before {
  content: "PICK " counter(pick, decimal-leading-zero);
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 4px;
}
.post-body h2.criteria { counter-increment: none; }
.post-body h2.criteria::before { content: "HOW TO CHOOSE"; }
.post-body h2:last-of-type { counter-increment: none; }
.post-body h2:last-of-type::before { content: "SUMMARY"; }
.post-body { counter-reset: pick; }
.post-body img { max-width: 100%; height: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1.5em 0; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body th { font-weight: 500; color: var(--muted); font-size: .78rem; letter-spacing: .1em; }

/* ---- product card ---- */
.product {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 1.8em;
  box-shadow: var(--shadow);
}
.product-image { background: var(--soft); border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s ease; }
.product:hover .product-image img { transform: scale(1.04); }
.product-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.product-name { margin: 0 0 6px; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.product-name a { text-decoration: none; }
.product-meta { margin: 0 0 16px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.button {
  align-self: flex-start;
  display: inline-block;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .1em;
  transition: background .2s ease;
}
.button:hover { background: var(--accent); }
.back { margin-top: 64px; text-align: center; font-size: .82rem; letter-spacing: .1em; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--accent); }

/* ---- footer ---- */
.site-footer { text-align: center; color: var(--muted); font-size: .72rem; letter-spacing: .08em; padding: 40px 20px 48px; border-top: 1px solid var(--line); }
.site-footer p { margin: 4px 0; }
.social-links { margin-bottom: 14px !important; }
.social-links a { color: var(--fg); text-decoration: none; letter-spacing: .15em; margin: 0 12px; }
.social-links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .site-header { padding: 40px 20px 28px; }
  .site-title { font-size: 1.5rem; }
  .post-list { grid-template-columns: 1fr; gap: 20px; }
  .post-header h1 { font-size: 1.35rem; }
  .product { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .product-image { aspect-ratio: 4 / 3; }
  .button { align-self: stretch; text-align: center; }
}
