/* =====================================================
PWA ホーム画面追加案内
===================================================== */

.pwa-install-guide {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 398px;
    box-sizing: border-box;
    padding: 16px 44px 16px 16px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    text-align: left;
    color: #333;
    z-index: 20000;
}

.pwa-install-guide-title {
    margin: 0 34px 6px 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

.pwa-install-guide-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.pwa-install-guide-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    color: #555;
    font-size: 28px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
}

.pwa-install-guide[hidden] {
    display: none;
}


/* =====================================================
追加方法を見る
===================================================== */

.pwa-install-guide-detail {
    display: block;
    width: 100%;
    margin: 12px 0 0;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f7f7f7;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}


/* =====================================================
ホーム画面追加手順モーダル
===================================================== */

.pwa-install-guide-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    z-index: 21000;
}

.pwa-install-guide-modal[hidden] {
    display: none;
}

.pwa-install-guide-modal-content {
    position: relative;
    width: 100%;
    max-width: 390px;
    box-sizing: border-box;
    padding: 22px 20px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    color: #333;
    text-align: left;
}

.pwa-install-guide-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    color: #555;
    font-size: 28px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
}

.pwa-install-guide-modal-title {
    margin: 0 34px 18px 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.pwa-install-guide-steps {
    margin: 0;
    padding-left: 1.6em;
    font-size: 15px;
    line-height: 1.7;
}

.pwa-install-guide-steps li {
    margin-bottom: 10px;
}

.pwa-install-guide-modal-back {
    display: block;
    width: 100%;
    margin: 18px 0 0;
    padding: 11px 12px;
    border: none;
    border-radius: 8px;
    background: #555;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}