@charset "utf-8";
/* -- form#mail_form, dl, dt, dd -------------------------------------------------------------------------------- */
.mailform {
    padding: 80px 2% 30px;
    background: #f0f8f4;
}
.form {
    background: #FFF;
    padding: 0 0 4%;
    margin-top: 2em;
    border-radius: 10px; /* 角を丸くする */
    overflow: hidden; /* フォームの内側の要素がはみ出さないように */   
  }
  .inner {
    padding: 2em 2% 3em;
  }
  
form#mail_form * {
	margin: 0;
	padding: 0;
	box-sizing: content-box;
}

form#mail_form dl {
	width: 90%;
	margin: 0 auto;
	border-bottom: .5px solid #cccccc;
}

form#mail_form dl:after,
form#mail_form dl dt:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

form#mail_form dl dt {
	width: 30%;
	text-align: left;
	font-weight: bold;
	float: left;
	padding: 35px 0 25px;
	position: relative;
}

form#mail_form dl dd {
	width: 65%;
	float: right;
	padding: 30px 0 25px 5%;
}

form#mail_form dl dt i {
	float: left;
	position: relative;
	top: -2px;
}
form#mail_form input#form_submit_button:focus,
form#mail_form input#form_submit_button:active {
  background: #5e0e01 !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent; /* モバイルブラウザ対策 */
}

/* -- span.required, span.optional -------------------------------------------------------------------------------- */

form#mail_form dl dt span.required,
form#mail_form dl dt span.optional {
	display: inline-block;
	font-size: 85%;
	color: #ffffff;
	padding: 2px 4px;
	border-radius: 3px;
}

form#mail_form dl dt span.required {
	background: #5e0e01;
	border: 1px solid #5e0e01;
}

form#mail_form dl dt span.optional {
	background: #888;
	border: 1px solid #888;
}




/* -- error message -------------------------------------------------------------------------------- */

form#mail_form dl dd span.error_blank,
form#mail_form dl dd span.error_format,
form#mail_form dl dd span.error_match {
	display: block;
	color: #ff0000;
	margin-top: 5px;
}




/* -- loading -------------------------------------------------------------------------------- */

div.loading-layer {
	width: 100vw;
	height: 100vh;
	background: rgba( 0, 0, 0, 0.7 );
	position: fixed;
	left: 0px;
	top: 0px;
	z-index: 10000;
}

span.loading {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border-top: 5px solid rgba( 255, 255, 255, 0.2 );
	border-right: 5px solid rgba( 255, 255, 255, 0.2 );
	border-bottom: 5px solid rgba( 255, 255, 255, 0.2 );
	border-left: 5px solid #ffffff;
	-webkit-transform: translateZ( 0 );
	-ms-transform: translateZ( 0 );
	transform: translateZ( 0 );
	-webkit-animation: load-circle 1.0s linear infinite;
	animation: load-circle 1.0s linear infinite;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -30px;
	margin-left: -30px;
}

@-webkit-keyframes load-circle {
	0% {
		-webkit-transform: rotate( 0deg );
		transform: rotate( 0deg );
	}
	100% {
		-webkit-transform: rotate( 360deg );
		transform: rotate( 360deg );
	}
}

@keyframes load-circle {
	0% {
		-webkit-transform: rotate( 0deg );
		transform: rotate( 0deg );
	}
	100% {
		-webkit-transform: rotate( 360deg );
		transform: rotate( 360deg );
	}
}




/* -- input -------------------------------------------------------------------------------- */

form#mail_form input[type="text"],
form#mail_form input[type="email"],
form#mail_form input[type="tel"] {
	width: calc( 100% - 4% - 2px );
	padding: 1em 2%;
	border: 1px solid #cacaca;
	border-radius: .5em;
	background: #fafafa;
	-webkit-appearance: none;
	font-size: 16px;
	font-family: inherit;
	line-height: normal;
}

form#mail_form input[type="text"]:focus,
form#mail_form input[type="email"]:focus,
form#mail_form input[type="tel"]:focus,
form#mail_form textarea:focus {
	box-shadow: 0px 0px 5px #74CA97;
	border: 1px solid #55a776;
	background: #ffffff;
}

form#mail_form ul li input[type="radio"],
form#mail_form ul li input[type="checkbox"] {
	margin: 0 10px 0 0;
	transform: scale(1.8);
  	margin-right: 12px;
  	accent-color: #dd2d2d; /* 対応ブラウザでは色も変更可能 */
  	cursor: pointer;

}




