/* ========================================
   スピードローン - Mobile-First Landing Page
   ======================================== */

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #059669;
    --danger: #dc2626;
    --line-green: #06c755;
    
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--gray-700);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    font-size: 1.1rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.logo-text .accent {
    color: var(--primary);
}

.header-tag {
    background: var(--success);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 0 50px;
    text-align: center;
    color: var(--white);
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

.tag-gold {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: var(--gray-900);
}

.tag-white {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-title .highlight {
    color: #fcd34d;
    font-size: 2rem;
}

.hero-desc {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-desc strong {
    color: #fcd34d;
    font-size: 1.3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.stat {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: var(--radius);
    min-width: 90px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fcd34d;
    line-height: 1;
}

.stat-value small {
    font-size: 0.8rem;
}

.stat-label {
    font-size: 0.65rem;
    opacity: 0.9;
    margin-top: 4px;
}

.btn-main {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5);
}

.btn-main:active {
    transform: scale(0.98);
}

.btn-text {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
}

.btn-sub {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 4px;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.75rem;
    opacity: 0.85;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 50px 0;
    background: var(--white);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 28px;
    color: var(--gray-800);
}

.section-title .accent {
    color: var(--primary);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}

.feature-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ========================================
   Steps Section
   ======================================== */
.steps {
    padding: 50px 0;
    background: var(--gray-50);
}

.step-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.step-item {
    text-align: center;
    flex: 1;
    max-width: 100px;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    margin: 0 auto 10px;
}

.step-content h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.step-content p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.step-arrow {
    color: var(--gray-300);
    font-size: 1.2rem;
    font-weight: 700;
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews {
    padding: 50px 0;
    background: var(--white);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.review-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.review-stars {
    color: var(--accent);
    font-size: 0.8rem;
}

.review-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
}

.cta-label {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-section .btn-main {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 20px 24px;
}

.btn-large .btn-text {
    font-size: 1.1rem;
}

/* ========================================
   Company Section
   ======================================== */
.company {
    padding: 40px 0;
    background: var(--gray-100);
}

.company-info {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.company-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    font-size: 0.8rem;
}

.info-label {
    min-width: 90px;
    color: var(--gray-500);
}

.info-value {
    color: var(--gray-700);
}

.company-note {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--gray-800);
    padding: 30px 0 100px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.copyright {
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* ========================================
   Fixed Bottom CTA
   ======================================== */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 999;
}

.btn-fixed {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
}

/* Modal Progress */
.modal-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    white-space: nowrap;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.required {
    color: var(--danger);
    font-size: 0.75rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--white);
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Amount Options */
.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount-option {
    cursor: pointer;
}

.amount-option input {
    display: none;
}

.amount-option span {
    display: block;
    padding: 12px 8px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.amount-option:hover span {
    border-color: var(--primary-light);
}

.amount-option input:checked + span {
    background: rgba(30, 64, 175, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: scale(0.98);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 16px;
}

/* ========================================
   Result Step
   ======================================== */
.result-header {
    justify-content: center;
    position: relative;
}

.result-badge {
    background: var(--success);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.result-header .modal-close {
    position: absolute;
    right: 20px;
}

.result-body {
    text-align: center;
}

.result-animation {
    margin-bottom: 16px;
}

.check-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--success) 0%, #10b981 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
    font-size: 2rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.result-greeting {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.result-greeting span {
    font-weight: 700;
    color: var(--gray-800);
}

.result-card {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.result-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.result-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.result-amount .yen {
    font-size: 1.2rem;
    font-weight: 700;
}

.result-amount .amount {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.result-rate {
    font-size: 0.85rem;
    opacity: 0.8;
}

.result-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.benefit {
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* LINE Section */
.line-section {
    background: #f0fff4;
    border: 2px solid var(--line-green);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.line-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.line-logo {
    width: 40px;
    height: 40px;
}

.line-text {
    text-align: left;
}

.line-text strong {
    display: block;
    font-size: 1rem;
    color: var(--gray-800);
}

.line-text span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.btn-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--line-green);
    color: var(--white);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(6, 199, 85, 0.3);
    transition: all 0.3s ease;
}

.btn-line:hover {
    background: #00b900;
    transform: translateY(-2px);
}

.btn-line:active {
    transform: scale(0.98);
}

.line-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 12px;
}

/* ========================================
   Utilities
   ======================================== */
.error-input {
    border-color: var(--danger) !important;
}

.error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* ========================================
   Desktop Adjustments
   ======================================== */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-title .highlight {
        font-size: 2.6rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat {
        padding: 16px 24px;
        min-width: 120px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .modal {
        border-radius: var(--radius-lg);
        margin: auto;
        max-height: 85vh;
    }
    
    .modal-overlay.active {
        align-items: center;
        padding: 20px;
    }
    
    @keyframes slideUp {
        from { 
            transform: translateY(30px);
            opacity: 0;
        }
        to { 
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .footer {
        padding-bottom: 40px;
    }
    
    .fixed-cta {
        display: none;
    }
}
