﻿/* テキストボックス */
input[type="text"],
input[type="email"],
input[type="tel"]{
	width:100%;
  max-width:500px;
	height:40px;
	padding:0 0.5em;
  background-color:#f3f7fd;
	border:2px solid #a2c1e7;
	border-radius: 5px;
	outline:none;
}

input[type="text"].middle,
input[type="email"].middle,
input[type="tel"].middle{
  max-width:20em;
}

input[type="text"].short,
input[type="email"].short,
input[type="tel"].short{
  width:7.4em;
}


@media screen and (max-width:750px){
  input[type="text"],
  input[type="email"],
  input[type="tel"]{
    max-width:100%;
    height:3em;
    font-size:3.2vw;
  }
}

@media screen and (max-width:540px){
  input[type="text"],
  input[type="email"],
  input[type="tel"]{
    height:2.5em;
    font-size:16px;
  }
  
  input[type="text"].short,
  input[type="email"].short,
  input[type="tel"].short{
    width:4.5em;
  }
}


/* セレクトメニュー */
select{
  width:8em;
  margin-right:0.2em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height:40px;
  padding:0 25px 0 0.5em;
  border:1px solid #999;
  border-radius:0.3em;
  background:
    url(select_arrow.png)no-repeat right 5px center,
    linear-gradient(to bottom, #fff 0%, #e5e5e5 100%)no-repeat;
  background-size:1em auto ,100% 100%;
  outline:none;
}

select::-ms-expand {
    display: none;
}
select option,
select optgroup{
	background:#fff;
}

@media screen and (max-width:750px){
  select{
    width:7em;
    height:2.5em;
    font-size:3.2vw;
  }
}
@media screen and (max-width:540px){
  select{
    width:5em;
    height:2.5em;
    font-size:16px;
  }
}


/* チェックボックス */
input[type="checkbox"] {
	opacity:0;
}
input[type="checkbox"] + span{
  height:1.4em !important;
  line-height:1.2 !important;
  display:inline-block;
  vertical-align:middle;
  position: relative;
  margin-left:-15px;
  padding-left:30px;
}
@media screen and (max-width:1024px){
  input[type="checkbox"] + span{
    font-size:2vw;
  }
}

@media screen and (max-width:750px){
  input[type="checkbox"] + span{
    font-size:3.2vw;
  }
}
@media screen and (max-width:540px){
  input[type="checkbox"] + span{
    font-size:3.6vw;
  }
}
input[type="checkbox"] + span:before{
	content:'';
	display:inline-block;
	width: 22px;
	height: 22px;
	margin-right:0px;
	background-color: #FFFFFF;
	border: 2px solid #a2c1e7;
	-webkit-box-shadow: inset 3px 3px 8px rgba(0,0,0,0.1);
	box-shadow: inset 3px 3px 8px rgba(0,0,0,0.1);
	vertical-align: middle;
	border-radius:2px;
	cursor: pointer;
	outline : none;
	position:absolute;
	top:50%;
	left:0;
	transform:translateY(-50%);
}

input[type="checkbox"]:checked + span:after {
	content:'';
	display: block;
	width: 8px;
	height: 14px;
	position: absolute;
	top: calc(50% - 9px);
	left: 7px;
	border-right: 3px solid #f00;
	border-bottom: 3px solid #f00;
	content: '' !impo3tant;
	-webkit-transform: rotate(45deg) !important;
	-ms-transform: rotate(45deg) !important;
	transform: rotate(45deg) !important;
}


/* ラジオボタン */
input[type="radio"] {
	opacity:0;
}
input[type="radio"]  + span{
	margin-left:-12px;
	padding-left:30px;
	display:inline-block;
	vertical-align:middle;
	position: rel20px;
}
@media screen and (max-width:1024px){
  input[type="radio"]  + span{
    font-size:2vw;
  }
}
@media screen and (max-width:750px){
  input[type="radio"]  + span{
    font-size:3.2vw;
  }
}
@media screen and (max-width:540px){
  input[type="radio"]  + span{
    font-size:13.6vw;
  }
}

input[type="radio"]  + span:before{
	content: "";
	display:inline-block;
	width:22px;
	height: 22px;
	margin-right:10px;
	background-color: #FFFFFF;
	border: 1px solid #999;
	border-radius:  50%;
	-webkit-box-shadow: inset 3px 3px 8px rgba(0,0,0,0.1);
	box-shadow: inset 3px 3px 8px rgba(0,0,0,0.1);
	cursor: pointer;
	outline : none;
	position:absolute;
	top:50%;
	left:0;
	transform:translateY(-50%);
}
input[type="radio"]:checked + span:after {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	background: #444;
	position: absolute;
	top: 50%;
	left: 5px;
	transform:translateY(-50%);
	border-radius: 50%;
}


/* ラジオボタン(チェックボックスをラジオボタンデザインに) */
.radio input[type="checkbox"] {
	opacity:0;
}
.radio input[type="checkbox"] + span{
	margin-left:-12px;
	padding-left:30px;
	display:inline-block;
	vertical-align:middle;
	position: relative;
  line-height:1;
  font-size:20px;
}

@media screen and (max-width:1024px){
  .radio input[type="checkbox"] + span{
    font-size:2vw !important;
  }
}

@media screen and (max-width:750px){
  .radio input[type="checkbox"] + span{
    font-size:3.2vw !important;
  }
}

@media screen and (max-width:540px){
  .radio input[type="checkbox"] + span{
    font-size:3.6vw !important;
  }
}

.radio input[type="checkbox"] + span:before{
	content:'';
	display:inline-block;
	width:22px;
	height: 22px;
	margin-right:10px;
	background-color: #FFFFFF;
	border: 2px solid #a2c1e7;
	border-radius:  50%;
	-webkit-box-shadow: inset 3px 3px 8px rgba(0,0,0,0.1);
	box-shadow: inset 3px 3px 8px rgba(0,0,0,0.1);
	cursor: pointer;
	outline : none;
	position:absolute;
	top:50%;
	left:0;
	transform:translateY(-50%);
}
.radio input[type="checkbox"]:checked + span:after {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	background: #444;
	position: absolute;
	top: 50%;
	left: 5px;
	transform:translateY(-50%) !important;
	border-radius: 50%;
	border:none;
}

@media screen and (max-width:750px){
  .radio input[type="checkbox"] + span{
    margin-left:-12px;
    padding-left:30px;
    font-size:3.2vw;
  }
}

/*
@media screen and (max-width:480px){
.radio input[type="checkbox"] + span{
  margin-left:-0.7em;
  padding-left:1.8em;
}
.radio input[type="checkbox"] + span:before{
	width:1.5em;
	height: 1.5em;
	margin-right:0;
}
.radio input[type="checkbox"]:checked + span:after {
	content: "";
	display: block;
	width: 1em;
	height: 1em;
	position: absolute;
	top: 50%;
	left: 0.25em;
	transform:translateY(-50%) !important;
	border-radius: 50%;
	border:none;
}

}
*/


/* テキストエリア */
textarea{
	width:100% !important;
	min-height: 8.2em;
	height:32px;
	padding:0.5em 1em;
	border:2px solid #d2d2d2;
	border-radius: 5px;
  background-color:transparent;
	font-weight:normal;
	vertical-align:bottom;
	outline:none;
  position:relative;
	z-index:1;
}
@media screen and (max-width:750px){
  textarea{
    min-height: 11em;
    font-size:3.2vw;
  }
}
@media screen and (max-width:540px){
  textarea{
    font-size:16px;
  }
}

/* ボタン */
input[type="submit"],
input[type="button"]{
  display:inline-block;
  width:640px;
  height:2.7em;
  line-height:2.6;
  margin-top:50px;
  border-radius:100px;
  font-size:36px;
  font-weight:900;
  letter-spacing:0.05em;
  text-indent:0.05em;
  background:#ee1540 url(../images/submit_arrow.png)no-repeat right 0.8em center;
  background-size:0.45em auto;
  box-shadow:0 -5px 0 inset rgba(0,0,0,0.4);
  cursor:pointer;
  -webkit-transition : opacity 0.4s;
  transition : opacity 0.4s;
}
input[type="submit"]:hover,
input[type="button"]:hover{
	opacity:0.8;
}
input[type="submit"] + br,
input[type="button"] + br{
  display:none;
}

.confirm input[type="submit"]{
  width:11em;
  margin-left:0.2em;
  color:#fff;
}
.confirm input[type="button"]{
  width:5em;
  background-color:#999;
  color:#fff;
}


/*送信ボタンを押した時のクルクル回るやつのせいでボタンがセンタリングできないので消去*/
.wpcf7-spinner,
.ajax-loader{
  display: none !important;
}


@media screen and (max-width:750px){
  input[type="submit"],
  input[type="button"]{
    width:80%;
    margin-top:5%;
    font-size:5.2vw;
  }
}


/* プレイスホルダー */
input::placeholder,
textarea::placeholder{
	color:#a0a0a0;
}
input:-ms-input-placeholder,
textarea::placeholder{
	color:#a0a0a0;
}
input::-ms-input-placeholder,
textarea::placeholder{
	color:#a0a0a0;
}