body{
    margin: 0;
    /* font-family: "Roboto","Noto Sans JP",Meiryo,sans-serif; */
    font-family: YakuHanJP, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    background: rgb(246, 249, 249);
}
header{
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid rgb(230, 230, 230);
}
header img{
    width: 65%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}
.top_text{
    text-align: center;
    margin: 0 auto 48px;
}
#sm_form{
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 16px 64px;
}
#sm_form h2{
    margin: 0 0 24px;
    text-align: center;
    color: #3075b7;
}
#sm_form h3,#sm_form h4{
    margin: 0;
}
#sm_form h3{
    text-align: center;
    font-size: 30px;
    margin-bottom: 32px;
    color: #3075b7;
}
#section01 h3{
    margin-bottom: 16px;
}

.sm_form_section{
    background:#fff;
    -webkit-filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.08));
    filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.08));
    padding: 55px 90px 90px;
    border-radius: 6px;
}
.sm_form_section:not(:last-child){
    margin-bottom: 32px;
}
.hidden {
    display: none;
}
table{
    width: 100%;
}
th{
    text-align: left;
    width: 31%;
    /* padding-bottom: 2rem; */
    /* position: relative; */
}
th.hissu::after{
    /* content:"※";
    color: #f76380; */
    content: "必須";
    background: #f76380;
    color: #FFF;
    padding: 2px 3px;
    border-radius: 3px;
    margin-left: 5px;
}
tr:not(:last-child) th{
    padding-bottom: 2rem;
}
tr:not(:last-child) td{
    padding-bottom: 2rem;
}
#type_switch th,#type_switch td{
    padding-bottom: 2rem;
}
label{
    cursor: pointer;;
}
#type_switch td {
    display: flex;
    /* flex-direction: column; */
    gap: 40px;
}
#type_switch td label{
    display: block;
}
/* .hiddenな行は除外して下に余白をつける */
tr.hidden_pd th,tr.hidden_pd td{
    padding-bottom: 2rem;
}

td input[type=text],td input[type=tel],td input[type=email]{
    box-sizing: border-box;
    border-radius: 0;
    /* border-radius: 100px; */
    width: 100%;
    margin: 0;
    /* line-height: 4rem; */
    height: 50px;
    border: none;
    border-bottom: 1px solid #c9c9c9;
    /* border: 1px solid #c9c9c9; */
    padding: 0 1.5rem;
    font-size: 1.2rem;
    color: #000;
    font-weight: 500;
    cursor: initial;
}
td input[type=text]:focus,td input[type=tel]:focus,td input[type=email]:focus{
    border-bottom: 2px solid #3075b7;
    outline: none;
}


td ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
.option_item{
    display: flex;
    flex-direction: column;
    gap:15px;
    flex-wrap: wrap;
}
.option_item li{
    width: fit-content;
}
.option_item li:hover{
    color: #FFF;
}
.option_item li label{
    border: 1px solid #c9c9c9;
    padding: 1rem;
    display: block;
    width: fit-content;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.option_item li label span{
    display: block;
    font-size: 13px;
    padding-top: 5px;
}
.option_item li label:hover{
    box-shadow: 0 0 7px rgba(0,0,0,0.15);
    background: #94cbff;
    transition: 0.3s;
}
.option_item li label span:hover{
    color: #FFF;
}

.course_item label .price_dai,.option_item li label .price_dai{
    margin-left: 10px;
    padding: 0;
}


.option_item input[type="checkbox"]:checked + label {
    background: #3075b7;
    border-color: #3075b7;
    color: #fff77c;

}
.option_item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.course_item label{
    border: 1px solid #c9c9c9;
    padding: 1rem;
    display: block;
    width: fit-content;
    border-radius: 5px;
    cursor: pointer;
}
.course_item input[type="radio"]:checked + label {
    background: #3075b7;
    border-color: #3075b7;
    color: #fff77c;
}
.course_item input[type="radio"] {
    display: none;
}

.type_switch label,.confirm_tr label{
    border: 1px solid #c9c9c9;
    padding: 1rem 1.5rem;
    display: block;
    width: fit-content;
    border-radius: 5px;
    cursor: pointer;
}
.type_switch input[type="radio"]:checked + label ,.confirm_tr input[type="radio"]:checked + label{
    background: #3075b7;
    border-color: #3075b7;
    color: #fff77c;
    font-weight: bold;
}
.type_switch input[type="radio"] ,.confirm_tr input[type="radio"]{
    display: none;
}
.type_switch{
    display: flex;
    justify-content: center;
    gap:16px;
    margin-bottom: 32px;
}
.confirm_tr td{
    display: flex;
    gap:40px;
}

#upload_fields {
    border-spacing: 0 20px;
    table-layout: fixed;
}
#upload_fields th,#upload_fields td{
    padding-bottom: 0;
}
#upload_fields td{
    border: 1px solid #c9c9c9;
    padding: 24px;
    border-radius: 3px;
    box-sizing: border-box;
}
#add_upload,#add_staff{
    display: block;
    margin: auto;
    border:none;
    background: #3075b7;
    color: #FFF;
    line-height: 1;
    padding: 10px;
}
.remove_upload{
    color: #f76380;
    background: transparent;
    border: none;
    font-size: 20px;
}
input,button,input[type="file" i] {
    cursor: pointer!important;
}

