@charset "UTF-8";
/* cocoe テーマ スタイル
   PC ファースト：基本（1280px〜）→ タブレット（max-width: 1279px）→ スマホ（max-width: 599px）
   サイズは rem で指定し、html の font-size で全体を同じ比率で拡大縮小する */

/* デザイントークン */
:root {
	/* カラー */
	--color-primary: #4209e8;
	--color-text: #333;
	--color-text-sub: #454545;
	--color-text-muted: #666;
	--color-text-light: #999;
	--color-white: #fff;
	--color-bg: #fff;
	--color-bg-light: #fbfafd;
	--color-border: #ccc;
	--color-border-light: #dedede;
	--color-border-lighter: #ededed;
	--color-overlay: rgb(0 0 0 / 0.2); /* メニュー展開時の背景 */
	--color-header-contact: rgb(10 10 10 / 0.7);
	--color-contact-bg: #0b0125; /* #4209e8 に黒84%を重ねた色 */
	--color-footer-bg: #2b2c2e; /* rgba(6,7,10,.85) を白地に重ねた色 */
	--color-footer-heading: #fff;
	--color-footer-link: #7e8694;
	--color-footer-copy: #5a5a5a;
	--color-footer-lead: #cfd2d8;
	--color-footer-line: rgb(255 255 255 / 0.14);
	--color-footer-credit: #787878; /* 撮影場所の記載 */

	/* フォント */
	--font-sans: "Noto Sans JP", sans-serif;
	--font-serif: "Noto Serif JP", serif;
	--font-serif-en: "Noto Serif", "Noto Serif JP", serif;
	--font-en: "Josefin Sans", "Noto Sans JP", sans-serif;

	/* フォントサイズ */
	--fz-10: 0.625rem;
	--fz-11: 0.6875rem;
	--fz-12: 0.75rem;
	--fz-13: 0.8125rem;
	--fz-14: 0.875rem;
	--fz-15: 0.9375rem;
	--fz-16: 1rem;
	--fz-17: 1.0625rem;
	--fz-18: 1.125rem;
	--fz-20: 1.25rem;
	--fz-22: 1.375rem;
	--fz-24: 1.5rem;
	--fz-28: 1.75rem;
	--fz-32: 2rem;
	--fz-25: 1.5625rem;
	--fz-38: 2.375rem;
	--fz-52: 3.25rem;
	--fz-80: 5rem;
	--fz-42: 2.625rem;
	--fz-48: 3rem;
	--fz-76: 4.75rem;

	/* 行間 */
	--lh-normal: 1.5;
	--lh-body: 1.8;

	/* 余白 */
	--space-4: 0.25rem;
	--space-8: 0.5rem;
	--space-10: 0.625rem;
	--space-12: 0.75rem;
	--space-16: 1rem;
	--space-20: 1.25rem;
	--space-24: 1.5rem;
	--space-32: 2rem;
	--space-40: 2.5rem;
	--space-48: 3rem;
	--space-64: 4rem;

	/* レイアウト */
	--header-height: 4.4375rem;
	--container-max: 86.25rem;
	--container-narrow: 65rem;
	/* コンテンツの左右の余白 */
	--gutter: 6.875rem;
	--admin-bar: var(--wp-admin--admin-bar--height, 0px);

	/* アニメーション */
	--duration: 0.3s;
	--easing: ease;
	--easing-out: cubic-bezier(0.22, 1, 0.36, 1); /* メニューの開閉 */
}

@media (max-width: 1279px) {
	:root {
		--header-height: 3rem;
		--gutter: 2.5rem;
	}
}

@media (max-width: 599px) {
	:root {
		--gutter: 1rem;
	}
}

/* リセット・ベース */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	/*
	 * rem の基準：幅 1600px で 16px、1280px で 12.8px（その間は幅に比例）。
	 * 表示領域の高さが低いときは高さでも縮める（下限 12px）。編集画面では編集領域の大きさに対して縮む
	 */
	font-size: clamp(75%, min(1vw, 2.65svh - 5.14px), 100%);

	/* ページ内リンクの移動先が固定ヘッダーに隠れないように */
	scroll-padding-top: calc(var(--admin-bar) + var(--header-height));
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* タブレットは 80% 固定 */
@media (max-width: 1279px) {
	html {
		font-size: 80%;
	}
}

/* スマホは基準の文字サイズを縮めない（375px のデザインをそのまま） */
@media (max-width: 599px) {
	html {
		font-size: 100%;
	}
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fz-16);
	line-height: var(--lh-body);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

/* sizes="auto" の遅延読み込み画像の表示補正（WordPress 本体のインライン CSS を移したもの） */
img:is([sizes="auto" i], [sizes^="auto," i]) {
	contain-intrinsic-size: 3000px 1500px;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	background: none;
	border: 0;
}

:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* マウス・タップ操作中はフォーカス枠を出さない（iOS Safari で JS がフォーカスを移したときに出るため）。入力欄は残す */
html[data-input="pointer"] :focus-visible:not(input, select, textarea) {
	outline: none;
}

html[data-scroll-lock] {
	overflow: hidden;
}

/* 汎用（表示の出し分け） */
@media (max-width: 599px) {
	.pc-only {
		display: none !important;
	}
}

@media (min-width: 600px) {
	.sp-only {
		display: none !important;
	}
}

/* 幅 1920px 以上だけで改行する */
@media (max-width: 1919px) {
	.wide-only {
		display: none !important;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* コンテナ */
.container {
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

/* スキップリンク */
.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	padding: var(--space-8) var(--space-16);
	font-size: var(--fz-14);
	color: var(--color-white);
	background: var(--color-primary);
	transform: translateY(-120%);

	&:focus {
		transform: none;
	}
}

/* ヘッダー */
.header {
	position: sticky;
	top: var(--admin-bar);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	padding-inline: var(--space-24);

	/* ヘッダーの背景。ドロップダウン（z-index: 2）より上に置き、ドロップダウンがヘッダーの下から出てくるようにする */
	&::before {
		position: absolute;
		inset: 0;
		z-index: 3;
		pointer-events: none; /* マウスを受け止めない（ナビ → メガメニューへの移動で閉じないように） */
		content: "";
		background: var(--color-bg);
	}
}

/* ヘッダー内の表示要素は背景より上に */
.header__logo,
.header__nav-link,
.header__dropdown-toggle,
.header__contact,
.header__menu-button {
	position: relative;
	z-index: 4;
}

.header__logo {
	flex-shrink: 0;
}

.header__logo-image {
	width: 7.1875rem;
	height: auto;
	margin-left: 0.5519rem;
}

.header__nav {
	align-self: stretch;
}

.header__nav-list {
	display: flex;
	gap: 2.625rem;
	height: 100%;
}

.header__nav-item {
	display: flex;
	align-items: center;

}

.header__nav-link {
	font-family: var(--font-en);
	font-size: var(--fz-14);
	line-height: 1;
	color: var(--color-text-sub);
	letter-spacing: 0.14em;
	transition: color 0.35s var(--easing-out);

	&::after {
		position: absolute;
		right: 0;
		bottom: -0.5rem;
		left: 0;
		height: 1px;
		content: "";
		background: var(--color-primary);
		scale: 0 1;
		transform-origin: left center;
		transition: scale 0.35s var(--easing-out);
	}
}

.header__nav-link--current {
	color: var(--color-primary);
}

/* ドロップダウンの開閉ボタン：キーボードでフォーカスしたときだけ表示 */
.header__dropdown-toggle {
	position: relative;
	width: 1px;
	height: 1px;
	margin-left: -1px;
	overflow: hidden;
	clip-path: inset(50%);

	&:focus-visible {
		width: 1rem;
		height: 1rem;
		margin-left: var(--space-4);
		overflow: visible;
		clip-path: none;
	}

	&::before {
		position: absolute;
		inset: 0;
		margin: auto;
		width: 0.375rem;
		height: 0.375rem;
		content: "";
		border-right: 1px solid currentcolor;
		border-bottom: 1px solid currentcolor;
		transform: translateY(-25%) rotate(45deg);
	}

	&[aria-expanded="true"]::before {
		transform: translateY(25%) rotate(-135deg);
	}
}

.header__dropdown {
	position: absolute;
	top: 100%;
	/* 横位置は assets/js/main.js で計算（メニュー文字の左端 + --dropdown-offset。画面からはみ出す場合は右端に寄せる） */
	left: var(--dropdown-left, 0);
	z-index: 2;
	display: flex;
	gap: 0.1875rem;
	padding: 0.1875rem var(--space-20) var(--space-24);
	background: var(--color-bg-light);
	filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.15));
	/* 開閉アニメーション（display の切り替えも遷移させ、閉じるときも動かす） */
	transition:
		opacity 0.25s var(--easing-out),
		transform 0.25s var(--easing-out),
		display 0.25s allow-discrete;

	@starting-style {
		opacity: 0;
		transform: translateY(-0.5rem);
	}

	&[hidden] {
		display: none;
		opacity: 0;
		transform: translateY(-0.5rem);
	}
}

.header__dropdown--solution {
	--dropdown-offset: -1.1875rem;
}

.header__dropdown--recruit {
	--dropdown-offset: -1.4375rem;
}

.header__dropdown-group {
	display: flex;
	flex-direction: column;
	gap: 0.1875rem;
	width: 16.25rem;
}

.header__dropdown-heading {
	padding: var(--space-12) var(--space-4);
	font-family: var(--font-en);
	font-size: var(--fz-14);
	line-height: 1;
	color: var(--color-text-muted);
	letter-spacing: 0.02em;
}

.header__dropdown-list {
	display: flex;
	flex-direction: column;
	gap: 0.1875rem;
}

.header__dropdown-item:has(.header__dropdown-link--parent) {
	padding: var(--space-16) var(--space-16) var(--space-4);
	background: var(--color-white);
	opacity: 0.82;
}

.header__dropdown-link {
	display: block;
	padding: var(--space-16);
	font-size: var(--fz-15);
	line-height: 1.2;
	color: var(--color-text);
	letter-spacing: 0.02em;
	background: var(--color-white);
	opacity: 0.82;
	transition: color var(--duration) var(--easing);
}

.header__dropdown-link:not(.header__dropdown-link--parent),
.header__dropdown-sublink {
	position: relative;

	&::after {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 1px; /* グローバルナビの下線と同じ太さ */
		content: "";
		background: var(--color-primary);
		scale: 0 1;
		transform-origin: left center;
		transition: scale 0.35s var(--easing-out);
	}
}

.header__dropdown-link--parent {
	padding: 0;
	background: none;
	opacity: 1;
}

.header__dropdown-sublist {
	margin-top: var(--space-12);
	padding-left: var(--space-20);
}

.header__dropdown-subitem:not(:last-child) {
	border-bottom: 1px solid var(--color-border-lighter);
}

.header__dropdown-sublink {
	display: block;
	padding: var(--space-12);
	font-size: var(--fz-14);
	font-weight: 350;
	line-height: 1.2;
	color: var(--color-text);
	letter-spacing: 0.02em;
	transition: color var(--duration) var(--easing);
}

/* ドロップダウン展開時の背景 */
.header__backdrop {
	position: fixed;
	inset: calc(var(--admin-bar) + var(--header-height)) 0 0;
	z-index: 1;
	background: var(--color-overlay);
	backdrop-filter: blur(6px);
	transition:
		opacity var(--duration) var(--easing),
		display var(--duration) allow-discrete;

	@starting-style {
		opacity: 0;
	}

	&[hidden] {
		display: none;
		opacity: 0;
	}
}

.header__contact {
	display: flex;
	align-items: center;
	align-self: stretch;
	width: 10rem;
	/* 右端に密着（ヘッダーの右余白を打ち消す） */
	margin-inline: -2.5rem calc(var(--space-24) * -1);
	padding-inline: 2.5rem;
	font-family: var(--font-en);
	font-size: var(--fz-14);
	line-height: 1;
	color: var(--color-white);
	letter-spacing: 0.12em;
	isolation: isolate;
	overflow: hidden;
	background: var(--color-header-contact);

	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: var(--color-primary);
		scale: 0 1;
		transform-origin: right center;
		transition: scale 0.35s var(--easing-out);
	}
}

.header__menu-button {
	display: none;
}

@media (hover: hover) {
	/* ドロップダウンを開いている間（項目の中にマウスがある間）も同じ表示 */
	.header .header__nav-item:is(:hover, :focus-within) > .header__nav-link {
		color: var(--color-primary);

		&::after {
			scale: 1 1;
		}
	}

	/* トップページの透明なヘッダー（暗い背景の上）では、白い文字・白い線（線はマウスを外して縮む間も白のまま） */
	.header--top:not(.header--light) .header__nav-link::after {
		background: var(--color-white);
	}

	.header--top:not(.header--light) .header__nav-item:is(:hover, :focus-within) > .header__nav-link {
		color: var(--color-white);
	}

	.header__dropdown-link:hover,
	.header__dropdown-sublink:hover {
		color: var(--color-primary);
	}

	.header__dropdown-link:is(:hover, :focus-visible)::after,
	.header__dropdown-sublink:is(:hover, :focus-visible)::after {
		scale: 1 1;
	}

	.header__contact:is(:hover, :focus-visible)::before {
		scale: 1 1;
		transform-origin: left center;
	}
}

@media (max-width: 1279px) {
	.header {
		padding: 0 0 0 var(--space-16);
	}

	.header__logo-image {
		width: 5.5625rem;
		margin-left: 0;
	}

	.header__nav,
	.header__contact,
	.header__backdrop {
		display: none;
	}

	.header__menu-button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 3.75rem;
		height: var(--header-height);
	}
}

/* ハンバーガーメニュー */
.drawer {
	position: fixed;
	inset: var(--admin-bar) 0 0;
	z-index: 200;
	overflow: hidden;
	background: var(--color-overlay);
	/* 開閉アニメーション：背景はフェード、パネルは右からスライド */
	transition:
		opacity 0.35s var(--easing-out),
		display 0.35s allow-discrete;

	@starting-style {
		opacity: 0;
	}

	&[hidden] {
		display: none;
		opacity: 0;
	}
}

.drawer__panel {
	position: absolute;
	inset: 0 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.1875rem;
	width: min(100%, 23.4375rem);
	overflow-y: auto;
	background: var(--color-bg-light);
	filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.15));
	transition:
		transform 0.35s var(--easing-out),
		display 0.35s allow-discrete;

	@starting-style {
		transform: translateX(100%);
	}

	/* メニューを閉じるときは表示中のパネルごと右へ */
	.drawer[hidden] & {
		transform: translateX(100%);
	}

	&[hidden] {
		display: none;
		transform: translateX(100%);
	}
}

/* 下層パネルはメインパネルの上に重ねて右からスライド（戻るときは右へ抜ける） */
.drawer__panel--main {
	z-index: 1;
}

.drawer__panel--sub {
	z-index: 2;
}

.drawer__bar {
	display: flex;
	flex-shrink: 0;
	justify-content: space-between;
	height: var(--header-height);
	background: var(--color-white);
}

.drawer__close {
	margin-left: auto;
}

.drawer__close,
.drawer__back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.75rem;
	height: 100%;
}

.drawer__list {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.drawer__item {
	display: flex;
	gap: 0.125rem;
}

.drawer__link {
	flex: 1;
	padding: var(--space-20);
	font-family: var(--font-en);
	font-size: var(--fz-14);
	line-height: 1;
	color: var(--color-text-sub);
	letter-spacing: 0.14em;
	background: var(--color-white);
	opacity: 0.82;
}

.drawer__next {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 3.375rem;
	background: var(--color-white);
	opacity: 0.82;

	& img {
		transform: rotate(180deg);
	}
}

.drawer__foot {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	margin-top: auto;
	padding: var(--space-20);
	line-height: 1.2;
}

.drawer__privacy {
	font-size: var(--fz-12);
	color: var(--color-footer-link);
}

.drawer__copyright {
	font-size: var(--fz-10);
	color: var(--color-footer-copy);
}

.drawer__title {
	padding: var(--space-16) var(--space-20) var(--space-8);
	line-height: 1;
}

.drawer__title-link {
	font-family: var(--font-en);
	font-size: var(--fz-14);
	color: var(--color-primary);
	letter-spacing: 0.14em;
}

.drawer__heading {
	padding: var(--space-20) var(--space-20) var(--space-4);
	font-family: var(--font-en);
	font-size: var(--fz-12);
	line-height: 1.2;
	color: var(--color-text-muted);
	letter-spacing: 0.02em;
}

.drawer__sublist {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.drawer__subitem:has(.drawer__sublink--parent) {
	padding: var(--space-12) 0 var(--space-12) var(--space-20);
	background: var(--color-white);
	opacity: 0.82;
}

.drawer__sublink {
	display: block;
	padding: var(--space-12) var(--space-20);
	font-size: var(--fz-13);
	line-height: 1.2;
	color: var(--color-text);
	letter-spacing: 0.02em;
	background: var(--color-white);
	opacity: 0.82;
}

.drawer__sublink--parent {
	padding: 0;
	background: none;
	opacity: 1;
}

.drawer__grandchild-list {
	margin-top: 0.4375rem;
	padding-left: var(--space-16);
}

.drawer__grandchild-item:not(:last-child) {
	border-bottom: 1px solid var(--color-border-lighter);
}

.drawer__grandchild-link {
	display: block;
	padding: 0.875rem var(--space-12);
	font-size: var(--fz-12);
	font-weight: 350;
	line-height: 1.2;
	color: var(--color-text);
	letter-spacing: 0.02em;
}

@media (min-width: 1280px) {
	.drawer {
		display: none;
	}
}

/* お問い合わせ導線（フッター上部） */
.contact-cta {
	display: flex;
	flex-direction: column;
	gap: var(--space-20);
	align-items: center;
	padding: 3.25rem var(--space-64);
	color: var(--color-white);
	text-align: center;
	background: var(--color-contact-bg);
}

.contact-cta__title {
	font-family: var(--font-serif-en);
	font-size: var(--fz-32);
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: 0.05em;
}

.contact-cta__text {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.contact-cta__catch {
	font-family: var(--font-serif);
	font-size: var(--fz-28);
	font-weight: 300;
	line-height: 2rem;
}

.contact-cta__lead {
	font-size: var(--fz-12);
	line-height: 1.625rem;
	color: var(--color-footer-lead);
}

.contact-cta__button {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	gap: var(--space-10);
	align-items: center;
	padding: var(--space-16) var(--space-48);
	overflow: hidden;
	font-family: var(--font-en);
	font-size: var(--fz-15);
	line-height: 1.2;
	letter-spacing: 0.1em;
	background: var(--color-primary);
	transition: color 0.35s var(--easing-out);

	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: var(--color-white);
		scale: 0 1;
		transform-origin: right center;
		transition: scale 0.35s var(--easing-out);
	}
}

@media (hover: hover) {
	.contact-cta__button:is(:hover, :focus-visible) {
		color: var(--color-primary);

		&::before {
			scale: 1 1;
			transform-origin: left center;
		}
	}
}

@media (max-width: 599px) {
	.contact-cta {
		padding: 2.5rem var(--space-48);
	}

	.contact-cta__title {
		font-size: var(--fz-24);
	}

	.contact-cta__catch {
		font-size: 1.625rem;
		line-height: 1.5;
	}

	.contact-cta__lead {
		font-size: var(--fz-11);
		line-height: var(--lh-body);
	}
}

/* フッター */
.footer {
	padding: 2.75rem var(--space-64) 1.375rem;
	background: var(--color-footer-bg);
	border-top: 1px solid var(--color-footer-line);
}

.footer__inner {
	display: flex;
}

.footer__logo {
	flex: 0 0 21.6rem;
	align-self: flex-start;

	& img {
		width: 6.625rem;
	}
}

.footer__nav {
	display: flex;
	flex: 1;
}

.footer__group {
	flex: 1;
	min-width: 0;
}

.footer__heading {
	font-family: var(--font-en);
	font-size: var(--fz-11);
	font-weight: 500;
	line-height: 1.2;
	color: var(--color-footer-heading);
	letter-spacing: 0.12em;
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-top: var(--space-12);
}

.footer__link {
	font-size: var(--fz-12);
	line-height: 1.2;
	color: var(--color-footer-link);
	transition: color var(--duration) var(--easing);
}

.footer__bottom {
	display: flex;
	justify-content: space-between;
	margin-top: 2.3125rem;
	padding-top: var(--space-20);
	font-size: var(--fz-10);
	line-height: 1.2;
	color: var(--color-footer-copy);
	border-top: 1px solid var(--color-footer-line);
}

.footer__copyright small {
	font-size: inherit;
}

/* 撮影場所の記載（区切り線の上・右寄せ） */
.footer__credit {
	margin-top: 1.1875rem;
	font-size: var(--fz-12);
	line-height: 1.2;
	color: var(--color-footer-credit);
	text-align: right;

	& + .footer__bottom {
		margin-top: var(--space-8);
	}
}

/* 見出しのリンク（SOLUTION・RECRUIT）。見た目は見出しのまま */
.footer__heading-link {
	color: inherit;
	transition: opacity var(--duration) var(--easing);
}

@media (hover: hover) {
	.footer__heading-link:hover {
		opacity: 0.7;
	}

	a.footer__link:hover,
	.footer__privacy:hover {
		color: var(--color-white);
	}
}

@media (max-width: 1279px) {
	.footer {
		padding-inline: var(--space-40);
	}

	.footer__inner {
		flex-direction: column;
		gap: var(--space-32);
	}

	.footer__logo {
		flex-basis: auto;
	}
}

@media (max-width: 599px) {
	.footer {
		padding: var(--space-32) var(--space-16) var(--space-16);
	}

	.footer__inner {
		gap: var(--space-20);
	}

	.footer__logo {
		padding-top: 0.4375rem;

		& img {
			width: 5.5625rem;
		}
	}

	.footer__nav {
		flex-wrap: wrap;
		gap: 1.125rem var(--space-12);
		padding-inline: var(--space-4);
	}

	.footer__group {
		flex: 0 0 calc(50% - var(--space-12) / 2);
	}

	.footer__heading {
		padding-block: var(--space-4);
	}

	.footer__list {
		gap: 0;
		margin-top: 0;
	}

	.footer__link {
		display: block;
		padding-block: var(--space-4);
		line-height: var(--lh-normal);
	}

	.footer__bottom {
		margin-top: 1.75rem;
	}

	.footer__credit {
		margin-top: var(--space-24);
		font-size: var(--fz-11);

		& + .footer__bottom {
			margin-top: var(--space-4);
		}
	}
}

/* パンくず */
.breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
	align-items: center;
	font-size: var(--fz-13);
	line-height: var(--lh-normal);
	color: var(--color-text-sub);
	letter-spacing: 0.15em;
}

.breadcrumb__item {
	display: flex;
	gap: var(--space-8);
	align-items: center;

	/* 区切りの矢印 */
	&:not(:first-child)::before {
		width: 0.4375rem;
		height: 0.4375rem;
		margin-right: 0.1875rem;
		content: "";
		border-top: 1.5px solid var(--color-text-light);
		border-right: 1.5px solid var(--color-text-light);
		transform: rotate(45deg);
	}
}

.breadcrumb__current {
	font-weight: 700;
}

@media (hover: hover) {
	.breadcrumb__link:hover {
		color: var(--color-primary);
	}
}

@media (max-width: 599px) {
	.breadcrumb__list,
	.breadcrumb__item {
		gap: 0.375rem;
	}

	.breadcrumb__list {
		font-size: var(--fz-10);
	}

	.breadcrumb__item:not(:first-child)::before {
		width: 0.3125rem;
		height: 0.3125rem;
	}
}

/* ページ下部（パンくずの帯） */
.page-bottom {
	padding: var(--space-24) var(--gutter);
	background: var(--color-bg-light);

	& > * {
		max-width: var(--container-max);
		margin-inline: auto;
	}

	/* 一覧へ戻るリンクの上は、リンク自身の余白（12px）と合わせて 24px */
	&:has(> .back-link) {
		padding-top: var(--space-12);
	}

	& > * + * {
		margin-top: var(--space-32);
	}
}

@media (max-width: 599px) {
	.page-bottom > * + * {
		margin-top: var(--space-24);
	}
}

/* セクション見出し（英字タイトル＋和文サブタイトル） */
.section-heading {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding-inline: var(--space-4);
	color: var(--color-primary);
}

.section-heading__title {
	font-family: var(--font-serif-en);
	font-size: var(--fz-42);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

/* 和文のみのため、和文の明朝で表示 */
.section-heading__sub {
	font-family: var(--font-serif);
	font-size: var(--fz-18);
	line-height: 1.4;
	letter-spacing: 0.02em;
}

/* 横線付き（会社概要・経歴など） */
.section-heading--line {
	.section-heading__title {
		display: flex;
		gap: var(--space-10);
		align-items: center;
		font-size: var(--fz-32);
		font-weight: 300;
		line-height: 1.4;
		letter-spacing: 0.05em;

		&::before {
			width: 1.875rem;
			height: 1px;
			content: "";
			background: currentcolor;
		}
	}

	.section-heading__sub {
		font-size: var(--fz-15);
	}
}

/* 表示アニメーション付き（reveal）のときは、横線も文字と一緒に出す */
.is-reveal-ready .section-heading--line .section-heading__title:has(> [data-reveal="band"]) {
	&::before {
		visibility: hidden;
	}

	&:has(> .is-revealed)::before {
		animation: hero-text 0.8s both;
	}
}

@media (max-width: 599px) {
	.section-heading--line {
		.section-heading__title {
			gap: 0.46875rem;
			font-size: var(--fz-24);

			&::before {
				width: 1.40625rem;
				height: 0.75px;
			}
		}

		.section-heading__sub {
			font-size: var(--fz-14);
		}
	}
}

@media (max-width: 599px) {
	.section-heading {
		gap: 0.1875rem;
		padding-inline: 0.1875rem;
	}

	.section-heading__title {
		font-size: var(--fz-32);
	}

	.section-heading__sub {
		font-size: var(--fz-14);
	}
}

/* SOLUTION トップ */

/* キービジュアル（共通部品 .hero）。英字の上端をページ間でそろえるため、文字は上寄せ（--hero-title-top） */
.hero {
	--hero-title-top: 8.6875rem;

	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	height: 42.5rem;
	padding-top: var(--hero-title-top);
	overflow: hidden;
	color: var(--color-white);

	&::after {
		position: absolute;
		inset: 0;
		content: "";
		background: rgb(0 0 0 / 0.25);
	}
}

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* パララックス（移動量は assets/js/main.js で --parallax-y に設定。data-js="parallax" を付けたときだけ動く） */
	transform: translate3d(0, var(--parallax-y, 0), 0);
	will-change: transform;
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-40);
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	padding-block: var(--space-24) var(--space-48);
}

.hero__title {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	align-items: flex-start; /* 各行の幅を文字幅に（帯の長さを文字に合わせる） */
	font-weight: inherit;
}

/*
 * 見出し・キャッチコピーの表示アニメーション（CSS のみ）
 * 文字の背景に白い帯が左から伸び、帯が引くのに合わせて文字が現れる。各行は --reveal-delay で順に表示。
 * 文字は visibility で隠す（色を透明にするだけだと SP の text-shadow が残るため）
 */
.hero__title-en,
.hero__title-ja,
.hero__catch-line,
.message__title-en,
.message__title-ja {
	--reveal-duration: 0.8s;
	--reveal-delay: 0.3s;

	position: relative;
	animation: hero-text var(--reveal-duration) var(--reveal-delay) both;

	&::before {
		position: absolute;
		inset: 0;
		visibility: visible;
		content: "";
		background: var(--color-white);
		transform: scaleX(0);
		transform-origin: left center;
		animation: hero-band var(--reveal-duration) var(--reveal-delay) cubic-bezier(0.77, 0, 0.18, 1) both;
	}
}

/* 和文の行・キャッチコピーは少しずつ遅らせて続ける */
.hero__title-ja,
.message__title-ja {
	--reveal-delay: 0.45s;
}

.hero__catch-line {
	--reveal-delay: 0.6s;

	&:nth-child(2) {
		--reveal-delay: 0.72s;
	}

	&:nth-child(3) {
		--reveal-delay: 0.84s;
	}
}

