/**
 * ==========================================================================
 * 相続サイト 共通CTAコンポーネント
 * 最終更新日: 2026/01/27
 * 追記者: 寿ラボ：上長
 * --------------------------------------------------------------------------
 * 改修内容: 
 * 1. ホバー挙動の統一: 全ボタンを「浮き上がり（translateY -2px）」に統一
 * 2. 色の変化の反転: 最初を濃く、ホバー時に明るく（Dark -> Light）
 * 3. 視認性確保: TCDテーマのスタイル干渉を完全に排除
 * ==========================================================================
 */

/* 1. ベース構造：すべてのCTA共通の枠組み */
.c-cta {
    padding: 60px 20px;
    margin: 40px auto;
    text-align: center;
    border-radius: 8px;
    box-sizing: border-box;
    max-width: 1000px;
    background-color: #f4f7f4; /* 悩み解決パターン（薄緑背景） */
}

/* 2. 要素デザイン */

/* タイトル */
.c-cta__title { 
    font-size: 1.6rem; 
    font-weight: bold; 
    margin-bottom: 25px; 
    color: #333 !important;
    line-height: 1.4;
}

/* リスト：TCDテーマのドット記号やインデントを強制排除 */
.c-cta__list { 
    display: inline-block; 
    text-align: left; 
    margin: 0 auto 25px; 
    padding: 0 !important;
    list-style: none !important;
}

.c-cta__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 6px; 
    font-size: 1.05rem;
    color: #333 !important;
    list-style-type: none !important;
    line-height: 1.4;
}

/* チェックマーク：濃い方の赤をアクセントに使用 */
.c-cta__list li::before { 
    content: '✔'; 
    position: absolute;
    left: 0;
    color: #A82323; 
    font-weight: bold; 
}

/* リード文 */
.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;
    /* 初期状態：濃い赤 (#A82323) */
    background-color: #A82323 !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(168, 35, 35, 0.2);
}

.c-cta__btn-txt {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1.3rem;
    display: block;
}

/* ホバー：浮き上がり、かつ明るい赤 (#CC2929) に変化 */
.c-cta__btn:hover {
    background-color: #CC2929 !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;
}

/* スマホ対応：画面幅に合わせたフォント・余白調整 */
@media screen and (max-width: 767px) {
    .c-cta { padding: 40px 15px; }
    .c-cta__title { font-size: 1.25rem; }
    .c-cta__list li { font-size: 1rem; }
    .c-cta__btn { padding: 14px 30px; width: 90%; }
    .c-cta__btn-txt { font-size: 1.1rem; }
}

/* --- テストページ専用：コピーツール装飾 --- */
.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;
    /* 初期状態：濃い黒 (#1a1a1a) */
    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;
}

/* コピーツールボタン：浮き上がり、かつ明るいグレー (#555) に変化 */
.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;
}