/*==================================================
  FORM CSS
==================================================*/

/*----------------------------------------
  基本
----------------------------------------*/

#form {
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#form *:focus {
  outline: none;
}


/*----------------------------------------
  フォームコンテンツ
----------------------------------------*/

#form .form-content-wrapper {
  width: 100%;
}


/*========== イントロダクション ==========*/

#form .form-introduction-wrapper {
  margin-bottom: 30px;
}

#form .form-introduction-text {
  line-height: 2;
  text-align: center;
}


/*========== エラーメッセージ ==========*/

#form .form-error-message-wrapper {
  margin-bottom: 30px;
}

#form .form-error-message {
  padding: 5px 10px;
  color: #a94442;
  border: 1px solid #ebccd1;
  border-radius: 3px;
  background-color: #f2dede;
}

#form .form-error-message:not(:last-child) {
  margin-bottom: 10px;
}

#form .form-error-message i {
  margin-right: 5px;
}

#form .form-error-message .highlight {
  font-weight: bold;
}


/*========== 個人情報の取扱について ==========*/

#form .form-privacy-wrapper {
  margin-top: 30px;
  padding: 20px;
  border-radius: 3px;
  background-color: #f0f0f0;
}

#form .form-privacy-title {
  margin-bottom: 10px;
  font-size: 2rem;
}

#form .form-privacy-title i {
  margin-right: 5px;
}

#form .form-privacy-text {
  line-height: 2;
  text-align: justify;
}


/*----------------------------------------
  フォーム
----------------------------------------*/

#form .form-wrapper {
  width: 100%;
  margin: auto;
}

#form .form-list {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
}

#form .form-list:first-child {
  border-top: 1px solid #ccc;
}

#form .form-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 35%;
  padding: 12.5px 25px;
}

#form .form-item-alt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 65%;
  padding: 12.5px 25px;
}


/*========== ラベル ==========*/

#form .form-label {
  font-weight: bold;
}


/*========== 必須項目 ==========*/

#form .required-icon {
  display: inline-block;
  margin-left: 20px;
  padding: 5px 10px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
  text-shadow: rgba(0, 0, 0, .25) 0 1px 1px;
  border-radius: 3px;
  background-color: #e57373;
}


/*========== 任意項目 ==========*/

#form .optional-icon {
  display: inline-block;
  margin-left: 20px;
  padding: 5px 10px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
  text-shadow: rgba(0, 0, 0, .25) 0 1px 1px;
  border-radius: 3px;
  background-color: #ccc;
}


/*========== 入力例 ==========*/

#form .example-text {
  width: 100%;
  margin-top: 5px;
  color: #999;
  font-size: 1.2rem;
  line-height: 1;
}

#form .example-text::before {
  content: "入力例：";
  font-weight: bold;
}


/*----------------------------------------
  フォームエレメント
----------------------------------------*/

/*========== インプット ==========*/

#form .input-general {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#form .input-general:focus {
  border: 1px solid #004b7d;
}

#form .input-narrow {
  width: 50%;
}


/*========== ラジオボタン・チェックボックス ==========*/

#form input[type=radio],
#form input[type=checkbox] {
  display: none;
}

#form .input-radio,
#form .input-checkbox {
  position: relative;
  padding: 12.5px 15px 12.5px 40px;
  line-height: 1;
  border-radius: 3px;
  background-color: #f0f0f0;
  transition: all .3s;
  cursor: pointer;
}

#form .input-radio:not(:last-child),
#form .input-checkbox:not(:last-child) {
  margin-right: 30px;
}

#form .input-radio:hover,
#form .input-checkbox:hover {
  background-color: #e6e6e6;
}

#form .input-radio:hover::after,
#form .input-checkbox:hover::after {
  border-color: #004b7d;
}

#form .input-radio::after,
#form .input-checkbox::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 15px;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  border: 2px solid #ccc;
  border-radius: 3px;
  transition: all .3s;
}

#form .input-radio::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 19px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background-color: #004b7d;
  transition: all .3s;
  opacity: 0;
  z-index: 10;
}

#form input[type=radio]:checked + .input-radio::before {
  opacity: 1;
}

#form .input-checkbox::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 20px;
  width: 5px;
  height: 10px;
  margin-top: -7px;
  border-right: 3px solid #004b7d;
  border-bottom: 3px solid #004b7d;
  transition: all .3s;
  transform: rotate(45deg);
  opacity: 0;
  z-index: 10;
}

#form input[type=checkbox]:checked + .input-checkbox::before {
  opacity: 1;
}


/*========== セレクトボックス ==========*/

#form .select-list {
  position: relative;
  width: 50%;
  line-height: 1;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #f0f0f0;
  transition: all .3s;
}

#form .select-list:hover {
  background-color: #e5f2e8;
  transition: all .3s;
}

#form .select-list::before,
#form .select-list::after {
  content: "";
  position: absolute;
  top: 11.5px;
  right: 10px;
  width: 0;
  height: 0;
  border: 5px dashed;
  border-color: #999 transparent;
  pointer-events: none;
  z-index: 5;
}

#form .select-list::before {
  border-top: none;
  border-bottom-style: solid;
}

#form .select-list::after {
  margin-top: 8px;
  border-top-style: solid;
  border-bottom: none;
}

#form .select-item {
  width: 100%;
  padding: 10px 35px 10px 10px;
  cursor: pointer;
}


/*========== テキストエリア ==========*/

#form .textarea-general {
  width: 100%;
  min-height: 150px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

#form .textarea-general:focus {
  border: 1px solid #004b7d;
}


/*========== ボタン ==========*/

#form .button-wrapper {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  padding: 0 125px;
}

#form .submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  margin: auto;
  padding: 15px;
  font-size: 1.8rem;
  border: 1px solid #333;
  background-color: #fff;
  transition: all .3s;
}

#form .submit-button::after {
  content: "＞";
  margin-left: 1em;
}

#form .submit-button:hover {
  color: #fff;
  border-color: #004b7d;
  background-color: #004b7d;
  transition: all .3s;
}

#form .return-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35%;
  margin: auto;
  padding: 15px;
  font-size: 1.8rem;
  border: 1px solid #333;
  background-color: #fff;
  transition: all .3s;
}

#form .return-button::before {
  content: "＜";
  margin-right: 1em;
}

#form .return-button:hover {
  color: #fff;
  border-color: #004b7d;
  background-color: #004b7d;
  transition: all .3s;
}

#form .return-button-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  margin: auto;
  padding: 15px;
  font-size: 1.8rem;
  border: 1px solid #333;
  background-color: #fff;
  transition: all .3s;
}

#form .return-button-alt::before {
  content: "＜";
  margin-right: 1em;
}

#form .return-button-alt:hover {
  color: #fff;
  border-color: #004b7d;
  background-color: #004b7d;
  transition: all .3s;
}
