/* =====================================================
   KATE stage LASH - 離脱バナー（js/exit.js が出し入れする）
   画面の下からせり上がる小さなカード。本文を覆い隠さず、× と Esc で閉じられる。
   重なり順：下部固定ボタン（50）より上、目次シート（80）より下。
   キャンペーン期間中の見た目は css/xmas.css
   ===================================================== */
.exit {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 0 max(10px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    pointer-events: none;
}
.exit[hidden] { display: none; }
/* 出た時にバナー全体へフォーカスを移す（読み上げのため）。画面の下の端までの枠線は出さない。
   中のボタン・リンクは、Tab で移った時にいつもどおり枠線が出る */
.exit:focus, .exit:focus-visible { outline: none; }
.exit__card {
    position: relative; pointer-events: auto;
    max-width: 440px; margin: 0 auto; padding: 22px 18px 14px;
    border: 1px solid var(--hair-2); border-radius: 22px;
    background: var(--paper) var(--mw) center / 420px;
    box-shadow: 0 -4px 28px rgba(25, 21, 18, .22), 0 12px 30px rgba(25, 21, 18, .18);
    text-align: center; color: var(--text);
    transform: translateY(calc(100% + 24px)); transition: transform .45s var(--e-out);
}
.exit.is-open .exit__card { transform: none; }

.exit__close {
    position: absolute; top: 4px; right: 4px;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: transparent; color: var(--mute); cursor: pointer;
}
.exit__close span {
    position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; margin: -.8px 0 0 -8px;
    background: currentColor; border-radius: 2px; transform: rotate(45deg);
}
.exit__close span + span { transform: rotate(-45deg); }
.exit__close:hover { color: var(--ink); }

.exit__lead { font-weight: 700; font-size: 12.5px; letter-spacing: .16em; line-height: 1.6; color: var(--gold-t); }
.exit__ttl {
    margin-top: 2px;
    font-family: var(--f-jp); font-weight: 800;
    font-size: clamp(19px, 5.6vw, 22px); line-height: 1.45; letter-spacing: .06em; color: var(--ink);
}
.exit__txt { margin-top: 6px; font-size: 14px; line-height: 1.7; }
.exit .btn { margin-top: 12px; min-height: 60px; }
.exit__book {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px;
    font-weight: 700; font-size: 13.5px; color: var(--rose-d);
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.exit__book svg { width: 10px; height: 10px; flex: none; }

@media (min-width: 900px) {
    .exit { bottom: 20px; padding-bottom: 0; }
}
/* 背の低い画面（320×568 など）：本文を覆いすぎないよう、説明の一文を省いて詰める（画面の高さの半分以下） */
@media (max-height: 700px) {
    .exit__card { padding: 16px 16px 8px; }
    .exit__txt { display: none; }
    .exit__ttl { font-size: 18px; }
    .exit .btn { margin-top: 10px; min-height: 54px; }
    .exit__book { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .exit__card { transition: none; }
}
