.index-property-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: #dc3545;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}/* index.css - トップページ専用スタイル（CSS競合解決版） */

/* ========================================
   ヒーローセクション（既存構造活用レイヤー重ね）
======================================== */
.hero {
    height: 60vh;
    min-height: 450px;
    max-height: 60vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: calc(-1 * var(--header-height)) 0 0 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.1), rgba(107, 69, 33, 0.3));
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    width: auto;
}

.hero-content h1 {
    font-family: var(--font-accent);
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: rgba(107, 142, 35, 0.7);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
}

.hero-content p {
    font-family: var(--font-accent);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    background: rgba(255, 150, 51, 0.7);
    padding: 0.3rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

/* 画像コンテナ（既存クラス活用） */
.hero-images-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

/* 画像スライド（JSで完全制御・競合回避版） */
.hero-image-slide {
    position: absolute;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    /* サイズと位置は完全にJSで制御 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* モバイル画像表示調整 */
@media (max-width: 768px) {
    .hero-image-slide img {
        object-position: center 25%; /* 画像上部（看板部分）を表示 */
    }
    
    .hero-content {
        bottom: 50px; /* モバイル時は看板文字を少し上に */
        width: 90%;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-3xl);
        padding: 0.4rem 1rem;
    }
    
    .hero-content p {
        font-size: var(--font-size-lg);
        padding: 0.25rem 0.8rem;
    }
    /* 矢印ナビゲーションを非表示 */
    .hero .hero-navigation {
    display: none;
  }
}

@media (max-width: 480px) {
    .hero-image-slide img {
        object-position: center 20%; /* 小型モバイルはより上部を表示 */
    }
    
    .hero-content {
        bottom: 40px;
        width: 95%;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-2xl);
        padding: 0.3rem 0.8rem;
    }
    
    .hero-content p {
        font-size: var(--font-size-base);
        padding: 0.2rem 0.6rem;
    }
    .hero .hero-navigation {
    display: none;
  }
}

/* メイン画像用（data-index="main"） */
.hero-image-slide[data-index="main"] {
    /* JSで動的に設定される */
}

.hero-image-slide[data-index="main"] img {
    /* JSで動的に設定される */
}


/* 左右矢印ナビゲーション */
.hero-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 20;
    pointer-events: none;
}

.hero-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-full);
    border: 3px solid var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow-lg);
    pointer-events: auto;
    outline: none;
    backdrop-filter: blur(10px);
}

.hero-nav-prev {
    background: rgba(107, 142, 35, 0.9);
    border-color: var(--accent-green);
}

.hero-nav-next {
    background: rgba(255, 150, 51, 0.9);
    border-color: var(--accent-orange);
}

.hero-nav-arrow {
    font-size: 32px;
    font-weight: bold;
    color: var(--white);
    line-height: 1;
    font-family: Arial, sans-serif;
}

.hero-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--box-shadow-xl);
}

.hero-nav-prev:hover {
    background: rgba(90, 122, 31, 0.95);
    border-color: #5a7a1f;
}

.hero-nav-next:hover {
    background: rgba(230, 133, 31, 0.95);
    border-color: #e6851f;
}

/* ドットインジケーター */
.hero-image-selector {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 15;
}

.hero-image-btn {
    width: 16px;
    height: 16px;
    border: 3px solid var(--white);
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 0;
    padding: 0;
    outline: none;
    background: transparent;
}

.hero-image-btn:nth-child(1) { background: var(--accent-green); }
.hero-image-btn:nth-child(2) { background: var(--accent-orange); }
.hero-image-btn:nth-child(3) { background: var(--accent-green); }

