@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

:root {
	--bg-top: #f4f8ff;
	--bg-bottom: #eef7f0;
	--card: #ffffff;
	--line: #d9e3dd;
	--title: #1f2a44;
	--text: #2f3b35;
	--muted: #6e7b75;
	--accent: #1b7f5f;
	--accent-hover: #17684f;
	--focus: #2f7bcc;
	--sun: #c1372d;
	--sat: #1f4bb5;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
	color: var(--text);
	font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
	line-height: 1.65;
}

div#mf_wrapper {
	max-width: 980px;
	margin: 28px auto;
	padding: 0 16px 24px;
	text-align: left;
	animation: fadeInUp 0.55s ease-out;
}

div#mf_header {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(23, 35, 30, 0.08);
	padding: 18px 22px 14px;
	margin-bottom: 14px;
}

div#mf_header h1 {
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1.3;
	color: var(--title);
	margin: 0;
	padding: 0 0 10px;
	border-bottom: 2px solid #e8eeea;
	letter-spacing: 0.02em;
}

div#mf_header h2 {
	font-size: clamp(13px, 1.8vw, 16px);
	color: var(--muted);
	font-weight: 500;
	letter-spacing: 0.11em;
	margin: 8px 0 0;
	padding: 0;
}

form#mailform {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(23, 35, 30, 0.08);
	padding: 10px 18px 18px;
}

table.mailform {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

table.mailform tr th,
table.mailform tr td {
	vertical-align: top;
	text-align: left;
	font-weight: 400;
	border-bottom: 1px solid var(--line);
	padding: 12px 8px;
}

table.mailform tr th {
	width: 220px;
	color: var(--title);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.01em;
}

table.mailform tr th span {
	color: #cc0000;
	font-size: 11px;
	margin-left: 2px;
}

table.mailform tr th p {
	margin: 2px 0 0;
	padding: 0;
	font-size: 11px;
	color: var(--muted);
	font-weight: 500;
	letter-spacing: 0.05em;
}

.field-note {
	margin-top: 8px;
	font-size: 13px;
	color: #4f5a55;
	line-height: 1.5;
}

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

table.mailform tr td input[type="text"],
table.mailform tr td textarea {
	width: min(100%, 520px);
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid #bccbc3;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 15px;
	line-height: 1.35;
	background: #fcfefd;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

table.mailform tr td input[type="text"]:focus,
table.mailform tr td textarea:focus {
	outline: none;
	border-color: var(--focus);
	box-shadow: 0 0 0 3px rgba(47, 123, 204, 0.16);
	background: #ffffff;
}

table.mailform tr td textarea {
	min-height: 150px;
	resize: vertical;
}

table.mailform tr td input#zipcode {
	width: 9.5em;
	margin-right: 8px;
}

table.mailform tr td input#address {
	width: min(100%, 760px);
}

table.mailform tr td input[type="radio"],
table.mailform tr td input[type="checkbox"] {
	margin-right: 5px;
	transform: translateY(1px);
}

table.mailform tr td input[type="button"],
table.mailform tr td input[type="submit"],
table.mailform tr td input[type="reset"] {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

table.mailform tr td input[type="button"] {
	background: #f0f7ff;
	border-color: #b5d3f3;
	color: #1f4f8f;
}

table.mailform tr td input[type="button"]:hover {
	background: #e3f0ff;
}

table.mailform tr td input[type="submit"] {
	background: var(--accent);
	color: #ffffff;
	box-shadow: 0 8px 18px rgba(27, 127, 95, 0.25);
}

table.mailform tr td input[type="submit"]:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
}

table.mailform tr td input[type="reset"] {
	background: #f4f4f4;
	border-color: #d7d7d7;
	color: #4f5752;
}

table.mailform tr td input[type="reset"]:hover {
	background: #ececec;
}

#zip-status {
	display: inline-block;
	margin-top: 8px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #f4f8f6;
	color: #51615a;
	font-size: 12px;
	line-height: 1.4;
}

table.mailform tr td .date-sat {
	color: var(--sat);
	font-weight: 700;
}

table.mailform tr td .date-sun {
	color: var(--sun);
	font-weight: 700;
}

@media (max-width: 860px) {
	div#mf_wrapper {
		margin: 14px auto;
		padding: 0 10px 16px;
	}

	div#mf_header,
	form#mailform {
		border-radius: 12px;
		padding-left: 12px;
		padding-right: 12px;
	}

	table.mailform,
	table.mailform tbody,
	table.mailform tr,
	table.mailform th,
	table.mailform td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	table.mailform tr {
		border-bottom: 1px solid var(--line);
		padding: 8px 0;
	}

	table.mailform tr th,
	table.mailform tr td {
		border-bottom: none;
		padding: 6px 4px;
	}

	table.mailform tr th {
		font-size: 15px;
	}

	table.mailform tr td input[type="text"],
	table.mailform tr td textarea {
		width: 100%;
	}

	table.mailform tr td input[type="button"],
	table.mailform tr td input[type="submit"],
	table.mailform tr td input[type="reset"] {
		margin-top: 8px;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}