/*
charevie-home----------------*/

.charevie-home {
    width: 100%;
    overflow: hidden;
}

.charevie-home-container {
    width: 100%;
}

.charevie-home-image-wrapper {
    width: 100%;
    height: calc(100svh - 110px);
    position: relative;
    overflow: hidden;
}

/* 共通の画像スタイル（Frame1.jpgとFrame2.pngで同じ） */
.charevie-home-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 枠を埋める（はみ出さないが、切れる） */
    object-position: top;
    /* 切れ方の基準 */
}

.charevie-home-overlay-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.charevie-home-overlay-button-link {
    display: inline-block;
    padding: 15px 40px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.charevie-home-overlay-button-link:hover {
    opacity: 0.8;
}

.charevie-top-button-wrapper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charevie-top-button {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

/* モバイル表示（768px以下） */
@media screen and (max-width: 768px) {

    /* ラッパー: モバイル端末の表示幅に合わせる */
    .charevie-home-image-wrapper {
        width: 100%;
        height: calc(100svh - 110px);
        margin: 0 auto;
        overflow: hidden;
        position: relative;
    }

    /* 画像: デスクトップ版同様、左右を切り落として中央部だけ表示 */
    .charevie-home-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
    }

    .charevie-home-overlay-button {
        bottom: 15px;
    }

    .charevie-home-overlay-button-link {
        padding: 12px 30px;
        font-size: 14px;
    }

    .charevie-home-overlay-button-link {
        padding: 12px 30px;
        font-size: 14px;
    }

    .charevie-top-button-wrapper {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .charevie-top-button-link {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .charevie-top-button {
        max-width: 60%;
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto;
    }

}