.hero-image-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-image-btn.active {
    border-width: 4px;
    box-shadow: 0 0 0 2px var(--white), 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

.hero-image-btn:nth-child(1).active { border-color: var(--accent-green); }
.hero-image-btn:nth-child(2).active { border-color: var(--accent-orange); }
.hero-image-btn:nth-child(3).active { border-color: var(--accent-green); }


/* ========================================
   会社紹介セクション（CSS変数統一）
======================================== */
.company-intro {
    background: 
        repeating-linear-gradient(
            0deg,
            #faf7f0 0px,
            #faf7f0 1px,
            #f8f5ee 1px,
            #f8f5ee 2px,
            #f6f3ec 2px,
            #f6f3ec 3px,
            #f4f1ea 3px,
            #f4f1ea 4px,
            #f9f6ef 4px,
            #f9f6ef 6px
        ),
        linear-gradient(0deg, #f7f4ed 0%, #faf7f0 50%, #f8f5ee 100%);
    padding: var(--spacing-xxl);
    text-align: center;
    position: relative;
    border: var(--border-width) solid #e8ddd0;
    border-radius: var(--border-radius-sm);
    box-shadow: 
        0 8px 25px rgba(139, 90, 43, 0.08),
        0 3px 8px rgba(139, 90, 43, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 90, 43, 0.05);
    color: var(--primary-color);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.company-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 90, 43, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 90, 43, 0.03) 0%, transparent 50%);
    border-radius: var(--border-radius-sm);
    z-index: 1;
}

.company-intro p {
    position: relative;
    z-index: 2;
    margin: 0;
}

/* ========================================
   サービスセクション（完全修正版）
======================================== */
.business-services {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #f7f4ed 0%, #f2ede5 50%, #ede8e0 100%);
    position: relative;
}

.business-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(139, 90, 43, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 90, 43, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.business-services .container {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    align-items: stretch; /* 全カードを同じ高さに */
}

.new-service-box {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex; /* Flexbox レイアウト */
    flex-direction: column; /* 縦方向に配置 */
    justify-content: space-between; /* 内容を均等配置 */
}

.new-service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(139, 90, 43, 0.02) 0%, transparent 70%);
    z-index: 1;
}

.new-service-box > * {
    position: relative;
    z-index: 2;
}

.new-service-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-xl);
}

/* サービスリンクのスタイル */
.service-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-link:hover {
    text-decoration: none;
    color: inherit;
}

.new-icon-wrapper {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.green-circle-icon,
.orange-circle-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow-md);
}

.green-circle-icon {
    background: linear-gradient(135deg, var(--accent-green) 0%, #5a7a1f 100%);
}

.orange-circle-icon {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #cc7a29 100%);
}

.new-service-box:hover .green-circle-icon,
.new-service-box:hover .orange-circle-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--box-shadow-xl);
}

.new-service-box h3 {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
}

.new-service-box p {
    color: #5d4e3a;
    line-height: var(--line-height-normal);
    margin-bottom: 0;
    font-size: var(--font-size-xs);
}

/* サービスボックスの背景とシャドウ（完全修正版） */
.new-service-box:nth-child(1),
.new-service-box:nth-child(3) {
    background: rgba(107, 142, 35, 0.05);
    box-shadow: 
        0 5px 20px rgba(107, 142, 35, 0.3),
        0 0 0 1px rgba(107, 142, 35, 0.1),
        0 0 20px rgba(107, 142, 35, 0.15);
}

.new-service-box:nth-child(1):hover,
.new-service-box:nth-child(3):hover {
    background: rgba(107, 142, 35, 0.08);
    box-shadow: 
        0 15px 35px rgba(107, 142, 35, 0.4),
        0 0 0 1px rgba(107, 142, 35, 0.2),
        0 0 30px rgba(107, 142, 35, 0.25);
}

.new-service-box:nth-child(2),
.new-service-box:nth-child(4) {
    background: rgba(255, 150, 51, 0.05);
    box-shadow: 
        0 5px 20px rgba(255, 150, 51, 0.3),
        0 0 0 1px rgba(255, 150, 51, 0.1),
        0 0 20px rgba(255, 150, 51, 0.15);
}

.new-service-box:nth-child(2):hover,
.new-service-box:nth-child(4):hover {
    background: rgba(255, 150, 51, 0.08);
    box-shadow: 
        0 15px 35px rgba(255, 150, 51, 0.4),
        0 0 0 1px rgba(255, 150, 51, 0.2),
        0 0 30px rgba(255, 150, 51, 0.25);
}

.services-contact-section {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
}

/* ========================================
   ニュースセクション（縦幅調整・バッジ統一版・中央寄せ修正）
======================================== */
.news-section {
    background: linear-gradient(135deg, #f7f4ed 0%, #f2ede5 50%, #ede8e0 100%);
    position: relative;
}

.index-news-section {
    background: transparent;
}

.index-news-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  /* 追加：完全中央寄せ */
    text-align: center;       /* 追加：テキストも中央寄せ */
    gap: var(--spacing-sm);  
    max-width: 800px;
    margin: 0 auto;
    width: 100%;              /* 追加：幅を確実に指定 */
}

