/* ============================================================
   共通スタイル追記分（app_otu4.html と app_itadaki.html の両方に
   存在していた重複スタイルをこちらに集約しました）
   → このブロックを既存の css/styles.css の末尾に追記し、
     両ページの <style> からは重複定義を削除しています。
   ============================================================ */

/* --- アプリヒーロー：共通レイアウト --- */
.app-hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.app-hero-content {
    flex: 1;
    color: white;
}

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

.stat-item {
    text-align: center;
}

/* --- アプリヒーロー：ゲーム画像モックアップ（リング演出＋タイトル画像） --- */
.app-hero-mockup {
    flex: 0 0 auto;
    position: relative;
}

.mockup-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(240, 192, 64, 0.2);
    animation: ring-rotate linear infinite;
}

.mockup-ring:nth-child(1) {
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 20s;
    border-style: dashed;
}

.mockup-ring:nth-child(2) {
    width: 365px;
    height: 365px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(30deg);
    animation-duration: 30s;
    animation-direction: reverse;
    border-color: rgba(0, 212, 180, 0.15);
}

@keyframes ring-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.mockup-title-img {
    width: 260px;
    border-radius: 20px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(240, 192, 64, 0.2),
        0 0 40px rgba(108, 92, 231, 0.3);
    transform: perspective(800px) rotateY(-8deg) rotateX(3deg);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.mockup-title-img:hover {
    transform: perspective(800px) rotateY(-4deg) rotateX(1deg) scale(1.02);
}

/* --- スクリーンショット --- */
.screenshot-item {
    flex: 0 0 auto;
    text-align: center;
}

/* --- 特徴グリッド --- */
.app-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

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

.app-feature-emoji {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

/* --- ストアバッジ --- */
.store-badge .store-icon {
    font-size: 1.4rem;
}

/* --- テーブル・カード共通 --- */
.world-table tbody tr:last-child {
    border-bottom: none;
}

.privacy-card h3:first-child {
    margin-top: 0;
}

/* --- セクション見出し区切り --- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* --- レスポンシブ：992px以下 --- */
@media (max-width: 992px) {
    .app-hero .container {
        flex-direction: column;
        text-align: center;
    }

    .app-hero .app-hero-subtitle {
        text-align: left;
    }

    .mockup-title-img {
        width: 210px;
        transform: none;
    }

    .app-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- レスポンシブ：768px以下 --- */
@media (max-width: 768px) {
    .app-features-grid {
        grid-template-columns: 1fr;
    }

    .privacy-card {
        padding: 2rem 1.5rem;
    }

    .world-table td,
    .world-table thead th {
        padding: 0.75rem 1rem;
    }
}
