@charset "UTF-8";
/*!
 * cc Vertical Video Layer
 * ショート動画（TikTok / Reels / YouTube Shorts）運用代行・
 * 縦型動画サービスLP向けのコンポーネント群。
 *
 * ・色は lp-components.css のトークンを流用し、スキン側で上書きできる。
 * ・9:16のカード、スマホモック、巨大数値、ハッシュタグ、
 *   Before/After、チャット風CTAなど、この用途で必ず要るものだけを定義。
 * ・スキンCSSより先に読み込まれるので、スキン側の指定が常に勝つ。
 */

/* ============================================================
   1. 専用トークン
   ============================================================ */
:root {
  --cc-v-ratio: 9 / 16;             /* 縦型メディアの比率 */
  --cc-v-radius: 18px;              /* 縦型カードの角丸 */
  --cc-v-gap: 18px;
  --cc-v-neon-a: var(--cc-primary); /* ネオン1（既定はスキンのプライマリ） */
  --cc-v-neon-b: var(--cc-accent);  /* ネオン2 */
  --cc-v-chat: #06c755;             /* チャットアプリ系CTAの緑 */
  --cc-v-chat-dark: #05a948;
}

/* ============================================================
   2. 縦型メディアカード（9:16）
   ============================================================ */
.cc-vgrid {
  display: grid;
  gap: var(--cc-v-gap);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.cc-vgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-vgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-vgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.cc-vcard {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--cc-v-radius);
  background: #12151d;
  color: #fff;
  text-decoration: none;
  transition: transform .5s var(--cc-ease), box-shadow .5s var(--cc-ease);
}

.cc-vcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--cc-shadow-lg);
  color: #fff;
}

.cc-vcard__media {
  position: relative;
  display: block;
  aspect-ratio: var(--cc-v-ratio);
  overflow: hidden;
  margin: 0;
}

.cc-vcard__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--cc-ease);
}

.cc-vcard:hover .cc-vcard__media img {
  transform: scale(1.06);
}

/* 下部を暗くして文字を読ませる */
.cc-vcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .78) 100%);
  pointer-events: none;
}

.cc-vcard__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px 16px 18px;
}

.cc-vcard__title {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
  text-wrap: pretty;
  word-break: auto-phrase;
  /* 3行で省略 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-vcard__title::before,
.cc-vcard__title::after { content: none; }

/* 再生数・いいね数 */
.cc-vcard__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-family: var(--cc-font-en);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .88);
}

.cc-vcard__stats span,
.cc-vcard__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.cc-vcard__stats span::before,
.cc-vcard__stat::before {
  content: "▶";
  font-size: 9px;
  opacity: .8;
}

/* 手書きHTML（span並べ）でも順番でアイコンが変わる */
.cc-vcard__stats span + span::before { content: "♥"; font-size: 10px; }
.cc-vcard__stats span + span + span::before { content: "↗"; font-size: 10px; }

/* ブロックパターン（段落の集合）はクラスで指定する */
.cc-vcard__stat--like::before { content: "♥"; font-size: 10px; }
.cc-vcard__stat--share::before { content: "↗"; font-size: 10px; }

/* 左上のバッジ（バズ・PR など） */
.cc-vcard__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-v-neon-a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.5;
}

.cc-vcard__badge--alt {
  background: var(--cc-v-neon-b);
  color: #0a0d14;
}

/* 再生アイコン */
.cc-vcard__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .5);
  opacity: 0;
  transition: opacity .35s var(--cc-ease), transform .35s var(--cc-ease);
}

.cc-vcard__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.cc-vcard:hover .cc-vcard__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}

/* 一列を少しずらして並べる（動きのある見せ方） */
.cc-vgrid--stagger > *:nth-child(even) {
  transform: translateY(26px);
}

.cc-vgrid--stagger > *:nth-child(even):hover {
  transform: translateY(20px);
}

/* ============================================================
   3. スマホモック
   ============================================================ */
.cc-phone {
  position: relative;
  width: min(300px, 100%);
  margin-inline: auto;
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2a2f3d 0%, #101319 100%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.cc-phone::before {
  content: "";
  position: absolute;
  top: 3.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 2.6%;
  min-height: 8px;
  border-radius: 999px;
  background: #0b0e14;
  z-index: 2;
}

.cc-phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 9 / 19.5;
  background: #0b0e14;
  margin: 0;
}

