/* サイト全体の共通スタイル */

html {
	scrollbar-gutter: stable;
}

/* ==================================================
   Standard page Hero
================================================== */

.mast-page-hero,
.mast-page-hero * {
	box-sizing: border-box;
}

.mast-page-hero {
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: #fff;
}

.mast-page-hero__inner {
	width: min(calc(100% - 48px), 1110px);
	margin: 0 auto;
	padding: 80px 0 88px;
}

.mast-page-hero__layout {
	width: min(100%, 960px);
	margin: 0 auto;
	padding: 0;
}

.mast-page-hero__content {
	min-width: 0;
	margin: 0;
	padding: 0;
}

.mast-page-hero__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #111;
	font-family: inherit;
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.mast-page-hero__title::before,
.mast-page-hero__title::after {
	display: none;
	content: none;
}

.mast-page-hero__subtitle {
	margin: 16px 0 0;
	padding: 0;
	color: #565d66;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.9;
	letter-spacing: 0.02em;
}

.mast-page-hero--brand .mast-page-hero__title {
	color: #0068b7;
}

.mast-page-hero--divided {
	border-bottom: 1px solid #edf0f2;
}

.mast-page-hero--with-icon .mast-page-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 112px;
	gap: 56px;
	align-items: center;
}

.mast-page-hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	margin: 0;
	padding: 0;
}

.mast-page-hero__icon {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
}

@media screen and (max-width: 1099px) {
	.mast-page-hero__inner {
		width: min(calc(100% - 40px), 1110px);
		padding: 72px 0 80px;
	}

	.mast-page-hero--with-icon .mast-page-hero__layout {
		grid-template-columns: minmax(0, 1fr) 104px;
		gap: 40px;
	}

	.mast-page-hero__visual {
		width: 104px;
	}
}

@media screen and (max-width: 767px) {
	.mast-page-hero__inner {
		width: 100%;
		padding: 56px 20px 64px;
	}

	.mast-page-hero__layout {
		width: min(100%, 440px);
	}

	.mast-page-hero__title {
		font-size: clamp(2rem, 9vw, 2.75rem);
		line-height: 1.14;
	}

	.mast-page-hero__subtitle {
		margin-top: 12px;
		font-size: 1rem;
		line-height: 1.85;
	}

	.mast-page-hero--with-icon .mast-page-hero__layout {
		grid-template-columns: minmax(0, 1fr) 80px;
		gap: 20px;
	}

	.mast-page-hero__visual {
		width: 80px;
	}
}

/* ==================================================
   Shared breadcrumb
================================================== */

.mast-breadcrumb,
.mast-breadcrumb * {
	box-sizing: border-box;
}

.mast-breadcrumb {
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: #fff;
	color: #6a727a;
}

.mast-breadcrumb__inner {
	width: min(calc(100% - 48px), 1110px);
	margin: 0 auto;
	padding: 20px 0 0;
}

.mast-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.02em;
	list-style: none;
}

.mast-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.mast-breadcrumb__item:not(:last-child)::after {
	color: #aab1b7;
	content: ">";
}

.mast-breadcrumb__link {
	color: #565d66;
	text-decoration: none;
}

.mast-breadcrumb__link:hover,
.mast-breadcrumb__link:focus-visible {
	color: #0068b7;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.mast-breadcrumb__link:focus-visible {
	outline: 2px solid #0068b7;
	outline-offset: 3px;
}

.mast-breadcrumb__item[aria-current="page"] {
	color: #7a828a;
	overflow-wrap: anywhere;
}

.mast-breadcrumb + .mast-page-hero .mast-page-hero__inner,
.mast-breadcrumb + * .mast-page-hero__inner,
.mast-breadcrumb + .mast-service-parent-page .mast-service-parent-hero__inner {
	padding-top: 48px;
}

.mast-breadcrumb + .mast-service-detail-hero .mast-service-detail-hero__inner {
	padding-top: 56px;
}

