/**
 * カードローン審査体験談 個別ページスタイル
 */

/* 基本レイアウト */
.experience-single {
    padding: 40px 0;
}

.experience-header {
    margin-bottom: 30px;
}

.experience-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 体験談情報テーブル */
.experience-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.experience-table {
    width: 100%;
    border-collapse: collapse;
}

.experience-table th {
    background: #e9ecef;
    padding: 12px 15px;
    text-align: left;
    font-weight: normal;
    width: 35%;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    color: #495057;
}

.experience-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    color: #212529;
}

.experience-table tr:last-child th,
.experience-table tr:last-child td {
    border-bottom: none;
}

/* 承認・否決バッジ */
.approval-result {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.approval-result--approved {
    background: #d4edda;
    color: #155724;
}

.approval-result--rejected {
    background: #f8d7da;
    color: #721c24;
}

/* 星評価のスタイル */
.rating-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    font-size: 18px;
    line-height: 1;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
    position: relative;
}

.star.empty {
    color: #e0e0e0;
}

.rating-score {
    font-size: 16px;
    font-weight: bold;
    color: #495057;
}

/* サブタイトル */
.experience-subtitle {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-left: 4px solid #007cba;
    padding-left: 10px;
}

/* 体験談コンテンツ */
.experience-content {
    margin-bottom: 40px;
}

.experience-comment {
    background: #fff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 15px;
    color: #333;
}

/* 写真ギャラリー */
.experience-photos {
    margin-bottom: 40px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 関連体験談 */
.related-experiences {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

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

.related-item a {
    display: block;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-item a:hover {
    color: #007cba;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.approval-badge,
.rating-badge {
    display: inline-block;
    font-size: 12px;
}

.approval-badge {
    padding: 2px 8px;
    border-radius: 3px;
}

.approval-badge--approved {
    background: #d4edda;
    color: #155724;
}

.approval-badge--rejected {
    background: #f8d7da;
    color: #721c24;
}

.rating-badge {
    color: #666;
}

/* パンくずリスト調整 */
.c-breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .experience-single {
        padding: 30px 0;
    }
    
    .experience-title {
        font-size: 24px;
    }
    
    .experience-info {
        padding: 15px;
    }
    
    .experience-table th {
        width: 40%;
        font-size: 13px;
        padding: 10px;
    }
    
    .experience-table td {
        font-size: 13px;
        padding: 10px;
    }
    
    .experience-subtitle {
        font-size: 20px;
    }
    
    .experience-comment {
        padding: 20px;
        font-size: 14px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .related-experiences {
        padding: 20px;
    }
    
    .star {
        font-size: 16px;
    }
    
    .rating-score {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .experience-title {
        font-size: 20px;
    }
    
    .experience-table th,
    .experience-table td {
        padding: 8px;
        font-size: 12px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* アクセシビリティ向上 */
.experience-table tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.photo-item:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* 印刷対応 */
@media print {
    .experience-single {
        padding: 0;
    }
    
    .experience-info,
    .related-experiences {
        background: none;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .photo-gallery {
        display: block;
    }
    
    .photo-item {
        display: inline-block;
        width: 30%;
        margin: 0 1% 10px;
    }
}