@charset "utf-8";
/* CSS Document */

.contact-section {
	padding: 0px 40px 40px 40px;
	position: relative;
}

.contact-section img {
	position: absolute;
	width: 240px;
	top: -80px;
	left: 50%;
    transform: translateX(-50%);
}

.text{
	display: block;
    width: 50%;
	margin: 20px auto;
	padding-top: 25px;
}

.contact-text{
	text-align: center;   /* 中央揃え */
	  line-height: 1.8;     /* 行間広め */
	  margin-bottom: 10px;
}

.contact-text p {
	margin: 0px !important;
	/*font-size: 18px;*/
}

label {
	display: block;
	margin-left: 32%;
	font-size: 16px;
	color:rgba(39,39,39,1.00);
	line-height: 18px;
}

.form-label-row {
	display: flex;
	gap: 8px; /* ラベルと必須のすき間 */
    align-items: center;
}

form input,form select,form textarea {
	display: block;
	margin: 10px auto 20px auto;
	width: 36%;
	height: 40px;
	border-radius: 5px;
	border: 1px solid #ccc;
	font-size: 15px;
	font-family: "Noto Sans JP", "Roboto", "Helvetica Neue", Arial, sans-serif;
	color:#323232;
	padding: 0 10px;
	background-color: #fff !important;
	transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus, form textarea:focus{
    border-color: #1f93a8;
	box-shadow: 0 0 4px rgba(31,147,168,0.5);
    outline: none;
}

form input:-webkit-autofill {
    background-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
    border: 1px solid #ccc !important;
}

form select{
	width: 10% !important;
	margin: 10px auto 20px 32%;
	min-width: 200px;
}

textarea {
    min-height: 100px !important;
    resize: vertical;
	padding: 10px !important;
}

.nameform {
	display: flex !important;
	width: 36% !important;
	gap: 20px !important;
	margin: 0 auto;
}
.nameform input{
  margin: 10 0 20px 0!important;
  flex: 1 1 0;
  min-width: 0;
}

.required{
	font-size: 11px;
	color: #fff;
	width: 35px;
	height: 18px;
	border: 1px solid #1f93a8;
	border-radius:3px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1f93a8;
    text-align: center;
	line-height: 18px;
	margin: 0px !important;
}

.name_required{
	margin-left: 245px !important;
}

.privacy-check{
	display: flex;
	margin-left: 32% !important;
	font-size: 16px;
	color:rgba(39,39,39,1.00);
	line-height: 18px;
}

input[type="checkbox"] {
	width: 20px !important;
	height: 20px !important;
	margin: 0 10px 0 0 !important;
	padding: 0 !important;
	border: 1px solid #ccc;
}

.confirm-btn {
	width: 120px;
	height: 50px;
	font-size: 17px;
	margin: 30px auto 0px auto !important;
	background-color: #1f93a8!important;
	color: #fff;
}

.confirm-btn:hover {
	transform: translateY(-0.2px);
  	box-shadow: 0 5px 7px rgba(0,0,0,0.2);
}

.modal {
	display: none; /* ← 初期は非表示 */
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.6);
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.modal-content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	border: 3px solid #1f93a8;
	text-align:left;
}
	
h3{
	text-align: center;
}

#confirmModal #text {
  white-space: pre-wrap;   /* \n を改行として表示、長文は折り返し */
}

#confirmModal .modal-content p:not(.desc):not(:empty) {
  margin: 0 10px;          /* 左右の余白だけ残す */
  padding: 15px 0;         /* 上下にスペース */
  border-bottom: 1px solid #e6e6e6; /* 薄い横線 */
  color: #494949;
  font-size:15px;
}

.desc{
	font-size: 0.75rem;
	color: #444;
	text-align: center;
	padding: 15px;
}
	
.buttons {
	text-align: center;
	margin-top: 2rem;
}

.submit-btn{
	background-color: #1f93a8 !important;
	color: #fff;
	border: 1px solid #ccc !important;
	margin: 5px 0px 5px 10px;
	width: 70px;
	height: 40px;
	border-radius: 3px;
}

.back-btn{
	border: 1px solid #ccc !important;
	margin: 5px 10px 5px 0px;
	width: 70px;
	height: 40px;
	border-radius: 3px;
}

button:hover {
	transform: translateY(-0.2px) !important;
  	box-shadow: 0 4px 7px rgba(0,0,0,0.2) !important;
}

.submit-btn:disabled:hover,
.back-btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

.back-btn:disabled {
	color:black !important;
}

@media (max-width: 767px) {
	.contact-section{
		padding: 0px 20px 10px 20px;
	}
	
	.contact-section img {
		width: 25%;
		top: -35px;
		left: 50%;
		transform: translateX(-50%);
	}
	
	.text{
		width: 320px!important;
		margin: 10px auto;
		padding-top: 0px !important;
	}
	
	.contact-text p {
		font-size: 8px !important;
	}
	
	label{
		margin-left: 65px;
		font-size: 11px;
	}
	
	.required{
		font-size: 7px;
		width: 20px;
		height: 13px;
		line-height: 18px;
		margin: 0px !important;
	}
	
	form input,form select,form textarea {
		margin: 5px auto 10px auto;
		width: 255px;
		height: 25px;
		border-radius: 5px;
		border: 1px solid #ccc;
		font-size: 10px;
		padding: 0 5px;
		background-color: #fff !important;
		transition: border-color .2s, box-shadow .2s;
	}
	
	textarea {
		min-height: 70px !important;
		resize: vertical;
		padding: 5px !important;
	}
	
	form select{
		width: 100px !important;
		margin: 5px 67px 10px 67px !important;
	}
	
	.submit_btn {
		width: 80px;
		height: 35px;
		font-size: 13px;
		margin: 15px auto 5px auto !important;
	}
	
	.nameform {
		gap: 15px !important;
		margin: 0 auto;
		width: 260px !important;
	}
	
	.confirm-btn {
		width: 70px;
		height: 35px;
		font-size: 12px;
		margin: 15px auto 0px auto !important;
	}
	
	.privacy-check{
		margin-left: 18% !important;
		font-size: 12px;
		line-height: 18px;
	}

	input[type="checkbox"] {
		width: 17px !important;
		height: 17px !important;
		margin: 0 10px 0 0 !important;
		padding: 0 !important;
	}
}
