/* Comparison Table */
.table-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: var(--space-xl);
    position: relative;
    border: 1px solid var(--gray-100);
}

.table-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-blue), var(--accent-purple));
    z-index: 15;
}

.table-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) transparent;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
    min-width: 800px;
}

.comparison-table thead th {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    font-weight: 700;
    padding: 2rem 1.5rem;
    text-align: left;
    font-size: 1.4rem;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.comparison-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 11;
    border-top-left-radius: var(--radius-xl);
}

.comparison-table thead th:last-child {
    border-top-right-radius: var(--radius-xl);
}

.comparison-table tbody td {
    padding: 1.8rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--bg-white);
    vertical-align: middle;
    transition: all var(--transition-normal);
    font-size: 1.5rem;
    line-height: 1.4;
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--primary-green-dark);
    position: sticky;
    left: 0;
    background: linear-gradient(135deg, var(--bg-green-light) 0%, rgba(240, 253, 244, 0.8) 100%);
    border-right: 2px solid rgba(16, 185, 129, 0.1);
    z-index: 9;
}

.comparison-table tbody tr:hover td {
    background: var(--bg-green-light);
}

.comparison-table tbody tr:hover td:first-child {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-xl);
}

.comparison-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-xl);
}

/* Star ratings */
.comparison-table .stars {
    color: var(--warning-yellow);
    font-size: 1.6rem;
    line-height: 1;
}

/* Spread column styling */
.comparison-table td:nth-child(3) {
    font-weight: 600;
    color: var(--primary-green-dark);
}

/* Rating styling */
.high-rating {
    color: var(--success-green);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 4px;
    font-size: 1.2rem;
}

.normal-rating {
    color: #92400e;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 4px;
    font-size: 1.2rem;
}

/* Currency pairs styling */
.comparison-table td:nth-child(5) {
    font-weight: 600;
    color: var(--secondary-blue-dark);
}

/* Cashback styling */
.comparison-table td:nth-child(6) {
    font-weight: 600;
    color: var(--accent-purple-dark);
    font-size: 1.2rem;
}

/* Button in table */
.comparison-table .btn-sm {
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
    min-width: auto;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile table improvements */
@media (max-width: 768px) {
    .table-wrapper {
        margin: 0 -2rem;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--gray-200);
        border-bottom: 1px solid var(--gray-200);
    }
    
    .comparison-table {
        font-size: 1.2rem;
        min-width: 700px;
    }
    
    .comparison-table thead th {
        padding: 1rem 0.8rem;
        font-size: 1.1rem;
    }
    
    .comparison-table tbody td {
        padding: 1rem 0.8rem;
    }
    
    .comparison-table .btn-sm {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
}

/* Table scroll hint */
.table-scroll-hint {
    display: none;
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-500);
    margin-top: 1rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .table-scroll-hint {
        display: block;
    }
}

/* Ranking Cards */
.rank-1 {
    position: relative;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 0.1%, #ffffff 0.1%, #ffffff 100%);
    border: 2px solid #fbbf24 !important;
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.3) !important;
}

.rank-2 {
    position: relative;
    background: linear-gradient(135deg, #f3f4f6 0%, #9ca3af 0.1%, #ffffff 0.1%, #ffffff 100%);
    border: 2px solid #9ca3af !important;
    box-shadow: 0 15px 45px rgba(156, 163, 175, 0.2) !important;
}

.rank-3 {
    position: relative;
    background: linear-gradient(135deg, #fed7aa 0%, #ea580c 0.1%, #ffffff 0.1%, #ffffff 100%);
    border: 2px solid #ea580c !important;
    box-shadow: 0 15px 45px rgba(234, 88, 12, 0.2) !important;
}

.rank-1::before,
.rank-2::before,
.rank-3::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.8) 50%, transparent 70%);
    border-radius: inherit;
    z-index: -1;
    animation: rankShine 3s ease-in-out infinite;
}

@keyframes rankShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.rank-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    z-index: 5;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.5);
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.5);
}

/* Last Updated */
.last-updated {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-blue-light);
    border-radius: var(--radius-md);
    color: var(--secondary-blue-dark);
    font-size: 1.2rem;
    font-weight: 500;
}

.last-updated-icon {
    color: var(--secondary-blue);
    margin-right: 0.5rem;
}

/* 星評価システム */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #FFD700;
    font-size: 1.6rem;
}

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

.star {
    color: #e5e7eb;
    font-size: 1.4rem;
    transition: color 0.2s ease;
    margin-right: 2px;
}

.star.filled {
    color: #10b981;
}

/* 数値評価付き星 */
.rating-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.rating-score {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.4rem;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.faq-question {
    color: var(--primary-green-dark);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-question::before {
    content: 'Q';
    display: inline-block;
    background: var(--primary-green);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.faq-answer {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 1.4rem;
    margin: 0;
    padding-left: 3.2rem;
}

.faq-answer::before {
    content: 'A';
    display: inline-block;
    background: var(--secondary-blue);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 0.8rem;
    margin-left: -3.2rem;
    flex-shrink: 0;
}

/* Guide Section Styles */
.guide-intro {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-green-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-green);
}

.guide-intro p {
    font-size: 1.6rem;
    color: var(--primary-green-dark);
    margin: 0;
    font-weight: 500;
}

.guide-section-title {
    font-size: 2.2rem;
    color: var(--primary-green-dark);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.guide-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-green), var(--success-green));
    border-radius: 2px;
}

/* Steps Container */
.guide-steps {
    margin-bottom: 5rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.step-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 35px;
    bottom: -2rem;
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, var(--primary-green), transparent);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-content h4 {
    color: var(--primary-green-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-content p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 1.4rem;
    margin: 0;
}

/* Terms Grid */
.guide-terms {
    margin-bottom: 5rem;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.term-card {
    background: var(--bg-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.term-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-blue-dark) 100%);
}

.term-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-blue);
}

.term-title {
    color: var(--secondary-blue-dark);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
