/* ============================================================
 * Phase 14g — Circle v2 (6タブナビ + 統一カード + 3種別差別化)
 *
 * 構造改革:
 * - HOME同型 6タブナビ (おすすめ/参加/Tifuler/公式/PEER/My Circle)
 * - カード統一フォーマット (案B 構造統一+内容差別化)
 * - Type chip カラーで3種別識別 (公式=ネイビー / Tifuler=プラチナ / PEER=グレー)
 * - Tifuler Circle Naming = "○○のスキンラボ" 形式 (人格主役 / YouTubeチャンネル相当)
 * - PEER は閲覧時 Tifuler 発信不可 (Q16 / spec §4.9.1.1 改定予定)
 * - Co-host 制度 廃止 (Q18 / spec §4.9.1 改定予定)
 * ============================================================ */

/* Top nav (6タブ横スライド / HOME 同型) */
.cv2-top-nav {
  display: flex;
  padding: 6px 0 0 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line, #EAE6DF);
  background: white;
  position: sticky;
  top: var(--top-bar-h, 62px);
  z-index: 5;
}
@media (max-width: 430px) {
  .cv2-top-nav { top: calc(var(--top-bar-h, 62px) + env(safe-area-inset-top)); }
}
.cv2-top-nav::-webkit-scrollbar { display: none; }
.cv2-top-nav::after { content: ''; flex: 0 0 20px; }
.cv2-top-nav__tab {
  flex: 0 0 auto;
  padding: 13px 0;
  margin-right: 26px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mist, #9C988F);
  cursor: pointer;
  position: relative;
  scroll-snap-align: start;
  transition: color 0.2s;
  white-space: nowrap;
  background: none;
  border: none;
}
.cv2-top-nav__tab:hover { color: var(--ink, #1F232E); }
.cv2-top-nav__tab.is-active { color: var(--ink, #1F232E); }
.cv2-top-nav__tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink, #1F232E);
}

/* Panels */
.cv2-panel { display: none; padding-bottom: 100px; }
.cv2-panel.is-active { display: block; }

/* Section */
.cv2-section { margin-top: 28px; }
.cv2-section:first-child { margin-top: 24px; }
.cv2-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 20px 12px;
}
.cv2-section__title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink, #1F232E);
  text-transform: uppercase;
}
.cv2-section__sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--mist, #9C988F);
  margin-top: 4px;
}
.cv2-section__more {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--mist, #9C988F);
  letter-spacing: 0.08em;
}