@keyframes hero-band {
	0% {
		transform: scaleX(0);
		transform-origin: left center;
	}

	45%,
	50% {
		transform: scaleX(1);
		transform-origin: left center;
	}

	50.01% {
		transform-origin: right center;
	}

	100% {
		transform: scaleX(0);
		transform-origin: right center;
	}
}

@keyframes hero-text {
	0%,
	49.99% {
		visibility: hidden;
	}

	50%,
	100% {
		visibility: visible;
	}
}

.hero__title-en {
	font-family: var(--font-serif);
	font-size: 5rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.hero__title-ja {
	font-size: var(--fz-16);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.125em;
}

.hero__catch {
	font-family: var(--font-serif);
	font-size: var(--fz-38);
	font-weight: 500;
	line-height: 1.4;
}

/* 1 行ずつ（帯の長さを各行の文字幅に合わせる） */
.hero__catch-line {
	display: block;
	width: fit-content;
}

/* 行頭の「 をぶら下げ、次の行と文字位置をそろえる */
.hero__catch-line--hang {
	margin-left: -0.5em;
}

/* SOLUTION */
.hero--solution {
	&::after {
		background: rgb(0 0 0 / 0.3);
		mix-blend-mode: multiply;
	}

	.hero__inner {
		filter: drop-shadow(0 4px 7px rgb(0 0 0 / 0.75));
	}
}

/* EXPERTS */
.hero--expert {
	.hero__bg {
		object-position: 90% 41%;
	}

	.hero__catch {
		line-height: 1.25;
	}
}

/* 概要 */
.solution-intro__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
	width: min(65.75rem, 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 4.25rem 5rem;
}

.solution-intro__lead {
	font-family: var(--font-serif);
	word-break: auto-phrase;
	font-size: 1.5625rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--color-primary);
	text-align: center;
}

.solution-intro__text {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: var(--lh-body);
}

/* ソリューション一覧・業界別 */
.solution-lists {
	background: var(--color-bg-light);
}

.solution-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-20);
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 3.75rem 4.5rem;
}

.solution-list--industry {
	padding-top: 1.875rem;
}

.solution-list__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2px;

	.solution-list--industry & {
		grid-template-columns: repeat(3, 1fr);
	}
}

.solution-list__item {
	height: 20.5rem;

	.solution-list--industry & {
		height: 30rem;
	}
}

.solution-card {
	position: relative;
	display: flex;
	height: 100%;
	overflow: hidden;
	color: var(--color-white);
}

.solution-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--easing-out);
}

.solution-card__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	width: 21.53125rem;
	height: 100%;
	padding: var(--space-24) var(--space-32);
	background: rgb(37 28 62 / 0.8);
	transition: background-color var(--duration) var(--easing);
}

.solution-card--industry {
	flex-direction: column;

	.solution-card__panel {
		width: 100%;
		height: 16.5rem;
	}
}

.solution-card__name {
	font-family: var(--font-serif);
	word-break: auto-phrase; /* 単語の途中で改行しない（対応ブラウザのみ） */
	font-size: var(--fz-28);
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.05em;
}

.solution-card__num {
	display: block;
	font-size: 0.75em;
}

.solution-card__en {
	font-size: var(--fz-15);
	line-height: 1.45;
	letter-spacing: 0.11em;
}

.solution-card__arrow {
	position: absolute;
	right: var(--space-32);
	bottom: var(--space-24);
	font-size: var(--fz-16);
	text-shadow: 0 1px 6px rgb(0 0 0 / 0.6); /* 写真の上でも読めるように */
	line-height: 1.45;
	letter-spacing: 0.07em;
	transition: transform var(--duration) var(--easing);
}

/* カードのキャッチ・説明文 */
.solution-card__summary {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	margin-top: auto;
}

.solution-card__catch {
	font-family: var(--font-serif);
	font-size: var(--fz-18);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.05em;
}

.solution-card__desc {
	font-size: var(--fz-14);
	color: rgb(255 255 255 / 0.75);
	font-weight: 350;
	line-height: 1.7;
	letter-spacing: 0.05em;
}

/* ココエ独自の方法論：業界別の下（薄紫の背景の中） */
.solution-list--method {
	padding-top: 0;
}

.solution-list--industry:has(+ .solution-list--method) {
	padding-bottom: var(--space-48);
}

/* 事例一覧のリード文 */
.case-list__lead {
	margin-top: calc(var(--space-16) * -1);
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: var(--lh-body);
}

@media (hover: hover) {
	a.solution-card:hover {
		.solution-card__image {
			transform: scale(1.05);
		}

		.solution-card__panel {
			background: rgb(66 9 232 / 0.75);
		}

		.solution-card__arrow {
			transform: translateX(0.375rem);
		}
	}
}

/* 事例一覧 */
.case-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 4.5rem;
}

.case-list__filters {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.case-filter {
	display: flex;
	gap: var(--space-16);
	align-items: center;
}

.case-filter__label {
	flex-shrink: 0;
	width: 8rem;
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.65;
}

.case-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
}

.case-filter__chip {
	padding: 0.375rem var(--space-16);
	font-size: var(--fz-16);
	font-weight: 500;
	line-height: 1;
	color: var(--color-text-light);
	background: rgb(153 153 153 / 0.15);
	border-radius: 2.5rem;
	transition:
		color var(--duration) var(--easing),
		background-color var(--duration) var(--easing);
}

.case-filter__chip--active {
	color: var(--color-primary);
	background: rgb(66 9 232 / 0.1);
}

@media (hover: hover) {
	.case-filter__chip:hover {
		color: var(--color-primary);
	}
}

.case-list__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-32);
	/* 絞り込み時に高さを伸縮させるため、はみ出しを隠す（フォーカス枠の分は残す） */
	overflow: clip;
	overflow-clip-margin: 0.5rem;
}

.case-list__empty {
	padding-block: var(--space-24);
	font-size: var(--fz-15);
	color: var(--color-text-muted);
	text-align: center;
	transition:
		opacity var(--duration) var(--easing),
		display var(--duration) allow-discrete;

	@starting-style {
		opacity: 0;
	}

	&[hidden] {
		display: none;
		opacity: 0;
	}
}

/* 事例カード */
.case-card {
	background: var(--color-bg-light);

	&[hidden] {
		display: none;
	}
}

.case-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.case-card__image {
	aspect-ratio: 320 / 219;
	overflow: hidden;
	background: var(--color-border-lighter);
}

.case-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--easing-out);
}

.case-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding: var(--space-12) var(--space-16) var(--space-16);
}

.case-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
}

.case-card__tag {
	padding: var(--space-4) var(--space-10);
	font-size: var(--fz-14);
	font-weight: 500;
	line-height: 1;
	color: #567bff;
	background: var(--color-white);
	border: 0.5px solid #567bff;
	border-radius: 2.5rem;
}

.case-card__title {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.65;
	color: var(--color-text);
	transition: color var(--duration) var(--easing);
}

@media (hover: hover) {
	.case-card__link:hover {
		.case-card__img {
			transform: scale(1.05);
		}

		.case-card__title {
			color: var(--color-primary);
		}
	}
}

/* タブレット：PC レイアウトを可変幅で縮める */
@media (max-width: 1279px) {
	.hero {
		--hero-title-top: 6.875rem;

		height: 36rem;
	}

	.hero__title-en {
		font-size: 4rem;
	}

	.hero__catch {
		font-size: var(--fz-32);
	}

	.solution-list__item {
		height: 16.75rem;

		.solution-list--industry & {
			height: 25rem;
		}
	}

	.solution-card__panel {
		width: min(21.53125rem, 66%);
		padding: var(--space-20);
	}

	.solution-card__name {
		font-size: var(--fz-28);
	}

	/* PC 用の改行位置は使わない */
	.solution-intro__lead br {
		display: none;
	}

	.solution-card__en {
		font-size: var(--fz-12);
	}

	.solution-card__catch {
		font-size: var(--fz-16);
	}

	/* タブレットは説明文を出さずキャッチだけ */
	.solution-card__desc {
		display: none;
	}

	.solution-card__arrow {
		right: var(--space-20);
		bottom: var(--space-20);
	}

	.case-list__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-24);
	}
}

/* スマホ */
@media (max-width: 599px) {
	.hero {
		--hero-title-top: 10.0625rem;

		height: 29.3rem;
	}

	.hero__inner {
		width: 100%;
		padding: 0 var(--space-20);
	}

	.hero__title-en {
		font-size: var(--fz-48);
	}

	.hero__catch {
		font-size: 1.4375rem;
	}

	.hero--solution {
		&::after {
			background: rgb(0 0 0 / 0.36);
		}

		.hero__inner {
			filter: none;
		}

		.hero__catch {
			text-shadow: 0 2px 9px rgb(0 0 0 / 0.75);
		}
	}

	.hero--expert {
		.hero__bg {
			object-position: center; /* SP 用の画像（750×938）は 5 人が入る幅で切り出したもの */
		}

		.hero__catch {
			font-size: var(--fz-24);
			line-height: 1.4;
		}
	}

	.solution-intro__inner {
		gap: var(--space-24);
		padding-block: 2.75rem var(--space-48);
	}

	.solution-intro__lead {
		font-size: var(--fz-18);
		line-height: var(--lh-normal);
		text-align: left;
	}

	.solution-intro__text {
		font-size: var(--fz-12);
	}

	.solution-list,
	.solution-list--industry {
		gap: var(--space-24);
		padding-block: var(--space-40) 0;
	}

	.solution-list__grid,
	.solution-list--industry .solution-list__grid {
		grid-template-columns: 1fr;
		margin-inline: calc(var(--gutter) * -1);
	}

	.solution-list__item,
	.solution-list--industry .solution-list__item {
		height: 10.5rem;
	}

	.solution-card--industry {
		flex-direction: row;

		.solution-card__panel {
			width: 15.5rem;
			height: 100%;
		}
	}

	.solution-card__panel {
		gap: var(--space-4);
		width: 15.5rem;
		padding: var(--space-16) var(--space-20) var(--space-12);
	}

	.solution-card__name {
		font-size: var(--fz-24);
		line-height: 1.25;
	}

	.solution-card__en {
		margin-top: calc(var(--space-4) * -1);
		font-size: var(--fz-10);
		color: rgb(255 255 255 / 0.8);
	}

	.solution-card__arrow {
		right: var(--space-16);
		bottom: var(--space-12);
	}

	/* SP は枠が小さいので、説明文は出さずキャッチだけ */
	.solution-card__desc {
		display: none;
	}

	/* キャッチは下寄せにせず、英語表記の下に続けて置く */
	.solution-card__summary {
		margin-top: var(--space-4);
	}

	.solution-card__catch {
		font-size: var(--fz-12);
		line-height: var(--lh-normal);
		letter-spacing: 0;
		color: rgb(255 255 255 / 0.9);
	}

	.solution-list--method {
		padding-block: 0 var(--space-48); /* 業界別との間は業界別の下の余白（48px） */
	}

	.case-list__lead {
		margin-top: calc(var(--space-8) * -1);
		font-size: var(--fz-13);
	}

	.case-list {
		gap: var(--space-24);
		padding-block: var(--space-48);
	}

	.case-filter {
		flex-direction: column;
		gap: var(--space-4);
		align-items: flex-start;
	}

	.case-filter__label {
		width: auto;
		font-size: 0.703125rem;
	}

	.case-filter__chips {
		gap: 0.375rem;
	}

	.case-filter__chip {
		padding: 0.28125rem var(--space-12);
		font-size: var(--fz-12);
	}

	.case-list__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-24) var(--space-12);
		margin-inline: -0.25rem;
	}

	.case-card {
		background: none;
	}

	.case-card__image {
		aspect-ratio: 168.5 / 108;
	}

	.case-card__body {
		gap: var(--space-4);
		padding: var(--space-8);
	}

	.case-card__tags {
		gap: var(--space-4);
	}

	.case-card__tag {
		padding: 0.1875rem 0.46875rem;
		font-size: 0.65625rem;
	}

	.case-card__title {
		font-size: var(--fz-12);
	}
}

/* MISSION */
.mission {
	position: relative;
	color: var(--color-white);
}

/*
 * 背景画像：画面に固定し、上に重なるセクションの半透明背景越しに見せる。
 * .mission 全体に広げた枠（.mission__bg）の中で sticky にして、MISSION の範囲外にはみ出さないようにする
 */
.mission__bg {
	position: absolute;
	inset: 0;
}

.mission__bg-inner {
	position: sticky;
	top: calc(var(--admin-bar) + var(--header-height));
	height: calc(100svh - var(--admin-bar) - var(--header-height));
	overflow: hidden;

	&::after {
		position: absolute;
		inset: 0;
		content: "";
		background: #0d00c3;
		mix-blend-mode: overlay;
	}
}

.mission__bg-media {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mission-block {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 7.5rem var(--gutter);
	text-align: center;
}

.mission-block--vision {
	min-height: calc(100svh - var(--admin-bar) - var(--header-height));
	background: rgb(13 30 79 / 0.6);

	.mission-block__inner {
		filter: drop-shadow(0 2px 12px rgb(0 0 0 / 0.75));
	}
}

.mission-block--mission {
	padding-block: 11.25rem 15.625rem;
	background: rgb(66 9 232 / 0.9);
}

.mission-block--values {
	background: rgb(13 30 79 / 0.7);

	.mission-block__inner {
		gap: var(--space-40);
	}
}

.mission-block__inner {
	display: flex;
	flex-direction: column;
	gap: 3.75rem;
	align-items: center;
}

.mission-block__label {
	font-family: var(--font-serif-en);
	font-size: var(--fz-32);
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: 0.1em;
	opacity: 0.9;
}

/* 句読点の分だけ中央をずらす */
.mission-block__catch {
	word-break: auto-phrase;
	padding-left: 0.7em;
	font-family: var(--font-serif);
	font-size: 2.5rem;
	line-height: 1.4;

	.mission-block--vision & {
		font-size: 3.5rem;
	}
}

.mission-block__line {
	display: block;
}

.mission-block__label + .mission-block__catch {
	margin-top: -2.5rem;
}

/* 本文はキャッチ（ぼかしが取れるまで約 1.6 秒）に続けて出す */
.mission-block__text > p {
	--reveal-extra: 0.7s;
}

.mission-block__text {
	display: flex;
	flex-direction: column;
	gap: 0;
	font-family: var(--font-serif);
	font-size: var(--fz-18);
	line-height: 1.7;
	letter-spacing: 0.05em;

	.mission-block--vision & {
		font-size: var(--fz-20);
		line-height: 1.6;
	}
}

/* 行動原則の見出しは他より少し小さく */
.mission-block--values .mission-block__label {
	font-size: var(--fz-22);
}

.mission-block__lead {
	word-break: auto-phrase;
	font-family: var(--font-serif);
	font-size: var(--fz-32);
	line-height: 1.5;
	text-align: center;
}

.mission-values {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-24);
	width: min(var(--container-narrow), 100%);
	text-align: left;
}

.mission-values__item {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: 3.75rem var(--space-48);
	background: rgb(13 30 79 / 0.8);
}

.mission-values__en {
	font-family: var(--font-en);
	font-size: var(--fz-16);
	font-weight: 500;
	line-height: 1.2;
	color: var(--color-primary);
	letter-spacing: 0.05em;
	mix-blend-mode: color-dodge;
}

.mission-values__title {
	font-family: var(--font-serif);
	font-size: var(--fz-24);
	font-weight: 400;
	line-height: 1.6;
}

.mission-values__text {
	font-size: var(--fz-13);
	font-weight: 350;
	line-height: 2.1;
	color: rgb(255 255 255 / 0.6);
}

/* 会社概要 */
.company-profile {
	background: var(--color-bg);
}

.company-profile__inner {
	display: flex;
	flex-direction: column;
	gap: 3.75rem;
	width: min(var(--container-narrow), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 6.25rem;
}

.company-profile__table {
	border-bottom: 1px solid #dbe1e8;
}

.company-profile__row {
	display: grid;
	grid-template-columns: 15rem minmax(0, 1fr);
	border-top: 1px solid #dbe1e8;
}

.company-profile__label,
.company-profile__value {
	padding: var(--space-20) var(--space-8);
	font-size: var(--fz-14);
	line-height: 1.6;
}

.company-profile__label {
	color: var(--color-primary);
}

.company-profile__value a {
	text-decoration: underline;
	overflow-wrap: anywhere;
}

@media (hover: hover) {
	.company-profile__value a:hover {
		color: var(--color-primary);
	}
}

@media (max-width: 1279px) {
	.mission-block__catch {
		.mission-block--vision & {
			font-size: var(--fz-42);
		}
	}

	.mission-values__item {
		padding: var(--space-40) var(--space-32);
	}
}

@media (max-width: 599px) {
	.mission-block {
		padding: 7.5rem 0;
	}

	.mission-block--vision {
		min-height: 47rem;
		padding-block: 0 var(--space-24);

		/* SP は背景色を乗算で重ねる */
		background: none;

		&::before {
			position: absolute;
			inset: 0;
			content: "";
			background: rgb(13 30 79 / 0.7);
			mix-blend-mode: multiply;
		}

		.mission-block__inner {
			position: relative;
			filter: none;
		}
	}

	.mission-block--mission {
		padding-block: 7.5rem 10rem;
	}

	.mission-block--values {
		background: rgb(13 30 79 / 0.8);
	}

	.mission-block__inner,
	.mission-block--values .mission-block__inner {
		gap: var(--space-32);
		width: 100%;
	}

	.mission-block__label + .mission-block__catch {
		margin-top: 0;
	}

	.mission-block__catch {
		font-size: min(2rem, 8.53vw);

		.mission-block--vision & {
			font-size: min(2.25rem, 9.6vw);
			font-weight: 500;
			text-shadow: 0 2px 9px rgb(0 0 0 / 0.75);
		}
	}

	.mission-block__text,
	.mission-block--vision .mission-block__text {
		gap: 0;
		margin-top: var(--space-40);
		font-size: var(--fz-14);
		line-height: 1.65;
	}

	.mission-block--vision .mission-block__text {
		font-size: var(--fz-15);
	}

	/* 本文が長いので、画面の端に付かないよう左右を空ける */
	.mission-block--mission .mission-block__text {
		padding-inline: var(--space-20);
	}

	.mission-block--values .mission-block__label {
		font-size: var(--fz-15);
	}

	.mission-block__lead {
		font-size: var(--fz-25);
	}

	.mission-values {
		grid-template-columns: 1fr;
		gap: var(--space-16);
		padding-inline: var(--space-16);
	}

	.mission-values__item {
		gap: var(--space-12);
		padding: 2.25rem var(--space-32);
	}

	.mission-values__en {
		font-size: var(--fz-12);
	}

	.mission-values__title {
		font-size: var(--fz-20);
	}

	.mission-values__text {
		font-size: var(--fz-12);
		line-height: 1.8;
	}

	.company-profile {
		background: var(--color-bg-light);
	}

	.company-profile__inner {
		gap: var(--space-40);
		padding-block: 3.75rem;
	}

	.company-profile__row {
		grid-template-columns: 6rem minmax(0, 1fr);
	}

	.company-profile__label,
	.company-profile__value {
		padding-block: var(--space-16);
		font-size: var(--fz-13);
	}
}

/* MESSAGE */

/*
 * PC：左に本文、右に写真（画面に固定）。写真は画面幅の 1/2 で、右端まで広げる。
 * 本文の左端は SOLUTION などのキービジュアルの見出しと同じ（コンテナ幅 1380px の左端）。
 */
.message__body {
	display: grid;
	grid-template-areas:
		"title photo"
		"content photo";
	grid-template-rows: auto 1fr;
	grid-template-columns: minmax(0, 1fr) 50vw; /* 下の行は非対応ブラウザ用の予備 */
	grid-template-columns: minmax(0, 1fr) 50cqw; /* .message の幅の 1/2（スクロールバーを含まない） */
	column-gap: 6rem;
	padding-left: max(var(--gutter), (100% - var(--container-max)) / 2);
}

.message {
	container-type: inline-size;
}

.message__title {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* 表示アニメーションの帯の長さを文字に合わせる */
	grid-area: title;
	gap: var(--space-4);
	padding-top: 10.1875rem; /* SOLUTION のキービジュアルの「Solution」と同じ高さ */
	color: var(--color-primary);
}

/* 表示アニメーションの帯は文字色（白い背景の上なので） */
.message__title-en::before,
.message__title-ja::before {
	background: currentcolor;
}

.message__title-en {
	font-family: var(--font-serif);
	font-size: var(--fz-80);
	font-weight: 500;
	line-height: 1.3;
}

.message__title-ja {
	font-size: var(--fz-16);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.125em;
}

.message__photo {
	position: sticky;
	top: calc(var(--admin-bar) + var(--header-height));
	grid-area: photo;
	align-self: start;
	height: min(75.375rem, 100svh - var(--admin-bar) - var(--header-height));
}

.message__photo-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

/*
 * PC：基本は枠いっぱいに収める（cover）。画面が低く枠が横長になると人物が小さくなるので、
 * 画像の高さを枠の高さの 1.5 倍まで大きくし、上半身寄りに切り抜く
 */
@media (min-width: 1280px) {
	.message__photo {
		overflow: hidden;
		container-type: size;
	}

	.message__photo-image {
		width: auto;
		max-width: none;
		height: max(100cqh, 100cqw * 1809 / 2128, min(150cqh, 62.5rem));
		margin-left: 50%;
		translate: -50% 0;
	}
}

.message__content {
	display: flex;
	flex-direction: column;
	grid-area: content;
	padding-block: 6.25rem 8.75rem;
}

.message__lead {
	word-break: auto-phrase;
	font-family: var(--font-serif);
	font-size: var(--fz-25);
	font-weight: 500;
	line-height: 1.6;
	color: var(--color-primary);
}

.message__heading {
	margin-top: 3.125rem;
	font-size: var(--fz-18);
	font-weight: 700;
	line-height: 2;
}

.message__text {
	display: flex;
	flex-direction: column;
	gap: 2.2em; /* 空行 1 行分 */
	margin-top: var(--space-24);
	font-size: 0.96875rem;
	font-weight: 350;
	line-height: 2.2;
}

.message__sign {
	display: flex;
	flex-direction: column;
	margin-top: 3.75rem;
	font-family: var(--font-serif);
	font-weight: 300;
}

.message__sign-role {
	font-size: var(--fz-18);
	line-height: 2;
}

.message__sign-name {
	font-size: var(--fz-32);
	line-height: 1.6;
	letter-spacing: 0.1em;
}

.message__sign-en {
	font-size: var(--fz-15);
	line-height: 1.8;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
}

/* 経歴 */
.biography {
	background: var(--color-bg-light);
}

.biography__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-40);
	width: min(var(--container-narrow), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 5rem 5.625rem;
}

.biography__body {
	display: flex;
	gap: 2.4375rem;
	align-items: flex-start;
}

.biography__avatar {
	flex-shrink: 0;
	width: 10.9375rem;
	height: auto;
	border-radius: 50%;
}

.biography__text {
	display: flex;
	flex-direction: column;
	gap: var(--space-20);
	font-size: var(--fz-14);
	font-weight: 350;
	line-height: 2;
}

.biography__list {
	padding-left: 1.3125rem;
	list-style: disc;
}

@media (max-width: 1279px) {
	.message__body {
		column-gap: var(--space-48);
	}

	.message__title {
		padding-top: 6rem;
	}

	.message__title-en {
		font-size: 4rem;
	}
}

@media (max-width: 599px) {
	/* SP：見出し → 写真（全幅） → 本文の縦並び。写真は固定しない */
	.message__body {
		display: flex;
		flex-direction: column;
		padding-left: 0;
	}

	.message__title {
		padding: var(--space-24) var(--space-16);
	}

	.message__title-en {
		font-size: 2.5rem;
	}

	.message__title-ja {
		font-size: var(--fz-14);
	}

	.message__photo {
		position: static;
		height: auto;
	}

	.message__photo-image {
		aspect-ratio: 1;
		height: auto;
	}

	.message__content {
		padding: var(--space-48) var(--space-20) var(--space-24);
	}

	.message__lead {
		font-size: var(--fz-22);
		line-height: 1.5;
	}

	.message__text {
		gap: 1.8em;
		font-size: var(--fz-13);
		line-height: 1.8;
	}

	.message__heading {
		font-size: var(--fz-15);
	}

	.message__sign {
		margin-top: 3.125rem;
	}

	.message__sign-role {
		font-size: var(--fz-15);
	}

	.message__sign-name {
		font-size: var(--fz-24);
	}

	.message__sign-en {
		font-size: var(--fz-13);
	}

	.biography__inner {
		padding-block: 3.75rem;
	}

	.biography__body {
		flex-direction: column;
		gap: var(--space-32);
		align-items: center;
	}

	.biography__avatar {
		width: 10rem;
	}

	.biography__text {
		font-size: var(--fz-12);
		line-height: 1.8;
	}

	.biography__list {
		padding-left: 1.125rem;
	}
}

/* ページタイトル（NEWS など：英字の大見出し＋和文） */
.page-title {
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: var(--space-48) 3.75rem;
}

.page-title__heading {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	align-items: flex-start; /* 各行の幅を文字幅に（表示アニメーションの帯の長さを文字に合わせる） */
	font-weight: inherit;
	color: var(--color-primary);
}

.page-title__en {
	font-family: var(--font-serif);
	font-size: var(--fz-80);
	font-weight: 500;
	line-height: 1.3;
}

.page-title__ja {
	font-size: var(--fz-16);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.125em;
}

@media (max-width: 1279px) {
	.page-title__en {
		font-size: 4rem;
	}
}

@media (max-width: 599px) {
	.page-title {
		padding-block: var(--space-24);
	}

	.page-title__en {
		font-size: 2.5rem;
	}

	.page-title__ja {
		font-size: var(--fz-14);
	}
}

/* 下層ページのタイトル（RECRUIT 配下など。template-parts/sub-title.php） */
.sub-title {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	align-items: flex-start;
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 1.75rem 3.25rem;
	color: var(--color-primary);
}

.sub-title__label {
	padding-block: 0.3125rem;
	font-family: var(--font-serif-en);
	font-size: var(--fz-32);
	line-height: 1.36;
	letter-spacing: 0.02em;
	border-bottom: 1px solid currentcolor;
}

.sub-title__heading {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	font-weight: inherit;
}

.sub-title__ja {
	font-family: var(--font-serif);
	font-size: 4.25rem;
	font-weight: 400;
	line-height: 1.44;
}

.sub-title__en {
	font-size: var(--fz-18);
	line-height: 1.2;
	letter-spacing: 0.125rem;
}

@media (max-width: 1279px) {
	.sub-title__ja {
		font-size: 3.5rem;
	}
}

@media (max-width: 599px) {
	.sub-title {
		gap: 0.125rem;
		padding-block: var(--space-24);
	}

	.sub-title__label {
		padding-block: 0.15625rem;
		font-size: var(--fz-18);
		border-bottom-width: 0.5px;
	}

	.sub-title__heading {
		gap: 0.375rem;
	}

	.sub-title__ja {
		font-size: 2.25rem;
		font-weight: 500;
	}

	.sub-title__en {
		font-size: var(--fz-12);
		letter-spacing: 0.0625rem;
	}
}

/* 一覧へ戻るリンク */
.back-link__link {
	position: relative;
	display: inline-flex;
	gap: var(--space-10);
	align-items: center;
	padding-block: var(--space-12) 0.375rem;
	font-size: var(--fz-14);
	line-height: 1.4;
	color: var(--color-primary);
	letter-spacing: 0.08em;
	/* 下線は ::after（トップの「… →」のリンクと同じ動き） */
}

/* ページ送り */
.pagination__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-12);
	justify-content: flex-end;
}

.pagination__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.375rem;
	height: 2.375rem;
	font-size: var(--fz-15);
	line-height: 1;
	color: var(--color-primary);
	letter-spacing: 0.13em;
	border: 1px solid transparent;
	border-radius: 50%;
	transition: background-color var(--duration) var(--easing);
}

.pagination__link--prev,
.pagination__link--next {
	font-family: var(--font-en);
	font-size: var(--fz-16);
	letter-spacing: 0;
}

