@charset "utf-8";
div#agreement {
	width: 100%;
	margin: 0 auto;
	padding: 15px 0;
}
div#agreement h3 {
	font-size: 135%;
	font-weight: bold;
}
div#agreement div {
	height: 200px;
	margin:  15px 0;
	padding: 30px;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
}
div#agreement div h4 {
	margin-top: 30px;
	font-weight: bold;
}
div#agreement div h4:first-child {
	margin-top: 0px;
}
div#agreement input[type="checkbox"] {
	margin-right: 10px;
}
form#mail_form div#agreement span.error_check {
	display: none;
	font-weight: 500;
	letter-spacing: .05em;
	margin-top: .5em;
	color: #ff0000;
}
/* --- add --- */
#agreement div {
	border-radius: 5px;
	background: #f2f2f3;
}
#agreement h5  {
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 10px !important;
}
#agreement > div > ul > li:not(:first-of-type) {
	margin-top: 20px;
}
#agreement p,
#agreement ol li {
	font-size: 14px;
	line-height: 1.9em;
	font-weight: normal;
}
#agreement ol {
	margin-top: 5px !important;
}
#agreement ol li {
    text-indent: -1.55em;
    padding-left: 1.55em;
}
/* 規約直前の注釈テキスト */
.agree_note {
	letter-spacing: .12em;
	margin-top: 20px !important;
}
@media screen and (max-width:768px) {
	div#agreement div {
		padding: 25px !important;
	}
	#agreement > div > ul > li:not(:first-of-type) {
		margin-top: 20px;
	}
}

/* ========== checkbox ========== */
/* text */
#agreement label,
#agreement a {
	font-size: 16px;
	line-height: 1.2;
}
#agreement label {
	color: #251715;
}
#agreement a {
	text-decoration: underline !important;
	color: #007ab4;
}
/* deco */
#agree_check,
.checkboxItem {
	width: fit-content;
}
#agree_check {
	margin-left:  auto !important;
	margin-right: auto !important;
}
.checkboxItem {
	line-height: 1;
	display: flex;
	align-items: center;
	column-gap: 4px;
	cursor: pointer;
}
.checkboxItem:not(:last-of-type) {
	margin-bottom: 16px;
}
.checkbox {
	appearance: none;
	position: relative;
	width:  18px;
	height: 18px;
	min-width:  18px;
	min-height: 18px;
	border: 1px solid #b2b2b2;
	cursor: pointer;
	transform: translateY(1px);
}
.checkbox:checked::after {
	content: "";
	width: 12px;
	height: 6px;
	position: absolute;
	top:  4px;
	left: 3px;
	border-left:   2px solid #ec6d81;
	border-bottom: 2px solid #ec6d81;
	transform: rotate(-45deg);
}





@media screen and (max-width:768px) {
	/* ========== checkbox ========== */
	.checkboxItem {
		align-items: flex-start;
	}
	.checkbox {
		transform: translateY(0);
	}
	#agreement label,
	#agreement a {
		font-size: 14px;
	}

}