/* table */
table.formTbl {
    width: 100%;
    border-collapse: collapse;
}
table.formTbl th,
table.formTbl td {
    padding: 0.4rem 0.3rem;
    line-height: 1.6;
    font-size: 0.9rem;
    border: 1px solid #eee;
}
table.formTbl thead th {
    background: #f6f6f6;
    font-size: 0.8rem;
}
table.formTbl tbody th {
    background: rgba(0, 0, 0, 0.04);
}
table.formTbl tbody td select{
    width:auto;
}

/* ラジオ、チェックボックスカスタム */
.form_parts input[type="radio"] {
    display: none;
}
.form_parts input[type="checkbox"] {
    display: none;
}

.form_parts .radio,
.form_parts .checkbox {
    width: auto !important;
    display: inline-block;
    box-sizing: border-box;
    -webkit-transition: background-color 0.06s linear;
    transition: background-color 0.06s linear;
    position: relative;
    margin: 0 2px 8px 0;
    padding: 16px 20px 12px 30px;
    background-color: #ddd;
    vertical-align: middle;
    cursor: pointer;
    font-size: 0.7rem;
    border-radius: 4px;
}

.form_parts .checkbox {
    height: 50px;
}
.form_parts .radio {
    height: 50px;
    padding-left:20px;
}
.form_parts .radio:hover,
.form_parts .checkbox:hover {
    background-color: #96f8e9;
}
.form_parts .radio:hover:after,
.form_parts .checkbox:hover:after {
    border-color: #96f8e9;
}
/* .radio:after, .checkbox:after {
  -webkit-transition: border-color 0.2s linear;
  transition: border-color 0.2s linear;
  position: absolute;
  top: 50%;
  left: 8px;
  display: block;
  margin-top: -10px;
  width: 16px;
  height: 16px;
  content: '';

border:1px solid #f00

} */

.form_parts .radio:before {
    -webkit-transition: opacity 0.2s linear;
    transition: opacity 0.2s linear;
    position: absolute;
    top: 50%;
    left: 15px;
    display: block;
    margin-top: -5px;
    width: 0px;
    height: 0px;
    border-radius: 50%;
    background-color: #108170;
    content: "";
    opacity: 0;
}
.form_parts input[type="radio"]:checked + .radio:before {
    opacity: 1;
}
.form_parts input[type="radio"]:checked + .radio {
    background: #55f9e0;
}

.form_parts .checkbox:before {
    -webkit-transition: opacity 0.2s linear;
    transition: opacity 0.2s linear;
    position: absolute;
    top: 50%;
    left: 15px;
    display: block;
    margin-top: -7px;
    width: 5px;
    height: 9px;
    border-right: 3px solid #108170;
    border-bottom: 3px solid #108170;
    content: "";
    opacity: 0;
    -webkit-transform: rotate(34deg);
    -ms-transform: rotate(34deg);
    transform: rotate(34deg);
}
.form_parts input[type="checkbox"]:checked + .checkbox:before {
    opacity: 1;
}
.form_parts input[type="checkbox"]:checked + .checkbox {
    background: #96f8e9;
}

/* フォームパーツ 基本設定 */

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    font-size: 18px;
}
select {
    padding: 5px;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
}
option {
    font-size: 15px;
    cursor: pointer;
}
textarea {
    min-width: 80%;
    min-height: 180px;
}

input[type="submit"] {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    padding: 5%;
    cursor: pointer;
    font-size: 1rem;
    color: #ffffff;
    border: 1px solid #e50012;
    background: #e50012 url(../images/common/icon/submit.png) no-repeat 97% 22px;
}
input[type="submit"]:hover {
    color: #e50012;
    background: #fff url(../images/common/icon/submit_on.png) no-repeat 97% 22px;
}
input[type="button"],
button {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    padding: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #ffffff;
    border: 1px solid #1245bb;
    border-radius: 4px;
    background: #222429;
}
input[type="button"]:hover,
button:hover {
    background: #4f535f !important;
}
input::placeholder,
textarea::placeholder {
    opacity: 0.5 !important;
    color: #167eff !important;
}
input:read-only,
textarea:read-only {
    background: #f0f0f0;
    border: 1px solid #ccc;
}
.submitArea {
    text-align: center;
    margin: 2px auto;
}
label {
    cursor: pointer;
}

/* btn */