.pagination__link--current {
	color: var(--color-white);
	background: var(--color-primary);
	border-color: var(--color-primary);
}

@media (hover: hover) {
	a.pagination__link:hover {
		background: rgb(66 9 232 / 0.1);
	}
}

@media (max-width: 599px) {
	.pagination__list {
		gap: var(--space-4);
		justify-content: center;
	}
}

/* NEWS 一覧 */
.news-list {
	padding-bottom: 3.75rem;
	background: var(--color-bg-light);
}

.news-list__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

.news-filter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-12);
	align-items: center;
	padding: var(--space-24) var(--space-12);
}

.news-filter__label {
	font-family: var(--font-en);
	font-size: var(--fz-14);
	line-height: 1;
	color: var(--color-text-light);
	letter-spacing: 0.14em;
}

.news-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
}

.news-filter__chip {
	display: block;
	padding: var(--space-8) var(--space-20);
	font-family: var(--font-en);
	font-size: var(--fz-16);
	line-height: 1;
	color: var(--color-text-muted);
	letter-spacing: 0.05em;
	background: rgb(153 153 153 / 0.15);
	border-radius: 2.5rem;
	transition:
		color var(--duration) var(--easing),
		background-color var(--duration) var(--easing);
}

.news-filter__chip--active {
	color: var(--color-primary);
	background: rgb(66 9 232 / 0.1);
}

@media (hover: hover) {
	.news-filter__chip:hover {
		color: var(--color-primary);
	}
}

.news-list__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-48);
	margin-bottom: var(--space-32);
}

.news-list__empty {
	padding-block: var(--space-48);
	font-size: var(--fz-15);
	color: var(--color-text-muted);
	text-align: center;
}

/* NEWS カード */
.news-card {
	background: var(--color-white);
}

.news-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.news-card__image {
	position: relative;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	background: linear-gradient(#d6d5df, var(--color-white));
}

.news-card__img {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--easing-out);

	.news-card__image--contain & {
		object-fit: contain;
	}
}

/* 全体表示のときの余白：同じ画像をぼかして敷く */
.news-card__img-blur {
	position: absolute;
	inset: -1.5rem;
	width: calc(100% + 3rem);
	max-width: none;
	height: calc(100% + 3rem);
	object-fit: cover;
	filter: blur(16px);
}

/* アイキャッチ画像がない記事：紫地にロゴ */
.news-card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-primary);
}

.news-card__logo {
	width: 26.875%; /* ロゴ幅 115 / 画像幅 428。カードの幅に合わせて縮む */
}

.news-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding-block: 1.375rem;
}

.news-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-inline: 1.75rem;
}

.news-card__date {
	font-size: var(--fz-15);
	line-height: 1.4;
	color: var(--color-text-muted);
	letter-spacing: 0.13em;
}

.news-card__category {
	padding: 0.375rem var(--space-10) 0.1875rem;
	font-family: var(--font-en);
	font-size: var(--fz-12);
	line-height: 1;
	color: var(--color-primary);
	letter-spacing: 0.05em;
}

.news-card__title {
	padding: var(--space-16) 1.75rem;
	font-size: var(--fz-14);
	font-weight: 350;
	line-height: var(--lh-body);
	color: var(--color-text);
	transition: color var(--duration) var(--easing);
}

@media (hover: hover) {
	.news-card__link:hover {
		.news-card__img {
			transform: scale(1.05);
		}

		.news-card__title {
			color: var(--color-primary);
		}
	}
}

@media (max-width: 1279px) {
	.news-list__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-32);
	}
}

@media (max-width: 599px) {
	.news-list {
		padding-bottom: 0;
	}

	.news-list__inner {
		gap: 0;
		width: 100%;
	}

	.news-filter {
		flex-direction: column;
		align-items: flex-start;
	}

	.news-filter__label {
		font-size: var(--fz-10);
		font-weight: 500;
	}

	.news-filter__list {
		gap: 0.375rem;
	}

	.news-filter__chip {
		padding: 0.375rem 0.9375rem;
		font-size: var(--fz-12);
	}

	.news-list__grid {
		grid-template-columns: 1fr;
		gap: var(--space-24);
		margin-bottom: 0;
		padding: var(--space-24) var(--space-16);
	}

	.news-card__body {
		gap: 0;
		padding-block: var(--space-12) var(--space-8);
	}

	.news-card__meta {
		padding-inline: 1.4rem;
	}

	.news-card__date {
		font-size: var(--fz-14);
		letter-spacing: 0.115em;
	}

	.news-card__title {
		padding: 0.8rem 1.4rem;
		font-size: var(--fz-13);
	}

	.news-list .pagination {
		padding-block: var(--space-24);
	}
}

/* NEWS 詳細 */
.news-article__hero {
	position: relative;
	min-height: 26.125rem;
	padding: 3.75rem var(--gutter) var(--space-48);
	overflow: hidden;
	color: var(--color-white);
	background: var(--color-primary);

	/* アイキャッチ画像がある場合：画像をぼかして紫を重ねる */
	&:has(.news-article__hero-bg) {
		background: var(--color-white);

		/* 重なり順：画像（0）→ 紫・黒の層（1）→ 文字（2） */
		&::before {
			position: absolute;
			inset: 0;
			z-index: 1;
			content: "";
			background: rgb(66 9 232 / 0.6);
			mix-blend-mode: hard-light;
		}

		&::after {
			position: absolute;
			inset: 0;
			z-index: 1;
			content: "";
			background: rgb(0 0 0 / 0.1);
		}
	}
}

/* 背景画像：ぼかし・色調補正の値はデザインと同じ見え方になるよう実測で調整 */
.news-article__hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	opacity: 0.8;
	filter: blur(12px) brightness(0.45) saturate(0.4);
	transform: scale(1.44);
}

.news-article__hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: min(var(--container-narrow), 100%);
	margin-inline: auto;
}

.news-article__label {
	padding-block: 0.3125rem;
	font-family: var(--font-serif-en);
	font-size: var(--fz-32);
	line-height: 1.3;
	letter-spacing: 0.02em;
	border-bottom: 2px solid currentcolor;
}

.news-article__title {
	margin-top: 1.625rem;
	font-family: var(--font-serif);
	font-size: 2.5rem;
	font-weight: 500;
	line-height: 1.4;
	word-break: auto-phrase;
}

.news-article__date {
	margin-top: var(--space-12);
	font-size: 1.1875rem;
	line-height: var(--lh-body);
}

.news-article__category {
	margin-top: var(--space-20);
	padding: 0.4375rem var(--space-12) 0.375rem;
	font-family: var(--font-en);
	font-size: var(--fz-14);
	line-height: 1;
	color: var(--color-primary);
	letter-spacing: 0.05em;
	background: var(--color-white);
	border-radius: 2.5rem;
	transition: opacity var(--duration) var(--easing);
}

.news-article__body {
	width: min(var(--container-narrow), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: var(--space-48) 4.5rem;
	border-bottom: 1px solid #e0e0e0;
}

/* 抜粋（リード文） */
.news-article__lead {
	font-size: var(--fz-15);
	font-weight: 700;
	line-height: var(--lh-body);
}

/* アイキャッチ画像（本文の上） */
.news-article__image {
	margin-block: 3.75rem;

	&:first-child {
		margin-top: 0;
	}
}

.news-article__image-img {
	width: min(39.5rem, 100%);
	height: auto;
	margin-inline: auto;
}

.news-article__lead + .entry-content {
	margin-top: 3.75rem;
}

.news-article__nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 5rem;
	align-items: end;
	width: min(var(--container-narrow), 100% - var(--gutter) * 2);
	margin: var(--space-20) auto 0;
	padding-bottom: var(--space-20);
}

.news-article__nav-item--prev {
	justify-self: end;
}

.news-article__nav-item--next {
	justify-self: start;
}

.news-article__pager {
	display: flex;
	gap: var(--space-8);
	align-items: center;
	height: 2.375rem;
	padding-inline: var(--space-8);
	font-family: var(--font-en);
	font-size: var(--fz-14);
	line-height: 1;
	color: var(--color-primary);
	letter-spacing: 0.05em;
	transition: opacity var(--duration) var(--easing);

	& [aria-hidden] {
		font-size: var(--fz-16);
		letter-spacing: 0;
	}
}

.news-article__share {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	align-items: center;
	padding: 0.375rem var(--space-8);
}

.news-article__share-label {
	font-family: var(--font-en);
	font-size: var(--fz-14);
	line-height: 1;
	color: var(--color-primary);
	letter-spacing: 0.05em;
}

.news-article__share-list {
	display: flex;
	gap: var(--space-24);
	align-items: center;
}

.news-article__share-link {
	display: block;
	transition: opacity var(--duration) var(--easing);

	& img {
		width: auto;
		height: 1.3125rem;
	}
}

@media (hover: hover) {
	.news-article__category:hover,
	.news-article__pager:hover,
	.news-article__share-link:hover {
		opacity: 0.7;
	}
}

/* 本文（ブロックエディタ）
   事例詳細の本文（.case-content）と、事例の編集画面（.post-type-case .is-root-container）にも使う。
   事例のカスタムブロック（.case-section）の中には効かせない（:not(.case-section *)） */
.entry-content,
.case-content,
.post-type-case .is-root-container {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: var(--lh-body);
	color: var(--color-text);
	overflow-wrap: anywhere;

	& > * + * {
		margin-top: 1.8em; /* 空行 1 行分 */
	}

	& strong:where(:not(.case-section *)) {
		font-weight: 700;
	}

	& a:where(:not(.case-section *)) {
		color: var(--color-primary);
		text-decoration: underline;
		text-underline-position: from-font;
	}

	& .wp-block-image:where(:not(.case-section *)),
	& figure:where(:not(.case-section *)) {
		margin-block: 3.75rem;

		& img {
			margin-inline: auto;
		}

		& figcaption {
			margin-top: var(--space-8);
			font-size: var(--fz-13);
			color: var(--color-text-muted);
			text-align: center;
		}
	}

	& > :first-child {
		margin-top: 0;
	}

	& h2:where(:not(.case-section *)) {
		margin-top: 2.4em;
		font-size: var(--fz-20);
		font-weight: 700;
		line-height: 1.6;
		color: var(--color-primary);
	}

	& h3:where(:not(.case-section *)) {
		margin-top: 2em;
		font-size: var(--fz-17);
		font-weight: 700;
		line-height: 1.6;
	}

	& ul:where(:not(.case-section *)),
	& ol:where(:not(.case-section *)) {
		padding-left: 1.5em;
		list-style: disc;
	}

	& ol:where(:not(.case-section *)) {
		list-style: decimal;
	}

	& li + li:where(:not(.case-section *)) {
		margin-top: 0.4em;
	}

	& blockquote:where(:not(.case-section *)) {
		padding-left: 1em;
		color: var(--color-text-muted);
		border-left: 3px solid var(--color-primary);
	}

	& hr:where(:not(.case-section *)) {
		border: 0;
		border-top: 1px solid #e0e0e0;
	}
}

@media (hover: hover) {
	:is(.entry-content, .case-content) a:where(:not(.case-section *)):hover {
		opacity: 0.7;
	}
}

@media (max-width: 599px) {
	.news-article__hero {
		min-height: 14.5625rem;
		padding: var(--space-24) var(--space-20) var(--space-12);
	}

	.news-article__label {
		padding-block: 0.15625rem;
		font-size: var(--fz-18);
		border-bottom-width: 0.5px;
	}

	.news-article__title {
		margin-top: var(--space-16);
		font-size: var(--fz-18);
	}

	.news-article__date {
		margin-top: var(--space-8);
		font-size: var(--fz-13);
	}

	.news-article__category {
		margin-block: var(--space-16) var(--space-8);
		padding: var(--space-4) var(--space-12) 0.3125rem;
		font-family: var(--font-sans);
		font-size: var(--fz-12);
		font-weight: 700;
		letter-spacing: 0;
	}

	.news-article__body {
		padding-block: var(--space-16) var(--space-32);
	}

	.news-article__hero-bg {
		filter: blur(6px) brightness(0.45) saturate(0.4);
	}

	.news-article__lead {
		font-size: var(--fz-13);
	}

	.news-article__image {
		margin-block: var(--space-24);

		& .news-article__image-img {
			width: 100%;
		}
	}

	.news-article__lead + .entry-content {
		margin-top: var(--space-24);
	}

	.news-article__nav {
		grid-template-columns: auto auto auto;
		gap: 0;
		justify-content: space-between;
		margin-top: 0;
		padding-block: var(--space-24);
	}

	.news-article__share-label {
		font-size: var(--fz-12);
	}

	.entry-content,
	.case-content,
	.post-type-case .is-root-container {
		font-size: var(--fz-13);

		& .wp-block-image:where(:not(.case-section *)),
		& figure:where(:not(.case-section *)) {
			margin-block: var(--space-24);
		}
	}
}

/* パンくず：SP では 1 行に収め、最後の項目を省略（NEWS 詳細など） */
@media (max-width: 599px) {
	.breadcrumb--truncate {
		.breadcrumb__list {
			flex-wrap: nowrap;
		}

		.breadcrumb__item {
			flex-shrink: 0;
			white-space: nowrap;

			&:last-child {
				flex-shrink: 1;
				min-width: 0;
			}
		}

		.breadcrumb__current {
			overflow: hidden;
			text-overflow: ellipsis;
			font-weight: 400;
		}
	}
}

/* 事例詳細 */
.case-article {
	/* 本文の列（幅 1040px）の左端：コンテンツ幅 1380px の左端にそろえる */
	--case-column-left: max(var(--gutter), (100% - var(--container-max)) / 2);
	/* 上部の紫背景と概要ボックスの重なり */
	--case-overlap: 6.8125rem;
}

.case-article__main {
	position: relative;
}

html:has(.case-index) {
	scroll-behavior: smooth;
}

/* 本文の列 */
.case-hero__inner,
.case-article__body {
	width: min(var(--container-narrow), 100% - var(--gutter) * 2);
	margin-left: var(--case-column-left);
}

/* 上部：アイキャッチ画像に紫を重ねた背景 */
.case-hero {
	position: relative;
	isolation: isolate;
	padding-block: 3.75rem calc(var(--space-12) + var(--case-overlap));
	overflow: hidden;
	color: var(--color-white);
	background: var(--color-primary);

	/* 重なり順：画像（0）→ 紫・黒の層（1）→ 文字（2） */
	&:has(.case-hero__bg) {
		background: var(--color-white);

		&::before {
			position: absolute;
			inset: 0;
			z-index: 1;
			content: "";
			background: rgb(66 9 232 / 0.6);
			mix-blend-mode: hard-light;
		}

		&::after {
			position: absolute;
			inset: 0;
			z-index: 1;
			content: "";
			background: rgb(0 0 0 / 0.1);
		}
	}
}

/* 背景画像：紫を重ねたあとの色がデザインに最も近くなる値（関連事例の背景も同じ） */
.case-hero__bg,
.case-related__bg {
	filter: brightness(0.58) saturate(0.37);
}

.case-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.9;
}

.case-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.case-hero__label {
	padding-block: 0.3125rem;
	font-family: var(--font-serif-en);
	font-size: var(--fz-32);
	line-height: 1.36;
	letter-spacing: 0.02em;
	border-bottom: 1px solid currentcolor;
}

.case-hero__title {
	margin-top: 1.625rem;
	font-family: var(--font-serif);
	font-size: var(--fz-48);
	font-weight: 500;
	line-height: 1.4;
	word-break: auto-phrase;
}

.case-hero__client {
	margin-top: var(--space-12);
	font-size: var(--fz-15);
	line-height: 1.8;
}

.case-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
	margin-top: var(--space-12);
	padding-block: var(--space-8);
}

.case-hero__tag {
	padding: 0.3125rem var(--space-12) 0.375rem;
	font-size: var(--fz-14);
	font-weight: 700;
	line-height: 1;
	color: var(--color-primary);
	background: var(--color-white);
	border-radius: 2.5rem;
}

.case-hero__date {
	align-self: stretch;
	margin-top: 1.625rem;
	font-size: var(--fz-15);
	line-height: 1.8;
	color: rgb(255 255 255 / 0.6);
	text-align: right;
	letter-spacing: 0.05em;
}

/* INDEX（目次）：PC は右側に固定表示 */
.case-index {
	position: absolute;
	top: 2.25rem;
	right: 0;
	bottom: 0;
	z-index: 3;
	/* 本文の列との間 60px が取れない場合は目次を縮める */
	width: min(24.375rem, 100% - var(--case-column-left) - var(--container-narrow) - (var(--gutter) / 2 + 0.3125rem));
	padding-top: var(--header-height);
	pointer-events: none;
}

.case-index__inner {
	position: sticky;
	top: calc(var(--admin-bar) + var(--header-height));
	--case-index-gap: var(--space-16);

	display: flex;
	flex-direction: column;
	padding: var(--space-24) var(--space-16) var(--space-32) 1.75rem;
	letter-spacing: 0.125rem;
	pointer-events: auto;
	background: rgb(255 255 255 / 0.94);
	border-left: 1px solid var(--color-border-light);
}

.case-index__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--space-10);
}

.case-index__title {
	font-family: var(--font-serif);
	font-size: var(--fz-16);
	line-height: 1.4;
	color: var(--color-text-sub);
}

/* 開閉ボタン（－ / ＋） */
.case-index__toggle {
	position: relative;
	width: 1.5rem;
	height: 1.5rem;
	color: #4772bd;

	&::before,
	&::after {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 0.875rem;
		height: 2px;
		content: "";
		background: currentcolor;
		translate: -50% -50%;
		transition: rotate var(--duration) var(--easing);
	}

	&::after {
		rotate: 90deg;
	}

	&[aria-expanded="true"]::after {
		rotate: 0deg;
	}
}

/* 項目の開閉：高さ（grid の行 0fr ⇔ 1fr）と透明度をなめらかに切り替える。
   閉じたあとは visibility: hidden でリンクにフォーカスが移らないようにする */
.case-index__body {
	display: grid;
	grid-template-rows: 1fr;
	transition:
		grid-template-rows var(--duration) var(--easing),
		opacity var(--duration) var(--easing),
		visibility var(--duration);
}

.case-index__inner:has([aria-expanded="false"]) .case-index__body {
	grid-template-rows: 0fr;
	visibility: hidden;
	opacity: 0;
}

.case-index__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	min-height: 0;
	overflow: hidden;
	font-family: var(--font-serif);
	font-size: var(--fz-14);
	line-height: 1.4;
	color: var(--color-text-sub);
}

.case-index__item {
	display: flex;
	gap: var(--space-4);

	/* 見出しとの間隔・下の余白は、閉じたときに一緒に隠れるよう項目側に付ける */
	&:first-child {
		margin-top: var(--case-index-gap);
	}

	&:last-child {
		margin-bottom: var(--case-index-bottom, 0px);
	}

	&::before {
		content: "・";
	}
}

.case-index__link {
	transition: color 0.35s var(--easing-out);

	&[aria-current="true"] {
		color: var(--color-primary);
	}
}

/* 2 行になる項目でも文字に沿うよう、インラインの背景で下線を引く */
.case-index__text {
	background: linear-gradient(var(--color-primary), var(--color-primary)) no-repeat left bottom / 0 1px;
	transition: background-size 0.35s var(--easing-out);
}

@media (hover: hover) {
	.case-index__link:hover {
		color: var(--color-primary);

		.case-index__text {
			background-size: 100% 1px;
		}
	}
}

/* 本文の列 */
.case-article__body {
	position: relative;
	z-index: 2;
	padding-bottom: 5.75rem;
}

/* プロジェクト概要：画像＋概要表 */
.case-overview {
	display: flex;
	align-items: flex-start;
	margin-top: calc(var(--case-overlap) * -1);
	background: var(--color-white);
	scroll-margin-top: var(--space-24); /* ヘッダー分は html の scroll-padding-top で空けている */
}

.case-overview__image {
	flex: none;
	width: 34.375rem;
	aspect-ratio: 550 / 377;
}

.case-overview__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.case-overview__list {
	flex: 1;
	min-width: 0;
	padding: var(--space-32);
	font-size: var(--fz-14);
	line-height: 1.8;
}

.case-overview__row {
	display: flex;
	padding-block: var(--space-12);
	border-bottom: 1px solid var(--color-border-light);
}

.case-overview__term {
	flex: none;
	width: 6.25rem;
	font-weight: 700;
	color: #605894;
}

.case-overview__desc {
	flex: 1;
	min-width: 0;
	color: var(--color-text);
}

.case-content {
	margin-top: 3.75rem;
}

/* 本文のセクションの前後は 60px（標準ブロックどうしは .entry-content と同じ 1 行分） */
:is(.case-content, .post-type-case .is-root-container) > :is(* + .case-section, .case-section + *) {
	margin-top: 3.75rem;
}

/* 本文のセクション（カスタムブロック。エディタでも同じ見た目） */
.case-section {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
	scroll-margin-top: var(--space-24); /* ヘッダー分は html の scroll-padding-top で空けている */
}

/* 導入背景 */
.case-content:has(> .case-background:first-child) {
	margin-top: var(--space-32);
}

.case-background {
	gap: var(--space-24);
}

/* 和文のみのため、和文の明朝で表示（セクション見出しの和文と同じ） */
.case-background__label {
	font-family: var(--font-serif);
	font-size: var(--fz-15);
	font-weight: 400;
	line-height: 1.4;
	color: var(--color-primary);
	letter-spacing: 0.02em;
}

.case-background__heading {
	font-family: var(--font-serif);
	font-size: var(--fz-22);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-primary);
}

.case-background__text {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);
}

.case-objective__lead {
	font-family: var(--font-serif);
	font-size: var(--fz-22);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-primary);
}

.case-objective__text,
.case-solution__text,
.case-figure__text {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);
}

/* 課題・結果の箇条書き：1 項目ずつ帯にする */
.case-problem__body,
.case-outcome__body {
	ul {
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	li {
		--case-item-lh: 2.2;

		position: relative;
		padding: var(--space-12) var(--space-12) var(--space-12) 2.25rem;
		font-size: var(--fz-16);
		font-weight: 700;
		line-height: var(--case-item-lh);

		/* 行頭の黒丸（1 行目の中央にそろえる） */
		&::before {
			position: absolute;
			top: calc(var(--space-12) + var(--case-item-lh) * 0.5em - 0.175em);
			left: 1.3125rem;
			width: 0.35em;
			height: 0.35em;
			content: "";
			background: currentcolor;
			border-radius: 50%;
		}
	}
}

.case-problem__body li {
	color: var(--color-text);
	background: var(--color-bg-light);
}

.case-outcome__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);

	li {
		color: var(--color-white);
		background: var(--color-primary);
	}

	p {
		font-size: var(--fz-15);
		line-height: 1.8;
		color: var(--color-primary);
	}
}

/* Our Solution */
.case-solution__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
}

.case-solution__item {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
}

.case-solution__heading {
	padding: var(--space-24) var(--space-8) var(--space-8);
	font-size: var(--fz-20);
	font-weight: 700;
	line-height: 1.8;
	color: var(--color-text);
	border-bottom: 1px solid #dedeed;
}

/* 図 */
.case-figure {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

.case-figure__caption {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding-block: var(--space-8);
}

.case-figure__title {
	font-family: var(--font-serif);
	font-size: var(--fz-22);
	line-height: 1.5;
	color: var(--color-primary);
	letter-spacing: 0.02em;
}

.case-figure__img {
	width: 100%;
}

/* SP 用の図は 343px より大きくしない（図の中の文字が本文より大きくならないように） */
@media (max-width: 599px) {
	.case-figure__image--sp {
		display: block;
		width: 100%;
		max-width: 21.4375rem;
		margin-inline: auto;
	}
}

/* 関連事例 */
.case-related {
	position: relative;
	isolation: isolate;
	padding-block: 4.5rem;
	overflow: hidden;
	color: var(--color-white);
	background: var(--color-white);

	&::before {
		position: absolute;
		inset: 0;
		z-index: 1;
		content: "";
		background: rgb(66 9 232 / 0.6);
		mix-blend-mode: hard-light;
	}

	&::after {
		position: absolute;
		inset: 0;
		z-index: 1;
		content: "";
		background: rgb(0 0 0 / 0.1);
	}

	.section-heading {
		color: var(--color-white);
	}

	.section-heading__title::before {
		background: rgb(255 255 255 / 0.6);
	}

	.section-heading__sub {
		letter-spacing: 0.13em;
	}
}

.case-related__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.9;
}

/* 暗い背景（ソリューション詳細の事例紹介）：画像に黒 65% を重ねる */
.case-related--dark {
	background: #000;

	&::before {
		background: rgb(0 0 0 / 0.65);
		mix-blend-mode: normal;
	}

	&::after {
		content: none;
	}

	.case-related__bg {
		filter: none;
		opacity: 1;
	}
}

.case-related__inner {
	position: relative;
	z-index: 2;
	display: flex;
	gap: var(--space-32);
	align-items: flex-end;
	justify-content: space-between;
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

/* 事例を出さないときの文言（守秘義務で非公開の領域） */
.case-related__note {
	position: relative;
	z-index: 2;
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin: var(--space-32) auto 0;
	font-size: var(--fz-14);
	font-weight: 350;
	line-height: 1.8;
}

/* 前へ・次へボタンは見出しの右端 */
.case-related__controls {
	display: flex;
	flex: none;
	gap: var(--space-8);
}

.case-related__button {
	display: grid;
	place-items: center;
	width: 2.375rem;
	height: 2.375rem;
	font-family: var(--font-en);
	font-size: var(--fz-16);
	line-height: 1;
	color: var(--color-white);
	border: 1px solid rgb(255 255 255 / 0.73);
	border-radius: 50%;
	transition:
		background-color var(--duration) var(--easing),
		opacity var(--duration) var(--easing);

	&:disabled {
		cursor: default;
		opacity: 0.3;
	}
}

@media (hover: hover) {
	.case-related__button:not(:disabled):hover {
		background: rgb(255 255 255 / 0.15);
	}
}

/* カードの列：右端は画面の端まで。横スクロール（ボタン・スワイプ） */
.case-related__list {
	position: relative;
	z-index: 2;
	display: flex;
	gap: var(--space-32);
	margin-top: var(--space-32);
	padding-inline: max(var(--gutter), (100% - var(--container-max)) / 2);
	padding-bottom: 0.375rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), (100% - var(--container-max)) / 2);
	scrollbar-width: none;

	&::-webkit-scrollbar {
		display: none;
	}
}

.related-card {
	flex: none;
	width: 30rem;
	aspect-ratio: 4 / 3;
	scroll-snap-align: start;
}

.related-card__link {
	position: relative;
	display: block;
	height: 100%;
	overflow: hidden;
	color: var(--color-white);
	background: #04000b;
	border: 0.5px solid rgb(255 255 255 / 0.5);

	&::after {
		position: absolute;
		inset: 0;
		content: "";
		background: rgb(0 0 0 / 0.1);
	}
}

.related-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 0.6s var(--easing);
}

.related-card__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding: var(--space-20) var(--space-24) var(--space-24);
	background: rgb(0 0 0 / 0.5);
}

.related-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
}

.related-card__tag {
	padding: var(--space-4) var(--space-10);
	font-size: var(--fz-14);
	line-height: 1;
	color: rgb(255 255 255 / 0.7);
	background: rgb(86 123 255 / 0.4);
	border-radius: 2.5rem;
}

.related-card__title {
	font-size: var(--fz-16);
	line-height: 1.75;
	letter-spacing: 0.08em;
}

@media (hover: hover) {
	.related-card__link:hover .related-card__img {
		scale: 1.05;
	}
}

