/* modelhouse list START */
.modelhouseList {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.modelhouseCard {
    max-width: 250px;
    display: inline-block;
    vertical-align: bottom;
}

.modelhouseCard,
.modelhouseList li {
    width: 277px;
    min-width: 250px;
    margin: 20px 17px;
    background-color: #ffffff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3);
    list-style: none;
    border-radius: 20px;
    overflow: hidden;
}

.single-exhibitionhall_data .modelhouseCard {
    min-width: 300px;
    margin: 20px 10px;
}

.modelhouseCard a,
.modelhouseList li a {
    position: relative;
    display: block;
    color: #212121 !important;
    border-bottom: none !important;
}

.modelhouseCard a {
    color: initial !important;
    border-bottom: none !important;
}

.modelhouseCard a .thumbnail,
.modelhouseList li .thumbnail {
    position: relative;
    width: 100%;
    height: 170px;
    margin-bottom: 20px;
    overflow: hidden;
    margin: 0 0 0.4rem;
}

.modelhouseCard a .thumbnail img,
.modelhouseList li .thumbnail img {
    position: absolute;
    left: 50%;
    top: 150%;
    width: 110%;
    max-width: inherit;
    height: auto;
    transform: translate(-50%, -50%);
    transition-duration: 0.5s;
}

.modelhouseCard a .thumbnail img.lazyloaded,
.modelhouseList li .thumbnail img.lazyloaded {
    top: 50%;
    transform: translate(-50%, -50%);
}

.modelhouseCard a:hover .thumbnail img,
.modelhouseList li a:hover .thumbnail img {
    width: 140%;
}

.modelhouseCard a .series,
.modelhouseList li .series {
    min-height: 2.6em;
    margin: 0 0 10px !important;
    padding:20px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.modelhouseCard a .company,
.modelhouseList li .company {
    margin: 0 !important;
    padding: 3px 5px 3px 5px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    background: #000;
    position: absolute;
    text-align: left;
    top: 15px;
    left: 0;
    color: #fff;
}

.modelhouseCard a .digest,
.modelhouseList li .digest {
    margin-bottom: 30px;
    padding: 0 15px;
    line-height: 1.4;
    overflow: hidden;
}

.modelhouseCard .digest {
    height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 行数を3行に制限 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewList .swiper-slide .new,
.modelhouseCard a .new,
.modelhouseList li .new {
position: absolute;
    top: 134px;
    left: 0px;
    width: 38px;
    height: 20px;
    color: #fff;
    font-size: 12px;
    text-align: center;
    line-height: 20px;
    background-color: #d84848;
}
.modelhouseList.smallList li .new{
    top: 95px;
}
.viewList .swiper-slide .vr,
.modelhouseCard a .vr,
.modelhouseList li .vr {
    position: absolute;
    top: 122px;
    right: 15px;
    right: calc(50% - 40px);
}

.modelhouseList.smallList li .vr {
    top: 95px;
    right: calc(50% - 27px);
}

.modelhouseCard a .vr img,
.modelhouseList li .vr img {
    width: 76px;
    opacity: 1;
}

.toppageContent.modelhouse .maxWidth .nowrap {
    display: none;
}

@media only screen and (max-width: 782px) {
    .modelhouseIntroBody .buildInfoBox .detailTable th {
        width: 100%;
    }

    .modelhouseList {
        justify-content: space-around;
    }

    .modelhouseCard,
    .modelhouseList li {
        width: 44%;
        min-width: 277px;
        margin: 20px 3%;
    }

    .modelhouseCard a .company,
    .modelhouseList li .company {
        font-size: 12px;
    }
}

@media only screen and (max-width: 680px) {

    .modelhouseCard,
    .modelhouseList li {
        width: 90%;
        min-width: inherit;
        margin: 20px auto;
        max-width: unset;
    }

    body .modelhouseCard {
        width: 100%;
    }

    .toppageContent.modelhouse .maxWidth {
        max-width: 400px;
        padding-top: 17px;
        line-height: 22px;
    }

    .toppageContent.modelhouse .maxWidth .nowrap {
        display: block;
    }
}

@media only screen and (max-width: 480px) {

    .modelhouseCard a,
    .modelhouseList li {
        width: 100%;
        margin: 10px auto;
    }

    body .exhibitionhall_data .modelhouseCard a {
        margin: 0;
    }
}

/* modelhouse list END */
body .mfp-bg,
.mfp-container:before {
    display: none
}

body .mfp-wrap {
    position: fixed !important;
    top: 0 !important
}

body .mfp-wrap .buttonYellow.midcv {
    position: fixed !important;
    bottom: 0 !important;
    width: 100%;
    max-width: none;
    padding: 15px 0 10px
}

body .mfp-wrap .midcv .name .pop {
    top: -30px;
    height: 55px;
    line-height: 55px
}

body .mfp-container {
    padding: 0
}

body .mfp-auto-cursor .mfp-content {
    height: 100%;
    overflow: hidden
}

body .mfp-iframe-holder .mfp-close {
    top: 0;
    display: inline-block;
    width: 50px;
    padding: 10px;
    font-size: 50px;
    line-height: 1;
    right: 0;
    height: 50px;
    text-shadow: 0 0 3px #000
}

.buttonYellow.midcv {
    max-width: 100%
}

body .mfp-iframe-scaler {
    height: calc(100% - 61px);
    padding: 0;
    position: relative
}

body .mfp-iframe-holder .mfp-content {
    max-width: 100% !important;
}

body:has(.mfp-bg) #siteHead {
    display: none;
}

.dt_lavel {
    display: inline-block;
    background: #000;
    color: #fff;
}

.modelhouseIntro {
    padding: 40px 20px;
}

.modelhouseIntro h2 {
    font-size: 1.7em;
    margin-bottom: 0.7em;
    font-weight: bold;
}

.modelhouseIntroBody {
    display: grid;
    padding: 20px;
    grid-template-columns: 1fr 1fr;
}

.customer {
    display: flex;
    padding: 2em 15px 2em;
    font-size: 24px;
    color: #5b7b89;
    position: relative;
    transition: all .3s 0s ease;
    margin: 3em auto 0;
    justify-items: center;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1em;
    border-top: 1px solid #d1d1d1;
}
.customer img{
    width: 120px;
}

.customer .arrow1:after {
    color: #127199;
    box-shadow: 0 0 0 1px #127199;
}
.customer.arrow1:hover{
    opacity: 0.8;
}

.customer .name {
    padding-right: 17px;
    line-height: 1.3;
    color: #127199;
    text-align: right;
    padding-right: 2em;
    position: relative;
}

#cost {
    background: #F1F4F7;
    border-radius: 5px;
    padding: 1em;
    margin: 1em auto 1em;
    text-align: center;
}

#cost .cost-tags {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 0.25em;
}