.cc-phone__screen img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-phones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.cc-phones .cc-phone:nth-child(1) { transform: rotate(-5deg) translateY(14px) scale(.9); }
.cc-phones .cc-phone:nth-child(3) { transform: rotate(5deg) translateY(14px) scale(.9); }

@media screen and (max-width: 767px) {
  .cc-phones .cc-phone:nth-child(1),
  .cc-phones .cc-phone:nth-child(3) { display: none; }
}

/* ============================================================
   4. 巨大数値（運用実績）
   ============================================================ */
.cc-bignums {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cc-bignum {
  position: relative;
  padding: 30px 22px 26px;
  border-radius: var(--cc-v-radius);
  background: var(--cc-surface-2);
  text-align: center;
}

.cc-bignum__value {
  display: block;
  font-family: var(--cc-font-en);
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(115deg, var(--cc-v-neon-a), var(--cc-v-neon-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cc-bignum__unit {
  font-size: .42em;
  margin-left: .12em;
  letter-spacing: 0;
}

.cc-bignum__label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--cc-text-muted);
}

.cc-bignum__delta {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-tint-success);
  color: var(--cc-success);
  font-size: 12px;
  font-weight: 800;
}

/* ============================================================
   5. ハッシュタグ
   ============================================================ */
.cc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.cc-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-pill);
  background: var(--cc-surface);
  color: var(--cc-text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}

.cc-tag::before {
  content: "#";
  margin-right: .2em;
  color: var(--cc-v-neon-a);
}

.cc-tag:hover {
  border-color: var(--cc-v-neon-a);
  color: var(--cc-v-neon-a);
}

/* 流れるハッシュタグ帯 */
.cc-ticker {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  background: var(--cc-bg-deep);
  color: #fff;
}

.cc-ticker__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  white-space: nowrap;
  font-family: var(--cc-font-en);
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  will-change: transform;
}

.cc-ticker__track > * {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  margin: 0;
}

.cc-ticker__track > *::after {
  content: "✦";
  color: var(--cc-v-neon-b);
  font-size: .7em;
}

.cc-ticker--running .cc-ticker__track {
  animation: cc-ticker-scroll var(--cc-ticker-duration, 26s) linear infinite;
}

@keyframes cc-ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   6. グリッチ見出し（色ズレ）
   ============================================================ */
.cc-glitch {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.cc-glitch::before,
.cc-glitch::after {
  content: attr(data-cc-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .75;
}

.cc-glitch::before {
  color: var(--cc-v-neon-a);
  transform: translate(-2px, 1px);
}

.cc-glitch::after {
  color: var(--cc-v-neon-b);
  transform: translate(2px, -1px);
}

/* ============================================================
   7. チェックリスト（こんな方へ）
   ============================================================ */
.cc-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.cc-checklist li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 16px 20px 16px 54px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background: var(--cc-surface);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.cc-checklist li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(115deg, var(--cc-v-neon-a), var(--cc-v-neon-b));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

/* ============================================================
   8. Before / After
   ============================================================ */
.cc-ba {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: center;
}

.cc-ba__item {
  padding: 26px 22px 24px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-v-radius);
  background: var(--cc-surface);
  text-align: center;
}

.cc-ba__item--after {
  border-color: var(--cc-v-neon-a);
  box-shadow: var(--cc-shadow-lg);
}

.cc-ba__label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-surface-2);
  color: var(--cc-text-muted);
  font-family: var(--cc-font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.cc-ba__item--after .cc-ba__label {
  background: linear-gradient(115deg, var(--cc-v-neon-a), var(--cc-v-neon-b));
  color: #fff;
}

.cc-ba__value {
  display: block;
  font-family: var(--cc-font-en);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.cc-ba__item--after .cc-ba__value {
  background: linear-gradient(115deg, var(--cc-v-neon-a), var(--cc-v-neon-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cc-ba__note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--cc-text-muted);
}

.cc-ba__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--cc-v-neon-a);
}

.cc-ba__arrow::before {
  content: "▶";
}

@media screen and (max-width: 767px) {
  .cc-ba {
    grid-template-columns: minmax(0, 1fr);
  }
  .cc-ba__arrow {
    transform: rotate(90deg);
  }
}

/* ============================================================
   9. チャットアプリ風CTA（無料診断・LINE誘導）
   ============================================================ */
.cc-chatcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  box-sizing: border-box;
  min-height: 66px;
  padding: 16px 40px;
  border: 0;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-v-chat);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(6, 199, 85, .3);
  transition: transform .3s var(--cc-ease), box-shadow .3s var(--cc-ease), background-color .2s;
}

