/**
 * 固定ページ: therapist02 専用スタイル
 * page-therapist02.php で読み込み
 * tokens は functions.php で先に読み込み済み
 */
body {
	padding: 0 !important;
}

/* 1440px未満: 左右 1.5em / 1440px以上: 左右トータル80px */
.page-therapist02 {
	padding: 0 0 80px;
	margin-top: -16px;
}
.page-therapist02 .container {
	max-width: 1280px;
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--container-padding-x);
}

@media (max-width: 768px) {
	.page-therapist02 .container {
		max-width: 1280px;
		width: 100%;
		padding: 0 16px;
	}
}

/* KVセクション */
.page-therapist02 .kv-section {
	width: 100%;
	position: relative;
}
.page-therapist02 .kv-image {
	width: 100%;
	line-height: 0;
}
.page-therapist02 .kv-image img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: bottom;
}
@media (max-width: 1440px) {
	.page-therapist02 .kv-image {
		height: 270px;
		overflow: hidden;
	}
	.page-therapist02 .kv-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}
}
@media (max-width: 768px) {
	.page-therapist02 .kv-image {
		height: 160px;
	}
}
/* 昼間課程・夜間課程と同じ余白・レイアウト */
.page-therapist02 .kv-text {
	margin: 0;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	padding: 0 4.8125rem;
	box-sizing: border-box;
}
.page-therapist02 .kv-title {
	margin: 0;
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-bold);
	line-height: 1.4;
	color: var(--color-black);
}

/* タイトル内：3行（1-7 / 8-15 / 16-28）、1440px以上は最大、1440px〜768pxで緩やかに縮小、768px以下は32px */
.page-therapist02 .kv-title-inner {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: fit-content;
	max-width: 100%;
}

.page-therapist02 .kv-title-row {
	display: flex;
	align-items: center;
	gap: 4px;
}
.page-therapist02 .kv-title-row:nth-child(3) {
	margin-top: 16px;
}

.page-therapist02 .kv-title-inner .title-contact-text {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.page-therapist02 .kv-title-inner .mask-text {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: bottom;
}

@media (max-width: 1440px) and (min-width: 769px) {
	.page-therapist02 .kv-title-inner {
		width: 100%;
		max-width: 50vw;
	}

	.page-therapist02 .kv-title-row {
		height: calc(2.5rem * (0.46 + 54vw / 1440));
	}

	.page-therapist02 .kv-title-inner .title-contact-text {
		display: flex;
		align-items: center;
		height: 100%;
		min-height: 0;
		min-width: 0;
	}

	/* 1行目: 7文字 */
	.page-therapist02 .kv-title-row:nth-child(1) .title-contact-text {
		max-width: calc((100% - 4px * 6) / 7);
	}

	/* 2行目: 8文字 */
	.page-therapist02 .kv-title-row:nth-child(2) .title-contact-text {
		max-width: calc((100% - 4px * 7) / 8);
	}

	/* 3行目: 6文字（16-21） */
	.page-therapist02 .kv-title-row:nth-child(3) .title-contact-text {
		max-width: calc((100% - 4px * 5) / 6);
	}

	.page-therapist02 .kv-title-inner .mask-text {
		height: 100%;
		width: auto;
		max-width: 100%;
		object-fit: contain;
		display: block;
	}
}

@media (max-width: 768px) {
	.page-therapist02 .kv-text {
		height: auto;
		padding: 2.1875rem var(--container-padding-x-sp);
		box-sizing: border-box;
	}

	.page-therapist02 .kv-title-inner {
		width: fit-content;
		max-width: 100%;
	}

	.page-therapist02 .kv-title-row {
		height: 32px;
		width: fit-content;
	}

	/* 3行目は高さ16px・6文字（16-21）セル幅24px */
	.page-therapist02 .kv-title-row:nth-child(3) {
		height: 16px;
		margin-top: 8px;
	}
	.page-therapist02 .kv-title-row:nth-child(3) .title-contact-text {
		flex: 0 0 16px;
		width: 16px;
		height: 16px;
		min-width: 0;
	}
	/* 16.svg・21.svg（3行目の1番目と6番目）は幅4pxに */
	.page-therapist02 .kv-title-row:nth-child(3) .title-contact-text:nth-child(1),
	.page-therapist02 .kv-title-row:nth-child(3) .title-contact-text:nth-child(6) {
		flex: 0 0 4px;
		width: 4px;
	}

	/* 1・2行目：セル幅24px */
	.page-therapist02 .kv-title-row:nth-child(1) .title-contact-text {
		flex: 0 0 24px;
		width: 24px;
		height: 32px;
		min-width: 0;
	}
	.page-therapist02 .kv-title-row:nth-child(2) .title-contact-text {
		flex: 0 0 24px;
		width: 24px;
		height: 32px;
		min-width: 0;
	}

	.page-therapist02 .kv-title-inner .mask-text {
		width: 100%;
		height: 100%;
		object-fit: contain;
		display: block;
	}
}

/* summary-left：front-page の features-left と同じ仕組み */
.page-therapist02 .summary-left {
	position: relative;
	border: var(--border-width-lg) solid var(--color-black);
	border-radius: var(--border-radius-lg);
	padding: 60px 24px 48px;
	background: var(--color-white);
	max-width: 924px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.page-therapist02 .summary-left {
		border-width: var(--border-width-md);
		padding: 40px 24px 32px;
	}
}
.page-therapist02 .summary-left .hexagon-title {
	position: absolute;
	top: -38px;
	left: 50%;
	transform: translateX(-50%);
}
@media (max-width: 768px) {
	.page-therapist02 .summary-left .hexagon-title {
		top: -28px;
	}
}
/* 六角形タイトル（front-page の hexagon-title に合わせる） */
.page-therapist02 .hexagon-title {
	width: 362px;
	height: 71px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	--hex-border: 4px;
}

@media (max-width: 768px) {
	.page-therapist02 .hexagon-title {
		width: 274px;
		height: 54px;
	}
}
.page-therapist02 .hexagon-title::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-black);
	clip-path: polygon(7.3% 2.8%, 92.7% 2.8%, 99.3% 50%, 92.7% 97.2%, 7.3% 97.2%, 0.7% 50%);
	z-index: 1;
}
.page-therapist02 .hexagon-title::after {
	content: '';
	position: absolute;
	top: var(--hex-border);
	left: var(--hex-border);
	width: calc(100% - 2 * var(--hex-border));
	height: calc(100% - 2 * var(--hex-border));
	background-color: var(--color-white);
	clip-path: polygon(7.3% 2.8%, 92.7% 2.8%, 99.3% 50%, 92.7% 97.2%, 7.3% 97.2%, 0.7% 50%);
	z-index: 2;
}
@media (max-width: 768px) {
	.page-therapist02 .hexagon-title {
		--hex-border: 1px;
	}
}
.page-therapist02 .hexagon-title-text {
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-bold);
	color: var(--color-black);
	text-align: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
}
.page-therapist02 .therapist-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: auto auto auto;
	gap: 40px 0;
	margin-top: 80px;
}

