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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ヘッダー */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}


/* ヒーローセクション */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #000 0%, #111 100%);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(24px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    white-space: nowrap;
    padding: 0 20px;
    box-sizing: border-box;
    max-width: 100vw;
    overflow: hidden;
}

.hero .subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: #fff;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 100px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.cta-button:hover {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    text-decoration: none;
}

/* 言語切り替えボタン */
.language-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
}

.language-button {
    display: inline-block;
    padding: 16px 48px;
    background: #fff;
    color: #000;
    border: 2px solid transparent;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, sans-serif;
    font-size: 14px;
    opacity: 0;
    transform: translateX(100px);
    animation: slideInFromRight 1s ease 1.2s forwards;
}

.language-button:hover {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}


/* フローティングフォン */
.floating-phone {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 600px;
    background: #222;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slideInRight 1s ease 0.6s forwards;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.memory-card {
    position: absolute;
    width: 90%;
    height: 80%;
    background: #111;
    border-radius: 20px;
    left: 5%;
    top: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #333;
}

/* 特徴セクション */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 50%, #000 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.1) 80%, transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    text-align: center;
    margin-bottom: 100px;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

/* 新しいfeatures showcase スタイル */
.features-showcase {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    position: relative;
    z-index: 2;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    max-width: 500px;
}


.feature-content h3 {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #fff;
}

.feature-content p {
    color: #999;
    line-height: 1.8;
    font-size: 16px;
    max-width: 450px;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 400px;
}

.feature-image img {
    max-width: 280px;
    height: auto;
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        0 8px 16px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    position: relative;
    z-index: 3;
}


.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
    animation: glow-pulse 4s ease-in-out infinite;
}

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

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .feature-item {
        gap: 60px;
        margin-bottom: 100px;
    }
    
    .feature-image img {
        max-width: 240px;
    }
}

/* レスポンシブ対応でのテキスト改行制御 */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline;
    }
    
    .hero h1 {
        white-space: normal;
    }
    
    .cta-button {
        padding: 12px 32px;
        font-size: 14px;
    }
    
    .language-toggle {
        top: 20px;
        right: 20px;
    }
    
    .language-button {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .features-showcase {
        padding: 0 20px;
    }
    
    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }
    
    .feature-content {
        max-width: none;
    }
    
    .feature-content p {
        max-width: none;
    }
    
    .feature-image {
        max-width: none;
    }
    
    .feature-image img {
        max-width: 220px;
    }
    
    .features::before {
        display: none;
    }
}

/* 既存のfeature-card スタイルを残す（互換性のため） */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.feature-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
}


.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-card p {
    color: #888;
    line-height: 1.7;
    font-size: 14px;
}

/* 動画セクション */
.video-section {
    padding: 120px 0;
    background: #0a0a0a;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* レビューセクション */
.reviews {
    padding: 120px 0;
    background: #000;
}

.review-stats-card {
    max-width: 600px;
    margin: 0 auto 80px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.rating-score {
    display: flex;
    align-items: baseline;
    margin-bottom: 16px;
}

.score-number {
    font-size: 72px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.score-divider {
    font-size: 36px;
    color: #666;
    margin: 0 8px;
}

.score-total {
    font-size: 36px;
    color: #666;
    font-weight: 500;
}

.stars {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.star {
    width: 24px;
    height: 24px;
    background: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.review-info {
    font-size: 16px;
    color: #999;
    margin-bottom: 16px;
}

.review-note {
    font-size: 14px;
    color: #666;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.review-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.review-stars .star {
    width: 16px;
    height: 16px;
}

.review-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.review-author {
    color: #666;
    font-size: 12px;
}

/* ダウンロードセクション */
.download {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    text-align: center;
}

.download .section-title {
    margin-bottom: 40px;
}

.download-image {
    margin: 20px 0 40px 0;
    position: relative;
    display: inline-block;
}

.download-image img {
    max-width: 280px;
    height: auto;
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        0 8px 16px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download-content p {
    font-size: clamp(16px, 4vw, 22px);
    line-height: 1.6;
    margin-bottom: 60px;
    color: #e0e0e0;
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: normal;
}

.download-image .image-glow {
    display: none;
}

.download-text {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 60px;
    color: #e0e0e0;
    white-space: nowrap;
}

.download-link {
    display: inline-block;
}

.app-store-badge {
    height: 80px;
    width: auto;
    border: 3px solid white;
    border-radius: 12px;
}

/* フッター */
footer {
    padding: 60px 0 40px;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}


.copyright {
    text-align: center;
    color: #444;
    font-size: 12px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* スクロールアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

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

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .floating-phone {
        display: none;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
}