/* =============================================
   視察受け入れのご案内
   ============================================= */

.p-visit-page {
	background: var(--c-white);
	color: var(--c-wood);
}

.p-visit-page,
.p-visit-page * {
	letter-spacing: 0;
}

.p-visit-page p {
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	line-height: 1.9;
}

.p-visit-section {
	padding: 88px 24px;
}

.p-visit-section__inner {
	width: min(1080px, 100%);
	margin: 0 auto;
}

.p-visit-heading {
	display: grid;
	gap: 12px;
}

.p-visit-heading--center {
	justify-items: center;
	text-align: center;
}

.p-visit-heading__en {
	margin: 0;
	color: #91664c;
	font-family: var(--f-display);
	font-size: 14px !important;
	font-weight: 700;
	line-height: 1.4 !important;
	text-transform: uppercase;
}

.p-visit-heading h2 {
	margin: 0;
	color: var(--c-wood);
	font-family: var(--f-sans);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.45;
}

.p-visit-heading > p:last-child {
	max-width: 680px;
	margin: 4px 0 0;
}

/* Hero */
.p-visit-hero {
	position: relative;
	min-height: 560px;
	display: grid;
	align-items: center;
	overflow: hidden;
	background: var(--c-wood);
}

.p-visit-hero__media,
.p-visit-hero__media img,
.p-visit-hero__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.p-visit-hero__media img {
	display: block;
	object-fit: cover;
	object-position: center;
}

.p-visit-hero__overlay {
	background: rgba(47, 36, 29, 0.58);
}

.p-visit-hero__inner {
	position: relative;
	z-index: 1;
	width: min(1080px, 100%);
	padding: 104px 40px 80px;
	color: var(--c-white);
}

.p-visit-hero__eyebrow {
	display: inline-flex;
	width: fit-content;
	margin: 0 0 18px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 4px;
	font-size: 14px !important;
	font-weight: 700;
	line-height: 1.5 !important;
}

.p-visit-hero__title {
	margin: 0 0 18px;
	color: var(--c-white);
	font-family: var(--f-sans);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.3;
}

.p-visit-hero__copy {
	margin: 0 0 24px;
	font-size: 28px !important;
	font-weight: 700;
	line-height: 1.55 !important;
}

.p-visit-hero__text {
	max-width: 650px;
	margin: 0;
	font-size: 16px !important;
	line-height: 1.95 !important;
}

/* Intro */
.p-visit-intro {
	background: var(--c-white);
}

.p-visit-intro__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 72px;
	align-items: start;
}

.p-visit-intro__body {
	display: grid;
	gap: 18px;
}

.p-visit-intro__body p {
	margin: 0;
}

.p-visit-intro__summary {
	padding: 16px 20px;
	border-radius: 12px;
	background: var(--c-base);
	font-weight: 700;
}

/* Themes */
.p-visit-themes {
	background: var(--c-base);
}

.p-visit-themes__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 48px;
}

.p-visit-theme-card {
	position: relative;
	min-width: 0;
	margin-top: 20px;
	padding: 38px 28px 28px;
	border: 0;
	border-radius: 8px;
	background: var(--c-white);
}

.p-visit-theme-card__meta {
	position: absolute;
	top: -25px;
	left: -12px;
	display: block;
	color: var(--c-mustard);
}

.p-visit-theme-card:nth-child(2) .p-visit-theme-card__meta {
	color: var(--c-accent-5);
}

.p-visit-theme-card:nth-child(3) .p-visit-theme-card__meta {
	color: var(--c-accent-3);
}

.p-visit-theme-card:nth-child(4) .p-visit-theme-card__meta {
	color: var(--c-matcha);
}

.p-visit-theme-card__meta span {
	font-family: var(--f-display);
	font-size: 52px;
	font-weight: 700;
	line-height: 1;
}

.p-visit-theme-card h3 {
	margin: 0 0 12px;
	font-family: var(--f-sans);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.55;
}

.p-visit-theme-card p {
	margin: 0;
	font-size: 16px;
}

/* Targets */
.p-visit-target {
	background: var(--c-white);
}

.p-visit-target__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 72px;
	align-items: start;
}

.p-visit-target__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-visit-target__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	padding: 10px 4px;
	border: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.7;
}

.p-visit-target__list iconify-icon {
	margin-top: 4px;
	color: var(--c-mustard);
	flex: 0 0 auto;
}

.p-visit-target__note {
	margin: 28px 0 0;
	padding: 18px 20px;
	border-left: 4px solid var(--c-accent-2);
	background: var(--c-base);
}

/* Information */
.p-visit-info {
	background: var(--c-base);
}

.p-visit-info__layout {
	display: grid;
	grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
	gap: 72px;
	align-items: start;
	width: min(780px, 100%);
	margin: 44px auto 0;
}

.p-visit-info__grid {
	display: block;
	margin: 0;
	padding: 18px 20px;
	border-radius: 8px;
	background: var(--c-white);
}

.p-visit-info__grid > div {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	min-width: 0;
	padding: 14px 0;
	border-bottom: 1px dashed rgba(56, 39, 16, 0.25);
}

