﻿/* =================================================
物件詳細ページ専用スタイル (style-bukken.css)
================================================== */

/* 物件詳細ページのスライド画像 */
.property-hero-image {
    height: 65vh;
    object-fit: cover;
    min-height: 400px;
    max-height: 600px;
}

@media (max-width: 767.98px) {
    .property-hero-image {
        height: 50vh;
        min-height: 250px;
    }
}

/* =================================================
物件詳細：特徴表示バー
================================================== */
.feature-bar {
    background-color: #212529;
    color: #fff;
    padding: 0.75rem 0;
}

.feature-bar .row {
    --bs-gutter-x: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    min-height: 80px;
    position: relative;
}

/* 通常テキスト */
.feature-item p {
    margin-bottom: 0;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #ced4da;
}

/* 強調文字 */
.feature-highlight {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* かこむ */
.white-border {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 1px 5px 3px 5px;
    margin: 0 2px 0 2px;
    line-height: 1.1;
}
.black-border {
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.8);
    padding: 1px 5px 3px 5px;
    margin: 0 2px 0 2px;
    line-height: 1.1;
}



/* アンダーライン */
.white-underline {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 1px;
    padding-bottom: 2px;
}
.black-underline {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(24, 35, 62, 0.8));
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 1px;
    padding-bottom: 2px;
}


/* 区切り線（PC） */
@media (min-width: 768px) {
    .feature-item:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* 区切り線 */
@media (max-width: 767.98px) {
    .feature-item {
        min-height: 70px;
    }
    .feature-item p {
        font-size: 0.8rem;
    }
    .feature-highlight {
        font-size: 1rem;
    }
    
    /* 1番目と3番目の右に線 */
    .feature-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    /* 1番目と2番目の下に線 */
    .feature-item:nth-child(1),
    .feature-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}


/* =================================================
物件詳細ヒーローカルーセルのオーバーレイ無効化
================================================== */
#propertyHeroCarousel .carousel-item::after {
    background: none !important;
}

/* =================================================
物件価格表のスタイル
================================================== */
.lot-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #212529;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    line-height: 1;
}

/* =================================================
その他の追加スタイル
================================================== */
.card-body h6 {
    line-height: 1.6;
}

/* =================================================
リンク用 吹き出し
================================================== */
.link-tooltip {
    position: relative;
}

.link-tooltip::before,
.link-tooltip::after {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

.link-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #343a40;
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.link-tooltip::after {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-width: 6px;
    border-style: solid;
    border-color: #343a40 transparent transparent transparent;
}

html:not(.touch-device) .link-tooltip:hover::before,
html:not(.touch-device) .link-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.touch-device .link-tooltip::before,
.touch-device .link-tooltip::after {
    opacity: 1;
    visibility: visible;
}