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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7fafc;
}

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

/* ヘッダー */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

nav a {
    margin-left: 20px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #2d3748;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.store-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.store-badges a {
    display: block;
    line-height: 0;
    transition: opacity 0.3s;
}

.store-badges a:hover {
    opacity: 0.8;
}

/* Apple のバッジは余白なし、Google Play のバッジは画像内に余白を含むため高さを変えて視覚的に揃える */
.badge-appstore {
    height: 54px;
}

.badge-gplay {
    height: 80px;
}

/* Testing Notice Section */
.testing-announcement {
    padding: 80px 20px;
    background-color: #f7fafc;
}

.testing-notice {
    background-color: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.testing-notice h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #2d3748;
}

.testing-notice>p {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    color: #4a5568;
    line-height: 1.8;
}

.testing-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 35px;
    margin-top: 30px;
    color: white;
}

.testing-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.test-button {
    display: inline-block;
    background-color: white;
    color: #667eea;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.test-button:hover {
    background-color: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.android-section {
    margin-top: 20px;
}

.android-info {
    margin-bottom: 25px;
}

.android-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: white;
}

.android-info strong {
    font-weight: 700;
    text-decoration: underline;
}

.android-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
}

.step-number {
    background-color: white;
    color: #667eea;
    font-size: 20px;
    font-weight: 700;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: white;
}

.test-link {
    color: white;
    text-decoration: underline;
    word-break: break-all;
    font-size: 14px;
    transition: opacity 0.3s;
}

.test-link:hover {
    opacity: 0.8;
}

/* 機能セクション */
.features {
    padding: 80px 20px;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 15px;
}

.feature-card p {
    color: #718096;
    line-height: 1.8;
}

/* スクリーンショット */
.screenshots {
    padding: 80px 0;
    background-color: #f7fafc;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carousel-nav:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-nav.prev {
    margin-right: -10px;
}

.carousel-nav.next {
    margin-left: -10px;
}

.screenshot-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.screenshot-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.screenshot-item {
    flex: 0 0 auto;
    width: 300px;
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.screenshot-item h3 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.screenshot-item p {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}

.screenshot-placeholder {
    width: 250px;
    height: 500px;
    background-color: #e2e8f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 14px;
}

/* プライバシー重視 */
.privacy-section {
    padding: 80px 20px;
    background-color: #edf2f7;
    text-align: center;
}

.privacy-box {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.privacy-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.privacy-box h2 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 20px;
}

.privacy-box p {
    color: #718096;
    font-size: 16px;
    line-height: 1.8;
}

/* フッター */
footer {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 40px 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

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

.copyright {
    color: #a0aec0;
    font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .screenshot-placeholder {
        width: 200px;
        height: 400px;
    }

    .testing-announcement {
        padding: 40px 20px;
    }

    .testing-notice {
        padding: 30px 20px;
    }

    .testing-notice h2 {
        font-size: 26px;
    }

    .testing-notice>p {
        font-size: 16px;
    }

    .testing-section {
        padding: 25px 20px;
    }

    .testing-section h3 {
        font-size: 20px;
    }

    .android-info p {
        font-size: 15px;
    }

    .step {
        padding: 15px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .carousel-nav {
        display: none;
    }

    .carousel-container {
        gap: 0;
    }
}

/* プライバシーポリシーページ */
.privacy-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.privacy-content h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.privacy-content h2 {
    font-size: 22px;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid #667eea;
    padding-left: 15px;
}

.privacy-content p,
.privacy-content li {
    margin-bottom: 1em;
    line-height: 1.8;
}

.privacy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.privacy-content th,
.privacy-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.privacy-content th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.privacy-content .emphasis {
    font-weight: bold;
    color: #667eea;
}

.privacy-content .note {
    background-color: #ebf4ff;
    padding: 20px;
    border-left: 4px solid #667eea;
    margin: 20px 0;
    border-radius: 4px;
}