h1,h2,h3,p,span,div,ul,li,dl,dd,dt,ol{
    margin: 0;
}

.bdash_form{
    display: none;
}
.container{
    width: 100%;
    max-width: 900px !important;
    margin: 0 auto;
    padding: 0;
    padding-bottom: 50px;
}
.container *{
    box-sizing: border-box;
}

/* .bd-pageset-parent{
    padding-bottom: 50px;
} */

.page-item-required{
    color: #aa002b;
    font-weight: normal;
    font-size: 1em;
    padding-left: 0.2em;
}

@media screen and (max-width: 767px) {
    .page-item{
        border-bottom: 4px solid #ffffff;
    }
}

@media screen and (min-width: 768px) {
    .page-item{
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid #ffffff;
    }
}
.page-item .page-item-label{
    background-color: #a9d1ce;
    padding: 0.5em 1em;
    display: flex;
    align-items: center;
}
@media screen and (min-width: 768px) {
    .page-item .page-item-label{
        width: 40%;
    }
}


.page-item .page-item-info{
    background-color: #e1f0ef;
    padding: 0.5em 1em;
}
@media screen and (min-width: 768px) {
    .page-item .page-item-info{
        width: 60%;
    }
}

.names_wrap,
.names_wrap2,
.births_wrap,
.births_wrap2,
.births_wrap3,
.births_wrap4{
    display: flex;
    flex-wrap: wrap;
}
.names_wrap,
.names_wrap2,
.births_wrap{
    background-color: #e1f0ef;
}
.births_wrap2,
.births_wrap4{
    background-color: #efebdf;
}
.births_wrap3{
    background-color: #e1f0ef;
}

@media screen and (min-width: 768px) {
    .names_wrap,
    .names_wrap2,
    .births_wrap{
        width: 60%;
    }
}

.name-title,
.name-title2,
.birth-title,
.birth-title2,
.birth-title3,
.birth-title4{
    font-weight: 700;
}

.names_wrap dl .page-item-label,
.names_wrap2 dl .page-item-label,
.births_wrap dl .page-item-label,
.births_wrap2 dl .page-item-label,
.births_wrap3 dl .page-item-label,
.births_wrap4 dl .page-item-label{
    display: none;
}


@media screen and (min-width: 768px) {
    .page-item .names_wrap dl .page-item-info,
    .page-item .names_wrap2 dl .page-item-info,
    .page-item .births_wrap dl .page-item-info,
    .page-item .births_wrap2 dl .page-item-info,
    .page-item .births_wrap3 dl .page-item-info,
    .page-item .births_wrap4 dl .page-item-info {
        width: 100%;
    }
}

.names_wrap .page-item,
.names_wrap2 .page-item,
.births_wrap .page-item,
.births_wrap2 .page-item,
.births_wrap3 .page-item,
.births_wrap4 .page-item{
    border-bottom: none;
    width: 50%;
}
@media screen and (min-width: 768px) {
    
}

.names_wrap .page-item-info .page-item-message,
.names_wrap2 .page-item-info .page-item-message,
.births_wrap .page-item-info .page-item-message,
.births_wrap2 .page-item-info .page-item-message,
.births_wrap3 .page-item-info .page-item-message,
.births_wrap4 .page-item-info .page-item-message{
    display: none;
}
.names_wrap > .page-item-message,
.names_wrap2 > .page-item-message,
.births_wrap > .page-item-message,
.births_wrap2 > .page-item-message,
.births_wrap3 > .page-item-message,
.births_wrap4 > .page-item-message{
    width: 100%;
    padding: 0em 1em 0.5em;
    margin-top: -0.4em;
}

.births_wrap .birth_el:nth-of-type(1) .page-item-info::after,
.births_wrap2 .birth_el2:nth-of-type(1) .page-item-info::after,
.births_wrap3 .birth_el3:nth-of-type(1) .page-item-info::after,
.births_wrap4 .birth_el4:nth-of-type(1) .page-item-info::after{
    content: '年';
}
.births_wrap .birth_el:nth-of-type(2) .page-item-info::after,
.births_wrap2 .birth_el2:nth-of-type(2) .page-item-info::after,
.births_wrap3 .birth_el3:nth-of-type(2) .page-item-info::after,
.births_wrap4 .birth_el4:nth-of-type(2) .page-item-info::after{
    content: '月';
}
.births_wrap .birth_el .custom-select,
.births_wrap2 .birth_el2 .custom-select,
.births_wrap3 .birth_el3 .custom-select,
.births_wrap4 .birth_el4 .custom-select{
  width: 85%;
}