/* タブレット：目次は上部の下に置き、本文の列は中央寄せ */
@media (max-width: 1279px) {
	.case-hero__inner,
	.case-article__body {
		margin-inline: auto;
	}

	.case-hero {
		padding-top: var(--space-48);
	}

	.case-hero__title {
		font-size: var(--fz-38);
	}

	.case-index {
		position: relative;
		inset: auto;
		z-index: 3;
		width: auto;
		padding: 0;
		pointer-events: auto;
	}

	.case-index__inner {
		--case-index-gap: 0px;

		position: static;
		width: min(var(--container-narrow), 100% - var(--gutter) * 2);
		margin: calc(var(--case-overlap) * -1) auto 0;
		--case-index-bottom: var(--space-16);

		padding: var(--space-4) var(--space-24);
		letter-spacing: 0.125rem;
		background: rgb(255 255 255 / 0.95);
		border: 1px solid var(--color-border-light);
	}

	.case-index__list {
		gap: var(--space-4);
	}

	/* 目次を上部の紫背景に重ねたので、概要ボックスは重ねない */
	.case-overview {
		margin-top: var(--space-32);
	}

	.case-overview__image {
		width: 50%;
	}

	.case-overview__list {
		padding: var(--space-24);
	}

	.case-related__list {
		gap: var(--space-24);
	}

	.related-card {
		width: 25rem;
	}
}

/* スマホ */
@media (max-width: 599px) {
	.case-article {
		--case-overlap: 0px;
	}

	.case-hero {
		padding: var(--space-24) 1.25rem var(--space-12);
	}

	.case-hero__inner {
		width: auto;
	}

	.case-hero__label {
		padding-block: 0.15625rem;
		font-size: var(--fz-18);
		border-bottom-width: 0.5px;
	}

	.case-hero__title {
		margin-top: var(--space-16);
		font-size: var(--fz-24);
		word-break: normal; /* SP は文節で区切らず、行いっぱいに詰める */
	}

	.case-hero__client {
		margin-top: var(--space-8);
		font-size: var(--fz-13);
	}

	.case-hero__tags {
		margin-top: var(--space-8);
	}

	.case-hero__tag {
		padding: var(--space-4) var(--space-12) 0.3125rem;
		font-size: var(--fz-12);
	}

	.case-hero__date {
		margin-top: var(--space-8);
		font-size: var(--fz-12);
		line-height: 1.5;
	}

	/* SP：目次はヘッダーの下に固定（本文の終わりまで）。場所を取るのは閉じたときの高さだけにし、
	   開いた分は下の内容に重ねる（自動で閉じるときにガタつかないように。assets/js/main.js）。
	   最初は開いているので、その分（--case-index-overlap）を概要の上に空ける */
	.case-index {
		position: sticky;
		top: calc(var(--admin-bar) + var(--header-height));
	}

	/* 重ねる作りは事例詳細だけ（同じ部品を使う採用情報の下層ページなどは、これまでどおり目次の分だけ場所を取る） */
	.case-article:not(.recruit-article) .case-index {
		height: 3rem;
	}

	.case-article .case-overview {
		margin-top: calc(var(--space-32) + var(--case-index-overlap, 0px));
	}

	.case-index__inner {
		width: auto;
		margin: 0;
		padding: var(--space-4) 1.125rem; /* 閉じたときの高さ */
		border: 0;
	}

	.case-index__title {
		font-size: var(--fz-14);
	}

	.case-index__toggle {
		width: 1.25rem;
		height: 1.25rem;

		&::before,
		&::after {
			width: 0.6875rem;
			height: 1.5px;
		}
	}

	.case-index__list {
		font-family: var(--font-sans);
		font-size: var(--fz-13);

		.case-index__item::before {
			font-size: var(--fz-14);
		}
	}

	/* 目次リンクの移動先：固定した目次（閉じた状態 48px）の下に来るように */
	.case-overview,
	.case-section {
		scroll-margin-top: 3rem;
	}

	.case-article__body {
		width: auto;
		padding-bottom: 0;
	}

	.case-overview {
		flex-direction: column;
		margin-top: 0;
	}

	.case-overview__image {
		width: 100%;
	}

	.case-overview__list {
		align-self: stretch;
		padding: 1.25rem;
		line-height: 1.5;
	}

	.case-overview__row {
		padding-block: var(--space-8);
	}

	.case-overview__term {
		font-size: var(--fz-12);
	}

	.case-overview__br {
		display: none;
	}

	.case-overview__desc {
		font-size: var(--fz-13);
	}

	.case-content {
		margin-top: 0;
	}

	.case-section {
		gap: var(--space-24);
		padding: var(--space-24) var(--space-16);
	}

	/* SP：セクションは上下の余白（24px）で区切る。標準ブロックは左右 16px を空ける */
	:is(.case-content, .post-type-case .is-root-container) {
		& > :is(* + .case-section, .case-section + *) {
			margin-top: 0;
		}

		& > :not(.case-section) {
			margin-inline: var(--space-16);
		}

		& > :not(.case-section):first-child {
			margin-top: var(--space-24);
		}

		& > .case-section:last-child {
			padding-bottom: 3.75rem;
		}

		& > :not(.case-section):last-child {
			margin-bottom: 3.75rem;
		}
	}

	/* 導入背景 */
	.case-content:has(> .case-background:first-child) {
		margin-top: 0;
	}

	.case-background {
		gap: var(--space-24);
		padding-top: var(--space-16);
	}

	.case-background__heading {
		font-size: var(--fz-18);
	}

	.case-background__text {
		font-size: var(--fz-13);
	}

	.case-objective__lead {
		margin-bottom: calc(var(--space-12) - var(--space-24));
		font-size: var(--fz-18);
	}

	.case-objective__text,
	.case-solution__text,
	.case-figure__text {
		font-size: var(--fz-13);
	}

	.case-problem__body,
	.case-outcome__body {
		li {
			--case-item-lh: 1.6;

			padding-left: 2.0625rem;
			font-size: var(--fz-14);

			&::before {
				left: 1.125rem;
			}
		}
	}

	.case-outcome__body {
		gap: var(--space-12);

		p {
			font-size: var(--fz-13);
			font-weight: 350;
		}
	}

	.case-solution__body,
	.case-solution__item {
		gap: var(--space-24);
	}

	.case-solution__heading {
		padding: var(--space-16) 0 var(--space-4);
		font-size: var(--fz-16);
	}

	.case-figure {
		gap: 0.6875rem;
	}

	.case-figure__caption {
		gap: var(--space-12);
		padding-block: 0;
	}

	.case-figure__title {
		font-size: var(--fz-18);
		font-weight: 500;
		letter-spacing: 0;
	}

	.case-related {
		padding-block: var(--space-32);
	}

	.case-related__inner {
		gap: var(--space-24);
	}

	/* SP は矢印ボタンなし（スワイプ） */
	.case-related__controls {
		display: none;
	}

	.case-related__list {
		gap: var(--space-16);
		margin-top: var(--space-24);
	}

	.case-related__note {
		margin-top: var(--space-24);
		font-size: var(--fz-13);
	}

	.related-card {
		width: 15rem;
	}

	.related-card__link {
		border-width: 1px;
	}

	.related-card__body {
		gap: var(--space-4);
		padding: var(--space-8) var(--space-10) var(--space-10);
	}

	.related-card__tags {
		gap: var(--space-4);
	}

	.related-card__tag {
		padding: 0.15625rem 0.390625rem;
		font-size: var(--fz-10);
	}

	.related-card__title {
		font-size: var(--fz-11);
		line-height: 1.27;
		letter-spacing: 0.06em;
	}
}

/* 事例の編集画面：本文の列幅をフロントにそろえる */
.post-type-case .is-root-container {
	max-width: var(--container-narrow);
	margin-inline: auto;
	padding-block: 3.75rem;

	/* 本体の .wp-block の既定（最大幅 840px・下の余白 28px）を打ち消す */
	& > .wp-block {
		max-width: none;
		margin-bottom: 0;
	}
}

/* タイトル欄も本文と同じ幅・左端に */
.post-type-case .editor-post-title {
	max-width: var(--container-narrow);
}

@media (max-width: 599px) {
	.post-type-case .is-root-container {
		padding-block: 0;
	}
}

.editor-styles-wrapper {
	/* セクションの中のブロック：本体の .wp-block の既定の余白を打ち消す
	   （左右の auto が残ると、縦並びの flex の中で項目が文字幅に縮んで中央に寄る） */
	.case-section .wp-block {
		max-width: none;
		margin: 0;
	}

	.case-figure__placeholder {
		display: grid;
		place-items: center;
		min-height: 12.5rem;
		background: #f4f5fc;
	}

	.cocoe-image-control {
		display: flex;
		gap: var(--space-8);
	}
}

/* ソリューション詳細（目次・事例紹介は事例詳細と同じ部品。編集画面でも同じ見た目） */
.solution-article {
	--case-overlap: 0px; /* 上部に重ねる要素はない（タブレットの目次も重ねない） */
}

/* 本文の列：幅 1040px、左端はコンテンツ幅 1380px の左端（事例詳細と同じ） */
.solution-column {
	width: min(var(--container-narrow), 100% - var(--gutter) * 2);
	margin-left: var(--case-column-left);
}

/* 上部：ラベル・大見出し・英語名・キャッチコピー・リード文 */
.solution-hero {
	padding-block: var(--space-48);
	color: var(--color-primary);
	scroll-margin-top: var(--space-24);
}

.solution-hero__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-40);
	align-items: flex-start;

	/* 文章の幅は 724px まで（目次と重ならないように） */
	& > * {
		max-width: 45.25rem;
	}
}

.solution-hero__head {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	align-items: flex-start;
}

.solution-hero__label {
	padding-block: 0.3125rem;
	font-family: var(--font-serif-en);
	font-size: var(--fz-32);
	line-height: 1.36;
	letter-spacing: 0.02em;
	border-bottom: 1px solid currentcolor;
}

.solution-hero__title {
	font-family: var(--font-serif);
	font-size: 4.25rem;
	font-weight: 500;
	line-height: 1.44;
	word-break: auto-phrase;
}

.solution-hero__en {
	font-size: var(--fz-18);
	line-height: 1.2;
	letter-spacing: 0.125rem;
}

.solution-hero__catch {
	font-family: var(--font-serif);
	font-size: var(--fz-38);
	font-weight: 500;
	line-height: 1.25;
	word-break: auto-phrase;
}

.solution-hero__lead {
	margin-top: calc(var(--space-32) - var(--space-40));
	font-size: var(--fz-14);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);
}

/* 本文：Feature・Method などは列の中、Problem・Service は全幅（中で列にそろえる） */
.solution-content,
.post-type-solution .is-root-container {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: var(--lh-body);
	color: var(--color-text);
	overflow-wrap: anywhere;

	& > :not(.solution-problem, .solution-service) {
		width: min(var(--container-narrow), 100% - var(--gutter) * 2);
		margin-left: var(--case-column-left);
	}

	& > * + * {
		margin-top: var(--space-48);
	}

	& > :is(* + .solution-problem, .solution-problem + *, * + .solution-service, .solution-service + *) {
		margin-top: 3.75rem;
	}

	& > :first-child:not(.solution-problem, .solution-service) {
		margin-top: 3.75rem;
	}

	& > :last-child:not(.solution-problem, .solution-service) {
		margin-bottom: 3.75rem;
	}
}

.solution-section {
	scroll-margin-top: var(--space-24); /* ヘッダー分は html の scroll-padding-top で空けている */
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);

	.section-heading__sub {
		letter-spacing: 0.02em;
	}
}

/* Problem：背景画像の下側に半透明の帯（見出し＋カード） */
.solution-problem {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 53.75rem;
	padding-top: 12rem;
	color: var(--color-white);
	background: #251c3e;

	.section-heading {
		color: var(--color-white);
	}

	.section-heading__sub {
		letter-spacing: 0.125rem;
	}
}

.solution-problem__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * ページの途中の背景のパララックス（data-parallax-mode="section"。移動量は assets/js/main.js で --parallax-y に設定）
 * 画像を枠より上下に --parallax-extend ずつ大きくし、その範囲でずらす。大きくするほど左右が切れるので、課題は 10% にとどめる
 */
.solution-problem,
.case-related--dark {
	overflow: clip;
}

[data-parallax-mode="section"] {
	--parallax-extend: 20%;

	inset: calc(var(--parallax-extend) * -1) 0 auto;
	height: calc(100% + var(--parallax-extend) * 2);
	transform: translate3d(0, var(--parallax-y, 0), 0);
	will-change: transform;
}

.solution-problem__bg {
	--parallax-extend: 10%;
}

.solution-problem__panel {
	padding-block: var(--space-48);
	background: rgb(37 28 62 / 0.7);
}

.solution-problem__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
}

.solution-problem__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-24);
}

.solution-problem__item {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	min-height: 10.1875rem;
	padding: var(--space-32);

	/* 紫を乗算で重ねる（背景画像が少し透ける） */
	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: var(--color-primary);
		mix-blend-mode: multiply;
	}
}

.solution-problem__title {
	font-size: var(--fz-16);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.055em;
}

.solution-problem__text {
	max-width: 23.1875rem;
	font-size: var(--fz-14);
	line-height: 1.8;
	color: rgb(255 255 255 / 0.8);
}

/* Feature・Method */
.solution-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
}

.solution-body__content {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);

	& > p,
	& > ul {
		font-size: var(--fz-15);
		line-height: 1.8;
	}

	& > ul {
		padding-left: 1.5em;
		list-style: disc;
	}
}

.solution-lead {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding-block: var(--space-8);
}

.solution-lead__heading {
	font-family: var(--font-serif);
	font-size: var(--fz-22);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-primary);
}

.solution-lead__text {
	font-size: var(--fz-15);
	line-height: 1.8;
	color: var(--color-text);
}

/* 小見出し：下に細い線。直後の図・カードとの間は詰める */
.solution-subheading {
	padding-bottom: var(--space-8);
	font-size: var(--fz-16);
	font-weight: 700;
	line-height: 1.5;
	color: var(--color-text);
	border-bottom: 1px solid var(--color-border-lighter);

	& + * {
		margin-top: calc(var(--space-16) - var(--space-32));
	}
}

.solution-points {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-24);
}

.solution-point {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: var(--space-24);
	border: 1px solid var(--color-border);
}

.solution-point__title {
	font-size: var(--fz-16);
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-primary);
	letter-spacing: 0.055em;
}

.solution-point__text {
	font-size: var(--fz-14);
	line-height: 1.8;
	color: var(--color-text-sub);
}

/* Service / Technology：薄い色の背景。行は「番号・名前（紫）＋項目（白・2 列）」 */
.solution-service {
	padding-block: 3.6875rem;
	background: var(--color-bg-light);
}

.solution-service__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
}

.solution-service__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

.solution-service__item {
	display: flex;
	background: var(--color-white);
}

.solution-service__name {
	display: flex;
	flex: none;
	flex-direction: column;
	width: 12.5rem;
	padding: var(--space-16) var(--space-20);
	font-family: var(--font-serif-en);
	font-size: var(--fz-20);
	font-weight: 400;
	line-height: 1.35;
	color: var(--color-white);
	background: var(--color-primary);
}

.solution-service__body {
	flex: 1;
	min-width: 0;
	padding: var(--space-20);

	ul {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(23.75rem, 100%), 1fr));
		gap: var(--space-8) 0;
		padding-left: 1.25rem;
		font-size: var(--fz-14);
		font-weight: 500;
		line-height: 1.8;
		color: var(--color-text-sub);
		list-style: disc;
	}

	li {
		padding-right: 1.25rem;
	}

	li::marker {
		font-size: 0.8em;
	}
}

/* タブレット */
@media (max-width: 1279px) {
	.solution-column,
	.solution-content > :not(.solution-problem, .solution-service),
	.post-type-solution .is-root-container > :not(.solution-problem, .solution-service) {
		margin-inline: auto;
	}

	.solution-hero__title {
		font-size: var(--fz-52);
	}

	.solution-hero__catch {
		font-size: var(--fz-32);
	}

	.solution-problem {
		min-height: 0;
		padding-top: 15rem;
	}
}

/* スマホ */
@media (max-width: 599px) {
	.solution-column,
	.solution-content > :not(.solution-problem, .solution-service),
	.post-type-solution .is-root-container > :not(.solution-problem, .solution-service) {
		width: auto;
		margin-inline: var(--space-16);
	}

	.solution-hero {
		padding-block: var(--space-24);
	}

	.solution-hero__inner {
		gap: var(--space-24);
	}

	.solution-hero__label {
		padding-block: 0.15625rem;
		font-size: var(--fz-18);
		border-bottom-width: 0.5px;
	}

	.solution-hero__title {
		margin-top: var(--space-8);
		font-size: 2.25rem;
		line-height: 1.4;
		word-break: normal;
	}

	.solution-hero__en {
		font-size: var(--fz-12);
		letter-spacing: 0.05em;
	}

	.solution-hero__catch {
		font-size: var(--fz-20);
		word-break: normal;
	}

	.solution-hero__lead {
		margin-top: calc(var(--space-16) - var(--space-24));
		font-size: var(--fz-13);
	}

	/* 目次リンクの移動先：固定した目次（閉じた状態 48px）の下に来るように */
	.solution-hero,
	.solution-section {
		scroll-margin-top: 3rem;
	}

	/*
	 * 目次：場所を取るのは閉じたときの高さだけにし、開いた分は下の内容に重ねる（assets/js/main.js）。
	 * 最初は開いているので、その分（--case-index-overlap）を下の内容の上に空ける
	 */
	.solution-article .case-index {
		height: 3rem;
	}

	.solution-content > .solution-problem:first-child {
		padding-top: calc(var(--space-32) + var(--case-index-overlap, 0px));
	}

	.solution-content > :first-child:not(.solution-problem) {
		margin-top: calc(var(--space-40) + var(--case-index-overlap, 0px));
	}

	.solution-content,
	.post-type-solution .is-root-container {
		& > * + * {
			margin-top: var(--space-40);
		}

		& > :is(* + .solution-problem, .solution-problem + *, * + .solution-service, .solution-service + *),
		& > :first-child:not(.solution-problem, .solution-service) {
			margin-top: var(--space-40);
		}

		& > :last-child:not(.solution-problem, .solution-service) {
			margin-bottom: var(--space-40);
		}
	}

	.solution-section {
		font-size: var(--fz-13);
	}

	/* Problem：見出しは画像の上、カードの部分だけ半透明の帯 */
	.solution-problem {
		padding-block: var(--space-32);
	}

	.solution-problem__panel {
		padding: 0;
		background: none;
	}

	.solution-problem__inner {
		gap: var(--space-40);
	}

	.solution-problem__list {
		grid-template-columns: 1fr;
		gap: var(--space-16);
		margin: 0 calc(var(--space-16) * -1) calc(var(--space-32) * -1);
		padding: var(--space-16);
		background: rgb(37 28 62 / 0.7);
	}

	.solution-problem__item {
		gap: var(--space-8);
		min-height: 0;
		padding: var(--space-16) var(--space-20);
	}

	.solution-problem__title {
		font-size: var(--fz-14);
	}

	.solution-problem__text {
		max-width: none;
		font-size: var(--fz-12);
	}

	.solution-body,
	.solution-body__content {
		gap: var(--space-24);
	}

	.solution-body__content > :is(p, ul) {
		font-size: var(--fz-13);
	}

	.solution-lead {
		gap: var(--space-12);
		padding-block: 0;
	}

	.solution-lead__heading {
		font-size: var(--fz-18);
	}

	.solution-lead__text {
		font-size: var(--fz-13);
	}

	.solution-subheading {
		font-size: var(--fz-14);

		& + * {
			margin-top: calc(var(--space-12) - var(--space-24));
		}
	}

	.solution-points {
		grid-template-columns: 1fr;
		gap: var(--space-12);
	}

	.solution-point {
		gap: var(--space-8);
		padding: var(--space-16);
	}

	.solution-point__title {
		font-size: var(--fz-14);
	}

	.solution-point__text {
		font-size: var(--fz-12);
	}

	.solution-service {
		padding-block: var(--space-32);
	}

	.solution-service__inner {
		gap: var(--space-24);
	}

	.solution-service__list {
		gap: var(--space-12);
	}

	.solution-service__name {
		width: 5rem;
		padding: var(--space-16) var(--space-10);
		font-size: var(--fz-13);
		overflow-wrap: anywhere;
	}

	.solution-service__body {
		padding: var(--space-12) var(--space-8);

		ul {
			grid-template-columns: 1fr;
			gap: 0.375rem;
			font-size: var(--fz-12);
		}

		li {
			padding-right: 0;
		}
	}
}

/* ソリューションの編集画面：本文を全幅にし、列はフロントと同じ位置（中央）に */
.post-type-solution .is-root-container {
	--case-column-left: max(var(--gutter), (100% - var(--container-narrow)) / 2);

	padding: 0 0 3.75rem;

	/* 本体の .wp-block の既定（最大幅 840px・下の余白 28px）を打ち消す */
	& > .wp-block {
		max-width: none;
		margin-bottom: 0;
	}

	& > .solution-problem,
	& > .solution-service {
		margin-inline: 0;
	}
}

.post-type-solution .editor-post-title {
	max-width: var(--container-narrow);
}

.editor-styles-wrapper {
	.solution-section .wp-block {
		max-width: none;
		margin: 0;
	}

	/* 中のブロックの選択枠でレイアウトが崩れないように、項目は幅いっぱいに */
	.solution-problem__list > .block-list-appender,
	.solution-points > .block-list-appender {
		grid-column: 1 / -1;
	}

	.solution-problem__placeholder {
		padding: var(--space-16);
		background: rgb(255 255 255 / 0.9);
	}
}

/* 専門家紹介 */
/* 顧問・メンバー */
.expert {
	display: flex;
	flex-direction: column;
	gap: 3.75rem;
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 1.875rem 3.75rem;
}

.expert__section {
	display: flex;
	flex-direction: column;
	gap: var(--space-20);
}

.expert__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-48);
}

.expert-card {
	display: flex;
	flex-direction: column;
	scroll-margin-top: var(--space-24); /* トップページからのリンクで移動したとき、ヘッダーとの間を空ける */
}

/*
 * スクロールで表示（data-js="reveal"。assets/js/main.js）。JS が動くときだけ最初は隠す
 * 同時に画面に入ったものは --reveal-delay で少しずつ遅らせる（main.js）
 * - 標準：下からふわっと
 * - data-reveal="blur"：ぼかしが取れながら、ゆっくり下から（MISSION のキャッチ）
 * - data-reveal="fade"：その場でゆっくり（写真）
 * - data-reveal="band"：文字色の帯が左から伸び、引くのに合わせて文字が出る（MISSION の見出し。ページタイトルと同じ動き）
 */
.is-reveal-ready [data-js="reveal"] {
	opacity: 0;
	translate: 0 2rem;
	transition:
		opacity 0.8s var(--easing),
		translate 0.8s var(--easing-out);
	transition-delay: calc(var(--reveal-delay, 0s) + var(--reveal-extra, 0s)); /* --reveal-extra：要素ごとに足す待ち時間 */

	/* 表示後は none（重なりの順序・mix-blend-mode に影響しないように） */
	&.is-revealed {
		opacity: 1;
		translate: none;
	}
}

.is-reveal-ready [data-js="reveal"][data-reveal="blur"] {
	filter: blur(0.75rem);
	translate: 0 1.5rem;
	transition:
		opacity 1.4s var(--easing),
		translate 1.6s cubic-bezier(0.25, 1, 0.3, 1),
		filter 1.6s cubic-bezier(0.45, 0, 0.55, 1);
	transition-delay: calc(var(--reveal-delay, 0s) + var(--reveal-extra, 0s));

	&.is-revealed {
		filter: none;
	}
}

/* data-reveal="fade" */
.is-reveal-ready [data-js="reveal"][data-reveal="fade"] {
	translate: none;
	transition: opacity 1.2s var(--easing);
	transition-delay: calc(var(--reveal-delay, 0s) + var(--reveal-extra, 0s));
}

.is-reveal-ready [data-js="reveal"][data-reveal="band"] {
	position: relative;
	visibility: hidden;
	opacity: 1;
	translate: none;
	transition: none;

	&::before {
		position: absolute;
		inset: 0;
		visibility: visible;
		content: "";
		background: currentcolor;
		transform: scaleX(0);
		transform-origin: left center;
	}

	&.is-revealed {
		animation: hero-text 0.8s var(--reveal-delay, 0s) both;

		&::before {
			animation: hero-band 0.8s var(--reveal-delay, 0s) cubic-bezier(0.77, 0, 0.18, 1) both;
		}
	}
}

.expert-card__image {
	aspect-ratio: 428 / 418;
	overflow: hidden;
	background: linear-gradient(#d6d5df, var(--color-white));
}

.expert-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.expert-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.375rem;
	padding-top: 1.375rem;
	padding-bottom: var(--space-20);
	text-align: center;
	background: var(--color-bg-light);
}

.expert-card__role {
	padding-block: 2px;
	font-size: var(--fz-15);
	line-height: 1.2;
	color: var(--color-text-muted);
	letter-spacing: 0.125rem;
}

.expert-card__name {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--space-12);
	align-items: baseline;
	justify-content: center;
	padding-inline: var(--space-16);
	font-weight: 400;
}

.expert-card__name-ja {
	font-size: var(--fz-22);
	line-height: 1.2;
	color: #000;
	letter-spacing: 0.125rem;
}

.expert-card__name-en {
	font-family: var(--font-en);
	font-size: var(--fz-14);
	line-height: 1.2;
	color: var(--color-text-light);
	letter-spacing: 0.14em;
}

.expert-card__profile {
	padding: var(--space-16) 1.75rem 0;
	font-size: var(--fz-14);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);
	text-align: left;
}

/* タブレット：2 列 */
@media (max-width: 1279px) {
	.expert__list {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-32);
	}
}

/* スマホ：1 列 */
@media (max-width: 599px) {
	.expert {
		gap: var(--space-40);
		padding-block: var(--space-40);
	}

	.expert__section {
		gap: var(--space-24);
	}

	.expert__list {
		grid-template-columns: 1fr;
		gap: var(--space-16);
	}

	.expert-card__body {
		gap: 0.3rem;
		padding-block: 1.1rem;
	}

	.expert-card__role {
		font-size: var(--fz-12);
	}

	.expert-card__name-ja {
		font-size: var(--fz-18);
	}

	.expert-card__name-en {
		font-size: var(--fz-11);
	}

	.expert-card__profile {
		padding: var(--space-12) 1.375rem 0;
		font-size: var(--fz-12);
	}
}

/* お問い合わせ（Contact Form 7。完了ページも同じテンプレート） */
.contact {
	padding: var(--space-24) var(--gutter) 4.5rem;
	background: var(--color-bg-light);
}

.contact__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
	width: min(var(--container-narrow), 100%);
	margin-inline: auto;
}

.contact__lead {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);
	text-align: center;
}

/* 完了ページ：トップページへ戻る */
.contact__home {
	text-align: center;

	a {
		display: inline-block;
		padding: var(--space-16) var(--space-48);
		font-size: var(--fz-15);
		color: var(--color-primary);
		letter-spacing: 0.1em;
		border: 1px solid var(--color-primary);
		transition:
			color var(--duration) var(--easing),
			background-color var(--duration) var(--easing);
	}
}

@media (hover: hover) {
	.contact__home a:hover {
		color: var(--color-white);
		background: var(--color-primary);
	}
}

/* フォーム（白い枠） */
.contact-form {
	padding: 2.5rem 3.5rem 3.5rem;
	background: var(--color-white);
	border-radius: var(--space-8);
}

.contact-form__row {
	display: grid;
	grid-template-columns: min(20.625rem, 34%) 1fr;
	border-bottom: 1px solid var(--color-border-lighter);
}

.contact-form__label {
	display: flex;
	gap: var(--space-8);
	align-items: flex-start;
	justify-content: space-between;
	padding: 1.3125rem 0.8125rem 1.3125rem var(--space-16);
	font-size: var(--fz-16);
	line-height: 1.75;
	color: var(--color-text);
	letter-spacing: 0.1em;
}

.contact-form__required {
	flex: none;
	margin-top: 0.09375rem;
	padding-inline: 0.4375rem;
	font-size: var(--fz-12);
	line-height: 1.3125rem;
	color: var(--color-white);
	letter-spacing: 0.1em;
	background: var(--color-text);
}

