@charset "UTF-8";

/*
 * スタッフ紹介一覧のページ（page-staff.php）。
 *
 * メインビジュアルと CTA は page-first.css を流用しているため、
 * functions.php で 'first' を extends に指定している。
 *
 * ※ 個別のスタッフページ（page-kariya.php など）のスタイルは
 *    css/page-staff.css です。別のファイルなので間違えないよう注意。
 *
 * モバイルファースト。PC は 840px 以上。
 */

.p-staff-list {
	--sl-bg: #fdf3ef;      /* スタッフ一覧セクションの背景（薄いピンク） */
	--sl-circle: #fdf0e8;  /* 丸の下じき（薄オレンジ） */
	--sl-line: #e0d8d3;    /* お名前の下の線 */
	overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. 私たちが大切にしていること
   -------------------------------------------------------------------------- */
.p-staff-list__points {
	padding: 48px 0 56px;
	background-color: var(--color-bg);
}

.p-staff-list__point-list {
	display: grid;
	gap: 32px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

/*
 * 薄オレンジの丸。写真は丸の上に少しはみ出して乗り、
 * 文字は丸の下のほうに入る。
 */
.p-staff-list__point-circle {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	width: 260px;
	height: 260px;
	margin: 0 auto;
	padding-bottom: 28px;
	background-color: var(--sl-circle);
	/* 真円 */
	border-radius: 50%;
}

/* 写真。丸の上辺からはみ出して立つ */
.p-staff-list__point-image {
	position: absolute;
	/* 丸の上辺から少しはみ出して立つ */
	bottom: 104px;
	left: 50%;
	width: 162px;
	margin-left: -81px;
	line-height: 0;
}

.p-staff-list__point-image .img-slot--empty,
.p-staff-list__point-image img {
	width: 100%;
	height: auto;
	/* 画像が未配置のときも同じ大きさの場所を取る */
	aspect-ratio: 232 / 266;
	object-fit: contain;
	object-position: bottom;
}

.p-staff-list__point-text {
	position: relative;
	z-index: 1;
	margin: 0;
	font-family: var(--font-mincho);
	/* 明朝体は太字にしない */
	font-weight: 400;
	font-size: 18px;
	line-height: 1.7;
	color: var(--color-primary);
	text-align: center;
}

/* --------------------------------------------------------------------------
   2・3. スタッフのカード
   -------------------------------------------------------------------------- */
.p-staff-list__members {
	padding: 60px 0;
	background-color: var(--sl-bg);
}

.p-staff-list__lead,
.p-staff-list__team-item {
	display: flex;
}

.p-staff-list__lead > .p-staff-list__card,
.p-staff-list__team-item > .p-staff-list__card {
	height: 100%;
}

.p-staff-list__leads {
	display: grid;
	/* 丸い写真がカードの上辺からはみ出すぶんの余白 */
	gap: 90px;
	margin: 82px 0 0;
	padding: 0;
	list-style: none;
}

.p-staff-list__team {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 46px 16px;
	margin: 38px 0 0;
	padding: 0;
	list-style: none;
}

.p-staff-list__team-title {
	margin-top: 72px;
}

.p-staff-list__members .c-lead {
	margin-top: 16px;
	text-align: center;
}

/* --- カード本体（全体がリンク） --- */
.p-staff-list__card {
	position: relative;
	/* 同じ行のカードは下端をそろえる（文章の長さが違っても崩れない） */
	display: block;
	width: 100%;
	/* 丸い写真が上に乗るぶん、上に余白を取る */
	padding: 152px 22px 60px;
	color: inherit;
	text-decoration: none;
	background-color: var(--color-bg);
	transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s linear;
	max-width: 90vw;
	margin: auto;
	border-radius: 5px;
}

.p-staff-list__card--small {
	padding: 104px 14px 44px;
}

/* --- ホバー：少し浮き上がって、影と矢印が動く --- */
@media (hover: hover) {

	.p-staff-list__card:hover {
		transform: translateY(-6px);
		box-shadow: 0 12px 28px rgba(26, 19, 17, .12);
	}

	.p-staff-list__card:hover .p-staff-list__photo .img-slot--empty,
	.p-staff-list__card:hover .p-staff-list__photo img {
		transform: scale(1.04);
	}

	.p-staff-list__card:hover .p-staff-list__name {
		color: var(--color-primary);
	}

	.p-staff-list__card:hover .p-staff-list__arrow {
		background-color: var(--color-primary-dark);
	}

	.p-staff-list__card:hover .p-staff-list__arrow::before {
		transform: translate(-30%, -50%) rotate(45deg);
	}
}

/* キーボードで選んだときも同じ見た目にする */
.p-staff-list__card:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}

/* --- 丸い写真。カードの上辺からはみ出して乗る --- */
.p-staff-list__photo {
	position: absolute;
	top: -22px;
	left: 50%;
	display: block;
	width: 116px;
	margin-left: -58px;
	overflow: hidden;
	line-height: 0;
	/* 真円 */
	border-radius: 50%;
}

.p-staff-list__photo--lead {
	top: -60px;
	width: 200px;
	margin-left: -100px;
}

.p-staff-list__photo .img-slot--empty,
.p-staff-list__photo img {
	width: 100%;
	height: auto;
	/* 画像が未配置のときも同じ大きさの場所を取る */
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

/* --- カードの中身 --- */
.p-staff-list__body {
	display: block;
	text-align: center;
}

/* 肩書き（オレンジ、ダイヤ型マーク付き） */
.p-staff-list__role {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--color-primary);
}

.p-staff-list__role-mark {
	display: block;
	width: 28px;
	line-height: 0;
}

.p-staff-list__role-mark .img-slot--empty,
.p-staff-list__role-mark img {
	width: 100%;
	height: auto;
	aspect-ratio: 28 / 16;
}

/* サポートチームの小さいカードのラベル */
.p-staff-list__team-label {
	display: block;
	font-size: 12px;
	line-height: 1.5;
	color: var(--color-text-body);
}

/* お名前（明朝体）。下に線を引く */
.p-staff-list__name {
	display: block;
	margin-top: 6px;
	padding-bottom: 14px;
	font-family: var(--font-mincho);
	/* 明朝体は太字にしない */
	font-weight: 400;
	font-size: 24px;
	line-height: 1.4;
	letter-spacing: .04em;
	border-bottom: 1px solid var(--sl-line);
	transition: color .2s linear;
}

.p-staff-list__card--small .p-staff-list__name {
	margin-top: 2px;
	padding-bottom: 10px;
	font-size: 19px;
}

/* お名前のうしろの小さな文字（仲人T など） */
.p-staff-list__note {
	font-size: .7em;
}

.p-staff-list__text {
	display: block;
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--color-text-body);
	text-align: left;
}

