/* Contact Page Styles */

.contact-page {
	background: white;
}

/* Page Title */
.page-title {
	height: clamp(160px, 30vw, 300px);
	position: relative;
	overflow: hidden;
}

.page-title-bg {
	position: absolute;
	inset: 0;
}

.page-title-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-title-bg .overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, white 0%, rgba(255, 255, 255, 0) 100%);
}

.page-title-content {
	position: relative;
	z-index: 1;
	padding: 105px var(--space-md) 60px;
}

.page-title .en-title {
	font-family: 'Afacad', sans-serif;
	font-size: var(--fz-xl);
	font-weight: 500;
	text-transform: uppercase;
	background: linear-gradient(to right, #4e76e4, #1d1f87);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1.2;
	margin-bottom: var(--space-xs);
}

.page-title .ja-title {
	font-family: 'Zen Kaku Gothic New', sans-serif;
	font-size: var(--fz-xxl);
	font-weight: 700;
	color: #222;
	line-height: 1.3;
	letter-spacing: 2.4px;
}

/* Breadcrumbs */
.breadcrumb {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	padding: var(--space-sm) var(--space-md);
	margin-bottom: 0;
	box-sizing: border-box;
}

.breadcrumb-home {
	display: flex;
	align-items: center;
}

.breadcrumb-arrow {
	display: block;
}

.breadcrumb-current {
	font-size: var(--fz-xs);
	color: #222;
}

/* Form Section */
.contact-form-section {
	padding: var(--space-md) var(--space-md);
	text-align: center;
	container-type: inline-size;
	max-width: 1064px;
}

@media (max-width: 768px) {
	.contact-form-section {
		padding: 24px 21px 48px;
	}
}

.form-intro {
	font-size: var(--fz-md);
	color: #222;
	margin-bottom: var(--space-lg);
	line-height: 1.5;
}

.contact-form {
	background-color: #f5f9fe;
	margin: 0 auto;
	padding: var(--space-md) 38px;
	box-sizing: border-box;
}

.form-item {
	display: flex;
	padding: var(--space-md) 0;
	border-bottom: 1px solid #eaeaea;
	align-items: flex-start;
	text-align: left;
	gap: var(--space-md);
}

.form-label {
	width: 259px;
	flex-shrink: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-right: 20px;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.form-label {
		width: 100%;
		padding-right: 0px;
	}
	.contact-form {
		padding: var(--space-md) 13px;
	}
	.page-title .ja-title {
		font-size: 28px;
	}
	.thanks-page-title .ja-title {
		letter-spacing: -0.05em;
	}

	.page-title-content {
		position: relative;
		z-index: 1;
		padding: 46px var(--space-md) 36px;
	}
}

/* Error Messages */
.error-message {
	color: #cb0000;
	font-size: 12px;
	width: 100%;
	margin-top: 16px;
	display: none;
}

.error-message.show {
	display: block;
}

.form-input input.error,
.form-input textarea.error {
	border-color: #cb0000;
}

.radio-item.error .radio-mark,
.checkbox-item.error .checkbox-mark {
	border-color: #cb0000;
}

.form-label label {
	font-size: 18px;
	font-weight: 700;
	color: #222;
	line-height: 1.5;
}

.hissu {
	background-color: #cb0000;
	color: white;
	font-size: 12px;
	font-weight: 700;
	padding: 0 4px;
	border-radius: 2px;
	line-height: 1.5;
}

.form-input {
	flex: 1;
	width: 100%;
}

.form-input input[type='text'],
.form-input input[type='email'],
.form-input input[type='tel'],
.form-input textarea {
	width: 100%;
	border: 1px solid #e6e6e6;
	background: white;
	padding: var(--space-sm);
	font-size: var(--fz-md);
	font-family: inherit;
}

.form-input input[type='text'],
.form-input input[type='email'],
.form-input input[type='tel'] {
	height: 48px;
}

.form-input textarea {
	padding: 16px;
}

/* Radio Buttons */
.radio-group,
.radio-group .wpcf7-form-control.wpcf7-radio.radio-input {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.radio-item,
.radio-group .wpcf7-list-item {
	width: calc(50% - 8px);
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	margin: 0;
}

@media (max-width: 768px) {
	.radio-group,
	.radio-group .wpcf7-form-control.wpcf7-radio.radio-input {
		flex-direction: column;
	}
	.radio-item,
	.radio-group span.wpcf7-list-item {
		width: 100%;
	}
}

.radio-item input {
	display: none;
}

.radio-mark {
	width: 24px;
	height: 24px;
	border: 1px solid #e6e6e6;
	border-radius: 50%;
	background: white;
	position: relative;
	flex-shrink: 0;
}

.radio-item input:checked + .radio-mark::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 12px;
	height: 12px;
	background: #4e76e4;
	border-radius: 50%;
}

.radio-text {
	font-size: var(--fz-sm);
	color: #222;
	line-height: 1.5;
	letter-spacing: 0.75px;
}

/* Checkbox */
.checkbox-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.checkbox-item input {
	display: none;
}

.checkbox-mark {
	width: 24px;
	height: 24px;
	border: 1px solid #e6e6e6;
	background: white;
	position: relative;
	flex-shrink: 0;
}

.checkbox-item input:checked + .checkbox-mark::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #4e76e4;
	font-size: 18px;
	font-weight: bold;
}

