/* リフォーム会社一覧ページ専用スタイル */

/* パンくずリスト */
.breadcrumb {
    background-color: #f9f9f9;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    margin-top: 8rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-list li {
    font-size: 1.4rem;
    color: #666;
    position: relative;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 1rem;
    color: #ccc;
}

.breadcrumb-list li a {
    color: #2A9D8F;
}

.breadcrumb-list li a:hover {
    text-decoration: underline;
}

.breadcrumb-list li:last-child {
    color: #333;
    font-weight: 500;
}

/* ページヘッダー */
.page-header {
    padding: 5rem 0;
    background-color: #fff;
    text-align: center;
}

.page-title {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 3px;
    background-color: #2A9D8F;
}

.page-description {
    font-size: 1.8rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 検索フィルターセクション */
.section-padding-sm {
    padding: 5rem 0;
}

.filter-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem;
}

.filter-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #333;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    border-color: #2A9D8F;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    min-width: auto;
    flex: 0 0 auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    user-select: none;
    position: relative;
    padding-left: 3rem;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 2rem;
    width: 2rem;
    background-color: #f1f1f1;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkbox-custom {
    background-color: #e1e1e1;
}

.checkbox-label input:checked ~ .checkbox-custom {
    background-color: #2A9D8F;
}

.checkbox-custom:after {
    content: '';
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkbox-custom:after {
    display: block;
}

.checkbox-label .checkbox-custom:after {
    left: 0.7rem;
    top: 0.3rem;
    width: 0.6rem;
    height: 1.1rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-submit {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* 会社一覧セクション */
.company-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.result-count {
    font-size: 1.6rem;
    color: #666;
}

.count-number {
    font-weight: 700;
    color: #2A9D8F;
    font-size: 1.8rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    font-size: 1.4rem;
    color: #666;
}

.sort-options select {
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.sort-options select:focus {
    border-color: #2A9D8F;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

/* 会社カード */
.company-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.company-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.company-logo {
    height: 200px;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.company-card:hover .company-logo img {
    transform: scale(1.05);
}

.company-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.company-name {
    font-size: 2.2rem;
    margin-right: 2rem;
    color: #333;
}

.company-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.rating-stars {
    color: #FFD700;
    margin-right: 0.5rem;
}

.rating-number {
    font-weight: 700;
    margin-right: 0.5rem;
    color: #333;
}

.review-count {
    font-size: 1.4rem;
    color: #666;
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f1f9f8;
    color: #2A9D8F;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
}

.company-description {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.company-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: #333;
}

.feature-item i {
    color: #2A9D8F;
    margin-right: 0.8rem;
}

.company-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.btn-contact {
    color: #666;
    border-color: #ddd;
}

.btn-contact:hover {
    background-color: #f9f9f9;
    color: #333;
    border-color: #ccc;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    gap: 0.5rem;
}

.pagination-prev,
.pagination-next,
.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pagination-number.active {
    background-color: #2A9D8F;
    color: #fff;
}

.pagination-prev:hover,
.pagination-next:hover,
.pagination-number:hover {
    background-color: #f1f9f8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pagination-number.active:hover {
    background-color: #238a7e;
}

.pagination-prev.disabled,
.pagination-next.disabled {
    color: #ccc;
    pointer-events: none;
    background-color: #f9f9f9;
    box-shadow: none;
}

.pagination-dots {
    margin: 0 0.5rem;
    color: #666;
}

/* アドバイザーCTAセクション */
.advisor-cta-section {
    background-color: #f9f9f9;
}

.advisor-cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.advisor-cta-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.3;
}

.advisor-cta-content p {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 3rem;
}

.advisor-cta-buttons {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.advisor-cta-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* レスポンシブデザイン */
@media (min-width: 768px) {
    .company-card {
        flex-direction: row;
    }
    
    .company-logo {
        width: 300px;
        height: auto;
        min-height: 100%;
    }
    
    .company-info {
        flex: 1;
    }
}

@media (max-width: 992px) {
    .advisor-cta-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .advisor-cta-content {
        text-align: center;
    }
    
    .advisor-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .company-card {
        flex-direction: column;
    }
    
    .company-logo {
        width: 100%;
        height: 200px;
    }
    
    .company-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .company-rating {
        margin-top: 1rem;
    }
    
    .company-actions {
        flex-direction: column;
    }
    
    .pagination-number:not(.active) {
        display: none;
    }
    
    .pagination-number.active,
    .pagination-prev,
    .pagination-next,
    .pagination-dots {
        display: flex;
    }
}

@media (max-width: 576px) {
    .company-sort {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .advisor-cta-buttons {
        flex-direction: column;
    }
}