@media screen and (max-width: 1099px) {
	.mast-breadcrumb__inner {
		width: min(calc(100% - 40px), 1110px);
		padding-top: 16px;
	}

	.mast-breadcrumb + .mast-page-hero .mast-page-hero__inner,
	.mast-breadcrumb + * .mast-page-hero__inner,
	.mast-breadcrumb + .mast-service-parent-page .mast-service-parent-hero__inner,
	.mast-breadcrumb + .mast-service-detail-hero .mast-service-detail-hero__inner {
		padding-top: 32px;
	}
}

@media screen and (max-width: 767px) {
	.mast-breadcrumb__inner {
		width: 100%;
		padding: 12px 20px 0;
	}

	.mast-breadcrumb__list {
		gap: 4px 8px;
		font-size: 0.75rem;
	}

	.mast-breadcrumb__item {
		gap: 8px;
	}

	.mast-breadcrumb + .mast-page-hero .mast-page-hero__inner,
	.mast-breadcrumb + * .mast-page-hero__inner,
	.mast-breadcrumb + .mast-service-parent-page .mast-service-parent-hero__inner,
	.mast-breadcrumb + .mast-service-detail-hero .mast-service-detail-hero__inner {
		padding-top: 28px;
	}
}

/* ==================================================
   Shared next action
================================================== */

.mast-next-action,
.mast-next-action * {
	box-sizing: border-box;
}

.mast-next-action {
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: #fff;
	color: #3f4650;
}

.mast-next-action--service {
	border-top: 1px solid #edf0f2;
}

.mast-next-action__inner {
	width: min(calc(100% - 48px), 1110px);
	margin: 0 auto;
}

.mast-next-action--front .mast-next-action__inner {
	padding: 0 0 96px;
}

.mast-next-action--service .mast-next-action__inner {
	padding: 96px 0;
}

.mast-next-action__header {
	margin: 0;
	padding: 0;
	text-align: center;
}

.mast-next-action__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #111;
	font-family: inherit;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.025em;
}

.mast-next-action__title::before,
.mast-next-action__title::after {
	display: none;
	content: none;
}

.mast-next-action__title {
	font-size: clamp(2.75rem, 5vw, 4rem);
}

.mast-next-action__label {
	margin: 18px 0 0;
	padding: 0;
	color: #565d66;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.05em;
}

.mast-next-action__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
}

.mast-next-action--service .mast-next-action__cards {
	margin-top: 56px;
}

.mast-next-action__card {
	--mast-card-background: #f4f8fc;
	--mast-card-border: #dce8f2;
	--mast-card-button: #0068b7;
	--mast-card-button-hover: #004f8c;
	--mast-card-button-background: var(--mast-card-button);
	--mast-card-button-color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 28px 24px 24px;
	border: 1px solid var(--mast-card-border);
	border-radius: 2px;
	background-color: var(--mast-card-background);
	box-shadow: none;
	text-align: center;
}

.mast-next-action__card--line {
	--mast-card-background: #f3faf6;
	--mast-card-border: #dcece2;
	--mast-card-button: #058a3a;
	--mast-card-button-hover: #047735;
}

.mast-next-action__card--diagnosis {
	--mast-card-background: #f3f9fb;
	--mast-card-border: #dbeaf0;
	--mast-card-button: #087ea4;
	--mast-card-button-hover: #066887;
}

.mast-next-action__card-title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #20262d;
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.03em;
}

.mast-next-action__card-title::before,
.mast-next-action__card-title::after {
	display: none;
	content: none;
}

.mast-next-action__card-description {
	margin: 12px 0 24px;
	padding: 0;
	color: #606973;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: 0.02em;
}

.mast-next-action__card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 190px);
	min-height: 46px;
	margin: auto 0 0;
	padding: 10px 18px;
	border: 1px solid var(--mast-card-button);
	border-radius: 0;
	background-color: var(--mast-card-button-background);
	color: var(--mast-card-button-color);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mast-next-action__card-button:hover,
.mast-next-action__card-button:focus-visible {
	border-color: var(--mast-card-button-hover);
	background-color: var(--mast-card-button-hover);
	color: #fff;
	text-decoration: none;
}

