body {
    color: #333;
    font-size: 14px;
    font-family: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Meiryo", "メイリオ", "MS PGothic", "ＭＳ Ｐゴシック", "sans-serif";
}

div,p,h1,h2,h3,ul,li,dl,dt,dd,span,input,button{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bdash_form{
    opacity: 0;
}

.bdash-form-input{
    margin: 0;
}

.bdash_form{
    width: 100%;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .bdash_form{
        max-width: 880px;
    }
}

@media screen and (max-width: 767px) {
    .bdash_form{
        width: 95%;
        margin: 0 auto;
    }
}



label{
    display: flex;
}

@media screen and (min-width: 768px) {
    .page-item:not(.form-item-agreement){
        display: flex;
        flex-wrap: wrap;
    }
}
.page-item:not(.form-item-agreement){
    border-bottom: 1px solid #999999;
}


.bd-pageset-parent dl.page-item:nth-of-type(1){
    border-top: 1px solid #999999;
}
.page-item:not(.form-item-agreement) .page-item-label{
    background-color: #eee;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
}
.page-item:not(.form-item-agreement) .page-item-info{
    padding: 10px 20px;
}

@media screen and (min-width: 768px) {
    .page-item:not(.form-item-agreement) .page-item-label{
        width: 200px;
    }
    .page-item:not(.form-item-agreement) .page-item-info{
        width: 680px;
    }
}

.page-item:not(.form-item-agreement) .page-item-required{
    color: #800000;
}


.form-item-agreement{
    margin-top: 30px;
}
.agreement-text{
    border: 1px solid #999;
    height: 200px;
    overflow-y: scroll;
    padding: 15px 15px 15px 30px;
    border-radius: 5px;
    margin-top: 10px;
}

.form-item-agreement .page-item-label{
    font-size: 18px;
}
.form-item-agreement .page-item-label .page-item-required{
    display: none;
}
.form-item-agreement .page-item-info > label{
    margin-top: 20px;
    justify-content:flex-start;
}

.page-item-message{
    color: red;
}

.bdash_form_button_input,
.bdash_form_button_confirm{
    text-align: center;
    margin-top: 30px;
}
.bdash_form_commit_button,
.bdash_form_back_button{
      padding: 10px 20px;
      border-radius: 4px;
      border: 1px solid #999;
      background-color: #ffffff;
      color: #333;
      -webkit-appearance: none;
      appearance: none;
}

@media screen and (min-width: 768px) {
    /* .bdash_form_commit_button,
    .bdash_form_back_button{
        transition: all 0.5s;
    } */

    .bdash_form_commit_button:hover,
    .bdash_form_back_button:hover{
        cursor: pointer;
        background-color: #ccc;
        transition: all 0.5s;
    }
}

.bdash-form-confirm .form-item-agreement{
    display: none;
}

.form-control{
    width: 100%;
    max-width: 300px;
    padding: 5px;
    display: block;
}

.form-control + .form-control{
    margin-top: 15px;
}

input::placeholder { color: #808080 !important; }  
select { color: #808080 !important;  }  
.form-item-radio .page-item-info label:not(:last-of-type) {  
width: 600px !important;  
}  
div.page-custom-calendar input.form-control{
color: #808080 !important;
}

/* ===== 最後のdl要素を「チェックボックス+テキスト」のみの表示にする ===== */

/* 上下のボーダーとflexレイアウトを解除 */
.bd-pageset-parent dl.page-item:last-of-type {
    border-bottom: none;
    display: block;
}

/* ラベル部分(項目名・必須マーク)を非表示 */
.bd-pageset-parent dl.page-item:last-of-type > .page-item-label {
    display: none;
}

/* dd(page-item-info)を全幅に */
.bd-pageset-parent dl.page-item:last-of-type > .page-item-info {
    width: 100%;
    padding: 10px 0;
}

/* チェックボックスとテキストを横並びに、中央ぞろえ */
.bd-pageset-parent dl.page-item:last-of-type > .page-item-info > label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;  /* ← 変更: flex-start から center へ */
    margin: 0;
}

/* チェックボックス自体のサイズ・余白を調整 */
.bd-pageset-parent dl.page-item:last-of-type > .page-item-info > label input[type="checkbox"] {
    width: auto;
    flex: none;
    margin: 3px 8px 0 0;
}

/* テキスト部分のスタイル */
.bd-pageset-parent dl.page-item:last-of-type > .page-item-info > label .label-text-checkbox {
    font-size: 14px;
    line-height: 1.5;
}

.label-text-checkbox {
  margin: 0px 0px 0 0;
}