:root {
	--primary: #d61518;
	--primary-hover: #b31214;
	--bg-color: #f8fafc;
	--card-bg: #ffffff;
	--text-main: #1e293b;
	--text-muted: #64748b;
	--border-color: #e2e8f0;
	--input-focus: #cbe1ffff;
}

body {
	font-family: "Noto Sans JP", sans-serif;
	background-color: var(--bg-color);
	color: var(--text-main);
	margin: 0;
	padding: 0;
	line-height: 1.6;

	/* display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh; */
}

.header {
	background-color: var(--primary);
	color: white;
	padding: 1.5rem 0;
	text-align: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header h1 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.container {
	max-width: 800px;
	margin: 3rem auto;
	padding: 0 1rem;
}

.form-card {
	background: var(--card-bg);
	border-radius: 12px;
	box-shadow:
		0 10px 25px -5px rgba(0, 0, 0, 0.1),
		0 8px 10px -6px rgba(0, 0, 0, 0.1);
	padding: 3rem;
}

.form-description {
	margin-bottom: 2.5rem;
	color: var(--text-muted);
	font-size: 1.05rem;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--text-main);
}

.form-group label .required,
.form-group label .no-edit {
	background-color: var(--primary);
	color: white;
	font-size: 0.75rem;
	padding: 0.1rem 0.4rem;
	/* border-radius: 4px; */
	margin-left: 0.5rem;
	vertical-align: middle;
}

.form-group label .no-edit {
	background-color: #41567c;
}

.form-control {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--border-color);
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.2s ease;
	box-sizing: border-box;
	background-color: #f8fafc;
	color: var(--text-main);
}

.form-control:focus {
	outline: none;
	border-color: #4f95f6ff;
	box-shadow: 0 0 0 4px var(--input-focus);
	background-color: #fff;
}

textarea.form-control {
	resize: vertical;
	min-height: 120px;
}

.two-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

@media (max-width: 600px) {
	.two-cols {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.form-card {
		padding: 1.5rem;
	}

	p {
		font-size: 0.875rem !important;
		line-height: 1.8;
	}
}

.btn-submit {
	background-color: var(--primary);
	color: white;
	border: none;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	width: 100%;
	margin-top: 1.5rem;
	transition:
		background-color 0.2s,
		transform 0.1s;
	box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-submit:hover {
	background-color: var(--primary-hover);
}

.btn-submit:active {
	transform: translateY(2px);
	box-shadow: 0 2px 4px -1px rgba(37, 99, 235, 0.2);
}

.chatbot-data-banner {
	background-color: #f0fdf4;
	border-left: 5px solid #22c55e;
	padding: 1rem 1.5rem;
	margin-bottom: 2rem;
	border-radius: 6px;
	color: #166534;
	font-size: 0.95rem;
	animation: fadeInDown 0.5s ease-out;
}

.readonly-wrapper {
	cursor: not-allowed;
}

.readonly-value {
	background-color: #e3e7ec;
	color: var(--text-muted);
	pointer-events: none;
	border-color: var(--border-color);
}

.section-title {
	border-bottom: 2px solid var(--primary);
	padding-bottom: 0.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
	color: var(--primary);
}

.text-link {
	color: blue;
	text-decoration: underline;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* thanks.html specifics */
.success-icon {
	color: #22c55e;
	font-size: 4rem;
	margin-bottom: 1.5rem;
	line-height: 1;
}

.thanks-title {
	font-size: 1.6rem;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 1.5rem;
	color: var(--text-main);
}

.thanks-message {
	color: var(--text-muted);
	margin-bottom: 2.5rem;
	line-height: 1.8;
	font-size: 1.05rem;
	text-align: left;
}

.btn-home {
	display: inline-block;
	background-color: var(--primary);
	color: white;
	text-decoration: none;
	padding: 1rem 2.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 8px;
	transition:
		background-color 0.2s,
		transform 0.1s;
	box-shadow: 0 4px 6px -1px rgba(214, 21, 24, 0.2);
}

.btn-home:hover {
	background-color: var(--primary-hover);
	color: white;
}

.btn-home:active {
	transform: translateY(2px);
	box-shadow: 0 2px 4px -1px rgba(214, 21, 24, 0.2);
}

/* Utils styles for general alignments */
.text-center {
	text-align: center;
}
.mt-2 {
	margin-top: 1.5rem;
}

/* 確認画面スタイル */
.formTable {
	width: 100%;
	border-collapse: collapse;
}

.formTable th,
.formTable td {
	padding: 1rem;
	border: 1px solid var(--border-color);
}

.formTable th {
	background-color: #f1f1f1;
	text-align: left;
}

/* 送信ボタンスタイル */
.btn-block {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin-top: 1.5rem;
}

.submit-btn,
.back-btn {
	background-color: var(--primary);
	color: white;
	border: none;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	width: 100%;
	transition:
		background-color 0.2s,
		transform 0.1s;
	box-shadow: 0 4px 6px -1px rgba(214, 21, 24, 0.2);
}

.back-btn {
	background-color: #e4e4e4;
	color: var(--text-main);
	box-shadow: 0 4px 6px -1px rgba(173, 157, 157, 0.2);
}

.submit-btn:hover {
	background-color: var(--primary-hover);
	color: white;
}

.submit-btn:active {
	transform: translateY(2px);
	box-shadow: 0 2px 4px -1px rgba(214, 21, 24, 0.2);
}

@media (max-width: 768px) {
	/* 画面幅600px以下の時に縦並びにする */
	table,
	thead,
	tbody,
	tr,
	th,
	td {
		display: block;
	}

	.xdsoft_datetimepicker tr {
		display: flex;
	}

	.btn-block {
		grid-template-columns: 1fr;
	}

	.back-btn {
		order: 2;
	}

	.submit-btn {
		order: 1;
	}
}

footer {
	padding: 1rem;
	text-align: center;
	background-color: var(--primary);
	color: white;
}

.error-message {
	color: var(--primary);
	font-size: 0.875rem;
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.form-description {
	margin-bottom: 0.5rem;
	color: var(--text-muted);
	font-size: 1.05rem;
}
