@charset "UTF-8";
body {
	overflow-x:visible;
}
/*-----------------------------------

	mainvisual_lower_block

-----------------------------------*/
#mainvisual_lower_block::before {
	background: url(../img/contact/img_mv_bg.jpg) no-repeat center / cover;
}

/*-----------------------------------

#form_block

-----------------------------------*/
#form_block {
	padding-bottom: 60px;
}
#form_block .contact-form-table{
	background-color: #fff;
}
#form_block .intro_box {
	margin-bottom: 30px;
}

#form_block .intro_box h3 {
	text-align: center;
	font-size: 32px;
	margin-bottom: 50px;
	  text-align: center;
}

#form_block .intro_box h3:after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: #707070;
  margin: 10px auto 0;
}

#form_block .note {
	width: 90%;
	margin: 0 auto;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.78;
}

/* --- Container Styles --- */
#form_block .form-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px;
}

#form_block h1 {
	text-align: center;
	font-size: 28px;
	color: #2c3e50;
}

/* --- Form Table Styles --- */
#form_block .contact-form-table {
	width: 100%;
	border-collapse: separate;
	/* border-radiusのためにseparateを使用 */
	border-spacing: 0;
	margin-bottom: 30px;
}

#form_block .contact-form-table th,
#form_block .contact-form-table td {
	padding: 30px 20px;
	border-bottom: 1px solid #eaeaea;
	text-align: left;
}

/* Label Column */
#form_block .contact-form-table th {
	width: 30%;
	font-weight: 600;
	vertical-align: top;
	color: #444;
	font-size: 15px;
}
#form_block .contact-form-table th br {
	display: none;
}

/* Input Column */
#form_block .contact-form-table td {
	width: 70%;
	background-color: #fff;
	vertical-align: top;
	font-size: 16px;
}
#form_block .contact-form-table td br {
	display: none;
}

/* First/Last row styling */
#form_block .contact-form-table tr:first-child th {
	border-top-left-radius: 6px;
	border-top: 1px solid #eaeaea;
}

#form_block .contact-form-table tr:first-child td {
	border-top-right-radius: 6px;
	border-top: 1px solid #eaeaea;
}

#form_block .contact-form-table tr:last-child th {
	border-bottom-left-radius: 6px;
	border-bottom: none;
}

#form_block .contact-form-table tr:last-child td {
	border-bottom-right-radius: 6px;
	border-bottom: none;
}

/* --- Badges --- */
#form_block .badge {
	display: inline-block;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 8px;
	vertical-align: middle;
	font-weight: normal;
	margin-top: -3px;
}

#form_block .badge-required {
	background-color: #e74c3c;
	color: #fff;
}

#form_block .badge-optional {
	background-color: #999999;
	color: #fff;
}

/* --- Input Styles --- */
#form_block input[type="text"],
#form_block input[type="email"],
#form_block input[type="tel"],
#form_block textarea,
#form_block select {
	font-family: "Zen Kaku Gothic Antique", sans-serif;
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.3s ease;
	background-color: #fff;
	appearance: none;
	/* デフォルトのスタイルを削除 */
}

/* Focus State for UX */
#form_block td input:focus,
#form_block textarea:focus,
#form_block select:focus {
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
	outline: none;
	background-color: #fbfdff;
}

#form_block textarea {
	resize: vertical;
	min-height: 120px;
}

/* Select arrow customization */
#form_block .select-wrapper {
	position: relative;
}

#form_block .select-wrapper::after {
	content: "▼";
	font-size: 12px;
	color: #888;
	position: absolute;
	right: 15px;
	top: 14px;
	pointer-events: none;
}

/* --- Validation & Error Messages --- */
#form_block .error-message {
	color: #e74c3c;
	font-size: 13px;
	margin-top: 5px;
	display: none;
	/* デフォルトは非表示 */
	font-weight: bold;
}

#form_block .input-error {
	border-color: #e74c3c !important;
	background-color: #fff8f8 !important;
}

/* --- Postal Code Wrapper --- */
#form_block .postal-wrapper {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
}

#form_block .p-postal-code {
	width: 150px !important;
}

#form_block .postal-search {
	padding: 13px 15px;
	background-color: #1C3D6E;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
}

#form_block .postal-search:hover {
	background-color: #020202;
}

/* --- Checkbox --- */
#form_block .checkbox-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 20px 0;
}

#form_block .checkbox-wrapper label {
	cursor: pointer;
	display: flex;
	align-items: center;
	font-size: 16px;
}

#form_block .checkbox-wrapper label input {
	margin-right: 10px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

#form_block .checkbox-wrapper label a {
	display: inline-block;
	color: #1C3D6E;
	text-decoration: underline;
	margin: 0 4px;
}

/* --- Submit Button --- */
#form_block .submit-wrapper {
	text-align: center;
	margin-top: 30px;
}

#form_block.confirm .submit-wrapper {
    text-align: center;
    margin-top: 55px;
    justify-content: center;
    gap: 30px;
}

#form_block .submit-wrapper br {
	display: none;
}

#form_block.confirm .submit-wrapper > p {
	position: absolute;
	top: -9999px;
	right: -9999px;
	z-index: -9999;
}

#form_block .submit-wrapper .btn_box {
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
	position: relative;
	cursor: pointer;
}

