:root {
  --text: #2c1d16;
  --muted: #6e5c4d;
  --line: #e0d4c4;
  --sold: #8a7a6c;
  --bg: #f6efe4;
  --soft: #efe4d4;
  --paper: #fbf6ee;
  --accent: #a8844a;
  --cocoa: #3b2a22;
  --max: 940px;
  --warn: #8a5a12;
  --warn-bg: #f3e6d0;
  --shadow: 0 10px 28px rgba(44, 29, 22, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Lato, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 1.4rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.header {
  position: relative;
  padding: 12px 16px 8px;
}
.hero-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 0 8px;
}
.hero-photos picture,
.hero-photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--soft);
}
.hero-photos picture:nth-child(n + 3) { display: none; }
.sale-notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 22px;
  scroll-margin-top: 16px;
}
.sale-notice .section-label { margin-top: 0; }
.sale-notice-form { max-width: 28rem; }
.sale-notice-form .btn { width: 100%; }
.sale-notice-cta { margin: 16px 0 0; }
.back-link {
  position: absolute;
  top: 18px;
  left: 16px;
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  padding: 0;
  cursor: pointer;
}
.back-link:hover { color: var(--text); }
.cart-link {
  position: absolute;
  top: 18px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--text);
  color: #fff;
  font-size: 1.1rem;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}
.brand {
  margin: 12px 16px 0;
  text-align: center;
}
.brand a {
  text-decoration: none;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  display: inline-block;
  max-width: 100%;
}
.importer {
  margin: 8px auto 0;
  max-width: 36rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px auto 8px;
  padding: 0;
  list-style: none;
  max-width: var(--max);
}
.nav a {
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  padding: 6px 0;
}
.nav a[aria-current="page"] { border-bottom: 1px solid var(--text); }

.main {
  width: min(var(--max), calc(100% - 32px));
  margin: 12px auto 0;
  flex: 1;
}
.intro-title {
  margin: 28px 0 10px;
  font-size: 1.6rem;
  font-weight: 700;
}
.intro-body, .prose {
  white-space: pre-wrap;
  margin: 0 0 28px;
  font-size: 1.4rem;
}
.banner {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #eadcc4;
  padding: 12px 14px;
  margin: 8px 0 22px;
  font-size: 1.3rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, calc((100% - 4%) / 2)));
  justify-content: center;
  gap: 28px 4%;
  list-style: none;
  margin: 0;
  padding: 0 0 20px;
}
.featured .section-label,
.featured .section-lead {
  text-align: center;
}
.card a { text-decoration: none; display: block; }
.thumb {
  position: relative;
  aspect-ratio: 1;
  background: var(--soft);
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-name {
  margin: 0 0 4px;
  font-size: 1.3rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  line-break: strict;
  word-break: keep-all;
}
.card-price { margin: 0; font-size: 1.4rem; letter-spacing: 0.05em; }
.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 0 7px;
  background: var(--sold);
  color: #fff;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  line-height: 20px;
}
.badge.preorder {
  background: var(--paper);
  color: var(--cocoa);
  border: 1px solid var(--accent);
}
.badge.preorder.ended {
  background: var(--soft);
  color: var(--muted);
  border-color: var(--line);
}
.ship-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.restock-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.restock-list li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}


