/* ========================================
	Contact Form Styles
======================================== */

/* 基本設定 */
* {
	box-sizing: border-box;
}

body {
	font-family: 'Noto Sans JP', sans-serif;
	color: #333;
	line-height: 1.8;
	background-color: #f5f7fa;
}

.contact-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ========================================
	Header
======================================== */
.contact-header {
	background-color: #fff;
	padding: 20px 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo img {
	height: 40px;
	display: block;
}

/* ========================================
	Main
======================================== */
.contact-main {
	flex: 1;
	padding: 60px 0;
}

.contact-box {
	max-width: 800px;
	margin: 0 auto;
	background-color: #fff;
	padding: 60px 40px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media screen and (max-width: 768px) {
	.contact-box {
			padding: 40px 20px;
	}
	
	.contact-main {
			padding: 40px 0;
	}
}

/* ========================================
	タイトル・リード文
======================================== */
.contact-title {
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 30px;
	color: #1a1a1a;
}

@media screen and (max-width: 768px) {
	.contact-title {
			font-size: 24px;
			margin-bottom: 20px;
	}
}

.contact-lead {
	text-align: center;
	color: #666;
	margin-bottom: 50px;
	line-height: 1.8;
}

@media screen and (max-width: 768px) {
	.contact-lead {
			font-size: 14px;
			margin-bottom: 40px;
	}
	
	.sp-only {
			display: inline;
	}
}

@media screen and (min-width: 769px) {
	.sp-only {
			display: none;
	}
}

.required-note {
	display: block;
	margin-top: 10px;
	font-size: 14px;
}

/* ========================================
	フォーム
======================================== */
.contact-form {
	margin-top: 40px;
}

.hp-field {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	left: -9999px !important;
}

.form-group {
	margin-bottom: 30px;
}

.form-group.has-error .form-control {
	border-color: #e74c3c;
}

.form-label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
	color: #333;
	font-size: 15px;
}

.required-mark {
	display: inline-block;
	background-color: #e74c3c;
	color: #fff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 3px;
	margin-left: 8px;
	font-weight: 500;
}

.form-control {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	font-family: 'Noto Sans JP', sans-serif;
	transition: border-color 0.3s;
}

.form-control:focus {
	outline: none;
	border-color: #0066cc;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.error-message {
	color: #e74c3c;
	font-size: 14px;
	margin-top: 5px;
}

/* ========================================
	個人情報の取り扱い
======================================== */
.privacy-box {
	background-color: #f8f9fa;
	padding: 30px;
	border-radius: 6px;
	margin: 40px 0;
}

.privacy-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 15px;
	color: #1a1a1a;
}

.privacy-content {
	font-size: 14px;
	color: #666;
	line-height: 1.8;
}

.privacy-content p {
	margin-bottom: 10px;
}

.privacy-content a {
	color: #0066cc;
	text-decoration: underline;
}

.privacy-content a:hover {
	text-decoration: none;
}

.form-checkbox {
	margin-top: 20px;
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	font-size: 15px;
}

.checkbox-label input[type="checkbox"] {
	margin-right: 10px;
	margin-top: 3px;
	cursor: pointer;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.checkbox-text {
	flex: 1;
}

/* ========================================
	ボタン
======================================== */
.form-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 40px;
}

@media screen and (max-width: 768px) {
	.form-buttons {
			flex-direction: column-reverse;
			gap: 15px;
	}
}

.form-inline {
	display: inline-block;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 40px;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
	text-decoration: none;
	font-family: 'Noto Sans JP', sans-serif;
}

@media screen and (max-width: 768px) {
	.btn {
			width: 100%;
			padding: 14px 20px;
			font-size: 15px;
	}
}

.btn svg {
	flex-shrink: 0;
}

.btn-primary {
	background-color: #0066cc;
	color: #fff;
}

.btn-primary:hover {
	background-color: #0052a3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
	background-color: #6c757d;
	color: #fff;
}

.btn-secondary:hover {
	background-color: #5a6268;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-submit,
.btn-back {
	min-width: 240px;
}

@media screen and (max-width: 768px) {
	.btn-submit,
	.btn-back {
			min-width: auto;
	}
}

/* ========================================
	確認画面
======================================== */
.confirm-table {
	margin: 40px 0;
}

.confirm-table table {
	width: 100%;
	border-collapse: collapse;
	background-color: #fff;
}

.confirm-table th,
.confirm-table td {
	padding: 20px;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
}

.confirm-table th {
	background-color: #f8f9fa;
	font-weight: 500;
	width: 180px;
	vertical-align: top;
}

.confirm-table td {
	color: #333;
}

.message-cell {
	white-space: pre-wrap;
	word-wrap: break-word;
}

@media screen and (max-width: 768px) {
	.confirm-table th,
	.confirm-table td {
			display: block;
			width: 100%;
			padding: 12px 15px;
	}
	
	.confirm-table th {
			background-color: #f8f9fa;
			border-bottom: none;
			padding-bottom: 5px;
	}
	
	.confirm-table td {
			padding-top: 5px;
			padding-bottom: 20px;
	}
}

/* ========================================
	完了画面
======================================== */
.thanks-box {
	text-align: center;
}

.thanks-icon {
	margin-bottom: 30px;
}

.thanks-icon svg {
	color: #28a745;
}

.thanks-message {
	margin: 40px 0;
	color: #666;
}

.thanks-message p {
	margin-bottom: 20px;
	line-height: 1.8;
}

.thanks-info {
	background-color: #f8f9fa;
	padding: 30px;
	border-radius: 6px;
	margin: 40px 0;
}

.thanks-info-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #1a1a1a;
}

.contact-info {
	text-align: center;
}

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

.contact-tel {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 10px !important;
}

.contact-tel a {
	color: #0066cc;
	text-decoration: none;
}

.contact-tel a:hover {
	text-decoration: underline;
}

.contact-time {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px !important;
}

.contact-email {
	font-size: 16px;
}

.contact-email a {
	color: #0066cc;
	text-decoration: none;
}

.contact-email a:hover {
	text-decoration: underline;
}

.btn-back-home {
	min-width: 300px;
}

@media screen and (max-width: 768px) {
	.btn-back-home {
			min-width: auto;
			width: 100%;
	}
	
	.contact-tel {
			font-size: 20px;
	}
}

/* ========================================
	Footer
======================================== */
.contact-footer {
	background-color: #2c3e50;
	color: #fff;
	padding: 30px 0;
	text-align: center;
	margin-top: auto;
}

.footer-copyright {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}
