/* dx-form.css - DXアセスメント フォームページ スタイル定義 */

/* =============================================
   フォームヘッダー（タイトル・説明文）
   ============================================= */

/* フォームタイトル（青い左ボーダー付き見出し） */
.dx-form-heading {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #333;
    margin: 0 0 12px !important;
    padding-left: 14px !important;
    border-left: 4px solid #008CD6 !important;
    line-height: 1.4 !important;
}

/* フォーム説明文 */
.dx-form-desc {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin: 0 0 24px !important;
    line-height: 1.6 !important;
}

/* =============================================
   セクションカード（設問グループ共通）
   ============================================= */

.dx-section {
    margin-bottom: 50px;
}

/* 各設問グループを囲むカード形式コンテナ（背景・枠線・角丸） */
.dx-section, .dx-roadmap-item input[type="checkbox"] {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 24px;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    justify-content: center;
}

/* セクション大分類の見出し（青色テキスト・下罫線付き） */
.dx-section-title {
    font-size: 24px;
    font-weight: 700 !important;
    color: #008CD6;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #008CD6;
}

/* =============================================
   設問（Q1〜Q25）レイアウト
   ============================================= */

/* 設問ラベルの下余白リセット（他スタイルの上書き） */
.dx-field label {
    margin: 0 0 6px !important;
    display: inline-block;
}
/* 設問テキスト（<p> 要素）の下余白調整 */
.dx-question p {
    margin: 0 0 6px !important;
}

/* 基本情報及び設問1件分のブロック下余白 */
.dx-question {
    margin-bottom: 24px;
}

.dx-field {
    margin-bottom: 14px;
}

.dx-question:last-child, .dx-field:last-child {
    margin-bottom: 0 !important;
}

/* =============================================
   フォーム入力要素
   ============================================= */

/* テキスト入力・セレクトボックスの共通スタイル（幅・余白・枠線） */
.dx-field input,
.dx-field select,
.dx-question select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd5dc;
    border-radius: 4px;
    background: #b3b3b325;
    font-size: 15px;
    box-sizing: border-box;
    font-weight: normal;
}

/* 必須マーク（赤色アスタリスク） */
.required {
    color: #d9534f;
    font-weight: bold;
}

/* =============================================
   ページレイアウト
   ============================================= */

