/* =====================================================================
   TechSuite 共通 CTA ページ（contact.php / meeting.php）用スタイル
   全サービス共通・完全自己完結（DSフル/lp-sharedに依存しない）。
   色は各サイトの theme.css（--accent 等）、構造はこのファイルで統一。
   ===================================================================== */
:root {
  --fg: #15212f;
  --fg-muted: #4b5663;
  --fg-dim: #8a92a0;
  --bg: #ffffff;
  --bg-2: #f7f7f9;
  --border: #e7e9ee;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', system-ui, sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-en: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --wrap: 1240px;
  --gutter: 32px;
  --radius: 6px;
  --text-xs: 13px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-jp); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- CTA page content ---- */
.cta-page { max-width: var(--wrap); margin: 0 auto; padding: clamp(20px, 2.6vw, 32px) var(--gutter) clamp(48px, 6vw, 80px); }
.cta-page .eyebrow { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #864B98); font-weight: 600; margin-bottom: 12px; }
.cta-page h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; color: var(--fg); margin: 0; }
.cta-page .lead { margin: 12px 0 0; max-width: 62ch; color: var(--fg-muted); font-family: var(--font-jp); line-height: 1.9; font-size: 15px; }
.cta-embed-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(12px, 1.8vw, 20px); }
/* モバイルは1カラムに積む。そのとき **フォーム/カレンダーを本文の途中に差し込む**:
   「この資料でわかること（＝得られること）」の直後、「導入企業ロゴ」の手前。
   PCの2カラムでは .cta-embed-box は .cta-detail の兄弟なので、そのままでは
   本文の途中に入れられない。.cta-detail を display:contents にして子を
   グリッドの直接の項目に上げ、order で並べ替える（HTMLは触らない）。
   gap は 0 にして、各ブロックが元から持っている margin に任せる。 */
@media (max-width: 860px) {
  .cta-embed-grid { grid-template-columns: 1fr; gap: 0; }
  .cta-detail { display: contents; }
  .cta-embed-box { order: 1; margin: 28px 0 0; }
  .cta-trust { order: 2; }   /* 導入企業ロゴはフォームより後ろ */
}
.cta-detail h2 { font-family: var(--font-serif); font-weight: 600; font-size: 22px; color: var(--fg); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cta-detail ul { list-style: none; padding: 0; margin: 0; }
.cta-detail li { position: relative; padding-left: 24px; margin-bottom: 12px; font-family: var(--font-jp); color: var(--fg); line-height: 1.7; }
.cta-detail li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 2px; background: var(--accent, #864B98); }
.cta-detail .note { margin: 20px 0 0; padding: 14px 16px; background: var(--accent-soft, var(--bg-2)); border-radius: var(--radius); font-family: var(--font-jp); font-size: 13px; line-height: 1.8; color: var(--fg-muted); }
.cta-embed-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); min-height: 420px; position: sticky; top: 90px; }
.meetings-iframe-container { min-height: 680px; }
@media (max-width: 860px) { .cta-embed-box { position: static; top: auto; } }

/* フォーム／カレンダーの上に置く一行の見出し（「こちらのフォームにご記入ください」） */
.cta-embed-lead { margin: 0 0 16px; font-family: var(--font-jp); font-weight: 600; font-size: 15px; color: var(--fg); }

/* 装飾つきの埋め込みボックス（サービス任意）。中の色は theme.css のブランドトークンから
   作るので、どのサービスで使っても濃さが揃う。使う側は class を2つ並べる:
   <div class="cta-embed-box cta-embed-box--tinted"> */
.cta-embed-box--tinted { background: var(--accent-soft); border-color: #e9e2f0; border-color: color-mix(in srgb, var(--accent) 14%, #fff); box-shadow: 0 10px 30px rgba(30, 16, 60, .06); padding: clamp(16px, 2.2vw, 22px); overflow: hidden; }
.cta-embed-box--tinted::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--accent)); }
.cta-embed-box--tinted .cta-embed-lead { color: var(--accent-2); }
/* フォーム本体を白いカードとして浮かせる（--tinted のときだけ。素の白箱では二重になるので当てない） */
.cta-embed-box--tinted .cta-embed-form { background: #fff; border-radius: var(--radius); padding: clamp(14px, 1.8vw, 20px); box-shadow: 0 1px 3px rgba(30, 16, 60, .05); }
/* 素の .cta-embed-box は sticky＝配置済みだが、860px以下で static になるため ::before の基準を残す */
@media (max-width: 860px) { .cta-embed-box--tinted { position: relative; } }

/* ---- 資料アイキャッチ・中身プレビュー（本文側＝cta-detail 内・資料ダウンロード=contact.php限定） ---- */
.cta-eyecatch { margin: 0 0 24px; }
.cta-eyecatch img { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--border); }
.cta-preview { margin-top: 24px; margin-bottom: 28px; }
.cta-preview_pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.cta-preview_pages li { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; padding-left: 0; }
.cta-preview_pages li::before { content: none; }
.cta-preview_pages img { display: block; width: 100%; }
@media (max-width: 480px) { .cta-preview_pages { grid-template-columns: repeat(2, 1fr); } }

