:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #22262a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2f6f4f;
  --accent-dark: #245a40;
  --warn-bg: #fff7d6;
  --warn-text: #6b5300;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.7;
}
a { color: var(--accent); }
img { max-width: 100%; }

.demo-banner {
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 13px;
  text-align: center;
  padding: 6px 16px;
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
#site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.logo span {
  font-size: 11px; margin-left: 8px; padding: 2px 6px; border-radius: 4px;
  background: var(--accent); color: #fff; vertical-align: middle;
}
nav { display: flex; gap: 18px; font-size: 14px; }
nav a { color: var(--text); text-decoration: none; }
nav a:hover { color: var(--accent); }
.badge {
  display: none; margin-left: 4px; min-width: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 12px; text-align: center; line-height: 20px;
}

main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 24px; margin: 8px 0 20px; }
h2 { font-size: 18px; margin: 28px 0 12px; }
.lead { color: var(--muted); margin-top: -10px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; text-decoration: none; color: var(--text); display: block;
  transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.thumb {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 72px;
}
.thumb, .mini-thumb { position: relative; overflow: hidden; }
.thumb img, .mini-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.card-body { padding: 12px 14px 16px; }
.card-cat { font-size: 12px; color: var(--muted); }
.card-name { font-weight: 600; margin: 2px 0 6px; }
.price { font-weight: 700; font-size: 18px; }
.price small { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 2px; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.product .thumb { border-radius: 12px; font-size: 140px; }
@media (max-width: 720px) { .product { grid-template-columns: 1fr; gap: 16px; } }

.btn {
  display: inline-block; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 600;
  padding: 12px 28px; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn.small { padding: 6px 12px; font-size: 13px; font-weight: 400; }
.btn:disabled { background: #b8c4bd; cursor: not-allowed; }

.qty { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.qty input, select {
  font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.qty input { width: 72px; }

.notice {
  background: #eef6f1; border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 4px;
  font-size: 14px; margin: 12px 0;
}

table.cart { width: 100%; border-collapse: collapse; background: var(--surface); }
table.cart th, table.cart td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.cart th { font-size: 13px; color: var(--muted); font-weight: 500; }
table.cart td.num, table.cart th.num { text-align: right; }
.mini-thumb { width: 48px; height: 48px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; vertical-align: middle; margin-right: 8px; }
@media (max-width: 600px) {
  table.cart .hide-sm { display: none; }
  table.cart th, table.cart td { padding: 10px 6px; font-size: 14px; }
}

.summary {
  margin-top: 20px; margin-left: auto; max-width: 360px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
}
.summary .row { display: flex; justify-content: space-between; padding: 4px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 18px; }
.summary .btn { width: 100%; margin-top: 14px; }

.steps { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.steps span { padding: 4px 10px; border-radius: 12px; background: #eee; }
.steps span.on { background: var(--accent); color: #fff; }

fieldset { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 16px 18px; margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 6px; }
label.opt { display: block; padding: 6px 0; cursor: pointer; }

footer#site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; padding: 20px 16px; }

/* ---- dataLayer確認パネル ---- */
.dl-panel {
  position: fixed; right: 12px; bottom: 12px; width: 380px; max-width: calc(100vw - 24px);
  max-height: 60vh; display: flex; flex-direction: column;
  background: #1e2329; color: #e6e6e6; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.3);
  font-size: 12px; z-index: 1000;
}
.dl-toggle {
  background: none; border: 0; color: #fff; text-align: left; font-weight: 700; font-size: 13px;
  padding: 10px 14px; cursor: pointer;
}
.dl-body { overflow: auto; padding: 0 12px 12px; }
.dl-panel.closed .dl-body { display: none; }
.dl-panel details { margin-bottom: 8px; border: 1px solid #39414b; border-radius: 6px; }
.dl-panel summary { padding: 6px 10px; cursor: pointer; color: #8fd3a8; font-weight: 700; }
.dl-panel pre { margin: 0; padding: 8px 10px; white-space: pre-wrap; word-break: break-all; font-family: Consolas, Menlo, monospace; }
.dl-empty { color: #9aa3ad; margin: 0; }