#cost .area dt {
    display: inline-block;
    padding: 3px 10px;
    color: #fff;
    white-space: nowrap;
    background: #127199;
}

#cost .area dd {
    padding: 3px 10px;

}

#cost dl.area {
    display: grid;
    grid-template-columns: auto 1fr;
    margin: auto;
    align-items: start;
    justify-content: center;
    width: fit-content;
}


.note_come {
    position: relative;
    font-size: 0.8em;
    margin-top: 0.25em;
    color: #6b6b6b;
}

.note_come::before {
    content: "※";
    position: relative;
    top: 0;
    left: -0.2em;
}

.buildInfoBox .detailTable {
    margin-bottom: 0;

}

.buildInfoBox .buildInfo.digest .banner {
    width: 200px;
}

.buildInfoBox .buildInfo.digest .info {
    width: -webkit-calc(100% - 220px);
    width: calc(100% - 220px);
}

.buildInfoBox .buildInfo.digest .info .name {
    font-size: 1.2em;
    font-weight: bold;
}

.buildInfoBox .buildInfo.digest .info .catch {
    margin: 20px 0;
}

.buildInfoBox .buildInfo.digest .info .maxWidth {
    font-size: 18px;
}

.buildInfoBox .buildInfo.digest .info .maxWidth::after {
    right: 20px;
}

.buildInfoBox .detailTable th {
    width: 15%;
    min-width: 180px;
    font-weight: bold;
}

.buildInfoBox .detailTable th,
.buildInfoBox .detailTable td {
    padding: 10px 10px;
}

.detailTable th {
    font-weight: bold;
}

.buildInfoBox .nowrap {
    white-space: normal;
}

.buildInfoBox .genreLink a {
    display: inline-block;
    margin: 2px 3px;
    padding: 5px 1em 5px 1em;
    color: #5b7b89;
    font-size: 14px;
    white-space: nowrap;
    background-color: #ffffff;
    border: 1px solid #5b7b89;
    border-radius: 50px;
    transition: all 300ms 0s ease;
    font-weight: normal;
}

.buildInfoBox .genreLink a:hover {
    background-color: #5b7b89;
    color: #ffffff;
}


.buildInfoBox .detailTable th[colspan="2"] {
    padding: 10px;
    white-space: normal;
}

.tag_list {
    margin-top: 1em;
    margin-left: 1em;
}

.buildInfoBox .detailTable .tag_list th {
    font-size: 0.9em;
    font-weight: bold;
    position: relative;
}
.buildInfoBox .detailTable .tag_list th::before {
    content: "ー";
    position: absolute;
    left: -1.5em;
    top:0.9em;
    font-size: 0.9em;
    color:#d1d1d1;
}