.p-visit-info__grid > div:last-child {
	border-bottom: 0;
}

.p-visit-info__grid dt {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 0;
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
}

.p-visit-info__grid dt::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-accent-2);
	content: "";
	flex: 0 0 8px;
}

.p-visit-info__grid > div:nth-child(2) dt::before {
	background: var(--c-accent-1);
}

.p-visit-info__grid > div:nth-child(3) dt::before {
	background: var(--c-accent-3);
}

.p-visit-info__grid > div:nth-child(4) dt::before {
	background: var(--c-accent-4);
}

.p-visit-info__grid > div:nth-child(5) dt::before {
	background: var(--c-accent-5);
}

.p-visit-info__grid dd {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 5px;
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.65;
	text-align: left;
}

.p-visit-info__grid strong {
	font-size: 20px;
}

.p-visit-info__grid small {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.55;
}

.p-visit-info__details {
	display: grid;
	gap: 24px;
}

.p-visit-info-detail {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	margin: 0 !important;
	padding: 0;
}

.p-visit-info-detail__icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--c-accent-2);
	flex: 0 0 auto;
}

.p-visit-info-detail h3 {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.55;
}

.p-visit-info-detail p {
	margin: 0;
}

.p-visit-info-detail__note {
	margin-top: 14px !important;
	font-size: 14px !important;
}

.p-visit-info-detail__note--strong {
	font-weight: 700;
}

.p-visit-info-detail__list {
	display: grid;
	gap: 7px;
	margin: 14px 0 0;
	padding: 16px 18px 16px 34px;
	border-radius: 8px;
	background: var(--c-white);
	font-size: 14px;
	line-height: 1.8;
}

/* Flow */
.p-visit-flow {
	background: var(--c-white);
}

.p-visit-flow__list {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	width: min(820px, 100%);
	margin: 44px auto 0;
	padding: 0;
	list-style: none;
}

.p-visit-flow__list::before {
	position: absolute;
	top: 31px;
	bottom: 31px;
	left: 30px;
	width: 2px;
	background: rgba(56, 39, 16, 0.2);
	content: "";
}

.p-visit-flow__list li {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	min-width: 0;
	padding: 0 0 42px;
	text-align: left;
}

.p-visit-flow__list li:last-child {
	padding-bottom: 0;
}

.p-visit-flow__number {
	width: 62px;
	height: 62px;
	display: grid;
	place-content: center;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: var(--c-accent-2);
	color: var(--c-black);
	font-family: var(--f-display);
	font-size: 27px;
	font-weight: 700;
	line-height: 1;
}

.p-visit-flow__number span {
	display: none;
}

.p-visit-flow__list li:nth-child(2) .p-visit-flow__number {
	background: var(--c-accent-1);
}

.p-visit-flow__list li:nth-child(3) .p-visit-flow__number {
	background: var(--c-accent-3);
}

.p-visit-flow__list li:nth-child(4) .p-visit-flow__number {
	background: var(--c-accent-4);
}

.p-visit-flow h3 {
	margin: 1px 0 8px;
	font-size: 20px;
	line-height: 1.55;
}

.p-visit-flow p {
	margin: 0;
	font-size: 16px;
}

/* FAQ */
.p-visit-faq {
	background: var(--c-base);
}

.p-visit-faq__list {
	width: min(840px, 100%);
	margin: 40px auto 0;
	border-bottom: 1px solid rgba(74, 59, 50, 0.18);
}

.p-visit-faq__item {
	border-top: 1px solid rgba(74, 59, 50, 0.18);
}

.p-visit-faq__item summary {
	min-height: 72px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 18px 8px;
	cursor: pointer;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.65;
	list-style: none;
}

.p-visit-faq__item summary::-webkit-details-marker {
	display: none;
}

.p-visit-faq__item summary:focus-visible {
	outline: 3px solid rgba(131, 172, 202, 0.55);
	outline-offset: 3px;
}

.p-visit-faq__item summary iconify-icon {
	transition: transform 0.2s ease;
}

.p-visit-faq__item[open] summary iconify-icon {
	transform: rotate(45deg);
}

.p-visit-faq__label {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--c-accent-3);
	color: var(--c-white);
	font-family: var(--f-display);
	font-weight: 700;
}

.p-visit-faq__label--answer {
	background: var(--c-accent-4);
	color: var(--c-wood);
}

.p-visit-faq__answer {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 16px;
	padding: 4px 8px 24px;
	overflow: hidden;
}

.p-visit-faq__answer p {
	margin: 0;
}

/* 視察ページのスマホ用下部CTA。右側CTAを閉じたあとだけJSで表示する。 */
.p-visit-mobile-bottom-cta {
	display: none;
}

@media (min-width: 1025px) and (max-width: 1599px) {
	.p-visit-hero__inner {
		padding-left: clamp(104px, 10vw, 144px);
	}
}

@media (max-width: 1024px) {
	.p-visit-hero {
		min-height: 540px;
	}

	.p-visit-hero__inner {
		padding-top: 132px;
	}

	.p-visit-info__layout {
		grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
		gap: 44px;
	}

}

