@charset "utf-8";

/* ヘッダーカルーセル */

#carousel2 {
    height: 300px;
    width: 100%;
    position: relative;
    margin-bottom: -60px;
    overflow: hidden;
    z-index:200;
}

#carousel2:before {
    content: '';
    display: block;
    width: 100%;
    height: 240px;
    background: #fff;
    position: absolute;
    bottom: 60px;
    left: 0px;
    z-index: -1;
}

#carousel2:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #ddd;
    position: absolute;
    bottom: 60px;
    left: 0px;
    z-index: -1;
}

.single:not('.single-service_list') #carousel2 {
    margin-bottom:1px;
}

#post_image_wrap ~ #carousel2 {
    margin-top:-40px;
}

@media screen and (max-width: 750px) {
    #post_image_wrap ~ #carousel2 {
        margin-top:-33px;
        margin-left:-20px;
        margin-right:-20px;
        width:calc(100% + 40px);
    }
}

#carousel2 .item {
    width: 320px;
    height: 300px;
    margin: 0 15px;
}

#carousel2 .item a {
    /*pointer-events: none;*/
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

#carousel2 .image {
    width: 100%;
    height: 200px;
    top: 20px;
    position: absolute;
}

#carousel2 .content {
    opacity: 0;
    border: 3px solid #000;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 270px;
    z-index: 201;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
}

#carousel2 .owl-item.hover a {
    pointer-events: auto;
}

#carousel2 .owl-item a:hover .content {
    opacity: 1;
    bottom: 10px;
}

#carousel2 .content_inner,
#carousel2-block .content_inner {
    background: #000;
    color: #fff;
    position: absolute;
    bottom: -1px;
    left:-1px;
    width: calc(100% + 2px);
    height: 68px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#carousel2 .title_area,
#carousel2-block .title_area {
    padding: 0 30px 0 20px;
    font-size: 14px;
    width: 100%;
    text-align: left;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#carousel2 .title,
#carousel2-block .title {
    line-height: 1.4;
}

#carousel2 .category,
#carousel2-block .category {
    margin: 0 0 2px 0;
}

#carousel2 .content_inner:before,
#carousel2-block .content_inner:before {
    font-family: 'design_plus';
    color: #fff;
    content: '\e910';
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
    margin-right: -10px;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-animation: arrow_move_right 1.7s ease infinite 0s;
    animation: arrow_move_right 1.7s ease infinite 0s;
}

/* 小さいサイズ時 */
#carousel2.layout_type1 {
    height: 234px;
}

#carousel2.layout_type1 .item {
    height: 220px;
}

#carousel2.layout_type1 .image {
    height: 120px;
}

#carousel2.layout_type1 .content {
    height: 190px;
}

#carousel2.owl-carousel .owl-nav.disabled {
    display:inherit !important;
}

#carousel2.owl-carousel .owl-nav .owl-prev,
#carousel2.owl-carousel .owl-nav .owl-next {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 100%;
    color: #fff;
    font-size: 14px;
    height: 45px;
    line-height: 45px;
    margin-top: -30px;
    opacity: 0;
    width: 45px;
}

#carousel2.owl-carousel .owl-nav .owl-prev {
    left: 20px;
}

#carousel2.owl-carousel .owl-nav .owl-next {
    right: 20px;
}

#carousel2.owl-carousel[dir="rtl"] .owl-nav .owl-prev {
    left: auto;
    right: 20px;
}

#carousel2.owl-carousel[dir="rtl"] .owl-nav .owl-next {
    right: auto;
    left: 20px;
}

#carousel2.owl-carousel:hover .owl-nav .owl-prev,
#carousel2.owl-carousel:hover .owl-nav .owl-next {
    opacity: 1;
}

#carousel2.owl-carousel .owl-nav .owl-prev:hover,
#carousel2.owl-carousel .owl-nav .owl-next:hover {
    background: rgba(0, 0, 0, 1);
}


/* 2段ブロックレイアウト */

#carousel2-block {
    display: flex;
    margin: 0 3px;
    padding-top:2px;
    padding-bottom:2px;
    width: calc( 100% - 6px);
    flex-wrap: wrap;
}

#carousel2-block .item {
    width: calc( 50% - 6px);
    height: 210px;
    padding: 3px;
    position: relative;
}

#carousel2-block .item a {
    width: 100%;
    height: 100%;
    display: block;
}

#carousel2-block .content {
    opacity: 0;
    border: 3px solid #000;
    position: absolute;
    bottom: 0px;
    left: 15px;
    width: calc( 100% - 30px);
    height: 210px;
    z-index: 201;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
}

#carousel2-block a:hover .content {
    opacity: 0.8;
    bottom: 10px;
}

.image {
    display: block;
    width: 100%;
    height: 100%;
}


@media screen and (min-width: 340px) {
    #carousel2-block .item {
        height: calc( 46vw * 9/16);
    }
    #carousel2-block .content {
        left:3px;
        width: calc( 100% - 6px);
        height: calc( 46vw * 9/16);
        bottom: 5px !important;
    }
    #carousel2-block.layout_type2 .item {
        height: calc( 46vw * 3/4);
    }
    #carousel2-block.layout_type2 .content {
        height: calc( 46vw * 3/4);
        bottom: 3px !important;
    }
}

@media screen and (min-width: 752px) {
    #carousel2-block.layout_type1 .item {
        /*max-height: 210px;*/
        height: calc( 46vw * 9/16);
    }

    #carousel2-block.layout_type1 .image {
        height: 100%;
        /*background-size:contain !important;*/
    }

    #carousel2-block.layout_type1 .content {
        /*height: 213px;*/
        height: calc( 46vw * 9/16);
        bottom: 3px !important;
    }
    #carousel2-block.layout_type2 .item {
        height: calc( 46vw * 3/4);
    }
    #carousel2-block.layout_type2 .content {
        /*height: 213px;*/
        height: calc( 46vw * 3/4);
    }
}

@media screen and (min-width: 883px) {
    #carousel2-block.layout_type1 .item {
        width: calc( 33.333% - 6px);
        height: calc( 32vw * 9/16) !important;
    }
    #carousel2-block.layout_type1 .content {
        /*height: 213px;*/
        height: calc( 32vw * 9/16);
    }
    #carousel2-block.layout_type2 .item {
        width: calc( 33.333% - 6px);
        height: calc( 32vw * 3/4) !important;
    }
    #carousel2-block.layout_type2 .content {
        /*height: 213px;*/
        height: calc( 32vw * 3/4);
    }
}

@media screen and (min-width: 1185px) {

}
