/* お問い合わせページのスタイル */

/* メインコンテンツ */
.main-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* お問い合わせ紹介セクション */
.contact-intro {
	text-align: center;
	margin-bottom: 40px;
}

.contact-content p {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 18px;
	line-height: 1.8;
	color: #333;
	margin: 0;
}

/* 連絡先情報セクション */
.contact-details {
	margin-bottom: 40px;
}

.contact-details-content {
	display: flex;
	flex-direction: column;
	gap: 30px;
	align-items: center;
}

.phone-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.phone-title {
	width: 100%;
	max-width: 433px;
	height: auto;
}

.phone-details {
	display: flex;
	gap: 40px;
	align-items: center;
}

.phone-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.phone-icon-img {
	width: 66px;
	height: 57px;
}

.phone-label {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #333;
	margin: 0;
}

.phone-numbers {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.phone-number {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 20px;
	font-weight: bold;
	color: #333;
	margin: 0;
}

.fax-section {
	display: flex;
	align-items: center;
	gap: 15px;
}

.fax-icon {
	width: 80px;
	height: 34px;
}

.fax-number {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: #333;
	margin: 0;
}

/* お問い合わせフォーム */
.contact-form {
	border-radius: 8px;
	padding: 40px;
	margin-bottom: 40px;
}

.form-content {
	max-width: 800px;
	margin: 0 auto;
}

.form-instruction {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #333;
	margin: 0 0 30px 0;
	text-align: center;
}

.contact-form-element {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #333;
}

.form-group input,
.form-group textarea {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 16px;
	padding: 12px 15px;
	border: 2px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #333;
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.checkbox-group {
	border: 2px solid #ddd;
	border-radius: 4px;
	padding: 20px;
	background-color: #fff;
}

.checkbox-group h3 {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #333;
	margin: 0 0 15px 0;
}

.checkbox-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.checkbox-item:last-child {
	margin-bottom: 0;
}

.checkbox-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
}

.checkbox-item label {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 14px;
	color: #333;
	cursor: pointer;
}

.captcha-container {
	margin-top: 10px;
}

.submit-btn {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: #fff;
	background-color: #333;
	border: none;
	border-radius: 4px;
	padding: 15px 40px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	align-self: center;
}

.submit-btn:hover {
	background-color: #a0522d;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
	.main-content {
		padding: 20px 15px;
	}

	.contact-details-content {
		gap: 20px;
	}

	.phone-details {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.phone-numbers {
		align-items: center;
	}

	.fax-section {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}

	.contact-form {
		padding: 20px;
	}

	.form-content {
		max-width: 100%;
	}

	.contact-form-element {
		gap: 20px;
	}

	.checkbox-group {
		padding: 15px;
	}

	.checkbox-item {
		flex-direction: row;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.main-content {
		padding: 15px 10px;
	}

	.contact-content p {
		font-size: 16px;
	}

	.phone-number {
		font-size: 18px;
	}

	.fax-number {
		font-size: 16px;
	}

	.contact-form {
		padding: 15px;
	}

	.form-group input,
	.form-group textarea {
		font-size: 14px;
		padding: 10px 12px;
	}

	.submit-btn {
		font-size: 16px;
		padding: 12px 30px;
	}
}

/* エラーメッセージ */
.error-messages {
	background-color: #ffebee;
	border: 1px solid #f44336;
	border-radius: 5px;
	padding: 15px;
	margin-bottom: 20px;
}

.error-messages ul {
	margin: 0;
	padding-left: 20px;
}

.error-messages li {
	color: #d32f2f;
	margin-bottom: 5px;
}

/* 成功メッセージ */
.success-message {
	background-color: #e8f5e8;
	border: 1px solid #4caf50;
	border-radius: 5px;
	padding: 15px;
	margin-bottom: 20px;
}

.success-message p {
	color: #2e7d32;
	margin: 0;
}

/* 必須項目マーク */
.required {
	color: #f44336;
	font-weight: bold;
}

/* 入力内容確認ページ */
.confirm-content {
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 20px;
	margin-bottom: 20px;
}

.confirm-item {
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.confirm-item:last-child {
	border-bottom: none;
}

.confirm-item label {
	font-weight: bold;
	color: #333;
	display: block;
	margin-bottom: 5px;
}

.confirm-item p {
	margin: 0;
	padding: 8px;
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 3px;
}

.message-content {
	white-space: pre-wrap;
	min-height: 100px;
}

/* 完了ページ */
.complete-message {
}

.complete-message h2 {
	color: #8b2b2b;
	font-size: 24px;
	margin-bottom: 20px;
}

.complete-message p {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 15px;
}

.contact-info {
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 20px;
	margin: 20px 0;
	text-align: left;
}

.contact-info h3 {
	color: #8b2b2b;
	margin-bottom: 15px;
}

.contact-info p {
	margin-bottom: 10px;
}

/* ボタン群 */
.form-buttons {
	text-align: center;
	margin-top: 30px;
}

.confirm-btn,
.send-btn {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: #fff;
	background-color: #333;
	border: none;
	border-radius: 4px;
	padding: 15px 40px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	text-decoration: none;
	display: inline-block;
	margin: 0 5px;
}

.send-btn {
	background-color: #4caf50;
}

.send-btn:hover {
	background-color: #45a049;
}

.back-btn,
.home-btn,
.new-inquiry-btn {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 16px;
	color: #fff;
	background-color: #666;
	border: none;
	border-radius: 4px;
	padding: 15px 30px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	text-decoration: none;
	display: inline-block;
	margin: 0 5px;
}

.back-btn:hover,
.home-btn:hover,
.new-inquiry-btn:hover {
	background-color: #555;
}

/* バリデーションスタイル */
.form-control.is-invalid {
	border-color: #dc3545;
	box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
	border-color: #198754;
	box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.field-error {
	display: block;
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.checkbox-error {
	display: block;
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

/* エラーメッセージのアニメーション */
.field-error,
.checkbox-error {
	animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.02);
	}
	100% {
		transform: scale(1);
	}
}
