/* ============================================================
   portfolio.css — gokarna テーマ上にポートフォリオ用UIを追加
   方針:
   - 既存のシンプルさを尊重し、装飾は控えめにアクセントカラーで統一
   - ライト/ダーク両対応（@prefers-color-scheme + html[data-pf-theme]）
   - 既存のmarkdown生成リスト等を壊さない（追加要素はすべて pf- prefix）
   ============================================================ */

/* ---------- 色トークン（ライト基準） ---------- */
:root {
  --pf-border: rgba(0, 0, 0, 0.08);
  --pf-border-strong: rgba(0, 0, 0, 0.14);
  --pf-card-bg: rgba(56, 180, 139, 0.04);
  --pf-card-bg-hover: rgba(56, 180, 139, 0.08);
  --pf-surface: #ffffff;
  --pf-muted: #6b6b6b;
  --pf-muted-2: #8b8b8b;
  --pf-chip-bg: rgba(56, 180, 139, 0.12);
  --pf-chip-fg: #2c8c6b;
  --pf-divider: rgba(0, 0, 0, 0.06);
  --pf-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --pf-shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* ---------- ダーク（システム or 手動トグル） ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --pf-border: rgba(255, 255, 255, 0.10);
    --pf-border-strong: rgba(255, 255, 255, 0.18);
    --pf-card-bg: rgba(56, 180, 139, 0.08);
    --pf-card-bg-hover: rgba(56, 180, 139, 0.14);
    --pf-surface: #22272e;
    --pf-muted: #a5a5a5;
    --pf-muted-2: #888;
    --pf-chip-bg: rgba(56, 180, 139, 0.18);
    --pf-chip-fg: #6fd1a8;
    --pf-divider: rgba(255, 255, 255, 0.08);
    --pf-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --pf-shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.4);
  }
}

/* 手動トグル（テーマのdarkスタイルがenabled時、htmlへ data-pf-theme=dark を流し込む） */
html[data-pf-theme="dark"] {
  --pf-border: rgba(255, 255, 255, 0.10);
  --pf-border-strong: rgba(255, 255, 255, 0.18);
  --pf-card-bg: rgba(56, 180, 139, 0.08);
  --pf-card-bg-hover: rgba(56, 180, 139, 0.14);
  --pf-surface: #22272e;
  --pf-muted: #a5a5a5;
  --pf-muted-2: #888;
  --pf-chip-bg: rgba(56, 180, 139, 0.18);
  --pf-chip-fg: #6fd1a8;
  --pf-divider: rgba(255, 255, 255, 0.08);
  --pf-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --pf-shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.4);
}
html[data-pf-theme="light"] {
  --pf-border: rgba(0, 0, 0, 0.08);
  --pf-border-strong: rgba(0, 0, 0, 0.14);
  --pf-card-bg: rgba(56, 180, 139, 0.04);
  --pf-card-bg-hover: rgba(56, 180, 139, 0.08);
  --pf-surface: #ffffff;
  --pf-muted: #6b6b6b;
  --pf-muted-2: #8b8b8b;
  --pf-chip-bg: rgba(56, 180, 139, 0.12);
  --pf-chip-fg: #2c8c6b;
  --pf-divider: rgba(0, 0, 0, 0.06);
}

/* ============================================================
   1. Home ページ
   ============================================================ */

/* home-content は theme側で text-align:center 指定があるため、リスト系は左揃えに戻す */
.home-content .pf-section,
.home-content .pf-stats,
.home-content .pf-feature-grid,
.home-content .pf-nav-grid {
  text-align: left;
}

.pf-pitch {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--pf-muted);
  max-width: 620px;
  margin: 16px auto 28px;
  text-align: center;
}

.pf-pitch strong {
  color: var(--accent-color);
  font-weight: 700;
}

/* セクション見出し（Home内の小見出し） */
.pf-section {
  margin: 48px 0 16px;
}
.pf-section-title {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pf-muted);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pf-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pf-divider);
}

