@charset "UTF-8";

/* ==================================================
   広告連携ページ (ad-integration.html) 専用スタイル
================================================== */

/* 1. 広告連携セクション全体 */
.ct-ad-integration-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #0f172a;
}

.ct-ad-integration-section .section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.ct-ad-integration-section > .section-container {
    max-width: 1080px;
}

/* ヘッダー周り */
.ad-page-header {
    text-align: center;
    margin-bottom: 45px;
}

.ad-prefix {
    display: block;
    font-size: 24px !important;
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 12px;
}

.target-highlight {
    background: var(--mark-yellow);
    padding: 0 6px;
}

.ad-main-question {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    color: #0f172a;
}



/* お悩みカードエリア全体 */
.ad-worry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 50px;
    align-items: stretch;
}


/* カード本体 */
.worry-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.worry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(27, 104, 147, 0.12);
}

/* 画像エリア：丸背景を削除して画像を大きく配置 */
.worry-card-image-wrap {
    width: 100%;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    background: none;
}

.worry-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.worry-title-num {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background-color: #e2e8f0;
    color: #1b6893;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 0 10px;
}

.worry-card-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.5;
    text-align: center;
}

.worry-card-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    text-align: left;
}

.worry-card-text .mark-blue {
    background: linear-gradient(transparent 65%, color-mix(in srgb, #bae6fd 48%, transparent) 65%);
    color: inherit;
    font-weight: inherit;
    padding: 0 1px;
}

/* 解決メッセージエリア全体 */
.ad-solve-box {
    text-align: center;
    margin: 60px 0 70px;
    position: relative;
}

/* メインのカプセルカード */
.resolve-main-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    padding: 20px 50px;
    border-radius: 60px;
    border: 2px solid #bae6fd;
    box-shadow:
        0 10px 30px -5px rgba(2, 132, 199, 0.12),
        0 4px 6px -2px rgba(0, 0, 0, 0.03);
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.resolve-main-wrap:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 32px -5px rgba(2, 132, 199, 0.18),
        0 4px 6px -2px rgba(0, 0, 0, 0.04);
}



/* ロゴ画像 */
.resolve-logo {
    height: 34px;
    width: auto;
    display: block;
}

/* 「が解決します！」テキスト */
.resolve-main {
    color: #0f172a;
    /* 締まりのある濃紺 */
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* 下向きの矢印（アニメーション付き） */
.ad-solve-box::after {
    content: "";
    display: block;
    margin: 20px auto 0;
    width: 14px;
    height: 14px;
    border-right: 3px solid #0284c7;
    border-bottom: 3px solid #0284c7;
    transform: rotate(45deg);
    animation: bounceArrowWhite 1.8s infinite;
}

/* ぴょこぴょこ動く矢印アニメーション */
@keyframes bounceArrowWhite {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(8px) rotate(45deg);
        opacity: 1;
    }
}

/* スマホ用調整 */
@media (max-width: 768px) {
    .ad-worry-grid {
        grid-template-columns: 1fr;
    }

    .resolve-main-wrap {
        padding: 16px 28px;
        gap: 8px;
        border-radius: 40px;
    }

    .resolve-logo {
        height: 26px;
    }

    .resolve-main {
        font-size: 1.3rem;
    }
}

/* 機能セクション全体 */
.ad-feature-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin-bottom: 50px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 40px;
}

.sub-title-tag {
    display: inline-block;
    background-color: #e6f0fa;
    color: #0066cc;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 28px;
    color: #222222;
    line-height: 1.4;
    margin-bottom: 16px;
    font-weight: bold;
}

.section-lead {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
}

.ad-feature-section > .fn-note {
    text-align: center;
    margin: -20px auto 28px;
    max-width: 720px;
}

