/*
 * キャリア・働く環境を知るページ(page-career.php)
 * デザイン: Figma「キャリア・働く環境を知る｜PC1440_修正版」。SP版のデザインは無いため、769px以下はPCのデザインをもとに組んだ。
 * フォントは会社・仕事を知るページと同じく、Noto Sans JP の代わりに Zen Kaku Gothic New、Montserrat の代わりに Inter を使う。
 * 「数字で見るみらプロ」「休日・福利厚生」は Figma MCP の上限で詳細を取得できず、
 * 構造データ(文言・位置・大きさ)と全体の画像から組んだ。色・影・文字の大きさは画像からの推定。
 * この2セクションのアイコン(numbers-*.svg / benefit-*.svg / raise-person.svg)も Figma から書き出せなかったため、
 * 他のアイコンと同じ線の太さ・色で作った代わりのもの。Figma から書き出せたら差し替える。
 * 最後の Join Our Team は共通部品(template-parts/components/join-team.php / components.css)。
 */

.p-career {
	--career-color-ink: #262628;
	--career-color-body: #3a3a40;
	--career-color-sub: #55555c;
	--career-color-navy: #14427a;
	--career-color-blue: #1a6fbf;
	--career-color-light: #699dde;
	--career-color-accent: #c2185b;
	--career-color-gray-bg: #fafafa;
	--career-gradient-pale: linear-gradient(135deg, #fff 0%, #e8f3fc 55%);

	color: var(--career-color-ink);
	letter-spacing: 0.04em;
}

/* SPだけ改行する位置 */
.p-career__sp-br {
	@media (width >= 770px) {
		display: none;
	}
}

/* コンテンツ幅は1120px(左右40pxの余白を含めて1200px) */
.p-career__inner {
	position: relative;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 40px;

	@media (width < 770px) {
		padding-inline: 20px;
	}
}

.p-career-section {
	padding-block: 88px;

	@media (width < 770px) {
		padding-block: 64px;
	}
}

/* 英字・数字は Inter(Figma は Montserrat) */
.p-career [lang="en"] {
	font-family: var(--font-family-en);
}

/* ---------- 見出し ---------- */
.p-career-heading {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 36px;

	@media (width < 770px) {
		margin-bottom: 32px;
	}
}

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

.p-career-heading__en {
	margin: 0;
	color: var(--career-color-navy);
	font-family: var(--font-family-en);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 23.4px;
	letter-spacing: 0.16em;
}

.p-career-heading__title {
	margin: 0;
	font-size: 2.5rem;
	font-weight: 900;
	line-height: 56px;
	letter-spacing: 0.08em;

	@media (width < 770px) {
		font-size: 1.75rem;
		line-height: 1.5;
	}
}

.p-career-heading__lead {
	margin: 6px 0 0;
	color: var(--career-color-sub);
	font-size: 0.9375rem;
	line-height: 28.5px;

	@media (width < 770px) {
		text-align: left;

		& br {
			display: none;
		}
	}
}

/* 青い地の上の見出しは白い文字 */
.p-career-heading--inverse {
	& .p-career-heading__en,
	& .p-career-heading__title,
	& .p-career-heading__lead {
		color: #fff;
	}
}

/* 英字が灰色・薄い青の見出し(インタビュー / 社内イベント) */
.p-career-heading--gray .p-career-heading__en {
	color: #7a7a7a;
	letter-spacing: 0.12em;
}

.p-career-heading--light .p-career-heading__en {
	color: var(--career-color-light);
}

/* ページの見出しは共通部品(template-parts/components/page-hero.php / components.css の c-page-hero) */

/* ---------- みらプロのキャリアの考え方 ---------- */
.p-career-belief {
	background: #fff;
}

.p-career-belief__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
	align-items: center;
}

.p-career-belief__body {
	flex: 1 1 400px;
	max-width: 518px;

	& .p-career-heading {
		gap: 18px;
		margin-bottom: 18px;
	}
}

.p-career-belief__text {
	margin: 0;
	color: var(--career-color-body);
	font-size: 0.9375rem;
	line-height: 30px;
}

