.mame-goods-gallery {
  max-width: 1100px;
  margin: 0 auto;
}

.goods-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.goods-filter-btn,
.goods-tag {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.76);
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.goods-filter-btn.is-active {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.goods-section {
  margin: 0 0 42px;
}

.goods-heading {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.92);
}

.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.goods-card {
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(12,12,16,0.76);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.goods-card-main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.goods-thumb {
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.goods-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.goods-body {
  padding: 13px 14px 10px;
}

.goods-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}

.goods-desc {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
}

.goods-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 14px;
}

.goods-tag {
  padding: 4px 9px;
  font-size: 11px;
  background: rgba(255,255,255,0.035);
}

.goods-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.goods-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.goods-loading,
.goods-empty {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.62);
  text-align: center;
}

@media (max-width: 640px) {
  .goods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .goods-title {
    font-size: 13px;
  }

  .goods-desc {
    font-size: 11px;
  }
}

.mame-goods-gallery {
  color: #333;
}

.goods-filter-btn,
.goods-tag {
  border-color: rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.72);
}

.goods-filter-btn.is-active {
  background: rgba(0,0,0,0.12);
  color: #222;
}

.goods-heading {
  color: #333;
}

/* =========================
   Goods Gallery：白ベース調整
========================= */

.mame-goods-gallery {
  max-width: 1100px;
  margin: 0 auto;
  color: #333;
}

/* フィルター */
.goods-filter {
  gap: 7px;
  margin: 0 0 24px;
}

.goods-filter-btn,
.goods-tag {
  appearance: none;
  border: 1px solid rgba(80, 70, 65, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(55, 48, 44, 0.72);
  box-shadow: none;
}

.goods-filter-btn.is-active {
  background: #5f554f;
  border-color: #5f554f;
  color: #fff;
}

/* セクション見出し */
.goods-heading {
  margin: 0 0 14px !important;
  padding: 0 0 8px !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;

  font-size: 18px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.08em;
  color: #4d4540 !important;
}

.goods-heading::before,
.goods-heading::after {
  content: none !important;
}

/* グリッド */
.goods-grid {
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
}

/* カード本体 */
.goods-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(80, 70, 65, 0.12);
  box-shadow:
    0 10px 24px rgba(68, 56, 48, 0.10),
    0 1px 0 rgba(255,255,255,0.75) inset;
}

/* リンク初期化 */
.goods-card-main,
.goods-card-main:hover {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
}

/* 画像：縦長寄り */
.goods-thumb {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(180deg, rgba(245,242,239,0.9), rgba(234,229,224,0.9));
  overflow: hidden;
}

.goods-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 本文 */
.goods-body {
  padding: 10px 12px 8px;
}

.goods-title {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;

  font-size: 13px !important;
  line-height: 1.45 !important;
  letter-spacing: 0.02em;
  color: #3f3935 !important;
  text-decoration: none !important;
}

.goods-title::before,
.goods-title::after {
  content: none !important;
}

.goods-desc {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.65;
  color: rgba(63, 57, 53, 0.62);
}

/* タグ */
.goods-tags {
  gap: 5px;
  padding: 0 12px 12px;
}

.goods-tag {
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.4;
  background: rgba(245, 242, 239, 0.9);
}

/* 追加リンク */
.goods-links {
  padding: 0 12px 12px;
}

.goods-links a {
  font-size: 11px;
  color: #6f625b;
}

/* 読み込み・空 */
.goods-loading,
.goods-empty {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(80, 70, 65, 0.10);
  color: rgba(63, 57, 53, 0.62);
}

/* スマホ */
@media (max-width: 640px) {
  .goods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .goods-body {
    padding: 9px 10px 7px;
  }

  .goods-title {
    font-size: 12px !important;
  }

  .goods-desc {
    font-size: 10.5px;
  }
}