/* --- カラー・共通変数 -------------------------------------------------
   ★フルノブランドカラーに合わせる場合はこの :root の値だけ変更すればよい。
   既定値は提案書モックと同じ配色（資料DL=ブルーグレー / 相談=ピンク）。 */
:root {
  --fcta-dl:        #6b7db3;   /* 資料DL系アクセント */
  --fcta-dl-bg:     #f0f4fa;   /* 資料DLカード背景 */
  --fcta-contact:   #d94f6b;   /* 一般問合せ系アクセント */
  --fcta-contact-bg:#fef2f4;   /* 一般問合せカード背景 */
  --fcta-text:      #3a3a3a;
  --fcta-sub:       #6a6a6a;
  --fcta-radius:    8px;
  --fcta-shadow:    0 2px 8px rgba(0,0,0,.07);
}

/* CTAブロック共通：サイト側フォントを継承（独自指定したい場合は font-family を変更） */
.fcta-2col, .fcta-sidebar, .fcta-sp-bottom {
  font-family: inherit;
  box-sizing: border-box;
}
.fcta-2col *, .fcta-sidebar *, .fcta-sp-bottom * { box-sizing: border-box; }

/* --- CTA① / ③ 共通：2列CTA（資料DL ＋ 一般問合せ） ------------------- */
.fcta-2col {
  display: flex;
  gap: 14px;
  margin: 26px 0;
}
.fcta-card {
  flex: 1;
  padding: 22px 18px 20px;
  border-radius: var(--fcta-radius);
  text-align: center;
  box-shadow: var(--fcta-shadow);
  display: flex;
  flex-direction: column;
}
.fcta-card--dl      { background: var(--fcta-dl-bg);      border: 2px solid var(--fcta-dl); }
.fcta-card--contact { background: var(--fcta-contact-bg); border: 2px solid var(--fcta-contact); }

.fcta-label {
  display: inline-block;
  align-self: center;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  margin-bottom: 10px;
}
.fcta-card--dl      .fcta-label { background: var(--fcta-dl); }
.fcta-card--contact .fcta-label { background: var(--fcta-contact); }

.fcta-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--fcta-text);
  margin-bottom: 8px;
}
.fcta-sub {
  font-size: 12px;
  line-height: 1.5;
  color: var(--fcta-sub);
  margin: 0 0 14px;
}
/* サブコピー無し（資料DL側）でもボタン位置を揃える */
.fcta-card .fcta-spacer { flex: 1 1 auto; }

.fcta-btn {
  display: inline-block;
  align-self: center;
  padding: 11px 26px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  transition: opacity .15s ease;
}
.fcta-btn:hover { opacity: .85; }
.fcta-btn--dl      { background: var(--fcta-dl); }
.fcta-btn--contact { background: var(--fcta-contact); }

/* --- CTA② PC：サイドバー追従 ----------------------------------------
   既定は position:fixed（右側に浮かせる）。
   ★コラムに既存サイドバー枠がある場合は、その枠内に置いて
     position:sticky; top:90px; に変更するとレイアウトに馴染む。 */
.fcta-sidebar {
  position: fixed;
  right: 24px;
  top: 160px;
  width: 224px;
  padding: 18px 16px;
  background: #fff;
  border: 2px solid var(--fcta-contact);
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0,0,0,.13);
  text-align: center;
  z-index: 900;
}
.fcta-sidebar .fcta-label { background: var(--fcta-contact); margin-bottom: 8px; }
.fcta-sidebar .fcta-title { font-size: 15px; margin-bottom: 6px; }
.fcta-sidebar .fcta-sub   { font-size: 11px; margin-bottom: 12px; }
.fcta-sidebar .fcta-btn   { width: 100%; padding: 10px 0; font-size: 13px; }

/* --- CTA② SP：下部追従バー（2列＋閉じる） --------------------------- */
.fcta-sp-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding: 9px 10px;
  background: rgba(255,255,255,.98);
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 12px rgba(0,0,0,.09);
  z-index: 950;
}
.fcta-sp-bottom .fcta-btn {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  font-size: 13px;
}
.fcta-sp-close {
  position: absolute;
  top: -26px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50% 50% 0 0;
  background: rgba(255,255,255,.98);
  border: 1px solid #ddd;
  border-bottom: none;
  color: #888;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

/* --- レスポンシブ：PC↔SP の出し分け ---------------------------------- */
/* PC（769px以上）：サイドバー表示／SP下部バー非表示 */
@media (min-width: 769px) {
  .fcta-sp-bottom { display: none; }
}
/* SP（768px以下）：サイドバー非表示／下部バー表示 */
@media (max-width: 768px) {
  .fcta-sidebar { display: none; }
  .fcta-2col    { gap: 8px; margin: 20px 0; }
  .fcta-card    { padding: 16px 10px 14px; }
  .fcta-title   { font-size: 13px; }
  .fcta-sub     { font-size: 11px; }
  .fcta-btn     { padding: 10px 14px; font-size: 12px; }
  /* ★2列が窮屈なら下行を有効化して縦積みにできる：
  .fcta-2col  { flex-direction: column; } */
  body.fcta-sp-padded { padding-bottom: 64px; } /* 下部バーと本文の重なり回避 */
}

/* アクセシビリティ：モーション抑制設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  .fcta-btn { transition: none; }
}

/* ===== 以下はデモ表示用スタイル（CMS移植時は不要・コピーしない） ===== */
.demo-wrap { max-width: 760px; margin: 0 auto; padding: 30px 20px 80px; color:#333;
  font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; line-height: 1.9; }
.demo-wrap h1 { font-size: 24px; line-height: 1.5; }
.demo-meta { color:#999; font-size: 13px; margin-bottom: 4px; }
.demo-body p { margin: 16px 0; }
.demo-note { background:#fffbe9; border-left:4px solid #e8a838; padding:10px 14px;
  font-size:13px; color:#7a6320; margin: 24px 0; }