/* 4つのステップを時計回りに置き、真ん中に「年2回」の丸を重ねる */
.p-career-cycle {
	position: relative;
	flex: 0 1 538px;
	padding: 8px;

	@media (width < 770px) {
		flex-basis: 100%;
		padding: 0;
	}
}

.p-career-cycle__steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;

	/* SPは1列に並べ、ステップの間に下向きの三角を置く */
	@media (width < 770px) {
		grid-template-columns: 1fr;
		gap: 20px;

		/* 時計回りの配置(.p-career-cycle__step--N)を解き、上から順に並べる */
		& > li {
			grid-area: auto;
		}
	}
}

.p-career-cycle__step {
	--step-bg: #f6fdff;
	--step-color: var(--career-color-light);

	display: flex;
	flex-direction: column;
	gap: 7px;
	min-height: 150px;
	padding: 22px;
	border-radius: 10px;
	background: var(--step-bg);

	/* SPはアイコンを左に置き、右に番号・見出し・文を積む */
	@media (width < 770px) {
		position: relative;
		display: grid;
		grid-template-columns: 40px 1fr;
		gap: 0 14px;
		align-items: center;
		min-height: 0;
		padding: 16px 18px;

		& + &::before {
			content: "";
			position: absolute;
			top: -14px;
			left: 31px; /* アイコンの中心(余白18px + 20px - 三角の半分7px) */
			width: 14px;
			height: 8px;
			background: #b1c5f5;
			clip-path: polygon(0 0, 100% 0, 50% 100%);
		}
	}
}

/* 左上 → 右上 → 右下 → 左下 の順に並べる */
.p-career-cycle__step--1 {
	grid-area: 1 / 1;
}

.p-career-cycle__step--2 {
	--step-bg: #ecf6ff;
	--step-color: var(--career-color-blue);

	grid-area: 1 / 2;
}

.p-career-cycle__step--3 {
	--step-bg: #e3efff;
	--step-color: #255c9e;

	grid-area: 2 / 2;
}

.p-career-cycle__step--4 {
	--step-bg: #d0e2fb;
	--step-color: var(--career-color-navy);

	grid-area: 2 / 1;
}

.p-career-cycle__head {
	display: flex;
	gap: 10px;
	align-items: center;

	@media (width < 770px) {
		display: contents;
	}
}

.p-career-cycle__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;

	& img {
		display: block;
	}

	@media (width < 770px) {
		grid-row: 1 / span 3;
		align-self: center;
	}
}

.p-career-cycle__number {
	color: var(--step-color);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 21.6px;
	letter-spacing: 0.12em;
}

.p-career-cycle__title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 30.6px;
}

.p-career-cycle__text {
	margin: 0;
	color: var(--career-color-body);
	font-size: 0.8125rem;
	line-height: 22.1px;
}

.p-career-cycle__center {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	margin: 0;
	border-radius: 50%;
	background: #fff;
	filter: drop-shadow(0 8px 14px rgb(38 38 40 / 0.1));
	font-size: 0.75rem;
	font-weight: 900;
	line-height: 21.6px;
	translate: -50% -50%;

	& img {
		display: block;
	}

	/* SPは真ん中に重ねず、ステップの下に横長の丸として置く */
	@media (width < 770px) {
		position: static;
		flex-direction: row;
		gap: 8px;
		width: fit-content;
		height: auto;
		margin: 20px auto 0;
		padding: 8px 24px 8px 16px;
		border-radius: 999px;
		font-size: 0.875rem;
		translate: none;

		& img {
			width: 28px;
			height: 28px;
		}
	}
}

/* ---------- キャリア面談・1on1 ---------- */
.p-career-talk {
	background: var(--career-gradient-pale);
}

.p-career-talk__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;

	@media (width < 770px) {
		grid-template-columns: 1fr;
		margin-bottom: 24px;
	}
}