.index-news-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.index-news-link:hover {
    text-decoration: none;
    color: inherit;
}

.index-news-item {
    padding: var(--spacing-xs) var(--spacing-md) var(--spacing-md) var(--spacing-md);
    border-radius: var(--border-radius);  
    transition: var(--transition);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 70px;
    max-height: 90px;
}

/* ニュースアイテムの背景とシャドウ（統一バッジ対応） */
.index-news-item:has(.badge.news.売買) {
    background: rgba(107, 142, 35, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-news-item:has(.badge.news.売買):hover {
    background: rgba(107, 142, 35, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-news-item:has(.badge.news.賃貸) {
    background: rgba(255, 150, 51, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-news-item:has(.badge.news.賃貸):hover {
    background: rgba(255, 150, 51, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-news-item:has(.badge.news.お知らせ) {
    background: rgba(123, 164, 40, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-news-item:has(.badge.news.お知らせ):hover {
    background: rgba(123, 164, 40, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-news-item:has(.badge.news.つぶやき) {
    background: rgba(255, 150, 51, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-news-item:has(.badge.news.つぶやき):hover {
    background: rgba(255, 150, 51, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-news-item:has(.badge.news.管理) {
    background: rgba(139, 90, 43, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-news-item:has(.badge.news.管理):hover {
    background: rgba(139, 90, 43, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: var(--transition);
}

.index-news-item:hover::before {
    transform: scaleX(1);
}

.index-news-item:has(.badge.news.売買)::before {
    background: var(--accent-green);
}

.index-news-item:has(.badge.news.賃貸)::before {
    background: var(--accent-orange);
}

.index-news-item:has(.badge.news.お知らせ)::before {
    background: #7ba428;
}

.index-news-item:has(.badge.news.つぶやき)::before {
    background: var(--accent-orange);
}

.index-news-item:has(.badge.news.管理)::before {
    background: var(--primary-color);
}

.index-news-item:hover {
    transform: translateY(-5px);
}

.index-news-main-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    width: 100%;
    min-height: 55px;
}

.index-news-main-content.no-image {
    display: block;
    min-height: 55px;
}

.index-news-image-container {
    width: 50px;
    height: 50px;  
    flex-shrink: 0;
    border-radius: var(--border-radius);  
    overflow: hidden; 
    position: relative;
    margin-bottom: var(--spacing-sm);
}

.index-news-image {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.index-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.index-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 55px;
}

.index-news-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--spacing-xs);
    justify-content: center;  /* 追加：バッジを中央寄せ */
}

.index-news-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   物件セクション（CSS変数統一・競合解決・修正版レイアウト）
======================================== */
.index-recommended-properties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 320px));
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    justify-content: center;
    width: 100%;
}

.index-property-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.index-property-link:hover {
    text-decoration: none;
    color: inherit;
}

.index-property-item {
    display: flex;
    flex-direction: column;
    width: 320px;
    height: 400px; /* 430pxから400pxに縮小 */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    background: var(--white); /* 背景を白に固定 */
    box-shadow: var(--box-shadow);
}

/* 物件アイテムの背景とシャドウ（元の色付き背景に戻す） */
.index-property-item:has(.index-property-category.売買) {
    background: rgba(107, 142, 35, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-property-item:has(.index-property-category.売買):hover {
    background: rgba(107, 142, 35, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-property-item:has(.index-property-category.賃貸) {
    background: rgba(255, 150, 51, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-property-item:has(.index-property-category.賃貸):hover {
    background: rgba(255, 150, 51, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-property-item:has(.index-property-category.管理) {
    background: rgba(139, 90, 43, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-property-item:has(.index-property-category.管理):hover {
    background: rgba(139, 90, 43, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-property-item:has(.index-property-category.その他) {
    background: rgba(123, 164, 40, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-property-item:has(.index-property-category.その他):hover {
    background: rgba(123, 164, 40, 0.08);
    box-shadow: var(--box-shadow-lg);
}


.index-property-item:has(.index-property-category.賃貸) {
    background: rgba(255, 150, 51, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-property-item:has(.index-property-category.賃貸):hover {
    background: rgba(255, 150, 51, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-property-item:has(.index-property-category.管理) {
    background: rgba(139, 90, 43, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-property-item:has(.index-property-category.管理):hover {
    background: rgba(139, 90, 43, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-property-item:has(.index-property-category.その他) {
    background: rgba(123, 164, 40, 0.05);
    box-shadow: var(--box-shadow-md);
}

.index-property-item:has(.index-property-category.その他):hover {
    background: rgba(123, 164, 40, 0.08);
    box-shadow: var(--box-shadow-lg);
}

.index-property-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: var(--transition);
    z-index: 1;
}

.index-property-item:hover::before {
    transform: scaleX(1);
}

.index-property-item:has(.index-property-category.売買)::before {
    background: var(--accent-green);
}

.index-property-item:has(.index-property-category.賃貸)::before {
    background: var(--accent-orange);
}

.index-property-item:has(.index-property-category.管理)::before {
    background: var(--primary-color);
}

.index-property-item:has(.index-property-category.その他)::before {
    background: #7ba428;
}

.index-property-item:hover {
    transform: translateY(-5px);
}

/* ========================================
   トップページ物件カード - 新レイアウト（3セクション分離版）
======================================== */

/* メインコンテンツ：画像とコンテンツ部分 */
.index-property-main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.index-property-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 55%;  /* 縦幅を小さく：下のボタンが見えるように調整 */
    overflow: hidden;
}

.index-property-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.index-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.index-property-item:hover .index-property-image img {
    transform: scale(1.05);
}

.property-badges {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    display: flex;
    flex-wrap: wrap;
    z-index: 2;
}

/* ② コンテンツセクション（価格・バッジ・タイトル・説明文） */
.index-property-content-section {
    flex: 1;
    padding: var(--spacing-xs);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

/* ③ ボタンエリア（独立したセクション・中央寄せ） */
.index-property-button-container {
    padding: var(--spacing-xs);
    padding-top: 0;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ボタンの幅調整 */
.index-property-button-container .index-property-detail-btn {
    width: 80%; /* 幅を80%に調整 */
    max-width: 200px; /* 最大幅を制限 */
    min-width: 120px; /* 最小幅を確保 */
}

/* 価格セクション（最上部・中央寄せ・余白削減） */
.index-property-price-section {
    text-align: center;
    padding: calc(var(--spacing-xs) / 2) 0; /* 上下paddingを半分に */
    margin-bottom: calc(var(--spacing-xs) / 2); /* 下marginを半分に */
}

.index-property-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: #dc3545;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* バッジセクション（中央寄せ・余白削減） */
.index-property-badges-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-bottom: calc(var(--spacing-xs) / 2); /* 下marginを半分に */
}

/* タイトルセクション（余白削減・省略対応・padding半分調整） */
.index-property-title-section {
    padding: 0;
    margin-bottom: calc(var(--spacing-xs) / 2); /* 上下のmarginを半分に */
}

.index-property-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
    
    /* 1行超過時の省略表示 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* 説明文（余白調整） */
.index-property-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.3;
    margin: 0;
    flex: 1;
    
    /* 3行まで表示 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 旧レイアウト（使用されなくなったが互換性のため残す） */
.index-property-right-content {
    flex: 1;
    padding: var(--spacing-xs);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

/* ボタンセクション */
.index-property-button-section {
    margin-top: auto;
    padding-top: var(--spacing-xs);
}

/* 従来のメタセクション（非表示化） */
.index-property-meta-section {
    display: none;
}

.index-property-meta-row {
    display: none;
}

.index-property-badges-price {
    display: none;
}

/* ========================================
   バッジスタイル（物件カード用・統一版）
======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

/* 取引種別バッジ */
.badge.transaction.売買 {
    background: #6b8e23;
    color: white;
}

.badge.transaction.賃貸 {
    background: #ff9633;
    color: white;
}

.badge.transaction.管理 {
    background: #8b5a2b;
    color: white;
}

.badge.transaction.その他 {
    background: #7ba428;
    color: white;
}

/* 物件種別バッジ */
.badge.type.mansion {
    background: #6366f1;
    color: white;
}

.badge.type.house {
    background: #10b981;
    color: white;
}

.badge.type.land {
    background: #f59e0b;
    color: white;
}

.badge.type.investment {
    background: #003366;
    color: white;
}

.badge.type.収益物件 {
    background: #003366;
    color: white;
}

.badge.type.apartment {
    background: #8b5cf6;
    color: white;
}

.badge.type.store {
    background: #06b6d4;
    color: white;
}

.badge.type.parking-type {
    background: #64748b;
    color: white;
}

.badge.type.other {
    background: #6b7280;
    color: white;
}

.badge.type.warehouse {
    background: #795548;
    color: white;
}

/* 駐車場バッジ */
.badge.parking {
    background: #28a745;
    color: white;
}

/* 新着バッジ */
.badge.new {
    background: #dc3545;
    color: white;
    animation: none; /* アニメーション削除 */
}

/* 日付バッジ */
.badge.date {
    background: var(--primary-color);
    color: white;
}

/* カテゴリーバッジ */
.badge.category {
    background: #6c757d;
    color: white;
}


/* ========================================
   従来の物件カードスタイル（互換性維持）
======================================== */
.index-property-category {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: 4px 8px;
    border-radius: var(--border-radius);
    color: var(--white);
}

.index-property-category.売買 {
    background: var(--accent-green);
}

.index-property-category.賃貸 {
    background: var(--accent-orange);
}

.index-property-category.管理 {
    background: var(--primary-color);
}

.index-property-category.その他 {
    background: #7ba428;
}

.index-property-detail-btn {
    display: inline-block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--accent-green);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    text-align: center;
    transition: var(--transition);
}

.index-property-detail-btn:hover {
    background: #5a7a1f;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

.index-property-detail-btn.btn-rental {
    background: var(--accent-orange);
}

.index-property-detail-btn.btn-rental:hover {
    background: #e6851f;
}

.index-property-detail-btn.btn-sale {
    background: var(--accent-green);
}

.index-property-detail-btn.btn-sale:hover {
    background: #5a7a1f;
}

.index-property-detail-btn.btn-management {
    background: var(--primary-color);
}

.index-property-detail-btn.btn-management:hover {
    background: #7d5a2f;
}

/* ========================================
   エラーメッセージ・読み込み表示
======================================== */
.loading-message {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.error-message {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--error-color);
    font-size: var(--font-size-base);
    background: rgba(220, 53, 69, 0.1);
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

/* ② 価格セクション */
.index-property-price-section {
    text-align: center;
    padding: 4px 0;
    margin-bottom: 4px;
}

/* ③ バッジセクション */
.index-property-badges-section {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 0;
    margin-bottom: 4px;
}

/* ④ タイトルセクション */
.index-property-title-section {
    text-align: center;
    margin-bottom: 4px;
}

.index-property-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
    
    /* 1行省略 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ⑤ 説明セクション（左右余白拡大） */
.index-property-description-section {
    flex: 1;
    padding: 0 var(--spacing-lg); /* 左右余白をさらに拡大 */
    text-align: center;
}

.index-property-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    
    /* 2行省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ⑥ ボタンエリア */
.index-property-button-container {
    padding: var(--spacing-xs);
    display: flex;
    justify-content: center;
}

/* ボタンサイズ調整 */
.index-property-button-container .index-property-detail-btn {
    width: 70%;
    max-width: 160px;
    font-size: var(--font-size-sm);
}

.hero.section,
section.hero {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

/* ========================================
   物件カルーセル（スマホ版）
======================================== */
.properties-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.property-carousel-slide {
    display: none;
    width: 100%;
}

.property-carousel-slide.active {
    display: block;
}

/* スマホカルーセル用：画像コンテナを相対位置に */
@media (max-width: 768px) {
    .property-carousel-slide .index-property-image-container {
        position: relative;
    }
}

/* ドットインジケーター */
.properties-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    z-index: 10;
}

.property-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    opacity: 0.6;
}

.property-dot.dot-green {
    background-color: #28a745;
}

.property-dot.dot-orange {
    background-color: #fd7e14;
}

.property-dot.active {
    opacity: 1;
    width: 12px;
    height: 12px;
}

.property-dot:hover {
    opacity: 0.8;
}