/* ===== 会社情報・お問い合わせ ===== */

/* MV(写真・白ぼかし・装飾の位置が about と違うので上書き) */
/* 写真: 1440px幅で左78px。それより広い画面では右端に合わせる */
.page-mv--company::before {
	top: -488px;
	left: max(calc(50% - 642px), calc(100% - 1362px));
	width: 1362px;
	height: 902px;
	background-image: url(../images/company/mv-photo.webp);
}
.page-mv--company .page-mv__bg::before {
	top: -57px;
	left: calc(50% - 858px);
}
.page-mv--company .page-mv__bg::after {
	top: -377px;
	left: -120px;
	background-image: url(../images/company/mv-overlay.webp);
}
.page-mv--company .page-mv__inner { padding-top: 137px; }

/* 会社概要 */
.company-profile {
	padding-bottom: 91px;
	background: var(--c-brown-light);
}
.company-profile__list {
	display: grid;
	row-gap: 25px;
	width: min(1004px, 100% - 40px);
	margin-inline: auto;
}
.company-profile__row {
	display: flex;
	align-items: flex-start;
	column-gap: 25px;
}
.company-profile__label {
	position: relative;
	flex: none;
	width: 95px;
	padding-bottom: 6px;
	color: var(--c-pink-dark);
	font-weight: 700;
	line-height: 28px;
	text-align: center;
}
.company-profile__label::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 2px;
	width: 93px;
	height: 4px;
	background: linear-gradient(var(--c-pink-border), #f0e1cb);
}
.company-profile__value {
	flex: 1;
	min-width: 0;
	line-height: 32px;
}