.p-career-talk__card {
	display: flex;
	gap: 22px;
	align-items: center;
	min-height: 136px;
	padding: 28px 30px;
	border-radius: 8px;
	background: #fff;

	@media (width < 770px) {
		gap: 16px;
		padding: 24px 20px;
	}

	& p {
		margin: 0;
	}
}

.p-career-talk__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #eaf0fa;

	& img {
		display: block;
	}
}

.p-career-talk__label {
	color: var(--career-color-sub);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 19.5px;
}

.p-career-talk__value {
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 33px;

	& small {
		margin-left: 4px;
		color: var(--career-color-sub);
		font-size: 0.75rem;
		font-weight: 400;
	}

	/* 「営業・上長にいつでも相談」が1行に収まる大きさ */
	@media (width < 770px) {
		font-size: 1.0625rem;
		line-height: 1.6;
	}
}

.p-career-talk__value--number {
	font-size: 1.125rem;
	line-height: 61.6px;
}

.p-career-talk__number {
	font-size: 2.75rem;
	font-weight: 800;
	vertical-align: -0.08em;
}

.p-career-talk__note {
	color: var(--career-color-sub);
	font-size: 0.75rem;
	line-height: 18px;
}

/* 1年間の面談スケジュール */
.p-career-schedule {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 32px 36px 28px;
	border-radius: 8px;
	background: #fff;

	@media (width < 770px) {
		padding: 24px 20px;
	}
}

.p-career-schedule__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 28.8px;
}

.p-career-schedule__months {
	position: relative;
	display: flex;
	align-items: flex-end;
	margin: 0;
	padding: 33px 0 0; /* 評価面談のラベルが上に出る分 */
	list-style: none;

	/* SPは横にスクロールさせず、6ヶ月ずつ2段に並べる(横線は月ごとに引く) */
	@media (width < 770px) {
		display: grid;
		grid-template-columns: repeat(6, minmax(0, 1fr));
		row-gap: 40px; /* 2段目の評価面談のラベルが入る分 */
	}

	/* 丸の中心を通る横線(月の名前 21.6px + gap 5px + 丸の半分 12px - 線の半分 2px) */
	&::before {
		content: "";
		position: absolute;
		right: 0;
		bottom: 36.6px;
		left: 0;
		height: 4px;
		border-radius: 2px;
		background: #efeff4;

		@media (width < 770px) {
			display: none;
		}
	}
}

.p-career-schedule__month {
	--dot-bg: #fff;
	--dot-ring: #dadae2;

	position: relative;
	display: flex;
	flex: 1 0 0;
	flex-direction: column;
	gap: 5px;
	align-items: center;
	min-width: 40px;

	@media (width < 770px) {
		min-width: 0;

		&::before {
			content: "";
			position: absolute;
			right: 0;
			bottom: 36.6px;
			left: 0;
			height: 4px;
			background: #efeff4;
		}
	}
}

.p-career-schedule__month--1on1 {
	--dot-bg: #00306f;
	--dot-ring: #00306f;
}

.p-career-schedule__month--evaluation {
	--dot-bg: #ffd7f6;
	--dot-ring: var(--career-color-accent);
}

/* 18pxの丸 + 2pxの輪 + 1pxの白い縁 = 24px */
.p-career-schedule__dot {
	width: 18px;
	height: 18px;
	position: relative; /* SPで月ごとに引く横線より上に出す */
	margin: 3px;
	border-radius: 50%;
	background: var(--dot-bg);
	box-shadow: 0 0 0 2px var(--dot-ring), 0 0 0 3px #fff;
}

.p-career-schedule__name {
	color: var(--career-color-sub);
	font-family: var(--font-family-en);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 21.6px;
}

.p-career-schedule__badge {
	position: absolute;
	bottom: calc(100% + 5px);
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--career-color-accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 19.8px;
	white-space: nowrap;
}

/* 1on1 の月は、読み上げ用に種類を添える(見た目は丸の色で表す) */
.p-career-schedule__kind {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.p-career-schedule__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 21.6px;
}

