/* ------------------------------------------------------------- */
/* design                                                        */
/* ------------------------------------------------------------- */
.lower-mv.s-d {
    background-image: url(../img/service/service_detail/s_d_lower_mv.jpg);
}

.d-1 {
    padding-top: 120px;
}

.d-1__flex-wrap {
    margin-top: 50px;
    flex-wrap: nowrap;
}

@media (max-width: 1024px) {
    .d-1__flex-wrap {
        flex-wrap: wrap;
    }
}

.d-1__txt-box {
    width: 60%;
    line-height: 1.7;
    margin-right: 40px;
}

@media (max-width: 1024px) {
    .d-1__txt-box {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 1024px) {
    .d-1__img {
        width: 100%;
    }
}

.service__tab {
    width: 1200px;
    margin: 0 auto;
    padding: 80px 0 0;
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 1200px) {
    .service__tab {
        width: 95%;
        justify-content: space-between;
        padding: 30px 0 0;
    }
}

.case__item {
    width: calc(100% / 5 - 16px);
    margin: 20px 20px 20px 0;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    transition: 0.4s;
    position: relative;
    list-style: none;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .case__item {
        width: calc(100% / 2 - 5px);
        margin: 10px 0 0;
    }
}

.case__item:hover {
    opacity: 0.8;
}

.case__item:nth-of-type(5n) {
    margin: 20px 0px 20px 0;
}
@media (max-width: 768px) {
    .case__item:nth-of-type(5n) {
        margin: 10px 0 0;
    }
}

.case__item::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 30px 30px 0 0;
    border-color: #e60012 transparent transparent transparent;
}

.case__item span {
    position: absolute;
    background: #fff;
    padding: 4px 10px 2px 10px;
    color: #e60012;
    font-family: Arial;
    font-weight: bold;
}

.d-2__txt-box {
    margin-top: 10px;
    line-height: 1.5;
}

.d-2__img {
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .d-2__img {
        height: auto;
    }
}

.d-2__ttl {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .d-2__ttl {
        font-size: 13px;
    }
}

.d-2__number span {
    display: block;
    font-size: 40px;
    line-height: 1;
}

.d-2__tab-wrap {
    margin-bottom: 50px;
}

@media (max-width: 1200px) {
    .d-2__tab-wrap {
        display: block;
        margin-bottom: 0;
    }
}

.d-2__tab-wrap .tab-txt {
    font-size: 20px;
    margin-right: 20px;
}

@media (max-width: 1024px) {
    .d-2__tab-wrap .tab-txt {
        font-size: 18px;
        margin-bottom: 10px;
    }
}

.tab__wrap {
    position: relative;
}

.tab__wrap::after {
    content: '';
    width: 100%;
    height: 3px;
    background: #e60012;
    z-index: -1;
    position: absolute;
    bottom: 0;
}

.d-2__tab {
    width: 1200px;
    margin: 50px auto 0;
}

@media (max-width: 1200px) {
    .d-2__tab {
        width: 100%;
    }
}

.d-2__tab .search_item2 {
    transition: all 0.3s ease-in;
    width: calc(100% / 7 - 1px);
    background: #e60012;
    color: #fff;
    cursor: pointer;
    text-align: center;
    border-top: 3px solid #e60012;
    border-left: 3px solid #e60012;
    border-right: 3px solid #e60012;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .d-2__tab .search_item2 {
        font-size: 1.5vw;
    }
}

