.p-contact {
	padding-top: var(--p-header);
}

.p-contact main {
	padding-top: 6.8rem;
}

.p-contact .p-header__contact {
	display: none;
}

.p-contact__wrap {
	margin-inline: auto;
}

.p-contact__ttl {
	font-weight: bold;
	text-align: center;
	font-size: 4.6rem;
	margin-bottom: 10rem;
}

.p-contact__txt {
	font-size: 2.8rem;
	line-height: 1.9642857143;
	margin-bottom: 9rem;
}

.p-contact__sub {
	margin-bottom: 9.2rem;
}

.p-contact__box {
	font-weight: bold;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #333;
	min-height: 24rem;
	padding: 3rem;
}

.p-contact-head {
	display: flex;
	text-align: center;
	font-weight: bold;
	gap: 1.6rem;
	font-size: 3.2rem;
	margin-bottom: 7rem;
	line-height: 1.25;
}

.p-contact-head__item {
	background-color: #C8C8C8;
	flex: 1 1;
	display: flex;
	align-items: center;
	justify-content: center;
	clip-path: polygon(0 0, calc(100% - 3rem) 0, 100% 50%, calc(100% - 3rem) 100%, 0 100%);
	padding: 1.2rem 3.5rem 1.2rem 1.5rem;
}

.p-contact-head__item.is-active {
	color: #fff;
	background-color: #061F38;
}

.p-contact-form__ttl {
	margin-bottom: 2.5rem;
}

.p-contact-form__name {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.p-contact-form__row {
	margin-bottom: 5.9rem;
}

.p-contact-form__value {
	display: block;
	background-clip: padding-box;
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid #333;
	border-radius: 0.1rem;
	font-weight: 400;
	min-height: 11rem;
}

.p-contact-form__value.--message {
	min-height: 53.2rem;
}

.p-contact-form__txt {
	margin-top: 12rem;
	line-height: 1.5625;
	margin-bottom: 10rem;
}

.p-contact-form__txt a {
	text-decoration: underline;
}

.p-contact-form__check {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.p-contact-form__check input {
	aspect-ratio: 1;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: 1px solid #333;
	border-radius: 2px;
	position: relative;
	cursor: pointer;
	width: 5.9rem;
	margin-right: 2.3rem;
}

.p-contact-form__check input:checked::after {
	content: "";
	position: absolute;
	border: solid #000;
	border-width: 0 0.2rem 0.2rem 0;
	transform: rotate(45deg);
	top: calc(50% - 2.2rem);
	left: calc(50% - 0.7rem);
	width: 1.6rem;
	height: 3rem;
}

.p-contact-form__btn {
	display: flex;
	justify-content: center;
	margin-top: 17.5rem;
	margin-bottom: 9rem;
}

.p-contact-form__btn.--confirm {
	justify-content: space-between;
}

.p-contact-form textarea {
	height: 25rem;
}

.p-contact-form .required {
	display: inline-block;
	text-align: center;
	background-color: #F44336;
	color: #fff;
	min-width: 6.8rem;
	font-size: 2rem;
	padding: 0.2rem 0.6rem;
	border-radius: 0.4rem;
}

.p-contact-form .error {
	color: #F44336;
	font-size: 1.2rem;
}

@media (min-width: 768px) {

.p-contact main {
	padding-top: 8.5rem;
}

.p-contact__wrap {
	max-width: 89.5rem;
}

.p-contact__ttl {
	font-size: 3.5rem;
	margin-bottom: 4.3rem;
}

.p-contact__txt {
	font-size: 1.6rem;
	line-height: 1.5625;
	margin-bottom: 4.5rem;
}

.p-contact__sub {
	text-align: center;
	font-weight: bold;
	font-size: 2rem;
}

.p-contact__box {
	font-size: 2rem;
	min-height: 14rem;
}

.p-contact-head {
	gap: 0.7rem;
	font-size: 1.6rem;
	margin-bottom: 7rem;
}

.p-contact-head__item {
	clip-path: polygon(0 0, calc(100% - 1.8rem) 0, 100% 50%, calc(100% - 1.8rem) 100%, 0 100%);
	padding: 1.2rem 3rem 1.2rem 2rem;
}

.p-contact-head__item.is-active {
	background-color: #333;
}

.p-contact-form {
	max-width: 60rem;
	margin: 0 auto;
}

.p-contact-form__ttl {
	margin-bottom: 1.3rem;
}

.p-contact-form__name {
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.p-contact-form__row {
	margin-bottom: 2.4rem;
}

.p-contact-form__value {
	min-height: 4.3rem;
}

.p-contact-form__txt {
	margin-top: 6rem;
	margin-bottom: 2rem;
}

.p-contact-form__check input {
	width: 2.8rem;
	margin-right: 1rem;
}

.p-contact-form__check input:checked::after {
	top: 0.2rem;
	left: 0.8rem;
	width: 0.8rem;
	height: 1.5rem;
}

.p-contact-form__btn {
	margin-top: 7.5rem;
	margin-bottom: 15rem;
}

.p-contact-form .required {
	min-width: 3.4rem;
	font-size: 1.2rem;
	padding: 0.2rem 0.6rem;
	border-radius: 0.2rem;
}

}

@media (max-width: 767px) {

.p-contact-form__ttl:not(:first-child) {
	margin-top: 5.9rem;
}

.p-contact-form__value {
	font-size: 3rem;
}

.p-contact-form__btn.--confirm {
	flex-direction: column;
	align-items: center;
	gap: 17.2rem;
}

.p-contact-form__btn.--confirm .btn {
	width: 28.4rem;
}

}

