/**
 * フロントページ統計セクションのスタイル
 */

/* カードローン商品別、みなさんの審査状況 */
.approval-stats-section {
    padding: 40px 0;
}

.approval-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.approval-stat-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approval-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.approval-stat-header {
    text-align: center;
    margin-bottom: 20px;
}

.approval-stat-logo {
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
}

.approval-stat-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.approval-stat-product {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.approval-stat-body {
    padding: 20px 0;
}

.approval-rate-display {
    text-align: center;
    margin-bottom: 20px;
}

.approval-rate-number {
    font-size: 36px;
    font-weight: bold;
    color: #2c5aa0;
}

.approval-rate-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.approval-bar-chart {
    margin: 20px 0;
}

.approval-bar-container {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
}

.approval-bar-approved,
.approval-bar-rejected {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    transition: width 0.5s ease;
}

.approval-bar-approved {
    background: #22c55e;
}

.approval-bar-rejected {
    background: #ef4444;
}

.bar-label {
    white-space: nowrap;
    padding: 0 10px;
}

.approval-bar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.legend-item::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 5px;
}

.legend-approved::before {
    background: #22c55e;
}

.legend-rejected::before {
    background: #ef4444;
}

.approval-stat-total {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.approval-stat-footer {
    text-align: center;
    margin-top: 20px;
}

/* みなさんのカードローン審査体験談 */
.experience-overview-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.experience-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.experience-overview-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.experience-overview-card--main {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .experience-overview-card--main {
        grid-column: span 1;
    }
}

.experience-overview-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.experience-overview-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.overview-stat-item {
    text-align: center;
}

.overview-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.overview-stat-number.approval-rate {
    color: #22c55e;
}

.overview-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.overview-pie-chart {
    text-align: center;
    margin-top: 20px;
}

.age-stats-list,
.occupation-stats-list {
    margin-top: 15px;
}

.age-stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.age-stat-label {
    width: 80px;
    font-size: 14px;
    color: #666;
}

.age-stat-bar {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 0 10px;
    overflow: hidden;
}

.age-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.5s ease;
}

.age-stat-count {
    width: 60px;
    text-align: right;
    font-size: 14px;
    color: #333;
}

.occupation-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.occupation-stat-item:last-child {
    border-bottom: none;
}

.occupation-stat-label {
    font-size: 14px;
    color: #333;
}

.occupation-stat-count {
    font-size: 14px;
    color: #666;
}

/* 経験者から寄せられたカードローン審査体験談 */
.recent-experiences-section {
    padding: 40px 0;
}

.recent-experiences-list {
    margin-top: 30px;
}

.experience-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.experience-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.experience-approved {
    border-left-color: #22c55e;
}

.experience-rejected {
    border-left-color: #ef4444;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.experience-product {
    font-size: 16px;
    color: #333;
}

.result-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.result-approved {
    background: #22c55e;
}

.result-rejected {
    background: #ef4444;
}

.experience-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.meta-item {
    font-size: 13px;
    color: #666;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.experience-comment {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.experience-date {
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* カードローン商品別、みなさんの適用金利状況 */
.interest-stats-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.interest-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.interest-stat-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interest-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.interest-stat-header {
    text-align: center;
    margin-bottom: 20px;
}

.interest-stat-logo {
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
}

.interest-stat-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.interest-stat-product {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.interest-stat-body {
    padding: 20px 0;
}

.interest-rate-display {
    text-align: center;
    margin-bottom: 20px;
}

.interest-rate-number {
    font-size: 36px;
    font-weight: bold;
    color: #f59e0b;
}

.interest-rate-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.interest-range {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.interest-range-item {
    text-align: center;
}

.range-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.range-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.interest-stat-total {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.interest-stat-footer {
    text-align: center;
    margin-top: 20px;
}

/* 経験者から寄せられたカードローン金利報告談 */
.recent-interest-section {
    padding: 40px 0;
}

.recent-interest-list {
    margin-top: 30px;
}

.interest-experience-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #f59e0b;
    transition: all 0.3s ease;
}

.interest-experience-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.interest-experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.interest-experience-product {
    font-size: 16px;
    color: #333;
}

.rate-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #f59e0b;
}

.interest-experience-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.interest-experience-comment {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.interest-experience-date {
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* 共通ボタンスタイル */
.btn-sm.btn-outline {
    padding: 6px 16px;
    font-size: 13px;
    border: 1px solid #2c5aa0;
    color: #2c5aa0;
    background: transparent;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-sm.btn-outline:hover {
    background: #2c5aa0;
    color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .approval-stats-grid,
    .interest-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-header,
    .interest-experience-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .experience-meta,
    .interest-experience-meta {
        gap: 8px;
    }
    
    .meta-item {
        font-size: 12px;
        padding: 2px 6px;
    }
}