

/* 光るアニメーションの定義 */
@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 200%;
    }
}

/* 光るエフェクトスタイル */
.call-button,
.mail-button {
    position: relative;
    overflow: hidden;
    display: block;
}

.call-button::before,
.mail-button::before {
    content: '';
    position: absolute;
    top: -180px;
    left: -100%;
    width: 80px;
    height: 500px;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: 1;
}

/* フローティングバナー（SP用） */
@media screen and (max-width: 640px) {
    .sp-floating-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 10px;
        z-index: 1000;
    }

    .sp-floating-banner a {
        display: block;
        width: auto;
    }

    .sp-floating-banner img {
        display: block;
        height: auto;
        width: auto;
        max-height: 80px;
    }
}

@media (min-width: 641px) {
    .sp-floating-banner {
        display: none;
    }
}

/* タブレット用フローティングバナー */
@media screen and (min-width: 641px) and (max-width: 1024px) {
    .pc-floating-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.5);
        
        padding: 5px 0;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .banner-content {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 800px;
        margin: 0 auto;
    }

    .pc-floating-banner a {
        margin: 0 10px;
    }

    .pc-floating-banner img {
        height: 50px;
        width: auto;
    }

    body {
        padding-bottom: 130px;
    }

    .sp-floating-banner {
        display: none;
    }
}

/* PC用フローティングバナー */
@media screen and (min-width: 1025px) {
    .pc-floating-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.5);
        
        padding: 5px 0;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        width: 100%;
    }

    .banner-content {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .pc-floating-banner a {
        margin: 0 10px;
    }

    .pc-floating-banner img {
        height: 80px;
        width: auto;
    }

    body {
        padding-bottom: 30px;
    }

    .sp-floating-banner {
        display: none;
    }
    .call-button img,
    .mail-button img {
        transition: transform 0.2s ease;
    }

    .call-button:hover img,
    .mail-button:hover img {
        transform: scale(1.05);
    }
}


/*******************
 * CTAセクション共通スタイル
 *******************/
/* ボタン基本設定 */
.btn-shine {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.btn-shine img {
    width: 100%;
    height: auto;
    display: block;
}

/*******************
 * SP用スタイル
 *******************/
.cta-area--sp {
    width: 100%;
}

/* SP用背景 */
.cta-bg-sp {
    background-image: url('../images/sp-cta.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 15px;
}

/* SPボタンコンテナ */
.btn-container-sp {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 90%;
    margin: 0 auto;
}

/* SPタップエフェクト */
@media screen and (max-width: 767px) {
    .btn-shine:active img {
        opacity: 0.8;
        transition: opacity 0.2s ease;
    }
}

/*******************
 * PC用スタイル
 *******************/
 /* PC用CTA全体 */
.cta-area--pc {
    width: 100%;
}
/* PC用背景 */
.cta-bg-pc {
    background-image: url('../images/pc-cta.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%; 
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    
}


/* PCボタンコンテナ */
.btn-container-pc {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 60px 60px;
}

/* 左側の電話ボタン */
.btn-left {
    width: 40%;
    display: flex;
    align-items: center;
}

/* 右側のLINE・メールボタン */
.btn-right {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}
/* ボタン画像のサイズ調整 */
.btn-shine {
    position: relative; /* 光るエフェクトのために必要 */
    display: block;
    overflow: hidden; /* 光るエフェクトが親要素からはみ出ないように */
}

.btn-shine img {
    width: 100%;
    height: auto;
    display: block;
}


/* PCホバーエフェクト */
@media screen and (min-width: 768px) {
    /* 光るエフェクト */
    .btn-shine::before {
        content: '';
        position: absolute;
        top: -180px;
        left: -100%;
        width: 80px;
        height: 500px;
        background: rgba(255, 255, 255, 0.5);
        transform: rotate(45deg);
        transition: left 0.6s ease;
    }

    .btn-shine:hover::before {
        left: 200%;
    }

    /* ホバー時の拡大 */
    .btn-shine img {
        transition: transform 0.2s ease;
    }

    .btn-shine:hover img {
        transform: scale(1.03);
    }
}

/* 大画面対応 */
@media screen and (min-width: 1920px) {
    .cta-bg-pc {
        background-size:  100% 100%;
        height: 464px;
    }
}