.p-career-schedule__legend-item {
	display: flex;
	gap: 6px;
	align-items: center;

	&::before {
		content: "";
		width: 12px;
		height: 12px;
		border-radius: 50%;
		background: #00306f;
	}
}

.p-career-schedule__legend-item--evaluation::before {
	background: #b1c5f5;
}

.p-career-schedule__legend-note {
	color: #0c497f;
}

/* ---------- インタビューを見る ---------- */
.p-career-stories {
	padding-block: 112px;
	background: var(--career-color-gray-bg);

	@media (width < 770px) {
		padding-block: 64px;
	}

	& .p-career-heading {
		gap: 5.7px;
		margin-bottom: 40px;
	}

	& .p-career-heading__lead {
		margin-top: 8px;
		line-height: 27px;
	}
}

.p-career-stories__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;

	@media (width < 1100px) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	@media (width < 600px) {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

.p-career-story {
	--story-bg: #f6fdff;
	--story-color: #0c497f;

	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 4px 20px rgb(38 38 40 / 0.07);

	/* 1列になる幅では、写真を左・文を右に置いて縦を詰める */
	@media (width < 600px) {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
	}
}

.p-career-story--2 {
	--story-bg: #ecf6ff;
	--story-color: #084d8a;
}

.p-career-story--3 {
	--story-bg: #e3efff;
	--story-color: #00306f;
}

.p-career-story--4 {
	--story-bg: #d0e2fb;
	--story-color: #00165f;
}

.p-career-story__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	background: #e4e4ea;
	object-fit: cover;
	object-position: bottom;

	@media (width < 600px) {
		height: 100%;
		aspect-ratio: auto;
	}
}

/* アイキャッチが無い記事は、デザインの写真待ちの枠(斜めの縞)を出す */
.p-career-story__image--empty {
	background:
		repeating-linear-gradient(135deg, rgb(255 255 255 / 0.55) 0 2px, transparent 2px 14px),
		#e4e4ea;
}

.p-career-story__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 12px;

	@media (width < 600px) {
		gap: 6px;
		padding: 14px 14px 14px 16px;
	}

	& p,
	& h3 {
		margin: 0;
	}
}

.p-career-story__job {
	align-self: flex-start;
	padding: 2px 12px;
	border-radius: 999px;
	background: var(--story-bg);
	color: var(--story-color);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 21.6px;
}

.p-career-story__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 27.2px;

	@media (width < 600px) {
		font-size: 0.875rem;
		line-height: 1.7;
	}
}

.p-career-story__profile {
	color: var(--career-color-sub);
	font-size: 0.75rem;
	line-height: 21.6px;
}

/* ボタンはカードの下端にそろえる。上の文との間は16px(gap 8px + 8px) */
.p-career-story__body > :nth-last-child(2) {
	margin-bottom: 8px;
}

.p-career-story__button {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	width: min(221px, 100%);
	min-height: 44px;
	margin-top: auto;
	border: 1px solid var(--career-color-ink);
	border-radius: 999px;
	color: var(--career-color-ink);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 23.4px;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;

	@media (width < 600px) {
		width: 100%;
		min-height: 38px;
		font-size: 0.75rem;
	}

	&:hover {
		background: var(--career-color-ink);
		color: #fff;
	}
}

/* ---------- 評価制度 ---------- */
.p-career-evaluation {
	background: linear-gradient(123deg, #20508c 0%, #1a6fbf 100%);
}

.p-career-evaluation__axes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;

	@media (width < 900px) {
		grid-template-columns: 1fr;
		margin-bottom: 24px;
	}
}

.p-career-axis {
	--axis-bg: #f6fdff;
	--axis-color: #0c497f;

	display: flex;
	flex-direction: column;
	gap: 11.5px;
	padding: 28px;
	border-radius: 8px;
	background: var(--axis-bg);

	@media (width < 770px) {
		padding: 24px 20px;
	}

	& p,
	& h3 {
		margin: 0;
	}
}

.p-career-axis--2 {
	--axis-bg: #ecf6ff;
	--axis-color: #084d8a;
}

