@charset "UTF-8";

/*
    お問い合わせページ(page-contact.php)・サンクスページ(page-thanks.php)共通スタイル
    メインビジュアルは page-company.css の .p-companyHero を流用しているため、
    front-page.css / page-company.css もあわせて読み込んでいます。
*/

#main_content.l-article {
	max-width: 1400px;
}

.page-template-page-contact-php #content,
.page-template-page-thanks-php #content {
	padding-top: 0;
}

/* No.2 電話でのお問い合わせ */
.p-contactTel {
	margin-left: auto;
	margin-right: auto;
	max-width: 700px;
	padding: 56px 24px;
	text-align: center;
}
.p-contactTel__lead {
	margin: 0 0 16px;
}
.p-contactTel__number {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--brand-font-heading);
	font-size: 36px;
	font-weight: 700;
	color: var(--brand-color-main);
	text-decoration: none;
	letter-spacing: 0.02em;
}
.p-contactTel__icon {
	display: inline-flex;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}
.p-contactTel__hours {
	margin: 12px 0 0;
	color: var(--brand-color-muted);
	font-size: 14px;
}

/* No.3 フォームでのお問い合わせ */
.p-contactForm {
	margin-left: auto;
	margin-right: auto;
	max-width: 800px;
	padding-left: 24px;
	padding-right: 24px;
	padding-top: 24px;
	padding-bottom: 96px;
}
.p-contactForm__head {
	text-align: center;
	margin-bottom: 40px;
}
.p-contactForm__head .p-sectionTag {
	display: inline-flex;
}
.p-contactForm__lead {
	margin: 0;
}
.p-contactForm__body {
	background: #fff;
	border-radius: var(--brand-radius-card);
	box-shadow: var(--brand-shadow-card);
	padding: 40px 32px;
}

/* SP: セクション自体の左右paddingは#content(.l-container)側と二重になるため0にする */
@media (max-width: 768px) {
	.p-contactForm {
		padding-left: 0;
		padding-right: 0;
	}
}

/* --- Contact Form 7 のフィールドをブランドトーンに合わせて調整 --- */
.p-contactForm__body .wpcf7-form p {
	margin: 0 0 24px;
}
.p-contactForm__body .wpcf7-form > p:last-child,
.p-contactForm__body .wpcf7-form p:has(.wpcf7-submit) {
	margin-bottom: 0;
}
.p-contactForm__body .wpcf7-form label {
	display: block;
	font-family: var(--brand-font-body);
	font-weight: bold;
	color: var(--brand-color-text);
	margin-bottom: 8px;
}
.p-contactForm__body .wpcf7-form-control-wrap {
	display: block;
}
.p-contactForm__body input[type="text"],
.p-contactForm__body input[type="email"],
.p-contactForm__body input[type="tel"],
.p-contactForm__body select,
.p-contactForm__body textarea {
	width: 100%;
	font-family: var(--brand-font-body);
	font-size: 16px;
	color: var(--brand-color-text);
	background: var(--brand-color-bg);
	border: 1px solid rgba(0, 104, 183, 0.2);
	border-radius: 10px;
	padding: 12px 16px;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.p-contactForm__body textarea {
	min-height: 140px;
	resize: vertical;
}
.p-contactForm__body input:focus,
.p-contactForm__body select:focus,
.p-contactForm__body textarea:focus {
	outline: none;
	border-color: var(--brand-color-main);
	background: #fff;
}
.p-contactForm__body .wpcf7-list-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 16px 8px 0;
	font-weight: normal;
}
.p-contactForm__body .wpcf7-radio .wpcf7-list-item {
	display: flex;
}

/* 同意チェックボックス */
.p-contactForm__body .wpcf7-acceptance .wpcf7-list-item {
	align-items: flex-start;
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
}
.p-contactForm__body .wpcf7-acceptance input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: var(--brand-color-main);
}
.p-contactForm__body .wpcf7-acceptance a {
	color: var(--brand-color-main);
	text-decoration: underline;
}

/* 送信ボタン: disabledはJS(cf7-acceptance.js)がinline styleで制御 */
.p-contactForm__body .wpcf7-submit {
	display: block;
	width: 100%;
	background: var(--brand-color-accent);
	color: #fff;
	font-family: var(--brand-font-body);
	font-size: 17px;
	font-weight: bold;
	border: none;
	border-radius: var(--brand-radius-button);
	padding: 16px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 6px 16px rgba(225, 128, 54, 0.28);
}
.p-contactForm__body .wpcf7-submit:not(:disabled):hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(225, 128, 54, 0.4);
}

.p-contactForm__body .wpcf7-not-valid-tip {
	display: block;
	color: #d94848;
	font-size: 13px;
	margin-top: 6px;
}
.p-contactForm__body .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 16px 20px;
	border-radius: 10px;
	border-color: var(--brand-divider-color);
	font-size: 14px;
}

/* サンクスページ */
.p-thanks {
	margin-left: auto;
	margin-right: auto;
	max-width: 700px;
	padding: 72px 24px 96px;
	text-align: center;
}
.p-thanks__body {
	margin: 0 0 32px;
}
.p-thanks__btns {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}
.p-thanks__btnIcon {
	display: inline-flex;
	width: 18px;
	height: 18px;
}

@media (max-width: 600px) {
	.p-contactTel__number {
		font-size: 28px;
	}
	.p-thanks__btns {
		flex-direction: column;
		align-items: stretch;
	}
}
