
/* ============================================
   Meguri Withdrawal Modal
   退会手続き画面
============================================ */

/* モーダル全体 */
#meguriWithdrawalDialog {
    position: fixed;
    inset: 0;
    z-index: 100000;

    display: grid;
    place-items: center;

    width: 100%;
    height: 100dvh;
    padding: 16px;

    font-family: inherit;
    color: #302a42;
}

#meguriWithdrawalDialog .meguri-withdrawal-backdrop {
    position: absolute;
    inset: 0;
}

#meguriWithdrawalDialog .meguri-withdrawal-card {
    position: relative;
    z-index: 1;
}

/* 背景 */
#meguriWithdrawalDialog .meguri-withdrawal-backdrop {
    background: rgba(17, 15, 35, 0.78);
    backdrop-filter: blur(5px);
}

/* カード */
#meguriWithdrawalDialog .meguri-withdrawal-card {
    width: min(100%, 500px);
    max-height: 90dvh;
    overflow-y: auto;
    padding: 36px 30px;
    border-radius: 20px;
    background: linear-gradient(
        160deg,
        #ffffff 0%,
        #faf8ff 100%
    );
    border: 1px solid #e5dff0;
    box-shadow: 0 24px 70px rgba(12, 9, 35, 0.3);
}

/* 英語見出し */
#meguriWithdrawalDialog .meguri-withdrawal-kicker {
    margin: 0 0 8px;
    color: #8a789f;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-align: center;
}

/* タイトル */
#meguriWithdrawalDialog #meguriWithdrawalTitle {
    margin: 0 0 24px;
    color: #302747;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

/* 説明文 */
#meguriWithdrawalDialog .meguri-withdrawal-card > p:not(.meguri-withdrawal-kicker) {
    margin: 0 0 14px;
    color: #60586e;
    font-size: 14px;
    line-height: 1.9;
}

/* ステータス表示 */
#meguriWithdrawalDialog #meguriWithdrawalStatus {
    margin: 22px 0;
    padding: 16px 18px;
    border: 1px solid #e5deef;
    border-radius: 12px;
    background: #f6f2fb;
    color: #554968;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}

/* 同意欄 */
#meguriWithdrawalDialog .meguri-withdrawal-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #e8dfe9;
    border-radius: 12px;
    background: #fffafc;
    color: #554b60;
    font-size: 14px;
    line-height: 1.7;
    cursor: pointer;
}

/* チェックボックス */
#meguriWithdrawalDialog #meguriWithdrawalConsent {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin: 3px 0 0;
    accent-color: #76608f;
    cursor: pointer;
}

/* 確認ラベル */
#meguriWithdrawalDialog .meguri-withdrawal-confirm-label {
    display: block;
    margin: 22px 0 10px;
    color: #3f3554;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

/* 確認入力欄 */
#meguriWithdrawalDialog #meguriWithdrawalConfirm {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    border: 1px solid #cfc5dd;
    border-radius: 10px;
    background: #fff;
    color: #302747;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

/* 入力欄のホバー・フォーカス */
#meguriWithdrawalDialog #meguriWithdrawalConfirm:hover,
#meguriWithdrawalDialog #meguriWithdrawalConfirm:focus {
    border-color: #8d79a5;
    background: #fff;
    color: #302747;
    outline: none;
    box-shadow: 0 0 0 3px rgba(141, 121, 165, 0.12);
}

/* 退会確定ボタン */
#meguriWithdrawalDialog #meguriWithdrawalSubmit {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
    padding: 13px 18px;
    border: 1px solid #514465;
    border-radius: 11px;
    background: #514465;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* 赤いホバーを無効化 */
#meguriWithdrawalDialog #meguriWithdrawalSubmit:hover:not(:disabled),
#meguriWithdrawalDialog #meguriWithdrawalSubmit:focus:not(:disabled),
#meguriWithdrawalDialog #meguriWithdrawalSubmit:active:not(:disabled) {
    border-color: #66547e;
    background: #66547e;
    color: #fff;
    box-shadow: none;
    outline: none;
}

/* 無効状態 */
#meguriWithdrawalDialog #meguriWithdrawalSubmit:disabled,
#meguriWithdrawalDialog #meguriWithdrawalSubmit:disabled:hover {
    border-color: #bdb6c8;
    background: #bdb6c8;
    color: #fff;
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* キャンセルボタン */
#meguriWithdrawalDialog .meguri-withdrawal-cancel {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    padding: 12px 18px;
    border: 1px solid #d7cede;
    border-radius: 11px;
    background: #fff;
    color: #5d5070;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* キャンセルの赤いホバーを無効化 */
#meguriWithdrawalDialog .meguri-withdrawal-cancel:hover,
#meguriWithdrawalDialog .meguri-withdrawal-cancel:focus,
#meguriWithdrawalDialog .meguri-withdrawal-cancel:active {
    border-color: #b7a7c9;
    background: #f5f0fa;
    color: #514465;
    box-shadow: none;
    outline: none;
}

/* 閉じるボタン */
#meguriWithdrawalDialog .meguri-withdrawal-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #756981;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

/* 閉じるボタンの赤いホバーを無効化 */
#meguriWithdrawalDialog .meguri-withdrawal-close:hover,
#meguriWithdrawalDialog .meguri-withdrawal-close:focus,
#meguriWithdrawalDialog .meguri-withdrawal-close:active {
    border: none;
    background: #f0ebf5;
    color: #514465;
    box-shadow: none;
    outline: none;
}

/* 非表示状態を維持 */
#meguriWithdrawalDialog[hidden],
#meguriWithdrawalDialog #meguriWithdrawalControls[hidden],
#meguriWithdrawalDialog #meguriWithdrawalConsentRow[hidden] {
    display: none !important;
}

/* ============================================
   Mobile
============================================ */

@media (max-width: 600px) {

    #meguriWithdrawalDialog {
        padding: 14px;
    }

    #meguriWithdrawalDialog .meguri-withdrawal-card {
        padding: 30px 20px 24px;
        border-radius: 16px;
        max-height: 88dvh;
    }

    #meguriWithdrawalDialog #meguriWithdrawalTitle {
        font-size: 22px;
        margin-bottom: 20px;
    }

    #meguriWithdrawalDialog .meguri-withdrawal-card > p:not(.meguri-withdrawal-kicker) {
        font-size: 13px;
    }

    #meguriWithdrawalDialog #meguriWithdrawalStatus {
        padding: 14px;
        font-size: 13px;
    }

    #meguriWithdrawalDialog .meguri-withdrawal-consent {
        padding: 14px;
        font-size: 13px;
    }
}