/* フォームページ全体のラッパー（最大幅制限・中央寄せ） */
.dx-form-wrap {
    width: fit-content;
    max-width: 1200px;
    min-width: 300px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* =============================================
   設問26 ロードマップ選択
   ============================================= */

/* ロードマップ選択肢グループのカードコンテナ（淡紫背景） */
.dx-roadmap-group {
    background: rgba(191, 230, 248, 0.19);
    border: 1px solid #d8dce3;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.dx-roadmap-group:last-child {
    margin-bottom: 0 !important;
}


/* ロードマップグループの見出しテキスト */
.dx-roadmap-title {

    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    color:#008CD6;
}

/* ロードマップ設問説明テキスト */
.dx-section-desc {
    margin: 0 0 16px !important;
    font-weight: normal;
}

/* ロードマップ各選択肢の行（チェックボックス＋ラベルを横並び） */
.dx-roadmap-item {

    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    line-height: 1.2;
    font-weight: normal;
    margin-bottom: 8px;
}

/* ロードマップ行内チェックボックスの上余白調整（テキストとの垂直位置合わせ） */
.dx-roadmap-item input[type="checkbox"] {
    /* margin-top: 12px; */
}

/* =============================================
   送信ボタンエリア
   ============================================= */

/* 送信ボタンの中央寄せラッパー */
.dx-submit-wrap {
    text-align: center;
    margin-top: 40px;
}

/* 送信ボタン本体（青背景・角丸・ホバーアニメーション定義） */
.dx-submit-wrap button {
    display: inline-block;
    padding: 14px 70px;
    background: linear-gradient(90deg, #008cd6, #58b9e2) !important;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

/* 送信ボタン ホバー時（色を濃く・上方向微移動） */
.dx-submit-wrap button:hover {
    opacity: 0.8;
}

/* =============================================
   バリデーション・エラー表示
   ============================================= */

/* 入力項目直下に表示するインラインエラーメッセージ */
.dx-field-error {
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    background: #ffe8e8;
    padding: 0 0 0 10px;
    border-radius: 4px;
    line-height: 1.8 !important;
}

/* 送信時の未入力エラー件数サマリーバナー（初期非表示・JSで表示切替） */
#dx-error-summary {

    display: none;
    color: #dc2626;

    font-weight: bold;
    text-align: center;
    background: #ffe8e8;
    border-radius: 10px;
    width: min(600px, 90%);
    margin: 0 auto 10px;
    padding: 12px 10px;
}

/* =============================================
   設問番号・必須注記
   ============================================= */

/* 設問番号バッジ（青背景・白文字・角丸） */
.dx-question-no {

    display: inline-block;
    background: #008CD6;
    color: #fff;
    padding: 0px 6px 1px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
}

/* ページ上部に表示する必須項目の注記テキスト */
.dx-required-note {
    color: #dc2626;
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 15px;
}






/*******************************************************************/
/* SP：幅768px以下 
/*******************************************************************/
@media screen and (max-width: 768px) {

/* =============================================
フォームヘッダー（タイトル・説明文）
============================================= */

/* フォームタイトル（青い左ボーダー付き見出し） */
.dx-form-heading {
    padding-left: 9px !important;
    line-height: 1 !important;
}

/* フォーム説明文 */
.dx-form-desc {
    font-size: 14px;
    margin: 0 0 20px !important;
}

/* =============================================
   セクションカード（設問グループ共通）
   ============================================= */

.dx-section {
    margin-bottom: 30px;
}

/* 各設問グループを囲むカード形式コンテナ（背景・枠線・角丸） */
.dx-section, .dx-roadmap-item input[type="checkbox"] {
    border-radius: 8px;
    padding: 3% 2% 2%;;
    font-size: 14px !important;
}

/* セクション大分類の見出し（青色テキスト・下罫線付き） */
.dx-section-title {
    font-size: 20px;
    margin: 0 0 16px !important;
    padding-bottom: 2px;
}

/* =============================================
   設問（Q1〜Q25）レイアウト
   ============================================= */

/* 設問ラベルの下余白リセット（他スタイルの上書き） */
.dx-field label {
    margin: 0 !important;
}
/* 設問テキスト（<p> 要素）の下余白調整 */
.dx-question p {
    margin: 0 0 2px !important;
    line-height: 1.5 !important;
}

/* 基本情報及び設問1件分のブロック下余白 */
.dx-question {
    margin-bottom: 20px !important;
}

.dx-field {
    margin-bottom: 14px;
}




/* =============================================
   フォーム入力要素
   ============================================= */

/* テキスト入力・セレクトボックスの共通スタイル（幅・余白・枠線） */
.dx-field input,
.dx-field select,
.dx-question select {
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 14px;
}



/* =============================================
   設問26 ロードマップ選択
   ============================================= */

/* ロードマップ選択肢グループのカードコンテナ（淡紫背景） */
.dx-roadmap-group {
    padding: 2%;
    margin-bottom: 16px;
}

/* ロードマップグループの見出しテキスト */
.dx-roadmap-title {
    margin: 0 0 10px;
    font-size: 16px;
}

/* ロードマップ設問説明テキスト */
.dx-section-desc {
    margin: 0 0 16px !important;
}

/* ロードマップ各選択肢の行（チェックボックス＋ラベルを横並び） */
.dx-roadmap-item {
    gap: 10px;
    line-height: 1.2;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

/* ロードマップ行内チェックボックスの上余白調整（テキストとの垂直位置合わせ） */
.dx-roadmap-item input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 2px;
}


/* =============================================
   バリデーション・エラー表示
   ============================================= */

/* 入力項目直下に表示するインラインエラーメッセージ */
.dx-question p.dx-field-error {
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.8 !important;
}

/* 送信時の未入力エラー件数サマリーバナー（初期非表示・JSで表示切替） */
#dx-error-summary {

    display: none;

    width: min(600px, 90%);
    margin: 0 auto 10px;
    padding: 12px 10px;
}

/* =============================================
   設問番号・必須注記
   ============================================= */

/* 設問番号バッジ（青背景・白文字・角丸） */
.dx-question-no {
    padding: 1px 5px 2px;
    font-size: 12px;
    margin-right: 2px;
    margin-top: -4px;
}

/* ページ上部に表示する必須項目の注記テキスト */
.dx-required-note {
    font-size: 14px;
}

/* 送信ボタン本体（青背景・角丸・ホバーアニメーション定義） */
.dx-submit-wrap button {
    padding: 10px 50px;
}


}







/*******************************************************************/
/* SP：幅560px以下 
/*******************************************************************/
@media screen and (max-width: 560px) {

/* 設問番号バッジ（青背景・白文字・角丸） */
.dx-question-no {
 display: table;
}

}