@charset "utf-8";


div#agreement {
	width: 100%;
	margin: 0 auto;
	padding: 15px 0;
	border-bottom: 1px solid #b1a8a3;
}

div#agreement h4 {
	font-size: 16px;
	font-weight: bold;
  font-family: 'Shippori Mincho B1', serif;
  color: #534741;
}

div#agreement div {
	height: 200px;
	margin: 15px 0;
	padding: 20px 30px;
	background: #fafafa;
	border: 1px solid #b1a8a3;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
  text-align: left;
}

div#agreement div h5.agree-mini-tit {
	margin: 30px 0 10px 0;
	font-weight: bold;
  font-family: 'Shippori Mincho B1', serif;
  text-align: left;
  color: #534741;
  border-bottom: 1px dotted #666;
}

div#agreement div h5:first-child {
	margin-top: 0px;
}

div#agreement input[type="checkbox"] {
	margin-right: 35px;
}


form#mail_form div#agreement span.error_check {
	display: none;
	color: #ff0000;
	margin-top: 3px;
  border: none;
}
/*リセット */
input[type="checkbox"]  {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

/* チェックボックスデザイン */
input[type="checkbox"] {
    cursor: pointer;
    padding-left: 30px;/*label手前にチェックボックス用の余白を開ける*/
    vertical-align: middle;
    position: relative;
  }
  input[type="checkbox"]::before,
  input[type="checkbox"]::after {
    content: "";
    display: block; 
    position: absolute;
  }
  input[type="checkbox"]::before {
    background-color: #fff;
    border-radius: 0%;
    border: 1px solid #666464;
    width: 20px;/*チェックボックスの横幅*/
    height: 20px;/*チェックボックスの縦幅*/
    transform: translateY(-50%);
    top: -2px;
    left: 0;
    border-radius: 5px;
  }
  input[type="checkbox"]::after {
    border-bottom: 3px solid #666464;/*チェックの太さ*/
    border-left: 3px solid #666464;/*チェックの太さ*/
    opacity: 0;/*チェック前は非表示*/
    height: 6px;/*チェックの高さ*/
    width: 11px;/*チェックの横幅*/
    transform: rotate(-45deg);
    top: -8px;/*チェック時の位置調整*/
    left: 5px;/*チェック時の位置調整*/
  }
  input[type="checkbox"]:checked::after {
    opacity: 1;/*チェック後表示*/
  }
@media screen and (max-width: 428px) {
  div#agreement h4 {
    font-size: 14px;
  }
  div#agreement p{
    font-size: 14px;
  }
}



