/* =========================================================
   宿カード埋め込みショートコード [wl_stay] 用スタイル（記事内）
   記事本文 .article-body の要素セレクタ（.article-body h4 / a / img 等・詳細度0,1,1）に
   負けないよう、全セレクタに .wlsc-embed を前置して詳細度を 0,2,x に引き上げている。
   ========================================================= */
.wlsc-embed {
  margin: 24px 0;
  font-family: inherit;
}

.wlsc-embed .wlsc-embed-pr {
  display: inline-block;
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
}
.wlsc-embed .wlsc-embed-pr::before {
  content: "PR";
  display: inline-block;
  font-weight: 700;
  color: #d33;
  border: 1px solid #d33;
  border-radius: 2px;
  padding: 0 4px;
  margin-right: 6px;
  font-size: 10px;
}

.wlsc-embed .wlsc-embed-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  align-items: flex-start;
}

/* 画像 */
.wlsc-embed .wlsc-embed-media {
  flex: 0 0 200px;
  max-width: 200px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
  display: block;
  line-height: 0;
  margin: 0;
}
.wlsc-embed .wlsc-embed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}
.wlsc-embed .wlsc-embed-noimg {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 10px, #e9e9e9 10px, #e9e9e9 20px);
}

/* 本文 */
.wlsc-embed .wlsc-embed-body {
  flex: 1 1 auto;
  min-width: 0;
}
.wlsc-embed .wlsc-embed-area {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #b9560f;
  background: #fdf2e9;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 0 0 6px;
}
.wlsc-embed .wlsc-embed-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.wlsc-embed .wlsc-embed-title a {
  color: #2c3e50;
  text-decoration: none;
}
.wlsc-embed .wlsc-embed-title a:hover {
  text-decoration: underline;
}

/* レビュー（星メーター） */
.wlsc-embed .wlsc-embed-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  line-height: 1;
}
.wlsc-embed .wlsc-embed-stars {
  --wlsc-rating: 0;
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  font-family: "Segoe UI Symbol", "Apple Color Emoji", sans-serif;
  letter-spacing: 1px;
}
.wlsc-embed .wlsc-embed-stars::before { content: "★★★★★"; color: #dcdcdc; }
.wlsc-embed .wlsc-embed-stars::after {
  content: "★★★★★";
  color: #f5a623;
  position: absolute;
  left: 0; top: 0;
  width: calc(var(--wlsc-rating) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
}
.wlsc-embed .wlsc-embed-rating-num { font-weight: 700; font-size: 13px; color: #333; }
.wlsc-embed .wlsc-embed-rating-cnt { font-size: 12px; color: #666; }

.wlsc-embed .wlsc-embed-price {
  font-size: 18px;
  font-weight: 700;
  color: #d35400;
  margin: 0 0 4px;
}
.wlsc-embed .wlsc-embed-note {
  font-size: 12px;
  color: #666;
  margin: 0 0 10px;
}

/* ボタン */
.wlsc-embed .wlsc-embed-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.wlsc-embed .wlsc-embed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.wlsc-embed .wlsc-embed-btn:hover { opacity: 0.9; color: #fff; text-decoration: none; }
.wlsc-embed .wlsc-embed-btn--rakuten { background: #bf0000; }
.wlsc-embed .wlsc-embed-btn--jalan   { background: #e60044; }
.wlsc-embed .wlsc-embed-btn--yahoo   { background: #ff0033; }
.wlsc-embed .wlsc-embed-btn--detail  { background: #2c3e50; }

/* 計測ピクセル（1x1 / 0x1）は不可視に */
.wlsc-embed .wlsc-embed-buttons > img {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}

/* モバイル: 縦積み */
@media (max-width: 600px) {
  .wlsc-embed .wlsc-embed-card {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  .wlsc-embed .wlsc-embed-media {
    flex-basis: auto;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .wlsc-embed .wlsc-embed-buttons .wlsc-embed-btn { flex: 1 1 auto; }
}
