@charset "utf-8";

/*
pagetitle
*/
.page-title {
	background-image: url(../img/topimage_inquiry.jpg);
	@media (width <= 800px) {
		background-image: url(../img/topimage_inquiry_sp.jpg);
	}
}


.read-inquiry {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.78;
	margin-bottom: 64px;
	@media (width <= 800px) {
		font-size: 16px;
		margin-bottom: 40px;
		padding: 0 20px;
	}
	a {
		color: var(--blue);
	}
}

.inquiry-content {
	background-color: var(--lightgray);
	border-radius: 40px;
	padding: 60px;
	margin-bottom: 375px;
	@media (width <= 800px) {
		border-radius: 30px;
		margin-bottom: 75px;
		padding: 35px 30px;
	}
	h2 {
		font-size: 28px;
		margin: 0;
		@media (width <= 800px) {
			font-size: 18px;
		}
	}
	table {
		margin-bottom: 100px;
		@media (width <= 800px) {
			margin-bottom: 0;
		}
		th,
		td {
			border: none;
		}
		th {
			width: 210px;
			position: relative;
			font-size: 18px;
			padding: 22px 0 16px;
			@media (width <= 800px) {
				width: 100%;
				font-size: 16px;
				padding: 0 0 8px;
			}
			&::after {
				display: inline-block;
				position: relative;
				color: #0053B9;
				font-size: 14px;
				font-weight: 400;
				line-height: 1.4;
				vertical-align: baseline;
				background-color: #D1E6FF;
				content: "任意";
				margin-left: 10px;
				padding: 1px 3px;
				@media (width <= 800px) {
					font-size: 13px;
				}
			}
			&.required {
				&::after {
					color: #F53939;
					background-color: #FFCECE;
					content: "必須";
				}
			}
			&.nm {
				padding-top: 18px;
				@media (width <= 800px) {
					padding-top: 0;
				}
			}
			&.kara {
				&::after {
					display: none;
				}
			}
		}
		td {
			width: calc(100% - 210px);
			font-weight: 700;
			padding: 16px 0;
			@media (width <= 800px) {
				width: 100%;
				padding: 0 0 30px;
			}
			.bikou {
				display: inline-block;
				font-weight: 400;
				margin-top: 8px;
				@media (width <= 800px) {
					display: block;
				}
			}
			.half {
				display: flex;
				gap: 10px;
				@media (width <= 800px) {
					flex-wrap: wrap;
					gap: 8px 0;
				}
				span {
					&[data-name="your-name1"],
					&[data-name="your-name2"] {
						width: 33.3%;
						@media (width <= 800px) {
							width: 100%;
						}
					}
				}
			}
			.t-renraku {
				display: flex;
				align-items: center;
				@media (width <= 800px) {
					display: block;
				}
				.bikou {
					margin: 0 0 0 40px;
					@media (width <= 800px) {
						margin: 8px 0 0;
					}
				}
			}
			.t-zip {
				display: flex;
				align-items: center;
				max-width: 220px;
				margin-bottom: 8px;
				gap: 0 8px;
				@media (width <= 800px) {
					max-width: inherit;
				}
			}
			.t-pref {
				display: flex;
				align-items: center;
				margin-bottom: 8px;
				@media (width <= 800px) {
					width: calc(100% + 20px);
				}
				select {
					width: 220px;
					@media (width <= 800px) {
						width: 190px;
					}
				}
			}
			input.your-address {
				display: block;
			}
		}
	}
	.register {
		background-color: var(--green01);
		border-radius: 30px;
		padding: 0 36px;
		margin-bottom: 35px;
		transition: background-color 0.3s ease-out;
		@media (width <= 800px) {
			width: calc(100% + 20px);
			border-radius: 20px;
			margin: 0 0 30px -10px;
			padding: 0 10px;
		}
		&.open {
			background-color: var(--white);
			h2 {
				color: var(--green01);
				&::before {
					background-color: var(--green01);
				}
				&::after {
					opacity: 0;
					rotate: 0deg;
				}
			}
		}
		h2 {
			display: flex;
			align-items: center;
			width: calc(100% + 72px);
			height: 110px;
			color: var(--white);
			margin: 0 0 0 -36px;
			padding: 0 0 0 72px;
			transition: color 0.3s ease-out;
			cursor: pointer;
			@media (width <= 800px) {
				text-align: left;
				width: calc(100% + 20px);
				height: 66px;
				margin-left: -10px;
				padding-left: 20px;
			}
			&::before,
			&::after {
				position: absolute;
				right: 38px;
				top: 50%;
				translate: 0 -50%;
				width: 34px;
				height: 10px;
				background-color: var(--white);
				border-radius: 9999px;
				content: "";
				transition: all 0.3s ease-out;
				@media (width <= 800px) {
					right: 10px;
					width: 20px;
					height: 5px;
				}
			}
			&::after {
				rotate: -90deg;
			}
		}
		.open {
			display: none;
			border-top: 1px solid var(--green01);
			padding: 100px 12px 95px;
			@media (width <= 800px) {
				padding: 30px 10px 0;
			}
			h3 {
				color: var(--green01);
				font-size: 28px;
				margin-bottom: 20px;
				@media (width <= 800px) {
					font-size: 18px;
					margin-bottom: 30px;
				}
			}
			table {
				&.t-contact {
					margin-bottom: 0;
					th {
						&::after {
							display: none;
						}
					}
				}
			}
		}
	}
	.t-bikou {
		margin-bottom: 60px;
		@media (width <= 800px) {
			margin-bottom: 30px;
		}
	}
	.done {
		h2 {
			margin-bottom: 20px;
		}
	}
}

.cfm-confirm {
	table {
		th {
			padding-top: 16px;
			&.nm {
				padding-top: 15px;
			}
		}
	}
	.register {
		h2 {
			pointer-events: none;
			margin-bottom: 20px;
		}
	}
	p {
		margin-bottom: 40px;
	}
}

