/* =========================================================
   フローティングバナー（参考LPデザイン適用版）
   ========================================================= */

/* ▼ ベーススタイル */
.cdt_wrapper {
    background: #00C853; /* 一般申し込みボタンと同じ緑色に変更 */
    font-weight: bold;
    text-align: center;
    line-height: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 99999;
    bottom: 0;
    left: 0; /* 追加: 左端固定 */
    width: 100%;
    letter-spacing: 0;
    
    /* アニメーション設定（参考LPの記述） */
    transition: opacity 1.0s ease, visibility 1.0s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 非表示用クラス（JSで付与） */
.cdt_wrapper.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.cdt_wrapper small {
    padding: 0 .4em;
    color: #fff;
}

.cdt {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cdt_txt {
    display: inline-block;
    margin-right: .6em;
    line-height: 1.2;
}

.cdt_txt span {
    color: #fff;
}

.cdt_num {
    background-color: #fff;
    color: #00C853; /* 文字色も緑に合わせる */
    line-height: 1;
    padding: .3em .15em;
    border-radius: 4px; /* 角丸を少し追加 */
}

.cdt_app {
    background: #fff;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 900;
    margin-left: 20px;
    color: #00C853; /* 文字色も緑に合わせる */
    display: block;
    text-align: center;
}

/* ▼ PC用設定 (768px以上) */
@media screen and (min-width: 768px) {
    /* フッターがバナーに隠れないように余白確保 */
    footer {
        margin-bottom: 90px;
    }
    .cdt_wrapper {
        font-size: 1.8rem;
        padding: 16px 0;
    }
    .cdt_wrapper small {
        font-size: 2.6rem;
        padding: 0 .4em;
    }
    .cdt_date {
        font-size: 2.6rem;
    }
    .cdt_date small {
        font-size: 2rem;
    }
    .cdt_txt {
        font-size: .6em; /* 参考LPのまま */
        margin-right: 25px;
    }
    .cdt_txt span {
        font-size: 2rem;
        line-height: 1.2;
        display: block;
    }
    .cdt_app {
        width: 664px; /* 参考LPの幅 */
        display: block;
        font-size: 3.2rem;
        height: 60px;
        line-height: 60px;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
    }
}

/* ▼ スマホ・タブレット用設定 (767px以下) */
@media screen and (min-width: 320px) and (max-width: 767px) {
    .cdt_wrapper {
        padding: 0.4em 1% 0.3em;
        line-height: 1.2;
    }
    .cdt_wrapper p {
        margin-bottom: 0;
    }
    .cdt {
        width: 100%;
        justify-content: center;
    }
    .cdt_txt {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    .cdt_num {
        font-size: 2.2rem;
        padding: .2em .15em;
    }
    .cdt_date {
        margin-bottom: 8px;
    }
    .cdt_app {
        margin-left: 0;
        padding: 4% 0 !important;
        width: 58% !important;
        font-size: 1.6rem !important;
        height: 33px !important;
        line-height: 4px !important; /* 参考LPの記述通り */
        text-align: center;
        margin-left: 8px;
        box-sizing: border-box;
    }
    .cdt_txt span {
        font-size: 1.2rem;
    }
    .cdt_date small {
        font-size: 1.2rem;
    }
    footer {
        margin-bottom: 11% !important;
    }
    .kikan {
        display: block;
    }
}

/* ▼ 縦向きタブレット等の微調整 */
@media only screen and (max-width: 768px) and (orientation: portrait) {
    .cdt_app {
        width: 664px;
        display: block;
        font-size: 2.4rem;
        height: 45px;
        line-height: 45px;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
    }
    footer {
        margin-bottom: 72px;
    }
}

/* ▼ 極小画面スマホ (320px以下) */
@media only screen and (max-width: 320px) and (orientation:portrait) {
    footer {
        margin-bottom: 14% !important;
    }
    .cdt_app {
        width: 24% !important;
        font-size: 1.2rem !important;
        height: 33px;
        line-height: 9px !important;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
    }
    .cdt_txt {
        font-size: 1.2rem;
    }
}