/* GEAL をアプリとして入れる入口（js/utils/app-install.js・2026-10-18 見本承認済み）
   ホームの細い帯 / マイページの常設カード / 下から出る案内（iPhone の入れ方） */

/* ---- ホームの帯（ヘッダーの下・全幅） ---- */
.gai-band { background: var(--geal-bg-card, #fff); border-bottom: 1px solid var(--geal-border, #e5e5e5); }
.gai-band-inner {
    display: flex; align-items: center; gap: 10px;
    max-width: 880px; margin: 0 auto; min-height: 58px; box-sizing: border-box;
    padding: 6px 8px 6px max(14px, env(safe-area-inset-left, 0px));
}
.gai-band-icon { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.gai-band-text { flex: 1; min-width: 0; }
.gai-band-text b { display: block; font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: var(--geal-text-primary, #171717); }
.gai-band-text span { display: block; font-size: 0.75rem; line-height: 1.3; color: var(--geal-text-muted, #666); }
.gai-btn {
    flex: none; border: 0; border-radius: 4px; background: var(--geal-accent, #6B21A8); color: #fff;
    font: 700 0.875rem var(--font-main, "Noto Sans JP", sans-serif); padding: 9px 14px; white-space: nowrap; cursor: pointer;
    transition: background-color 200ms ease;
}
.gai-btn:hover { background: var(--geal-accent-hover, #581C87); }
.gai-btn:focus-visible, .gai-x:focus-visible, .gai-sheet-close:focus-visible { outline: 2px solid var(--geal-accent, #6B21A8); outline-offset: 2px; }
.gai-x {
    flex: none; width: 36px; height: 36px; display: grid; place-items: center;
    border: 0; background: none; color: var(--geal-text-muted, #777); cursor: pointer; border-radius: 4px;
}
.gai-x svg, .gai-pic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 下から出る案内 ---- */
.gai-back { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.gai-sheet {
    width: 100%; max-width: 480px; box-sizing: border-box; background: var(--geal-bg-card, #fff); color: var(--geal-text-primary, #171717);
    border-radius: 12px 12px 0 0; padding: 14px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .2); animation: gai-up 240ms ease-out;
}
@keyframes gai-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gai-sheet { animation: none; } .gai-btn { transition: none; } }
.gai-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--geal-border, #d4d4d4); margin: 0 auto 12px; }
.gai-sheet-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; }
.gai-sheet-text { font-size: 0.9rem; line-height: 1.7; margin: 0; color: var(--geal-text-primary, #333); }
.gai-sheet-close {
    display: block; width: 100%; margin-top: 14px; padding: 10px; border: 0; background: none;
    font: 700 0.9rem var(--font-main, "Noto Sans JP", sans-serif); color: var(--geal-accent, #6B21A8); cursor: pointer;
}
.gai-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--geal-border, #eee); }
.gai-step:first-child { border-top: 0; }
.gai-num { width: 24px; height: 24px; border-radius: 50%; background: var(--geal-accent, #6B21A8); color: #fff; font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 2px; }
.gai-step-body { flex: 1; min-width: 0; font-size: 0.9rem; }
.gai-step-body small { display: block; font-size: 0.75rem; color: var(--geal-text-muted, #777); }
.gai-pic {
    margin-top: 8px; height: 46px; border: 1px solid var(--geal-border, #e5e5e5); border-radius: 8px;
    background: var(--geal-bg-secondary, #f7f7f7); display: flex; align-items: center; justify-content: space-around; color: #888;
}
.gai-hl { color: #0a84ff; background: #e6f0ff; border-radius: 8px; padding: 6px; outline: 2px solid #0a84ff; display: grid; }
.gai-pic-menu { justify-content: flex-start; gap: 10px; padding: 0 12px; color: var(--geal-text-primary, #171717); font-size: 0.9rem; }
.gai-hl-box { outline: 2px solid #0a84ff; background: #e6f0ff; color: #171717; }
.gai-pic-top { justify-content: space-between; padding: 0 12px; font-size: 0.85rem; color: var(--geal-text-primary, #171717); }
.gai-blue { color: #0a84ff; }
.gai-add { color: #0a84ff; font-weight: 700; outline: 2px solid #0a84ff; border-radius: 4px; padding: 2px 8px; }

/* ---- マイページの常設カード（よく使う 4 つの下・アカウントの上） ---- */
.mp-app-card {
    display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; margin: 0 0 12px;
    padding: 12px; border: 1px solid var(--geal-border, #e5e7eb); border-radius: 8px;
    background: var(--geal-bg-card, #fff); color: var(--geal-text-primary, #111); text-align: left; cursor: pointer;
    font-family: var(--font-main, "Noto Sans JP", sans-serif);
}
.mp-app-card[hidden] { display: none; }
.mp-app-card .mp-ic { flex: none; }
.mp-app-card .mp-app-text { flex: 1; min-width: 0; }
.mp-app-card b { display: block; font-size: 0.88rem; font-weight: 700; }
.mp-app-card small { display: block; font-size: 0.72rem; line-height: 1.45; color: var(--geal-text-muted, #6b7280); }
.mp-app-card .mp-app-chev { color: var(--geal-text-muted, #9ca3af); font-size: 0.8rem; }