/* ---- 導入企業ロゴ（本文側＝cta-detail 内・独立セクション。管理台帳は guidelines/registry/logos.yml） ---- */
.cta-trust { margin-top: 24px; margin-bottom: 28px; }
.cta-trust_logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 16px; list-style: none; padding: 0; margin: 0; }
.cta-trust_logos li { display: flex; align-items: center; justify-content: center; height: 44px; padding-left: 0; }
.cta-trust_logos li::before { content: none; }
.cta-trust_logos img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 640px) { .cta-trust_logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .cta-trust_logos { grid-template-columns: repeat(3, 1fr); } }

/* ---- サンクスページ（送信後・thanks / contact-thanks / meeting-thanks）----
   contact/meeting が2カラムなのに対し、こちらは1カラム中央。
   全サービス共通の構造で、色は各サイトの theme.css が決める。
   マークアップ: <main class="cta-thanks"> .eyebrow + h1 + .lead(p…) + .cta-actions(a.btn…) */
.cta-thanks { max-width: 760px; margin: 0 auto; padding: clamp(64px, 8vw, 104px) var(--gutter); text-align: center; }
.cta-thanks .eyebrow { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #864B98); font-weight: 600; margin-bottom: 14px; }
.cta-thanks h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(26px, 4vw, 40px); line-height: 1.3; color: var(--fg); margin: 0; }
.cta-thanks .lead { margin: 24px auto 0; max-width: 60ch; text-align: left; color: var(--fg-muted); font-family: var(--font-jp); line-height: 2; font-size: 15px; }
.cta-thanks .lead p { margin: 0 0 16px; }
.cta-thanks .lead p:last-child { margin-bottom: 0; }
.cta-thanks .lead ul { margin: 0 0 16px; padding: 0; list-style: none; }
.cta-thanks .lead li { position: relative; padding-left: 24px; line-height: 1.9; }
.cta-thanks .lead li::before { content: ""; position: absolute; left: 0; top: .85em; width: 12px; height: 2px; background: var(--accent, #864B98); }

/* 本文用ボタン。共通DS(techsuite-ds.css)は本文全体に効くため読み込まず、ここで自己完結させる
   （ヘッダー内のボタンは header.css の .hd .btn が担当する）。 */
.cta-actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: 999px; font-family: var(--font-jp); font-weight: 700; font-size: 15px; letter-spacing: .02em; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s cubic-bezier(.4,0,.2,1), border-color .18s, color .18s; }
.cta-actions .btn--cv { color: #fff; background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 62%); box-shadow: var(--shadow-cta); }
.cta-actions .btn--cv:hover { transform: translateY(-2px); box-shadow: 0 16px 32px var(--accent-glow); }
.cta-actions .btn--cv::after { content: "→"; font-weight: 700; line-height: 1; transition: transform .18s cubic-bezier(.4,0,.2,1); }
.cta-actions .btn--cv:hover::after { transform: translateX(3px); }
.cta-actions .btn--ghost { background: #fff; color: var(--fg); border-color: #c8d5df; }
.cta-actions .btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* ---- Footer ---- */
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; flex: none; }
.brand-logo img { display: block; width: auto; height: 30px; }
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 24px; }
.footer-grid { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.footer-copy { font-family: var(--font-jp); font-size: var(--text-xs); color: var(--fg-muted); margin-top: 18px; line-height: 1.85; max-width: 340px; }
.footer-cols { display: grid; grid-template-columns: repeat(1, 1fr); gap: 32px; }
.footer-h { font-family: var(--font-en); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg); margin-bottom: 16px; }
.footer-cols a { display: block; font-family: var(--font-jp); font-size: var(--text-xs); color: var(--fg-muted); text-decoration: none; padding: 5px 0; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--wrap); margin: 40px auto 0; padding: 18px var(--gutter) 0; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); text-align: center; }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