.buildInfoBox .detailTable .tag_list th,
.buildInfoBox .detailTable .tag_list td {
    padding: 2px 0;
    border-bottom: none;
}

#modelhouseTop .noVr img {
    /* margin-bottom: 1em; */
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

#buildable_region {
    margin-top: 30px;
    margin-bottom: 90px;
    padding: 50px 15px;
}

#buildable_region table {
    margin-bottom: 1em;
}




@media screen and (max-width: 768px) {
    .modelhouseIntroBody {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    body #modelhouseHeader h1.series {
        font-size: 1.7em;
    }
    .buildInfoBox .detailTable .tag_list th::before {
        top: 0.25em;
    }
}

@media screen and (min-width: 782px) {

    .toggle_next {
        pointer-events: none
    }

    #buildable_region table th {
        width: 180px;
        border-right: 1px solid #737577;
    }

    body .splide__arrow--next {
        right:5%;
    }

    body .splide__arrow--prev {
        left:5%;
    }
}

/***************/
.splide__list {
    align-items: center;
}
body .splide__arrow {
    height: 3em;
    width: 3em;
    background: #ffffff;
    opacity: .9;
}
.splide__arrow svg {
    fill: #000;
    height: 0.5em;
    width: 0.5em;
}
#page_modelhouse .day_sns>.releaseDay {
    display: block;
    margin: 0;
    padding: 2px 0;
    font-size: 14px;
    color: #595959;
    text-align: right;
}

.thumbnails {
    display: flex;
    margin: 1rem auto 0;
    padding: 0;
    justify-content: center;
    padding: 30px;

}

.thumbnails::-webkit-scrollbar {
    width: 6px;
    background-color: #e9e9e7;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: #5e4e37;
    width: 6px;
    border-radius: 10px;
}

.thumbnail {
    position: relative;
    width: 150px;
    height: 100px;
    overflow: hidden;
    list-style: none;
    margin: 0 0.2rem;
    cursor: pointer;
}

.thumbnail.is-active {
    border: 4px solid #d84848;
}

.thumbnail img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.thumbnail .vr .vr img {
    width: 40px;
}



.splide__slide {
    text-align: center;
}
@media screen and (min-width: 768px) {
#main-carousel-track::after,
#main-carousel-track::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background-image: linear-gradient(90deg, #ffffffbb, #ffffff00);
    z-index: 1;
    pointer-events: none;

}
#main-carousel-track::after{
    right: 0;
    left: auto;
    background-image: linear-gradient(270deg, #ffffffbb, #ffffff00);
}
    
}



#main-carousel .splide__slide {
    height: 500px;
  
    transition: all 10ms 0s ease;

}


 /*
#main-carousel .splide__slide.is-active {

    
    box-shadow: 0 0 50vw 50vw #ffffff8a;
    
}  opacity: 1;z-index: 2;
    background: #fff; */

.vr .vr img{
    position: absolute;
    top: 29%;
    left: 0;
    display: block;
    width: auto;
    cursor: pointer;
    right: 0;
    margin: auto;
}
#thumbnails .vr .vr img {
    margin: 0;
}
.vr .play{
    position: absolute;
    top: calc(50% - 23px);
    left: calc(50% - 35px);
    width: 70px;
    border-radius: 100%;
    border: 3px solid #ffffff;
    height: 70px;
    background: #6b5a0538;
}
.vr .play:after {
    position: absolute;
    content: "";
    top: 0;
    right: 15px;
    width: 0.6em;
    height: 0.6em;
    border: 2px solid #5b7b8e;
    background: #ffffff00;
    z-index: 0;
    transform: rotate(180deg);
    bottom: 0;
    margin: auto;
    border-bottom: 21px solid #ffffff00;
    border-left: 7px solid #ffffff00;
    border-top: 22px solid #ffffff00;
    border-right: 38px solid #ffffff;
    right: -1px;
}
.vr:hover .play{
    box-shadow: 0 0 30px #fff;

}
.vr:hover .play:after{
  animation: play 1s ease 0s 1 alternate none running;
  animation-fill-mode: forwards;

}
#thumbnails .vr .vr img {
    top: 50%;
    left: 50%;

}
@keyframes play {
  0% {
    transform: rotate3d(1, 1, 1, 45deg);
  }

  100% {
    transform: rotate(180deg);
    border-bottom: 21px solid #ffffff00;
    border-left: 7px solid #ffffff00;
    border-top: 22px solid #ffffff00;
    border-right: 38px solid #ffffff;
    right: -1px;
    background: #ffffff00;
  }
}

body .splide__list {
    margin: auto !important;
    max-width: 1400px;
}
.splide__slide img {/*
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    transform: translate(-50%, -50%);
    cursor: pointer;*/
    
    vertical-align: bottom;
    height: 500px;
    width: auto;
}