/* 図解ボックス */
.ad-dynamic-fig {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.fig-label {
    text-align: center;
    font-size: 14px;
    color: #0066cc;
    font-weight: bold;
    margin-bottom: 24px;
}

.fig-title-sub {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
}

/* --- 仕組みと流れ（PC・共通） --- */
.fig-dynamic-flow-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

/* ユーザーごとの縦まとめグループ */
.user-flow-group {
    flex: 1;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* グループ内の小矢印 */
.flow-mini-arrow {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 10px 0;
}

/* ユーザーA/Bで矢印の色を変える場合 */
.user-a-group .flow-mini-arrow {
    color: #e11d48;
}

.user-b-group .flow-mini-arrow {
    color: #0d9488;
}

/* STEP1: 検索ボックスカード */
.fig-dynamic-flow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dynamic-user-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e1e8ed;
    text-align: center;
}

.dynamic-user-card.user-a {
    border: 2px solid #ff5c8a;
}

.dynamic-user-card.user-b {
    border: 2px solid #00b8a9;
}

.user-name {
    font-weight: bold;
    font-size: 14px;
    color: #333333;
    display: block;
    margin-bottom: 8px;
}

.search-box {
    display: inline-block;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 13px;
    color: #555555;
}

/* 矢印 */
.dynamic-arrow-down {
    text-align: center;
    font-size: 18px;
    color: #bbb;
    margin: 24px 0;
}

/* STEP2: 画像配置エリア（高さを揃える修正） */
.keyword-illust-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.illust-box {
    flex: 1;
    max-width: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illust-img {
    height: 220px;
    /* 高さを綺麗に揃える */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.illust-pc .illust-img {
    height: 200px !important;
    width: auto !important;
}

/* STEP3: 最終ボックス */
.dynamic-final-box {
    background-color: #1b6893;
    color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.6;
    font-size: 15px;
}

.final-highlight {
    font-size: 18px;
    color: #ffeb3b;
    font-weight: bold;
    display: inline-block;
    margin-top: 6px;
}

.fig-small-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px;
}

/* Before / After ステップ全体 */
.ct-ad-ba-container {
    margin-bottom: 20px;
}

.ba-main-title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.ba-sub-title {
    display: block;
    font-size: 12.5px;
    color: #64748b;
    font-weight: normal;
    margin-top: 6px;
    margin-bottom: 25px;
}

.ba-card-grid {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ba-card {
    flex: 1;
    border-radius: 8px;
    padding: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ba-card-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background-color: #64748b;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}

.ba-card-badge.gold {
    background-color: #337ab3;
}

/* 追加：カード内の画像表示エリア */
.ba-card-img-wrap {
    width: 100%;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 12px;
}

.ba-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ba-time-tag {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
}

.ba-time-tag.highlight {
    background-color: #337ab3;
    color: #ffffff;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

.ba-card.is-before {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ba-card.is-after {
    background-color: #ffffff;
    border: 2px solid #337ab3;
}

/* Before / After カード内のフォントサイズ調整 */

/* 1. リストテキスト（「1. 電話ログの抽出〜」「✅ タグ自動生成〜」） */
.ba-list,
.ba-gtm-mini-list {
    font-size: 14.5px !important;
    /* 12.5px ➔ 14.5px に拡大 */
    line-height: 1.8 !important;
    /* 行間を広げて詰まり感を解消 */
}

.ba-list li,
.ba-gtm-mini-list li {
    margin-bottom: 8px !important;
    /* 項目間の余白をちょっと広げる */
}

/* 2. カード内の小タイトル（「毎月 1〜2時間の手間」「Googleタグマネージャー連携ツールで簡単設定」） */
.ba-time-tag,
.ba-after-main strong {
    font-size: 16px !important;
    /* 14.5px ➔ 16px に拡大 */
}

/* 3. カード上部のバッジ（「従来の連携方法 (Before)」「CallTracker独自機能 (After)」） */
.ba-card-badge {
    font-size: 11.5px !important;
    padding: 3px 10px !important;
}

/* 4. カード下部の青/グレーの帯テキスト（「作業ミスや...」「毎月の作業時間 0分！」） */
.ba-status-text,
.ba-time-tag.highlight {
    font-size: 13px !important;
    padding: 8px 12px !important;
}

.ba-status-text.success {
    color: #ffffff;
    background-color: #337ab3;
}

.ba-arrow {
    font-size: 22px;
    color: #1b6893;
}

.ba-after-main strong {
    font-size: 14.5px;
    color: #1b6893;
}

.ba-after-main p {
    font-size: 12.5px;
    color: #475569;
    margin-top: 4px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* 新機能タグの装飾 */
.gtm-feature-tag {
    display: inline-block;
    background-color: #ff9800;
    /* 目立つオレンジ */
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 4px;
}

/* ミニ箇条書きの装飾（案2用） */
.ba-gtm-mini-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px;
    font-size: 11.5px;
    color: #334155;
    text-align: left;
}

.ba-gtm-mini-list li {
    margin-bottom: 3px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .ba-card-grid {
        flex-direction: column;
    }

    .ba-arrow {
        transform: rotate(90deg);
        margin: 6px 0;
    }

    .ba-card-img-wrap {
        height: 90px;
    }
}


/* ブリッジ（つなぎ部分）のスタイル */
.ad-bridge-wrap {
    text-align: center;
    margin: 40px 0 -25px;
    /* 下のCTAボックスに自然にかぶさる位置に調整 */
    position: relative;
    z-index: 2;
}

.ad-bridge-badge {
    display: inline-block;
    background-color: #fce072;
    /* アクセントの黄色 */
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ad-bridge-arrow {
    font-size: 20px;
    color: #1b6893;
    margin-top: 6px;
    animation: bounce 1.8s infinite;
}

/* 矢印をゆらゆら動かすアニメーション */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .ad-bridge-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
}

/* --------------------------------------------------
 * 広告連携資料 CTAエリア
 * -------------------------------------------------- */
.ad-cta-box {
    background: #ffffff;
    border: 2px solid #1b6893;
    border-radius: 12px;
    padding: 35px 30px;
    margin: 50px auto 20px;
    max-width: 900px;
    box-shadow: 0 8px 24px rgba(27, 104, 147, 0.08);
}

.ad-cta-container {
    display: flex;
    align-items: center;
    gap: 35px;
}

/* 左側：資料画像エリア */
.ad-cta-media {
    flex: 0 0 240px;
}

.ad-cta-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 右側：テキスト ＆ ボタンエリア */
.ad-cta-content {
    flex: 1;
}

.ad-cta-sub {
    display: inline-block;
    background-color: #e6f0fa;
    color: #1b6893;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.ad-cta-title {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 10px;
}

.ad-cta-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px;
}

.ad-cta-actions {
    display: flex;
    align-items: center;
}

.ad-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff9800;
    /* 目立つオレンジ */
    color: #ffffff !important;
    font-size: 15.5px;
    font-weight: bold;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    transition: all 0.2s ease;
}

.ad-cta-btn-primary:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

/* スマホ対応用CSS */
@media (max-width: 768px) {
    .ad-cta-box {
        padding: 24px 18px;
    }

    .ad-cta-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .ad-cta-media {
        flex: 0 0 auto;
        width: 180px;
        margin: 0 auto;
    }

    .ad-cta-title {
        font-size: 18px;
    }

    .ad-cta-btn-primary {
        width: 100%;
        font-size: 14px;
        padding: 13px 16px;
    }
}

/* 3. コンパクト・フッター */
.site-footer-compact {
    background-color: #1b6893;
    color: #ffffff;
    padding-top: 25px;
    font-size: 12px;
}

.footer-container-compact {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.footer-nav-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.footer-row-title {
    color: #fce072;
    font-weight: bold;
    font-size: 11.5px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.footer-inline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer-inline-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-inline-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.ext-icon {
    font-size: 9px;
    opacity: 0.7;
}

.footer-sub-row {
    margin-top: 15px;
    text-align: center;
}

.footer-inline-list.sub-list {
    justify-content: center;
    gap: 6px 16px;
}

.footer-inline-list.sub-list a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 10.5px;
}

.footer-copyright {
    background-color: #0b3c5d;
    padding: 10px 20px;
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .ad-prefix {
        font-size: 16px !important;
    }

    .ad-main-question {
        font-size: 22px;
    }

    .section-title {
        font-size: 22px;
    }

    /* ==========================================
       ▼ 仕組みと流れ（スマホ用スタイル修正版）
    ========================================== */
    .ad-dynamic-fig {
        padding: 20px 15px;
        /* スマホ用に余白を少し小さく */
    }

    /* 1列（縦並び）に強制変更 */
    .fig-dynamic-flow-grid,
    .keyword-illust-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        align-items: center !important;
        gap: 15px;
        width: 100%;
    }

    /* 画像ラッパー（親要素）の横幅をパーセントで直接制御 */
    .illust-box {
        max-width: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Aさん画像（SP側）の大きさを指定（★ここでパーセント変更できます） */
    .illust-box.illust-sp {
        width: 60% !important;
        /* お好みで 50%〜70% 等に調整してください */
        margin: 0 auto;
    }

    /* Bさん画像（PC側）の大きさを指定（★ここでパーセント変更できます） */
    .illust-box.illust-pc {
        width: 85% !important;
        /* お好みで 80%〜90% 等に調整してください */
        margin: 0 auto;
    }

    /* 画像自体のサイズ追従 */
    .illust-img {
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        /* scaleの干渉を解除 */
    }

    /* ========================================== */

    .ba-card-grid {
        flex-direction: column;
    }

    .ba-arrow {
        transform: rotate(90deg);
        margin: 6px 0;
    }

    .site-footer-compact .footer-nav-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}