/* -------

お護摩木札インターネット申し込みフォーム css 

-------------*/

.blk-form{
    padding-top: 30px;
}
.ds_text{
    max-width: 904px;
    margin: 0 auto 33px;
    padding-bottom: 25px;
    border-bottom: 1px solid #cbc9cb;
}
.ds_text p{
    padding-left: 35px;
    font-size: 14px;
}
.confirm_text{
    display: none;
}
.br_address{
    display: none;
}
#page_header h1 span, #page_header .title span {
    line-height: 1.75;
}

.form_rakkeiHead{
    max-width: 907px;
    border:1px solid #898989;
    margin:0 auto;
    padding:35px 10px 45px;
}
.form_rakkeiHead--info{
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
}
.form_rakkeiHead--text{
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
}
.form_rakkeiHead--tel{
    display: inline-block;
}

/* フォーム上部ラジオボタン */
.js-form-free {
  display: none;
}
.form-switch{
    max-width: 712px;
    margin: 0 auto 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3%;
    margin-bottom: 20px;
}
.form-switch label{
    width: 50%;
    max-width: 310px;
    text-align: center;
    cursor: pointer;
}
.form-switch__text{
    margin-top: 23px;
    margin-bottom: 13px;
    text-align: center;
    font-size: 14px;
    font-family: "Noto Serif JP", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", serif;
}
.form-switch label input{
    font-size: 14px;
}
.form-switch .radio input {
  display: none;
}