.p-staff-list__card--small .p-staff-list__text {
	margin-top: 12px;
	font-size: 13px;
}

/* --- 右下のオレンジの四角と矢印 --- */
.p-staff-list__arrow {
	position: absolute;
	right: 0;
	bottom: 0;
	display: block;
	width: 40px;
	height: 38px;
	background-color: var(--color-primary);
	transition: background-color .2s linear;
	border-radius: 0 0 5px 0;
}

.p-staff-list__card--small .p-staff-list__arrow {
	width: 32px;
	height: 31px;
}

/* 矢印（白い「＞」） */
.p-staff-list__arrow::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: translate(-60%, -50%) rotate(45deg);
	transition: transform .25s cubic-bezier(.22, .61, .36, 1);
	content: "";
}

.p-staff-list__card--small .p-staff-list__arrow::before {
	width: 6px;
	height: 6px;
	border-width: 1.5px;
}

/* --------------------------------------------------------------------------
   動きを減らす設定への配慮
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

	.p-staff-list__card,
	.p-staff-list__photo .img-slot--empty,
	.p-staff-list__photo img,
	.p-staff-list__arrow,
	.p-staff-list__arrow::before {
		transition: none;
	}

	.p-staff-list__card:hover {
		transform: none;
	}

	.p-staff-list__card:hover .p-staff-list__photo .img-slot--empty,
	.p-staff-list__card:hover .p-staff-list__photo img {
		transform: none;
	}
}

/* ==========================================================================
   PC（840px 以上）
   ========================================================================== */
@media (min-width: 840px) {

	/* --- 1. 私たちが大切にしていること --- */
	.p-staff-list__points {
		padding: 90px 0 100px;
	}

	.p-staff-list__point-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 43px;
		margin-top: 50px;
	}

	.p-staff-list__point-circle {
		/*
		 * 列の幅より丸が大きいときは、幅と高さを同じだけ縮めて
		 * 真円のままにする（840〜1199px 対策）。
		 */
		width: min(371px, 100%);
		height: auto;
		aspect-ratio: 1 / 1;
		padding-bottom: 30px;
	}

	.p-staff-list__point-image {
		bottom: 148px;
		width: 232px;
		margin-left: -116px;
	}

	.p-staff-list__point-text {
		font-size: 20px;
		line-height: 1.6;
		margin-bottom: 20px;
	}

	/* --- 2・3. スタッフのカード --- */
	.p-staff-list__members {
		padding: 100px 0 120px;
	}

	.p-staff-list__members .l-section {
		max-width: 1104px;
	}

	.p-staff-list__leads {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px;
		margin-top: 116px;
	}

	.p-staff-list__team-title {
		margin-top: 100px;
	}

	.p-staff-list__team {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 22px;
		margin-top: 62px;
	}

	.p-staff-list__card {
		padding: 214px 30px 66px;
		border-radius: 10px;
	}

	.p-staff-list__card--small {
		padding: 156px 20px 50px;
	}

	.p-staff-list__photo {
		top: -31px;
		width: 172px;
		margin-left: -86px;
	}

	/* 大きいカードの写真。base のあとに書く（同じ強さなので後ろが勝つ） */
	.p-staff-list__photo--lead {
		top: -86px;
		width: 276px;
		margin-left: -138px;
	}

	.p-staff-list__role {
		font-size: 15px;
	}

	.p-staff-list__name {
		margin-top: 10px;
		padding-bottom: 18px;
		font-size: 25px;
	}

	.p-staff-list__card--small .p-staff-list__name {
		font-size: 19px;
	}

	.p-staff-list__text {
		font-size: 15px;
	}

	.p-staff-list__card--small .p-staff-list__text {
		font-size: 13px;
	}

	.p-staff-list__arrow {
		width: 47px;
		height: 46px;
		border-radius: 0px 0px 10px 0px;
	}
}
