/* iche PWA Install Banner Styles */
.ichie-pwa-banner {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    padding: 16px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #eaeaea;
}

@media (min-width: 600px) {
    .ichie-pwa-banner {
        max-width: 400px;
        left: auto;
        right: 20px;
        top: 20px;
    }
}

.ichie-pwa-banner-content {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.ichie-pwa-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-right: 16px;
    object-fit: cover;
}

.ichie-pwa-banner-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #333333;
    font-weight: 500;
}

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

.ichie-pwa-btn-install {
    flex: 1;
    background-color: #3a6fe8;
    color: #ffffff;
    border: none;
    height: 36px;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.ichie-pwa-btn-install:hover {
    background-color: #2a5dd4;
}

.ichie-pwa-btn-install svg {
    flex-shrink: 0;
}

.ichie-pwa-btn-close {
    flex-shrink: 0;
    background-color: #f1f1f1;
    color: #555555;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.ichie-pwa-btn-close:hover {
    background-color: #e2e2e2;
}

/* 閉じた後の再表示ボタン */
.ichie-pwa-restore-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    height: 36px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    gap: 6px;
    z-index: 999998;
    cursor: pointer;
    border: 1px solid #eaeaea;
    transition: transform 0.2s;
}
.ichie-pwa-restore-btn:hover {
    transform: scale(1.05);
}
.ichie-pwa-restore-btn img, .ichie-pwa-restore-btn svg {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    color: #007aff;
}
.ichie-pwa-restore-text {
    font-size: 12px;
    font-weight: bold;
    color: #007aff;
}

/* PWAとして起動した時(standalone)用のセーフエリア対応 */
@media all and (display-mode: standalone) {
    /*
     * ユーザーの意向により、固定要素（予約バー等）への影響が大きいため
     * 下部セーフエリアの余白確保は一旦オフ（元の状態）にしています。
     * 今後必要になった場合は、以下のコメントアウトを外して各要素を調整してください。
     */
    /*
    body.iche-pwa-ios {
        padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
    }
    body.iche-pwa-ios #pwa-footer {
        padding-bottom: calc(env(safe-area-inset-bottom) + 10px) !important;
    }
    body.iche-pwa-ios #pwa-reservation-bar {
        margin-bottom: env(safe-area-inset-bottom) !important;
    }
    */
}