/* ---------- Stats（数値カード） ---------- */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0 32px;
}
.pf-stat {
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 18px 12px;
  background: var(--pf-card-bg);
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pf-stat:hover {
  background: var(--pf-card-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--pf-shadow-hover);
}
.pf-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1.1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.pf-stat-label {
  font-size: 0.78rem;
  color: var(--pf-muted);
  margin-top: 8px;
  display: block;
  letter-spacing: 0.04em;
}

/* ---------- Feature Grid（Home の "Featured Work" 等） ---------- */
.pf-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}
.pf-feature {
  display: block;
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  background: var(--pf-surface);
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--pf-shadow);
}
.pf-feature:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--pf-shadow-hover);
}
.pf-feature-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 8px;
}
.pf-feature-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}
.pf-feature-desc {
  font-size: 0.85rem;
  color: var(--pf-muted);
  line-height: 1.55;
  margin: 0;
}
.pf-feature-meta {
  font-size: 0.75rem;
  color: var(--pf-muted-2);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ---------- Quick Nav グリッド ---------- */
.pf-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 8px 0 32px;
}
.pf-nav-card {
  display: block;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--pf-surface);
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pf-nav-card:hover {
  border-color: var(--accent-color);
  background: var(--pf-card-bg);
}
.pf-nav-name {
  font-weight: 700;
  font-size: 0.98rem;
  display: block;
  margin-bottom: 2px;
}
.pf-nav-desc {
  font-size: 0.78rem;
  color: var(--pf-muted);
  display: block;
}

/* ============================================================
   2. About ページ
   ============================================================ */

/* Highlight 4枚 */
.pf-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 36px;
}
.pf-highlight {
  border: 1px solid var(--pf-border);
  border-left: 3px solid var(--accent-color);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--pf-card-bg);
}
.pf-highlight-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--pf-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}
.pf-highlight-body {
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 600;
}

/* Profile vital card（About上部のラベル+値） */
.pf-profile {
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 18px 22px;
  background: var(--pf-surface);
  margin: 16px 0 28px;
  box-shadow: var(--pf-shadow);
}
.pf-profile dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
  margin: 0;
}
.pf-profile dt {
  color: var(--pf-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  align-self: center;
}
.pf-profile dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Book カード */
.pf-books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 12px 0 28px;
}
.pf-book {
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--pf-card-bg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pf-book:hover {
  border-color: var(--accent-color);
  box-shadow: var(--pf-shadow-hover);
}
.pf-book-year {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 6px;
}
.pf-book-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.45;
}
.pf-book-title a { text-decoration: none; }
.pf-book-title a:hover { text-decoration: underline; }
.pf-book-en {
  font-size: 0.82rem;
  color: var(--pf-muted);
  line-height: 1.45;
}

/* Work Experience timeline（縦線+ドット） */
.pf-timeline {
  position: relative;
  margin: 12px 0 32px;
  padding-left: 22px;
}
.pf-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--pf-divider);
}
.pf-tl-item {
  position: relative;
  padding: 4px 0 18px;
}
.pf-tl-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 10px;
  width: 10px;
  height: 10px;
  background: var(--pf-surface);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
}
.pf-tl-item.is-current::before {
  background: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(56, 180, 139, 0.18);
}
.pf-tl-period {
  font-size: 0.78rem;
  color: var(--pf-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.pf-tl-role {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.pf-tl-org {
  font-size: 0.86rem;
  color: var(--pf-muted);
  margin-bottom: 4px;
}
.pf-tl-org a { color: inherit; text-decoration: none; }
.pf-tl-org a:hover { color: var(--accent-color); text-decoration: underline; }
.pf-tl-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: inherit;
  margin: 6px 0 0;
}
.pf-tl-desc ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.pf-tl-desc li {
  margin: 2px 0;
}

/* Interest tag cloud */
.pf-interests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 12px 0 24px;
}
.pf-interest {
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--pf-card-bg);
}
.pf-interest-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--accent-color);
}
.pf-interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Skill / Tag pills */
.pf-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 24px;
}
.pf-skill,
.pf-tag {
  display: inline-block;
  border: 1px solid var(--pf-border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.82rem;
  background: var(--pf-card-bg);
  color: inherit;
}
.pf-tag.is-strong {
  background: var(--pf-chip-bg);
  color: var(--pf-chip-fg);
  border-color: transparent;
  font-weight: 600;
}

/* Qualification timeline (簡易) */
.pf-quals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 24px;
}
.pf-qual {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  background: var(--pf-card-bg);
}
.pf-qual-year {
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.04em;
}
.pf-qual-name {
  font-size: 0.92rem;
}

/* Link カラム */
.pf-link-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 12px 0 24px;
}
.pf-link-group h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-muted);
  margin: 0 0 8px;
  font-weight: 700;
}
.pf-link-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pf-link-group li {
  margin: 4px 0;
  font-size: 0.92rem;
}