.checkbox-text {
	font-size: var(--fz-sm);
	color: #222;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.75px;
}

.checkbox-text a {
	color: #4e76e4;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Submit Button */
.form-submit {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

@media (max-width: 768px) {
	.form-submit {
		margin-top: 24px;
	}
}

.btn-submit {
	width: min(100%, 296px);
	height: 56px;
	background: linear-gradient(to right, #4e76e4, #1d1f87);
	color: white;
	border: none;
	border-radius: 200px;
	font-size: var(--fz-md);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--space-md);
	cursor: pointer;
	box-shadow: 4px 4px 12px rgba(12, 29, 133, 0.4);
	transition: transform 0.3s ease;
	letter-spacing: 0.8px;
	position: relative;
}

.btn-submit:hover {
	transform: translateY(-2px);
}

.btn-submit .btn-arrow {
	width: 20px;
	height: 20px;
}

@media (max-width: 768px) {
	.form-item {
		flex-direction: column;
		gap: var(--space-xs);
	}

	.radio-group {
		gap: 20px;
		padding-top: 20px;
		flex-direction: column;
	}

	.radio-item {
		width: 100%;
	}
}

/* CF7 */
.radio-group .wpcf7-list-item {
	width: calc(50% - 8px);
	margin: 0;
}

.radio-group .wpcf7-list-item > label {
	display: block;
	cursor: pointer;
}

.radio-group .wpcf7-list-item input[type='radio'] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.radio-group .wpcf7-list-item .wpcf7-list-item-label {
	display: block;
	position: relative;
	padding-left: 36px;
	font-size: var(--fz-sm);
	font-weight: 500;
	color: #222;
	line-height: 1.5;
	letter-spacing: 0.75px;
}

.radio-group .wpcf7-list-item .wpcf7-list-item-label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	border: 1px solid #e6e6e6;
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
}

.radio-group .wpcf7-list-item input[type='radio']:checked + .wpcf7-list-item-label::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	background: #4e76e4;
	border-radius: 50%;
}

/* labelをクリック領域に */
.form-input .wpcf7-acceptance .wpcf7-list-item > label {
	display: block;
	cursor: pointer;
}

/* inputは視覚的に隠す（display:noneは避ける） */
.form-input .wpcf7-acceptance input[type='checkbox'] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* テキスト（+チェック枠） */
.form-input .wpcf7-acceptance .wpcf7-list-item-label {
	display: block;
	position: relative;
	padding-left: 36px; /* 24px + 余白12px */
	font-size: var(--fz-sm);
	color: #222;
	line-height: 1.5;
	letter-spacing: 0.75px;
}

/* 外枠（checkbox-mark相当） */
.form-input .wpcf7-acceptance .wpcf7-list-item-label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.15em; /* テキストの先頭に揃えやすい */
	width: 24px;
	height: 24px;
	border: 1px solid #e6e6e6;
	background: #fff;
	box-sizing: border-box;
}

/* チェック（checkbox-mark::after相当） */
.form-input .wpcf7-acceptance input[type='checkbox']:checked + .wpcf7-list-item-label::after {
	content: '✓';
	position: absolute;
	left: 12px; /* 箱の中心 */
	top: 0.15em;
	transform: translateX(-50%);
	color: #4e76e4;
	font-size: 18px;
	font-weight: bold;
	line-height: 24px; /* 箱の高さに合わせる */
}

/* リンク装飾は既存を流用 */
.form-input .wpcf7-acceptance .checkbox-text a {
	color: #4e76e4;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.thanks-section {
	text-align: center;
	padding-bottom: 60px;
}
.thanks-message {
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
	background: linear-gradient(90deg, #4e76e4 0%, #1d1f87 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-fill-color: transparent;
}
.thanks-text {
	font-size: 20px;
	color: #222;
	line-height: 1.8;
	letter-spacing: 0.75px;
	margin-top: 36px;
}
.thanks-btn-wrap {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}
@media (max-width: 768px) {
	.thanks-message {
		font-size: 32px;
	}
	.thanks-text {
		font-size: 16px;
	}
}