#form_block.confirm .submit-wrapper .btn_box {
	margin: 0;
}

#form_block .submit-wrapper .btn_box.submit::after {
	content: '';
    display: block;
    background: url(../img/common/icon_btn_wh.svg) no-repeat center center / contain;
    width: 35px;
    height: 35px;
    margin: auto;
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 0;
    z-index: 1;
    transition: 0.1s;
}

#form_block .submit-wrapper .btn_box.back::after {
	content: '';
    display: block;
    background: url(../img/common/icon_btn_lt_bk.svg) no-repeat center center / contain;
    width: 35px;
    height: 35px;
    margin: auto;
    position: absolute;
    top: 0;
    left: 10px;
    bottom: 0;
    z-index: 1;
    transition: 0.1s;
}

#form_block .submit-wrapper .btn_box.submit:hover::after {
	background: url(../img/common/icon_btn_bk.svg) no-repeat center center / contain;
}

#form_block .submit-wrapper .btn_box.back:hover::after {
	background: url(../img/common/icon_btn_lt_wh.svg) no-repeat center center / contain;
}

#form_block .back_btn {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.05em;
	color: #1C3D6E;
	background: #fff;
	width: 235px;
	padding: 14.5px 0 14.5px 12px;
	border: 1px solid #1C3D6E;
	border-radius: 3px;
	position: relative;
	transition: 0.2s;
	text-align: center;
}

#contents .back_btn::after {
	content: '';
	display: block;
	background: url(../img/common/icon_btn_lt_bk.svg) no-repeat center center / contain;
	width: 35px;
	height: 35px;
	margin: auto;
	position: absolute;
	top: 0;
	left: 10px;
	right: auto;
	bottom: 0;
	z-index: 1;
	transition: 0.1s;
}

#form_block .back_btn:hover {
  opacity: 1;
  color: #fff;
  background: #1C3D6E;
}

#form_block .submit-btn {
	background-color: #222222;
	color: white;
	font-size: 18px;
	font-weight: bold;
	padding: 15px 60px;
	border: none;
	border-radius: 3px 3px 3px 3px;
	cursor: pointer;
	transition: all 0.3s ease;
}

#form_block .submit-btn.active {
	opacity: 1;
	pointer-events: auto;
}

#form_block .submit-btn.active:hover {
	background-color: #cccccc;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

#form_block.complete .detail_btn {
	padding-left: 72px;
}

#form_block.complete .complete_h4 {
	font-size: 21px;
    margin-bottom: 20px;
    line-height: 1.6;
}

#form_block .wpcf7-list-item {
	margin: 0;
}

#form_block .wpcf7-not-valid-tip {
	font-weight: 500;
	margin-top: 0.2em;
}

#form_block .wpcf7-spinner {
	display: none;
}

#form_block .wpcf7 form .wpcf7-response-output {
	text-align: center;
	padding: 2em 1em;
}

/* --- Responsive Design (SP) --- */
@media screen and (max-width: 768px) {
	#form_block .form-container {
		padding: 20px;
	}

	#form_block input[type="text"],
	#form_block input[type="email"],
	#form_block input[type="tel"],
	#form_block textarea, #form_block select {
		font-size: 14px;
	}

	#form_block .contact-form-table,
	#form_block .contact-form-table tbody,
	#form_block .contact-form-table tr,
	#form_block .contact-form-table th,
	#form_block .contact-form-table td {
		display: block;
		width: 100%;
	}

	#form_block .contact-form-table tr {
		margin-bottom: 10px;
	}

	#form_block .contact-form-table th {
		border-right: none;
		border-bottom: none;
		padding-bottom: 8px;
		background-color: transparent;
		border-radius: 0 !important;
	}

	#form_block .contact-form-table td {
		font-size: 14px;
		padding-top: 0;
		border-bottom: none;
		border-radius: 0 !important;
	}

	#form_block .postal-wrapper {
		flex-wrap: wrap;
	}
		#form_block .contact-form-table tr:first-child th {
	border-top: none;
}

#form_block .contact-form-table tr:first-child td {
	border-top: none;
}

	#form_block .contact-form-table th,
	#form_block .contact-form-table td {
		padding: 10px 5px;
	}
	#form_block .contact-form-table th {
		padding-bottom: 0;
	}

	#form_block .checkbox-wrapper label {
		font-size: 14px;
	}

	#form_block .checkbox-wrapper label input {
		margin-right: 7px;
		width: 16px;
		height: 16px;
	}

	#form_block.complete .note {
		width: 100%;
	}
}

@media screen and (max-width: 700px) {

	.line_box {
		width: 50px;
		/* 親要素いっぱい */
		height: 100px;
		/* 適当な高さ */
	}

	.line {
		width: 50px;
		/* 線の長さ */
		height: 2px;
		/* 線の太さ */
		background: #cccccc;
		/* 線の色 */
	}




}

@media screen and (max-width: 460px) {
	.line_box {
		width: 30px;
		/* 親要素いっぱい */
		height: 100px;
		/* 適当な高さ */
	}

	.line {
		width: 30px;
		/* 線の長さ */
		height: 2px;
		/* 線の太さ */
		background: #cccccc;
		/* 線の色 */
	}
}