/* ===== まるまえ — components.css ===== */

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  transition: .18s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--moss); color: #fff; }
.btn-primary:hover { background: var(--moss-mid); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--moss-mid);
  border: 1px solid var(--moss-mid);
}
.btn-outline:hover { background: var(--moss); color: #fff; text-decoration: none; }
.btn-yahoo  { background: #ff0033; color: #fff; }
.btn-yahoo:hover  { background: #cc0029; color: #fff; text-decoration: none; }
.btn-rakuten { background: #bf0000; color: #fff; }
.btn-rakuten:hover { background: #990000; color: #fff; text-decoration: none; }

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  letter-spacing: .1em;
  font-weight: 500;
}
.badge-bark { background: var(--bark); color: var(--ivory); }
.badge-moss { background: var(--moss); color: #fff; }
.badge-sand { background: var(--sand-light); color: var(--bark); }

/* ===== NOTICE / INFO BOX ===== */
.notice {
  background: #fffaf0;
  border: 1px solid var(--ivory-dark);
  border-left: 4px solid var(--sand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
}
.info-box {
  background: #fffdf6;
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 24px;
}
.info-box h2 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 10px;
  margin-top: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ivory-dark);
}
.info-box h2:first-child { margin-top: 0; }
.info-box p { font-size: 14px; color: var(--text-mid); line-height: 1.85; margin-bottom: 10px; }

/* ===== CARD ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 20px;
}
.card {
  background: #fffdf6;
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: .22s;
}
.card:hover {
  border-color: var(--sand);
  box-shadow: 0 8px 24px rgba(74,51,32,.1);
  transform: translateY(-3px);
}
.card-img {
  width: 100%;
  height: 172px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ivory-dark);
  padding: 12px;
  position: relative;
}
.card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.card-body { padding: 14px 16px; }
.card-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 9px;
  color: var(--text);
}
.card-price {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--moss);
  margin-bottom: 11px;
}

/* ===== CATEGORY TABS ===== */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.cat-tab {
  padding: 6px 14px;
  border: 1px solid var(--ivory-dark);
  border-radius: 999px;
  font-size: 13px;
  background: #fff;
  color: var(--text-mid);
  cursor: pointer;
  transition: .18s;
  font-family: var(--font-sans);
  letter-spacing: .04em;
}
.cat-tab:hover { border-color: var(--bark-light); color: var(--bark); }
.cat-tab.active { background: var(--bark); color: var(--ivory); border-color: var(--bark); }

/* ===== TABLES ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th,
.info-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--ivory-dark);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.info-table th {
  width: 200px;
  color: var(--bark-mid);
  font-weight: 500;
  white-space: nowrap;
}
.info-table td { color: var(--text-mid); }

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.price-table th,
.price-table td {
  padding: 10px 12px;
  border: 1px solid var(--ivory-dark);
  font-size: 14px;
  text-align: left;
}
.price-table th { background: var(--ivory-mid); color: var(--bark-mid); font-weight: 500; }
.price-table td { color: var(--text-mid); }

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}
.product-detail-img {
  width: 100%;
  background: #fff;
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-md);
  padding: 20px;
  object-fit: contain;
}
.product-detail h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.product-detail .price-display {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--moss);
  margin-bottom: 16px;
  display: block;
}
.product-detail .desc { font-size: 14px; color: var(--text-mid); line-height: 1.85; margin-bottom: 20px; }
.product-box {
  background: #fffdf6;
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 20px;
}
.product-box h2 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 10px;
  margin-top: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ivory-dark);
}
.product-box h2:first-child { margin-top: 0; }
.product-box ul { padding-left: 18px; }
.product-box li { font-size: 14px; color: var(--text-mid); line-height: 1.85; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-decoration: none;
}
.back-link:hover { color: var(--moss); text-decoration: none; }

/* ===== LEAD TEXT ===== */
.lead { font-size: 14px; color: var(--text-muted); line-height: 1.85; margin-bottom: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; }
  .info-table th,
  .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 2px; border-bottom: none; }
  .info-table td { padding-top: 2px; }
  .info-box { padding: 16px; }
}
