﻿@charset "UTF-8";

.fs-l-page{
    position: relative;
}

#contsArea .topConts,
.fs-l-main {
    background: #fff;
    z-index: 1011;
}

.cntTtl {
    margin-bottom: 0;
}

.MainTitleSub {
    margin-bottom: 35px;
}

.flexBlock {
    display: flex;
    gap: 50px;
}

.flexItem {
    flex: 1;
    margin: 0 !important;
}

.contsBlk {
    max-width: 1200px;
    width: 100%;
}

.contsBlk.border {
    border-bottom: solid 1px #707070;
    padding-bottom: 40px;
}

.contsBlk:not(:last-child) {
    margin-bottom: 70px;
}

.magicGrid {
    margin-top: 40px;
}

.magicGrid .card {
    width: 23.5%;
    word-break: break-all;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card:first-child {
    z-index: 2;
}

.modal {
    position: absolute;
    width: 429px;
    border: solid 1px #2F2F2F;
    background-color: #fff;
    border-radius: 5px;
    z-index: 2;
}

.card .modal {
    top: 10%;
    left: 10%;
}

.modalSlideContainer {
    position: relative;
    padding: 0 35px;
}

.modalWrap {
    position: relative;
    padding: 35px 0;
}

.modalBlock {
    padding: 5px;
}

.modalClose {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    cursor: pointer;
}

.modalText {
    margin-top: 20px;
    text-align: left;
    font-size: 1.4rem;
    line-height: 1.5;
    padding: 0 35px;
}

.modalText p:not(:last-child) {
    margin-bottom: 40px;
}

.modalLink {
    margin-top: 40px;
    font-size: 1.2rem;
    padding: 0 35px;
}

.modalLink a {
    display: block;
    text-align: left;
    line-height: 1.2;
    padding: 10px 0 10px 40px;
    background-image: url(../img/insta-icon.png);
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: left center;
    letter-spacing: -0.02em;
}

.swiper-button {
    width: 0;
    height: 0;
}

.swiper-button-prev {
    border-top: 10px solid transparent;
    border-right: 12px solid black;
    border-bottom: 10px solid transparent;
}

.swiper-button-next {
    border-left: 12px solid black;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.swiper-button-wrap {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    padding: 30px;
}

@media screen and (max-width:1300px) {

    .contsBlk {
        width: 90%;
    }

}

@media screen and (min-width:961px) {

    .footerArea{
        margin-top: 500px;
    }

    .card:nth-child(4n) .modal,
    .card:nth-child(4n-1) .modal {
        top: 10%;
        left: auto;
        right: 10%;
    }

}

@media screen and (max-width:960px) {

    .magicGrid .card {
        width: 31.5%;
    }

}

@media screen and (min-width:641px) and (max-width:960px) {

    .card:nth-child(3n) .modal {
        top: 10%;
        left: auto;
        right: 10%;
    }

}

@media screen and (max-width:640px) {

    .flexBlock {
        flex-direction: column;
        gap: 20px;
    }

    .magicGrid .card {
        width: 46%;
    }

    .modal {
        position: fixed;
        z-index: 10000;
        width: 90%;
        height: 595px;
        margin: 0 5%;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        overflow: hidden;
        background-color: #fff;
    }

    .modalClose {
        top: 5px;
        right: 5px;
        width: 26px;
    }

    .swiper-button {
        width: 0;
        height: 0;
    }

    .modalWrap {
        position: relative;
        padding: 25px 0;
        height: 100%;
    }

    .modalSlideContainer {
        padding: 0 25px;
    }

    .modalImg img{
        max-height: 280px;
        object-fit: contain;
    }

    .modalText {
        margin-top: 15px;
        height: 180px;
        overflow: scroll;
    }

    .modalText p {
        display: block;
    }

    .modalText p:not(:last-child) {
        margin-bottom: 20px;
    }

    .modalLink {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        margin-top: 0;
        z-index: 5;
        padding: 5px 25px;
    }

}