/*

カスタム投稿タイプ　物件一覧　テンプレート
CSS
*/

.property__title {
    margin-left: 5%;
    margin-bottom: 2.8rem;
}

.property__inner {
    padding-top: 8rem;
}

.property-tabs {
    max-width: 96rem;
    display: flex;
    gap: 2%;
    margin: auto;
    margin-bottom: 5.6rem;
}

.property-tabs .tab-link {
    background-color: #f8f8f8;
    font-weight: 700;
    width: 20%;
    min-width: 16rem;
    padding: 1.2rem 0;
    text-align: center;
    border-radius: .4rem;
    border: .1rem solid transparent;
    transition: border-color 0.3s ease;
}

.property-tabs .tab-link.all {
    color: #13334E;
}

.property-tabs .tab-link.newhome {
    color: #1F86B7;
}

.property-tabs .tab-link.existinghome {
    color: #EFA14C;
}

.property-tabs .tab-link.apartment {
    color: #70B187;
}

.property-tabs .tab-link.land {
    color: #E08081;
}

.property-tabs .tab-link.active {
    background-color: #13334E;
    color: #fff;
}

.property-tabs .tab-link:hover {
    border-color: #13334E;
}

.property-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 3%;
    row-gap: 4rem;
    justify-content: flex-start;
}

.property-item {
    width: 30%;
    min-width: 22rem;
}

.property-item-link {
    width: 100%;
}

.property-item-link img {
    transition: transform 0.4s ease;
  }
  
  .property-item-link:hover img {
    transform: scale(1.05);
  }

.property-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.property-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-property-info {
    margin-top: 1.2rem;
}

.archive-property-cat {
    margin-bottom: 1.6rem;
}

.archive-property-title {
    display: inline-block;
    max-width: 100%;
    font-size: 1.8rem;
    font-weight: 700;
    border-bottom: .1rem solid #13334E;
    margin-bottom: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-property-title:hover {
    transition: all .3s ease;
    opacity: .8;
}

.archive-property-item__title {
    font-weight: 700;
    width: 10rem;
}

.archive-property-item {
    display: flex;
    align-items: flex-start;
}

.archive-property-price,
.archive-property-address,
.archive-property-access {
    width: calc(100% - 10rem);
    text-align: left;
    line-height: 1.6;
}

.archive-property-access {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
}


/* 詳細ページ */
.property__header {
    margin-top: 5.6rem;
    margin-bottom: 3.2rem;
    display: flex;
    align-items: center;
}

.property-item-link {
        display: block;
    /* width: fit-content; */
}

.property-cat {
    font-weight: 700;
    color: var(--white);
    width: fit-content;
}

.property__header .property-cat {
    margin-right: 3.2rem;
}

.cat-label {
    padding: .8rem 1.6rem;
    border-radius: .2rem;
    display: inline-block;
}

.property-cat .cat-apartment {
    background-color: #70B187;
}

.property-cat .cat-existinghome {
    background-color: #EFA14C;
}

.property-cat .cat-land {
    background-color: #E08081;
}

.property-cat .cat-newhome {
    background-color: #1F86B7;
}

.property-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.5;
}

.cat-label:hover {
    transition: all 0.3s ease;
    opacity: .8;
}

/* 物件画像のスライダー */
.gallery-slider {
    width: 90%;
    margin: auto;
    margin-bottom: 6.4rem;
}

.main-image-wrapper {
    position: relative;
}

.main-image {
    position: relative;
    flex: 1;
    text-align: center;
    width: 100%;
    aspect-ratio: 3/2;
    background-color: #f5f5f5;
    cursor: pointer;
}

.main-image .main-img {
    height: 100%;
    object-fit: contain;
    display: none;
}

.main-image .main-img.active {
    display: block;
}

.slide-comment {
    height: auto;
    min-height: 3rem;
    line-height: 1.5;
}

.thumbnail-list {
    display: flex;
    margin-top: 2.4rem;
    gap: 1%;
    justify-content: space-between;
    overflow-x: scroll;
    height: fit-content;
}

.thumbnail-container {
    width: 15%;
    min-width: 10.4rem;
    aspect-ratio: 3/2;
    background-color: #f5f5f5;
}

.thumb {
    cursor: pointer;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.thumb.active {
    border: .2rem solid var(--lightblue);
}

.slider-prev,
.slider-next {
    border: none;
    cursor: pointer;
    position: absolute;
    z-index: 100;
    top: 50%;
    transform: translateY(-50%);
    width: 6.4rem;
    height: 6.4rem;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: .2rem .4rem .8rem rgba(51, 51, 51, .08);
}

.slider-prev img,
.slider-next img {
    width: 2.4rem;
}

.slider-prev {
    left: -3.2rem;
}

.slider-next {
    right: -3.2rem;
}

.slider-next img {
    transform: rotate(180deg);
}

/* lightbox */
/* 拡大用オーバーレイ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.visible {
    display: flex;
    opacity: 1;
}

.lightbox-overlay.hide {
    opacity: 0;
}

#lightboxImage {
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

/* 開くときのズームアニメーション */
@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 閉じるときのズームアウトアニメーション */
@keyframes zoomOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

#lightboxImage.zoom-out {
    animation: zoomOut 0.3s ease forwards;
}

