/* =========================================================
 フォームのCSSリセット
========================================================= */

/* 1.テキスト */
/* 2.テキストエリア */
/* 3.ラジオボタン */
/* 4.セレクトボックス */
/* 5.ボタン */


/* テキスト
--------------------------------------------------------- */

input[type="text"]{ /*属性セレクタ→inputのtypeがtextにCSSを指定*/

  -moz-appearance: none;/*  iOSの表示を解除*/
  -webkit-appearance: none;/*   iOSの表示を解除  */
  appearance: none;/*デフォルトスタイルを無効に*/
  background-color: transparent;/*背景色を初期値（透明）に*/
  background-image: none;/*背景のグラデーションを削除*/
  border: 1px solid rgba(0, 0, 0, 0.16);/*ボーダーを指定して統一*/
  border-radius: 0;/*角丸を削除*/
  color: inherit;/*bodyで指定したcolorを継承*/
  font-family: inherit;/*bodyで指定したfont-familyを継承*/
}

input[type="text"]:focus { /*入力中のborderを指定*/
  border: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow: none;/*影を削除*/
  outline: none;/*青色の枠を削除*/
}

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

textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: none;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  height: 100px;
  padding: 0.4em 0.8em;
  width: 100%;
}

textareafocus {
  border: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow: none;
  outline: none;
}


/* ラジオボタン
--------------------------------------------------------- */


input[type="radio"]{
  display: none;
}
input[type="radio"] + span{
  cursor: pointer;
  display: inline-block;
  margin: 0 0.2em 0;
  padding: 0 0 0 1.2em;
  position: relative;
}


/*ラジオボタンの外側の丸*/
input[type="radio"] + span::before{
 -webkit-transform: translateY(-50%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 50%;
  content: "";
  display: block;
  height: 16px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
}


/*ラジオボタンの内側の丸*/
input[type="radio"] + span::after {
  -webkit-transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid transparent;
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 3px;
  opacity: 0;
  padding: 2px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease 0s;
  width: 6px;
}

input[type="radio"]:checked + span::after {
  opacity: 1;
}



/* チェックボックス
--------------------------------------------------------- */
input[type="checkbox"] {
  display: none;
}

input[type="checkbox"] + span {
  cursor: pointer;
  display: inline-block;
  margin: 0 0.2em 0;
  padding: 0 0 0 1.2em;
  position: relative;
}


input[type="checkbox"] + span::before {
  -webkit-transform: translateY(-50%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 2px;
  content: "";
  display: block;
  height: 1em;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
}

input[type="checkbox"] + span::after {
  -webkit-transform: translateY(-50%) rotate(-45deg);
  border-bottom: 3px solid rgba(0, 0, 0, 0.32);
  border-left: 3px solid rgba(0, 0, 0, 0.32);
  content: "";
  display: block;
  height: 0.6em;
  left: 0;
  margin-top: -0.2em;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  transition: all 0.3s ease 0s;
  width: 1em;
}

input[type="checkbox"]:checked + span::after {
  opacity: 1;
}


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


select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
  padding: 0.4em 0.8em;
  width: 100%;
}

select::-ms-expand {
  display: none;
}

select:focus {
  border: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow: none;
  outline: none;
}



/* ボタン
--------------------------------------------------------- */

input[type="submit"], input[type="reset"] {
  -webkit-appearance: none;
  background-color: rgba(0, 0, 0, 0.32);
  background-image: none;
  border: none;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 1em;
  margin: 0 0 1em;
  padding: 0.6em 2em;
  text-decoration: none;
}

input[type="submit"]:hover, input[type="submit"]:focus,
input[type="reset"]:hover, input[type="reset"]:focus {
  outline: none;
}

input[type="submit"]::-moz-foucus-inner, input[type="reset"]::-moz-foucus-inner {
  border: none;
  padding: 0;
}
