.rd-cta {
  /* メインカラー（ボタンなど） */
  --rd-cta-color-main: #00c853;

  /* アクセントカラー（見出し） */
  --rd-cta-color-accent: #ffaf58;

  /* マーカー（下線）用カラー */
  --rd-cta-color-marker: #fcf69f;

  /* 横長丸専用(text) */
  --rd-cta-color-pill-bg: #ff9db0;
  --rd-cta-color-pill-text: #ffffff;
}

.rd-cta.is-sub {
  --rd-cta-color-main: #338df4;
  --rd-cta-color-accent: #ffaf58;
  --rd-cta-color-marker: #fcf69f;
  --rd-cta-color-pill-bg: #ff9db0;
  --rd-cta-color-pill-text: #ffffff;
}


/* ──────────────────────────────────
 * swell 広告タグ ブロック
 * ────────────────────────────────── */
.p-adBox {
	margin-block: 0.6em 1.8em;
}

.p-adBox__img {
	text-align: center;
}

/* ──────────────────────────────────
 * CTA 共通スタイル
 * ────────────────────────────────── */

/* コンテナ */
.rd-cta {
	margin: 2em 0;
}

/* 全体余白の基本 */
.rd-cta > * + * {
  margin-top: 1em;
}

/* ──────────────────────────────────
 * 見出し
 * ────────────────────────────────── */

.post_content h2.rd-cta__heading {
  font-size: 1.25em;
  line-height: 1.5;
  padding: 0.55em 0.7em;
  margin-block: 1.6em;
  margin-inline: 0;
  background: color-mix(in srgb, var(--rd-cta-color-accent) 7%, #ffffff);
  border-left: solid 5px var(--rd-cta-color-accent);
}

@media (max-width: 640px) {
  .post_content h2.rd-cta__heading {
    font-size: 1.05em;
  }
}

/* ──────────────────────────────────
 * 画像
   ────────────────────────────────── */
/* 画像ラッパー */
.rd-cta__image-wrap {
  text-align: center;
  margin-block: 1.4em;
  margin-inline: 0;
}

.rd-cta__image-link {
  display: inline-block;
}

/* 画像本体 */
.rd-cta__image {
  width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .rd-cta__image {
    max-height: 240px;
  }
}

/* ──────────────────────────────────
 * テキスト
 * ────────────────────────────────── */

.rd-cta__text {
  margin-block: 1.2em 0.6em;
  margin-inline: 0;
	font-size: 0.95em;
	line-height: 1.75;
	text-align: center;
}

.rd-cta__text p {
	margin: 0 0 10px;
}

.rd-cta__text p:last-child {
	margin-bottom: 0;
}

/* 上部テキスト */
.rd-cta__text.rd-cta__text--top {
  text-align: center;
}

.rd-cta__text.rd-cta__text--top span {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 700;
  background: linear-gradient(transparent 64%, var(--rd-cta-color-marker) 0%);
}

.rd-cta__text.rd-cta__text--top span::before {
  content: "↓";
}

/* 下部テキスト */
.rd-cta__text.rd-cta__text--bottom {
  text-align: center;
  font-size: 0.9em;
}

.rd-cta__text.rd-cta__text--bottom span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;

  padding: 0.45em 1em;
  border-radius: 999px; /* 横長丸 */

  background: var(--rd-cta-color-pill-bg);
  color: var(--rd-cta-color-pill-text);

  font-weight: 700;
  line-height: 1.4;
}

/* 左に矢印を付ける場合（任意） */
.rd-cta__text.rd-cta__text--bottom span::before {
  content: "▶";
  font-size: 0.9em;
  opacity: 0.9;
}

/* ──────────────────────────────────
 * CTA ボタン
 * ────────────────────────────────── */

.rd-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-block: 1.4em;
  margin-inline: 0;
}

/* ボタンリンクの基本形 */
.rd-cta-btn .rd-cta-btn__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  min-width: 220px;
  padding: 12px 26px;
  border: 1px solid var(--rd-cta-color-main);
  border-radius: 6px;
  background: var(--rd-cta-color-main);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  line-height: 1.45;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 641px) {
  .rd-cta-btn .rd-cta-btn__link {
    min-width: 260px;
    max-width: 600px;
    width: 100%;
  }
}

.rd-cta-btn__text {
  position: relative;
  z-index: 1;
}

/* ──────────────────────────────────
 * CTA 投稿リスト
 * ────────────────────────────────── */

.rd-cta-post-list {
  --rd-cta-card-gap: 12px;
  --rd-cta-img-ratio: 16 / 9;
  margin-block: 1.2em 1.6em;
  margin-inline: 0;
}

.rd-cta-post-list__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rd-cta-card-gap);
  margin: 0;
  padding: 0;
}

.rd-cta-post-card {
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.rd-cta-post-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.rd-cta-post-card__thumb {
  display: block;
  aspect-ratio: var(--rd-cta-img-ratio);
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.rd-cta-post-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: none !important;
}

.rd-cta-post-card__body {
  display: block;
  min-width: 0;
  padding: 9px 10px 10px;
}

.rd-cta-post-card__title {
  display: block;
  font-weight: 600;
  font-size: 0.8em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .rd-cta-post-list {
    --rd-cta-img-ratio: 1.6 / 1;
  }

  .rd-cta-post-list__grid {
    gap: 10px;
  }
  .rd-cta-post-card__body {
    padding: 8px 9px 9px;
  }

  .rd-cta-post-card__title {
    font-size: 0.74em;
    line-height: 1.1;
  }
}