.p-career-axis--3 {
	--axis-bg: #e3efff;
	--axis-color: #00306f;
}

.p-career-axis__head {
	display: flex;
	gap: 14px;
	align-items: center;
}

.p-career-axis__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;

	& img {
		display: block;
	}
}

.p-career-axis__number {
	color: var(--axis-color);
	font-family: var(--font-family-en);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 18px;
	letter-spacing: 0.12em;
}

.p-career-axis__title {
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 28.5px;
}

.p-career-axis__target {
	color: var(--career-color-sub);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 21.6px;
}

.p-career-axis__text {
	color: var(--career-color-body);
	font-size: 0.84375rem;
	line-height: 24.98px;
}

/* タグはカードの下端にそろえる */
.p-career-axis__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: auto 0 0;
	padding: 10px 0 0;
	list-style: none;

	& li {
		padding: 3px 10px;
		border-radius: 999px;
		background: #fff;
		color: var(--axis-color);
		font-size: 0.75rem;
		font-weight: 700;
		line-height: 21.6px;
	}
}

.p-career-evaluation__facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;

	@media (width < 900px) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.p-career-fact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: center;
	padding: 20px 22px;
	border-radius: 8px;
	background: #fff;

	@media (width < 770px) {
		padding: 16px 14px;
	}

	& dd {
		margin: 0;
	}
}

.p-career-fact__label {
	color: var(--career-color-sub);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 23.4px;
}

.p-career-fact__value {
	font-size: 1rem;
	font-weight: 700;
	line-height: 42px;
}

/* 数字の前の「年」「約」は少し大きい */
.p-career-fact__prefix {
	font-size: 1.125rem;
}

.p-career-fact__number {
	color: var(--career-color-accent);
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 40px;
}

.p-career-fact__text {
	color: var(--career-color-navy);
	font-size: 1.5rem;
	line-height: 31.2px;

	/* 「顧客アンケート」が1行に収まる大きさ(320px幅でも収まるよう画面幅に合わせて縮める) */
	@media (width < 770px) {
		font-size: min(1.0625rem, 4.3vw);
	}
}

.p-career-fact__note {
	color: var(--career-color-body);
	font-size: 0.75rem;
	line-height: 21.6px;
}

/* ---------- 社内イベント・表彰・その他制度 ---------- */
.p-career-culture {
	background: var(--career-color-gray-bg);
}

.p-career-culture__item,
.p-career-culture__group {
	--group-color: var(--career-color-light);
	--group-bg: #f6fdff;
}

.p-career-culture__item--growth,
.p-career-culture__group--growth {
	--group-color: var(--career-color-blue);
	--group-bg: #f4f3fa;
}

.p-career-culture__item--connect,
.p-career-culture__group--connect {
	--group-color: var(--career-color-navy);
	--group-bg: #f4f3fa;
}

.p-career-culture__groups {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
}

.p-career-culture__group {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 8px 22px 8px 8px;
	border-radius: 999px;
	background: #fff;
	color: var(--group-color);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 25.2px;
}

.p-career-culture__group-number {
	display: grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	padding-inline: 7px;
	border-radius: 16px;
	background: var(--group-color);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1;
}

.p-career-culture__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;

	@media (width < 900px) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	@media (width < 600px) {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.p-career-culture__item {
	display: flex;
	flex-direction: column;
	gap: 9.5px;
	padding: 26px 26px 28px;
	border-radius: 8px;
	background: #fff;

	/* 1列になる幅では、アイコンを左に置き、右に分類と見出しを積む */
	@media (width < 600px) {
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 2px 14px;
		align-items: center;
		padding: 20px;

		& .p-career-culture__head {
			display: contents;
		}

		& .p-career-culture__icon {
			grid-row: 1 / span 2;
			width: 48px;
			height: 48px;
		}

		& .p-career-culture__tag {
			justify-self: start;
			padding-block: 0;
		}

		& .p-career-culture__title {
			font-size: 1rem;
			line-height: 1.6;
		}

		& .p-career-culture__text {
			grid-column: 1 / -1;
			margin-top: 10px;
		}
	}

	& h3,
	& p {
		margin: 0;
	}
}

.p-career-culture__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 6px;
}

