@charset "utf-8";


/* contact
-----------------------------------------------------------------------------------*/
.contact-wrap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
.contact-wrap p {margin-bottom: 2em;}
.contact-wrap .box {
	margin-bottom: 100px;
	width: calc(95% / 2);
}
.contact-wrap .btn {
	border: solid #ddd 3px;
	border-radius: 10px;
	text-align: center;
	line-height: 1;
	font-family: Arial, Helvetica, "sans-serif";
	font-size: clamp(1.875rem, 1.733rem + 0.38vw, 2.188rem);
	font-weight: bold;
	position: relative;
}
.contact-wrap .btn a {
	padding: 0.8em 0.8em 0.8em 3em;
	display: block;
	border-radius: 10px;
	color: #333;
	position: relative;
}
.contact-wrap .btn a:hover {
	background-color: #3095c2;
	color: #fff;
}
.contact-wrap .btn.fax {padding: 0.8em 1em 0.8em 3em;}
.contact-wrap .btn.mail a {padding: 0.8em 1em 0.8em 3.5em;}
.contact-wrap .btn:first-of-type {margin-bottom: 30px;}
.contact-wrap .btn span {font-size: 0.7em;}
.contact-wrap .btn.fax::before,
.contact-wrap .btn:is(.tel,.mail) a::before {
	position: absolute;
	inset: 0 auto 0 0.8em;
	margin: auto;
	padding-left: 45px;
	height: 40px;
	line-height: 40px;
	font-size: 0.8em;
	color: #3095c2;
}
.contact-wrap .btn.tel a::before {
	content: "TEL";
	background: url("../contact/img/icon-tel.svg") left center/contain no-repeat;
}
.contact-wrap .btn.fax::before {
	content: "FAX";
	background: url("../contact/img/icon-fax.svg") left center/contain no-repeat;
}
.contact-wrap .btn.mail a::before {
	content: "Mail";
	background: url("../contact/img/icon-mail.svg") left center/contain no-repeat;
}
.contact-wrap .btn:is(.tel,.mail) a:hover::before {color: #60c5f2;}
.contact-wrap .btn.tel a:hover::before {
	background: url("../contact/img/icon-tel2.svg") left center/contain no-repeat;
}
.contact-wrap .btn.mail a:hover::before {
	background: url("../contact/img/icon-mail2.svg") left center/contain no-repeat;
}
.contact-wrap .btn.mail br {display: none;}
.contact-wrap.tel-fax .box {
	width: 100%;
}
.contact-wrap.tel-fax .btn-wrap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
.contact-wrap.tel-fax .btn {
	margin-bottom: 0;
	width: calc(95% / 2);
	box-sizing: border-box;
}
.contact-wrap .mail-end {
	font-weight: bold;
	font-size: 18px;
	color: #c1272d;
	display: block;
	padding-top: .5em;
}

@media screen and (max-width: 1280px) {
	.contact-wrap .btn.mail br {display: block;}
}

@media screen and (max-width: 1024px) {
	.contact-wrap .box {width: 100%;}
	.contact-wrap .btn.mail br {display: none;}
	.contact-wrap.tel-fax .btn {width: 100% !important;}
	.contact-wrap.tel-fax .btn:first-child {margin-bottom: 30px;}
}

@media screen and (max-width: 480px) {
	.contact-wrap .btn {
		text-align: left;
		font-size: 6.666vw;
	}
	.contact-wrap .btn.fax,
	.contact-wrap .btn.tel a {padding: 0.8em 0 0.8em 4.5em;}
	.contact-wrap .btn.mail a {
		padding: 2.5em 0.8em 0.8em;
		font-size: 6.111vw;
	}
	.contact-wrap .btn.mail a::before {inset: 0.5em auto auto 0.8em;}
}



/* フォームフロー
-----------------------------------------------------------------------------------*/
.form-flow {
	margin: 50px auto;
	width: 100%;
	max-width: 700px;
	display: flex;
	justify-content: space-between;
}
.form-flow li {
	padding: .75em 1em;
	width: calc(85% / 3 - 2em);
	text-align: center;
	background-color: #eee;
	position: relative;
}
.form-flow li.active {
	background-color: #3095c2;
	color: #fff;
}
.form-flow li:not(:last-child)::after {
	content: "";
	position: absolute;
	inset: 0 -15% 0 auto;
	margin: auto;
	width: 1em;
	height: 1em;
	background: linear-gradient(135deg,  rgba(48,149,194,0) 0%,rgba(48,149,194,0) 50%,rgba(48,149,194,1) 50.1%,rgba(48,149,194,1) 100%);
	transform: rotate(-45deg);
}



/* メールフォーム部分
-----------------------------------------------------------------------------------*/
form input,
form button,
form textarea,
form select {
    appearance:none;
    outline: none;
    font-size: 14px;
    border: solid 2px #ccc;
    box-sizing: border-box;
    padding: 0.75em;
    width: 100%;
    transition: all 0.3s ease;
	vertical-align: middle;
}
form label {padding: 0.5em;}
form input:hover, form input:focus,
form button:hover, form button:focus,
form textarea:hover, form textarea:focus,
form select:hover, form select:focus,
form label:hover {
	background-color: #eef2f3;
	border-color: #3095c2;
}
form input::placeholder,
form textarea::placeholder {color: #999;}
form input[type="checkbox"],
form input[type="radio"] {display:none;}
form input[type="checkbox"] + label,
form input[type="radio"] + label {
	position: relative;
	cursor: pointer;
	padding-left: 30px;
}
form input[type="checkbox"] + label::before,
form input[type="checkbox"] + label::after,
form input[type="radio"] + label::before,
form input[type="radio"] + label::after {
	display: block;
	position: absolute;
}
form input[type="checkbox"] + label::before,
form input[type="radio"] + label::before {
	content: '';
	width: 16px;
	height: 16px;
	border: solid 2px #666;
	background: #fff;
	top: 5px;
	left: 5px;
}
form input[type="checkbox"] + label::before {border-radius: 3px;}
form input[type="checkbox"]:checked + label::after {
	content: '';
	background: url("../img/mark-check.svg") center no-repeat;
	background-size: contain;
	width: 20px;
	height: 20px;
	color: #c1272d;
	top: 3px;
	left: 8px;
}
form input[type="radio"] + label::before {border-radius: 50%;}
form input[type="radio"]:checked + label::after {
	content: '';
	width: 12px;
	height: 12px;
	background: #c1272d;
	border-radius: 50%;
	top: 9px;
	left: 9px;
}
form input[type="file"] {display: none;}
form input[type="file"] + label {
	display: inline-block;
	background: #eee;
	border: solid 1px #ccc;
	padding: 0.5em 1em;
	margin-right: 1em;
	cursor: pointer;
}
form input[type="file"]:hover {}
form input[type="submit"] {
	background-color: #0059aa;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 1em;
}
form input[type="submit"]:hover {
	background-color: #d9e2e8;
	color: #0059aa;
}
form textarea {height: 7em;}

form input.size-s,
form input.size-m {margin-right: .5em;}
form input.size-s {width: 20em;}
form input.size-m {width: 75%;}
form select {width: 20em;}

.mailform-table {margin-bottom: 100px;}
.mailform-table table {margin-bottom: 30px;}
.mailform-table table th {
	width: 25%;
	max-width: 250px;
}
.mailform-table .required,
.mailform-table .optional {
    font-size:12px;
    padding:1px 5px;
    float:right;
}
.mailform-table .required {background-color: #ffdc00; color: #c1272d;} /* #145781 #88bfbf #d5c321 #afd7ea #fcedb6 #f8f4e6 #8cc63f #eef2f3 */
.mailform-table .optional {background-color: #fff; color: #666;}
.mailform-table .error-text {
	color: #f00;
	background: url("../img/mark-alert.svg") #f8f4e6 center left .5em/16px no-repeat;
	border-radius: 4px;
	padding: .25em 2em;
	margin: .5em 0 0;
}
.mailform-table .type-radio li {
	display: inline-block;
	margin: .5em 1.5em .5em 0;
}
.mailform-table .note-text {
	color: #145781;
	font-weight: bold;
}
.mailform-table .note-text span {
	background: #eef2f3;
	border-radius: 4px;
	padding: .1em .5em;
}
.mailform-table .note-text span {margin-right: .5em;}
.mailform-table .note-text span:first-child {margin-left: .5em;}
.mailform-table .max-text {
	text-align: right;
	color: #666;
}
.mailform-table .max-text .over {color: #f00;}
.mailform-table .form-btn {
	text-align: center;
	margin: auto;
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}
.mailform-table .form-btn input {width: 180px;}
.mailform-table .form-btn input:nth-last-child(2) {background: #999;}
.mailform-table .form-btn input:nth-last-child(2):hover {background: #d9e2e8;}

.mailfform-thanks {
	text-align: center;
	margin-bottom: 100px;
}
.mailfform-thanks .thanks-title {
	font-weight: bold;
	font-size: 20px;
	margin-bottom: 30px;
}
.mailfform-thanks .thanks-message {margin-bottom: 30px;}
.mailfform-thanks .thanks-top a {
	display: inline-block;
	width: 200px;
	padding: .75em 1em;
	background: #0059aa;
	color: #fff;
}
.mailfform-thanks .thanks-top a:hover {
	background-color: #d9e2e8;
	color: #0059aa;
}

@media screen and (max-width: 896px) {
	form input,
    form button,
    form textarea,
	form select {font-size: 16px;}
	.mailform-table {
		overflow-x: hidden;
		font-size: 16px;
	}
	.mailform-table table {
		width: 100%;
		white-space: normal !important;
	}
	.mailform-table table th,
	.mailform-table table td {
		display: block;
		width: 100%;
		max-width: none;
		box-sizing: border-box;
	}
	.mailform-table table th {text-align: left;}
	.mailform-table .required,
	.mailform-table .optional {
		float: left;
		margin-right: .5em;
        font-size: 14px;
	}
}

@media screen and (max-width: 480px) {
    form input.size-s,
    form input.size-m {width: 70%;}
    form select {width: 70%;}
}
