/* ========================================
   LIFE STYLE モーダル
======================================== */

.lifestyle_Wrap ul li {
    cursor: pointer;
    overflow: hidden;
}
.lifestyle_Wrap ul li img{
    transition: 1s;
}
.lifestyle_Wrap ul li:hover img{
    transform: scale(1.05);
}


/* モーダル背景 */
.lifestyle_modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease,
                visibility 0.3s ease;
}


/* 表示状態 */
.lifestyle_modal.active {
    opacity: 1;
    visibility: visible;
}


/* モーダル内部 */
.lifestyle_modal_inner {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
}


/* 画像 */
.lifestyle_modal_inner figure {
    margin: 0;
    text-align: center;
}

.lifestyle_modal_inner img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 85vh;
    margin: 0 auto;
    object-fit: contain;
}


/* 閉じるボタン */
.lifestyle_modal_close {
    position: absolute;
    top: -45px;
    right: 0;
    width: 35px;
    height: 35px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}


/* × */
.lifestyle_modal_close::before,
.lifestyle_modal_close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 2px;
    background: #fff;
}

.lifestyle_modal_close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lifestyle_modal_close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}