/* 入力フォーム */

.inner_form {
  display: flex;
  padding: 20px 0;
  align-items: center;
}

.inner_form.top_align {
  align-items: flex-start;
}

.inner_form .left {
  flex: 1;
}

.inner_form .left p {
  margin-top: 5px;
  font-size: 0.8rem;
}

.inner_form .right {
  display: flex;
  flex: 3;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  font-size: 1.2rem;
  border: 1px solid var(--border);
  color: var(--black);
}

input:focus {
  outline: none;
}

::placeholder {
  color: var(--gray3);
}

/*input="text"サイズ*/
.input_xs {
  width: 55px;
  text-align: center;
}

.input_xs p {
  margin: 0 10px;
}

.input_s {
  width: 80px;
  text-align: center;
}

.input_m {
  width: 250px;
}

.input_ml {
  width: 400px;
}
.input_l {
  width: 100%;
}

.textarea_l {
  min-height: 200px;
  resize: vertical;
}

/*ラジオボタン*/
.radio1 {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  border: none;
}

.radio1 label {
  display: flex;
  align-items: center;
  color: var(--black);
  gap: 10px;
  position: relative;
  cursor: pointer;
  font-size: 1rem;
}

.radio1 label::before,
.radio1 label::after {
  border-radius: 50%;
  content: "";
}

.radio1 label::before {
  width: 36px;
  height: 36px;
  border: 3px solid var(--input_radio);
  box-sizing: border-box;
}

.radio1 label::after {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--input_radio);
}

.radio1 label:has(:checked)::after {
  background-color: var(--blue2);
  animation: anim-radio-2 0.3s linear;
}

.radio1 input {
  display: none;
}

/*チェックボックス*/
.checkbox1 {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
  border: none;
}

.checkbox1 label {
  display: flex;
  align-items: center;
  gap: 0 0.5em;
  position: relative;
  cursor: pointer;
}

.checkbox1 label::before,
.checkbox1 label:has(:checked)::after {
  content: "";
  margin-right: 10px;
}

.checkbox1 label::before {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 3px solid var(--input_checkbox);
}

.checkbox1 label:has(:checked)::before {
  background-color: var(--blue2);
}

.checkbox1 label:has(:checked)::after {
  position: absolute;
  top: 2px;
  left: 10px;
  transform: rotate(45deg);
  width: 9px;
  height: 20px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
}

.checkbox1 input {
  display: none;
}

/*ファイルを選択*/
.wrap_file_inner {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.wrap_file_inner label {
  margin-right: 10px;
  margin-top: -10px;
  font-size: 0.8rem;
}

input[type="file"] {
  display: inline-block;
  width: 500px;
  cursor: pointer;
  padding: 0;
  font-size: 0.8rem;
  color: #000;
  border: 1px solid var(--border);
}

::file-selector-button,
::-webkit-file-upload-button {
  display: block;
  width: 130px;
  background-color: var(--gray1);
  border-top: none;
  border-bottom: none;
  border-left: none;
  border-right: 20px solid #fff;
  cursor: pointer;
  padding: 15px 0;
  border-radius: 5px 0 0 5px;
  color: #000;
  font-size: 0.8rem;
}

/*必須*/
.required {
  font-size: 0.7rem;
  color: var(--red);
  margin-left: 3px;
}