.lightbox-overlay-close {
        position: absolute;
    top: 3%;
    right: 3%;
    width: 5.6rem;
    height: 5.6rem;
    background-color: var(--lightblue);
    border-radius: 50%;
}

.lightbox-overlay-close::before,
.lightbox-overlay-close::after {
    content: '';
    position: absolute;
    width: 3.2rem;
    height: .2rem;
    border-radius: 9999rem;
    background-color: var(--white);
    top: 50%;
    left: 50%;
}

.lightbox-overlay-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-overlay-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 物件画像スライダーの枚数表記 */
.image-counter {
    position: absolute;
    top: .4rem;
    right: .4rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    padding: 0.2rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    z-index: 10;
    font-weight:7000;
}

/* 特徴 */
.features {
    margin-bottom: 8rem;
    width: 100%;
    background-color: #F8F8F8;
    padding: 3.2rem 2.4rem;
}

.property-catch {
    font-size: 2.4rem;
    color: var(--lightblue);
    padding-bottom: 1.6rem;
    margin-bottom: 2.4rem;
    border-bottom: .1rem solid #A7C1CE;
    padding-left: .8rem;
}

.features__text {
    padding-left: .8rem;
}

/* 詳細情報 */
.property-info {
    margin-bottom: 8rem;
}

.property-info dl {
    border-top: .1rem solid #A7C1CE;
}

.property-info__item {
    display: flex;
    border-bottom: .1rem solid #A7C1CE;
    align-items: stretch;
}

.property-info__item dt {
    width: 18rem;
    background-color: #F8F8F8;
    padding: 1.6rem 0 1.6rem 1.6rem;
}

.property-info__item dd {
    padding: 1.6rem 2.4rem 1.6rem 1.6rem;
    width: calc(100% - 18rem);
    text-align: left;
    line-height: 1.6;
}

.full-w {
    width: 100%;
}

.property-info--short {
    display: flex;
    align-items: stretch;
}

.property-info--short .property-info__item {
    width: 50%;
}

/* マップ */
.map-wrapper iframe {
    width: 100%;
    aspect-ratio: 3/1;
}

/*ショートコード*/

.property-list-limit3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.property-list-limit3 article.property-item {
    width: 30%;
}


/* ==============================

    スマホ・タブレット縦

============================== */

@media screen and (max-width:1100px) {
    /* 共通 */
    .property__inner {
        padding-top: 4rem;
    }

    .property-tabs {
        flex-wrap: wrap;
        row-gap: 1.6rem;
    }

    .property-list-limit3 article.property-item {
        width: 48%;
    }

    /* 詳細 */
    .property__header {
        margin-top: 3.2rem;
        margin-bottom: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
        row-gap: 1.2rem;
    }

    .slider-prev,
    .slider-next {
        width: 4rem;
        height: 4rem;
    }

    .slider-prev {
        left: -2rem;
    }

    .slider-next {
        right: -2rem;
    }

    .slider-prev img,
    .slider-next img {
        width: 1.6rem;
    }

    .thumbnail-list {
        margin-top: 1.6rem;
    }

    .gallery-slider {
        width: 100%;
        margin-bottom: 4rem;
    }

    .features {
        margin-bottom: 5.6rem;
        padding: 3.2rem 1.6rem;
    }

    .property-catch {
        font-size: 2rem;
        padding-left: 0;
        margin-bottom: 1.6rem;
    }

    .property-info {
        margin-bottom: 5.6rem;
    }
}

/* ==============================

    スマホ　

============================== */

@media screen and (max-width: 710px) {
    .property-tabs {
        flex-wrap: wrap;
        max-width: 50rem;
        row-gap: .8rem;
        margin-bottom: 3.2rem;
    }

    .property-tabs .tab-link {
        width: 48%;
    }

    .property-list {
        justify-content: center;
    }

    .property-item {
        width: 100%;
        max-width: 46rem;
    }

    .property-list-limit3 article.property-item {
        width: 100%;
    }

    .property-tabs .tab-link {
        width: 48%;
    }

    .property-info--short {
        flex-direction: column;
    }
    
    .property-info--short .property-info__item {
        width: 100%;
    }

    .property-info__item dt {
        width: 10rem;
        padding: 1.2rem .6rem 1.2rem .6rem;
        letter-spacing: 0;
        line-height: 1.35;
        text-align: left;
    }

    .property-info__item dd {
        padding: 1.2rem;
        width: calc(100% - 10rem);
    }

.lightbox-overlay-close {
    width: 4rem;
    height: 4rem;
    background-color: var(--lightblue);
    border-radius: 50%;
}

.lightbox-overlay-close::before,
.lightbox-overlay-close::after {
    width: 2.8rem;
}
}