/* 申込のあるLPの標準機能：受付状況の切り替え（flyer-to-lp スキルの部品）
   色はLPに合わせて :root の --lpst-* を上書きして使う */
:root { --lpst-closed: #8a94a3; --lpst-closed-dark: #626b78; --lpst-waitlist: #12305a; --lpst-ink: #12305a; --lpst-link: #1e73c8; }

/* キャンセル待ち受付中のボタン（フォームへ進める。色だけ変える） */
a[data-apply].is-waitlist { background: var(--lpst-waitlist); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
/* 締め切り・終了のボタン（灰色。押すと小窓） */
a[data-apply].is-closed { background: var(--lpst-closed); box-shadow: 0 4px 0 var(--lpst-closed-dark); cursor: pointer; }
a[data-apply].is-closed:hover { filter: brightness(.95); }
a[data-apply].is-closed:focus-visible, a[data-apply].is-waitlist:focus-visible { outline: 3px solid var(--lpst-ink); outline-offset: 3px; }

/* 小窓 */
.lpst-dialog { border: 0; padding: 0; background: transparent; width: 100%; max-width: min(460px, calc(100vw - 32px)); margin: auto; color: var(--lpst-ink); }
.lpst-dialog::backdrop { background: rgba(18, 48, 90, .55); }
.lpst-box { position: relative; background: #fff; border-radius: 18px; padding: 60px 22px 24px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.lpst-title { font-size: 22px; font-weight: 900; line-height: 1.5; margin: 0 0 10px; }
.lpst-msg { font-size: 17px; font-weight: 700; line-height: 1.8; margin: 0; }
.lpst-contact { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: #4a5a73; }
.lpst-contact a { color: var(--lpst-link); display: inline-block; min-height: 44px; line-height: 44px; word-break: break-all; }
.lpst-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f1f3f6; color: var(--lpst-ink); font-size: 26px; line-height: 1; font-weight: 700; cursor: pointer; }
.lpst-close:focus-visible { outline: 3px solid var(--lpst-ink); outline-offset: 2px; }
.lpst-dialog[open] .lpst-box { animation: lpstIn .3s cubic-bezier(.2, .8, .3, 1.1); }
@keyframes lpstIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lpst-dialog[open] .lpst-box { animation: none; } }