/* .upload_item,
.staff_item {
    display: none;
}

.upload_item.always_show,
.staff_item.always_show {
    display: table-row;
} */


#kiyaku_box{
    border: 1px solid #c9c9c9;
    padding: 24px;
    border-radius: 3px;
    font-size: 80%;
    width: 100%;
    height: 350px;
    overflow: scroll;
    box-sizing:border-box;
}
.agree-kiyaku{
    display: block;
    margin: 30px auto 0;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    max-width: fit-content;
    border: solid 2px #f76380;
    line-height: 1;
    padding: 10px;
    border-radius: 3px;
    background: ghostwhite;
    cursor: pointer;
}

#submit_btn{
    text-align: center;
}
#submit_btn button{
    border: none;
    background: #3075b7;
    color: #FFF;
    line-height: 1;
    padding: 15px 24px;
    font-size: 25px;
    font-weight: bold;
}


.sm_form_section_item:not(:last-child),.sm_form_section_option_item:not(:last-child){
    margin-bottom: 1em;
    border-bottom: solid 2px #ccc;
    padding-bottom: 1em;
}
.sm_form_section_item h4{
    font-size: 22px;
    margin-bottom: 10px!important;
}
.sm_form_section_item label,.sm_form_section_option_item label{
    font-size: 20px;
    font-weight: bold;
}
.sm_form_section_item label .price_dai,.sm_form_section_option_item label .price_dai{
    margin-left: 16px;
    color: #3075b7;
}
.sm_form_section_option_item p{
    margin-top: 3px;
}
.visibility-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  
  .sm_form_section .checkbox-text,
  .sm_form_section .radio-text {
    cursor: pointer;
    display: inline-block;
    padding: 5px 0 7px 30px;
    position: relative;
  }
  
  .sm_form_section input[type=checkbox]:checked + .radio-text::after,
  .sm_form_section input[type=radio]:checked + .radio-text::after {
      opacity: 1;
  }
  
  /* ラジオボタン */
.radio-text::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid #3075b7;
    border-radius: 50%;
  }
  
  .radio-text::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3075b7;
    position: absolute;
    top: 50%;
    left: 7px;
    transform: translateY(-50%);
    opacity: 0;
  }
  .price_dai{
    display: inline-block!important;
    font-size: 120%!important;
    line-height: 0;
}

#price_total input{
    font-size: 33px;
    color: #3075b7;
    font-weight: bold;
}

