/* Base & Reset */
:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #ffffff;
    --text-main: #111827;
    --text-muted: #6B7280;
    --bg-main: #ffffff;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-12 { margin-top: 3rem; }
.text-sm { font-size: 0.875rem; }
.text-gray { color: var(--text-muted); }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

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

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

/* Components */
.card {
    background: var(--bg-main);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

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

.btn-secondary {
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--text-main);
}

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

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

.btn-full {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
}
.link-arrow:hover {
    text-decoration: underline;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-label {
    display: block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0;
    background-image: url('hero_bg.webp');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: var(--primary);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Stat Cards */
.stat-card {
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius-lg);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Flow Cards */
.flow-card {
    border-radius: var(--border-radius-lg);
}

.flow-image {
    width: 100%;
    height: 240px;
    background-color: #f3f4f6;
}

.flow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flow-content {
    padding: 2rem;
}

.flow-step {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.flow-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.flow-desc {
    color: var(--text-muted);
}

/* Pricing */
.pricing-container {
    display: flex;
    justify-content: center;
}

.pricing-card {
    max-width: 400px;
    width: 100%;
    padding: 3rem 2rem;
    position: relative;
    border-radius: var(--border-radius-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.1), 0 10px 10px -5px rgba(79, 70, 229, 0.04);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-title {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.pricing-features svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin-right: 0.75rem;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item.accordion {
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.accordion:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.faq-question-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
}

.faq-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
}

.faq-question {
    font-size: 1.125rem;
    margin: 0;
}

.faq-toggle-icon {
    color: var(--primary);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.faq-question-wrapper[aria-expanded="true"] .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-question-wrapper[aria-expanded="true"] + .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 0.9375rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
}

.faq-cta {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.faq-cta-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-cta-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-map {
    min-height: 400px;
    background-color: #e5e7eb;
}

.contact-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-info-text {
    font-size: 1.125rem;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-main);
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.cta-container {
    text-align: center;
    max-width: 800px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #9CA3AF;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-col-title {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-col a {
    display: block;
    color: #9CA3AF;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 2rem 0;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 9999px;
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 6rem 0 4rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .flow-image {
        height: 180px;
    }

    .flow-content {
        padding: 1.5rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .faq-question-wrapper {
        padding: 1.25rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .hero-actions, .cta-actions {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
        padding: 6rem 2rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease-in-out;
        z-index: 1005;
        align-items: flex-start;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a:not(.btn) {
        font-size: 1.25rem;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        min-height: 300px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animation Styles */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Delay classes for staggered animation */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1rem;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    gap: 1.5rem;
    padding: 0.5rem 0.25rem 1rem 0.25rem;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    user-select: none;
    pointer-events: auto;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 10;
    padding: 0;
}

.carousel-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev-btn {
    left: -1rem;
}

.carousel-btn.next-btn {
    right: -1rem;
}

.carousel-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
    box-shadow: none;
}

/* Indicator Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot:hover {
    background-color: var(--text-muted);
}

.carousel-dots .dot.active {
    width: 24px;
    border-radius: 5px;
    background-color: var(--primary);
}

/* Responsive carousel styles */
@media (max-width: 768px) {
    .carousel-container {
        padding: 0;
    }
    
    .carousel-btn {
        display: none; /* Hide buttons on mobile where swipe is primary */
    }
    
    .carousel-track {
        gap: 1rem;
    }
}