@media (max-width: 1024px) {
    .d-2__tab .search_item2 {
        width: calc(100% / 2 - 1px);
        margin-top: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        border-bottom: 2px solid #fff;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .d-2__tab .search_item2:first-of-type {
        width: 100%;
    }
    .d-2__tab .search_item2:nth-last-of-type(-n + 2) {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .d-2__tab .search_item2 {
        font-size: 3vw;
    }
}

.d-2__tab .search_item2:hover {
    opacity: 1;
    letter-spacing: 2px;
}

.d-2__tab .search_item2.is-active {
    background: #f3f1ef;
    color: #e60012;
}
@media (max-width: 1024px) {
    .d-2__tab .search_item2:first-of-type.is-active {
        border: 2px solid #e60012;
        margin-bottom: 2px;
    }
}

.d-2__tab .search_item2 a {
    padding: 20px 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab__content .pager {
    margin-top: 30px;
    padding-bottom: 80px;
}

/*-------------絞り込みボタン--------------*/
.is-hide {
    display: none;
    opacity: 0;
}

/*-------------リスト--------------*/
.list_item {
    opacity: 1;
    -webkit-animation: tabShow 0.8s ease 0s;
    animation: tabShow 0.8s ease 0s;
}

/* ****************
 * モーダル
 * *************** */
.modal {
    display: none;
    position: fixed;
    top: 3%;
    left: 3%;
    width: 94%;
    height: 94%;
    overflow-y: auto;
    padding: 60px 5% 5%;
    -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: rgba(46, 43, 34, 0.7);
    font-size: 16px;
    z-index: 99999;
}

@media (max-width: 500px) {
    .modal {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
}

.modal-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.modal-inner {
    width: 60%;
    margin: 0 auto;
    padding: 50px;
    background: #fff;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .modal-inner {
        width: 100%;
    }
}
@media (max-width: 500px) {
    .modal-inner {
        padding: 50px 20px;
    }
}

.modal h2 {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 2px #e60012 solid;
    margin-bottom: 30px;
    font-weight: bold;
}

.modal h3 {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.modal a {
    color: #3577c1;
    text-decoration: underline;
    display: flex;
}

.modal a::before {
    background: url(../img/common/link_arw_small.png) no-repeat;
    margin-right: 5px;
    width: 22px;
    height: 22px;
    background-size: contain;
    content: '';
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

.modal ul {
    background: #f2f0ee;
    padding: 10px;
    margin: 10px 0 20px;
}

.modal p + p {
    margin-top: 20px;
}

/* Close button */
.modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}
@media (max-width: 500px) {
    .modal .close {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        z-index: 9999;
    }
}
.modal .close:before,
.modal .close:after {
    position: absolute;
    top: 4px;
    border: 1px solid #fff;
    height: 30px;
    content: '';
}
.modal .close:before {
    left: 19px;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.modal .close:after {
    right: 19px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.modal .close span {
    display: none;
}

/* ****************
 * Background filter (blur)
 * *************** */
.bg-blur {
    filter: blur(10px);
    -webkit-filter: blur(10px);
    -moz-filter: blur(10px);
    -o-filter: blur(10px);
    -ms-filter: blur(10px);
    filter: url(#blur);
    filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='10');
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.modal-imageArea {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

@media (max-width: 500px) {
    .modal-imageArea {
        flex-direction: column-reverse;
        margin-bottom: 20px;
    }
}

.modal-mainImage {
    max-width: 560px;
    /* max-height: 330px; */
    max-height: auto;
    margin-left: 20px;
}

@media (max-width: 500px) {
    .modal-mainImage {
        max-width: 100%;
        max-height: auto;
        margin-left: 0;
    }
}

.modal-mainImage img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 3px 10px 0 rgb(0 0 0 / 10%);
}

@media (max-width: 500px) {
    .modal-smallImage {
        width: calc(100% / 3);
    }
}

.modal-smallImage {
    max-width: 165px;
    height: auto;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px 0 rgb(0 0 0 / 10%);
}

.modal-smallImage img {
    width: 100%;
}

@media (max-width: 500px) {
    .modal-imageList {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }
    .modal-smallImage {
        width: calc(100% / 3 - 5px);
        margin-bottom: 0;
    }
    .modal-smallImage img {
        width: 100%;
        margin-right: 0;
    }
}

.modal-imageList img:hover {
    opacity: 0.7;
}
