@media screen and (max-width: 1024px) {
    .property_cards_wrap::before {
        display: none !important;
        content: none !important;
        position: static !important;
        width: 0 !important;
        height: 0 !important;
        background: none !important;
        box-shadow: none !important;
        z-index: auto !important;
        transition: none !important;
    }
}

@media screen and (max-width: 1024px) {
    .property_cards_wrap::before {
        display: none !important;
        content: none !important;
    }
}

/* --- facilities_conditions タグデザイン --- */
.facility-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px;
    margin-top: 12px;
}

.facility-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    height: 32px;
    border: 1px solid #dc000c;
    background: #fff;
    color: #dc000c;
    font-family: 'Zen Kaku Gothic New', 'メイリオ', Meiryo, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    padding: 6px 18px;
    box-sizing: border-box;
    white-space: nowrap;
    letter-spacing: 0.56px;
    margin-right: 0;
    text-align: center;
}

.facility-tag.square {
    border-radius: 0;
}

.detail-main {
    padding: 80px 40px 40px 40px;
    margin: 0 auto;
    max-width: 1300px;
    width: 100%;
}

.property-detail {
    width: 100%;
}

.flex-PC {
    display: flex;
    gap: 40px;
}

.property-detail .right {
    width: 50%;
}

.tag {
    background-color: #ffff00;
    border: 1px solid #ffff02;
    color: #000;
    font-weight: 500;
    padding: 6px 17px 6px 15px;
    border-radius: 20px;
    margin-right: 10px;
    display: inline-block;
    font-size: 14px;
}

.category {
    background-color: #fff;
    color: #619949;
    border: 1px solid #619949;
    padding: 6px 31px 6px 31px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
    font-size: 14px;
}

.property-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4;
    color: #000000;
    margin-top: 16px;
    font: "Zen Kaku Gothic New", Medium;
}

.property-detail .catch {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #000000;
    margin-top: 20px;
}

.image-box {
    max-width: 564px;
    width: 100%;
    position: relative;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

/* メイン画像 */
.main-image {
    position: relative;
    width: 564px;
    height: 376px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ===== 矢印ボタン ===== */
.main-image button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 5;
}

@media (max-width: 768px) {
    .facility-tags {
        gap: 8px 0;
    }

    .facility-tag {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        font-size: 13px;
        padding-left: 0;
        padding-right: 0;
        margin-right: 0;
        margin-left: 0;
        border-radius: 0;
    }
}



.main-image button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.main-image .prev {
    left: 10px;
}

.main-image .next {
    right: 10px;
}

/* 最初に全部隠す */
.slide {
    display: none;
}

/* active の画像だけ表示 */
.slide.active {
    display: block;
}

/* ===== キャプション ===== */
.image-caption {
    position: absolute;
    top: 344px;
    left: 0;
    width: 100%;
    background: rgba(180, 180, 180, 0.9);
    /* 半透明の黒背景 */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    font-size: 14px;
    box-sizing: border-box;
    z-index: 10;
}

.caption-text {
    opacity: 0.8;
    /* 80%の濃さ → 少し薄く見える */
}

.image-caption.expanded .caption-text {
    -webkit-line-clamp: unset;
    white-space: normal;
    overflow: visible;
}

.image-caption .caption-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    transition: all 0.3s ease;
}

.image-caption .image-count {
    font-size: 14px;
    opacity: 0.9;
    margin-left: 12px;
    flex-shrink: 0;
}

/* ===== サムネイル ===== */
.thumbnails {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-gutter: stable;
}

.thumbnails::-webkit-scrollbar {
    height: 6px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.thumb {
    width: 89px;
    height: 60px;
    object-fit: cover;
    border-radius: 0;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s, border 0.3s;
    flex: 0 0 auto;
    /* 横スクロール対応 */
    scroll-snap-align: start;
}

.thumb.active {
    opacity: 1;
    border: 2px solid #000;
}

.price {
    font-size: 40px;
    font-weight: 500;
    color: #000;
    position: relative;
    top: 15px;
}

.price span {
    font-size: 18px;
    font-weight: 500;
}

.info-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.info-list li:first-child {
    border-top: 1px solid #000000;
}

.info-list li {
    padding: 10px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    border-bottom: 1px solid #000000;
}

.info-list li span {
    display: inline-block;
    color: #000000;
    font-size: 14px;
    opacity: 0.5;
}

.info-list li .slash {
    width: 25px;
    color: #000000;
    opacity: 1;
    border: 1px;
}

.recommend-points {
    max-width: 1000px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    color: #000;
    line-height: 1.8;
    margin-top: 80px;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 37px;
}

.section-title .square {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #c00;
    margin-right: 10px;
    margin-top: 8px;
}

.points-text p {
    font-size: 16px;
    line-height: 2em;
}

.map-placeholder {
    margin: 0 auto;
    max-width: 1220px;
    width: 100%;
    height: 320px;
    background-color: #d3d3d3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 16px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    margin-top: 87px;
    margin-bottom: 90px;
    overflow: hidden;
}

.property-overview {
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 1300px;
    width: 100%;
    color: #0f0f0f;
}

.overview-title h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #000000;
    font-weight: 500;
    font-family: "Zen Kaku Gothic New", sans-serif;
    text-align: left;
}