.contact-form__field {
	min-width: 0;
	padding: var(--space-16);
	font-size: var(--fz-16);
	line-height: 1.75;
	color: var(--color-text);
	letter-spacing: 0.1em;

	/* 入力欄 */
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	textarea {
		display: block;
		width: 100%;
		padding: var(--space-8) var(--space-12);
		font: inherit;
		color: inherit;
		letter-spacing: 0.05em;
		background: var(--color-white);
		border: 1px solid var(--color-border);
		border-radius: 3px;
	}

	input[type="text"],
	input[type="email"],
	input[type="tel"] {
		height: 2.5rem;
	}

	textarea {
		height: 10.5rem;
		resize: vertical;
	}

	/* 選択欄（エントリーの希望職種・生年月日） */
	select {
		display: block;
		width: 100%;
		height: 2.5rem;
		padding: 0 2.25rem 0 0.875rem;
		font: inherit;
		color: inherit;
		letter-spacing: 0.1em;
		cursor: pointer;
		background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6.2'%3E%3Cpath d='M.6.6 5 5l4.4-4.4' fill='none' stroke='%23333' stroke-width='1.2'/%3E%3C/svg%3E") right 1rem center / 0.625rem no-repeat;
		border: 1px solid var(--color-border);
		border-radius: 3px;
		appearance: none;

		/* 未選択（「選択してください」「年」など）は薄い文字 */
		&:has(option:checked[value=""]) {
			color: #ababab;
		}

		option {
			color: var(--color-text);
		}
	}

	/* ファイルの選択 */
	input[type="file"] {
		max-width: 100%;
		padding-block: var(--space-4);
		font: inherit;
		font-size: var(--fz-15);
		color: var(--color-text-muted);
		letter-spacing: 0;
		cursor: pointer;

		&::file-selector-button {
			height: 2.0625rem;
			margin-right: 0.875rem;
			padding-inline: 0.875rem;
			font: inherit;
			color: var(--color-text-muted);
			cursor: pointer;
			background: var(--color-border-lighter);
			border: 1px solid var(--color-border);
		}
	}

	input:focus-visible,
	select:focus-visible,
	textarea:focus-visible {
		border-color: var(--color-primary);
		outline: 2px solid rgb(66 9 232 / 0.2);
	}

	/* チェックボックス（お問い合わせ内容・同意） */
	.wpcf7-checkbox,
	.wpcf7-acceptance {
		display: flex;
		flex-direction: column;
		gap: var(--space-8);
	}

	.wpcf7-checkbox {
		padding-block: 0.375rem;
	}

	.wpcf7-list-item {
		margin: 0;
	}

	.wpcf7-list-item label {
		display: inline-flex;
		gap: var(--space-8);
		align-items: center;
		cursor: pointer;
	}

	input[type="checkbox"] {
		flex: none;
		width: 1rem;
		height: 1rem;
		margin: 0;
		cursor: pointer;
		background: var(--color-white) center / 0.75rem no-repeat;
		border: 2px solid #788b93;
		appearance: none;

		&:checked {
			background-color: var(--color-primary);
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3.4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
			border-color: var(--color-primary);
		}

		&:focus-visible {
			outline: 2px solid var(--color-primary);
			outline-offset: 2px;
		}
	}
}

/* 項目名の補足（「（PDF等 2MBまで）」など）。PC は改行して 2 行目に（折り返さない） */
.contact-form__note {
	display: block;
	white-space: nowrap;
}

/* 履歴書の形式の注記は長いので、項目名の列の幅で折り返す */
.contact-form__row:has(#ef-resume) {
	.contact-form__label > label {
		min-width: 0;
	}

	.contact-form__note {
		white-space: normal;
	}
}

/* エントリーの応募種別：PC・タブレットは横に並べる */
.contact-form__field [data-name="entry-type"] .wpcf7-checkbox {
	flex-flow: row wrap;
	column-gap: 2.375rem;
}

/* 生年月日：年・月・日の選択欄を「/」で区切って並べる */
.contact-form__date {
	display: flex;
	gap: 0.5rem;
	align-items: center;

	.wpcf7-form-control-wrap {
		flex: none;
		width: 8.5625rem;
	}
}

.contact-form__date-sep {
	font-weight: 500;
}

/* プライバシーポリシー（スクロールする枠） */
.contact-form__policy {
	height: 8.75rem;
	padding: var(--space-8) var(--space-16);
	overflow-y: auto;
	font-size: var(--fz-14);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text-sub);
	letter-spacing: 0;
	border: 1px solid var(--color-border);

	p + p,
	ol + p {
		margin-top: 1em;
	}

	.contact-form__policy-heading + p,
	.contact-form__policy-heading + ol {
		margin-top: 0;
	}

	ol {
		padding-left: 1.5em;
		list-style: decimal;
	}
}

.contact-form__field .wpcf7-acceptance {
	padding: var(--space-12) var(--space-8) 0;
}

/* 送信ボタン */
.contact-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-16);
	justify-content: center;
	padding: var(--space-24);
}

.contact-form__button {
	position: relative;
	display: block;
	width: 18.75rem;

	input {
		width: 100%;
		height: 3.90625rem;
		padding: 0 3.75rem 0 1.5625rem;
		font: inherit;
		font-size: 1.09375rem;
		font-weight: 500;
		color: var(--color-white);
		text-align: left;
		letter-spacing: 0.125rem;
		cursor: pointer;
		background: var(--color-primary);
		border: 1.25px solid var(--color-white);
		transition: opacity var(--duration) var(--easing);

		&:disabled {
			cursor: not-allowed;
			opacity: 0.4;
		}
	}

	/* 矢印 */
	&::after {
		position: absolute;
		top: 50%;
		right: 1.5625rem;
		font-size: 1.015625rem;
		font-weight: 300;
		color: var(--color-white);
		pointer-events: none;
		content: "→";
		translate: 0 -50%;
	}

	/* 送信中のくるくる（Contact Form 7）はボタンの右外に */
	.wpcf7-spinner {
		position: absolute;
		top: 50%;
		left: 100%;
		margin: 0 0 0 var(--space-8);
		translate: 0 -50%;
	}
}

@media (hover: hover) {
	.contact-form__button input:not(:disabled):hover {
		opacity: 0.8;
	}
}

/* 入力エラー・送信結果のメッセージ（Contact Form 7） */
.contact-form .wpcf7-not-valid-tip {
	margin-top: var(--space-4);
	font-size: var(--fz-13);
	color: #d00;
	letter-spacing: 0.05em;
}

/* 送信結果のメッセージ：フォームの [response] の位置（ボタンの上）に出る。枠線なし・薄い赤の背景 */
.contact .wpcf7 form .wpcf7-response-output {
	margin: var(--space-24) 0 0;
	padding: var(--space-12) var(--space-16);
	font-size: var(--fz-14);
	color: #d00;
	text-align: center;
	background: rgb(220 50 50 / 0.1);
	border: 0;
}

.contact .wpcf7 form.sent .wpcf7-response-output {
	color: var(--color-primary);
	background: rgb(66 9 232 / 0.08);
}

/* エラーの項目は入力欄の縁を赤く */
.contact-form__field .wpcf7-not-valid {
	&:is(input, textarea) {
		border-color: #d00;
	}

	input[type="checkbox"] {
		border-color: #d00;
	}
}

/* タブレット：枠の内側の余白を詰める */
@media (max-width: 1279px) {
	.contact-form {
		padding: var(--space-32) var(--space-32) var(--space-40);
	}
}

/* スマホ：項目名を入力欄の上に */
@media (max-width: 599px) {
	.contact {
		padding: var(--space-24) var(--space-16);
	}

	.contact__inner {
		gap: var(--space-24);
	}

	.contact__lead {
		font-size: var(--fz-13);
		text-align: left;
	}

	.contact-form {
		padding: 0;
		border-radius: 0;
	}

	.contact-form__row {
		display: block;
	}

	.contact-form__label {
		align-items: center;
		padding: 1.3125rem var(--space-16) 0;
		font-size: var(--fz-13);
		font-weight: 700;
		color: var(--color-text-sub);
	}

	.contact-form__field {
		padding: var(--space-8) var(--space-16) var(--space-20);
		font-size: var(--fz-14);

		input[type="text"],
		input[type="email"],
		input[type="tel"],
		select,
		textarea {
			font-size: var(--fz-16); /* iOS で入力時に拡大されないよう 16px */
		}

		.wpcf7-checkbox {
			gap: var(--space-4);
			padding-block: 0;
		}
	}

	.contact-form__policy {
		font-size: var(--fz-11);
	}

	/* 項目名の補足は太字にしない。「（PDF等 2MBまで）」は同じ行に、「ご質問等…」は改行 */
	.contact-form__note {
		font-weight: 400;
		white-space: normal;
	}

	.contact-form__field [data-name="entry-type"] .wpcf7-checkbox {
		flex-direction: column;
	}

	.contact-form__row:has(#ef-resume) .contact-form__note {
		display: inline;
	}

	.contact-form__date {
		gap: 0.375rem;

		.wpcf7-form-control-wrap {
			flex: 1;
			width: auto;
		}
	}

	.contact-form__actions {
		padding: var(--space-24) var(--space-16);
	}

	.contact-form__button input {
		height: 3rem;
		font-size: var(--fz-15);
		text-align: center;
	}
}

/* プライバシーポリシー（WordPress が body に privacy-policy クラスを付けるため、クラス名は policy） */
.policy {
	padding: var(--space-48) var(--gutter);
	background: var(--color-bg-light);
}

.policy__inner {
	width: min(var(--container-max), 100%);
	margin-inline: auto;
	padding: 3.5rem;
	background: var(--color-white);
	border-radius: var(--space-8);
}

.policy__content {
	--policy-gap: 2.1875rem;

	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);

	h2 {
		margin-top: var(--policy-gap);
		font-size: inherit;
		font-weight: inherit;
		line-height: inherit;
	}

	/* 条の見出しの直後は詰める */
	h2 + p {
		margin-top: 0;
	}

	h2 + ol {
		margin-top: var(--policy-gap);
	}

	ol {
		padding-left: 1.5rem;
		list-style: decimal;
	}

	ol + h2 {
		margin-top: var(--space-24);
	}

	& > :first-child {
		margin-top: 0;
	}
}

@media (max-width: 599px) {
	.policy {
		padding: var(--space-16);
	}

	.policy__inner {
		padding: var(--space-20);
		border-radius: 0;
	}

	.policy__content {
		--policy-gap: var(--space-20);

		font-size: var(--fz-12);
	}

	.policy__content ol + h2 {
		margin-top: var(--space-20);
	}
}

/* 汎用ページ */
.page-default {
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: var(--space-64);
}

.page-default__title {
	font-family: var(--font-serif);
	font-size: var(--fz-32);
	font-weight: 500;
	line-height: var(--lh-normal);
	color: var(--color-primary);
}

.page-default__content,
.page-default__list {
	margin-top: var(--space-32);
}

.page-default__list-link {
	color: var(--color-primary);
	text-decoration: underline;
}

/* 404 */
.not-found {
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: var(--space-64);
	text-align: center;
}

.not-found__code {
	font-family: var(--font-serif-en);
	font-size: var(--fz-20);
	font-weight: 300;
	color: var(--color-text-muted);
	letter-spacing: 0.05em;
}

.not-found__title {
	margin-top: var(--space-8);
	font-family: var(--font-serif);
	font-size: var(--fz-32);
	font-weight: 500;
	line-height: var(--lh-normal);
	color: var(--color-primary);
}

.not-found__text {
	margin-top: var(--space-24);
	font-size: var(--fz-15);
	font-weight: 350;
}

.not-found__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-12) var(--space-32);
	justify-content: center;
	margin-top: var(--space-40);
}

.not-found__link {
	font-family: var(--font-en);
	font-size: var(--fz-14);
	color: var(--color-text-sub);
	letter-spacing: 0.14em;
	border-bottom: 1px solid var(--color-primary);
}

@media (hover: hover) {
	.not-found__link:hover {
		color: var(--color-primary);
	}
}

@media (max-width: 599px) {
	.not-found__title {
		font-size: var(--fz-24);
	}

	.not-found__text {
		font-size: var(--fz-14);
		text-align: left;
	}
}

/* アニメーションを減らす設定 */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

/* トップページ
   背景（動画）は画面に固定し、表示中のセクションに合わせてクロスフェード（.top-bg。assets/js/main.js）。
   セクションごとに scroll-snap で止まる */
html:has(.top) {
	scroll-snap-type: y proximity;
	scroll-padding-top: var(--admin-bar); /* ヘッダーは背景の上に重ねるので、セクションは画面の上端から */
}

/* スマホはスナップしない（実機で慣性スクロールがぎこちなくなるため） */
@media (max-width: 599px) {
	html:has(.top) {
		scroll-snap-type: none;
	}
}

/* PC はセクションごとに必ず止める（タブレットは近いときだけ、スマホはなし） */
@media (min-width: 1280px) {
	html:has(.top) {
		scroll-snap-type: y mandatory;
	}
}

/* 最後のセクション（Contact・フッター）は .top の外（footer.php）にあるので、変数は body に置く */
.home {
	--top-gutter: 5rem;
	--top-section-height: calc(100svh - var(--admin-bar));
	/* コンテンツ（幅 1440px まで）の右端から画面の右端までの距離（スライダーを画面の端まで伸ばすのに使う） */
	--top-edge: max(var(--top-gutter), (100vw - 90rem) / 2);
	/* 前へ・次へ、閉じるボタンを画面の右端（から余白の分内側）に寄せるための右への張り出し */
	--top-to-right: calc((var(--top-edge) - var(--top-gutter)) * -1);
}

.top {
	color: var(--color-white);
}

.top-section {
	position: relative;
	min-height: var(--top-section-height);
	overflow-x: clip; /* 画面の端まで伸ばしたスライダーが、スクロールバーの幅の分はみ出さないように */
	scroll-snap-align: start;
}

/* 背景：すべて重ねて置き、表示中（.is-active）だけ見せる */
.top-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: #000;
}

.top-bg__item {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s var(--easing);

	&.is-active {
		opacity: 1;
	}

	/* 重ねる色（各セクションの塗り） */
	&::after {
		position: absolute;
		inset: 0;
		content: "";
	}
}

.top-bg__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 動画は再生が始まってから静止画の上に重ねる */
video.top-bg__media {
	opacity: 0;
	transition: opacity 0.6s var(--easing);

	&.is-playing {
		opacity: 1;
	}
}

.top-bg__item--hero::after {
	/* 周辺を暗く＋全体に黒 20%（キャッチを読みやすく） */
	background: radial-gradient(ellipse at center, transparent, rgb(0 0 0 / 0.2)), rgb(0 0 0 / 0.2);
}

.top-bg__item--message::after {
	background: rgb(0 0 0 / 0.25); /* 白い文字が明るい背景（窓・ブラウス）でも読めるように */
}

.top-bg__item--solution::after {
	background: rgb(6 7 10 / 0.5);
}

.top-bg__item--experts::after {
	background: rgb(6 7 10 / 0.62);
}

.top-bg__item--recruit::after {
	background: rgb(0 0 0 / 0.5);
}

/* ヘッダー：背景の上に重ねる（透明・白い文字）。明るい背景のセクションでは通常の色（.header--light） */
.header--top {
	position: fixed;
	inset-inline: 0;

	&::before {
		background: transparent;
	}

	.header__logo-image--white {
		position: absolute;
		top: 50%;
		left: 0;
		width: 7.1875rem; /* 下層ページのロゴと同じ幅（白いロゴは同じ形なので同じ大きさになる） */
		margin-left: 0.5519rem;
		translate: 0 -50%;
		transition: opacity var(--duration) var(--easing);
	}

	.header__logo-image:not(.header__logo-image--white) {
		opacity: 0;
		transition: opacity var(--duration) var(--easing);
	}

	.header__nav-link:not(.header__nav-link--current) {
		color: var(--color-white);
	}

	.header__menu-button img {
		filter: brightness(0) invert(1);
		transition: filter var(--duration) var(--easing);
	}

	&.header--light {
		.header__logo-image--white {
			opacity: 0;
		}

		.header__logo-image:not(.header__logo-image--white) {
			opacity: 1;
		}

		.header__nav-link:not(.header__nav-link--current) {
			color: var(--color-text-sub);
		}

		.header__menu-button img {
			filter: none;
		}
	}
}

.header__logo:has(.header__logo-image--white) {
	position: relative;
}

@media (max-width: 1279px) {
	.header--top .header__logo-image--white {
		width: 5.5625rem; /* 下層ページのロゴと同じ幅 */
		margin-left: 0;
	}
}

/* 共通の部品 */

/* セクション見出し（横線＋英字） */
.top-heading {
	display: flex;
	gap: var(--space-10);
	align-items: center;
	font-family: var(--font-serif-en);
	font-size: 2.25rem;
	font-weight: 400;
	line-height: 1.36;
	letter-spacing: 0.05em;
	opacity: 0.9;

	&::before {
		flex: none;
		width: 1.875rem;
		height: 1px;
		content: "";
		background: currentcolor;
	}
}

/*
 * 見出しの表示アニメーション（.hero__title-en と同じ。キーフレームも共通）
 * 画面に入ると JS で .is-shown を付け、帯が引くのに合わせて横線・文字が現れる。
 * JS が動くときだけ（html.is-heading-ready）最初は隠す
 */
.top-heading__text {
	position: relative;
}

.is-heading-ready .top-heading {
	&::before,
	.top-heading__text {
		visibility: hidden;
	}

	.top-heading__text::before {
		position: absolute;
		inset: 0;
		visibility: visible;
		content: "";
		background: currentcolor;
		transform: scaleX(0);
		transform-origin: left center;
	}

	&.is-shown {
		&::before,
		.top-heading__text {
			animation: hero-text 0.65s both;
		}

		.top-heading__text::before {
			animation: hero-band 0.65s cubic-bezier(0.77, 0, 0.18, 1) both;
		}
	}
}

/*
 * 見出しに続いて、下の文言・一覧などを順に表示する（.top-follow。対象と間隔は assets/js/main.js）
 * 表示が終われば各要素の本来の見た目に戻るよう、アニメーションは開始前（遅延中）だけ最初の状態を保つ（fill: backwards）
 */
.is-heading-ready .top-follow {
	&:not(.is-shown) {
		opacity: 0;
	}

	&.is-shown {
		animation: top-follow var(--follow-duration, 0.7s) var(--easing-out) var(--follow-delay, 0s) backwards;
	}
}

@keyframes top-follow {
	from {
		opacity: 0;
		translate: 0 1.25rem;
	}
}

/* 右からスライド（Solution の Our Solutions・By Industry） */
.is-heading-ready .top-follow--right.is-shown {
	animation-name: top-follow-right;
}

@keyframes top-follow-right {
	from {
		opacity: 0;
		translate: 2.5rem 0;
	}
}

/* 下線付きのテキストリンク（「… →」） */
.top-link {
	position: relative;
	display: inline-flex;
	gap: var(--space-10);
	align-items: center;
	padding-bottom: 0.375rem;
	font-size: var(--fz-14);
	line-height: 1.2;
	letter-spacing: 0.08em;
}

/* 矢印付きリンクの下線。マウスを乗せると右へ抜けて、左から再び伸びる */
.top-link::after,
.top-recruit__join::after,
.back-link__link::after,
.interview-card__more::after,
.recruit-join__title::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	content: "";
	background: currentcolor;
}

@keyframes cocoe-line-swipe {
	0% {
		scale: 1 1;
		transform-origin: right center;
	}

	45% {
		scale: 0 1;
		transform-origin: right center;
	}

	55% {
		scale: 0 1;
		transform-origin: left center;
	}

	100% {
		scale: 1 1;
		transform-origin: left center;
	}
}

@media (hover: hover) {
	a.top-link:is(:hover, :focus-visible)::after,
	a:is(:hover, :focus-visible) .top-link::after,
	.back-link__link:is(:hover, :focus-visible)::after,
	.interview-card__link:is(:hover, :focus-visible) .interview-card__more::after,
	.recruit-join__title:is(:hover, :focus-visible)::after,
	.top-recruit__entry:is(:hover, :focus-visible) .top-recruit__join::after {
		animation: cocoe-line-swipe 0.8s var(--easing-out);
	}
}

.top-container {
	width: min(var(--container-max) + 3.75rem, 100% - var(--top-gutter) * 2);
	margin-inline: auto;
}

.top-columns {
	display: grid;
	grid-template-columns: 35rem minmax(0, 1fr);
	gap: 3.75rem;
}

.top-columns__side {
	min-width: 0;
}

/* 明朝体の大きい見出し */
.top-lead {
	font-family: var(--font-serif);
	font-size: 2.625rem;
	line-height: 1.476;
	color: rgb(255 255 255 / 0.9);
}

.top-text {
	display: flex;
	flex-direction: column;
	gap: 1.7rem;
	font-size: var(--fz-13);
	line-height: 2.1;
	color: rgb(255 255 255 / 0.9);
}

/* 横スクロールのカード列（専門家・ニュース。前へ・次へは assets/js/main.js の carousel） */
.top-carousel {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}

.top-carousel__head {
	display: flex;
	gap: var(--space-16);
	align-items: center;
	justify-content: space-between;
	min-height: 2.375rem;
	margin-right: var(--top-to-right); /* 前へ・次へは画面の右端に寄せる */
}

.top-carousel__title {
	display: flex;
	gap: 0.9375rem;
	align-items: baseline;
	font-family: var(--font-serif-en);
	font-size: var(--fz-22);
	font-weight: 400;
	letter-spacing: 0.07em;
}

.top-carousel__sub {
	font-family: var(--font-serif);
	font-size: var(--fz-16);
	letter-spacing: 0;
	color: var(--color-footer-lead);
}

.top-carousel__controls {
	display: flex;
	gap: var(--space-8);
	margin-left: auto;
}

.top-carousel__button {
	display: grid;
	place-items: center;
	width: 2.375rem;
	height: 2.375rem;
	font-family: var(--font-en);
	font-size: var(--fz-16);
	line-height: 1;
	color: inherit;
	border: 1px solid rgb(255 255 255 / 0.73);
	border-radius: 50%;
	transition: opacity var(--duration) var(--easing);

	&:disabled {
		cursor: default;
		opacity: 0.3;
	}
}

.top-carousel__track {
	display: flex;
	gap: 0.125rem;
	margin-right: calc(var(--top-edge) * -1); /* 画面の右端まで */
	padding-right: var(--top-edge);
	overflow: auto hidden; /* 横だけスクロール（縦にはスクロールさせない） */
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;

	& > * {
		flex: none;
		scroll-snap-align: start;
	}

	&::-webkit-scrollbar {
		display: none;
	}
}

@media (hover: hover) {
	.top-carousel__button:not(:disabled):hover {
		opacity: 0.6;
	}
}

/* マウスでドラッグして動かせる（assets/js/main.js）。ドラッグ中はスナップを止め、文字を選択しない */
@media (hover: hover) and (pointer: fine) {
	.top-carousel__track,
	.top-solution__cases,
	.case-related__list {
		cursor: grab;
	}
}

.top-carousel__track.is-dragging,
.top-solution__cases.is-dragging,
.case-related__list.is-dragging {
	cursor: grabbing;
	user-select: none;
	scroll-snap-type: none;
}

/* 写真が右からスライドして出てくる間はスナップを止める（スライド中の位置にスナップしてずれるため。assets/js/main.js） */
.top-carousel__track.is-following {
	scroll-snap-type: none;
}

/* キービジュアル */
.top-hero {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	padding: 21.6svh 2rem 1.25rem 0; /* 文字のかたまりの上端：画面の高さの 44% */
}

.top-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 1.875rem;
	align-items: flex-end;
}

.top-hero__title {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-family: var(--font-serif);
	font-size: 5.25rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: right;
	filter: drop-shadow(0 2px 12px rgb(0 0 0 / 0.4));
}

.top-hero__kana {
	font-size: 0.893em;
}

/* 「と」「を」は字面が小さく右の空きが目立つので、後ろの文字との間を詰める */
.top-hero__kana--tight {
	margin-right: -0.1em;
}

.top-hero__tags {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	align-items: flex-end;
	padding-right: 3.75rem; /* キャッチの「、」「。」の右の空き（文字の大きさの約 2/3）の分。文字の右端とそろえる */
}

.top-hero__tag {
	position: relative;
	isolation: isolate;
	padding: 0 var(--space-16) 0.125rem;
	font-size: var(--fz-22);
	font-weight: 500;
	line-height: 1.636;
	letter-spacing: 0.05em;

	/* 青の帯（右から伸びる） */
	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: var(--color-primary);
		transform-origin: right center;
	}
}

.top-hero__tag-text {
	display: block;
}

/*
 * キービジュアルの表示アニメーション（読み込み時。CSS のみ）
 * 1. キャッチコピーを 1 行ずつ下からふわっと（ぼかしが取れながら）
 * 2. サブコピーの青い帯が右から伸び、続いて文字が左から現れる
 */
.top-hero__line {
	/* 位置・不透明度は早めに落ち着き、ぼかしはゆっくり取れる（ぼけた状態がはっきり見えるように） */
	animation:
		top-hero-line 1s cubic-bezier(0.25, 1, 0.3, 1) both,
		top-hero-blur 1s cubic-bezier(0.45, 0, 0.55, 1) both;

	&:nth-child(1) {
		animation-delay: 0s;
	}

	&:nth-child(2) {
		animation-delay: 0.4s;
	}
}

.top-hero__tag {
	--tag-delay: 0.8s;

	&::before {
		animation: top-hero-band 0.6s cubic-bezier(0.77, 0, 0.18, 1) var(--tag-delay) both;
	}

	.top-hero__tag-text {
		animation: top-hero-text 0.7s var(--easing-out) calc(var(--tag-delay) + 0.45s) both;
	}

	& + & {
		--tag-delay: 1s;
	}
}

@keyframes top-hero-line {
	from {
		opacity: 0;
		translate: 0 2rem;
	}
}

@keyframes top-hero-blur {
	from {
		filter: blur(1rem);
	}
}

@keyframes top-hero-band {
	from {
		scale: 0 1;
	}
}

@keyframes top-hero-text {
	from {
		clip-path: inset(0 100% 0 0);
	}

	to {
		clip-path: inset(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.top-hero__line,
	.top-hero__tag::before,
	.top-hero__tag .top-hero__tag-text {
		animation: none;
	}
}

/* 右端の縦書きの英字（画面に固定。明るい背景のセクションでは文字の色を変える .is-light） */
.top-vertical {
	position: fixed;
	top: calc(50% + var(--admin-bar) / 2);
	right: 0.875rem;
	z-index: 10;
	font-family: var(--font-en);
	font-size: var(--fz-13);
	font-weight: 300;
	line-height: 1;
	color: var(--color-white);
	letter-spacing: 0.375rem;
	pointer-events: none;
	writing-mode: vertical-rl;
	translate: 0 -50%;
	transition: color var(--duration) var(--easing);

	&.is-light {
		color: var(--color-text-sub);
	}
}

.top-hero__scroll {
	display: none;
}

/* Mission */
.top-mission {
	display: flex;
}

/* 左半分のパネル（半透明の黒）。黒い背景は、Mission が画面に入ってから次のセクションが画面に入るまでフワッと出す（.is-panel-visible。assets/js/main.js） */
.top-mission__panel {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center; /* PC は上下中央（タブレット・SP は上寄せ） */
	width: max(50%, 45.875rem);
	padding: min(7.5rem, 11svh) 3rem min(7.5rem, 11svh) 5rem;

	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: rgb(6 7 10 / 0.62);
		transition: opacity 0.8s var(--easing);
	}
}

/* JS が動いているときだけ（動かない場合は常に表示） */
.top.is-ready .top-mission:not(.is-panel-visible) .top-mission__panel::before {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.top-mission__panel::before {
		transition: none;
	}
}

.top-mission__title {
	margin-top: 2.5rem;
	font-family: var(--font-serif);
	font-size: 3.375rem;
	line-height: 1.315;
}

.top-mission__indent {
	padding-left: 0.5em;
}

.top-mission__text {
	display: flex;
	flex-direction: column;
	gap: 1.875rem;
	margin-top: 3.25rem;
	font-size: var(--fz-17);
	line-height: 2.12;
	color: var(--color-footer-lead);
}

.top-mission__link {
	margin-top: 3.4375rem;
}

/* Message */
.top-message {
	display: flex;
	flex-direction: column;
	justify-content: flex-end; /* 見出し・引用文・名前は右下にまとめる */
	padding: 6.8125rem 4.375rem 6.25rem 4rem;
}

.top-message__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
	align-items: flex-end;
	margin-left: auto;
	text-align: right;
}

