/**
 * ==========================================================================
 * 相続サイト 共通CTAコンポーネント
 * 最終更新日: 2026/02/23
 * 追記者: 寿ラボ：上長
 * --------------------------------------------------------------------------
 * 改修内容: 
 * 1. ホバー挙動の統一: 全ボタンを「浮き上がり（translateY -2px）」に統一
 * 2. 色の変化の反転: 最初を濃く、ホバー時に明るく（Dark -> Light）
 * 3. 視認性確保: TCDテーマのスタイル干渉を完全に排除
 * 4. margin余白の修正（40px → 0）
 * 5. コンパクト版（枠なし）追加
 * 6. コンパクト版・枠あり（文言＋ボタン）追加
 * 7. ボタン色統一（通常: #cc2929 / ホバー: #e03d3d）
 * 8. チェックリストをカード型タグ（上3+下2グリッド）に変更
 * ==========================================================================
 */

/* 1. ベース構造：すべてのCTA共通の枠組み */
.c-cta {
    padding: 50px 40px;
    margin: 0 auto;
    text-align: center;
    border-radius: 8px;
    box-sizing: border-box;
    max-width: 1000px;
    background-color: #f4f7f4;
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 12px 12px;
}

/* TCDテーマの余白干渉を打ち消し */
#content_builder .c-cta {
    padding-bottom: 60px;
    margin-bottom: 0;
}

#content_builder section.c-cta:last-child {
    padding-bottom: 60px;
}

/* 2. 要素デザイン */

/* タイトル */
.c-cta__title { 
    font-size: 1.6rem; 
    font-weight: bold; 
    margin-bottom: 25px; 
    color: #333 !important;
    line-height: 1.4;
}

/* リスト：カード型タグ（上段3列 + 下段2列） */
.c-cta__list { 
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    text-align: left; 
    margin: 0 auto 28px; 
    padding: 0 !important;
    list-style: none !important;
    max-width: 860px;
}

.c-cta__list li:nth-child(1) { grid-column: 1 / 3; }
.c-cta__list li:nth-child(2) { grid-column: 3 / 5; }
.c-cta__list li:nth-child(3) { grid-column: 5 / 7; }
.c-cta__list li:nth-child(4) { grid-column: 1 / 4; }
.c-cta__list li:nth-child(5) { grid-column: 4 / 7; }

.c-cta__list li {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.93rem;
    color: #333 !important;
    list-style-type: none !important;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

/* チェックマーク（赤丸アイコン） */
.c-cta__list li::before { 
    content: '\2714\FE0E'; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    width: 20px;
    height: 20px;
    background: #cc2929;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

/* リード文 */
.c-cta__lead {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #333 !important;
    font-weight: bold;
}

/* 3. ボタン：色の変化を反転（Dark -> Light） */

.c-cta__btn-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 相談予約ボタン */
.c-cta__btn {
    display: inline-block;
    background-color: #cc2929 !important; 
    padding: 16px 60px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    box-shadow: 0 4px 15px rgba(204, 41, 41, 0.2);
}

.c-cta__btn-txt {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1.3rem;
    display: block;
}

/* ホバー：浮き上がり、かつ明るい赤に変化 */
.c-cta__btn:hover {
    background-color: #e03d3d !important; 
    transform: translateY(-2px) !important; 
    color: #ffffff !important;
    opacity: 1 !important;
}

.c-cta__note {
    display: block;
    font-size: 0.9rem;
    color: #666 !important;
    margin-top: 10px;
}

/* 4. バリエーション */

/* コンパクト版：ボタン＋補足のみ（背景・枠なし） */
.c-cta--compact {
    padding: 20px 0;
    background-color: transparent;
    border-radius: 0;
    max-width: none;
}

#content_builder .c-cta--compact {
    padding-bottom: 20px;
}

/* コンパクト版・枠あり：文言＋ボタン */
.c-cta--compact-box {
    padding: 40px 20px;
}

#content_builder .c-cta--compact-box {
    padding-bottom: 40px;
}

/* ボタン文言：PC/SP出し分け */
.c-cta__btn-sp { display: none; }

/* 5. スマホ対応 */
@media screen and (max-width: 767px) {
    .c-cta { padding: 40px 15px; }
    .c-cta__title { font-size: 1.25rem; }
    .c-cta__list li { font-size: 0.93rem; }
    .c-cta__list { grid-template-columns: 1fr; }
    .c-cta__list li:nth-child(n) { grid-column: auto; }
    .c-cta__btn { padding: 14px 30px; width: 90%; }
    .c-cta__btn-txt { font-size: 1.1rem; }
    .c-cta__btn-pc { display: none; }
    .c-cta__btn-sp { display: inline; }
    .c-cta--compact { padding: 15px 0; }
    .c-cta--compact-box { padding: 30px 15px; }
}

/* --- テストページ専用：コピーツール装飾 --- */
.c-copy-tool {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #ddd;
    text-align: left;
}
.c-copy-tool__inner {
    display: flex;
    gap: 10px;
}
.c-copy-tool input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.1rem;
    background: #fff;
    color: #333;
    border-radius: 4px;
}
.c-copy-tool__btn {
    padding: 0 25px;
    background: #1a1a1a !important; 
    color: #fff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.c-copy-tool__btn:hover { 
    background: #555 !important; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.c-copy-tool__msg {
    color: #007C47;
    font-weight: bold;
    display: none;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}
/* --- コピーツール SP対応追記（2026/02/23） --- */
@media screen and (max-width: 767px) {
    .c-copy-tool {
        padding: 16px;
    }
    .c-copy-tool__inner {
        flex-direction: column;
        gap: 8px;
    }
    .c-copy-tool input {
        width: 100%;
        font-size: 0.9rem;
    }
    .c-copy-tool__btn {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}