a.btn,
input.btn,
button.btn {
    display: inline-block;
    margin: 1rem auto;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: #ffffff;
    /* border: 1px solid #1245bb; */
    border-radius: 4px;
    box-sizing: border-box;
    background: #222429;
}
a.btn:hover,
input.btn:hover,
button.btn:hover {
    background: #4f535f;
}

a.btn.submit,
input.btn.submit,
button.btn.submit {
    width: auto;
}
a.btn.size_s,
input.btn.size_s,
button.btn.size_s {
    width: auto;
}
a.btn.size_m,
input.btn.size_m,
button.btn.size_m {
    width: 46%;
    max-width: 500px;
    font-size: 18px;
}
a.btn.size_l,
input.btn.size_l,
button.btn.size_l {
    width: 100%;
    font-size: 18px;
}

/*  */

input.form-control,
select.form-control,
textarea.form-contro {
    display: inline-block;
    /*width: auto;*/ /* デフォルトの100%を上書きして、内容に応じた幅に */
    max-width: 100%; /* 画面幅を超えないように最大幅を指定（必要に応じて） */
    /* min-width: 10%; */
    box-sizing: border-box;
    margin-right: 0;
    padding-right: 0;
}
.form-contro option {
    width: auto;
    padding: auto;
}

.form_group {
    display: block;
    margin-bottom: 1rem;
    padding: 0.4rem 0;
    align-content: flex-start;
}
.form_group label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 20rem;
    margin-bottom: 0.6rem;
    padding: 0.6rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.04);
}
.form_group.form_parts label.radio,
.form_group.form_parts label.checkbox {
    width: auto;
    min-width: auto;
}

.form_group .block {
    display: block;
    margin-bottom: 1rem;
}
.form_group .unit {
    display: flex;
    align-items: center;
    margin-left: 0.8rem;
}

/* サイズ */

.w_auto {
    width: auto !important;
}
.size_ss {
    width: 5% !important;
    min-width: 30px;
}
.size_s {
    width: 10% !important;
    min-width: 90px;
}
.size_m {
    width: 48% !important;
}
.size_l {
    width: 100% !important;
}
.w_10px {
    width: 10px;
}
.w_20px {
    width: 20px;
}
.w_30px {
    width: 30px;
}
.w_40px {
    width: 40px;
}
.w_50px {
    width: 50px;
}
.w_60px {
    width: 60px;
}
.w_70px {
    width: 70px;
}
.w_80px {
    width: 80px;
}
.w_90px {
    width: 90px;
}
.w_100px {
    width: 100px;
}
.w_200px {
    width: 200px;
}
.w_300px {
    width: 300px;
}
.w_400px {
    width: 400px;
}
.w_500px {
    width: 500px;
}
.w_1rem {
    width: 1rem;
}
.w_1hrem {
    width: 1.5rem;
}
.w_2rem {
    width: 2rem;
}
.w_2hrem {
    width: 2.5rem;
}
.w_3rem {
    width: 3rem;
}
.w_3hrem {
    width: 3.5rem;
}
.w_4rem {
    width: 4rem;
}
.w_4hrem {
    width: 4.5rem;
}
.w_10p {
    width: 10%;
}
.w_15p {
    width: 15%;
}
.w_20p {
    width: 20%;
}
.w_25p {
    width: 25%;
}
.w_30p {
    width: 30%;
}
.w_35p {
    width: 35%;
}
.w_40p {
    width: 40%;
}
.w_55p {
    width: 55%;
}
.w_60p {
    width: 60%;
}
.w_65p {
    width: 65%;
}
.w_70p {
    width: 70%;
}
.w_75p {
    width: 75%;
}
.w_80p {
    width: 80%;
}
.w_95p {
    width: 95%;
}
.w_100p {
    width: 100%;
}
/* textarea */
.h_3rem {
    min-height: 3rem;
}
.h_4rem {
    min-height: 4rem;
}
.h_5rem {
    min-height: 5rem;
}
.h_6rem {
    min-height: 6rem;
}
.h_7rem {
    min-height: 7rem;
}
.h_8rem {
    min-height: 8rem;
}
.h_9rem {
    min-height: 9rem;
}
.h_10rem {
    min-height: 10rem;
}
/* select */
select.size_auto {
    width: auto;
}
select.size_ss {
    width: 10%;
}
select.size_s {
    width: 30%;
}
select.size_m {
    width: 50%;
}
select.size_l {
    width: 100%;
}
