/* =========================================================
   PDP: News (お知らせボックス)
   - 差し込み位置: お届け時間帯の直下
   - 既存の front-news.css とトーンを合わせた軽量版
   --------------------------------------------------------- */

.pdpNews{
  margin-top: var(--space-6, 24px);
  background: #fff;
  border-radius: var(--radius-lg,12px);
  box-shadow: var(--shadow-sm,0 1px 2px rgba(0,0,0,.06));
}

/* ヘッダー（見出し＋「すべて見る」） */
.pdpNews__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.pdpNews__header > span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--c-text,#111827);
}
.pdpNews__all{
  display: inline-block;
  font-size: 12px;
  color: var(--c-accent,#a1905a);
  text-decoration: none;
  white-space: nowrap;
}
.pdpNews__all:hover{ text-decoration: underline; }

/* リスト本体 */
.pdpNews__list{
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pdpNews__item{
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 10px;
}
.pdpNews__item:hover{
  background: rgba(0,0,0,.03);
}

/* ラベル・日付・タイトル */
.newsBadge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  background: var(--c-muted,#6b7280);
}
.newsBadge--important{ background: var(--c-danger,#b4645e); }

.pdpNews__date{
  font-size: 12px;
  color: var(--c-muted,#6b7280);
  white-space: nowrap;
}

.pdpNews__title{
  display: inline-block;
  font-size: 14px;
  color: var(--c-text,#111827);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdpNews__title:hover{ text-decoration: underline; }

/* 余白のバランス（ボックス上下の密度調整） */
.pdpNews + *{ margin-top: var(--space-6, 24px); }

/* ----------------------------
   Responsive
   ---------------------------- */
@media (max-width: 640px){
  .pdpNews{ padding: 10px 12px; }
  .pdpNews__item{
    grid-template-columns: auto 1fr;
  }
  .pdpNews__date{
    display: none; /* モバイルはタイトル優先で日付を省略 */
  }
}

/* ----------------------------
   ダーク/濃色背景を想定した安全色（必要なら）
   ---------------------------- */
@media (prefers-color-scheme: dark){
  .pdpNews{
    background: #0f1115;
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
  }
  .pdpNews__title{ color: #e5e7eb; }
}
