/*
Theme Name: Lab23 Child
Description: Lab23の子テーマです
Author:
Author URI:
Template: lab23
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* お問い合わせ画面のレイアウト調整　2025.07.26追加 */
#l-contact {
	max-width: 980px;
	margin: 0 auto 80px;
	* {
		box-sizing: border-box;
	}
	p {
		margin: 0;
	}
	.dflex {
		display: flex;
	}
	.required {
		width: fit-content;
		display: block;
		color: #fff;
		background-color: rgb(204, 0, 0);
		padding: 4px;
		line-height: 1;
		border-radius: 4px;
		font-size: 12px;
	}
	dl {
		&>.dflex {
			gap: 24px;
			align-items: start;
			&:not(:last-of-type) {
				margin-bottom: 24px;
			}
		}
		dt {
			width: 200px;
			font-weight: 700;
			padding-top: 16px;
			p {
				display: flex;
				width: 100%;
				gap: 24px;
				align-items: center;
			}
		}
		dd {
			width: calc(100% - (200px + 24px));
			margin: 0;
			padding: 0;
			p {
				span {
					display: block;
					width: 100%;
					height: 100%;
				}
			}
			input,textarea {
				padding: 16px;
				width: 100%;
				max-width: 100%;
				line-height: 1.4;
			}
			textarea {
				resize: none;
			}
		}
	}
	.wpcf7-submit {
		display: block;
		margin: 40px auto 0;
		border-radius: 8px;
		cursor: pointer;
		transition: all .3s ease-in;
		&:hover {
			opacity: 0.7;
		}
	}
}
@media (max-width: 767px) {
	#l-contact {
	max-width: 980px;
	margin: 0 auto 80px;
	dl {
		&>.dflex {
			gap: 8px;
			align-items: unset;
			flex-direction: column;
			&:not(:last-of-type) {
				margin-bottom: 24px;
			}
		}
		dt {
			padding-top: unset;
		}
		dd {
			width: 100%;
			input,textarea {
				font-size: 16px;
			}
		}
	}
	.wpcf7-submit {
		width: 100%;
	}
}
}

/* 完了画面レイアウト　2025.07.26追加 */
#l-finish {
	width: 100%;
	max-width: 680px;
	margin: 60px auto 80px;
	background-color: #f2f2f2;
	border-radius: 8px;
	padding: 40px;
	p {
		text-align: center;
		line-height: 2;
		font-size: 18px;
		font-weight: 700;
		margin: 0;
		padding: 0;
	}
}
@media (max-width: 767px) {
	#l-finish {
		p {
			font-size: 14px;
		}
	}
}