:root {
  --bg: #f3efe6;
  --paper: #fffdf8;
  --ink: #2a2520;
  --muted: #6b6258;
  --line: #d9cfc0;
  --accent: #5c4a32;
  --accent-soft: #8b6f4e;
  --ok: #2f6f4a;
  --shadow: 0 14px 34px rgba(42, 37, 32, 0.1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
a { color: var(--accent-soft); }
img { width: 100%; display: block; object-fit: cover; border-radius: 10px; }

.announce {
  background: var(--accent);
  color: #f8f4ec;
  text-align: center;
  font-size: 0.82rem;
  padding: 7px 10px;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.logo {
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.head-nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.head-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 4px 8px;
  border-radius: 6px;
}
.head-nav a:hover { background: #efe8dc; color: var(--ink); }
.cart-pill {
  border: 1px solid var(--accent);
  background: var(--paper);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}
.cart-pill span {
  display: inline-block;
  min-width: 1.2rem;
  margin-left: 4px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  text-align: center;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  color: var(--accent-soft);
}
h1 {
  margin: 8px 0 12px;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
}
.btn-primary {
  display: inline-block;
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 8px;
}
.intro-visual img { height: 360px; }

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 50px;
  display: grid;
  gap: 28px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.trust-row article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.trust-row strong { display: block; font-size: 1.2rem; color: var(--accent); }
.trust-row span { font-size: 0.84rem; color: var(--muted); }

.section-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
h2 {
  margin: 0;
  font-family: "Yu Mincho", "Noto Serif JP", serif;
  font-size: 1.55rem;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chips button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.filter-chips button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card.span-7 { grid-column: span 7; }
.product-card.span-5 { grid-column: span 5; }
.product-card.span-4 { grid-column: span 4; }
.product-card.span-8 { grid-column: span 8; }
.product-card.span-6 { grid-column: span 6; }
.product-card img { height: 220px; }
.product-card.span-7 img,
.product-card.span-8 img { height: 280px; }
.product-card h3 { margin: 0; font-size: 1.05rem; }
.product-card .tag {
  font-size: 0.75rem;
  color: var(--accent-soft);
  letter-spacing: 0.06em;
}
.product-card .price {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}
.product-card .price small { font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.product-card .desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-actions button {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.btn-add {
  border: none;
  background: var(--accent);
  color: #fff;
}
.btn-detail {
  border: 1px solid var(--line);
  background: #f8f4ec;
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.about-list { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }

.detail-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.detail-lead { color: var(--muted); margin-top: 0; }
.detail-card {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  min-height: 180px;
}
.detail-placeholder { color: var(--muted); }
.detail-active {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}
.detail-active img { height: 240px; }
.detail-active h3 { margin: 0 0 8px; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.detail-meta span {
  background: #efe8dc;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }

.contact-form {
  max-width: 520px;
  display: grid;
  gap: 10px;
}
.contact-form label { display: grid; gap: 4px; font-size: 0.9rem; }
.contact-form input,
.contact-form textarea,
.checkout-box input,
.checkout-box select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
}

.legal {
  background: #2a2520;
  color: #e8e2d8;
  padding: 28px 16px;
  margin-top: 20px;
}
.legal dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: 0.88rem;
  max-width: 900px;
  margin: 0 auto 16px;
}
.legal h3, .legal h4 { max-width: 900px; margin: 16px auto 8px; color: #d4c4a8; }
.legal p, .legal .copy { max-width: 900px; margin: 8px auto; font-size: 0.9rem; }
.legal a { color: #c9b896; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100vh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  z-index: 120;
  transform: translateX(105%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.cart-head button {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}
.cart-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  display: grid;
  gap: 10px;
}
.cart-list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.cart-list img { width: 64px; height: 64px; border-radius: 8px; }
.cart-list .qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-list .qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.cart-list .remove {
  border: none;
  background: transparent;
  color: #9a4a4a;
  cursor: pointer;
  font-size: 0.82rem;
}
.cart-empty { color: var(--muted); text-align: center; margin: auto 0; }
.cart-foot {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.ship-note { font-size: 0.84rem; color: var(--muted); margin: 4px 0; }
.cart-foot .btn-primary { width: 100%; margin-top: 8px; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.45);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.checkout-modal.show { opacity: 1; pointer-events: auto; }
.checkout-box {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 16px;
  position: relative;
}
.checkout-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}
.steps {
  display: flex;
  gap: 6px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.step {
  font-size: 0.82rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #efe8dc;
  color: var(--muted);
}
.step.active { background: var(--accent); color: #fff; }
.step-panel { display: none; }
.step-panel.show { display: grid; gap: 10px; }
.demo-note { font-size: 0.84rem; color: var(--muted); margin: 0; }
.order-summary {
  background: #f8f4ec;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.9rem;
}
.checkout-done { text-align: center; padding: 20px 0; }
.checkout-done h4 { margin: 0 0 8px; color: var(--ok); }

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 140;
  transition: transform 0.3s;
  font-size: 0.9rem;
}
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .head-nav { display: none; width: 100%; flex-direction: column; }
  .head-nav.open { display: flex; }
  .menu-toggle { display: block; margin-left: auto; }
  .intro, .about-grid, .detail-active { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .product-card[class*="span-"] { grid-column: span 1; }
  .product-card img { height: 220px !important; }
}