.crumb { font-size: 1.2rem; margin: 10px 0 16px; }
.crumb a { text-decoration: none; }
.product {
  display: grid;
  gap: 24px;
}
.gallery-main {
  background: var(--soft);
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid transparent;
  background: var(--soft);
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44, 29, 22, 0.08);
}
.thumbs button[aria-current="true"] { border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  margin: 8px 0;
}
.tax { font-size: 1.2rem; color: var(--muted); margin-left: 6px; }
.buy { display: flex; gap: 8px; align-items: center; margin: 16px 0; }
.buy select, .field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 12px;
  width: 100%;
}
.btn {
  appearance: none;
  border: 0;
  background: var(--cocoa);
  color: var(--paper);
  padding: 12px 18px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn[disabled] { background: #bdbdbd; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--cocoa); border: 1px solid var(--cocoa); }
.note { color: var(--muted); font-size: 1.3rem; }
.section { margin: 36px 0; }
.section h2 { font-size: 1.6rem; font-weight: 700; margin: 0 0 12px; }
.food {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}
.food th, .food td {
  border-top: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.food th { width: 7.5em; font-weight: 500; white-space: nowrap; }
.placeholder {
  background: var(--warn-bg);
  border-left: 3px solid #c4a574;
  padding: 2px 6px;
}

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 4px;
  text-align: left;
  vertical-align: top;
  font-size: 1.3rem;
}
.qty { width: 72px; }
.totals { margin-left: auto; max-width: 360px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-weight: 700; font-size: 1.6rem; border-top: 1px solid var(--text); margin-top: 8px; padding-top: 8px; }
.stack { display: grid; gap: 12px; margin: 18px 0; }
.field { display: grid; gap: 4px; }
.field span { font-size: 1.2rem; }
.error {
  background: #fdecec;
  color: #8d1d1d;
  padding: 10px 12px;
  margin: 8px 0;
}
.empty { color: var(--muted); padding: 24px 0 48px; }
.loading { padding: 48px 16px; text-align: center; color: var(--muted); }

.footer {
  margin-top: 48px;
  padding: 36px 16px 64px;
  text-align: center;
}
.footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.footer a { font-size: 1.2rem; text-decoration: none; }
.footer p { margin: 4px 0; color: var(--muted); font-size: 1.2rem; }

.hero {
  margin: 4px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  margin: 0 0 4px;
  letter-spacing: 0.2em;
  font-size: 1.1rem;
  color: var(--muted);
}
.section-label {
  margin: 36px 0 6px;
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.section-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.3rem;
}
.banner.notice {
  background: var(--paper);
  color: var(--cocoa);
  border-color: var(--line);
}

.card-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.size-guide { margin: 12px 0 32px; }
.size-compare {
  margin: 12px auto 16px;
  max-width: 640px;
}
.size-compare-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}
.size-compare picture,
.size-compare img {
  width: 100%;
  height: auto;
  display: block;
}
.size-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--cocoa);
}
.size-label {
  padding: 12px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.size-label-left { border-right: 1px solid var(--line); }
.size-label.is-current {
  box-shadow: inset 0 -3px 0 var(--accent);
}
.size-compare figcaption {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.7;
  text-align: center;
}
.size-compare .size-which {
  margin: 6px 0 0;
  font-weight: 700;
}
.size-compare .size-caption-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 1.2rem;
}
.fact-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.fact-list li {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 1.3rem;
}
.fact-list li span { color: var(--muted); flex: 0 0 9em; }
.fact-list li strong { font-weight: 500; text-align: right; line-height: 1.6; }
.compare-heading { font-size: 1.4rem; font-weight: 700; margin: 28px 0 12px; }
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 8px;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}
.compare th, .compare td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.compare th { font-weight: 500; white-space: nowrap; }
.compare tr.is-current { background: var(--soft); }
.compare td a { text-decoration: none; }

@media (max-width: 743px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody { display: block; width: 100%; }
  .compare tr {
    display: block;
    border: 1px solid var(--line);
    margin: 0 0 12px;
    padding: 4px 12px 8px;
  }
  .compare tr.is-current { border-color: #3b2a22; }
  .compare td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .compare td:last-child { border-bottom: 0; }
  .compare td::before {
    content: attr(data-label);
    color: var(--muted);
    flex: 0 0 8.5em;
    font-weight: 500;
  }
  .compare td:first-child {
    font-weight: 700;
    padding-top: 10px;
    display: block;
  }
  .compare td:first-child::before { display: none; }
  .fact-list li { flex-direction: column; gap: 2px; }
  .fact-list li span { flex: none; font-size: 1.2rem; }
  .fact-list li strong { text-align: left; }
}


@media (min-width: 744px) {
  .brand a { font-size: 3.2rem; letter-spacing: 0.05em; }
  .header { padding-top: 28px; }
  .hero-photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 28px;
  }
  .hero-photos picture:nth-child(n + 3) { display: block; }
  .sale-notice { padding: 28px 32px 32px; }
  .sale-notice-form .btn { width: auto; min-width: 280px; }
  .grid {
    grid-template-columns: repeat(4, minmax(0, calc((100% - 12.6%) / 4)));
    gap: 40px 4.2%;
  }
  .featured .grid {
    grid-template-columns: repeat(2, minmax(0, calc((100% - 4.2%) / 2)));
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }
  .product { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 48px; }
  .buy .btn { min-width: 220px; }
  .main { margin-top: 20px; }
}

.preview-banner {
  margin: 0 0 2rem;
  padding: 1rem 1.4rem;
  background: var(--cocoa);
  color: #fff8f3;
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: center;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1.4rem;
}
.check-label input { margin-top: 0.45em; flex: 0 0 auto; }