.top-message__quote {
	font-family: var(--font-serif);
	font-size: 3rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 12px rgb(0 0 0 / 0.25);
}

.top-message__name {
	padding: var(--space-8) var(--space-20) var(--space-10);
	font-size: var(--fz-20);
	font-weight: 500;
	line-height: 1.45;
	color: var(--color-text);
	letter-spacing: 0.02em;
	background: var(--color-white);
}

/* Solution */
.top-solution {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: min(7.5rem, 11svh); /* 画面が低いときは詰めて、なるべく画面の高さに収める */

	.top-columns {
		padding-top: 2.5rem;
	}

	.top-lead {
		padding-top: 0.25rem;
		font-size: 2.125rem;
		font-weight: 300;
		line-height: 1.5;
	}

	.top-text {
		gap: var(--space-16);
		margin-top: 4rem;
	}
}

/* リードの下の太字の一文 */
.top-solution__catch {
	font-size: var(--fz-16);
	font-weight: 700;
	line-height: 1.96;
}

/* 本文の下の小見出し「日本を代表する大企業とともに。」とリード（INDUSTRY） */
.top-solution__industry {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1rem;
}

.top-solution__group-title {
	padding: var(--space-8) 0;
	font-family: var(--font-serif-en);
	font-size: var(--fz-20);
	font-weight: 400;
	letter-spacing: 0.078em;
}

.top-solution__group + .top-solution__group {
	margin-top: var(--space-20);
}

.top-solution__link {
	position: relative;
	isolation: isolate;
	display: block;
	padding: var(--space-16) 1.625rem var(--space-16) var(--space-16);
	font-size: var(--fz-16); /* By Industry。Our Solutions は 20px（.top-solution__group--main） */
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.055em;
	border-bottom: 0.5px solid rgb(255 255 255 / 0.4);
	opacity: 0.82;
	transition: opacity var(--duration) var(--easing);

	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: rgb(66 9 232 / 0.5);
		opacity: 0;
		transition: opacity 0.35s var(--easing);
	}

	&::after {
		position: absolute;
		top: 50%;
		right: var(--space-16);
		font-weight: 300;
		content: "→";
		opacity: 0;
		translate: -0.5rem -50%;
		transition:
			opacity 0.35s var(--easing),
			translate 0.35s var(--easing-out);
	}
}

.top-solution__name {
	display: block;
}

.top-solution__group--main .top-solution__name {
	font-size: var(--fz-20);
}

/* ソリューション名の下の説明（Our Solutions） */
.top-solution__desc {
	display: block;
	margin-top: var(--space-4);
	font-size: var(--fz-13);
	font-weight: 400;
	line-height: 1.54;
	letter-spacing: 0;
	color: rgb(255 255 255 / 0.9);
}

.top-solution__more {
	margin-top: 2.125rem;
}

@media (hover: hover) {
	.top-solution__link:is(:hover, :focus-visible) {
		&::before {
			opacity: 1;
		}

		&::after {
			opacity: 1;
			translate: 0 -50%;
		}
	}

	.top-solution__link:hover {
		opacity: 1;
	}
}

/*
 * ソリューション名をクリックしたとき（PC のみ。assets/js/main.js）：
 * 左の説明文が消え、一覧が左へ寄って細くなり、右から説明文と事例（.top-solution__detail）が出てくる
 */
.top-solution__detail {
	display: none;
}

@media (min-width: 1280px) {
	.top-solution {
		overflow-x: clip;

		.top-columns {
			position: relative;
		}

		.top-columns__main {
			transition:
				opacity 0.4s var(--easing),
				translate 0.6s var(--easing-out),
				visibility 0.4s;
		}
	}

	.top-solution__nav {
		width: 51.25rem;
		transition:
			translate 0.7s var(--easing-out),
			width 0.7s var(--easing-out);
	}

	.top-solution__detail {
		position: absolute;
		top: 2.5rem;
		right: 0;
		left: 26.25rem; /* 一覧（幅 360px）の右 60px に区切り線 */
		display: block;
		padding: 1.25rem 0 1.25rem 3.125rem;
		visibility: hidden;
		border-left: 1px solid rgb(228 228 227 / 0.3);
		opacity: 0;
		translate: 3rem 0;
		transition:
			opacity 0.5s var(--easing) 0.15s,
			translate 0.7s var(--easing-out) 0.15s,
			visibility 0.65s;
	}

	.top-solution.is-open {
		.top-columns__main {
			visibility: hidden;
			opacity: 0;
			translate: -2rem 0;
		}

		.top-solution__nav {
			width: 22.5rem;
			translate: calc((35rem + var(--top-solution-gap, 3.75rem)) * -1) 0; /* 左の列の位置へ */
		}

		.top-solution__detail {
			visibility: visible;
			opacity: 1;
			translate: 0 0;
		}
	}

	/* 選んでいる項目：マウスを乗せたときと同じ青と矢印 */
	.top-solution__link[aria-expanded="true"] {
		opacity: 1;

		&::before {
			opacity: 1;
		}

		&::after {
			opacity: 1;
			translate: 0 -50%;
		}
	}

	/* 項目を切り替えたときは、中身だけ右からふわっと出す */
	.top-solution__panel:not([hidden]) {
		animation: top-solution-panel 0.5s var(--easing-out);
	}

	@keyframes top-solution-panel {
		from {
			opacity: 0;
			translate: 1.5rem 0;
		}
	}
}

@media (min-width: 1280px) and (prefers-reduced-motion: reduce) {
	.top-solution .top-columns__main,
	.top-solution__nav,
	.top-solution__detail {
		transition: none;
	}

	.top-solution__panel:not([hidden]) {
		animation: none;
	}
}

.top-solution__panel-head {
	display: flex;
	gap: var(--space-8);
	align-items: center;
	justify-content: space-between;
	margin-right: var(--top-to-right); /* 閉じるボタンは画面の右端に寄せる */
	margin-bottom: var(--space-24);
}

.top-solution__panel-title {
	font-family: var(--font-serif);
	font-size: var(--fz-32);
	font-weight: 500;
	line-height: 1;
	color: rgb(255 255 255 / 0.9);
}

/* 閉じる（×）。右端は前へ・次へボタンの右端にそろえる */
.top-solution__close {
	position: relative;
	flex: none;
	width: 2.375rem;
	height: 2rem;
	color: rgb(255 255 255 / 0.9);
	transition: opacity var(--duration) var(--easing);

	&::before,
	&::after {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 1.3125rem; /* 15px 四方の対角線 */
		height: 1px;
		content: "";
		background: currentcolor;
		translate: -50% -50%;
		rotate: 45deg;
	}

	&::after {
		rotate: -45deg;
	}
}

@media (hover: hover) {
	.top-solution__close:hover {
		opacity: 0.6;
	}
}

.top-solution__panel-text {
	padding-bottom: var(--space-16);
}

.top-solution__lead {
	max-width: 54.625rem;
	padding-top: var(--space-4);
	font-size: var(--fz-13);
	line-height: 2.1;
	color: rgb(255 255 255 / 0.8);
}

.top-solution__detail-link {
	flex: none;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
}

/* 説明文の下：「詳しく見る」（左）と事例の前へ・次へ（画面の右端） */
.top-solution__actions {
	display: flex;
	gap: var(--space-24);
	align-items: center;
	justify-content: space-between;
	min-height: 2.375rem;
	margin-top: var(--space-12);
	margin-right: var(--top-to-right);
}

/* 事例のカード（画面の右端まで。横にスクロール） */
.top-solution__cases {
	display: flex;
	gap: var(--space-32);
	margin-right: calc(var(--top-edge) * -1); /* 画面の右端まで */
	padding: var(--space-4) var(--top-edge) 0.375rem 0;
	overflow: auto hidden; /* 横だけスクロール（縦にはスクロールさせない） */
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;

	&::-webkit-scrollbar {
		display: none;
	}
}

/* 取引先のロゴ */
.top-clients {
	margin-top: min(var(--space-48), 4svh);
	padding-top: min(var(--space-32), 3svh);
}

.top-clients__title {
	width: min(var(--container-max) + 3.75rem, 100% - var(--top-gutter) * 2);
	margin: 0 auto var(--space-8);
	font-family: var(--font-serif-en);
	font-size: var(--fz-20);
	line-height: 1.6;
	letter-spacing: 0.065em;
}

.top-clients__sub {
	font-family: var(--font-sans);
	font-size: var(--fz-13);
	font-weight: 700;
	letter-spacing: 0.2em;
}

.top-clients__logos {
	--clients-gap: var(--space-24);
	display: flex;
	overflow: hidden;
	background: var(--color-white);
}

.top-clients__list {
	display: flex;
	flex: 1 0 auto;
	gap: var(--clients-gap);
	justify-content: space-between;
	padding: 0.125rem 3.5rem;
}

/* 幅に収まらないとき（JS で一覧を複製）：2 つ並べた一覧を 1 つ分ずつ左へ流し続ける。速さは JS で --clients-duration に設定 */
.top-clients__logos.is-marquee {
	.top-clients__list {
		flex: none;
		justify-content: flex-start;
		padding-inline: 0 var(--clients-gap); /* 一覧のつなぎ目もロゴの間隔と同じに */
		animation: cocoe-clients-marquee var(--clients-duration, 40s) linear infinite;
	}
}

@keyframes cocoe-clients-marquee {
	to {
		translate: -100% 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.top-clients__logos {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.top-clients__logos.is-marquee .top-clients__list {
		animation: none;
	}
}

.top-clients__item {
	flex: none;
	width: 9.5rem;
	height: 5.375rem; /* 白い帯の高さはこれで決まるので変えない */

	/* ロゴを 1.2 倍に。画像はロゴの周りに透明の余白があるので、
	   枠からはみ出すのは余白で、ロゴ本体は枠に収まる（帯の高さは変わらない） */
	& img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		scale: 1.2;
	}
}

/* Experts */
.top-experts {
	padding-block: min(6.25rem, 10svh) min(3.75rem, 5svh);

	.top-lead {
		margin-top: 2.125rem;
	}

	.top-text {
		gap: 1.125rem;
		margin-top: var(--space-24);
	}
}

.top-experts__links {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	align-items: flex-start;
	margin-top: 1.75rem;
}

.top-experts__groups {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
	padding-top: 0.5rem;
}

/* カード全体が専門家紹介ページの該当の人物へのリンク */
.top-expert__link {
	display: block;
}

.top-expert__image {
	position: relative;
	isolation: isolate;
	display: block;
	aspect-ratio: 280 / 375;
	overflow: hidden;
	background: linear-gradient(#d6d5df, #fff);

	/* マウスを乗せると人物の後ろに左から青が入り、外すと右へ抜けて消える（写真は背景が透明） */
	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: var(--color-primary);
		scale: 0 1;
		transform-origin: right center;
		transition: scale 0.35s var(--easing-out);
	}
}

.top-expert--member .top-expert__image {
	aspect-ratio: 200 / 190;
}

.top-expert__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: opacity 0.35s var(--easing-out);
}

@media (hover: hover) {
	.top-expert__link:is(:hover, :focus-visible) .top-expert__image::before {
		scale: 1 1;
		transform-origin: left center;
	}

	/* 人物を少し透かして、後ろの青となじませる */
	.top-expert__link:is(:hover, :focus-visible) .top-expert__img {
		opacity: 0.95;
	}
}

.top-expert--advisor {
	width: 17.5rem;
}

.top-expert--member {
	width: 12.5rem;
}

.top-expert__role {
	display: block;
	margin-top: 0.75rem;
	font-size: var(--fz-13);
	line-height: 1.2;
	color: var(--color-footer-link);
}

.top-expert__name {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.6875rem;
	align-items: baseline;
	margin-top: 0.375rem;
}

.top-expert__name-ja {
	font-size: var(--fz-18);
	line-height: 1.2;
}

.top-expert__name-en {
	font-family: var(--font-en);
	font-size: var(--fz-14);
	color: var(--color-text-light);
	letter-spacing: 0.14em;
}

.top-expert--member {
	.top-expert__role {
		margin-top: 0.8125rem;
		font-size: var(--fz-11);
	}

	.top-expert__name-ja {
		font-size: var(--fz-15);
	}
}

/* Recruit */
.top-recruit {
	display: flex;
	border-top: 1px solid rgb(255 255 255 / 0.3);
}

.top-recruit__main {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.top-recruit__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: min(7.5rem, 12svh) 3.75rem var(--space-48);

	.top-heading {
		width: 100%;
	}

	.top-link {
		margin-top: 1.75rem;
	}
}

.top-recruit__lead {
	margin-top: var(--space-24);
	font-weight: 300;
}

.top-recruit__text {
	max-width: 30.5rem;
	margin-top: 2.625rem;
	font-size: var(--fz-13);
	line-height: 2.1;
	color: rgb(255 255 255 / 0.9);
}

.top-recruit__links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid rgb(255 255 255 / 0.3);
}

.top-recruit__item + .top-recruit__item {
	border-left: 1px solid rgb(255 255 255 / 0.3);
}

.top-recruit__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	height: min(15.125rem, 25svh);
	padding: 2.875rem 2.75rem 2.5rem;
}

/* マウスを乗せたとき：背景に写真（黒 40% を重ねる）がフワッと出る */
.top-recruit__card {
	position: relative;
	isolation: isolate;
	overflow: hidden;

	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: rgb(0 0 0 / var(--photo-shade, 0.4)); /* 写真に重ねる黒（メンバーインタビューは 30%、ほかは 40%） */
		opacity: 0;
		transition: opacity 0.5s var(--easing);
	}
}

.top-recruit__item:first-child .top-recruit__card {
	--photo-shade: 0.3;
}

.top-recruit__photo {
	/* 画像はカードの範囲に上下左右 15% の余裕を付けて書き出してあるので、余裕の分をカードの外に出す */
	position: absolute;
	top: -15%;
	left: -15%;
	z-index: -2;
	width: 130%;
	max-width: none;
	height: 130%;
	object-fit: cover;
	opacity: 0;
	scale: 1.06;
	transition:
		opacity 0.5s var(--easing),
		scale 0.8s var(--easing-out);
}

@media (hover: hover) {
	.top-recruit__card:is(:hover, :focus-visible) {
		&::before,
		.top-recruit__photo {
			opacity: 1;
		}

		.top-recruit__photo {
			scale: 1;
		}
	}
}

.top-recruit__en {
	font-family: var(--font-en);
	font-size: var(--fz-18);
	line-height: 1;
	letter-spacing: 0.085em;
}

/* エントリー（右端） */
.top-recruit__entry {
	position: relative;
	isolation: isolate;
	display: flex;
	flex: none;
	flex-direction: column;
	overflow: hidden;
	gap: var(--space-24);
	align-items: center;
	justify-content: center;
	width: 22.8125rem;
	padding: 0 2.5rem 3.125rem 1.875rem;
	background: rgb(0 0 0 / 0.5);
	border-left: 1px solid rgb(255 255 255 / 0.3);

	/* マウスを乗せると左から青が入り、外すと右へ抜けて消える（縮む起点を右にしておく） */
	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: var(--color-primary);
		scale: 0 1;
		transform-origin: right center;
		transition: scale 0.6s var(--easing-out);
	}
}

@media (hover: hover) {
	.top-recruit__entry:is(:hover, :focus-visible)::before {
		scale: 1 1;
		transform-origin: left center;
	}
}

.top-recruit__entry-text {
	font-size: var(--fz-16);
	font-weight: 700;
	line-height: 1.6875;
	color: var(--color-border);
	text-align: center;
}

.top-recruit__join {
	display: flex;
	gap: var(--space-10);
	align-items: center;
	position: relative;
	padding-bottom: 0.375rem;
	font-family: var(--font-serif-en);
	font-size: 2.25rem;
	line-height: 1.36;
	letter-spacing: 0.05em;
}

.top-recruit__join-arrow {
	font-family: var(--font-sans);
	font-size: 1.5625rem;
}

/* News */
.top-news {
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* 半透明の白はセクションに付ける（背景の切り替えを待たず、セクションと一緒に常に表示） */
	background: rgb(255 255 255 / 0.8);
	padding-block: min(7.5rem, 11svh);
	color: var(--color-text);

	.top-heading {
		color: var(--color-primary);
	}

	.top-carousel__button {
		border-color: rgb(0 0 0 / 0.3);
	}
}

.top-news__columns {
	display: grid;
	grid-template-columns: minmax(0, 42.3125rem) minmax(0, 1fr);
	gap: 4.5rem;
	align-items: start;
	margin-top: 3.75rem;
}

.top-news__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.top-news__item {
	display: flex;
	gap: var(--space-12);
	align-items: baseline; /* タイトルが 2 行以上になっても、日付・カテゴリは 1 行目にそろえる */
	padding: 1.625rem var(--space-12);
	font-size: var(--fz-14);
	line-height: 1.2;
	background: rgb(255 255 255 / 0.7);
	transition: background-color var(--duration) var(--easing);
}

.top-news__date {
	flex: none;
	width: 6rem;
	font-family: Roboto, var(--font-sans);
	color: var(--color-text);
}

.top-news__category {
	flex: none;
	width: 4rem;
	font-family: var(--font-en);
	font-size: var(--fz-13);
	color: var(--color-primary);
	letter-spacing: 0.05em;
}

.top-news__title {
	min-width: 0;
	line-height: 1.5;
	color: #1a1a1a;
}

.top-news__more {
	margin-top: var(--space-32);
	color: #1a1a1a;
}

/* カードはボタンの分だけ上に出す（一覧の上端とカードの上端をそろえる） */
.top-news__cards {
	gap: 0.875rem;
	margin-top: -3.25rem;
}

.top-news__cards .top-carousel__track {
	gap: 1.25rem;
}

.top-news-card {
	width: 17.5rem;
}

.top-news-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: rgb(255 255 255 / 0.6);
}

.top-news-card__image {
	display: block;
	aspect-ratio: 280 / 220;
	overflow: hidden;
	background: #dcdee2;
}

/* アイキャッチ画像がない記事：紫地にロゴ */
.top-news-card__image--placeholder {
	display: grid;
	place-items: center;
	background: var(--color-primary);
}

.top-news-card__logo {
	width: 7.1875rem; /* NEWS 一覧のデフォルト画像と同じ大きさ */
}

.top-news-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 0.4s var(--easing);
}

.top-news-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.3125rem;
	padding: var(--space-16) 1.125rem 1.375rem;
}

.top-news-card__category {
	font-family: var(--font-en);
	font-size: var(--fz-12);
	line-height: 1;
	color: var(--color-primary);
	letter-spacing: 0.05em;
}

.top-news-card__title {
	font-size: var(--fz-15);
	line-height: 1.5;
	color: var(--color-text);
}

@media (hover: hover) {
	.top-news__item:hover {
		background: var(--color-white);
	}

	.top-news-card__link:hover .top-news-card__img {
		scale: 1.05;
	}
}

/* Contact・フッター（最後のセクション。背景は動画） */
/* 見出しに続いて出す文言・ボタンは、見出しの文字が出始めるころから */
.top-contact .contact-cta [data-js="reveal"]:not([data-reveal]) {
	--reveal-extra: 0.3s;
}

/* ボタンは 0.5px の枠線が動きの途中でちらつくので、下から動かさずにその場でふわっと（data-reveal="fade"） */
.top-contact .contact-cta [data-js="reveal"][data-reveal="fade"] {
	--reveal-extra: 0.3s;
}

.top-contact {
	display: flex;
	flex-direction: column;

	.contact-cta {
		flex: 1;
		justify-content: center;
		background: rgb(6 7 10 / 0.75);
	}

	.footer {
		background: rgb(6 7 10 / 0.85);
	}
}

@media (min-width: 600px) {
	.top-contact .contact-cta {
		gap: 0;
		padding-block: 2.5rem;
	}

	.top-contact .contact-cta__title {
		font-size: 3rem;
		font-weight: 400;
		letter-spacing: 0.0375em;
	}

	.top-contact .contact-cta__text {
		gap: 1.375rem;
		margin-top: 2.125rem;
	}

	.top-contact .contact-cta__catch {
		font-size: 2.5rem;
		line-height: 1.7;
	}

	.top-contact .contact-cta__lead {
		font-size: var(--fz-13);
		line-height: 2;
	}

	.top-contact .contact-cta__button {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		margin-top: 3.5rem;
		background: rgb(0 0 0 / 0.5);
		border: 0.5px solid rgb(255 255 255 / 0.8);

		/* 縮む起点を右にしておく（外すと右へ抜けて消える） */
		&::before {
			position: absolute;
			inset: 0;
			z-index: -1;
			content: "";
			background: var(--color-primary);
			scale: 0 1;
			transform-origin: right center;
			transition: scale 0.35s var(--easing-out);
		}
	}
}

@media (min-width: 600px) and (hover: hover) {
	.top-contact .contact-cta__button:is(:hover, :focus-visible) {
		color: var(--color-white);

		&::before {
			scale: 1 1;
			transform-origin: left center;
		}
	}
}

/* タブレット */
@media (max-width: 1279px) {
	.home {
		--top-gutter: 2.5rem;
	}

	.top-hero__title {
		font-size: 4.5rem;
	}

	.top-hero__tags {
		padding-right: 3rem; /* キャッチの「、」「。」の右の空き（文字の大きさの約 2/3） */
	}

	.top-mission__panel {
		justify-content: flex-start;
		width: min(100%, 50rem);
	}

	.top-columns {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-48);
	}

	.top-solution {
		padding-top: 6rem;
	}

	.top-recruit {
		flex-direction: column;
	}

	.top-recruit__entry {
		width: auto;
		padding: var(--space-48) var(--top-gutter);
		border-top: 1px solid rgb(255 255 255 / 0.3);
		border-left: 0;
	}

	.top-news__columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.top-news__cards {
		margin-top: 0;
	}
}

/* スマホ */
@media (max-width: 599px) {
	.home {
		--top-gutter: 1.5rem;
	}

	/* Solution の背景に薄い半透明の黒（SP のみ） */
	.top-solution {
		background: rgb(0 0 0 / 0.15);
	}

	.top-heading {
		font-size: var(--fz-24);
	}

	/* Contact の見出しはほかのページより少し大きく */
	.top-contact .contact-cta__title {
		font-size: 1.875rem;
	}

	.top-lead {
		font-size: 1.5625rem;
		line-height: 1.6;
	}

	.top-text {
		gap: 1.4rem;
		font-size: var(--fz-12);
		line-height: 1.8;
		color: var(--color-footer-lead);
	}

	.top-carousel {
		gap: var(--space-16);
	}

	.top-carousel__title {
		font-size: 1.1625rem;
		letter-spacing: 0.08em;
	}

	.top-carousel__sub {
		font-size: 0.9rem;
	}

	.top-carousel__button {
		width: 2.25rem;
		height: 2.25rem;
		font-size: var(--fz-14);
	}

	.top-hero {
		align-items: flex-end;
		justify-content: flex-end;
		padding: 0 0 7.375rem; /* 右は 0（キャッチの「、」「。」の右の空きがあるので、文字の右端は画面の右から約 34px） */
	}

	.top-hero__inner {
		gap: 1.25rem;
	}

	.top-hero__title {
		font-size: min(3rem, 9.6vw); /* 画面幅の 9.6%（上限 48px）。「企業変革をその先へ。」が 1 行に収まる大きさ */
	}

	.top-hero__tags {
		gap: 0.25rem;
		padding-right: min(1.8125rem, 5.8vw); /* 青の帯の右端を「。」の字面の右端にそろえる（キャッチの大きさの約 0.6 倍） */
	}

	.top-hero__tag {
		font-size: min(1rem, 4.27vw); /* 「企業の未来を変えるコンサルティング」が 1 行に収まるように */
		line-height: 1.75;
		white-space: nowrap;
	}

	.top-vertical {
		display: none;
	}

	.top-hero__scroll {
		position: absolute;
		bottom: var(--space-24);
		left: 50%;
		display: flex;
		flex-direction: column;
		gap: var(--space-8);
		align-items: center;
		font-family: var(--font-en);
		font-size: var(--fz-10);
		line-height: 1;
		color: rgb(255 255 255 / 0.55);
		letter-spacing: 0.2em;
		translate: -50% 0;

		&::after {
			width: 0.5rem;
			height: 0.5rem;
			content: "";
			border-right: 1px solid currentcolor;
			border-bottom: 1px solid currentcolor;
			rotate: 45deg;
		}
	}

	.top-mission__panel {
		width: 100%;
		padding: 5rem var(--top-gutter);
	}

	.top-mission__title {
		margin-top: var(--space-24);
		font-size: 1.875rem;
		line-height: 1.333;
	}

	.top-mission__text {
		gap: 1.4rem;
		margin-top: var(--space-24);
		font-size: var(--fz-13);
		line-height: 1.8;
	}

	.top-mission__link {
		margin-top: var(--space-40);
	}

	.top-message {
		padding: 5rem var(--top-gutter) var(--space-48);
	}

	.top-message__body {
		gap: var(--space-16);
	}

	.top-message__quote {
		font-size: min(1.375rem, 5.87vw); /* 「AI・データから再構築する。”」が 1 行に収まるように */
	}

	.top-message__name {
		padding: var(--space-4) var(--space-12);
		font-size: var(--fz-16);
		letter-spacing: 0.12em;
	}

	.top-solution {
		padding-top: 5rem;

		.top-columns {
			gap: var(--space-40);
			padding-top: var(--space-24);
		}

		.top-lead {
			font-size: min(1.1875rem, 5.06vw); /* 「AI・データサイエンスの専門性で、」が 1 行に収まるように */
			line-height: 1.7;
		}

		.top-text {
			margin-top: var(--space-24);
		}
	}

	.top-solution__group-title {
		font-size: var(--fz-18);
	}

	.top-solution__link {
		font-size: var(--fz-16);
		font-weight: 400;
	}

	.top-solution__group--main .top-solution__name {
		font-size: var(--fz-16);
	}

	.top-solution__desc {
		font-size: var(--fz-12);
	}

	.top-solution__catch {
		font-size: var(--fz-14);
		line-height: 1.8;
	}

	.top-clients {
		margin-top: var(--space-40);
	}

	.top-clients__title {
		font-size: var(--fz-16);
	}

	.top-clients__list {
		justify-content: flex-start;
		padding-inline: var(--space-16);
	}

	.top-clients__item {
		width: 6.25rem;
		height: 3.75rem;
	}

	.top-experts {
		padding-block: 5rem var(--space-48);

		.top-lead {
			margin-top: var(--space-24);
		}
	}

	.top-experts__links {
		gap: var(--space-20);
		margin-top: var(--space-32);
	}

	.top-expert--advisor {
		width: 12.5rem;
	}

	.top-expert--member {
		width: 10rem;
	}

	.top-expert__role {
		font-size: var(--fz-10);
	}

	.top-expert__name-ja {
		font-size: var(--fz-14);
	}

	.top-expert__name-en {
		font-size: var(--fz-10);
		letter-spacing: 0.04em;
	}

	.top-recruit__intro {
		padding: 5rem var(--top-gutter) var(--space-40);
	}

	.top-recruit__text {
		margin-top: var(--space-24);
		font-family: var(--font-sans);
		font-size: var(--fz-12);
		line-height: 1.8;
		color: var(--color-footer-lead);
	}

	.top-recruit__links {
		grid-template-columns: minmax(0, 1fr);
		margin-inline: var(--top-gutter);
		border-top: 0;
	}

	.top-recruit__item + .top-recruit__item {
		border-left: 0;
	}

	.top-recruit__item {
		border-top: 1px solid rgb(255 255 255 / 0.3);
	}

	.top-recruit__card {
		align-items: stretch;
		gap: var(--space-12);
		height: auto;
		padding: var(--space-20) 0;

		.top-link {
			align-self: flex-end;
		}
	}

	.top-recruit__en {
		font-size: var(--fz-16);
	}

	.top-recruit__entry {
		padding: var(--space-48) var(--top-gutter) 3.75rem;
	}

	.top-recruit__entry-text {
		font-size: var(--fz-14);
		font-weight: 400;
		line-height: 1.7;
	}

	.top-news {
		padding-block: 5rem var(--space-48);
	}

	.top-news__columns {
		gap: var(--space-40);
		margin-top: var(--space-24);
	}

	.top-news__list {
		margin-inline: -0.75rem;
	}

	.top-news__item {
		flex-direction: column;
		gap: var(--space-4);
		align-items: flex-start;
		padding: var(--space-16) var(--space-12);
	}

	.top-news__category {
		width: auto;
		font-size: var(--fz-12);
	}

	.top-news__title {
		width: 100%;
		font-size: var(--fz-13);
	}

	.top-news-card {
		width: 13.125rem;
	}

	.top-news-card__body {
		padding: var(--space-12) var(--space-12) var(--space-16);
	}

	.top-news-card__title {
		font-size: var(--fz-12);
	}
}