@media screen and (max-width: 767px) {
    .vr .play:after {
        animation: none;
        position: absolute;
        content: "";
        top: 0;
        right: 15px;
        width: 0.6em;
        height: 0.6em;
        border: 2px solid #5b7b8e;
        background: #ffffff5e;
        z-index: 0;
        bottom: 0;
        margin: auto;
        transform: rotate(180deg);
        border-bottom: 21px solid #ffffff00;
        border-left: 7px solid #ffffff00;
        border-top: 22px solid #ffffff00;
        border-right: 38px solid #ffffff;
        right: -1px;
        background: #ffffff00;
    }

    .splide__list .vr .vr img {
        top: 16%;
        left: 0;
    }

    .modelhouseIntro .bottomcvButton .name .pop {
        left: -21px;
    }

    .modelhouseIntro {
        padding: 0 0 20px;
    }

    body .bottomcvButton .name {
        position: relative;
        display: table;
        margin: 0 auto;
        padding: 0 15px 0 30px;
    }

    .buildInfoBox .detailTable th {
        width: auto;
    }

    body .buildInfoBox {
        padding: 0;
        margin: 1em auto;
    }

    #main-carousel .splide__slide {
        max-height: 300px;
    }

    .splide__slide {
        height: 400px;
    }

    .thumbnails {
        padding: 10px;

    }

    .thumbnail {
        width: 100px;
        height: 35px;
    }

}

#pref-carousel {
    margin: 0 15px 15px;
}

#pref-carousel .pref_name {
    display: inline-block;
    padding: 10px 30px 10px 20px;
    margin: 15px 15px 0 0;
    color: #fff;
    white-space: nowrap;
    background: #127199;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    width: 6.5em;
    line-height: 1;
    position: relative;
}
#pref-carousel .pref_name strong:after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    top: 0.75em;
    right: 1em;
    position: absolute;
}
#pref-carousel .pref_name.active,
#pref-carousel .pref_name:hover {
    background: #41b0e1;
    color: #fff;
}

#pref-carousel .splide__slide {
    height: auto;
    width: 100%;
    text-align: center;
}

#buildable_region .cityLink.active {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: flex;
    justify-content: center;
}

#buildable_region .cityLink {
    display: none;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 15px 40px 15px;
    padding: .5em 1em;
    border-bottom: 1px solid #d1d1d1;
    border: 4px solid #25a5db;
    background: #fff;
    text-align: center;
}

#buildable_region .cityLink li {
    margin: 1px;
    display: inline-block;
    padding: 0;
}

#buildable_region .cityLink li a {
    display: block;
    padding:10px 33px 10px 20px;
    white-space: nowrap;
    color: #18749d;
    border: 1px solid #41b0e1;
    border-radius: 50px;
    position: relative;
}

#buildable_region .cityLink a:after{
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #41b0e1;
    border-right: 2px solid #41b0e1;
    transform: rotate(45deg);
    top: 1em;
    right: 1em;
    position: absolute;
}
#buildable_region li a:hover {
    color: #ffffff;
    background-color: #41b0e1;
    border-radius: 50px;
}

#buildable_region .cityLink li {
    width: 17.5%;
    margin: 10px 15px;
}

body .wpm-img a img {
   /* width: auto;
    height: auto;*/
}

@media screen and (max-width: 768px) {
    .splide__slide img{
    height: auto;
    max-height: 300px;
}
    .customer {
        font-size: 18px;
    }

    .pageWidth.photoBox .photoList.pattern2 li {
        margin: 0 0 10px;
    }

    #pref-carousel .pref_name {
        margin: 5px 10px 5px 0;
        text-align: center;
    }
    #buildable_region .cityLink{
        margin: 0 0 40px;
    }
    #buildable_region .cityLink li {
        width: auto;
        min-width: 8em;
        margin: 10px 10px;
    }

    .thumbnails-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 1rem;
    }

    .thumbnails {
        display: flex;
        gap: 8px;
        padding-bottom: 8px;
        overflow-x: scroll;
        width: calc(100% - 30px);
        justify-content: flex-start;
    }

    #modelhouseMain .thumbnail {
        flex: 0 0 auto;
        width: 22vw;
        /* スマホで約4枚見えるように */
        max-width: 100px;
        height: 65px;
        cursor: pointer;
        border: 2px solid transparent;
    }

    .thumbnail.is-active {
        border-color: #007bff;
    }
}

#pref-carousel .splide__arrows {
    display: none;
}

#pref-carousel:has(.is-next) .splide__arrows {
    display: initial;
}

body #pref-carousel .splide__arrow--next {
    right: -20px;
}

body #pref-carousel .splide__arrow--prev {
    left: -20px;
}