/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.logo h1 {
    margin: 0;
}

.header-logo {
    width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 法務ページ（プライバシー/利用規約）専用スタイル */
.legal main {
    /* 固定ヘッダーの高さ分（≈100px）+ 余裕を確保 */
    padding: 120px 16px 80px;
}

.legal .container {
    max-width: 920px;
}

.legal h1 {
    font-size: 28px;
    margin: 8px 0 16px;
    text-align: left;
}

.legal h2 {
    font-size: 20px;
    margin: 28px 0 12px;
}

.legal p,
.legal li {
    color: #222;
}

.legal .muted,
.legal small {
    color: #666;
}

.legal a {
    color: #4F46E5;
    text-decoration: none;
}

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

/* 法務ページでもヘッダーのリンク色は黒のままにする */
.legal .header .nav-links a {
    color: #333;
}

/* フッター最下部の文言色を白に */
.footer-bottom p {
    color: #fff;
}

/* 一般ページ（main 要素）: 余白とタイポグラフィ */
main {
    /* 固定ヘッダー（約100px）を避けるための上余白 + 下余白 */
    padding: 120px 0 80px;
}

/* 本文は読みやすい幅に抑える */
main .container {
    max-width: 800px;
}

/* サブテキスト */
main .muted {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

/* 見出しと本文の余白 */
main h2 {
    font-size: 24px;
    margin: 32px 0 12px;
    color: #1f2937;
}

main p {
    margin-bottom: 16px;
}

/* リストのインデントと余白 */
main ul,
main ol {
    padding-left: 1.25rem;
    margin-bottom: 16px;
}

main li {
    margin-bottom: 8px;
}

/* ヒーローセクション */
.hero {
    padding: 100px 0 50px;
    background: transparent;
    color: #333;
    overflow: hidden;
}

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

.hero-content {
    margin-top: 30px;
    text-align: center;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.hero-subtitle-l {
    font-size: 32px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
}

.hero-mockup {
    max-width: 260px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

/* ボタンスタイル */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.store-icon {
    height: 60px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* 機能セクション */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1f2937;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 48px;
}

/* 各アイコンの個別色設定 */
.feature-card:nth-child(1) .feature-icon i {
    color: #60a5fa;
    /* 淡いブルー - フォロータイムライン */
}

.feature-card:nth-child(2) .feature-icon i {
    color: #34d399;
    /* 淡いグリーン - エリアタイムライン */
}

.feature-card:nth-child(3) .feature-icon i {
    color: #fbbf24;
    /* 淡いイエロー - バッジシステム */
}

.feature-card:nth-child(4) .feature-icon i {
    color: #a78bfa;
    /* 淡いパープル - 完全紹介制 */
}

.feature-card:nth-child(5) .feature-icon i {
    color: #f87171;
    /* 淡いレッド - お店の情報 */
}

.feature-card:nth-child(6) .feature-icon i {
    color: #fb923c;
    /* 淡いオレンジ - ランキング機能 */
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
}

.feature-icon img {
    width: 130px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ダウンロードセクション */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-align: center;
}

.download-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.download-note {
    font-size: 16px;
    opacity: 0.8;
    font-style: italic;
}

/* フッター */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
    color: #f9fafb;
}

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

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* レスポンシブデザイン */
@media (max-width: 870px) {
    .header-logo {
        width: 160px;
        object-fit: contain;
    }

    .nav-container {
        height: 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title img {
        max-width: 300px;
    }

    .hero-mockup {
        width: 60%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .download-buttons {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .btn-large {
        width: auto;
        min-width: 180px;
        justify-content: center;
        font-size: 14px;
    }

    .phone-screen {
        width: 240px;
        height: 420px;
    }
}

@media (max-width: 480px) {
    .legal main {
        padding: 100px 16px 60px;
    }

    main {
        padding: 100px 0 60px;
    }

    main h2 {
        font-size: 20px;
        margin: 28px 0 10px;
    }

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

    .hero-subtitle-l {
        font-size: 25px;
    }

    .hero-content {
        margin-top: 20px;
    }

    .hero-title {
        font-size: 23px;
    }

    .download-note {
        font-size: 14px;
    }

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

    .nav-container {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }

    .download-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .btn-large {
        min-width: 140px;
        font-size: 11px;
        padding: 10px 12px;
    }

    .store-icon {
        height: 35px;
    }

    .features {
        padding: 40px 0;
    }

    .features-grid {
        max-width: 80%;
    }

    .section-title {
        margin-bottom: 30px;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.3s;
}