

.bb {
	position:relative;
}


@media screen and (min-width:641px) {
	/*.rollover:hover .const_info_day,*/
	.contact2 .rollover:hover,
	.contact_set  .rollover:hover,
	.contact2 .rollover:hover img,
	.contact_set  .rollover:hover img {
		transform: scale(1.05);
		transition: transform 0.2s;
		opacity:1;
	}
	.modal-trigger {
		cursor:pointer;
	}
	.contact2 {
		width:903px;
	}
	.bb_link {
		width:950px;
		margin:0 auto;
		display:flex;
		position:absolute;
	    top: 280px;
	    left: 207px;
	}
	.contact_set {
		width:950px;
		margin:0 auto;
		display:flex;
		gap:7px;
	}
	.const_info_day {
        top: 18px;
        left: 291px;
        top: 14px;
        left: 260px;
    }
}

@media screen and (max-width:640px) {
	.contact2 .rollover:hover,
	.contact_set  .rollover:hover,
	.contact2 .rollover:hover img,
	.contact_set  .rollover:hover img {
		opacity:1;
	}
	.bb_link {
		width:96%;
		display:flex;
		position:absolute;
        top: 37.5%;
        left: 2%;
	}
	.contact_set {
		width:80%;
		gap:5px;
		flex-wrap:wrap;
		display:flex;
	}
	#modalOverlay {
		display:none;
	}
}



#modalOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

#modalBox {
  background: #fff;
  width: 90%;
  max-width: 440px;
  margin: 100px auto;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

#closeModal {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

#closeModal:hover {
  color: #000;
}

#modalBox h2 {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}.modal-form input[type="text"],
.modal-form input[type="tel"],
.modal-form select {
  width: 100%;
  height:auto;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background-color: #fff;
}

.modal-form input:focus,
.modal-form select:focus {
  border-color: #007BFF;
  outline: none;
}

.modal-form label {
  font-weight: bold;
  color: #444;
  margin-bottom: 6px;
}

.modal-form .form-group {
  margin-bottom: 16px;
}

.modal-form button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-form button[type="submit"]:hover {
  background-color: #0056b3;
}

/* 無効状態 */
.modal-form button[type="submit"]:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}
#thankYouMessage button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#thankYouMessage button:hover {
  background-color: #0056b3;
}