:root {
    /* Premium Color Palette */
    --primary: #0f172a;        /* Deep Navy */
    --primary-light: #1e293b;
    --accent: #fbbf24;         /* Gold */
    --accent-dark: #d97706;
    --secondary: #f97316;      /* Orange for CTA */
    --success: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --highlight: #fffdeb;      /* Highlight background */
    --accent-soft: #fff7ed;    /* Soft accents */
    
    /* Glassmorphism & UI Elements */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --premium-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Advertisement Container */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    width: 100%;
    overflow: hidden;
}

.ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Hub */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Header - Glassmorphism */
#main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    transition: var(--transition);
}

#main-header.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

#logo span {
    background: linear-gradient(to right, var(--accent-dark), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 4px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-dark);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section - Ultra Premium */
#hero {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: var(--white);
    padding: 100px 0 140px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content h2 span {
    display: block;
    background: linear-gradient(to right, #fbbf24, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover { transform: translateY(-10px); }

.feature-icon { font-size: 3rem; margin-bottom: 20px; }

/* Table - Bright & Clear */
.table-wrapper {
    background: white;
    border-radius: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    border: 1px solid #f1f5f9;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th { 
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white; 
    padding: 24px 20px; 
    text-align: left;
    font-size: 1rem;
    border-bottom: 2px solid var(--accent);
}

td { 
    padding: 20px; 
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    vertical-align: middle;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

tr.highlight-row {
    background-color: var(--highlight);
}

.cell-point {
    color: var(--secondary);
    font-weight: 700;
}

/* FAQ Accordion */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.faq-question {
    width: 100%;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--secondary);
}

.faq-item.active .faq-question {
    background-color: #f8fafc;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
}

.faq-answer-inner {
    padding: 0 30px 24px;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed */
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--premium-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Diagnosis Box - Floating Card */
#diagnosis {
    margin-top: -80px;
    position: relative;
    z-index: 20;
}

.diagnosis-box {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.diagnosis-box h2 {
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 1.1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.radio-group input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-dark);
}

.radio-group label:hover {
    border-color: var(--accent);
    background: #fffbeb;
}

.radio-group label.active {
    border-color: var(--accent-dark);
    background: #fffbeb;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1);
}

/* Ranking Items - Modern Cards */
#ranking {
    padding: 100px 0;
}

.ranking-item {
    background: var(--white);
    border-radius: 24px;
    padding: 0;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    display: block;
}

.ranking-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
}

.rank-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.rank-1 .rank-badge { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; }
.rank-2 .rank-badge { background: linear-gradient(135deg, #94a3b8, #64748b); color: white; }
.rank-3 .rank-badge { background: linear-gradient(135deg, #d97706, #92400e); color: white; }

.ranking-content {
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    width: 100%;
}

.ranking-image {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
}

.ranking-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.ranking-info {
    padding: 40px;
}

.ranking-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.ranking-info .catch {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 24px;
    display: block;
}

.ranking-points {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.point-item i {
    color: var(--success);
}

.editor-voice {
    background: #fffbeb;
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 0 12px 12px 0;
}

.editor-voice strong {
    color: var(--accent-dark);
    display: block;
    margin-bottom: 8px;
}

.ranking-cta {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border-left: 1px solid #f1f5f9;
}

.loan-specs {
    width: 100%;
    margin-bottom: 24px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.spec-label { color: var(--text-muted); }
.spec-value { font-weight: 700; color: var(--primary); }

/* Highlight Badge */
.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.highlight-badge i {
    font-size: 0.8rem;
}

/* Buttons & Interactive */
.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(to right, var(--accent-dark), var(--secondary));
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary), #ea580c);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Tablets & Mobile */
@media (max-width: 1024px) {
    .ranking-content {
        grid-template-columns: 1fr;
    }
    .ranking-image {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 40px 20px;
    }
    .ranking-cta {
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding: 30px 20px;
    }
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content h2 { font-size: 2.8rem; }
    .hero-trust { justify-content: center; flex-wrap: wrap; gap: 12px; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    #main-header .container {
        flex-direction: column;
        gap: 12px;
        padding: 10px 16px;
    }
    
    #logo {
        font-size: 1.3rem;
    }

    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.85rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .diagnosis-box {
        padding: 30px 20px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .ranking-info h3 {
        font-size: 1.5rem;
    }

    /* Table adjustments for small mobile */
    td, th {
        padding: 15px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: center;
    }
}