span.nyukaikin_none{
    text-decoration: line-through;margin-right: 15px;
}
span.nyukaikin_cp{
    background:linear-gradient(transparent 60%,#ff9 60%);font-weight: bold;
}
/*sm_confirm_section*/
.sm_confirm_section{
    background: #fff;
    -webkit-filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.08));
    filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.08));
    padding: 55px 90px 70px;
    border-radius: 6px;
    margin-bottom: 32px;
}
.sm_confirm_section table{
    table-layout: fixed;
    /* border-collapse: collapse; */
    border-collapse: separate;
    border-spacing: 0 7px;
}
.sm_confirm_section tr:not(:last-child) td,.sm_confirm_section tr:not(:last-child) th{
    /* padding-bottom: 0; */
}
.sm_confirm_section th,.sm_confirm_section td{
    padding: 1.2em 0.7em!important;
    box-sizing: border-box;
    text-align: center;
}
.sm_confirm_section th{
    /* border-bottom: solid 2px #3075b7; */
    border:solid 2px #3075b7;
    background: #3075b7;
    color: #FFF;
}
.sm_confirm_section td{
    /* border-bottom: solid 2px #ccc; */
    border: solid 2px #3075b7;
}

#submit_back_btn{
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 40px;
}
#back_btn button{
    border: none;
    background: #ccc;
    color: #666;
    line-height: 1;
    padding: 15px 24px;
    font-size: 25px;
    font-weight: bold;
}
.mail_btn{
    display: block;
    padding: 10px;
    border: #3075b7 solid 2px;
    text-decoration: none;
    color: #3075b7;
    text-align: center;
    max-width: 275px;
    margin: 32px auto 0;
}

@media screen and (max-width:1024px){
    #sm_form,.sm_confirm_section{
        padding: 16px 16px 64px;
    }
    #type_switch th,.sm_confirm_section th{
        display: block;
        width: 100%;
    }
    .sm_confirm_section th, .sm_confirm_section td{
        padding: 15px!important;
    }
    .sm_confirm_section th{
        /* padding-bottom: 0!important;
        color: #3075b7;
        border: none; */
    }
    .sm_confirm_section td{
        /* padding-top: 10px!important; */
    }
    .responsive_table th,.responsive_table td,.sm_confirm_section td{
        display: block;
        width: 100%;
    }
    .responsive_table .confirm_tr td {
        display: flex;
    }
    #type_switch th,tr:not(:last-child) th{
        padding-bottom: 5px;
    }
    td input[type=text], td input[type=tel], td input[type=email]{
        padding: 0 .5rem;
    }
    #upload_fields th{
        padding-bottom: 10px;
    }
}
@media screen and (max-width:767px){
    .sm_form_section,.sm_confirm_section{
        padding: 40px 52px 60px;
    }
}
br.pc599{
    display: block;
}
br.sp599{
    display: none;
}
@media screen and (max-width:599px){
    br.pc599{
        display: none;
    }
    br.sp599{
        display: block;
    }
    body{
        font-size: 15px;
    }
    .sm_form_section,.sm_confirm_section{
        padding: 35px 24px 48px;
    }
    #sm_form h3{
        font-size: 25px;
        margin-bottom: 16px;
    }
    td input[type=text], td input[type=tel], td input[type=email]{
        font-size: 16px;
    }
    #type_switch td{
        flex-direction: column;
        gap: 10px;
        margin-top: 11px;
    }
    .responsive_table .confirm_tr td{
        flex-direction: column;
        gap: 10px;
        margin-top: 11px;
    }
    .sm_form_section_item h4{
        font-size: 20px;
    }
    .sm_form_section_item label, .sm_form_section_option_item label{
        font-size: 16px;
    }
    .sm_form_section_item label .price_dai, .sm_form_section_option_item label .price_dai{
        margin-left: 7px;
    }
    span.nyukaikin_cp{
        display: block;
        background: none;
    }
    span.nyukaikin_cp .price_dai{
        background: linear-gradient(transparent 60%,#ff9 60%);
    }
    .top_text{
        margin: 0 auto 32px;
    }
    #submit_back_btn{
        gap:32px;
    }
}

@media screen and (max-width:330px){
    body{
        font-size: 13.8px;
    }
    #sm_form h3{
        font-size: 22px;
    }
    .sm_form_section_item h4{
        font-size: 18px;
    }
    .sm_form_section,.sm_confirm_section{
        padding: 30px 16px 45px;
    }
    #upload_fields td{
        padding: 16px 8px;
    }
    .sm_form_section_item label, .sm_form_section_option_item label{
        font-size: 14px;
    }
    #kiyaku_box{
        padding: 18px;
    }
    td input[type=text], td input[type=tel], td input[type=email]{
        font-size: 15px;
    }
}