@media (max-width: 768px) {
	.page-therapist02 .therapist-grid {
		margin-top: 40px;
	}
}
.page-therapist02 .therapist-grid img {
	width: 100%;
	height: auto;
	display: block;
}
/* PC: 画像2 画像1 / 画像4 画像3 / 余白 画像5 */
@media (min-width: 769px) {
	.page-therapist02 .therapist-grid img:nth-child(1) { grid-row: 1; grid-column: 2; }
	.page-therapist02 .therapist-grid img:nth-child(2) { grid-row: 1; grid-column: 1; }
	.page-therapist02 .therapist-grid img:nth-child(3) { grid-row: 2; grid-column: 2; }
	.page-therapist02 .therapist-grid img:nth-child(4) { grid-row: 2; grid-column: 1; }
	.page-therapist02 .therapist-grid img:nth-child(5) { grid-row: 3; grid-column: 2; }
}
@media (max-width: 768px) {
	.page-therapist02 .therapist-grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		gap: 0;
	}
	.page-therapist02 .therapist-grid img:nth-child(n) {
		grid-row: auto;
		grid-column: auto;
	}
}
.page-therapist02 .summary-description {
	font-size: var(--font-size-sm);
	line-height: var(--line-height-loose);
	color: var(--color-black);
	font-weight: var(--font-weight-bold);
	text-align: center;
}
@media (max-width: 768px) {
	.page-therapist02 .pc-only {
		display: none !important;
	}
}

.page-therapist02 .breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0 8px;
	padding: 12px 2em;
	margin-bottom: 120px;
	background-color: var(--color-gray-bg);
	font-family: var(--font-family-primary);
	font-size: var(--font-size-xs);
	line-height: var(--line-height-normal);
	font-weight: var(--font-weight-bold);
	color: var(--color-gray-dark);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

@media (max-width: 768px) {
	.page-therapist02 .breadcrumb {
		margin-bottom: 64px;
	}
}

.page-therapist02 .breadcrumb::-webkit-scrollbar {
	display: none;
}
.page-therapist02 .breadcrumb a,
.page-therapist02 .breadcrumb span {
	white-space: nowrap;
}
.page-therapist02 .breadcrumb a {
	color: var(--color-gray-dark);
	text-decoration: none;
}
.page-therapist02 .breadcrumb a:hover {
	text-decoration: underline;
}
.page-therapist02 .breadcrumb span {
	color: var(--color-gray-dark);
	user-select: none;
}