.page-item-message{
    color: red;
}




@media screen and (min-width: 768px) {
    .wan_group > .wan_title{
        width: 20%;
        border-right: 1px solid #ffffff;
    }
    .wan_group .wan_ele_wrap{
        width: 80%;
    }
    
}
@media screen and (min-width: 768px) {
    .page-item div dl .page-item-label {
        width: 25%;
    }
    .page-item div dl .page-item-info {
        width: 75%;
    }
}


.wan_title{
    font-weight: 800;
}
@media screen and (max-width: 767px) {
    .wan_title{
        border-bottom: 1px solid #ffffff;
    }
}

    .page-item.wan_ele:last-child {
        border-bottom: 0;
    }


.wan_title.wan_1.page-item-label,
.wan_ele.wan_1 .page-item-label,
.wan_title.wan_3.page-item-label,
.wan_ele.wan_3 .page-item-label{
    background-color: #d9d0b2;
}
.wan_ele.wan_1 .page-item-info,
.wan_ele.wan_3 .page-item-info{
    background-color: #efebdf;
}



@media screen and (min-width: 768px) {
    .birth-title2.page-item-label,
    .birth-title3.page-item-label,
    .birth-title4.page-item-label{
        width: 25%;
    }
    .births_wrap2,
    .births_wrap3,
    .births_wrap4 {
        width: 75%;
    }
}



.bdash-form-confirm .page-item-description{
    display: none;
}

.bdash_form_button_input{
 text-align: center;
 margin-top: 30px;
}


.bdash_form_button_confirm{
    
   text-align: center;
   margin-top: 20px;
}

@media screen and (max-width: 767px) {
    .bdash_form_button_confirm{
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        
    }
}

.bdash_form_commit_button,
.bdash_form_back_button,
.bdash_form_commit_button{
    background-color: #ffffff;
    padding: 10px;
    border-radius: 4px;
    border-width: 1px;
    border-color: #999999;
    outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
@media screen and (max-width: 767px) {
    .bdash_form_commit_button,
    .bdash_form_back_button,
    .bdash_form_commit_button{
        width: 80%;
    }
}


.bdash_form_back_button{
    margin: 0 5px;
}
.bdash_form_commit_button{
    margin: 0 5px;
}

@media screen and (max-width: 767px) {
    .bdash_form_back_button{
        margin: 5px 0;
    }
    .bdash_form_commit_button{
        margin: 5px 0;
    }
}

/* .form-item-agreement > .page-item-label{
    display: none;
}

.form-item-agreement > .page-item-info{
    background-color: #ffffff;
} */

.agreement-text{
    background-color: #ffffff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    
    height: 200px;
    overflow-y: scroll;
}

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;
}

/* ===== form-item-agreement と form-item-checkbox のみに適用 ===== */

/* 上下のボーダーとflexレイアウトを解除 */
.form-item-agreement,
.form-item-checkbox {
    border-bottom: none;
    display: block;
}

/* ラベル部分(項目名・必須マーク)を非表示 */
.form-item-agreement > .page-item-label,
.form-item-checkbox > .page-item-label {
    display: none;
}

/* dd(page-item-info)を全幅に、paddingとmarginとmarginをリセット */
.form-item-agreement > .page-item-info,
.form-item-checkbox > .page-item-info {
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.form-item-agreement > .page-item-info > label,
.form-item-checkbox > .page-item-info > label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
}

/* チェックボックス自体のサイズ・余白を調整 */
.form-item-agreement > .page-item-info > label input[type="checkbox"],
.form-item-checkbox > .page-item-info > label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 20px;
}

.agreement-text {
    border: 1px solid #999;
}

/* ===========================
   チェックボックス共通
   =========================== */

.form-item-agreement label,
.form-item-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.form-item-agreement input[type="checkbox"],
.form-item-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px;
    margin-top: 4px !important;
}

.form-item-checkbox .label-text-checkbox{
    margin: 0;
    padding: 0;
}

.form-item-agreement a {
    color: #007bff;
    text-decoration: underline;
}

.form-item-agreement a:hover {
    color: #0056b3;
}