.p-career-culture__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--group-bg);

	& img {
		display: block;
	}
}

.p-career-culture__tag {
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--group-bg);
	color: var(--group-color);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 21.6px;
}

.p-career-culture__title {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 32.4px;
}

.p-career-culture__text {
	color: var(--career-color-body);
	font-size: 0.84375rem;
	line-height: 24.98px;
}

/* ---------- 資格取得支援・研修 ---------- */
.p-career-learning {
	background: #fff;
}

.p-career-learning__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;

	@media (width < 900px) {
		grid-template-columns: 1fr;
	}
}

.p-career-learning__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px 32px;
	border-radius: 8px;
	background: #f7f7fa;

	@media (width < 770px) {
		padding: 24px 20px;
	}
}

.p-career-learning__title {
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 36px;
}

.p-career-learning__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #eaf0fa;

	& img {
		display: block;
	}
}

.p-career-learning__card--training .p-career-learning__icon {
	background: #f6e8f5;
}

.p-career-learning__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.p-career-learning__fact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	min-height: 98px;
	padding: 16px;
	border-radius: 6px;
	background: #fff;

	& dt {
		color: var(--career-color-sub);
		font-size: 0.75rem;
		font-weight: 700;
		line-height: 1;
	}

	& dd {
		margin: 0;
		font-size: 0.9375rem;
		font-weight: 700;
		line-height: 35px;
	}
}

.p-career-learning__number {
	margin-inline: 1px 2px;
	color: #3f63b8;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
}

.p-career-learning__fact .p-career-learning__strong {
	color: #3f63b8;
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 31.2px;

	/* 「全額会社負担」が1行に収まる大きさ */
	@media (width < 770px) {
		font-size: 1rem;
	}
}

/* 研修の流れ: 白い箱を「→」でつなぎ、最後をピンクにする */
.p-career-learning__flow {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;

	/* SPは箱が細くなり1〜2文字で折り返すため、縦に並べて「↓」でつなぐ */
	@media (width < 770px) {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	& li {
		display: grid;
		flex: 1 0 0;
		place-items: center;
		min-height: 98px;
		padding: 16px 8px;
		border-radius: 6px;
		background: #fff;
		font-size: 1rem;
		font-weight: 700;
		line-height: 1.6;
		text-align: center;

		@media (width < 770px) {
			flex: none;
			min-height: 0;
			padding: 10px 16px;
			font-size: 0.9375rem;

			& br {
				display: none;
			}
		}
	}

	& li + li {
		position: relative;
		margin-left: 21px; /* 矢印(13px) + 両側の gap */

		&::before {
			content: "→";
			position: absolute;
			top: 50%;
			left: -21px;
			width: 21px;
			color: var(--career-color-accent);
			font-size: 0.8125rem;
			line-height: 23.4px;
			text-align: center;
			translate: -4px -50%;
		}

		@media (width < 770px) {
			margin: 24px 0 0;

			&::before {
				content: "↓";
				top: -24px;
				left: 50%;
				width: 24px;
				line-height: 24px;
				translate: -50% 0;
			}
		}
	}

	& li:last-child {
		background: var(--career-color-accent);
		color: #fff;
	}
}

.p-career-learning__text {
	margin: 0;
	color: var(--career-color-body);
	font-size: 0.875rem;
	line-height: 25.9px;
}

/* ---------- 数字で見るみらプロ ---------- */
/* 構造データと画像から組んだ(ファイル冒頭の注記を参照) */
.p-career-numbers {
	background: var(--career-gradient-pale);
}

.p-career-numbers__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;

	@media (width < 1000px) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	@media (width < 770px) {
		grid-template-columns: minmax(0, 1fr);
	}
}

.p-career-number {
	--number-color: var(--career-color-navy);

	position: relative;
	padding: 69px 28px 26px;
	background: #fff;
	box-shadow: 6px 6px 0 rgb(26 111 191 / 0.1);

	@media (width < 770px) {
		padding: 56px 20px 24px;
	}
}