/* ============================================================
   3. Activities ページ — 役割チップ
   ============================================================ */

/* チップごとの light / dark テキスト色を CSS変数 で定義（重複定義の解消） */
:root {
  --pf-chip-award-fg:     #b07400;
  --pf-chip-lecturer-fg:  #2c8c6b;
  --pf-chip-speaker-fg:   #2864a8;
  --pf-chip-organizer-fg: #7d4caf;
  --pf-chip-tutor-fg:     #266b80;
  --pf-chip-staff-fg:     #555;
  --pf-chip-attendee-fg:  #777;
}
@media (prefers-color-scheme: dark) {
  :root {
    --pf-chip-award-fg:     #f5c46b;
    --pf-chip-lecturer-fg:  #6fd1a8;
    --pf-chip-speaker-fg:   #8fb7e8;
    --pf-chip-organizer-fg: #c2a3e6;
    --pf-chip-tutor-fg:     #7fc6da;
    --pf-chip-staff-fg:     #c0c0c0;
    --pf-chip-attendee-fg:  #a8a8a8;
  }
}
html[data-pf-theme="dark"] {
  --pf-chip-award-fg:     #f5c46b;
  --pf-chip-lecturer-fg:  #6fd1a8;
  --pf-chip-speaker-fg:   #8fb7e8;
  --pf-chip-organizer-fg: #c2a3e6;
  --pf-chip-tutor-fg:     #7fc6da;
  --pf-chip-staff-fg:     #c0c0c0;
  --pf-chip-attendee-fg:  #a8a8a8;
}
html[data-pf-theme="light"] {
  --pf-chip-award-fg:     #b07400;
  --pf-chip-lecturer-fg:  #2c8c6b;
  --pf-chip-speaker-fg:   #2864a8;
  --pf-chip-organizer-fg: #7d4caf;
  --pf-chip-tutor-fg:     #266b80;
  --pf-chip-staff-fg:     #555;
  --pf-chip-attendee-fg:  #777;
}

.pf-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--pf-chip-bg);
  color: var(--pf-chip-fg);
  vertical-align: 1px;
  margin-right: 6px;
  text-transform: uppercase;
  line-height: 1.4;
}
.pf-chip-award     { background: rgba(245, 166,  35, 0.18); color: var(--pf-chip-award-fg); }
.pf-chip-lecturer  { background: rgba( 56, 180, 139, 0.20); color: var(--pf-chip-lecturer-fg); }
.pf-chip-speaker   { background: rgba( 80, 145, 220, 0.18); color: var(--pf-chip-speaker-fg); }
.pf-chip-organizer { background: rgba(155, 105, 200, 0.18); color: var(--pf-chip-organizer-fg); }
.pf-chip-tutor     { background: rgba( 64, 159, 184, 0.18); color: var(--pf-chip-tutor-fg); }
.pf-chip-staff     { background: rgba(140, 140, 140, 0.18); color: var(--pf-chip-staff-fg); }
.pf-chip-attendee  { background: rgba(180, 180, 180, 0.16); color: var(--pf-chip-attendee-fg); }

/* Activities年見出しの装飾 */
.post-content h2[id^="20"] {
  border-bottom: 1px solid var(--pf-divider);
  padding-bottom: 6px;
}

/* チップ凡例 */
.pf-chip-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 24px;
  font-size: 0.78rem;
  color: var(--pf-muted);
}
.pf-chip-legend span { display: inline-flex; align-items: center; gap: 4px; }

/* ============================================================
   4. CVE ページ — severity badges
   ============================================================ */