.radio-custom {
margin: 0 0 -5px 5px;
  width: 20px;
  height: 20px;
  border: 1px solid #cbc9cb;   /* 外枠うすグレー */
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
/* 中の丸 */
.radio-custom::after {
  content: '';
  width: 14px;
  height: 14px;
  background: #cbc9cb;         /* 中の丸グレー */
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;               /* 最初は非表示 */
}

/* 選択時の外枠（少し濃くしてもいい） */
.radio input:checked + .radio-custom {
  border-color: #cbc9cb;
}
.radio input:checked ~ .radio-custom::after {
  opacity: 1;
}

.form{
    padding-top: 65px;
}
.flex dt{
    display: flex;
    justify-content: start;
    align-items: center;
}
.line dl dt label{
    display: flex;
    justify-content: start;
    align-items: center;
}.form .line dt{
    padding-top: 0;
}
.form .fm_select01 .mwform-radio-field.horizontal-item{
    margin-bottom: 82px;
}


.select01-date__text{
    max-width: 290px;
    background-color: #ffdfff;
    padding: 10px 10px 10px 10px;
    border: 1px solid #CBC9CB;
}


/* 初期状態は非表示 */
.select__wrap02, .select__wrap03, .select__wrap04,
.free__wrap02, .free__wrap03, .free__wrap04 {
  display: none;
}


/* 
.fm_select01{
    max-width: 712px;
    margin: 0 auto 110px;
    display: flex;
    align-items: start;
    justify-content: space-between;
}
.fm_select01 .mwform-radio-field{
    width: 50%;
    max-width: 310px;
    width: 310px;
    height: 311px;
    background: url(../imgs/form_rakkei/select01_item1.png) no-repeat;
    background-size: 100% auto;
    background-position: center center;
    position: relative;
}
.fm_select01 .mwform-radio-field::before{
    content:'選択式 お護摩木札 ご祈祷料千円（1本）';
    width: 100%;
    display: block;
    font-size: 14px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    bottom: -45px;
    font-family: "Noto Serif JP", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", serif;
    text-align: center;
}
.fm_select01 .mwform-radio-field:nth-child(2)::before{
    content:'自由記述 お護摩木札 ご祈祷料千円（1本）';
}
.fm_select01 .mwform-radio-field:nth-child(2){
    background: url(../imgs/form_rakkei/select01_item2.png) no-repeat;
    background-size: 100% auto;
    background-position: center center;
}
.fm_select01 .mwform-radio-field label{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
	-webkit-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	-moz-transform: translateX(-50%);
	-o-transform: translateX(-50%);
    bottom: -80px;
} */
/* .fm_select01 .mwform-radio-field-text{
    padding-left: 0;
    padding-right: 30px;
}
.form .fm_select01 .mwform-radio-field-text::before{
    left:auto;
    right:0;
}
.form .fm_select01 .mwform-radio-fieinput[type="radio"]:checked + .mwform-radio-field-text::after{
    left:auto;
    right:0;
}
.form .fm_select01 .mwform-radio-field-text::after{
    left:auto;
    right:6px;
} */
.form .mwform-radio-field-text::before{
    border:1px solid #dcdbdc;
}
.form .mwform-radio-field-text::after{
    width: 14px;
    height: 14px;
    top: 3px;
    left: 4px;
}
.form input[type="radio"]:checked + .mwform-radio-field-text::after{
    background-color: #dcdbdc;
}
.fm_ttl{
    margin-top: 70px;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.fm_number .input,
.fm_old .input{
    width: 100%;
    max-width: 70px;
}
.fm_afterText{
    font-size: 14px;
    margin-left: 10px;
}
.fm_select02 select{
    padding: 10px 10px 10px 10px;
    border: 1px solid #CBC9CB;
    height: auto;
    cursor: pointer;
}
.fm_write .input{
    max-width: 351px;
}
.fm_write01 .input{
    max-width: 206px;
}
.fm_address .flex dt{
    align-items: start;
}
.fm_address .input{
    display: flex;
    justify-content: start;
    align-items: center;
}
.mwform-zip-field{
    width: 100%;
}
.fm_addressText{
    margin-left: 20px;
    background-color: #c1272d;
    color: #ffffff;
    font-size: 14px;
    padding: 5px 20px;
    border-radius: 8px;
}
.fm_note .flex dt{
    padding-top: 6px;
    display: block;
}

.form .fm_select03 .mwform-radio-field.horizontal-item{
    margin-bottom: 0;
}
.form .fm_select03 .mwform-radio-field{
    margin-right: 70px;
}
.form .line.fm_note dt{
    width: 280px;
}
.fm_payWrap{
    display: flex;
    justify-content: start;
    align-items: center;
    gap:50px;
}
.fm_payWrap p{
    font-size: 14px;
    color: #c1272d;
    min-width: 56px;
}
.line dl dt .ninni{
    font-size: 12px;
    display: inline-block;
    vertical-align: 1px;
    margin-left: 8px;
}
.btn{
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}
.mw_wp_form .error{
    font-size: 11px!important;
    font-family: 'Noto Sans JP', "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", sans-serif;
}

.form .line.fm_btn{
    padding-top: 15px;
    border-bottom: none;
}
#add_btn,
#add_btn_free {
    padding-left: 0;
    border:none;
    color: #c1272d;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-family: "Noto Serif JP", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", serif;
}




/* 確認画面 */
.mw_wp_form_confirm .form-switch,
.mw_wp_form_complete .form-switch {
  display: none;
}
.mw_wp_form_confirm .form {
    padding-top: 0;
}
.mw_wp_form_confirm .confirm_text{
    margin-bottom: 20px;
    display: block;
}
.mw_wp_form_confirm .confirm_text p{
    font-size: 15px;
    text-align: center;
}
.mw_wp_form_confirm .select01-date__text{
    max-width: 290px;
    background-color: #F9F9F9;
    padding: 0;
    border: none;
}
.mw_wp_form_confirm .fm_addressText{
    opacity: 0;
    display: none!important;
}
.mw_wp_form_confirm  .fm_select01-date .input{
    max-width: 100%;
}
.mw_wp_form_confirm .js-selected-text{
    background-color: #F9F9F9;
    padding: 0;
    border: none;
}
.form .btn .back{
    width: 285px;
    padding: 15px 10px 17px 10px;
    border: 2px solid #B18218;
    background-color: #ffffff;
    position: relative;
    border-radius: 0;
    font-size: 18px;
    font-family: "Noto Serif JP", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", serif;
    color: #B18218;
}
.form .btn .back:hover{
      background-color: #B18218;
      color: #fff;
}
.mw_wp_form_confirm  .btn .submit::after,
.mw_wp_form_confirm .btn .confirm::after{
    display: none;
}

.mw_wp_form_confirm .fm_select01{
    display: none;
}

.mw_wp_form_confirm .line.fm_btn{
    display: none;
}
/* .mw_wp_form_confirm .select__wrap02,
.mw_wp_form_confirm .select__wrap03,
.mw_wp_form_confirm .select__wrap04 {
  display: block !important;
} */
.mw_wp_form_confirm .select_wrap:has(input[value]:not([value=""])) {
  display: block;
}

/* 完了画面 */
/* #complate p{
    padding-top: 0;
} */
#complate .blk:last-child{
    padding-top: 0;
}