.p-career-number--raise {
	--number-color: var(--career-color-accent);
}

.p-career-number--overtime {
	--number-color: var(--career-color-blue);
}

.p-career-number--team {
	--number-color: #00306f;
}

.p-career-number__label {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	padding: 4.5px 14px;
	background: var(--number-color);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 24px;
}

/* 作業工程比率: 左に棒グラフ、右にドーナツグラフ */
.p-career-number--process {
	grid-column: span 2;
	display: flex;
	align-items: center;
	padding: 60px 32px 32px;

	@media (width < 1000px) {
		grid-column: 1 / -1;
	}

	@media (width < 770px) {
		padding-inline: 20px;
	}
}

.p-career-process {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 60px;
	align-items: center;
	width: 100%;
}

.p-career-process__bars {
	flex: 1 1 320px;
	max-width: 448px;

	@media (width < 770px) {
		flex-basis: 100%;
	}
}

.p-career-process__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 14px;
}

.p-career-process__row {
	display: grid;
	grid-template-columns: 76px 1fr 52px;
	gap: 12px;
	align-items: center;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 24px;

	& dt,
	& dd {
		margin: 0;
	}
}

.p-career-process__bar {
	height: 12px;
	background: #efeff4;

	& span {
		display: block;
		height: 100%;
		background: var(--career-color-navy);
	}
}

.p-career-process__row--lower {
	font-weight: 400;

	& .p-career-process__bar span {
		background: #b1c5f5;
	}
}

.p-career-process__value {
	font-size: 0.75rem;
	text-align: right;
}

.p-career-process__total {
	margin: 0;
	color: var(--career-color-sub);
	font-size: 0.75rem;
	line-height: 22px;

	& strong {
		color: var(--career-color-blue);
	}
}

.p-career-process__chart {
	flex: 0 0 200px;
	margin: 0 auto;
	text-align: center;

	& figcaption {
		margin-top: 9px;
		color: var(--career-color-sub);
		font-size: 0.75rem;
		line-height: 20.8px;
	}
}

/* 紺: 要件定義+設計(22.9%) / 薄い青: 開発・構築(46.0%) / 灰: テスト+運用保守 */
.p-career-process__donut {
	display: grid;
	place-items: center;
	width: 160px;
	height: 160px;
	margin-inline: auto;
	border-radius: 50%;
	background: conic-gradient(var(--career-color-navy) 0 22.9%, #b1c5f5 22.9% 68.9%, #e4e4ea 68.9% 100%);
}

.p-career-process__donut-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	margin: 0;
	border-radius: 50%;
	background: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.3;

	& small {
		color: var(--career-color-sub);
		font-size: 0.625rem;
	}

}

.p-career-process__donut-number {
	margin-inline: 1px;
	color: var(--career-color-navy);
	font-size: 1.625rem;
	font-weight: 800;
	line-height: 36px;
}

/* 昇給実績 */
.p-career-number--raise {
	padding-top: 60px;
	text-align: center;
}

.p-career-raise__rate {
	margin: 0 0 14px;
	color: var(--career-color-accent);
	font-size: 4rem;
	font-weight: 800;
	line-height: 64px;

	& small {
		margin-left: 2px;
		color: var(--career-color-ink);
		font-size: 1.25rem;
	}
}

/* 人の形は raise-person.svg をマスクにして色を付ける(色付き = 昇給した社員) */
.p-career-raise__people {
	display: grid;
	grid-template-columns: repeat(10, 24px);
	gap: 5px 7px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;

	& li {
		height: 28px;
		background: #e4e4ea;
		mask: url("../../images/career/raise-person.svg") center / contain no-repeat;
	}

	& li.is-filled {
		background: #d6588a;
	}
}

.p-career-raise__caption {
	margin: 14px 0 0;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 27px;

	& span {
		color: var(--career-color-accent);
		font-size: 1.125rem;
		font-weight: 800;
	}
}