/* スペシャル対談（本文はカスタムブロック blocks/discussion-*。編集画面でも同じ見た目） */
.discussion {
	--discussion-column: min(var(--container-narrow), 100% - var(--gutter) * 2); /* 本文の列（幅 1040px） */
	--discussion-bg: var(--color-bg-light); /* タイトル・プロフィール・お知らせの帯の背景 */
}

/* キービジュアル：写真の下寄りに「スペシャル対談」と登場人物の帯を重ねる */
.discussion-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	align-items: center;
	justify-content: flex-end;
	height: 40.625rem;
	padding-bottom: 6.25rem;
	overflow: hidden;
}

.discussion-hero__image {
	position: absolute;
	inset: 0;
	display: block;
}

.discussion-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.discussion-hero__band {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	align-items: center;
}

.discussion-hero__label {
	padding: 0.3125rem var(--space-16) var(--space-10) var(--space-12);
	font-family: var(--font-serif);
	font-size: 2.5rem;
	font-weight: 500;
	line-height: 1;
	color: var(--color-primary);
	background: var(--color-white);
}

.discussion-hero__people {
	--x-size: 4rem; /* 人物の間の「×」の大きさ */
	--x-gap: var(--space-32);

	display: flex;
	gap: var(--x-gap);
	align-items: center;
	padding: 1.5625rem 2.25rem 1.5rem;
	color: var(--color-white);
	background: var(--color-primary);
}

.discussion-hero__person {
	display: flex;
	flex-direction: column;
	gap: 0.84375rem;
	align-items: center;
	min-width: 11rem;
	text-align: center;

	/* 人物の間の「×」（前の人物との間に置く） */
	& + & {
		position: relative;
		margin-left: calc(var(--x-size) + var(--x-gap));

		&::before {
			position: absolute;
			top: 50%;
			right: calc(100% + var(--x-gap));
			width: var(--x-size);
			height: var(--x-size);
			content: "";
			background:
				linear-gradient(to top right, transparent calc(50% - 0.5px), rgb(255 255 255 / 0.9) calc(50% - 0.5px), rgb(255 255 255 / 0.9) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
				linear-gradient(to bottom right, transparent calc(50% - 0.5px), rgb(255 255 255 / 0.9) calc(50% - 0.5px), rgb(255 255 255 / 0.9) calc(50% + 0.5px), transparent calc(50% + 0.5px));
			translate: 0 -50%;
		}
	}
}

.discussion-hero__name {
	font-family: var(--font-serif);
	font-size: 2.53125rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.02em;
}

.discussion-hero__role {
	font-size: var(--fz-14);
	font-weight: 500;
	line-height: 1.15;
}

/* タイトル・サブタイトル・リード文 */
.discussion-intro {
	padding-top: 3.75rem;
	color: var(--color-primary);
	background: var(--discussion-bg);
}

.discussion-intro__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	width: var(--discussion-column);
	margin-inline: auto;
}

.discussion-intro__title {
	font-family: var(--font-serif);
	font-size: 2.25rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	word-break: auto-phrase;
}

/* サブタイトル：左右に線 */
.discussion-intro__subtitle {
	display: flex;
	gap: var(--space-24);
	align-items: center;
	font-size: var(--fz-20);
	line-height: 1.8;
	text-align: center;

	&::before,
	&::after {
		flex: 1;
		min-width: var(--space-16);
		height: 1px;
		content: "";
		background: rgb(66 9 232 / 0.5);
	}
}

.discussion-intro__lead {
	margin-top: var(--space-16);
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
}

/* プロフィール（3 列） */
.discussion-profiles {
	padding: 3.75rem 0;
	background: var(--discussion-bg);
}

.discussion-profiles__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	width: var(--discussion-column);
	margin-inline: auto;
}

.discussion-profile {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	align-items: center;
	padding: var(--space-16);
	background: var(--color-white);
}

.discussion-profile__name {
	font-family: var(--font-serif);
	font-size: var(--fz-18);
	font-weight: 500;
	line-height: 1.8;
	color: var(--color-primary);
	text-align: center;
}

.discussion-profile__photo,
.discussion-remark__photo {
	display: block;
	width: 6.25rem;
	height: 6.25rem;
	object-fit: cover;
	background: var(--discussion-bg, var(--color-bg-light));
	border-radius: 50%;
}

.discussion-profile__bio {
	align-self: stretch;
	font-size: var(--fz-13);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);
}

/* 章：見出し＋発言 */
.discussion-chapter {
	display: flex;
	flex-direction: column;
	gap: var(--space-48);
	width: var(--discussion-column);
	margin-inline: auto;
	padding-block: 5rem;
}

.discussion-chapter__title {
	font-family: var(--font-serif);
	font-size: var(--fz-28);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-primary);
	text-align: center;
	letter-spacing: 0.02em;
}

.discussion-chapter__remarks {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

/* 発言：［アイコン｜本文｜空き］。PC は章ごとに 1 件目のアイコンが左、以降は左右交互 */
.discussion-remark {
	display: grid;
	grid-template-columns: 6.25rem minmax(0, 1fr) 6.25rem;
	gap: var(--space-32);
	align-items: start;
	padding-block: var(--space-8);
}

.discussion-remark__icon {
	grid-row: 1;
	grid-column: 1;
	display: block;
	width: 6.25rem;
	height: 6.25rem;
}

.discussion-remark__body {
	grid-row: 1;
	grid-column: 2;
}

.discussion-remark:nth-child(even) .discussion-remark__icon {
	grid-column: 3;
}

.discussion-remark__speaker {
	font-size: var(--fz-15);
	font-weight: 700;
	line-height: 1.8;
	color: var(--color-primary);
}

.discussion-remark__text {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);
}

/* 写真（全幅） */
.discussion-photo {
	position: relative;
	height: 33.75rem;
	overflow: hidden;
}

.discussion-photo--large {
	height: 40rem;
}

.discussion-photo__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* スクロールで表示（data-js="reveal"）：キービジュアルの「スペシャル対談」・タイトル・章の見出しは帯 → 文字、
   そのほか（登場人物の帯・リード・プロフィール・発言・お知らせ）は下からふわっと。写真は動かさない。
   帯の長さを文字幅に合わせるため、タイトル・章の見出しは文字を囲む span に付ける（inline-block） */
.discussion-intro__title-text,
.discussion-chapter__title-text,
.discussion-note__text {
	display: inline-block;
}

/* お知らせの帯 */
.discussion-note {
	padding: var(--space-48) var(--gutter);
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-primary);
	text-align: center;
	background: var(--discussion-bg, var(--color-bg-light));

	& a {
		text-decoration: underline;
	}
}

/* タブレット */
@media (max-width: 1279px) {
	.discussion-hero__people {
		--x-size: 3rem;
		--x-gap: var(--space-24);

		padding-inline: var(--space-24);
	}

	.discussion-hero__person {
		min-width: 0;
	}

	.discussion-hero__name {
		font-size: var(--fz-32);
	}

	/*
	 * 写真は PC と同じ縦横比で縮める（高さを固定すると左右が切れて 3 人が入らないため。スマホも同じ）。
	 * キービジュアルは写真の下に帯を置き、「スペシャル対談」は写真の下端に重ねる
	 */
	.discussion-hero {
		gap: 0;
		height: auto;
		padding: 0;
		overflow: visible;
	}

	.discussion-hero__image {
		position: relative;
		width: 100%;
		aspect-ratio: 1600 / 650;
	}

	.discussion-hero__band {
		gap: 0;
		width: 100%;
	}

	.discussion-hero__label {
		position: absolute;
		bottom: 100%;
	}

	.discussion-hero__people {
		justify-content: center;
		width: 100%;
	}

	.discussion-photo {
		height: auto;
		aspect-ratio: 1600 / 540;
	}

	.discussion-photo--large {
		height: auto;
		aspect-ratio: 1600 / 640;
	}
}

/* スマホ */
@media (max-width: 599px) {
	.discussion {
		--discussion-column: calc(100% - var(--space-16) * 2);
	}

	/* 写真の下に帯（重ねない）。「スペシャル対談」は写真の左下に重ねる */
	.discussion-hero {
		height: auto;
		padding: 0;
		overflow: visible;
	}

	.discussion-hero__image {
		position: relative;
		width: 100%;
		height: 18.75rem;
	}

	.discussion-hero__band {
		gap: 0;
		width: 100%;
	}

	.discussion-hero__label {
		position: absolute;
		bottom: 100%;
		left: 0; /* 写真の左端に付ける */
		padding: 0.125rem var(--space-8) 0.25rem;
		font-size: 1.1875rem;
		line-height: 1.26;
	}

	.discussion-hero__people {
		--x-size: 1.5rem;
		--x-gap: 0.25rem;

		justify-content: center;
		width: 100%;
		padding: 1.25rem 0.5625rem var(--space-16);
	}

	.discussion-hero__person {
		flex: 1;
		gap: var(--space-8);
	}

	.discussion-hero__name {
		font-size: 1.3125rem;
		white-space: nowrap;
	}

	.discussion-hero__role {
		font-size: 0.59375rem;
		font-weight: 400;
		line-height: 1.37;
	}

	.discussion-intro {
		padding-top: var(--space-24);
	}

	.discussion-intro__inner {
		width: calc(100% - var(--space-12) * 2);
	}

	.discussion-intro__title {
		font-size: var(--fz-22);
		word-break: normal; /* SP は文節で区切らず、行いっぱいに詰める */
	}

	.discussion-intro__subtitle {
		gap: var(--space-8);
		font-size: var(--fz-14);
		line-height: 1.5;
	}

	.discussion-intro__lead {
		margin: 0 var(--space-4);
		font-size: var(--fz-13);
	}

	.discussion-profiles {
		padding: var(--space-24) 0;
	}

	.discussion-profiles__list {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-12);
	}

	/* 写真の右に氏名、紹介文は下 */
	.discussion-profile {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: var(--space-12) var(--space-24);
		align-items: center;
	}

	.discussion-profile__name {
		grid-row: 1;
		grid-column: 2;
		text-align: left;
	}

	.discussion-profile__photo {
		grid-row: 1;
		grid-column: 1;
		width: 5rem;
		height: 5rem;
	}

	.discussion-profile__bio {
		grid-column: 1 / -1;
		font-size: var(--fz-12);
	}

	.discussion-chapter {
		gap: var(--space-24);
		padding-block: var(--space-48);
	}

	.discussion-chapter__title {
		font-size: var(--fz-18);
		text-align: left;
		letter-spacing: 0;
	}

	.discussion-chapter__remarks {
		gap: var(--space-24);
	}

	/* SP はアイコンなし（名前＋本文） */
	.discussion-remark {
		display: block;
		padding: 0;
	}

	.discussion-remark__icon {
		display: none;
	}

	.discussion-remark__text {
		font-size: var(--fz-14);
	}

	/* 途中の写真：PC の比率より少し高く（左右は少し切れる。人物が両端にいる写真もあるので切りすぎない） */
	.discussion-photo {
		aspect-ratio: 12 / 5;
	}

	.discussion-photo--large {
		aspect-ratio: 2 / 1;
	}

	.discussion-note {
		padding: var(--space-40) var(--space-16);
		font-size: var(--fz-13);
		text-align: left;
	}
}

/*
 * 写真の表示範囲（.has-area。inc/discussion.php の cocoe_discussion_area()）
 * 画像は PC・SP の両方の範囲を含めて書き出してあり、--pc-* / --sp-* の範囲（画像に対する割合）を枠いっぱいに表示する。
 * 横は範囲の幅を枠の幅に合わせ、縦は範囲の中央を枠の中央に合わせる
 */
.has-area {
	--x0: var(--pc-x0);
	--y0: var(--pc-y0);
	--x1: var(--pc-x1);
	--y1: var(--pc-y1);
	--aspect: var(--pc-aspect);

	overflow: hidden; /* 位置の基準（position）は各部品の指定のまま（キービジュアルは absolute、写真は relative） */

	& > img {
		position: absolute;
		top: 50%;
		left: calc(-100% * var(--x0) / (var(--x1) - var(--x0)));
		width: calc(100% / (var(--x1) - var(--x0)));
		max-width: none;
		height: auto;
		object-fit: fill;
		translate: 0 calc(-100% * (var(--y0) + var(--y1)) / 2);
	}
}

/* タブレット・SP：枠の縦横比は範囲の縦横比（高さを固定しない） */
@media (max-width: 1279px) {
	.discussion-photo.has-area,
	.discussion-hero__image.has-area {
		height: auto;
		aspect-ratio: var(--aspect);
	}
}

@media (max-width: 599px) {
	.has-area {
		--x0: var(--sp-x0);
		--y0: var(--sp-y0);
		--x1: var(--sp-x1);
		--y1: var(--sp-y1);
		--aspect: var(--sp-aspect);
	}
}

/* 対談の編集画面：本文を全幅に（列の幅はフロントと同じ） */
.is-root-container:has(> .discussion-hero, > .discussion-chapter) {
	--discussion-column: min(var(--container-narrow), 100% - var(--gutter) * 2);
	--discussion-bg: var(--color-bg-light);

	padding: 0;

	& > .wp-block {
		max-width: none;
		margin: 0;
	}
}

.editor-styles-wrapper {
	.discussion-profiles__list > .wp-block,
	.discussion-chapter__remarks > .wp-block {
		max-width: none;
		margin: 0;
	}

	.discussion-profiles__list > .block-list-appender {
		grid-column: 1 / -1;
	}
}

/*
 * トップ：画面幅が 1600px より広いときの左右の余白（見出しの画面端からの距離をセクション間でそろえる）
 * 1600px より広いと文字の大きさが変わらないため、画面端から固定のセクションと中央寄せ（幅 1440px まで）のセクションで距離が食い違う。
 * 共通の距離を 5vw にし、画面端から固定のセクションは 1600px での距離から少しずつ広げて合わせる
 */
@media (min-width: 1601px) {
	.home {
		--top-edge: 5vw; /* スライダーを画面の端まで伸ばす量（中央寄せのセクションの余白と同じ） */
	}

	.top-container,
	.top-clients__title {
		width: calc(100% - 10vw);
	}

	/* Solution：1600px より広がった分（--top-solution-extra）を、左の列との間に 3 割・一覧の幅に 4 割・右の余白に 3 割。
	   Experts も右のブロックの左端を Solution の一覧にそろえる */
	.top-solution,
	.top-experts {
		--top-solution-extra: calc(90vw - 90rem); /* 中央寄せの枠の幅 − 1440px */
		--top-solution-gap: calc(3.75rem + var(--top-solution-extra) * 0.3);

		.top-columns {
			column-gap: var(--top-solution-gap);
		}
	}

	.top-solution__nav {
		width: calc(51.25rem + var(--top-solution-extra) * 0.4);
	}

	/* キービジュアル：見出しの右端（1600px で 32px → 1920px で 5vw） */
	.top-hero {
		padding-right: min(5vw, 2rem + (100vw - 1600px) * 0.2);
	}

	/* Mission：1600px で 80px = 5vw */
	.top-mission__panel {
		padding-left: 5vw;
	}

	/* Message：見出しは右下のまとまり。右端（1600px で 70px） */
	.top-message {
		padding-right: min(5vw, 4.375rem + (100vw - 1600px) * 0.2);
	}

	/* Recruit：1600px で 60px */
	.top-recruit__intro {
		padding-left: min(5vw, 3.75rem + (100vw - 1600px) * 0.2);
	}
}

/* メンバーインタビュー（single-interview.php） */

/* タイトル：Recruit ＋大見出し＋Interview 01 */
.interview-title {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	align-items: flex-start;
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 0.625rem 2.125rem;
	color: var(--color-primary);
}

.interview-title__label {
	padding-block: 0.3125rem;
	font-family: var(--font-serif-en);
	font-size: var(--fz-32);
	line-height: 1.36;
	letter-spacing: 0.02em;
	border-bottom: 1px solid currentcolor;
}

.interview-title__heading {
	display: flex;
	flex-direction: column;
	gap: 0.8125rem;
	font-weight: inherit;
}

.interview-title__catch {
	font-family: var(--font-serif);
	font-size: var(--fz-48);
	font-weight: 500;
	line-height: 1.4;
	word-break: auto-phrase;
}

.interview-title__number {
	font-size: var(--fz-18);
	line-height: 1.2;
	letter-spacing: 0.125rem;
}

/* プロフィール（薄い背景の帯） */
.interview-profile {
	background: var(--color-bg-light);
}

.interview-profile__inner {
	display: flex;
	gap: var(--space-48);
	align-items: center;
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: var(--space-32);
}

.interview-profile__person {
	display: flex;
	flex: none;
	gap: var(--space-48);
	align-items: center;
}

/* 丸い写真：人物の切り抜き写真を、顔が大きく入るように拡大して表示 */
.interview-profile__photo {
	flex: none;
	width: 8.75rem;
	aspect-ratio: 1;
	overflow: hidden;
	background: #d6dcf6;
	border-radius: 50%;
}

.interview-profile__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transform: scale(1.45);
	transform-origin: 50% 8%;
}

.interview-profile__meta {
	display: flex;
	flex-direction: column;
	gap: 0.5625rem;
	width: 16.6667rem;
}

.interview-profile__name {
	font-size: var(--fz-28);
	font-weight: 500;
	line-height: 1.2;
	color: #121212;
	letter-spacing: 0.125rem;
}

.interview-profile__name-en {
	font-family: var(--font-serif-en);
	font-size: var(--fz-14);
	line-height: 1.3;
	color: var(--color-text-muted);
	letter-spacing: 0.125rem;
}

.interview-profile__career,
.interview-profile__text {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);
}

.interview-profile__text {
	flex: 1;
	min-width: 0;
	max-width: 46.3333rem;
}

/* メイン写真：画面の幅いっぱい */
.interview-visual {
	height: 33.75rem;
}

.interview-visual__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* リード文：メイン写真の下の薄い背景の帯 */
.interview-lead {
	background: var(--color-bg-light);
}

.interview-lead__text {
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: var(--space-48);
	font-size: var(--fz-16);
	line-height: 1.8;
	color: var(--color-primary);
}

/* 本文：インタビューの段（ブロック）。章＋写真を横に並べ、写真は 1 段目が右、2 段目が左…と交互 */
.interview-content {
	display: flex;
	flex-direction: column;
	gap: 4.5rem;
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 3.75rem 6.25rem;
}

.interview-section {
	display: flex;
	gap: 5rem;
	align-items: flex-start;

	&:nth-child(even of .interview-section) {
		flex-direction: row-reverse;
	}
}

.interview-section__chapters {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-32);
	min-width: 0;
}

.interview-section__image {
	flex: none;
	width: 36.25rem;
	aspect-ratio: 1;
	overflow: hidden;
}

.interview-section__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 章：見出し（明朝体）＋質問・回答 */
.interview-chapter {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
	padding-block: 0.5rem;
}

.interview-chapter__heading {
	font-family: var(--font-serif);
	font-size: var(--fz-28);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-primary);
	letter-spacing: 0.02em;
}

/* 回答（段落）。段落の間は空けず、質問と回答の間は 8px、回答と次の質問の間は 32px */
.interview-chapter__text {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);

	& > * + * {
		margin-top: 0;
	}

	& > .interview-question + * {
		margin-top: 0.5rem;
	}

	& > * + .interview-question {
		margin-top: var(--space-32);
	}
}

.interview-question {
	font-size: var(--fz-16);
	font-weight: 500;
	line-height: 1.6;
	color: var(--color-primary);

	&::before {
		content: "— ";
	}
}

/* インタビュー一覧 */
.interview-list {
	background: var(--color-bg-light);
}

.interview-list__inner {
	display: flex;
	gap: var(--space-48);
	align-items: flex-start;
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 3.75rem 4.5rem;
}

.interview-list__head {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: var(--space-40);
	width: 18.25rem;
	padding-inline: var(--space-4);

	.section-heading {
		gap: var(--space-8);
		padding-inline: 0;
	}
}

.interview-list__lead {
	font-size: var(--fz-14);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text-sub);
}

.interview-list__cards {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-24);
	min-width: 0;
	max-width: var(--container-narrow);
}

.interview-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--color-white);
}

.interview-card__image {
	display: block;
	height: 10.75rem;
	overflow: hidden;
	background: #e2e1e7;
}

.interview-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 12%;
	transition: scale 0.6s var(--easing);
}

.interview-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-12);
	align-items: flex-start;
	padding: var(--space-20) var(--space-24) var(--space-40);
}

.interview-card__title {
	font-family: var(--font-serif);
	font-size: var(--fz-16);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-primary);
}

.interview-card__person {
	display: flex;
	flex-direction: column;
	gap: 0.5625rem;
}

.interview-card__role {
	font-size: var(--fz-13);
	line-height: 1.2;
	color: var(--color-text-muted);
	letter-spacing: 0.125rem;
}

.interview-card__name {
	font-size: var(--fz-22);
	font-weight: 500;
	line-height: 1.2;
	color: #121212;
	letter-spacing: 0.125rem;
}

.interview-card__name-en {
	font-family: var(--font-serif-en);
	font-size: 0.625rem;
	line-height: 1.3;
	color: var(--color-text-muted);
	letter-spacing: 0.125rem;
}

.interview-card__more {
	position: relative;
	display: inline-flex;
	gap: var(--space-10);
	align-items: center;
	margin-top: auto;
	padding-block: var(--space-12) 0.375rem;
	font-size: var(--fz-14);
	line-height: 1.2;
	color: var(--color-primary);
	letter-spacing: 0.07em;
	/* 下線は ::after（トップの「… →」のリンクと同じ動き） */
}

@media (hover: hover) {
	.interview-card__link:hover .interview-card__img {
		scale: 1.05;
	}
}

/* タブレット：本文の写真と一覧を縮める */
@media (max-width: 1279px) {
	.interview-profile__inner {
		flex-wrap: wrap;
		gap: var(--space-24) var(--space-48);
	}

	.interview-profile__text {
		flex-basis: 100%;
		max-width: none;
	}

	.interview-section {
		gap: var(--space-40);
	}

	.interview-section__image {
		width: 42%;
	}

	.interview-list__inner {
		flex-direction: column;
		gap: var(--space-32);
	}

	.interview-list__head {
		width: auto;
		gap: var(--space-24);
	}

	.interview-list__cards {
		width: 100%;
		max-width: none;
	}
}

/* スマホ */
@media (max-width: 599px) {
	.interview-title {
		gap: 0.125rem;
		padding-block: var(--space-24);
	}

	.interview-title__label {
		padding-block: 0.15625rem;
		font-size: var(--fz-18);
		border-bottom-width: 0.5px;
	}

	.interview-title__heading {
		gap: 0.375rem;
	}

	.interview-title__catch {
		font-size: var(--fz-24);
		word-break: normal;
	}

	.interview-title__number {
		font-size: var(--fz-12);
		letter-spacing: 0.0625rem;
	}

	.interview-profile__inner {
		flex-direction: column;
		gap: var(--space-16);
		align-items: stretch;
		width: auto; /* 左右の余白をほかのセクションと同じ 16px に */
		padding: var(--space-16);
	}

	.interview-profile__person {
		gap: var(--space-16);
	}

	.interview-profile__photo {
		width: 4.5rem;
	}

	.interview-profile__meta {
		gap: 0.125rem;
		width: auto;
	}

	.interview-profile__name {
		font-size: var(--fz-18);
	}

	.interview-profile__name-en {
		font-size: 0.5rem;
	}

	.interview-profile__career {
		margin-top: 0.125rem;
		font-size: var(--fz-11);
		font-weight: 400;
		line-height: 1.5;
		letter-spacing: 0.125rem;
	}

	.interview-profile__text {
		font-size: var(--fz-12);
	}

	.interview-visual {
		height: 15.625rem;
	}

	.interview-content {
		gap: var(--space-32);
		width: auto;
		padding: var(--space-40) var(--space-16);
	}

	.interview-lead__text {
		width: auto;
		padding: var(--space-32) var(--space-16);
		font-size: var(--fz-14);
	}

	/* 章の下に写真 */
	.interview-section,
	.interview-section:nth-child(even of .interview-section) {
		flex-direction: column;
		gap: var(--space-32);
		align-items: stretch;
	}

	.interview-section__image {
		width: 100%;
	}

	.interview-chapter {
		gap: var(--space-20);
		padding-block: 0;
	}

	.interview-chapter__heading {
		font-size: var(--fz-18);
		letter-spacing: 0;
	}

	.interview-chapter__text {
		font-size: var(--fz-13);

		& > .interview-question + * {
			margin-top: 0.375rem;
		}

		& > * + .interview-question {
			margin-top: var(--space-24);
		}
	}

	.interview-question {
		font-size: var(--fz-13);
	}

	.interview-list__inner {
		gap: var(--space-24);
		width: auto;
		padding: var(--space-40) var(--space-16);
	}

	.interview-list__head {
		gap: var(--space-24);
		padding-inline: 0.1875rem;

		.section-heading__title {
			font-size: var(--fz-32);
		}

		.section-heading__sub {
			font-size: var(--fz-14);
		}
	}

	.interview-list__lead {
		font-size: var(--fz-13);
		color: var(--color-text);
	}

	.interview-list__cards {
		grid-template-columns: 1fr;
	}

	/* カードは写真を左、文字を右に */
	.interview-card__link {
		flex-direction: row;
	}

	.interview-card__image {
		flex: none;
		width: 7.8125rem;
		height: auto;
		min-height: 11.5rem;
	}

	.interview-card__img {
		object-position: center top;
	}

	.interview-card__body {
		padding: var(--space-16) 1.125rem var(--space-24);
	}

	.interview-card__title {
		font-size: var(--fz-15);
	}

	.interview-card__person {
		gap: 0.375rem;
	}

	.interview-card__role {
		font-size: var(--fz-12);
		letter-spacing: 0.0625rem;
	}

	.interview-card__name {
		font-size: var(--fz-18);
	}

	.interview-card__name-en {
		font-size: 0.5rem;
	}

	.interview-card__more {
		display: none;
	}
}

/* 採用情報トップ */

/* キービジュアル */
.hero--recruit {
	--hero-title-top: 12.25rem; /* 文字のかたまりを上下中央に置くため、ほかのページより下 */

	&::after {
		background: rgb(0 0 0 / 0.3);
	}

	.hero__bg {
		object-position: 50% 59%;
	}

	.hero__inner {
		filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.25));
	}

	.hero__catch {
		line-height: 1.25;
	}
}

/* キャッチの下のサブコピー */
.hero__catch-line--sub {
	margin-top: var(--space-20);
	font-family: var(--font-sans);
	font-size: var(--fz-18);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.05em;
}

/* ステートメント：左に文章、右にロゴ */
.recruit-message__inner {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); /* 文章が長いため文章の列を広く */
	gap: var(--space-40);
	align-items: center;
	width: min(var(--container-max), 100% - var(--gutter) * 2); /* 文字の左端をキービジュアルの文字とそろえる */
	margin-inline: auto;
	padding-block: 3.75rem 4.5rem;
}

.recruit-message__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-40);
	padding-block: var(--space-8); /* 左右の余白はなし（キービジュアルの文字とそろえる） */
}

.recruit-message__title {
	font-family: var(--font-serif);
	font-size: var(--fz-32);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-primary);
}

.recruit-message__text {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 2;
	color: var(--color-text);

	& > p + p {
		margin-top: 2em; /* 1 行分空ける */
	}
}

