/* --- 事例一覧ページ専用 --- */
.cases-archive-section {
    padding: 100px 0;
    background-color: #fcfcfc; /* indexの施工事例セクションより少し明るくして区別 */
}

.cases-archive-section .section-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
	margin-bottom: -80px;
}

/* カテゴリタブ */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}



/* カード内のタグ */
.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(58, 56, 53, 0.8);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 12px;
    z-index: 5;
    letter-spacing: 0.05em;
}

.property-img-wrap {
    position: relative; /* タグ配置用 */
}

.property-title {
    font-size: 1rem;
    color: var(--color-muted);
    margin-top: 10px;
}

/* ページネーション */
.pagination {
    display: none !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 80px;
}

.pagination span, .pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination .current {
    background-color: var(--color-dark);
    color: var(--white);
    border-color: var(--color-dark);
}

.pagination a:hover {
    border-color: var(--color-dark);
}

.property-card {
    transition: opacity 0.4s ease, transform 0.4s ease, display 0.4s allow-discrete;
}

/* --- カテゴリタブボタン：中央揃えの修正版 --- */
.tab-btn {
    display: inline-flex;     /* 中身を横並びにする */
    align-items: center;      /* 上下中央 */
    justify-content: center;  /* 左右中央（これでALLのズレが直ります） */
    
    background-color: #ffffff; /* 画像に合わせて白背景 */
    color: #3a3835 !important;
    border: 1px solid #3a3835; /* 枠線 */
    
    padding: 12px 0;          /* 左右パディングを0にして、widthで固定するとより綺麗 */
    width: 140px;             /* ボタンの横幅を統一（ガタつき防止の決定打） */
    
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}



/* 矢印アイコンの調整 */
.tab-btn i {
    font-size: 0.8rem;
    margin-right: 8px;        /* 矢印と文字の間の隙間 */
}

/* アクティブ（ALLなど選択中）のスタイル */
.tab-btn.active {
    background-color: #3a3835 !important;
    color: #ffffff !important;
}

/* ホバー演出 */
.tab-btn:hover {
    background-color: #f8f7f5;
}

/* フィルター時のフェード用 */
.area-section {
    opacity: 1;
    display: block;
}

/* ALL選択時などのセクション間余白 */
.area-section {
    margin-bottom: 80px;
}




/* スマホ対応：ボタンが多いため、横幅を少し詰めたり2列にしたり調整 */
@media screen and (max-width: 768px) {
    .tab-btn {
        width: 20%;           /* 3列並びにするなど */
        min-width: 100px;
        font-size: 0.85rem;
        padding: 10px 0;
    }

    .cases-archive-section { padding: 60px 0; }
    .cases-archive-section .section-inner { padding: 0 20px; }
    .category-tabs { gap: 10px; }
    .tab-btn { padding: 8px 15px; font-size: 0.75rem; }
}