/*
Theme Name: aim
Version: 1.0
*/

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

:root {
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-900: #4c1d95;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-900: #831843;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* スクリーンショット背景 */
.bg-screenshots {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    opacity: 0.4;
    transform: rotate(-5deg) scale(1.2);
    filter: blur(1px);
}

.screenshot-placeholder {
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    border-radius: 2rem;
    aspect-ratio: 9/16;
    animation: float 20s ease-in-out infinite;
}

.screenshot-placeholder:nth-child(2) { animation-delay: -7.5s; }
.screenshot-placeholder:nth-child(5) { animation-delay: -7.5s; }

@media (max-width: 768px) {
    .screenshot-placeholder:nth-child(2) { animation-delay: -7.5s; }
    .screenshot-placeholder:nth-child(5) { animation-delay: 0s; }
    .screenshot-placeholder:nth-child(4) { animation-delay: -7.5s; }
    .screenshot-placeholder:nth-child(6) { animation-delay: -7.5s; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-200px); }
}

/* 実際の画像を使用する場合は以下のスタイルを使用 */
.bg-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    /* グラデーションを軽減してヒーローセクションで背景が見えるように調整 */
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 20%, 
        rgba(0, 0, 0, 0.6) 60%, 
        rgba(0, 0, 0, 0.8) 80%, 
        #000 100%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

.bg-orb-1 {
    top: 0;
    left: 0;
    width: 384px;
    height: 384px;
    background-color: rgba(139, 92, 246, 0.2);
}

.bg-orb-2 {
    bottom: 0;
    right: 0;
    width: 384px;
    height: 384px;
    background-color: rgba(236, 72, 153, 0.2);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--purple-400), var(--pink-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--purple-400);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

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

.mobile-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 0;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--purple-400);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    min-height: 100vh;
}

.container {
    /* コメントアウトされたまま */
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--purple-400), var(--pink-400), var(--purple-400));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: #d1d5db;
    max-width: 42rem;
    margin: 0 auto 3rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(to right, var(--purple-600), var(--pink-600));
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(236, 72, 153, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.8) 80%, transparent);
    position: relative;
    z-index: 1;
}

.features-container {
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card {
    background: linear-gradient(to bottom right, rgba(76, 29, 149, 0.2), rgba(131, 24, 67, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: scale(1.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(to bottom right, var(--purple-500), var(--pink-500));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-icon i {
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-description {
    color: #d1d5db;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9) 30%);
    position: relative;
    z-index: 1;
}

.cta-container {
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    margin-bottom: 2rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 3rem;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .store-buttons {
        flex-direction: row;
    }
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 3rem;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.store-btn:hover {
    transform: scale(1.05);
}

.store-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-btn:hover::before {
    opacity: 1;
}

.store-icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.store-text {
    text-align: left;
    position: relative;
    z-index: 1;
}

.store-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.store-name {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Footer */
footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    position: relative;
    z-index: 1;
}

.footer-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .bg-screenshots {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .hero-content {
        padding: 2rem;
    }
}

/* Bounce Animation */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Contact Page Styles */
.contact {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.7;
}

/* Contact Form */
.contact-form-wrapper {
    margin-bottom: 3rem;
}

.contact-form {
    background: linear-gradient(to bottom right, rgba(76, 29, 149, 0.1), rgba(131, 24, 67, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.required {
    color: #ef4444;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--purple-400);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Contact Info */
.contact-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
}

.contact-info-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--purple-400);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: center;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(to bottom right, var(--purple-500), var(--pink-500));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-method-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-method-info p {
    color: var(--purple-400);
    margin-bottom: 0.25rem;
}

.contact-method-info small {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Contact Thanks Page */
.contact-thanks {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.contact-thanks-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.thanks-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 2rem;
}

.thanks-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 2rem;
}

.thanks-message {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.thanks-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

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

.info-item i {
    color: var(--purple-400);
    font-size: 1.125rem;
}

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

@media (min-width: 640px) {
    .thanks-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Terms and Privacy Policy Styles */
.terms-content,
.policy-content {
    background: linear-gradient(to bottom right, rgba(76, 29, 149, 0.1), rgba(131, 24, 67, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 3rem;
}

.terms-section,
.policy-section {
    margin-bottom: 3rem;
}

.terms-section:last-child,
.policy-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--purple-400);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 0.5rem;
}

.terms-text,
.policy-text {
    font-size: 1rem;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.terms-list,
.policy-list {
    list-style: none;
    margin-left: 1rem;
}

.terms-list li,
.policy-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
}

.terms-list li::before,
.policy-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--pink-400);
    font-weight: bold;
}

.highlight {
    background: linear-gradient(to right, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--purple-500);
    margin: 1.5rem 0;
}

.notice-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.notice-box p {
    color: #fca5a5;
    font-weight: 600;
    margin-bottom: 1rem;
}

.notice-box .terms-list li {
    color: #fecaca;
}

.email-link {
    color: var(--purple-400);
    text-decoration: none;
}

.email-link:hover {
    color: var(--purple-300);
    text-decoration: underline;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, var(--purple-600), var(--pink-600));
    color: #fff;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(236, 72, 153, 0.6);
}

.contact-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--pink-400);
    margin-bottom: 1rem;
}

.contact-email {
    color: var(--purple-400);
    text-decoration: none;
    font-size: 1.125rem;
}

.contact-email:hover {
    color: var(--purple-300);
}

/* Responsive adjustments for terms/privacy pages */
@media (max-width: 768px) {
    .terms-content,
    .policy-content {
        padding: 2rem 1.5rem;
    }
}

/* Custom X (Twitter) Icon */
.x-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") no-repeat;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") no-repeat;
    -webkit-mask-size: contain;
}