.recruit-message__logo {
	display: flex;
	justify-content: center;

	img {
		width: 17.75rem;
	}
}

/* 幅いっぱいの写真（採用情報トップ・キャリア開発・働く環境） */
.recruit-photo {
	height: 33.75rem;
	overflow: hidden;
}

.recruit-photo__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.recruit-photo--career .recruit-photo__img {
	object-position: 67% 40%;
}

.recruit-photo--environment {
	height: 47.25rem;

	.recruit-photo__img {
		object-position: 50% 90%;
	}
}

.recruit-photo--career-hero .recruit-photo__img {
	object-position: 50% 61%;
}

.recruit-photo--environment-hero .recruit-photo__img {
	object-position: 100% 69%;
}

/* 枠線のボタン。マウスを乗せると左から青が入り、外すと右へ抜けて消える */
.recruit-button {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	gap: var(--space-12);
	align-items: center;
	justify-content: space-between;
	width: 17.5rem;
	min-height: 3rem;
	padding: var(--space-8) var(--space-20);
	white-space: nowrap;
	overflow: hidden;
	font-size: 1.09375rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--color-primary);
	letter-spacing: 0.125rem;
	border: 1.25px solid var(--color-primary);
	transition: color 0.35s var(--easing-out);

	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: var(--color-primary);
		scale: 0 1;
		transform-origin: right center;
		transition: scale 0.35s var(--easing-out);
	}
}

.recruit-button__arrow {
	font-size: var(--fz-20);
	line-height: 1;
}

@media (hover: hover) {
	.recruit-button:is(:hover, :focus-visible) {
		color: var(--color-white);

		&::before {
			scale: 1 1;
			transform-origin: left center;
		}
	}
}

/* Career Development：左に文章とボタン、右にカード */
.recruit-career__inner,
.recruit-environment__inner,
.recruit-jobs__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
	width: min(var(--container-max), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 3.75rem 4.5rem;

	.section-heading {
		gap: var(--space-8);
		padding-inline: 0;
	}
}

.recruit-career__columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-40);
	align-items: start;
}

.recruit-career__intro {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	align-items: flex-start;

	.recruit-button {
		margin-top: var(--space-16);
	}
}

.recruit-career__lead {
	font-family: var(--font-serif);
	font-size: var(--fz-24);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-primary);
}

.recruit-career__text,
.recruit-environment__text {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 2;
	color: var(--color-text);
}

.recruit-career__cards {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);

	.recruit-card {
		padding: var(--space-20) var(--space-24);
	}
}

/* 枠線のカード（採用情報トップ・キャリア開発・働く環境） */
.recruit-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: var(--space-32);
	border: 1px solid var(--color-border);
}

.recruit-card__title {
	font-size: var(--fz-16);
	font-weight: 700;
	line-height: 1.5; /* 2 行になる見出し（働く環境の「コンサルタント／— リモートワーク可能」など）が詰まらないように */
	color: var(--color-primary);
	letter-spacing: 0.055em;
}

.recruit-card__text {
	font-size: var(--fz-14);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text-sub);
}

/* Working Environment：文章の右にボタン */
.recruit-environment__body {
	display: flex;
	gap: 3.75rem;
	align-items: center;
	justify-content: space-between;

	.recruit-button {
		flex: none;
	}
}

/* Job Category：職種ごとに開閉 */
.recruit-jobs {
	background: var(--color-bg-light);
}

.recruit-jobs__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.recruit-job {
	background: var(--color-white);
	border: 1px solid var(--color-border);
}

.recruit-job__toggle {
	display: flex;
	gap: var(--space-16);
	align-items: baseline;
	width: 100%;
	padding: var(--space-24) 2.25rem;
	text-align: left;
}

.recruit-job__name {
	font-family: var(--font-serif-en);
	font-size: var(--fz-24);
	font-weight: 400;
	line-height: 1.2;
	color: var(--color-text);
	letter-spacing: 0.02em;
}

.recruit-job__name-ja {
	font-size: var(--fz-14);
	font-weight: 400;
	line-height: 1.4;
	color: var(--color-text-muted);
}

/* 開閉の印（○の中に － / ＋） */
.recruit-job__icon {
	position: relative;
	flex: none;
	align-self: center;
	width: 2.375rem;
	height: 2.375rem;
	margin-left: auto;
	color: var(--color-primary);
	border: 1px solid currentcolor;
	border-radius: 50%;
	transition:
		color var(--duration) var(--easing),
		background-color var(--duration) var(--easing);

	&::before,
	&::after {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 0.75rem;
		height: 1.5px;
		content: "";
		background: currentcolor;
		translate: -50% -50%;
		transition: rotate var(--duration) var(--easing);
	}

	&::after {
		rotate: 90deg;
	}

	[aria-expanded="true"] > &::after {
		rotate: 0deg;
	}
}

@media (hover: hover) {
	.recruit-job__toggle:hover .recruit-job__icon {
		color: var(--color-white);
		background: var(--color-primary);
	}
}

.recruit-job__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	width: min(58.5rem, 100% - 4.5rem);
	margin-inline: auto;
	padding-bottom: var(--space-24);
}

.recruit-job__section {
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	padding: var(--space-10);
}

.recruit-job__title {
	padding-bottom: var(--space-10);
	font-size: var(--fz-17);
	font-weight: 700;
	line-height: 1.4;
	color: #111;
	border-bottom: 1px solid #e0e0e0;
}

.recruit-job__text,
.recruit-job__conditions {
	font-size: var(--fz-14);
	font-weight: 350;
	line-height: 1.4;
	color: #444;
}

/* 長い文章もあるので行間を広く */
.recruit-job__conditions dd {
	line-height: 1.8;
}

.recruit-job__condition {
	display: flex;
	gap: var(--space-20);
	padding-block: var(--space-16);
	border-bottom: 1px solid #e0e0e0;

	&:first-child {
		padding-top: 0;
	}

	dt {
		flex: none;
		width: 10rem; /* 長い項目名（「その他勤務条件に関する備考」など）が入るように */
		line-height: 1.8;
		font-weight: 500;
	}
}

/* Join Our Team：青い帯 */
.recruit-join {
	color: var(--color-white);
	background: var(--color-primary);
}

.recruit-join__inner {
	display: flex;
	gap: 5.75rem;
	align-items: center;
	width: min(var(--container-max), 100% - var(--gutter) * 2); /* 上のコンテンツの幅にそろえる */
	margin-inline: auto;
	padding-block: 3.25rem;
}

.recruit-join__title {
	position: relative;
	padding-bottom: 0.375rem;
	font-family: var(--font-serif-en);
	font-size: 2.25rem;
	font-weight: 300;
	line-height: 1.36;
	letter-spacing: 0.05em;
	white-space: nowrap;
	/* 下線は ::after（エントリーページへのリンク。マウスを乗せると右へ抜けて、左から再び伸びる） */
}

.recruit-join__text {
	font-size: var(--fz-20);
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.05em;
}

.recruit-join__button {
	position: relative;
	isolation: isolate;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	width: 18.75rem;
	height: 3.90625rem;
	margin-left: auto;
	padding-inline: var(--space-24);
	overflow: hidden;
	font-size: 1.09375rem;
	font-weight: 500;
	letter-spacing: 0.125rem;
	border: 1.25px solid currentcolor;
	transition: color 0.35s var(--easing-out);

	&::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		content: "";
		background: var(--color-white);
		scale: 0 1;
		transform-origin: right center;
		transition: scale 0.35s var(--easing-out);
	}
}

.recruit-join__arrow {
	font-size: var(--fz-20);
	line-height: 1;
}

@media (hover: hover) {
	.recruit-join__button:is(:hover, :focus-visible) {
		color: var(--color-primary);

		&::before {
			scale: 1 1;
			transform-origin: left center;
		}
	}
}

/* キャリア開発・働く環境（目次は事例詳細と同じ部品 .case-index） */
.recruit-article {
	--case-overlap: 0px; /* 上部に重ねる要素はない（タブレットの目次も重ねない） */

	.sub-title {
		padding-bottom: var(--space-24);
	}
}

.recruit-article__head {
	scroll-margin-top: var(--space-24);
}

/* 本文の列：幅 1040px、左端はコンテンツ幅 1380px の左端（事例詳細と同じ） */
.recruit-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	width: min(var(--container-narrow), 100% - var(--gutter) * 2);
	margin-left: var(--case-column-left);
	padding-top: var(--space-10);
}

.recruit-section {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
	padding-block: var(--space-32);
	scroll-margin-top: var(--space-24);
}

.recruit-section__intro {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding-block: var(--space-8);
}

.recruit-section__lead {
	font-family: var(--font-serif);
	font-size: var(--fz-22);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-primary);
	letter-spacing: 0.02em;
}

.recruit-section__text {
	font-size: var(--fz-15);
	font-weight: 350;
	line-height: 1.8;
	color: var(--color-text);
}

/* 写真のモザイクのすぐ下のセクション（働く環境の Tools & Environment） */
.recruit-section--after-gallery {
	padding-top: 4rem;
}

/* セクションの最後のボタン（左寄せ。SP は幅いっぱい） */
.recruit-section__more {
	display: flex;
}

.recruit-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-24);
}

/* 見出しの上の英字の小見出し（キャリア開発の Training） */
.recruit-section__en {
	font-size: var(--fz-16);
	line-height: 1.4;
	color: var(--color-primary);
	letter-spacing: 0.1em;
}

/* ページ上部のリード文（写真の下） */
.recruit-intro {
	padding-top: var(--space-48);
	padding-bottom: var(--space-16);
	font-size: var(--fz-17);
	font-weight: 350;
	line-height: 1.9;
	color: var(--color-text);
}

/* キャリア開発の図（画像にせず HTML で組む）
   ソリューション・事例の図と同じトーン：背景 #f4f5fc、紫、スレート #4a5e66 */
.career-training,
.career-path__figure {
	--career-slate: #4a5e66;
	--career-figure-bg: #f4f5fc;
	--career-line: rgb(66 9 232 / 0.4);

	padding: 2.5rem 2rem;
	background: var(--career-figure-bg);
}

/* 枠のカード（見出し＋本文） */
.career-box {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1rem 1.25rem 1.125rem;
	background: var(--color-white);
	border: 1px solid var(--career-line, rgb(66 9 232 / 0.4));
	border-radius: 4px;
}

.career-box__title {
	font-size: var(--fz-15);
	font-weight: 700;
	line-height: 1.6;
	color: var(--color-primary);
}

.career-box__text {
	font-size: var(--fz-13);
	line-height: 1.6;
	color: var(--color-text-sub);
}

/* 育成 / 研修：左に区分のラベル、右に内容 */
.career-training {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.career-training__row {
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.career-training__label {
	padding: 0.5rem;
	font-size: var(--fz-14);
	font-weight: 700;
	line-height: 1.6;
	color: var(--color-white);
	text-align: center;
	background: var(--career-slate);
	border-radius: 4px;
}

/* 教育研修：カード 3 枚の下に時間軸の矢印（1 本）、その下に期間 */
.career-training__study {
	display: grid;
	grid-template-columns: 262fr 380fr 190fr;
	grid-template-areas:
		"onboarding monthly one"
		"arrow arrow arrow"
		"time1 time2 time2";
	column-gap: 1rem;
}

.career-training__box--onboarding {
	grid-area: onboarding;
}

.career-training__box--monthly {
	grid-area: monthly;
}

.career-training__box--1on1 {
	grid-area: one;
}

.career-training__time {
	padding-top: 0.5rem;
	font-size: var(--fz-12);
	font-weight: 500;
	line-height: 1.6;
	color: var(--color-text-muted);
	text-align: center;
}

.career-training__time--onboarding {
	grid-area: time1;
}

.career-training__time--monthly {
	grid-area: time2;
}

/* 矢印：線＋先端（右向き） */
.career-training__arrow {
	position: relative;
	grid-area: arrow;
	height: 2px;
	margin-top: 1.25rem;
	margin-right: 1px;
	background: var(--color-primary);

	&::after {
		position: absolute;
		top: 50%;
		right: 0;
		width: 0.625rem;
		height: 0.625rem;
		content: "";
		border-top: 2px solid var(--color-primary);
		border-right: 2px solid var(--color-primary);
		transform: translateY(-50%) rotate(45deg);
	}
}

/* 実践・学習：ステップのカードを矢印でつなぐ */
.career-training__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.25rem;
	list-style: none;

	.career-box {
		position: relative;
	}

	.career-box:not(:last-child)::after {
		position: absolute;
		top: 50%;
		left: calc(100% + 0.625rem);
		font-size: var(--fz-16);
		font-weight: 700;
		line-height: 1;
		color: var(--color-primary);
		content: "→";
		transform: translateY(-50%);
	}
}

.career-training__self {
	margin-left: 7rem; /* ラベルの幅＋間隔 */
	padding: 0.75rem 1.25rem;
	font-size: var(--fz-13);
	line-height: 1.6;
	color: var(--color-text-sub);
	background: var(--color-white);
	border: 1px solid #e0e0e0;
	border-radius: 4px;

	strong {
		font-weight: 700;
		color: var(--color-primary);
	}
}

/* キャリアパス：役職・目安年収・役割の表。分岐する段（マネージャー ／ エキスパートなど）は紫 */
.career-path {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.career-path__figure {
	padding-top: 2.25rem;
}

.career-path__table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;

	th,
	td {
		padding: 0.75rem 0;
		text-align: left;
		vertical-align: middle;
	}

	thead th:nth-child(1) {
		width: 34%;
	}

	thead th:nth-child(2) {
		width: 18%;
	}

	thead th {
		padding: 0 0 0.625rem;
		font-size: var(--fz-12);
		font-weight: 500;
		line-height: 1.6;
		color: var(--color-text-muted);
	}

	tbody tr {
		border-top: 1px solid #e0e0e0;
		border-bottom: 1px solid #e0e0e0;
	}

	tbody th {
		padding-right: 1.75rem;
	}
}

.career-path__role {
	display: block;
	padding: 0.5625rem 0.5rem;
	font-size: var(--fz-14);
	font-weight: 700;
	line-height: 1.6;
	color: var(--color-white);
	text-align: center;
	background: var(--career-slate);
	border-radius: 4px;
}

.career-path__role--branch {
	background: var(--color-primary);
}

.career-path__salary {
	padding-right: 1.75rem !important;
	font-size: var(--fz-16);
	font-weight: 700;
	line-height: 1.6;
	color: var(--color-primary);
	white-space: nowrap;
}

.career-path__desc {
	font-size: var(--fz-14);
	line-height: 1.6;
	color: var(--color-text);
}

.career-path__note {
	font-size: var(--fz-13);
	font-weight: 350;
	line-height: 1.7;
	color: var(--color-text-muted);
}

/* 最後のセクションの下（一覧へ戻るリンクの帯まで） */
.recruit-article .case-article__main > .recruit-body:last-child {
	padding-bottom: var(--space-48);
}

/* オフィス環境：写真のモザイク（3 列。間は 4px） */
.recruit-office {
	.recruit-body {
		padding-top: 0;
	}

	.recruit-section {
		padding-block: 3.75rem var(--space-24);
	}
}

.recruit-gallery {
	display: grid;
	grid-template-areas:
		"a a b"
		"a a c"
		"d d d"
		"e f f"
		"g f f";
	grid-template-columns: 526fr 540fr 526fr;
	gap: 0.25rem;
}

.recruit-gallery__item {
	position: relative;
	aspect-ratio: 526 / 358;
	overflow: hidden;

	img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	&:nth-child(1) {
		grid-area: a;
		aspect-ratio: auto;
	}

	&:nth-child(2) {
		grid-area: b;
	}

	&:nth-child(3) {
		grid-area: c;
	}

	&:nth-child(4) {
		grid-area: d;
		aspect-ratio: 1600 / 756;

		img {
			object-position: 15% 76%;
		}
	}

	&:nth-child(5) {
		grid-area: e;
	}

	&:nth-child(6) {
		grid-area: g;
	}

	&:nth-child(7) {
		grid-area: f;
		aspect-ratio: auto;
	}
}

/* タブレット */
@media (max-width: 1279px) {
	.recruit-message__text {
		white-space: normal;
	}

	.recruit-career__lead {
		font-size: var(--fz-20);
	}

	.recruit-photo {
		height: 30rem;
	}

	.recruit-photo--environment {
		height: 36rem;
	}

	.recruit-join__inner {
		gap: var(--space-48);
	}

	.recruit-join__text br {
		display: none;
	}

	.recruit-job__body {
		width: auto;
		margin-inline: 2.25rem;
	}
}

/* スマホ */
@media (max-width: 599px) {
	.hero--recruit .hero__bg {
		object-position: 45% 30%;
	}

	.hero__catch-line--sub {
		margin-top: var(--space-12);
		font-size: var(--fz-13);
		letter-spacing: 0.02em;
	}

	/* 黒は PC と同じ 30% */

	/* ロゴ → 見出し（中央）→ 文章 */
	.recruit-message__inner {
		display: flex;
		flex-direction: column-reverse;
		gap: var(--space-32);
		width: auto;
		padding: var(--space-48) var(--space-20) var(--space-40); /* 左右はキービジュアルの文字とそろえる */
	}

	.recruit-message__body {
		gap: var(--space-32);
		padding: 0;
	}

	.recruit-message__title {
		font-size: var(--fz-20);
		text-align: center;
	}

	.recruit-message__text {
		font-size: var(--fz-13);
		line-height: var(--lh-body);
	}

	.recruit-message__logo img {
		width: 8.875rem;
	}

	.recruit-photo,
	.recruit-photo--environment {
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.recruit-photo--career,
	.recruit-photo--career-hero,
	.recruit-photo--environment-hero {
		aspect-ratio: 375 / 250;
	}

	/* 採用情報トップの「キャリア開発」の上の写真：人物が大きく見えるように拡大して切り抜く（枠の縦横比は同じ） */
	.recruit-photo--career .recruit-photo__img {
		scale: 1.35;
		transform-origin: 65% 55%;
	}

	/* キャリア開発のキービジュアル：人物が大きく見えるように 1.5 倍に拡大して切り抜く（枠の縦横比は同じ） */
	.recruit-photo--career-hero .recruit-photo__img {
		scale: 1.5;
		transform-origin: 24% 62%;
	}

	.recruit-career__inner,
	.recruit-environment__inner,
	.recruit-jobs__inner {
		gap: var(--space-24);
		width: auto;
		padding: var(--space-40) var(--space-16) var(--space-48);
	}

	/* 長い英字の見出しを 1 行に収める */
	.recruit-career__inner,
	.recruit-environment__inner {
		.section-heading__title {
			font-size: var(--fz-32);
		}
	}

	.recruit-career__columns {
		display: flex;
		flex-direction: column;
		gap: var(--space-32);
	}

	.recruit-career__intro {
		gap: var(--space-16);
		align-items: stretch;

		.recruit-button {
			margin-top: var(--space-16);
		}
	}

	.recruit-career__lead {
		font-size: var(--fz-18);
	}

	.recruit-career__text,
	.recruit-environment__text {
		font-size: var(--fz-13);
		line-height: var(--lh-body);
	}

	.recruit-button {
		justify-content: center;
		width: 100%;
		font-size: var(--fz-15);
	}

	.recruit-card__title {
		font-size: var(--fz-15);
	}

	.recruit-card__text {
		font-size: var(--fz-13);
	}

	.recruit-career__cards .recruit-card,
	.recruit-card {
		gap: var(--space-8);
		padding: var(--space-16);
	}

	.recruit-environment__body {
		flex-direction: column;
		gap: var(--space-32);
	}

	.recruit-job__toggle {
		flex-direction: column;
		gap: 0;
		padding: var(--space-16);
		position: relative;
	}

	.recruit-job__name {
		font-size: var(--fz-18);
	}

	.recruit-job__name-ja {
		font-size: var(--fz-11);
	}

	.recruit-job__icon {
		position: absolute;
		top: 50%;
		right: var(--space-16);
		width: 1.25rem;
		height: 1.25rem;
		translate: 0 -50%;

		&::before,
		&::after {
			width: 0.5rem;
			height: 1px;
		}
	}

	.recruit-job__body {
		gap: var(--space-16);
		margin-inline: var(--space-16);
	}

	.recruit-job__section {
		padding: 0;
	}

	.recruit-job__title {
		font-size: var(--fz-14);
	}

	.recruit-job__text,
	.recruit-job__conditions {
		font-size: var(--fz-13);
	}

	/* 勤務条件：項目名（太字）の下に内容 */
	.recruit-job__condition {
		flex-direction: column;
		gap: var(--space-4);
		padding-block: var(--space-8);
		border-bottom: 0;

		dt {
			width: auto;
			font-weight: 700;
		}
	}

	.recruit-join__inner {
		flex-direction: column;
		gap: var(--space-24);
		width: auto;
		padding: var(--space-40) var(--space-16); /* 左右は上のコンテンツにそろえる */
		text-align: center;
	}

	.recruit-join__title {
		font-size: var(--fz-32);
	}

	.recruit-join__text {
		font-size: var(--fz-12);
		font-weight: 700;

		br {
			display: inline;
		}
	}

	.recruit-join__button {
		justify-content: center;
		gap: var(--space-24);
		width: 100%;
		height: 3rem;
		margin: var(--space-8) 0 0;
		font-size: var(--fz-15);
	}

	/* キャリア開発・働く環境 */
	.recruit-body {
		width: auto;
		margin-inline: var(--space-16);
		padding-top: var(--space-16);
	}

	.recruit-section {
		gap: var(--space-24);
		padding-block: var(--space-24);
		scroll-margin-top: 3rem; /* 固定した目次（閉じた状態 48px）の下に来るように */
	}

	.recruit-section--after-gallery {
		padding-top: 4rem;
	}

	.recruit-section__intro {
		padding-block: 0;
	}

	.recruit-section__lead {
		font-size: var(--fz-18);
	}

	.recruit-section__text {
		font-size: var(--fz-13);
	}

	.recruit-cards {
		display: flex;
		flex-direction: column;
		gap: var(--space-12);
	}

	.recruit-section__en {
		font-size: var(--fz-14);
	}

	.recruit-intro {
		padding-top: var(--space-16);
		padding-bottom: 0;
		font-size: var(--fz-15);
	}

	/* キャリア開発の図（SP） */
	.career-training,
	.career-path__figure {
		padding: 1.5rem 1rem;
	}

	.career-box {
		gap: 0.25rem;
		padding: 0.75rem 1rem 0.875rem;
	}

	.career-box__title {
		font-size: var(--fz-14);
	}

	.career-box__text {
		font-size: var(--fz-12);
	}

	.career-training {
		gap: 0.75rem;
	}

	.career-training__row {
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
		align-items: stretch;

		& + & {
			margin-top: 0.5rem;
		}
	}

	.career-training__label {
		align-self: flex-start;
		padding: 0.375rem 0.75rem;
		font-size: var(--fz-13);
	}

	/* 教育研修：左に時間軸の矢印（縦 1 本）、右に期間とカード */
	.career-training__study {
		grid-template-columns: 0.75rem minmax(0, 1fr);
		grid-template-areas:
			"arrow time1"
			"arrow onboarding"
			"arrow time2"
			"arrow monthly"
			"arrow one";
		column-gap: 0.625rem;
		row-gap: 0.625rem;
	}

	.career-training__time {
		padding-top: 0;
		font-size: var(--fz-11);
		text-align: left;
	}

	.career-training__time--monthly {
		padding-top: 0.375rem;
	}

	.career-training__arrow {
		justify-self: center;
		width: 2px;
		height: auto;
		margin: 0.25rem 0 1px;

		&::after {
			top: auto;
			right: 50%;
			bottom: 0;
			transform: translateX(50%) rotate(135deg);
		}
	}

	.career-training__steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;

		.career-box:not(:last-child)::after {
			top: calc(100% + 0.4375rem);
			left: 50%;
			font-size: var(--fz-14);
			content: "↓";
			transform: translateX(-50%);
		}
	}

	.career-training__self {
		margin-left: 0;
		padding: 0.75rem 1rem;
		font-size: var(--fz-12);
	}

	/* キャリアパス：1 段ずつ（役職 → 目安年収 → 役割） */
	.career-path__figure {
		padding-top: 1.25rem;
	}

	.career-path__table {
		thead th {
			display: none;
		}

		thead th:nth-child(2) {
			display: block;
			padding-bottom: 0.375rem;
			font-size: var(--fz-11);
		}

		thead tr {
			display: block;
		}

		tbody tr {
			display: flex;
			flex-direction: column;
			gap: 0.375rem;
			padding-block: 0.75rem;
			border-top: 0;
		}

		tbody tr:first-child {
			border-top: 1px solid #e0e0e0;
		}

		tbody th,
		td {
			width: auto;
			padding: 0;
		}

		tbody th {
			padding-right: 0;
		}
	}

	.career-path__role {
		padding: 0.375rem;
		font-size: var(--fz-12);
	}

	.career-path__salary {
		padding-right: 0 !important;
		font-size: var(--fz-14);
	}

	.career-path__desc {
		font-size: var(--fz-12);
	}

	.career-path__note {
		font-size: var(--fz-11);
	}

	.recruit-office .recruit-section {
		padding-block: var(--space-40) var(--space-24);
	}

	/* オフィス：大 → 小 2 枚 → 大 → 小 2 枚 → 大 */
	.recruit-gallery {
		grid-template-areas:
			"a a"
			"b c"
			"d d"
			"e g"
			"f f";
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.1875rem;
	}

	.recruit-gallery__item {
		aspect-ratio: 4 / 3;

		&:nth-child(1),
		&:nth-child(4),
		&:nth-child(7) {
			aspect-ratio: 3 / 2;
		}
	}
}

/* ページトップに戻るボタン（全ページ共通） */
.page-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 36px; /* 画面幅で縮めない（px） */
	height: 36px;
	padding: 0;
	color: var(--color-text-muted);
	cursor: pointer;
	background: rgb(255 255 255 / 0.85);
	border: 1px solid var(--color-border-light);
	border-radius: 50%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s, color 0.3s, border-color 0.3s;

	&.is-shown {
		opacity: 1;
		visibility: visible;
	}

	&:hover,
	&:focus-visible {
		color: var(--color-primary);
		border-color: var(--color-primary);
	}
}

.page-top__icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 599px) {
	.page-top {
		right: 1rem;
		bottom: 1rem;
		width: 2.5rem;
		height: 2.5rem;
	}
}

/* タブレット（600〜1279px）の目次（.case-index）：SP と同じく、ヘッダーの下に固定して追従する
   開閉の補正・自動で閉じる／開く動きは assets/js/main.js */
@media (min-width: 600px) and (max-width: 1279px) {
	.case-article {
		--case-overlap: 0px;
	}

	.case-index {
		position: sticky;
		top: calc(var(--admin-bar) + var(--header-height));
	}

	/* 事例詳細・ソリューション詳細は、場所を取るのは閉じたときの高さだけにし、開いた分は下の内容に重ねる */
	.case-article:not(.recruit-article) .case-index,
	.solution-article .case-index {
		height: 3rem;
	}

	.case-article .case-overview {
		margin-top: calc(var(--space-32) + var(--case-index-overlap, 0px));
	}

	.case-index__inner {
		width: auto;
		margin: 0;
		padding: var(--space-4) 1.125rem;
		border: 0;
		border-bottom: 1px solid var(--color-border-light);
	}

	.case-index__title {
		font-size: var(--fz-14);
	}

	.case-index__toggle {
		width: 1.25rem;
		height: 1.25rem;

		&::before,
		&::after {
			width: 0.6875rem;
			height: 1.5px;
		}
	}

	/* 目次リンクの移動先：固定した目次（閉じた状態）の下に来るように */
	.case-overview,
	.case-section,
	.solution-hero,
	.solution-section,
	.recruit-section {
		scroll-margin-top: 3rem;
	}

	.solution-content > .solution-problem:first-child {
		padding-top: calc(var(--space-32) + var(--case-index-overlap, 0px));
	}

	.solution-content > :first-child:not(.solution-problem) {
		margin-top: calc(var(--space-40) + var(--case-index-overlap, 0px));
	}
}
