/* ============================================================
   Random Posts Widget — Style
   ============================================================ */

.rpw-wrap {
  margin: 48px 0 32px;
  border-top: 3px solid #1a1a2e;
  padding-top: 24px;
}

/* セクションタイトル */
.rpw-heading {
  font-size: 16px !important;
  font-weight: bold !important;
  color: #1a1a2e !important;
  letter-spacing: 1px;
  margin: 0 0 16px !important;
  padding-left: 12px;
  border-left: 4px solid #cc0000;
}

/* グリッド */
.rpw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* カード */
.rpw-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.15s, box-shadow 0.15s;
}

.rpw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

/* サムネイル */
.rpw-thumb {
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background-size: cover;
  background-position: center top;
  background-color: #eee;
  flex-shrink: 0;
}

/* カード本文 */
.rpw-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* カテゴリバッジ */
.rpw-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  background: #1a1a2e;
  color: #fff !important;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
  text-decoration: none !important;
  align-self: flex-start;
}

/* タイトル */
.rpw-title {
  font-size: 13px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
  color: #222 !important;
  margin: 0 0 6px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 女優名 */
.rpw-actress {
  font-size: 11px !important;
  color: #555 !important;
  margin: 0 0 6px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpw-actress-label {
  display: inline-block;
  font-size: 10px;
  color: #999;
  margin-right: 4px;
}

/* 抜粋 */
.rpw-excerpt {
  font-size: 11px !important;
  color: #888 !important;
  line-height: 1.5 !important;
  margin: 0 0 8px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* メタ情報 */
.rpw-meta {
  margin-top: auto;
}

.rpw-date {
  font-size: 11px;
  color: #aaa;
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット: 2列 */
@media screen and (max-width: 900px) {
  .rpw-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ: 2列（小） */
@media screen and (max-width: 480px) {
  .rpw-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .rpw-title {
    font-size: 12px !important;
    -webkit-line-clamp: 2;
  }

  .rpw-excerpt {
    display: none !important;
  }
}