.mast-next-action__card-button:focus-visible {
	outline: 2px solid var(--mast-card-button);
	outline-offset: 3px;
}

@media screen and (max-width: 1099px) {
	.mast-next-action__inner {
		width: min(calc(100% - 40px), 1110px);
	}

	.mast-next-action--front .mast-next-action__inner {
		padding-bottom: 80px;
	}

	.mast-next-action--service .mast-next-action__inner {
		padding: 88px 0;
	}

	.mast-next-action__cards {
		gap: 16px;
	}

	.mast-next-action__card {
		padding: 24px 20px 20px;
	}

	.mast-next-action__card-button {
		width: min(100%, 180px);
		font-size: 0.875rem;
	}
}

@media screen and (max-width: 767px) {
	.mast-next-action__inner {
		width: 100%;
	}

	.mast-next-action--front .mast-next-action__inner {
		padding: 0 20px 72px;
	}

	.mast-next-action--service .mast-next-action__inner {
		padding: 72px 20px;
	}

	.mast-next-action__title {
		font-size: clamp(2.5rem, 13vw, 3.25rem);
	}

	.mast-next-action__label {
		margin-top: 14px;
	}

	.mast-next-action__cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mast-next-action--service .mast-next-action__cards {
		margin-top: 40px;
	}

	.mast-next-action__card {
		padding: 24px 20px 20px;
	}

	.mast-next-action__card-button {
		width: 75%;
		max-width: 240px;
		font-size: 0.9375rem;
	}
}

/* ==================================================
   Floating LINE CTA
================================================== */

.mast-floating-line-cta,
.mast-floating-line-cta * {
	box-sizing: border-box;
}

.mast-floating-line-cta {
	position: fixed;
	right: max(24px, calc((100vw - 1110px) / 2));
	bottom: 28px;
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin: 0;
	padding: 3px 6px;
	border: 0;
	border-radius: 14px;
	background-color: #06c755;
	box-shadow: 0 4px 14px rgba(18, 29, 38, 0.18);
	color: #fff;
	font-family: inherit;
	text-align: center;
	text-decoration: none;
	opacity: 1;
	visibility: visible;
	transition: background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, visibility 0s linear;
}

.mast-floating-line-cta:hover,
.mast-floating-line-cta:focus-visible {
	background-color: #05b94f;
	box-shadow: 0 5px 16px rgba(18, 29, 38, 0.22);
	color: #fff;
	text-decoration: none;
}

.mast-floating-line-cta:focus-visible {
	outline: 2px solid #0068b7;
	outline-offset: 3px;
}

.mast-floating-line-cta__icon {
	position: relative;
	top: -3px;
	display: block;
	flex: 0 0 auto;
	width: 62px;
	height: auto;
}

.mast-floating-line-cta__label {
	position: relative;
	top: -3px;
	color: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0;
}

.mast-floating-line-cta__label-line {
	display: block;
	white-space: nowrap;
}

.mast-floating-line-cta.is-footer-visible {
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, visibility 0s linear 180ms;
}

@media screen and (max-width: 1099px) {
	.mast-floating-line-cta {
		right: 20px;
		bottom: 24px;
		width: 80px;
		height: 80px;
		padding: 3px 5px;
	}

	.mast-floating-line-cta__icon {
		width: 56px;
	}

	.mast-floating-line-cta__label {
		font-size: 0.6875rem;
	}
}

@media screen and (max-width: 767px) {
	.mast-floating-line-cta {
		right: 20px;
		bottom: 20px;
		gap: 1px;
		width: 72px;
		height: 72px;
		padding: 4px;
	}

	.mast-floating-line-cta__icon {
		width: 48px;
	}

	.mast-floating-line-cta__label {
		font-size: 0.65625rem;
		line-height: 1.1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mast-floating-line-cta,
	.mast-floating-line-cta.is-footer-visible {
		transition: none;
	}
}

@media screen and (max-width: 359px) {
	.mast-page-hero--with-icon .mast-page-hero__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.mast-page-hero__visual {
		justify-self: end;
		width: 64px;
	}
}
