/* CSS Variables & Reset */
:root {
    --primary-color: #0f172a;
    /* Deep Navy */
    --accent-color: #3b82f6;
    /* Bright Blue */
    --accent-hover: #2563eb;
    --text-color: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    line-height: 1.3;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px -1px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.pc-only {
    display: inline;
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--accent-color);
}

.header-cta {
    margin-left: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 30px 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        display: none;
        flex-direction: column;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
        gap: 20px;
        text-align: center;
    }

    .header-cta {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 0;
    background-color: var(--primary-color);
    /* Fallback */
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
}

/* Merit Section */
.merit {
    background-color: var(--light-bg);
}

.merit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.merit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.merit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.merit-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.merit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.merit-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Comparison Section */
.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.comparison-table .highlight-col {
    background-color: #eff6ff;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 10px;
}

.comparison-table .badge {
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 5px;
}

.comparison-table td i {
    margin-right: 8px;
}

.comparison-table .fa-rocket,
.comparison-table .fa-lock,
.comparison-table .fa-face-smile,
.comparison-table .fa-yen-sign {
    color: var(--accent-color);
}

.comparison-table .fa-spinner,
.comparison-table .fa-triangle-exclamation,
.comparison-table .fa-wrench {
    color: #94a3b8;
}

.comparison-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Usage Section */
.usage {
    background-color: var(--primary-color);
    color: var(--white);
}

.usage .section-title {
    color: var(--white);
}

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

.usage-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    transition: var(--transition);
}

.usage-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.usage-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.usage-item p {
    color: #94a3b8;
}

/* Flow Section */
.flow-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    margin-bottom: -20px;
    font-family: var(--font-heading);
    z-index: -1;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.step p {
    color: #64748b;
    font-size: 0.95rem;
}

.flow-note {
    text-align: center;
    background: #fffbeb;
    color: #92400e;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    width: 100%;
    margin-top: 20px;
}

/* FAQ Section */
.faq {
    background-color: var(--light-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

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

.faq-question i {
    color: var(--accent-color);
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer p {
    padding-bottom: 25px;
    color: #64748b;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.faq-question.active+.faq-answer {
    max-height: 200px;
    /* Approximate max height */
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #1e40af 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btn {
    background-color: var(--white);
    color: var(--accent-color);
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    background-color: #f8fafc;
    color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.copyright {
    color: #64748b;
    font-size: 0.9rem;
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}