/* Section sub-heading (panel header description) */
.cv2-panel-intro {
  padding: 18px 20px 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--stone, #6B6B6B);
  line-height: 1.6;
}
.cv2-panel-intro__verb {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink, #1F232E);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ============================================================
 * Card — 統一フォーマット (案B 構造統一+内容差別化)
 * ============================================================ */
.cv2-card {
  display: flex;
  flex-direction: column;
  margin: 0 20px 14px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border-soft, #F0F0F0);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s;
}
.cv2-card:hover { border-color: var(--border-mist, #E8E8E8); }

.cv2-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Type chip (3種別差別化のメイン軸) */
.cv2-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 11px;
}
.cv2-chip--official {
  background: #1F2A44;
  color: #fff;
}
.cv2-chip--tifuler {
  background: linear-gradient(135deg, #5E6773 0%, #7C8693 100%);
  color: #fff;
}
.cv2-chip--peer {
  background: #EFEEEC;
  color: #6B6B6B;
}

/* Status (右上 / 参加中 等) */
.cv2-card__status {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mist, #9C988F);
  text-transform: uppercase;
}
.cv2-card__status--joined {
  color: #5E6773;
  font-weight: 600;
}

/* Body (avatar + info / 案B 構造統一) */
.cv2-card__body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cv2-card__avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #EFEEEC;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 内容差別化: avatar サイズで Tifuler の "人格主役" を強度差表現 */
.cv2-card--tifuler .cv2-card__avatar { width: 64px; height: 64px; }
.cv2-card--official .cv2-card__avatar { width: 56px; height: 56px; }
.cv2-card--peer .cv2-card__avatar { width: 48px; height: 48px; }
.cv2-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cv2-card__avatar svg { width: 60%; height: 60%; opacity: 0.5; color: #9B9B9B; }
/* 公式 Circle の avatar = 黒背景 + 公式ロゴ (Phase 14k Yutaro 確定 / Phase 14k+ ロゴサイズ縮小) */
.cv2-card--official .cv2-card__avatar { background: var(--ink, #1F232E); }
.cv2-card--official .cv2-card__avatar img { object-fit: contain; padding: 11px; box-sizing: border-box; }

.cv2-card__info { flex: 1 1 auto; min-width: 0; }
.cv2-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1F232E);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.cv2-card__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mist, #9C988F);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cv2-card__statement {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--stone, #6B6B6B);
  line-height: 1.55;
}

/* Footer meta (統一) */
.cv2-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft, #F0F0F0);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--mist, #9C988F);
}
.cv2-card__meta-dot {
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--mist, #9C988F);
}
.cv2-card__meta-pill {
  padding: 2px 8px;
  border-radius: 8px;
  background: #F6F4F0;
  color: #6B6B6B;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.cv2-card__meta-pill--free { background: #EFF5EF; color: #4A6B4F; }

/* ============================================================
 * Hero card — 「おすすめ」セクション内 / 参加中 1枚目 / 案C Hero/Sub階層
 * ============================================================ */
.cv2-hero-card {
  display: block;
  margin: 0 20px 16px;
  padding: 22px;
  background: white;
  border: 1px solid var(--border-mist, #E8E8E8);
  border-radius: 18px;
  cursor: pointer;
}
.cv2-hero-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cv2-hero-card__body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.cv2-hero-card__avatar {
  flex: 0 0 auto;
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #EFEEEC;
}
.cv2-hero-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cv2-hero-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink, #1F232E);
  margin-bottom: 4px;
}
.cv2-hero-card__statement {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--stone, #6B6B6B);
  line-height: 1.6;
  margin-top: 8px;
}
.cv2-hero-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--mist, #9C988F);
}

/* ============================================================
 * Search bar (Tifuler / 公式 / PEER タブ) + Filter chips (PEER フェーズ)
 * ============================================================ */
.cv2-search {
  margin: 16px 20px 12px;
  padding: 10px 14px;
  background: #F6F4F0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--mist, #9C988F);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv2-filter-chips {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cv2-filter-chips::-webkit-scrollbar { display: none; }
.cv2-filter-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--stone, #6B6B6B);
  background: #F6F4F0;
  border: none;
  border-radius: 14px;
  cursor: pointer;
}
.cv2-filter-chip.is-active {
  background: var(--ink, #1F232E);
  color: #fff;
}

/* ============================================================
 * My Circle empty / placeholder
 * ============================================================ */
.cv2-mycircle-empty {
  margin: 32px 20px;
  padding: 32px 20px;
  text-align: center;
  background: #FAFAF7;
  border: 1px dashed var(--border-mist, #E8E8E8);
  border-radius: 14px;
}
.cv2-mycircle-empty__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1F232E);
  margin-bottom: 8px;
}
.cv2-mycircle-empty__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--stone, #6B6B6B);
  line-height: 1.7;
  margin-bottom: 16px;
}
.cv2-mycircle-empty__cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ink, #1F232E);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
}

/* PEER 専用 callout (詳細ビュー以外で使う場合 / Tifuler 発信不可の注釈) */
.cv2-peer-rule {
  margin: 0 20px 14px;
  padding: 10px 12px;
  background: #FAFAF7;
  border-left: 2px solid #B0B0B0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--stone, #6B6B6B);
  line-height: 1.6;
}

/* ============================================================
 * Phase 14i — Hero card 拡張 (Substack型: 直近スレッド preview + Sub CTA)
 * ============================================================ */
.cv2-hero-card__latest-threads {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft, #F0F0F0);
}
.cv2-hero-card__latest-threads-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mist, #9C988F);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cv2-hero-thread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--ink, #1F232E);
  border-bottom: 1px solid var(--border-soft, #F0F0F0);
}
.cv2-hero-thread:last-child { border-bottom: none; }
.cv2-hero-thread__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}
.cv2-hero-thread__meta {
  flex: 0 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--mist, #9C988F);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv2-hero-thread__pill {
  padding: 2px 7px;
  border-radius: 6px;
  background: #F6F4F0;
  color: #6B6B6B;
  font-size: 9px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.cv2-hero-thread__pill--premium {
  /* Navigator Tier ゴールド (Detail ページ整合 / シャンパン → 深ブロンズ) */
  background: linear-gradient(135deg, #F5DAA0 0%, #C8A250 55%, #AA873C 100%);
  color: #FFFFFF;
  text-shadow: 0 1px 1px rgba(70, 50, 10, 0.25);
}
.cv2-hero-card__cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  background: linear-gradient(135deg, #5E6773 0%, #7C8693 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

/* ============================================================
 * Phase 14i — PEER Bump Buddies (Peanut型: 同フェーズ仲間 cluster)
 * ============================================================ */
.cv2-bump-buddies {
  margin: 4px 20px 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #FAF8F4 0%, #FFFFFF 100%);
  border: 1px solid var(--border-mist, #E8E8E8);
  border-radius: 14px;
  cursor: pointer;
}
.cv2-bump-buddies__head {
  margin-bottom: 14px;
}
.cv2-bump-buddies__title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink, #1F232E);
  text-transform: uppercase;
}
.cv2-bump-buddies__sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--mist, #9C988F);
  margin-top: 4px;
}
.cv2-bump-buddies__body {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cv2-bump-buddies__avatars {
  display: flex;
  flex: 0 0 auto;
}
.cv2-bump-buddies__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EFEEEC;
  border: 2px solid white;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.cv2-bump-buddies__avatar:first-child { margin-left: 0; }
.cv2-bump-buddies__avatar svg { width: 60%; height: 60%; opacity: 0.4; color: #9B9B9B; }
.cv2-bump-buddies__count {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--ink, #1F232E);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.cv2-bump-buddies__count-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--mist, #9C988F);
  margin-top: 3px;
}
.cv2-bump-buddies__preview {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft, #F0F0F0);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--stone, #6B6B6B);
  line-height: 1.55;
}
.cv2-bump-buddies__preview-author {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--ink, #1F232E);
  margin-right: 6px;
  letter-spacing: 0.02em;
}

/* ============================================================
 * Phase 14j — Subscription 状態 視覚区別 (Subscribed / Sub ¥290 / 月)
 * ============================================================ */
.cv2-card__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cv2-card__status-pill--subscribed {
  background: linear-gradient(135deg, #5E6773 0%, #7C8693 100%);
  color: #fff;
}
.cv2-card__status-pill--subscribed::before {
  content: "✓";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.cv2-card__status-pill--free {
  background: #F6F4F0;
  color: #6B6B6B;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ============================================================
 * Phase 14k Visual Upgrade v1 — Pattern 1/2/3 (Hero KV / Standard KV / Compact)
 * SSOT: Tiful_v4_Circle_VisualUpgrade_Spec.md §6.3 (status=confirmed v1.1)
 * Phase 1 共通基盤を活用 (.kv-card / .glass-overlay / .stat-number / .avatar-stack)
 * T1-T9 厳守: T2 大面積パステル禁止 / T4 写真主役 / T5 Sans 主体 / T7 ピンク文字禁止 / T9 数字 Inter Light Tabular
 * card 間 margin 14 → 20px (T6 余白)
 * ============================================================ */

/* ============================================================
 * Pattern 1: Hero KV card (大)
 * 用途: おすすめ Hero / TIFULER Hero (Substack 機能内包)
 * 構造: KV 16:9 + glass-overlay 上下 + meta block 白bg + (任意) latest-threads + CTA
 * ============================================================ */
.cv2-card--hero-kv {
  display: block;
  margin: 0 20px 20px;
  padding: 0;
  background: white;
  border: 1px solid var(--border-mist, #E8E8E8);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1)),
              box-shadow 0.3s var(--ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.cv2-card--hero-kv:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* KV 領域 */
.cv2-card--hero-kv__kv {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #EFEEEC;
}
.cv2-card--hero-kv__kv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.cv2-card--hero-kv:hover .cv2-card--hero-kv__kv-img {
  transform: scale(1.025);
}

/* glass-overlay 上部 (chip + status pill) */
.cv2-card--hero-kv__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
}
.cv2-card--hero-kv__top .cv2-chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink, #1F232E);
  backdrop-filter: var(--glass-blur-sm, blur(8px));
  -webkit-backdrop-filter: var(--glass-blur-sm, blur(8px));
}
.cv2-card--hero-kv__top .cv2-chip--official {
  background: rgba(31, 42, 68, 0.92);
  color: #fff;
}
.cv2-card--hero-kv__top .cv2-chip--peer {
  background: rgba(239, 238, 236, 0.92);
  color: #5C5A55;
}
.cv2-card--hero-kv__top .cv2-card__status-pill {
  backdrop-filter: var(--glass-blur-sm, blur(8px));
  -webkit-backdrop-filter: var(--glass-blur-sm, blur(8px));
}

/* glass-overlay 下部 (avatar + title + subtitle + statement) */
.cv2-card--hero-kv__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.78) 100%);
  color: #fff;
  z-index: 2;
}
.cv2-card--hero-kv__bottom-body {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.cv2-card--hero-kv__avatar {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  background: #EFEEEC;
}
.cv2-card--hero-kv__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cv2-card--hero-kv__avatar svg {
  width: 60%;
  height: 60%;
  margin: 20%;
  opacity: 0.5;
  color: #9B9B9B;
}
.cv2-card--hero-kv__overlay-text {
  flex: 1 1 auto;
  min-width: 0;
}
.cv2-card--hero-kv__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.01em;
}
.cv2-card--hero-kv__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 6px;
}
.cv2-card--hero-kv__statement {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* meta block (画像下 / 白bg) */
.cv2-card--hero-kv__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: white;
  border-bottom: 1px solid var(--border-soft, #F0F0F0);
}
.cv2-card--hero-kv__meta:last-child {
  border-bottom: none;
}
.cv2-card--hero-kv__meta-stat {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' on;
  letter-spacing: -0.02em;
  font-size: 22px;
  line-height: 1.0;
  color: var(--ink, #1F232E);
  margin-right: 2px;
}
.cv2-card--hero-kv__meta-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone, #6B6B6B);
}
.cv2-card--hero-kv__meta-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--mist, #9C988F);
  letter-spacing: 0.02em;
}
.cv2-card--hero-kv__meta-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--mist, #9C988F);
  flex: 0 0 auto;
}

/* Substack 機能 (TIFULER 用 = 直近スレッド + CTA) */
.cv2-card--hero-kv__threads {
  padding: 14px 18px 4px;
  background: white;
}
.cv2-card--hero-kv__threads-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mist, #9C988F);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cv2-card--hero-kv__threads .cv2-hero-thread {
  border-bottom: 1px solid var(--border-soft, #F0F0F0);
}
.cv2-card--hero-kv__threads .cv2-hero-thread:last-child {
  border-bottom: none;
}
.cv2-card--hero-kv__cta {
  display: block;
  margin: 12px 18px 18px;
  padding: 13px;
  background: var(--ink, #1F232E);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}
.cv2-card--hero-kv--tifuler .cv2-card--hero-kv__cta {
  background: linear-gradient(135deg, #5E6773 0%, #7C8693 100%);
}

/* 公式バリアント (組織発信 / Tiful 公式ロゴ avatar + ブラック CTA) */
.cv2-card--hero-kv--official .cv2-card--hero-kv__avatar {
  background: var(--ink, #1F232E);
}
.cv2-card--hero-kv--official .cv2-card--hero-kv__avatar img {
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}
.cv2-card--hero-kv--official .cv2-card--hero-kv__cta {
  background: var(--ink, #1F232E);
}

/* ============================================================
 * Pattern 2: Standard KV card (中)
 * 用途: 主軸 = 公式 / Tifuler 標準 / PEER 主要
 * 構造: KV 16:9 + body (chip + title + subtitle + statement + avatar-stack + meta)
 * ============================================================ */
.cv2-card--kv {
  display: block;
  margin: 0 20px 20px;
  padding: 0;
  background: white;
  border: 1px solid var(--border-soft, #F0F0F0);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1)),
              border-color 0.3s var(--ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.cv2-card--kv:hover {
  transform: translateY(-1px);
  border-color: var(--border-mist, #E8E8E8);
}

.cv2-card--kv__kv {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #EFEEEC;
}
.cv2-card--kv__kv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.cv2-card--kv:hover .cv2-card--kv__kv-img {
  transform: scale(1.02);
}
.cv2-card--kv__kv-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.cv2-card--kv__kv-overlay-top .cv2-chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink, #1F232E);
  backdrop-filter: var(--glass-blur-sm, blur(8px));
  -webkit-backdrop-filter: var(--glass-blur-sm, blur(8px));
}
.cv2-card--kv__kv-overlay-top .cv2-chip--official {
  background: rgba(31, 42, 68, 0.92);
  color: #fff;
}
.cv2-card--kv__kv-overlay-top .cv2-chip--peer {
  background: rgba(239, 238, 236, 0.92);
  color: #5C5A55;
}
.cv2-card--kv__kv-overlay-top .cv2-card__status-pill,
.cv2-card--kv__kv-overlay-top .cv2-card__status {
  backdrop-filter: var(--glass-blur-sm, blur(8px));
  -webkit-backdrop-filter: var(--glass-blur-sm, blur(8px));
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 10px;
}

/* Pattern 2 body */
.cv2-card--kv__body {
  padding: 16px 18px 14px;
}
.cv2-card--kv__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #1F232E);
  line-height: 1.4;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.cv2-card--kv__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist, #9C988F);
  margin: 0 0 8px;
}
.cv2-card--kv__statement {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--stone, #6B6B6B);
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cv2-card--kv__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft, #F0F0F0);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--mist, #9C988F);
}
.cv2-card--kv__avatars {
  display: flex;
  flex: 0 0 auto;
}
.cv2-card--kv__avatars-item {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #EFEEEC;
  border: 1.5px solid white;
  margin-left: -6px;
  overflow: hidden;
  flex: 0 0 auto;
}
.cv2-card--kv__avatars-item:first-child {
  margin-left: 0;
}
.cv2-card--kv__avatars-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cv2-card--kv__avatars-item svg {
  width: 60%;
  height: 60%;
  margin: 20%;
  opacity: 0.4;
  color: #9B9B9B;
}
.cv2-card--kv__meta-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--mist, #9C988F);
  letter-spacing: 0.02em;
}
.cv2-card--kv__meta-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--mist, #9C988F);
  flex: 0 0 auto;
}
.cv2-card--kv__meta-stat {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' on;
  letter-spacing: -0.02em;
  color: var(--ink, #1F232E);
  font-size: 16px;
  line-height: 1.0;
  margin-right: 2px;
}

/* ============================================================
 * Pattern 3: Compact card (小)
 * 用途: 参加 CIRCLE / My Circle / リスト末尾
 * 構造: No KV / 左 4px gradient stripe + body (chip + title + meta)
 * ============================================================ */
.cv2-card--compact {
  display: flex;
  align-items: stretch;
  margin: 0 20px 20px;
  padding: 0;
  background: white;
  border: 1px solid var(--border-soft, #F0F0F0);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1)),
              transform 0.3s var(--ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1));
  position: relative;
}
.cv2-card--compact:hover {
  border-color: var(--border-mist, #E8E8E8);
  transform: translateY(-1px);
}
.cv2-card--compact__stripe {
  flex: 0 0 4px;
  background: var(--logo-gradient, linear-gradient(135deg, #E8A5B5 0%, #C5B0D1 50%, #7FB8D4 100%));
}
.cv2-card--compact--peer .cv2-card--compact__stripe {
  background: linear-gradient(180deg, #B8B5AC 0%, #7C8693 100%);
}
.cv2-card--compact--official .cv2-card--compact__stripe {
  background: var(--ink, #1F232E);
}
.cv2-card--compact__body {
  flex: 1 1 auto;
  padding: 14px 16px 14px 14px;
  min-width: 0;
}
.cv2-card--compact__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}
.cv2-card--compact__head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cv2-card--compact__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1F232E);
  line-height: 1.4;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cv2-card--compact__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--mist, #9C988F);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
.cv2-card--compact__meta-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--mist, #9C988F);
  flex: 0 0 auto;
}
.cv2-card--compact__status {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mist, #9C988F);
  text-transform: uppercase;
  flex: 0 0 auto;
  white-space: nowrap;
}
.cv2-card--compact__status--joined {
  color: #5E6773;
}

/* ============================================================
 * Phase 5a — Owner Circle カード (MY CIRCLE タブ専用)
 * カード = div, メイン部 + 「運営 ›」サブリンク の 2-リンク構造
 * 視覚分離: border-left で運営リンク領域を区切る
 * ============================================================ */
.cv2-card--compact.cv2-card--compact--owner {
  cursor: default;
}
.cv2-card--compact__main {
  flex: 1 1 auto;
  display: flex;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.cv2-card--compact__admin-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink, #1F232E);
  text-decoration: none;
  border-left: 0.5px solid var(--border-soft, #F0F0F0);
  background: #FAFAFA;
  transition: background 0.15s ease;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.cv2-card--compact__admin-link:hover {
  background: #F2F2F2;
}
.cv2-card--compact__admin-link:active {
  background: #ECECEC;
}
.cv2-card--compact__admin-link svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

/* ============================================================
 * Status pill on KV (Pattern 1/2 共通 — 半透明背景でガラス感)
 * ============================================================ */
.cv2-card--hero-kv__top .cv2-card__status-pill--subscribed,
.cv2-card--kv__kv-overlay-top .cv2-card__status-pill--subscribed {
  background: linear-gradient(135deg, rgba(94, 103, 115, 0.92) 0%, rgba(124, 134, 147, 0.92) 100%);
}

/* ============================================================
 * Reduced motion
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cv2-card--hero-kv,
  .cv2-card--kv,
  .cv2-card--compact,
  .cv2-card--hero-kv__kv-img,
  .cv2-card--kv__kv-img {
    transition: none !important;
  }
  .cv2-card--hero-kv:hover,
  .cv2-card--kv:hover,
  .cv2-card--compact:hover {
    transform: none !important;
  }
  .cv2-card--hero-kv:hover .cv2-card--hero-kv__kv-img,
  .cv2-card--kv:hover .cv2-card--kv__kv-img {
    transform: none !important;
  }
}

/* ============================================================
 * Phase 5c-a: View Mode (Tifuler / Learner) — journal_v4 Phase 6d 連携
 * - body[data-view-mode="tifuler"|"learner"] で MY CIRCLE タブ内
 *   Tifuler Circle カードの表示を制御
 * - localStorage `tiful_view_mode` で journal_v4 と相互同期
 * - mock 切替UI = MY CIRCLE タブ上部の cv2-mode-toggle (デモ専用)
 *   本番では Tifuler 認定で自動判定 = 切替UIは出さない想定
 * ============================================================ */

/* Learner モード時: Tifuler Circle カードを非表示 (一般ユーザーは Tifuler Circle を所有しない) */
body[data-view-mode="learner"] .cv2-card--compact--tifuler-owner {
  display: none !important;
}

/* Tifuler モード時: PEER Owner カードを非表示 (Tifuler は PEER 閲覧のみ可・Owner不可 / memory Q16) */
body[data-view-mode="tifuler"] .cv2-card--compact--peer.cv2-card--compact--owner {
  display: none !important;
}

/* MY CIRCLE タブ上部 (intro 横並び化) */
.cv2-panel-intro--my {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.cv2-panel-intro--my .cv2-panel-intro__main {
  flex: 1;
  min-width: 0;
}

/* mock 切替UI (Tifuler ↔ Learner) */
.cv2-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(31, 35, 46, 0.06);
  border: none;
  border-radius: 11px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink, #1F232E);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  transition: background 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
  margin-top: 2px;
}
.cv2-mode-toggle:hover {
  background: rgba(31, 35, 46, 0.1);
}
.cv2-mode-toggle__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A8DCC4 0%, #7FB8D4 100%);
  flex-shrink: 0;
}
