:root {
  --bg: #fafaf7;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --shopify: #008060;
  --shopify-soft: #e3f1ec;
  --accent: #2563eb;
  --accent-soft: #e0ecff;
  --pink: #ec4899;
  --pink-soft: #fde7f0;
  --warn: #d97706;
  --warn-soft: #fff4e0;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px 96px; }

.hero {
  background: linear-gradient(135deg, #e3f1ec 0%, #ffffff 55%, #fde7f0 100%);
  border-bottom: 1px solid var(--line);
  padding: 48px 24px 44px;
  text-align: center;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--shopify);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 128, 96, 0.2);
  letter-spacing: 0;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--ink);
}
.hero-sub {
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}

.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--shopify); color: var(--shopify); }
.filter-btn[aria-pressed="true"] {
  background: var(--shopify);
  border-color: var(--shopify);
  color: #fff;
}
.filter-btn .count {
  margin-left: 6px;
  font-size: 11px;
  opacity: .75;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 18px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
  border-color: var(--shopify);
}
.card .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.tag-changelog { background: var(--shopify-soft); color: var(--shopify); }
.tag-developer { background: var(--accent-soft); color: var(--accent); }
.card h2 {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 10px;
  font-weight: 700;
}
.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}
.card .links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.card .links a {
  color: var(--shopify);
  font-weight: 600;
}
.card .links .source {
  color: var(--muted);
  font-weight: 400;
}

.empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  font-size: 14px;
}

.faq {
  max-width: 720px;
  margin: 80px auto 0;
}
.faq h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  text-align: center;
  letter-spacing: .01em;
}
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: border-color .15s ease;
}
.faq details[open] {
  border-color: rgba(0, 128, 96, 0.25);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  user-select: none;
}
.faq summary:hover { color: var(--shopify); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s ease, color .15s ease;
}
.faq details[open] summary::after {
  content: "−";
  color: var(--shopify);
}
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer {
  padding: 16px 20px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}
.faq .answer strong { color: var(--ink); font-weight: 600; }
.faq .answer a { color: var(--shopify); font-weight: 600; }
.faq .answer a:hover { text-decoration: underline; }

footer.site-footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
footer.site-footer a { color: var(--shopify); }

@media (max-width: 640px) {
  .hero { padding: 36px 20px 32px; }
  .hero h1 { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .brand-mark { width: 40px; height: 40px; font-size: 16px; margin-bottom: 12px; }
  .filters { overflow-x: auto; justify-content: flex-start; padding: 0 4px; }
  .filters::-webkit-scrollbar { display: none; }
}
