/**************************************************

 * フォーム

 **************************************************/
 /**************************************************

 * 入力ボックスの汎用設定

 ** 入力エリアのパディング
 ** フォント（カラー・サイズ）
 ** 枠線
 ** 背景色
 ** ボックスシャドウ

 *** フォーカス時のスタイル

 **************************************************/
input[type="text"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="color"],
input[type="datetime"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
select,
textarea {
	max-width: 100%;
	padding: 8px 12px;
	color: #222;
	font-size: 14px;
	line-height: 1;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	box-shadow: 1px 1px 1px 0px rgba(0,0,0,.08) inset;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
textarea {
	color: #222;
	font-size: 14px;
	line-height: 1.5;
}
/* 入力エリアを選択した時のスタイル */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
input[type="color"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
select:focus,
textarea:focus {
	border: 1px solid #33b371;
}
/* プレースホルダ */
input:placeholder-shown,
textarea:placeholder-shown {
	color: #bbb;
	font-weight: normal;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
	color: #bbb;
	font-weight: normal;
}
input:-moz-placeholder,
textarea:-moz-placeholder {
	color: #bbb;
	font-weight: normal;
}
input::-moz-placeholder,
textarea::-moz-placeholder {
	color: #bbb;
	font-weight: normal;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
	color: #bbb;
	font-weight: normal;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
	/* iphone調整 */
	padding-top: .1em;
}
/* width100%表示 */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
	width: 100%;
}
/**************************************************
 * テキストエリア
 **************************************************/
/* リサイズ制御 */
textarea {
	resize: none;
}
textarea.resize {
	resize: both;
}
textarea.resize_h {
	resize: horizontal;
}
textarea.resize_v {
	resize: vertical;
}
/**************************************************
 * セレクトボックス
 **************************************************/
/* セレクトボックの後につく文字列 例)時間 など */
/* ドロップダウン矢印付与  */
select {
	-webkit-appearance: auto;
	appearance: auto; /* デフォルトのスタイルを無効 */
}
select::-ms-expand {
	display: auto; /* デフォルトのスタイルを無効(IE用) */
}

/**************************************************
 * ラジオボタン・チェックボックス
 **************************************************/
/* インプット要素を消す */
input[type="radio"],
input[type="checkbox"] {
	display: none;
}
/* インプット要素の後につけたラベルをトリガーにする */
input[type="radio"] + label,
input[type="checkbox"] + label {
	position: relative;
	display: inline-block;
	margin: 0 2em 0 0;
	padding: 0 0 0 22px;
	font-size: 12px;
	cursor: pointer;
	-webkit-transition: all .1s;
	transition: all .1s;
}
/* 疑似要素一括設定 */
input[type="radio"] + label::before,
input[type="radio"] + label::after,
input[type="checkbox"] + label::before,
input[type="checkbox"] + label::after {
	position: absolute;
	content: '';
	-webkit-transition: all .1s;
	transition: all .1s;
}
/* チェック前の箱を作る */
input[type="radio"] + label::before,
input[type="checkbox"] + label::before {
	top: -1px;
	left: 0;
	width: 14px;
	height: 14px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
}
/* ↑のホバー状態 */
input[type="radio"] + label:hover::before,
input[type="checkbox"] + label:hover::before {
	background: #fff;
}
/* ↑のチェック済状態 */
input[type="radio"]:checked + label::before,
input[type="checkbox"]:checked + label::before {
	background: #fff;
	border: 1px solid #33b371;
}
/* チェック後の中の要素 */
/* ラジオボタン */
input[type="radio"] + label::after {
	opacity: 0;
	top: 3px;
	left: 4px;
	width: 8px;
	height: 8px;
	border-radius: 4px;
	background: #33b371;
	-webkit-transform: scale(.5);
	transform: scale(.5);
}
input[type="radio"]:checked + label::after {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}
/* チェックボックス */
input[type="checkbox"] + label::after {
	opacity: 0;
	top: 3px;
	left: 3px;
	width: 8px;
	height: 4px;
	border-left: 2px solid #33b371;
	border-bottom: 2px solid #33b371;
	-webkit-transform: rotate(-90deg) scale(.5);
	transform: rotate(-90deg) scale(.5);
}
input[type="checkbox"]:checked + label::after {
	opacity: 1;
	-webkit-transform: rotate(-45deg) scale(1);
	transform: rotate(-45deg) scale(1);
}
/**************************************************
 * submitボタン
 **************************************************/
input[type="submit"],
button[type="submit"] {
	display: block;
	width: 80%;
	max-width: 196px;
	padding: 12px 32px;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	border-radius: 4px;
	box-shadow: 0px 2px 0px 0px rgba(0,0,0,.2);
	cursor: pointer;
	background: #33b371;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
@media screen and (min-width: 769px) {
	input[type="submit"],
	button[type="submit"] {
		padding: 12px 32px;
	}
	input[type="submit"]:hover,
	button[type="submit"]:hover {
		opacity: .6;
	}
}
/**************************************************
 * エラー関係
 **************************************************/
/*フォームのエラーメッセージ*/
input:not([type="submit"]).input_error,
textarea.input_error,
select.input_error {
	border: 1px solid #d90429;
}
.error_message {
	height: 0;
	color: #d90429;
	font-size: .86em;
	opacity: 0;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
.error_message.error_active {
	height: 1em;
	opacity: 1;
}
.error_message_part {
	margin: 1em 0;
}

/**************************************************

 * フォームの装飾

 **************************************************/
/* 汎用フォーム */
form.basic_form dl dt {
	margin: 0 0 4px;
	padding: 4px 0 4px 4px;
	color: #666;
	font-size: 14px;
	font-weight: bold;
	border-left: 4px solid #2483cc;
}
form.basic_form dl dd {
	margin: 0 0 24px;
}
/* 必須マーク */
form.basic_form dl dt.required::after {
	content: "必須";
	position: relative;
	display: inline-block;
	top: -2px;
	margin: 0 0 0 6px;
	padding: 2px 3px;
	color: #fff;
	font-size: 10px;
	font-weight: normal;
	border-radius: 2px;
	background: #d90429;
}
/* 説明文 */
form.basic_form .description {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
}
@media screen and (min-width: 769px) {
	form.basic_form dl dt {
		margin: 0 0 8px;
		padding: 6px 0 6px 6px;
		font-size: 16px;
		border-left: 4px solid #2483cc;
	}
	form.basic_form dl dd {
		margin: 0 0 32px;
	}
	/* 必須マーク */
	form.basic_form dl dt.required::after {
		top: -1px;
		margin: 0 0 0 8px;
		padding: 3px 6px;
		color: #fff;
		font-size: 12px;
		border-radius: 4px;
	}
}
