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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-display: swap;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

.hero-screenshot {
    will-change: transform;
}

/* Reduce repaints */
.btn {
    will-change: transform, box-shadow;
}

.feature-card {
    will-change: transform;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #C53030;
}

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

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #C53030;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.hero-highlight {
    color: #C53030;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #C53030;
    color: white;
    box-shadow: 0 4px 20px rgba(197, 48, 48, 0.3);
}

.btn-primary:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(197, 48, 48, 0.4);
}

.btn-secondary {
    background: white;
    color: #C53030;
    border: 2px solid #C53030;
    align-self: flex-start;
}

.btn-secondary:hover {
    background: #C53030;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Google Sign-In Button Container */
.google-signin-container {
    display: inline-block;
    margin: 0;
}

/* Google Sign-In Wrapper */
.google-signin-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.signin-note {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    font-weight: 500;
    padding-left: 0.5rem;
}

/* Google Sign-In Buttonが表示されているときのマージン調整 */
.hero-buttons .google-signin-wrapper {
    /* heroセクションではデフォルトのflex-start配置 */
}

.install-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.install-action .google-signin-wrapper {
    align-items: center;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #C53030;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-screenshot {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-screenshot:hover {
    transform: scale(1.02);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #C53030;
}

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

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background: #f8f9fa;
}

.demo-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.step-description {
    color: #666;
    line-height: 1.6;
}

/* Install Section */
.install {
    padding: 80px 0;
    background: linear-gradient(135deg, #C53030 0%, #B91C1C 100%);
    color: white;
}

.install .section-title {
    color: white;
}

.install-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.install-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.install-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.install-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.install-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.install-check {
    color: #22C55E;
    font-weight: 700;
    font-size: 1.2rem;
}

.install-action {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.install-note {
    margin-top: 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Support Section */
.support {
    padding: 80px 0;
    background: white;
}

.support-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.support-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
}

.support-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.support-faq {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
}

.support-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #C53030;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: #B91C1C;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

.footer-link:hover {
    color: white;
}

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

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
}

/* Subscription Management */
.subscription-management {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.subscription-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.subscription-status,
.subscription-actions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subscription-status h3,
.subscription-actions h3 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.status-active {
    color: #10b981;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.status-email,
.status-period {
    color: #6b7280;
    margin-bottom: 10px;
}

.warning-text {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 15px;
}

.deletion-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.deletion-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #6b7280;
}

.deletion-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ef4444;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .hero-buttons .google-signin-wrapper {
        align-items: center;
    }
    
    .hero-buttons .signin-note {
        padding-left: 0;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-steps {
        flex-direction: column;
        gap: 3rem;
    }
    
    .install-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .google-signin-wrapper {
        width: 100%;
        align-items: center;
    }
    
    .hero-buttons .google-signin-wrapper .signin-note {
        padding-left: 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}