/* -- ul, li -------------------------------------------------------------------------------- */

form#mail_form ul {
	list-style-type: none;
}
@media (min-width: 768px) {
	/* チェックボックス：3つ→2段（2+1） */
	dl dd ul:not(.radiobox) {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 1em 2%;
	  padding-left: 0;
	}
  
	dl dd ul:not(.radiobox) li {
	  width: 48%;
	}
  
	dl dd ul:not(.radiobox) li:nth-child(3) {
	  width: 100%;
	}
  
	.radiobox {
		display: flex;
		flex-wrap: wrap;
		gap: 1em 2%;
		padding-left: 0;
		list-style: none;
	  }
	
	  /* 1〜3個目を1段目に横並び */
	  .radiobox li:nth-child(-n+3) {
		width: 30%;
	  }
	
	  /* 4,5個目を2段目に並べる */
	  .radiobox li:nth-child(n+4) {
		width: 30%;
	  }
	
	  /* ラベル内の要素を横並び中央揃えにする */
	  .radiobox li label {
		display: flex;
		align-items: center;
	  }
  
  }
  



/* -- input design -------------------------------------------------------------------------------- */

form#mail_form input[name="company"] {
	width: 70%;
}

form#mail_form input[name="name_1"],
form#mail_form input[name="name_2"],
form#mail_form input[name="read_1"],
form#mail_form input[name="read_2"],
form#mail_form input[name="postal"],
form#mail_form input[name="phone"],
form#mail_form input[name="schedule"] {
	width: %;
}

form#mail_form input[name="mail_address"],
form#mail_form input[name="mail_address_confirm"] {
	width: %;
}

form#mail_form input[name="postal"] + a {
	display: inline-block;
	padding: 7px 20px;
	border-radius: 3px;
	background: #74CA97;
	font-size: 16px;
	line-height: normal;
	color: #ffffff;
	text-decoration: none;
}

form#mail_form input[name="postal"] + a:hover {
	cursor: pointer;
	background: #74CA97;
	border: 1px solid #55a776;
}




/* -- button -------------------------------------------------------------------------------- */

form#mail_form p#form_submit {
	width: 100%;
	padding: 1em 0;
	text-align: center; /* 中央寄せ */
  }
  
  form#mail_form input#form_submit_button {
	display: inline-block;
	width: 90%;
	background: #841605;
	padding: 1.5em 2em 1.3em;
	font-size: 130%;
	border-radius: 0.5em;
	color: #FFF;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.3s ease-in-out;
  }
  form#mail_form input#form_submit_button:hover {
	background: #5e0e01; /* 元の色より少し暗く */
}


form#mail_form input[type="button"] {
	margin: 1em auto;
}








/* -- responsive ----------------------------------------------------------------------------------------------------------------------- */

/* 1000pixel start */
@media screen and ( max-width: 1000px ) {


/* -- form#mail_form, dl, dt, dd -------------------------------------------------------------------------------- */

.mailform {
    padding: 2em 2% 30px;
    background: #f0f8f4;
}
form#mail_form {
	width: 100%;
	font-size: 100%;
}

form#mail_form dl dt {
	width: 100%;
	float: none;
	padding: 1em 0;
}

form#mail_form dl dd {
	width: auto;
	float: none;
	padding: 0px 0 20px 0px;
}

form#mail_form dl dt i {
	float: none;
	position: static;
	font-weight: normal;
}

form#mail_form ul li {
    margin-bottom: 1em; /* 行間を1em分あける */
  }

  form#mail_form ul li:last-child {
    margin-bottom: 0; /* 最後の項目だけ余白なしにするなら */
  }


/* -- span.required, span.optional -------------------------------------------------------------------------------- */

form#mail_form dl dt span.required,
form#mail_form dl dt span.optional {
	margin: 0 15px 0 0;
}




/* -- input design -------------------------------------------------------------------------------- */

form#mail_form input[name="phone"],
form#mail_form input[name="schedule"] {
	width: 60%;
}




/* -- button -------------------------------------------------------------------------------- */

form#mail_form p#form_submit {
	padding: 25px 0;
}

form#mail_form input[type="button"] {
	margin-left: 0;
	
}

form#mail_form input#form_submit_button {
    width: 90%;
    font-size: 110%; /* スマホ用に少し小さくするなら調整 */
    padding: 1.2em 1em;
  }

}
/* 1000pixel end */








