@charset "UTF-8";
/* CSS Document */

body {
	font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
	line-height: 1.6;
	color: #333;
	font-feature-settings: "palt"1;
	letter-spacing: 0.06em;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	min-height: 100vh;
}

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

@media screen and (min-width: 1025px) {
	.tab-mode {
		display: none !important;
	}
}

@media screen and (max-width: 1024px) {
	.pc-mode {
		display: none !important;
	}
}

@media screen and (max-width: 768px) {
	.pc-tab-mode {
		display: none !important;
	}
}

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

/* ヘッダー */
.header {
	background: white;
	padding: 0 0 20px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header h1 {
	font-size: 2.2rem;
	font-weight: 700;
	color: #DF0000;
	margin-bottom: 10px;
}

.header p {
	font-size: 1.1rem;
	color: #666;
}

.headerbg-container img {
	display: block;
	width: 100%;
	max-width: 2560px;
	margin: 0 auto;
}

/* メインセクション */
.consultation-form {
	background: white;
	color: #333;
	padding: 0 0 60px;
}

.form-description {
	padding: 30px 20px;
	margin-bottom: 50px;
	text-align: center;
	background: #F9F5F2;
	border-radius: 0px;
}

.form-description h2 {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 15px;
	color: #333;
}

.form-description p {
	font-size: 1.1rem;
	color: #666;
	margin: 0;
	line-height: 1.6;
}

.form-table {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-table th,
.form-table td {
	padding: 25px;
	border-bottom: 1px solid #eee;
}

.form-table th {
	background: #F9F5F2;
	font-weight: 600;
	color: #333;
	width: 30%;
	vertical-align: middle;
	position: relative;
}

.form-table td {
	color: #666;
	vertical-align: top;
}

.form-table tr:last-child th,
.form-table tr:last-child td {
	border-bottom: none;
}

.required-badge {
	display: inline-block;
	background: #DF0000;
	color: white;
	font-size: 0.75rem;
	padding: 4px 8px;
	border-radius: 0px;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-weight: normal;
}

.form-input,
.form-textarea,
.form-select {
	width: 100%;
	padding: 15px 20px;
	font-size: 1rem;
	border: 2px solid #e6e6e6;
	border-radius: 6px;
	background-color: #f8f9fa;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
	outline: none;
	border-color: #DF0000;
	background-color: white;
	box-shadow: 0 0 0 3px rgba(223, 0, 0, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
	color: #ccc;
}

.form-textarea {
	height: 120px;
	line-height: 1.6;
	resize: vertical;
}

.form-textarea.tall-textarea {
	height: 160px;
}

.form-input.short-input {
	width: 200px;
	max-width: 100%;
}

.privacy-check {
	text-align: center;
	margin: 40px 0;
	padding: 25px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.privacy-policy-link {
	display: block;
	margin-bottom: 15px;
	font-size: 0.9rem;
	color: #666;
}

.privacy-policy-link a {
	color: #DF0000;
	text-decoration: underline;
	border-bottom: none;
	transition: opacity 0.3s ease;
}

.privacy-policy-link a:hover {
	opacity: 0.7;
	border-bottom: none;
}

.privacy-check label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 1rem;
	color: #333;
	cursor: pointer;
}

.privacy-check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #DF0000;
}

.form-submit-area {
	text-align: center;
	margin-top: 40px;
}

.form-submit-btn {
	background: #DF0000;
	color: white;
	padding: 18px 60px;
	border: none;
	border-radius: 50px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(223, 0, 0, 0.2);
	max-width: 400px;
	width: 100%;
}

.form-submit-btn:hover {
	background: #C50000;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(223, 0, 0, 0.25);
}

/* フッター */
.footer {
	background: #1a1a1a;
	color: white;
	padding: 40px 20px 30px;
	text-align: center;
}

.footer-logo-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: auto;
	max-width: 500px;
}

.footer-logo {
	margin-bottom: 25px;
}

.footer-logo-link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: white;
	transition: all 0.3s ease;
}

.footer-logo-link:hover {
	transform: translateY(-2px);
}

.footer-logo-link img {
	width: 200px;
	height: auto;
}

.footer-logo-link span {
	font-size: 0.9rem;
	color: #ccc;
	font-weight: 400;
}

.footer-copyright {
	border-top: 1px solid #333;
	padding-top: 20px;
}

.footer-copyright-txt {
	font-size: 0.875rem;
	color: #888;
	margin: 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
	.container {
		padding: 0 15px;
	}

	.header h1 {
		font-size: 1.8rem;
	}

	.header p {
		font-size: 1rem;
	}

	.consultation-form {
		padding: 0 0 50px;
	}

	.form-table,
	.form-table tbody,
	.form-table tr,
	.form-table th,
	.form-table td {
		display: block;
	}

	.form-table th {
		width: 100%;
		background: #F9F5F2;
		border-bottom: none;
		padding: 15px 20px 5px;
		position: relative;
		vertical-align: middle;
		text-align: left;
	}

	.form-table td {
		padding: 20px 20px 20px;
		border-bottom: 2px solid #f0f0f0;
	}

	.form-table tr:last-child td {
		border-bottom: none;
	}

	.required-badge {
		position: static;
		transform: none;
		margin-left: 10px;
	}

	.footer-logo-link img {
		width: 150px;
	}

	.footer-logo-link span {
		font-size: 0.8rem;
	}

	.form-description {
		padding: 20px 15px;
		margin-bottom: 30px;
	}

	.form-description h2 {
		font-size: 1.5rem;
	}

	.form-description p {
		font-size: 1rem;
	}

	.privacy-check {
		margin: 30px 0;
		padding: 20px 15px;
	}

	.privacy-check label {
		font-size: 0.9rem;
		gap: 8px;
	}

	.privacy-policy-link {
		font-size: 0.8rem;
		margin-bottom: 12px;
	}

	.form-submit-btn {
		padding: 16px 40px;
		font-size: 1rem;
	}

	.form-input.short-input {
		width: 100%;
	}
}

@media (max-width: 375px) {
	.footer-logo-link img {
		width: 120px;
	}
}
	
/* バリデーションエラー用スタイル */
.formError .formErrorContent {
	background: #DF0000;
}

.formError .formErrorArrow div {
	background: #DF0000;
}

.greenPopup .formErrorContent {
	background: #33be40;
}

.greenPopup .formErrorArrow div {
	background: #33be40;
}