/* ============================================
   お問い合わせダイアログ V2
   ============================================ */

/* ダイアログを初期状態で非表示 */
#inquiryDialogV2 {
    display: none;
}

/* jQuery UI Dialog スタイルを上書き */
.ui-widget {
    font-family: 'Noto Sans JP', sans-serif;
}

/* jQuery UI Overlay スタイル を上書き */
.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
}

/* ダイアログコンテナ */
.inquiry-dialog-v2 {
    position: fixed !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    min-height: auto !important;
    top: 0;
    left: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #1c1c1f;
    text-align: left;
    user-select: none;
}

/* ペーパー（メインダイアログボックス） */
.inquiry-paper-v2 {
    background: #fff;
    width: 95%;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 6px 30px 5px rgba(0, 0, 0, 0.03),
                0px 16px 24px 2px rgba(0, 0, 0, 0.08),
                0px 8px 10px -5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* ダイアログ要素 */
.inquiry-dialog-elements-v2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* ============================================
   ヘッダー
   ============================================ */
.inquiry-dialog-title-v2 {
    display: flex;
    align-items: center;
    padding: 8px 12px 8px 24px;
    font-size: 18px;
    flex-shrink: 0;
    background-color: #fff;
}

.inquiry-typography-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inquiry-title-text-v2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 150%;
    color: #1c1c1f;
}

.inquiry-close-action-v2 {
    border-radius: 100px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.inquiry-close-action-v2:hover {
    background: #bbbbbb;
}

.inquiry-close-icon-v2 {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

/* ============================================
   コンテンツ
   ============================================ */
.inquiry-dialog-content-v2 {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: 0px 24px 20px;
    color: #6e6e74;
    min-height: 0;
}

.inquiry-modal-inner-v2 {
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ガイドメッセージ */
.inquiry-guide-wrapper-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #222;
}

.inquiry-guide-text-v2 {
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
    color: #1c1c1f;
}

/* ============================================
   ステッパー
   ============================================ */
.inquiry-stepper-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.inquiry-step-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6e6e74;
}

.inquiry-step-num-v2 {
    height: 24px;
    min-width: 24px;
    border-radius: 100px;
    background-color: #99999f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Roboto, sans-serif;
    font-size: 12px;
    letter-spacing: 0.4px;
    position: relative;
    line-height: 12px;
}

.inquiry-step-number-v2 {
    display: block;
}

.inquiry-step-check-v2 {
    width: 20px;
    height: 20px;
    color: #fff;
    display: none;
    position: absolute;
}

.inquiry-step-num-current-v2 {
    background-color: #0055cc;
}

.inquiry-step-num-done-v2 {
    background-color: #0055cc;
}

.inquiry-step-num-done-v2 .inquiry-step-number-v2 {
    display: none;
}

.inquiry-step-num-done-v2 .inquiry-step-check-v2 {
    display: block;
}

.inquiry-step-content-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.inquiry-step-title-v2 {
    font-size: 14px;
    line-height: 150%;
    color: #6e6e74;
    font-weight: 400;
}

.inquiry-step-current-v2 .inquiry-step-title-v2 {
    font-weight: 700;
    color: #1c1c1f;
}

.inquiry-step-done-v2 .inquiry-step-title-v2 {
    font-weight: 700;
    color: #1c1c1f;
}

.inquiry-step-connector-v2 {
    height: 1px;
    flex: 1;
    background-color: #99999f;
}

/* ============================================
   フォームフィールド
   ============================================ */
.inquiry-step-view-v2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.inquiry-field-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inquiry-label-wrapper-v2 {
    display: flex;
    align-items: center;
    gap: 4px;
}

.inquiry-label-v2 {
    font-size: 14px;
    line-height: 150%;
    color: #6e6e74;
    font-weight: 400;
}

.inquiry-required-v2 {
    background-color: #d32f2f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 0px 4px;
    border-radius: 2px;
    height: 18px;
}

.inquiry-textfield-v2 {
    width: 100%;
    border: 1px solid #d0d1d5;
    border-radius: 4px;
    background: transparent;
    outline: none;
    padding: 6px 12px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #1c1c1f;
    box-sizing: border-box;
    min-height: 34px;
    transition: border-color 0.2s;
}

.inquiry-textfield-v2:hover, .inquiry-textfield-v2:focus{
    border-color: #000 !important;
}

.inquiry-textfield-v2::placeholder {
    color: #b0b0b0;
}

.inquiry-textarea-v2 {
    width: 100%;
    border: 1px solid #d0d1d5;
    border-radius: 4px;
    background: transparent;
    outline: none;
    padding: 7.5px 12px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #1c1c1f;
    box-sizing: border-box;
    resize: vertical;
    min-height: 104px;
    line-height: 1.6;
    transition: border-color 0.2s;
    resize: none;
}

.inquiry-textarea-v2:hover, .inquiry-textarea-v2:focus {
    border-color: #000 !important;
}

.inquiry-textarea-v2::placeholder {
    color: #b0b0b0;
}

.inquiry-textfield-disabled-v2 {
    background-color: #f3f3f5 !important;
    cursor: default;
}

.inquiry-textfield-disabled-v2:hover {
    border-color: #d0d1d5 !important;
}

/* エラーメッセージ */
.inquiry-error-v2 {
    font-size: 12px;
    color: #d32f2f;
    line-height: 150%;
    display: none;
}

/* ============================================
   完了画面
   ============================================ */
.inquiry-complete-container-v2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px 0px 0px;
}

