/* =============================================================================
   お問い合わせページ — page-contact.css
   AI開発実践ラボ
   ============================================================================= */

/* ── ヒーロー ──────────────────────────── */
.contact-hero {
	position: relative;
	min-height: 280px;
	display: flex;
	align-items: center;
	background: #0D1117;
	overflow: hidden;
}
.contact-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(30, 90, 158, 0.25) 0%, rgba(43, 108, 176, 0.15) 100%);
}
/* スラッシュ背景（他ページと統一） */
.contact-hero::before {
	content: '';
	position: absolute;
	top: -20%;
	left: -10%;
	width: 70%;
	height: 140%;
	background: linear-gradient(160deg, #2B6CB0 0%, #1E5A9E 100%);
	opacity: 0.14;
	transform: skewX(-18deg);
	z-index: 1;
}
.contact-hero::after {
	content: '';
	position: absolute;
	top: -30%;
	left: 15%;
	width: 50%;
	height: 160%;
	background: linear-gradient(170deg, #1E5A9E 0%, #2B6CB0 100%);
	opacity: 0.18;
	transform: skewX(-22deg);
	z-index: 1;
}
.contact-hero-inner {
	position: relative;
	z-index: 2;
	padding: 80px 0 60px;
}
.contact-hero-content {
	max-width: 640px;
}
.contact-hero-eyebrow {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 12px;
}
.contact-hero-title {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 36px;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
	margin: 0 0 16px;
}
.contact-hero-sub {
	font-size: 15px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.85);
}

/* ── メインレイアウト ──────────────────── */
.contact-main {
	padding: 64px 0 80px;
	background: var(--color-bg, #fff);
}
.contact-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 48px;
	align-items: start;
}

/* ── フォームエリア ────────────────────── */
.contact-form-area {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 40px;
}

/* ハニーポット（非表示） */
.contact-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

/* フィールド */
.contact-field {
	margin-bottom: 24px;
}
.contact-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-heading, #2D3748);
	margin-bottom: 8px;
}
.contact-required {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: var(--color-accent, #E8956D);
	padding: 1px 6px;
	border-radius: 3px;
	margin-left: 6px;
	vertical-align: middle;
}
.contact-optional {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: var(--color-sub, #718096);
	background: #EDF2F7;
	padding: 1px 6px;
	border-radius: 3px;
	margin-left: 6px;
	vertical-align: middle;
}

.contact-input,
.contact-select,
.contact-textarea {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.5;
	font-family: 'Noto Sans JP', 'Inter', sans-serif;
	color: var(--color-heading, #2D3748);
	background: #F7FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}
.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
	outline: none;
	border-color: var(--color-primary, #2B6CB0);
	box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
	background: #fff;
}
.contact-input::placeholder,
.contact-textarea::placeholder {
	color: #A0AEC0;
}

/* セレクトの矢印 */
.contact-select {
	appearance: none;
	-webkit-appearance: none;
	height: auto !important;
	min-height: 48px;
	padding-top: 14px;
	padding-bottom: 14px;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px;
	overflow: visible;
}

.contact-textarea {
	resize: vertical;
	min-height: 140px;
}

/* チェックボックス（プライバシーポリシー同意） */
.contact-field--agree {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #E2E8F0;
}
.contact-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--color-body, #4A5568);
	cursor: pointer;
	line-height: 1.6;
}
.contact-checkbox-label input[type="checkbox"] {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--color-primary, #2B6CB0);
}
.contact-checkbox-label a {
	color: var(--color-primary, #2B6CB0);
	text-decoration: underline;
}

/* 送信ボタン */
.contact-field--submit {
	margin-top: 32px;
	text-align: center;
}
.contact-submit {
	min-width: 240px;
	padding: 16px 48px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
}
.contact-submit:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.contact-submit:not(:disabled):hover {
	transform: translateY(-1px);
}

/* ── エラーメッセージ ──────────────────── */
.contact-errors {
	background: #FFF5F5;
	border: 1px solid #FED7D7;
	border-left: 4px solid #E53E3E;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
}
.contact-errors-title {
	font-size: 14px;
	font-weight: 700;
	color: #C53030;
	margin: 0 0 8px;
}
.contact-errors ul {
	margin: 0;
	padding: 0 0 0 20px;
}
.contact-errors li {
	font-size: 13px;
	color: #C53030;
	line-height: 1.6;
}

/* ── 送信完了 ──────────────────────────── */
.contact-success {
	text-align: center;
	padding: 48px 24px;
}
.contact-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	color: #059669;
}
.contact-success-icon svg {
	width: 100%;
	height: 100%;
}
.contact-success-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--color-heading, #2D3748);
	margin: 0 0 12px;
}
.contact-success-desc {
	font-size: 15px;
	color: var(--color-body, #4A5568);
	line-height: 1.8;
	margin-bottom: 32px;
}

/* ── サイドバー ────────────────────────── */
.contact-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.contact-sidebar-card {
	background: #F7FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 28px 24px;
}
.contact-sidebar-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--color-heading, #2D3748);
	margin: 0 0 16px;
	line-height: 1.5;
}
.contact-sidebar-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.contact-sidebar-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--color-body, #4A5568);
	line-height: 1.6;
	padding: 8px 0;
}
.contact-sidebar-list li + li {
	border-top: 1px solid #E2E8F0;
}
.contact-sidebar-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--color-primary, #2B6CB0);
	margin-top: 1px;
}
.contact-sidebar-icon svg {
	width: 100%;
	height: 100%;
}
.contact-sidebar-examples {
	list-style: none;
	padding: 0;
	margin: 0;
}
.contact-sidebar-examples li {
	position: relative;
	font-size: 13px;
	color: var(--color-body, #4A5568);
	line-height: 1.6;
	padding: 6px 0 6px 16px;
}
.contact-sidebar-examples li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-primary, #2B6CB0);
}

/* ── レスポンシブ ──────────────────────── */
@media (max-width: 768px) {
	.contact-hero-inner {
		padding: 60px 0 40px;
	}
	.contact-hero-title {
		font-size: 28px;
	}
	.contact-hero-sub br {
		display: none;
	}
	.contact-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.contact-form-area {
		padding: 24px 20px;
	}
	.contact-sidebar {
		order: -1;
	}
}

@media (max-width: 480px) {
	.contact-hero-title {
		font-size: 24px;
	}
	.contact-submit {
		width: 100%;
		min-width: auto;
	}
}

.contact-recaptcha-notice {
	font-size: 12px;
	color: var(--color-sub);
	line-height: 1.7;
	margin-bottom: 16px;
}

.contact-recaptcha-notice a {
	color: var(--color-sub);
	text-decoration: underline;
}

.contact-recaptcha-notice a:hover {
	color: var(--color-primary);
}