@media (max-width: 767px) {
	.p-visit-fixed-cta-wrap--visit-page {
		display: none !important;
	}

	.p-visit-page p {
		font-size: 15px;
	}

	.p-visit-section {
		padding: 58px 18px;
	}

	.p-visit-heading h2 {
		font-size: 27px;
	}

	.p-visit-hero {
		min-height: 620px;
	}

	.p-visit-hero__media img {
		object-position: center;
	}

	.p-visit-hero__overlay {
		background: rgba(47, 36, 29, 0.66);
	}

	.p-visit-hero__inner {
		padding: 138px 20px 58px;
	}

	.p-visit-hero__eyebrow {
		font-size: 12px !important;
	}

	.p-visit-hero__title {
		font-size: 31px;
	}

	.p-visit-hero__copy {
		font-size: 24px !important;
	}

	.p-visit-hero__text {
		font-size: 15px !important;
	}

	.p-visit-hero__text br {
		display: none;
	}

	.p-visit-intro__inner,
	.p-visit-target__layout {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.p-visit-themes__grid {
		grid-template-columns: 1fr;
	}

	.p-visit-themes__grid {
		margin-top: 32px;
	}

	.p-visit-theme-card {
		margin-top: 18px;
		padding: 34px 20px 22px;
	}

	.p-visit-theme-card h3 {
		font-size: 19px;
	}

	.p-visit-theme-card__meta span {
		font-size: 44px;
	}

	.p-visit-target__list li {
		padding-inline: 4px;
	}

	.p-visit-info__layout {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-top: 32px;
	}

	.p-visit-info__grid {
		padding: 12px 18px;
	}

	.p-visit-info__grid dd {
		padding: 0;
	}

	.p-visit-info-detail {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 14px;
	}

	.p-visit-info-detail__icon {
		width: 44px;
		height: 44px;
	}

	.p-visit-info-detail h3 {
		font-size: 19px;
	}

	.p-visit-flow__list {
		margin-top: 32px;
	}

	.p-visit-flow__list li {
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 16px;
		padding-bottom: 34px;
	}

	.p-visit-flow__list::before {
		top: 26px;
		bottom: 26px;
		left: 25px;
	}

	.p-visit-flow__number {
		width: 52px;
		height: 52px;
		font-size: 23px;
	}

	.p-visit-flow h3 {
		margin-top: 0;
		font-size: 18px;
	}

	.p-visit-faq__item summary {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 10px;
		padding: 16px 0;
		font-size: 16px;
	}

	.p-visit-faq__answer {
		gap: 10px;
		padding-inline: 0;
	}

	.p-visit-faq__label {
		width: 32px;
		height: 32px;
	}

	.p-visit-mobile-bottom-cta {
		position: fixed;
		right: 14px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		left: 14px;
		z-index: 89;
		display: grid;
		grid-template-columns: 36px minmax(0, 1fr) 20px;
		gap: 10px;
		align-items: center;
		min-height: 58px;
		padding: 8px 14px 8px 10px;
		border: 2px solid var(--c-accent-2);
		border-radius: 999px;
		background: var(--c-accent-2);
		color: var(--c-wood);
		box-shadow: 0 5px 16px rgba(56, 39, 16, 0.2);
		font-family: var(--f-sans);
		font-size: 15px;
		font-weight: 700;
		line-height: 1.45;
		text-align: center;
		text-decoration: none;
		opacity: 0;
		pointer-events: none;
		transform: translateY(calc(100% + 28px));
		transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.2s ease;
	}

	.p-visit-mobile-bottom-cta[hidden] {
		display: none !important;
	}

	.p-visit-mobile-bottom-cta.is-visible {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.p-visit-mobile-bottom-cta:active {
		background: var(--c-white);
	}

	.p-visit-mobile-bottom-cta:focus-visible {
		outline: 3px solid rgba(131, 172, 202, 0.65);
		outline-offset: 3px;
	}

	.p-visit-mobile-bottom-cta__icon {
		width: 36px;
		height: 36px;
		display: grid;
		place-items: center;
		border-radius: 50%;
		background: var(--c-white);
	}

	.p-visit-mobile-bottom-cta__arrow {
		justify-self: end;
	}

	body.has-visit-mobile-bottom-cta .p-fixBtnWrap {
		bottom: calc(var(--visit-mobile-bottom-cta-offset, 88px) + env(safe-area-inset-bottom)) !important;
		transition: bottom 0.22s ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	.p-visit-mobile-bottom-cta {
		transition: none;
	}
}

@media (max-width: 374px) {
	.p-visit-section {
		padding-inline: 14px;
	}

	.p-visit-hero__inner {
		padding-inline: 16px;
	}

	.p-visit-hero__title {
		font-size: 28px;
	}

	.p-visit-hero__copy {
		font-size: 22px !important;
	}

	.p-visit-info-detail {
		gap: 12px;
	}

	.p-visit-info__grid > div {
		grid-template-columns: 84px minmax(0, 1fr);
	}
}