/* アクセス */
.company-access {
	position: relative;
	padding-bottom: 63px;
	overflow: hidden;
	isolation: isolate;
	background: #fff9fb;
}
.company-access::before,
.company-access::after {
	content: "";
	position: absolute;
	top: 0;
	z-index: -1;
	height: 1258px;
	background-repeat: no-repeat;
}
.company-access::before {
	left: calc(50% - 537.65px);
	width: 1779.35px;
	background-image: url(../images/company/access-bg.webp);
	background-size: 100% 100%;
}
/* 左右のぼかし2枚(1440px幅で左-190px〜1091px) */
.company-access::after {
	left: calc(50% - 910px);
	width: 1281.6px;
	background-image:
		linear-gradient(264.29deg, #fff9fb 54.124%, rgba(255, 255, 255, 0) 91.222%),
		linear-gradient(95.7deg, #fff9fb 54.124%, rgba(255, 255, 255, 0) 91.222%);
	background-position: 0 0, 520.24px 0;
	background-size: 762.66px 100%, 761.35px 100%;
}
.company-access__map {
	display: block;
	width: min(1000px, 100% - 40px);
	height: auto;
	margin-inline: auto;
	border-radius: 10px;
	aspect-ratio: 1000 / 410;
	object-fit: fill;
}
.company-access__list {
	display: flex;
	justify-content: center;
	column-gap: 70px;
	width: min(823px, 100% - 40px);
	margin: 54px auto 0;
}
.company-access__item {
	display: grid;
	grid-template-columns: 65px auto;
	align-items: center;
	column-gap: 15px;
	line-height: 32px;
	white-space: nowrap;
}
.company-access__item::before {
	content: "";
	grid-row: 1 / 3;
	width: 65px;
	height: 65px;
	background: url(../images/company/icon-car.svg) 0 0 / 100% 100% no-repeat;
}
.company-access__item--train::before { background-image: url(../images/company/icon-train.svg); }
.company-access__label { grid-column: 2; color: var(--c-red); }
.company-access__text { grid-column: 2; }

/* お問い合わせ */
.company-contact { padding-bottom: 62px; }
.company-contact__form {
	width: min(1004px, 100% - 40px);
	margin: -4px auto 0;
}
.company-contact .cf-type {
	min-width: 0;
	margin: 0 0 0 2px;
	padding: 0;
	border: 0;
}
.company-contact .cf-type__legend {
	padding: 0 0 0 1px;
	line-height: 32px;
}
.company-contact .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 11px;
}
.company-contact .wpcf7-list-item { margin: 0; }
.company-contact .wpcf7-list-item label {
	position: relative;
	display: block;
	cursor: pointer;
}
.company-contact .wpcf7-list-item input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.company-contact .wpcf7-list-item-label {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 131px;
	height: 47px;
	border: 2px solid var(--c-pink);
	border-radius: 5px;
	background: #fff;
	color: var(--c-pink-dark);
	font-weight: 700;
	line-height: 28px;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.company-contact .wpcf7-list-item label:hover .wpcf7-list-item-label { background: var(--c-pink-light); }
.company-contact .wpcf7-list-item input:checked + .wpcf7-list-item-label {
	background: var(--c-pink-dark);
	color: #fff;
}
.company-contact .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label {
	outline: 3px solid #1a73e8;
	outline-offset: 2px;
}

.company-contact .cf-rows {
	display: grid;
	row-gap: 30px;
	margin-top: 52px;
}
.company-contact .cf-row {
	display: grid;
	grid-template-columns: 234px 1fr;
	column-gap: 20px;
	align-items: start;
}
.company-contact .cf-row__label {
	display: flex;
	align-items: flex-start;
	column-gap: 20px;
	padding-top: 10px;
}
.company-contact .cf-row__name {
	position: relative;
	flex: none;
	width: 144px;
	padding-right: 6px;
	color: var(--c-brown);
	font-weight: 700;
	line-height: 28px;
	text-align: center;
	white-space: nowrap;
}
.company-contact .cf-row__name::after {
	content: "";
	position: absolute;
	top: 30.5px;
	left: 2px;
	width: 142px;
	height: 4px;
	background: linear-gradient(var(--c-pink-border), #f0e1cb);
}
.company-contact .cf-row__req {
	flex: none;
	width: 70px;
	margin-top: 3.5px;
	border-radius: 5px;
	background: var(--c-red);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
}
.company-contact .wpcf7-form-control-wrap { display: block; }
.company-contact input[type="text"],
.company-contact input[type="email"],
.company-contact textarea {
	display: block;
	width: 100%;
	height: 55px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--c-brown-line);
	border-radius: 0;
	background: #fff;
	color: var(--c-text);
	font: inherit;
	line-height: 1.8;
}
.company-contact textarea {
	min-height: 55px;
	resize: vertical;
}
.company-contact .wpcf7-not-valid { border-color: var(--c-red); }
.company-contact .wpcf7-not-valid-tip {
	margin-top: 4px;
	color: var(--c-red);
	font-size: 14px;
	line-height: 1.6;
}

.company-contact .cf-submit {
	position: relative;
	margin-top: 43px;
	text-align: center;
}
.company-contact input[type="submit"] {
	width: 182px;
	height: 58px;
	margin: 0;
	padding: 0 0 0 39px;
	border: 1px solid #fff;
	border-radius: 5px;
	background:
		url(../images/company/icon-arrow.svg) right 19px center / 24px 24px no-repeat,
		linear-gradient(#ad8838, #d5ba8e);
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
	color: #fff;
	font: 700 16px/28px var(--f-sans);
	text-align: left;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: opacity .2s;
}
.company-contact input[type="submit"]:hover { opacity: .85; }
.company-contact input[type="submit"]:disabled { opacity: .6; cursor: default; }
.company-contact .cf-submit .wpcf7-spinner {
	position: absolute;
	top: 17px;
	margin: 0 0 0 16px;
}
.company-contact .wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 8px 16px;
	line-height: 1.8;
}
.company-contact__note {
	width: min(1004px, 100% - 40px);
	margin: 14px auto 0;
	text-align: center;
}

/* ===== タブレット ===== */
@media (max-width: 899px) {
	.company-access__list {
		flex-direction: column;
		align-items: flex-start;
		row-gap: 24px;
		width: min(560px, 100% - 40px);
	}
	.company-access__item { white-space: normal; }
	.company-contact .cf-row { grid-template-columns: 1fr; row-gap: 10px; }
	.company-contact .cf-row__label { padding-top: 0; }
}

/* ===== スマホ ===== */
@media (max-width: 767px) {
	.page-mv--company::before { top: -200px; left: auto; right: -260px; width: 755px; height: 500px; }
	.page-mv--company .page-mv__bg::before { top: 0; left: -78px; }
	.page-mv--company .page-mv__bg::after { top: -200px; left: -60px; }
	.page-mv--company .page-mv__inner { padding-top: 90px; }

	.company-profile { padding-bottom: 56px; }
	.company-profile__list { row-gap: 18px; }
	.company-profile__row { column-gap: 16px; }
	.company-profile__label { width: 88px; }
	.company-profile__label::after { left: 0; width: 88px; }
	.company-profile__value { line-height: 1.8; padding-top: 1px; }

	.company-access { padding-bottom: 48px; }
	.company-access::before { content: none; }
	.company-access::after { content: none; }
	.company-access__item { grid-template-columns: 52px 1fr; column-gap: 12px; line-height: 1.8; }
	.company-access__item::before { width: 52px; height: 52px; }

	.company-contact { padding-bottom: 48px; }
	.company-contact .wpcf7-radio {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}
	.company-contact .wpcf7-list-item-label { width: 100%; }
	.company-contact .cf-rows { row-gap: 24px; margin-top: 36px; }
	.company-contact__note { text-align: left; }
}


@media (min-width: 1750px) {
	.page-mv--company .page-mv__bg::before {
		left: 13%;
	}
}

@media (min-width: 1850px) {
	.page-mv--company .page-mv__bg::before {
		left: 17%;
	}
}