/* --------------------
製品カルーセル
-------------------- */
.product-carousel{
    margin: 0 auto;
    width: 70%;
}

.product-carousel .product_main {
    position: relative;
    padding: 0;
    text-align: center;
    margin: 0 auto 1em;
    max-width: 100%;
}

.product_main::before{
    content: "";
    display: block;
    padding-top: 50%;/*product_main画像比率*/
}

.product-carousel .product_main img {
    top: 0;
    left: 0;
    position: absolute;
    max-width: 100%;
    width: 100%;
}

.product-carousel .product_navi {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-carousel .product_navi i {
    flex-basis: 5%;
    text-align: center;
}

.product-carousel .product_detail {
    flex-basis: 90%;
    flex-grow: 2;
    overflow: hidden;
}

.product-carousel .product_detail ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap!important;
    margin: auto 0!important;
}

.product-carousel .product_detail li {
    display: block;
    margin: auto 5px;
    padding:3px;
    flex-shrink: 0;
    line-height: 0;
    box-sizing: border-box;
    text-align: center;
}

.product-carousel .product_main img:hover,
.product-carousel i:hover,
.product-carousel .product_detail li:hover,
.product-carousel .product_popup p.close_icon:hover {
    opacity: 0.7;
    cursor: pointer;
}

.product-carousel .product_detail img {
    width: 100%;
    max-width: 250px;
    padding: 0!important;
}

/* アイコン修正 */
.fa-angle-right::before{
    content: "＞";
    font-size: 30px;
    font-weight: bold;
    font-style: normal!important;
}

.fa-angle-left::before {
    content: "＜";
    font-size: 30px;
    font-weight: bold;
    font-style: normal!important;
}

.icon_white{
    color: #ffffff;
    text-shadow: 0 0 8px #000000;
}

.icon_black{
    color: #000000;
    text-shadow: 0 0 8px #ffffff;
}

/* 製品モーダル */
.product-carousel .product_popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.product-carousel .product_popup .product_back {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.product-carousel .product_popup .product_content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 90%;
    max-width: 1280px;
    max-height: 450px;
    background-color: #fff;
    z-index: 10001;
}

.product-carousel .product_popup .product_content::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.product-carousel .product_popup iframe,
.product-carousel .product_popup img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    max-width: 100%;
    padding: 1em 3em;
    display: none;
}

.product-carousel .product_popup iframe {
    width: 100%;
    height: 100%;
}

.product-carousel .product_popup p.close_icon {
    position: absolute;
    top: 28px;
    right: 10px;
    font-size: 50px;
    line-height: 0;
}

.product-carousel .product_popup i:first-of-type {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate3d(0, -50%, 0);
    margin-left: 0.3em;
}

.product-carousel .product_popup i:last-of-type {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate3d(0, -50%, 0);
    margin-right: 0.3em;
}

.product-carousel .product_popup .active {
    display: block;
    max-height: 100%;
}

.noclick {
    pointer-events: none;
}

/* スマホ表示  */
@media screen and (max-width:768px) {
    .product-carousel{
        width: 100%
    }

    .product-carousel .product_main {
        text-align: center;
        margin-left:0;
    }

    .product-carousel .product_main img {
        max-height: 350px;
        width: auto;
    }

    .product-carousel .product_detail li {
        border:none !important;
    }

    .fa-angle-right::before{
        font-size: 20px;
    }

    .fa-angle-left::before {
        font-size: 20px;
    }

    .product-carousel .product_popup p.close_icon {
      top: 15px;
      right: 7px;
      font-size: 30px;
    }

    .product-carousel .product_popup .product_content {
      width: 100%;
    }
}
