/* まとめ用 作品画像＋購入ボタン（左に画像・右にボタン）
   色は下の変数で調整できます */
.wmc {
  --wmc-line:   #e3e6eb;
  --wmc-bg:     #f7f8fa;
  --wmc-text:   #2b2f36;
  --wmc-sub:    #6b7280;
  --wmc-dlsite: #1e63c8;
  --wmc-fanza:  #d92b3a;
  --wmc-steam:  #1b2838;

  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 620px;
  margin: 1.6em auto;
  padding: 12px;
  border: 1px solid var(--wmc-line);
  border-radius: 12px;
  background: var(--wmc-bg);
  color: var(--wmc-text);
}

/* 左：作品画像 */
.wmc-cover {
  flex: 0 0 46%;
  max-width: 280px;
  line-height: 0;
}
.wmc-cover a { display: block; }
.wmc-cover img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
  transition: opacity .15s;
}
.wmc-cover a:hover img { opacity: .9; }

/* 右：ひとこと・ボタン */
.wmc-side {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wmc-lead {
  margin: 0 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.wmc-buy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wmc-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
a.wmc-btn:hover { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.15); opacity: .92; }
a.wmc-btn::after { content: "›"; margin-left: 6px; font-size: 17px; line-height: 1; }
.wmc-btn.is-dlsite { background: var(--wmc-dlsite); }
.wmc-btn.is-fanza  { background: var(--wmc-fanza); }
.wmc-btn.is-steam  { background: var(--wmc-steam); }
.wmc-pr {
  margin: 0 !important;
  color: var(--wmc-sub);
  font-size: 10.5px;
  text-align: right;
}

/* 画像だけ（リンク未入力）：中央に表示 */
.wmc-cover:only-child { flex: 0 1 auto; margin: 0 auto; }

/* 画像なし（ボタンだけ）：横に並べる */
.wmc.no-img { max-width: 520px; }
.wmc.no-img .wmc-buy { flex-direction: row; }
.wmc.no-img .wmc-btn { flex: 1; }

.wmc-empty {
  display: block;
  padding: 12px;
  border-style: dashed;
  background: #fff;
  color: var(--wmc-sub);
  font-size: 13px;
  text-align: center;
}

/* スマホ：横並びのまま、少しだけ詰める */
@media (max-width: 600px) {
  .wmc { gap: 10px; padding: 10px; }
  .wmc-cover { flex-basis: 44%; }
  .wmc-btn { min-height: 38px; padding: 6px 6px; font-size: 13px; }
  a.wmc-btn::after { margin-left: 4px; }
  .wmc-lead { font-size: 12px; }
}
/* かなり狭い画面だけ縦並び */
@media (max-width: 340px) {
  .wmc { flex-direction: column; align-items: stretch; }
  .wmc-cover { max-width: none; }
}