.cc-chatcta::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: #fff;
  -webkit-mask: radial-gradient(circle at 50% 45%, #000 42%, transparent 43%) center/100% 100% no-repeat;
  mask: radial-gradient(circle at 50% 45%, #000 42%, transparent 43%) center/100% 100% no-repeat;
}

.cc-chatcta:hover {
  background: var(--cc-v-chat-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(6, 199, 85, .38);
}

.cc-chatcta__sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: .9;
}

/* ============================================================
   10. 料金の値引き表現
   ============================================================ */
.cc-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 26px 0 0;
  font-family: var(--cc-font-en);
}

.cc-price--center {
  align-items: center;
  text-align: center;
}

.cc-price > * {
  margin: 0;
}

.cc-price__before {
  font-size: 15px;
  color: var(--cc-text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--cc-danger);
  text-decoration-thickness: 2px;
}

.cc-price__now {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cc-v-neon-a);
}

.cc-price__now small,
.cc-price__now .cc-price__unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-text-muted);
  letter-spacing: 0;
}

.cc-price__note {
  margin: 6px 0 0 !important;
  font-family: inherit;
  font-size: 12px;
  color: var(--cc-text-muted);
}

/* ============================================================
   11. 実績アカウントの行（フォロワー推移など）
   ============================================================ */
.cc-account {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background: var(--cc-surface);
}

.cc-account + .cc-account {
  margin-top: 12px;
}

.cc-account__icon {
  width: 64px;
  height: 64px;
  margin: 0;
  flex: none;
}

.cc-account__icon,
.cc-account__icon img {
  border-radius: 50%;
  object-fit: cover;
}

.cc-account__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.cc-account__name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.cc-account__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--cc-text-muted);
}

.cc-account__result {
  text-align: right;
  font-family: var(--cc-font-en);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(115deg, var(--cc-v-neon-a), var(--cc-v-neon-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

@media screen and (max-width: 600px) {
  .cc-account {
    grid-template-columns: 48px minmax(0, 1fr);
    row-gap: 10px;
  }
  .cc-account__icon { width: 48px; height: 48px; }
  .cc-account__result {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* ============================================================
   12. レスポンシブ
   ============================================================ */
@media screen and (max-width: 1023px) {
  .cc-vgrid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-vgrid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media screen and (max-width: 767px) {
  .cc-vgrid,
  .cc-vgrid--3,
  .cc-vgrid--4,
  .cc-vgrid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cc-vgrid--stagger > *:nth-child(even) { transform: none; }
  .cc-vcard__title { font-size: 13px; }
  .cc-chatcta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-ticker--running .cc-ticker__track { animation: none; }
  .cc-vcard,
  .cc-vcard__media img,
  .cc-chatcta { transition: none; }
}

/* ============================================================
   13. コアブロック（Gutenberg）ブリッジ
   ブロックパターンはコアブロックで構成しているため、
   レイアウト用マージンを打ち消し、ボタンをチャットCTA化できるようにする。
   ============================================================ */
.cc-vgrid > *,
.cc-bignums > *,
.cc-checklist > *,
.cc-ba > *,
.cc-tags > *,
.cc-phones > * {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.cc-vcard > figure,
.cc-phone > figure,
.cc-bignum > p,
.cc-ba__item > p {
  margin: 0;
}

/* チャットアプリ風CTA（core/button に .cc-btn-wrap--chat を付けた場合） */
.cc-btn-wrap--chat .wp-block-button__link {
  min-height: 66px;
  padding: 16px 40px;
  border: 0;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-v-chat);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(6, 199, 85, .3);
}

.cc-btn-wrap--chat .wp-block-button__link:hover {
  background: var(--cc-v-chat-dark);
  color: #fff;
  box-shadow: 0 18px 40px rgba(6, 199, 85, .38);
}

/* 縦型カードのタイトルはコアの見出しブロックでも成立させる */
.cc-vcard .wp-block-heading.cc-vcard__title {
  color: #fff;
}

/* 実績数値のカウントアップ用スパン */
.cc-bignum__value[data-cc-count] {
  display: block;
}