.p-career-raise__unit {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 15px;
	border-top: 1px solid #efeff4;
	text-align: left;

	& p {
		margin: 0;
	}
}

.p-career-raise__unit-label {
	color: var(--career-color-sub);
	font-size: 0.75rem;
	line-height: 17.8px;
}

.p-career-raise__unit-value {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 36px;

	& span {
		margin-left: 2px;
		color: var(--career-color-accent);
		font-size: 1.5rem;
		font-weight: 800;
	}
}

/* 右肩上がりの小さな棒 */
.p-career-raise__bars {
	display: flex;
	gap: 4px;
	align-items: flex-end;
	height: 28px;

	& span {
		width: 9px;
		background: var(--career-color-accent);
	}

	& span:nth-child(1) {
		height: 35%;
		opacity: 0.4;
	}

	& span:nth-child(2) {
		height: 55%;
		opacity: 0.6;
	}

	& span:nth-child(3) {
		height: 75%;
		opacity: 0.8;
	}

	& span:nth-child(4) {
		height: 100%;
	}
}

/* 下の段の3枚: 左に数字、右下にアイコン */
.p-career-number__body {
	padding-right: 100px;

	@media (width < 770px) {
		padding-right: 76px;
	}
}

.p-career-number__value {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 56px;
	white-space: nowrap;
}

.p-career-number__figure {
	margin-inline: 1px 2px;
	color: var(--number-color);
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 56px;
	vertical-align: -0.06em;
}

.p-career-number__note {
	margin: 7px 0 0;
	color: var(--career-color-sub);
	font-size: 0.75rem;
	line-height: 20.8px;
}

.p-career-number__icon {
	position: absolute;
	right: 28px;
	bottom: 26px;
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: #eaf0fa;

	& img {
		display: block;
	}

	@media (width < 770px) {
		right: 20px;
		bottom: 24px;
		width: 64px;
		height: 64px;

		& img {
			width: 32px;
			height: 32px;
		}
	}
}

.p-career-number--team .p-career-number__icon {
	background: #d0e2fb;
}

.p-career-numbers__note {
	margin: 36px 0 0;
	color: var(--career-color-sub);
	font-size: 0.6875rem;
	line-height: 20px;
	text-align: right;
}

/* ---------- 休日・福利厚生 ---------- */
/* 構造データと画像から組んだ(ファイル冒頭の注記を参照) */
.p-career-benefits {
	background: var(--career-color-gray-bg);
}

.p-career-benefits__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;

	@media (width < 900px) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	@media (width < 500px) {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.p-career-benefit {
	min-height: 192px;
	padding: 24px;
	border-radius: 8px;
	background: #fff;

	/* 1列になる幅では、アイコンを左に置いて高さをそろえない */
	@media (width < 500px) {
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 2px 16px;
		align-items: center;
		min-height: 0;
		padding: 20px;

		& .p-career-benefit__icon {
			grid-row: 1 / span 2;
			margin: 0;
		}

		& .p-career-benefit__title {
			margin: 0;
			font-size: 1rem;
			line-height: 1.6;
		}
	}

	& h3,
	& p {
		margin: 0;
	}
}

.p-career-benefit__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 9px;
	border-radius: 50%;
	background: #eaf0fa;

	& img {
		display: block;
	}
}

.p-career-benefit__title {
	margin-bottom: 9px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 31.6px;
}

.p-career-benefit__text {
	color: var(--career-color-sub);
	font-size: 0.8125rem;
	line-height: 23.3px;
}

/* ---------- 動き ---------- */
/*
 * 共通の動き(up / fade)と仕組みは components.css の「動き(共通)」「控えめな動き」、
 * どの要素をどう動かすかは assets/js/motion.js のキャリアの設定を参照。
 * 会社・仕事を知ると同じ控えめな動きにし、グラフが伸びる・数字が数え上がる・写真が引くといった動きは付けない(2026-11-20 ユーザー指示)。
 * メインビジュアル(ページ見出し c-page-hero)の動きは components.css
 */
