/* ==========================================================================
   pages-single.css：投稿（single）
   目的：投稿詳細ページのレイアウト（2カラム）と余白調整
   方針：
   - 固定ページ踏襲（共通は触らない）
   - 2カラムは single の中だけで完結（他ページへ波及させない）
   - 数値（幅/ギャップ/余白）は Cockpit に集約
   ========================================================================== */

/* ==========================================================================
   01) Layout：2カラム（本文＋サイド）
   ========================================================================== */

.p-single {
  margin-top: var(--single-mt);
  margin-bottom: var(--single-mb);
}

.p-single__grid {
  display: grid;
  grid-template-columns: 1fr var(--single-side-w);
  gap: var(--single-gap);
  align-items: start;
}

/* ==========================================================================
   02) Main：本文エリア
   ========================================================================== */

.p-single__main {
  min-width: 0;
}

.p-single__head {
  margin-bottom: 24px;
}

.p-single__date {
  display: block;
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 10px;
}

.p-single__title {
  color: var(--brand-primary);
  font-size: var(--single-title-size);
}

/* meta：カテゴリを右寄せ */
.p-single__meta {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.p-single__cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* カテゴリ：カプセル */
.p-single__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--brand-accent-soft);
  background: rgba(230, 164, 180, 0.12);
  color: var(--brand-accent-soft);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}

.p-single__cat:hover {
  opacity: 0.85;
}

/* ==========================================================================
   03) Sidebar：サイドバー
   ========================================================================== */

.p-single__side {
  position: relative;
  margin-top: 1.8em;
}

.p-sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-sidebar__menu li {
  margin-bottom: 12px;
}

.p-sidebar__menu a {
  text-decoration: none;
  color: var(--text-main);
}

/* ==========================================================================
   04) Meta：日付・カテゴリ
   ========================================================================== */

.p-single__meta {
  margin: 16px 0 32px;
  font-size: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   05) Content：本文（wp blocks）
   ========================================================================== */

.p-single__content > *:first-child {
  margin-top: 0;
}

.p-single__content > *:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   06) Pager：前後リンク
   ========================================================================== */

.p-single__pager {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.p-single__pager a {
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 59, 88, 0.35);
  padding-bottom: 2px;
  color: var(--brand-primary);
}

.p-single__pager a:hover {
  opacity: 0.85;
}