.inquiry-alert-v2 {
    border: 1px solid #2e7d32;
    border-radius: 4px;
    background: transparent;
    display: flex;
    align-items: flex-start;
    padding: 6px 16px;
    gap: 10px;
    color: #1e4620;
}

.inquiry-alert-icon-v2 {
    width: 22px;
    height: 22px;
    margin-top: 7px;
    flex-shrink: 0;
    color: #2e7d32;
}

.inquiry-alert-text-v2 {
    flex: 1;
    font-size: 14px;
    line-height: 150%;
    font-weight: 500;
    padding: 8px 0px;
}

.inquiry-complete-message-v2 {
    font-size: 14px;
    line-height: 150%;
    color: #1c1c1f;
}

.inquiry-complete-link-v2 {
    color: #015cb9 !important;
    text-decoration: underline;
    font-weight: 400;
}

.inquiry-divider-v2 {
    height: 1px;
    background-color: #e7e7ea;
    width: 100%;
}

.inquiry-notice-container-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 315px;
    overflow-y: auto;
}

.inquiry-notice-title-v2 {
    font-size: 18px;
    font-weight: 700;
    color: #1c1c1f;
    line-height: 150%;
}

.inquiry-notice-item-v2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inquiry-notice-subtitle-v2 {
    font-size: 14px;
    font-weight: 700;
    color: #1c1c1f;
    line-height: 150%;
}

.inquiry-notice-text-v2 {
    font-size: 12px;
    color: #1c1c1f;
    line-height: 150%;
}

/* ============================================
   アクション（ボタン）
   ============================================ */
.inquiry-dialog-actions-v2 {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 8px 24px;
    gap: 8px;
    flex-shrink: 0;
}

.inquiry-actions-group-v2 {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.inquiry-button-v2 {
    height: 36px;
    width: auto;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 16px;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 100%;
    cursor: pointer;
    transition: all 0.2s;
    border: 0;
    white-space: nowrap;
}

.inquiry-button-primary-v2 {
    background-color: #0055cc;
    color: #fff;
}

.inquiry-button-primary-v2:hover {
    background-color: #004093;
}

.inquiry-button-secondary-v2 {
    background-color: #fff;
    color: #1c1c1f;
    border: 1px solid #d0d1d5;
    font-weight: 400;
}

.inquiry-button-secondary-v2:hover {
    background-color: #bbbbbb;
}

.inquiry-button-v2:disabled {
    background-color: #e0e0e0 !important;
    color: #9e9e9e !important;
    cursor: default !important;
}

/* ============================================
   PC のみのスタイル
   ============================================ */
@media (min-width: 768px) {
    /* 完了ボタンを非表示（モバイルのみ表示） */
    .inquiry-complete-close-btn-container-v2 {
        display: none !important;
    }
    
    /* スクロールバー */
    .inquiry-dialog-content-v2::-webkit-scrollbar,
    .inquiry-notice-container-v2::-webkit-scrollbar {
        width: 8px;
    }

    .inquiry-dialog-content-v2::-webkit-scrollbar-track,
    .inquiry-notice-container-v2::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .inquiry-dialog-content-v2::-webkit-scrollbar-thumb,
    .inquiry-notice-container-v2::-webkit-scrollbar-thumb {
        background: #d9d9d9;
        border-radius: 4px;
    }

    .inquiry-dialog-content-v2::-webkit-scrollbar-thumb:hover,
    .inquiry-notice-container-v2::-webkit-scrollbar-thumb:hover {
        background: #c0c0c0;
    }
}

/* ============================================
   レスポンシブデザイン
   ============================================ */
@media (max-width: 767px) {
    .inquiry-paper-v2 {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .inquiry-dialog-content-v2 {
        padding: 16px;
        border-top: 1px solid rgba(28, 28, 31, 0.12);
        border-bottom: 1px solid rgba(28, 28, 31, 0.12);
    }
    
    .inquiry-stepper-v2 {
        flex-wrap: wrap;
    }
    
    .inquiry-step-v2 {
        flex-direction: column;
        gap: 4px;
        align-items: center;
        text-align: center;
    }
    
    .inquiry-step-content-v2 {
        align-items: center;
    }
    
    .inquiry-step-title-v2 {
        word-break: keep-all;
    }
    .inquiry-textfield-v2{
        min-height: 48px;
    }
    .inquiry-notice-container-v2{
        max-height: none;
    }
    
    .inquiry-actions-group-v2 {
        flex-direction: column-reverse;   
    }
    
    .inquiry-button-v2 {
        width: 100%;
        height: 44px;
    }
    .inquiry-dialog-actions-v2{
        padding: 16px 24px 50px;
    }
}



/* jQuery UI のモーダル外枠全体を最前面へ */
.ui-dialog {
    z-index: 10002 !important; /* ヘッダーの z-index より上 */
}

/* 背景のグレーアウト部分も最前面へ */
.ui-widget-overlay {
    z-index: 10001 !important;
}
@media (max-width: 767px) {
    .inquiry-textfield-v2,
    .inquiry-textarea-v2 {
        font-size: 16px !important; /* 入力時の勝手なズームを防止 */
    }
}