/**
 * Property Single Page Styles
 * 物件詳細ページ固有のスタイル
 * section-slider.css をベースに、プラグインCSS上書き + テーブルUI改善
 */

/* ============================================
   1. プラグインCSSリセット
   style2016.css の .list_picsam img を上書き
   ============================================ */

#list_simplepage2 .list_picsam {
    margin-bottom: 16px;
    float: none;
    width: 100%;
}

#list_simplepage2 .list_picsam::after {
    display: none;
}

/* プラグインの画像グリッドスタイルをリセット */
#list_simplepage2 .list_picsam .section-slider img {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    aspect-ratio: auto;
    object-fit: contain;
}

/* ============================================
   2. 物件詳細ページ固有スライダー調整
   ============================================ */

.property-section-slider {
    margin-top: 0;
}

/* 物件画像はアスペクト比を維持しつつ高さ制限 */
.property-section-slider .section-slider-slide img {
    max-height: 500px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Lightboxリンクのスタイル */
.property-section-slider .section-slider-slide a {
    display: block;
    width: 100%;
    text-decoration: none;
    line-height: 0;
}

/* ============================================
   3. 物件詳細 レイアウト改善
   ============================================ */

/* 2カラムレイアウトを解除してフル幅に */
#list_simplepage2 .list_simple_box {
    display: block;
}

#list_simplepage2 .list_simple_box .list_detail {
    float: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* タイトル */
#list_simplepage2 h1.entry-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: #2d3748;
    line-height: 1.4;
    margin-bottom: 16px;
    padding: 0 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   4. 価格セクション
   ============================================ */

#list_simplepage2 .list_price {
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid #e3edf5;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
}

#list_simplepage2 .list_price.rent {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
}

/* 賃料/価格行 - 所在地テーブル内 */
#list_simplepage2 #list_add .list_add_price th {
    color: #1a73e8;
    font-weight: 700;
}

#list_simplepage2 #list_add .list_add_price td {
    font-size: 1.2em;
    font-weight: 700;
    color: #0b63c5;
}

#list_simplepage2 .list_price .dpoint4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5282;
}

/* ============================================
   5. 詳細テーブル改善
   ============================================ */

#list_simplepage2 .list_detail table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e3edf5;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

#list_simplepage2 .list_detail table th {
    background: #f0f5fb;
    font-weight: 600;
    color: #3e5463;
    padding: 10px 14px;
    white-space: nowrap;
    border-bottom: 1px solid #e3edf5;
    border-right: 1px solid #e3edf5;
}

#list_simplepage2 .list_detail table td {
    padding: 10px 14px;
    line-height: 1.6;
    color: #4a5568;
    border-bottom: 1px solid #e3edf5;
}

#list_simplepage2 .list_detail table tr:last-child th,
#list_simplepage2 .list_detail table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   6. プラグインのお問い合わせセクション非表示
   ============================================ */

#toiawasesaki,
#contact_form,
#ssl_botton {
    display: none;
}

/* ============================================
   7. fudoページ レイアウト・フッター（背景以外トップページと統一）
   ============================================ */

.single-fudo .site-shell {
    gap: 0;
}

.single-fudo .site-footer {
    color: #3e5463;
    padding: 40px 24px 25px;
    font-family: var(--font-base);
    border-top: 1px solid #e0e6ed;
}

/* ============================================
   8. レスポンシブ
   ============================================ */

@media (max-width: 960px) {
    .single-fudo .site-footer {
        padding: 30px 16px 20px;
    }

    .single-fudo .footer-links-section {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .single-fudo .footer-link {
        border-right: none;
        padding: 8px 12px;
        background: #eef4fb;
        border-radius: 6px;
    }
}

@media (max-width: 768px) {
    .property-section-slider .section-slider-slide img {
        max-height: 350px;
        border-radius: 8px;
    }

    #list_simplepage2 .list_simple_box .list_detail {
        padding: 0 12px;
    }

    #list_simplepage2 h1.entry-title {
        padding: 0 12px;
    }

    #list_simplepage2 .list_detail table th,
    #list_simplepage2 .list_detail table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .property-section-slider .section-slider-slide img {
        max-height: 280px;
    }

    #list_simplepage2 .list_price {
        padding: 12px 16px;
    }

    #list_simplepage2 .list_price .dpoint4 {
        font-size: 1.3rem;
    }

    #list_simplepage2 .list_detail table th,
    #list_simplepage2 .list_detail table td {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
}
