/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header and Navigation */
header {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    padding: 1.25rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.logo-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #60a5fa;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: 6rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
}

.badge-text strong {
    font-size: 1rem;
    font-weight: 700;
}

.badge-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.75rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
    flex-wrap: wrap;
    max-width: 800px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-feature-item::before {
    content: "✓";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.75rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    color: #1e3a8a;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    background-color: #fff;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.2));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Use Cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.use-case h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.use-case p {
    color: #666;
    line-height: 1.6;
}

/* How to Use Section */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.faq-item a {
    color: #3b82f6;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Screenshot Section */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-item {
    background-color: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.screenshot-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 50px rgba(59, 130, 246, 0.15);
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.screenshot-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(59, 130, 246, 0.03),
            rgba(59, 130, 246, 0.03) 20px,
            transparent 20px,
            transparent 40px
        );
    z-index: 0;
}

.screenshot-icon {
    font-size: 4.5rem;
    color: #3b82f6;
    opacity: 0.25;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.screenshot-caption {
    padding: 2rem;
}

.screenshot-caption h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.screenshot-caption p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Download Section */
.download-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Screenshot Description */
.screenshot-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.screenshot-description p {
    font-size: 1.1rem;
    color: #666;
}

/* Support Section */
.support-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.support-description {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.support-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn-support {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.btn-support:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.4);
}

.support-icon {
    font-size: 2rem;
    line-height: 1;
}

.support-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.support-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.support-text small {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 500;
}

.support-note {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 1rem;
}

/* Legal Pages */
.legal-page {
    background-color: #fff;
    min-height: calc(100vh - 300px);
}

.page-title {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.75rem;
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ol,
.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #3b82f6;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #1e3a8a;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #93c5fd;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #93c5fd;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

.data-attribution {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #888;
}

.data-attribution a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.data-attribution a:hover {
    color: #93c5fd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
    }
    
    .hero-features {
        gap: 1rem;
    }
    
    .hero-feature-item {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .features-grid,
    .use-cases,
    .howto-steps {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Base Colors */
    body {
        background-color: #0f172a;
        color: #e2e8f0;
    }
    
    /* Header and Navigation */
    header {
        background: rgba(15, 23, 42, 0.95);
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .nav-links a {
        color: rgba(226, 232, 240, 0.9);
    }
    
    .nav-links a:hover {
        color: #60a5fa;
    }
    
    .nav-links a::after {
        background-color: #60a5fa;
    }
    
    /* Hero Section */
    .hero {
        background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 50%, #3b82f6 100%);
    }
    
    .hero::before {
        background: radial-gradient(circle at 30% 50%, rgba(96, 165, 250, 0.15), transparent 50%),
                    radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.15), transparent 50%);
    }
    
    .app-badge {
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(148, 163, 184, 0.2);
    }
    
    /* Content Sections */
    .section,
    .section:nth-child(even),
    .about,
    .features,
    .features-section,
    .benefits,
    .screenshots,
    .howto,
    .faq,
    .download,
    .support {
        background-color: #0f172a !important;
        background: #0f172a !important;
    }
    
    section h2 {
        color: #f1f5f9;
    }
    
    section p {
        color: #cbd5e1;
    }
    
    /* Section Titles */
    .section-title {
        color: #f1f5f9;
    }
    
    /* Feature Cards */
    .feature-card,
    .use-case,
    .howto-step {
        background: #1e293b;
        border: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .feature-card:hover,
    .use-case:hover {
        background: #334155;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }
    
    .feature-card h3,
    .use-case h3,
    .howto-step h3 {
        color: #f1f5f9;
    }
    
    .feature-card p,
    .use-case p,
    .howto-step p {
        color: #cbd5e1;
    }
    
    /* Screenshot Frames */
    .screenshot-frame {
        background: #1e293b;
        border: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .screenshot-frame::before {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    }
    
    .screenshot-caption {
        background: #1e293b;
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .screenshot-caption h3 {
        color: #f1f5f9;
    }
    
    .screenshot-caption p {
        color: #cbd5e1;
    }
    
    /* FAQ Section */
    .faq-item {
        background: #1e293b;
        border: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .faq-item:hover {
        background: #334155;
    }
    
    .faq-item h3 {
        color: #f1f5f9;
    }
    
    .faq-item p {
        color: #cbd5e1;
    }
    
    /* Buttons */
    .btn-primary {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    }
    
    .btn-secondary {
        background: rgba(30, 41, 59, 0.6);
        border: 2px solid rgba(96, 165, 250, 0.5);
        color: #e2e8f0;
    }
    
    .btn-secondary:hover {
        background: rgba(51, 65, 85, 0.8);
        border-color: #60a5fa;
    }
    
    .btn-support {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }
    
    .btn-support:hover {
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    }
    
    .btn-download {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }
    
    .btn-download:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
    }
    
    /* Footer */
    footer {
        background: #0f172a;
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .footer-section h3 {
        color: #f1f5f9;
    }
    
    .footer-links a {
        color: #94a3b8;
    }
    
    .footer-links a:hover {
        color: #60a5fa;
    }
    
    .footer-bottom {
        border-top: 1px solid rgba(148, 163, 184, 0.1);
        color: #94a3b8;
    }
    
    .footer-bottom a {
        color: #60a5fa;
    }
    
    /* Legal Pages (Terms, Privacy) */
    .page-title {
        color: #f1f5f9;
    }
    
    .legal-content {
        background: #1e293b;
        border: 1px solid rgba(148, 163, 184, 0.1);
        padding: 2rem;
        border-radius: 12px;
    }
    
    .legal-content h2,
    .legal-content h3 {
        color: #f1f5f9;
        border-bottom-color: rgba(148, 163, 184, 0.2);
    }
    
    .legal-content p,
    .legal-content li {
        color: #cbd5e1;
    }
    
    .legal-content a {
        color: #60a5fa;
    }
    
    .legal-content a:hover {
        color: #93c5fd;
    }
    
    /* Feature Badges */
    .feature-item {
        background: rgba(30, 41, 59, 0.6);
        border: 2px solid rgba(96, 165, 250, 0.3);
    }
    
    .feature-item:hover {
        background: rgba(51, 65, 85, 0.8);
        border-color: #60a5fa;
    }
}
