*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
	padding: 30px;
	font-size: 1.6rem;
	color: #333;
	font-family: "メイリオ", Meiryo, sans-serif;
	background-color: #f5f5f5;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.wrapper {
	max-width: 680px;
	padding: 30px 40px;
	margin: 0 auto;
	background-color: #fff;
	border: 1px solid #CCC;
}

.header {
	background: linear-gradient(to bottom,  #666 0%,#111 100%);
	padding: 12px;
	margin-bottom: 15px;
	text-align: center;
	border-radius: 5px;
}

.header h1 {
	margin: 0;
	font-family: "メイリオ", Meiryo, sans-serif;
	color: #f5f5f5;
	font-size: 2.4rem;
	font-weight: 400;
	line-height: 1.1;
}

main {
	max-width: 37em;
	overflow: hidden;
}

h2 {
	font-family: "メイリオ", Meiryo, sans-serif;
	font-size: 1.6rem;
	font-weight: 400;
}

h2::before,
h2::after  {
	content: "==============================================================================================";
	display: block;
	width: 100%;
	font-family: "メイリオ", Meiryo, sans-serif;
	white-space: nowrap;
}

p {
	font-family: "メイリオ", Meiryo, sans-serif;
	margin-bottom: 16px;
	font-size: 1.6rem;
}

.border::after { 
	content: "==============================================================================================";
	display: block;
	width: 100%;
	font-family: "メイリオ", Meiryo, sans-serif;
	white-space: nowrap;
}

.mailform {
	max-width: 760px;
	margin: 0 auto;
}

.mailform-row {
	display: flex;
	gap: 12px;
	align-items: stretch;
	border: 1px solid #ccc;
	overflow: hidden;
}

.mailform-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #f2f2f2;
	border-right: 1px solid #d9d9d9;
	min-width: 180px;
	box-sizing: border-box;
}

.label-text {
	font-family: "メイリオ", Meiryo, sans-serif;
	font-weight: 400;
	color: #333;
	white-space: nowrap;
}

.required {
	display: inline-block;
	padding: 2px 10px;
	font-family: "メイリオ", Meiryo, sans-serif;
	font-size: 1.2rem;
	font-weight: 400;
	color: #fff;
	background: #f39c12;
	border-radius: 999px;
	line-height: 1.6;
}

.mailform-field {
	flex: 1;
	padding: 8px 10px 8px 0;
}

.mailform-field input {
	width: 100%;
	height: 36px;
	padding: 0 14px;
	border: 1px solid #d9d9d9;
	border-radius: 3px;
	font-family: "メイリオ", Meiryo, sans-serif;
	font-size: 1.6rem;
	box-sizing: border-box;
}

.mailform-field input:focus {
	outline: none;
	border-color: #7aa7ff;
}

.mailform-actions {
	margin-top: 14px;
	text-align: center;
}

.mailform-actions button {
	width: min(360px, 100%);
	padding: 14px 18px;
	font-family: "メイリオ", Meiryo, sans-serif;
	font-size: 18px;
	font-weight: 400;
	color: #fff;
	background: linear-gradient(#61c15f, #3aa63a);
	border: 1px solid #61c15f;
	border-bottom: 5px solid #2d8e2d;
	border-radius: 6px;
	cursor: pointer;
}

@media (max-width: 768px) {
	body {
		padding: 15px 15px;
		background-color: #fff;
	}
	.wrapper {
		max-width: 400px;
		padding: 30px 0;
		border: none;
	}

	.header {
		padding: 25px 20px;
	}

	.header h1 {
		font-size: 1.8rem;
	}

	p {
		font-size: 1.5rem;
	}

	
	.mailform-row {
		flex-direction: column;
		gap: 8px;
	}

	.mailform-label {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 12px 14px;
		background: #f2f2f2;
		border-right: none;
		border-bottom: 1px solid #d9d9d9;
		box-sizing: border-box;
	}
	.mailform-field {
		padding: 2px 8px 8px;
	}
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}