@media screen and (max-width: 980px) {
    .form_rakkeiHead{
        width: calc(100% - 40px);
    }
    .fm_select01{
        gap:30px;
    }
    .fm_select01 .mwform-radio-field{
        width: 50%;
    }
    .fm_addressText{
        font-size: 12px;
        line-height: 1.5;
        padding: 3px 5px;
    }
    .br_address{
        display: block;
    }
}
@media screen and (max-width: 768px) {
    .form_rakkeiHead{
        padding: 25px 10px 30px;
    }
    .form_rakkeiHead--text{
        font-size: 14px;
    }
    .form .line.fm_note dt{
        width: 100%;
    }
    .fm_ttl{
        margin-top: 40px;
        font-size: 16px;
    }


    .form .fm_select01 .mwform-radio-field.horizontal-item{
        margin-bottom: 30px;
    }
    .fm_select01 {
        margin-bottom: 60px;
        gap: 20px;
    }
    .fm_select01 .mwform-radio-field{
        width: 260px;
       height: 260px;
    }
    .fm_select01 .mwform-radio-field::before{
        bottom: -20px;
        font-size: 12px;
    }
    .fm_select01 .mwform-radio-field label {
        bottom: -51px;
    }
    .fm_address .input{
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    .line.fm_note dt .cap br{
        display: none;
    }
    .br_address{
        display: none;
    }
    .form .mwform-radio-field-text{
        padding-left: 25px;
    }
    .form .mwform-radio-field-text::before{
        top: 2px;
        width: 16px;
        height: 16px;
    }
    .form .mwform-radio-field-text::after{
        top: 6px;
        width: 10px;
        height: 10px;
    }
    .form .fm_select03 .mwform-radio-field.horizontal-item{
        margin-bottom: 5px;
    }
    .btn{
        flex-direction: column-reverse;
        gap: 10px;
    }
    .form .btn .back{
        margin: 0;
        font-size: 16px;
        width: 100%;
        width: 250px;
    }
    .form .btn .submit, .form .btn .confirm{
        width: 100%;
        max-width: 250px;
    }
    .form .btn button:not(:last-child) {
            margin: 0;
    }

    #complate p{
        padding-top: 0;
    }
    #complate .blk:last-child{
        padding-top: 0;
    }


}

@media screen and (max-width: 640px) {
    .fm_addressText{
        margin-left: auto;
    }
    .fm_note .flex{
        display: block;
    }
    .form-switch{
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .form-switch label{
        width: 100%;
        max-width: 280px;
    }
    .form-switch__text{
        margin-top: 5px;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 580px) {
    /* .fm_select01{
        margin-bottom: 20px;
       flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .form .fm_select01 .mwform-radio-field.horizontal-item {
        margin-bottom: 50px;
    }
    .fm_select01 .mwform-radio-field label {
        bottom: -45px;
    } */
}