/**
 * トップページ改善用CSS
 */

/* 運営企業紹介のスマホ対応 */
.trust-cta-section {
    overflow: hidden;
}

.trust-cta-split {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.trust-cta-left,
.trust-cta-right {
    flex: 1;
    min-width: 280px;
}

.company-description {
    word-break: break-word;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .trust-cta-split {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .trust-cta-buttons .btn {
        width: 100%;
    }
    
    .company-logo {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* 債務整理対応法務事務所のレイアウト改善 */
.law-office-card--recommended {
    position: relative;
}

.law-office-card--recommended .office-type-badge {
    position: static;
    display: block;
    width: fit-content;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
}

.law-office-card--recommended .law-office-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.law-office-card--recommended .law-office-logo img {
    max-width: 280px;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .law-office-card--recommended .office-type-badge {
        margin-bottom: 1rem;
    }
    
    .law-office-card--recommended .law-office-logo img {
        max-width: 200px;
    }
}

/* 債務整理対応法務事務所セクション */
.ranking-section .office-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.office-ranking-item {
    position: relative;
}

/* トップページ専用の事務所カード調整 */
.office-ranking-item .law-office-card {
    padding: 2rem;
}

/* CTA画像スタイル */
.office-ranking-item .law-office-cta-image {
    text-align: center;
    margin-top: 1.5rem;
}

.office-ranking-item .law-office-cta-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* アクションボタンエリア */
.office-ranking-item .law-office-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.office-ranking-item .btn-official-debt {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #ea580c;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 0.5rem;
}

.office-ranking-item .btn-official-debt:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.office-ranking-item .office-detail-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.office-ranking-item .office-detail-link:hover {
    text-decoration: underline;
}

@media (min-width: 769px) {
    .office-ranking-item .law-office-header {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .office-ranking-item .law-office-logo {
        flex-shrink: 0;
    }
    
    .office-ranking-item .law-office-info {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .office-ranking-item .law-office-actions {
        padding: 0 1rem;
    }
    
    .office-ranking-item .btn-official-debt {
        width: 100%;
        display: block;
    }
}

/* 口コミセクションの余白調整 */
.reviews-section .review-list {
    margin-top: 0;
}

/* 口コミ収集方法の説明セクション（新デザイン） */
.review-source-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.review-source-info__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.review-source-info__intro {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.review-source-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-source-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: block !important;
    overflow: hidden !important;
}

.review-source-label {
    display: block !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    width: 100% !important;
}

.review-source-label--internet {
    color: #0891b2;
}

.review-source-label--photo {
    color: #16a34a;
}

.review-source-label--office {
    color: #ea580c;
}

.review-source-label--direct {
    color: #ca8a04;
}

.review-source-desc {
    display: block !important;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    width: 100% !important;
    clear: both !important;
}

.review-source-desc a {
    color: #007cba;
    text-decoration: underline;
}

.review-source-desc a:hover {
    color: #005a8b;
}

.review-source-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .review-source-info {
        padding: 1.5rem;
    }
    
    .review-source-item {
        padding: 1rem;
    }
}

/* 口コミ収集方法の表示を確実に縦並びにする修正 */
.reviews-section .review-source-info .review-source-item {
    display: block !important;
    overflow: hidden !important;
}

.reviews-section .review-source-info .review-source-item .review-source-label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
    float: none !important;
}

.reviews-section .review-source-info .review-source-item .review-source-desc {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-top: 0.5rem !important;
}