.pf-cve-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 28px;
  list-style: none;
  padding: 0;
}
.pf-cve {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  background: var(--pf-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pf-cve:hover {
  border-color: var(--accent-color);
  box-shadow: var(--pf-shadow);
}
.pf-cve-date {
  font-size: 0.78rem;
  color: var(--pf-muted);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.pf-cve-body { line-height: 1.45; }
.pf-cve-id {
  font-weight: 700;
  font-size: 0.95rem;
}
.pf-cve-id a { text-decoration: none; }
.pf-cve-id a:hover { color: var(--accent-color); text-decoration: underline; }
.pf-cve-star {
  display: inline-block;
  margin-left: 6px;
  color: #e0a82e;
  font-size: 0.9rem;
}
.pf-cve-cwe {
  font-size: 0.78rem;
  color: var(--pf-muted);
  margin-top: 2px;
}

/* Severity badges */
.pf-sev {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pf-sev-critical { background: #d83a3a; color: #fff; }
.pf-sev-high     { background: #e07a2a; color: #fff; }
.pf-sev-medium   { background: #e8b13e; color: #2b2b2b; }
.pf-sev-low      { background: #6b9bd6; color: #fff; }

/* OSS Highlight cards */
.pf-oss-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 14px 0 24px;
}
.pf-oss-card {
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--pf-card-bg);
}
.pf-oss-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 4px;
}
.pf-oss-name a { text-decoration: none; }
.pf-oss-name a:hover { color: var(--accent-color); }
.pf-oss-kind {
  font-size: 0.78rem;
  color: var(--pf-muted);
  margin-bottom: 8px;
}
.pf-oss-stars {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 6px;
}
.pf-oss-cve {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--pf-muted);
}

/* ============================================================
   5. BB ページ — Platform cards
   ============================================================ */
.pf-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 16px 0 28px;
}
.pf-platform {
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--pf-surface);
  box-shadow: var(--pf-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pf-platform:hover {
  border-color: var(--accent-color);
  box-shadow: var(--pf-shadow-hover);
}
.pf-platform-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid var(--pf-divider);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.pf-platform-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.pf-platform-name a { text-decoration: none; }
.pf-platform-name a:hover { color: var(--accent-color); }
.pf-platform-since {
  font-size: 0.74rem;
  color: var(--pf-muted);
  letter-spacing: 0.04em;
}
.pf-platform-kind {
  font-size: 0.78rem;
  color: var(--pf-muted);
  margin: -6px 0 8px;
  font-style: italic;
}
.pf-platform dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 0;
}
.pf-platform dt {
  font-size: 0.78rem;
  color: var(--pf-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pf-platform dd {
  margin: 0;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- BB — Milestones（時系列テーブル） ---------- */
.pf-milestones {
  width: 100%;
  border-collapse: collapse;
  display: table;
  margin: 14px 0 28px;
  font-size: 0.9rem;
}
.pf-milestones th { display: none; }
.pf-milestones td {
  padding: 9px 10px 9px 0;
  border: none;
  border-bottom: 1px dashed var(--pf-divider);
  vertical-align: top;
  background: transparent !important;
}
.pf-milestones tr:last-child td { border-bottom: none; }
.pf-milestones .pf-ms-date {
  width: 108px;
  white-space: nowrap;
  color: var(--pf-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  padding-top: 10px;
}
.pf-milestones .pf-ms-event { line-height: 1.55; }
.pf-milestones .pf-ms-event a { color: inherit; }
.pf-milestones .pf-ms-event a:hover { color: var(--accent-color); }
.pf-milestones tr.is-key .pf-ms-event { font-weight: 600; }

@media (max-width: 600px) {
  .pf-milestones,
  .pf-milestones tbody,
  .pf-milestones tr,
  .pf-milestones td { display: block; width: auto; }
  .pf-milestones tr {
    border-bottom: 1px dashed var(--pf-divider);
    padding: 4px 0 8px;
  }
  .pf-milestones tr:last-child { border-bottom: none; }
  .pf-milestones td { border-bottom: none; padding: 2px 0; }
  .pf-milestones .pf-ms-date { padding-top: 6px; }
}

/* ============================================================
   6. Podcast ページ
   ============================================================ */
.pf-pod-hero {
  border: 1px solid var(--pf-border);
  border-left: 3px solid var(--accent-color);
  border-radius: 10px;
  padding: 18px 22px;
  background: var(--pf-card-bg);
  margin: 16px 0 24px;
}
.pf-pod-hero h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.pf-pod-hero p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--pf-muted);
}
.pf-pod-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0 24px;
  list-style: none;
  padding: 0;
}
.pf-pod-link {
  display: block;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--pf-surface);
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pf-pod-link:hover {
  border-color: var(--accent-color);
  background: var(--pf-card-bg);
}
.pf-pod-link-name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.pf-pod-link-host {
  display: block;
  font-size: 0.76rem;
  color: var(--pf-muted);
}

/* ============================================================
   7. Press / Quote callout
   ============================================================ */
.pf-press {
  border-left: 3px solid var(--accent-color);
  padding: 10px 16px;
  background: var(--pf-card-bg);
  border-radius: 0 8px 8px 0;
  margin: 12px 0 24px;
}
.pf-press-source {
  font-size: 0.75rem;
  color: var(--pf-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.pf-press-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
.pf-press-title a { text-decoration: none; }
.pf-press-title a:hover { color: var(--accent-color); text-decoration: underline; }

/* ============================================================
   7.3 Activities ページ — Recurring Programs（主要シリーズ参加履歴）
   ============================================================ */
.pf-history-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin: 14px 0 28px;
}
.pf-history-card {
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 16px 18px 14px;
  background: var(--pf-surface);
  box-shadow: var(--pf-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pf-history-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--pf-shadow-hover);
}
.pf-history-org {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 4px;
}
.pf-history-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pf-divider);
}
.pf-history-table {
  width: 100%;
  border-collapse: collapse;
  display: table;
  margin: 0;
  font-size: 0.85rem;
  overflow: visible;
}
.pf-history-table th {
  display: none; /* ラベルは省略してスペースを節約 */
}
.pf-history-table td {
  padding: 6px 8px 6px 0;
  border: none;
  border-bottom: 1px dashed var(--pf-divider);
  vertical-align: middle;
  background: transparent !important;
}
.pf-history-table tr:last-child td {
  border-bottom: none;
}
.pf-history-table .pf-history-year {
  width: 80px;
  white-space: nowrap;
  color: var(--pf-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}
.pf-history-table .pf-history-role {
  width: 110px;
  white-space: nowrap;
}
.pf-history-table .pf-history-detail {
  color: var(--pf-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.pf-history-table .pf-history-detail a { color: inherit; }
.pf-history-table .pf-history-detail a:hover { color: var(--accent-color); }

@media (max-width: 600px) {
  .pf-history-table .pf-history-year { width: 64px; font-size: 0.76rem; }
  .pf-history-table .pf-history-role { width: 92px; }
  .pf-history-card { padding: 14px 14px 12px; }
}

/* ============================================================
   7.4 Posts ページ — おすすめ記事の星マーク
   ============================================================ */
/* 年度別一覧でおすすめ記事タイトル横に表示する星マーク */
.pf-rec-star {
  display: inline-block;
  color: #e0a82e;
  font-size: 0.95em;
  margin-right: 6px;
  text-shadow: 0 1px 0 rgba(224, 168, 46, 0.15);
  vertical-align: -1px;
}

/* 年度別一覧でおすすめ記事のタイトルを強調 */
.post-title.pf-post-recommended .post-link {
  font-weight: 700;
}

/* ============================================================
   7.5 Posts ページ — 上部タグバー
   ============================================================ */
.pf-tagbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 20px 0 36px;
  padding: 12px 14px;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  background: var(--pf-card-bg);
}
.pf-tagbar-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pf-muted);
  flex-shrink: 0;
}
.pf-tagbar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-tagbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--pf-border);
  border-radius: 999px;
  background: var(--pf-surface);
  color: inherit;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.6;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.pf-tagbar-pill:hover {
  border-color: var(--accent-color);
  background: var(--pf-card-bg-hover);
  transform: translateY(-1px);
  color: inherit;
}
.pf-tagbar-name {
  font-variant: small-caps;
  letter-spacing: 0.03em;
}
.pf-tagbar-count {
  display: inline-block;
  min-width: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--pf-chip-bg);
  color: var(--pf-chip-fg);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pf-tagbar-pill-all {
  border-style: dashed;
  padding-right: 14px;
  color: var(--pf-muted);
}
.pf-tagbar-pill-all:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

@media (max-width: 600px) {
  .pf-tagbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   8. Misc
   ============================================================ */
/* About等のmarkdown生成箇所のlist marginを少し詰める */
.post-content ul,
.post-content ol {
  line-height: 1.65;
}

/* レスポンシブ */
@media (max-width: 720px) {
  .pf-stat-value { font-size: 1.5rem; }
  .pf-cve {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .pf-cve-date { font-size: 0.72rem; }
  .pf-profile dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .pf-profile dt { margin-top: 6px; }
  .pf-qual {
    grid-template-columns: 50px 1fr;
    gap: 10px;
  }
}

/* リンクが pf-* クラス内にあるときは下線を消す（行内textは除く） */
.pf-stat a,
.pf-platform-name a,
.pf-feature-title a,
.pf-book-title a,
.pf-oss-name a {
  color: inherit;
}
