/* ========================================
   PWA インストール促進バナー
   ======================================== */
#pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

#pwa-install-banner.pwa-banner-show {
    transform: translateY(0);
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 12px;
}

.pwa-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.pwa-banner-text strong {
    display: block;
    font-size: 15px;
}

.pwa-banner-text small {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 2px;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-btn-install {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.pwa-btn-install:hover {
    background: #555;
}

.pwa-btn-install:active {
    background: #222;
}

.pwa-btn-dismiss {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.pwa-btn-dismiss:hover {
    color: #333;
}

/* ダークモード対応（必要に応じて） */
@media (prefers-color-scheme: dark) {
    #pwa-install-banner {
        background: #1a1a1a;
        border-top-color: #333;
    }

    .pwa-banner-text {
        color: #e0e0e0;
    }

    .pwa-banner-text small {
        color: #999;
    }

    .pwa-btn-install {
        background: #fff;
        color: #333;
    }

    .pwa-btn-install:hover {
        background: #e0e0e0;
    }

    .pwa-btn-dismiss {
        color: #666;
    }

    .pwa-btn-dismiss:hover {
        color: #ccc;
    }
}

/* PWA ナビゲーションバー */
#pwa-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #333;
    color: #fff;
    height: 46px;
    padding-top: env(safe-area-inset-top, 0px);
}

.pwa-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 12px;
}

.pwa-nav-title {
    font-size: 15px;
    font-weight: bold;
}

#pwa-back,
#pwa-reload {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 8px 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#pwa-back:active,
#pwa-reload:active {
    opacity: 0.6;
}