.overview-title h2 span,
.recommend_property .header h2 span {
    display: inline-block;
    background-color: #dc000c;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    margin-right: 10px;
    vertical-align: middle;
}

/* 表全体 */
.overview-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #e5e5e5;
}

/* 左列（見出しセル） */
.overview-table th {
    background-color: #f5f5f5;
    width: 20%;
    padding: 14px 20px;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid #e5e5e5;
}

/* 右列（内容セル） */
.overview-table td {
    background-color: #fff;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.recommend_property {
    margin-top: 100px;
    margin-bottom: auto;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
}

.price .price-num {
    color: #d81122;
    font-size: 40px !important;
    font-weight: 500;
}

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

@media screen and (min-width: 768px) and (max-width: 1024px) {}

@media screen and (max-width: 1024px) {
    .detail-main {
        padding: 20px 20px 80px 20px;
    }

    .flex-PC {
        display: inline;
        gap: 40px;
    }

    .property-detail .right {
        width: 100%;
    }

    .section-title {
        margin-top: 120px;
        margin-bottom: 26px;
    }

    .contact-banner {
        display: none;
    }

    tr {
        border-top: 1px solid #cccccc;
        border-bottom: 1px solid #cccccc;
    }

    th,
    td {
        display: block;
    }

    .overview-table th {
        width: 100%;
    }

    .overview-title h2,
    .recommend_property .header h2 {
        font-size: 24px;
    }

    .property_cards_wrap {
        margin: 0 auto;
        width: 368px;
    }

    .recommend_property .list_button,
    .recommend_property .bg_recommend {
        display: none;
    }

    .property-image .main-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .property-image .main-image img.slide {
        width: 100%;
        height: auto;
    }

    /* 前後ボタンも縮小 */
    .property-image .main-image button.prev,
    .property-image .main-image button.next {
        font-size: 24px;
        padding: 10px;
    }

    .main-image {
        height: auto !important;
    }
}

.info-list .slash {
    font-size: 16px;
    color: #6b6b6b;
    width: 20px;
    display: inline-block;
    text-align: center;
    position: relative;
    top: 2px;
}

.info-list .value {
    color: #000;
    font-size: 16px;
    line-height: 1.6;
    display: inline-block;
    width: calc(100% - 70px - 20px);
}

.info-traffic {
    display: flex;
    align-items: flex-start !important;
}

.info-traffic .slash {
    top: 0 !important;
}

.info-traffic .value {
    display: block !important;
    margin-left: 6px;
}

.info-traffic .value div {
    margin-bottom: 4px;
}

.info-setsudo {
    display: flex;
    align-items: flex-start;
}

.info-setsudo .value {
    display: block;
    margin-left: 6px;
    /* 交通と同じ */
    word-break: break-word;
}

.overview-notes {
    font-size: 14px;
    line-height: 1.8;
    color: #000;
    margin-top: 20px;
    /* 概要表との余白 */
}

/* 右側（枚数表示） */
#caption-box.image-caption .image-count {
    flex: 0 0 auto;
    margin-left: 12px;
    text-align: right;
}

#caption-box.image-caption .image-count {
    margin-left: auto !important;
}

/* li を横並び */
.info-list li {
    display: flex;
    align-items: flex-start;
}

/* 左ラベル（交通・所在地など） */
.info-list li>span:not(.slash):first-of-type {
    width: 127px;
    /* 左列を固定 */
    flex-shrink: 0;
}

/* / を固定位置に */
.info-list .slash {
    width: 20px;
    text-align: center;
    color: #666;
    flex-shrink: 0;
}

/* 右側の本文（残り全部） */
.info-list li>span:not(.slash):last-of-type {
    flex: 1;
}

@media screen and (max-width: 1024px) {
    .thumbnails {
        touch-action: pan-x;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .image-box {
        max-width: 100%;
    }

    .thumbnails {
        display: flex;
        gap: 6px;
        margin: 10px auto 0 auto;
        /* ← 上10px、左右autoで中央寄せ */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        scrollbar-gutter: stable;
        width: fit-content;
        /* ← 中身の幅に合わせて中央に */
        max-width: 100%;
        /* ← はみ出し防止 */
    }

    .property_cards_wrap {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .property_cards {
        padding-left: 10px;
        padding-right: 10px;
    }

    .property-overview {
        padding: 0px 0px;
    }

    .property_cards_wrap {
        width: 100%;
    }

    .image-box {
        max-width: 100%;
    }
}
