/* ボタン・カード等の再利用パーツ */
.c-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

/*
 * インタビュー記事カード(template-parts/interview/card.php)
 * デザイン: Figma「インタビュー記事｜PC」(修正版)の「04 / 他の社員インタビュー」。
 * 「INTERVIEW 01」はデザインでは Roboto だが、読み込んでいる Inter で代用する。
 */
.c-interview-card {
	display: flex;
	width: 100%;
}

.c-interview-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	border: 1px solid #ebebeb;
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	color: #212121;
	text-decoration: none;

	&:hover .c-interview-card__title {
		text-decoration: underline;
	}

	&:hover .c-interview-card__button {
		opacity: 0.8;
	}
}

.c-interview-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 382 / 218;
	object-fit: cover;
}

.c-interview-card__image--empty {
	background: var(--color-bg-subtle);
}

.c-interview-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-lg) 20px;
}

.c-interview-card__label,
.c-interview-card__title,
.c-interview-card__person {
	align-self: stretch;
}

.c-interview-card__label {
	color: #7a7a7a;
	font-family: var(--font-family-en);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 18px;
}

.c-interview-card__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 32px;
}

.c-interview-card__person {
	margin: 0;
	color: #474747;
	font-size: 0.875rem;
	line-height: 24px;
}

/* 「インタビューを読む」は白地に黒枠、右に黒い丸の矢印。カード全体がリンクのため見た目だけ。下端に揃える */
.c-interview-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	width: min(100%, 242px);
	min-block-size: 44px; /* 枠線を含めて44px */
	margin-top: auto;
	padding: 8px 20px;
	border: 1px solid #212121;
	border-radius: var(--radius-pill);
	background: var(--color-bg);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 24px;
	transition: opacity 0.2s;
}

.c-interview-card__button-icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: var(--radius-pill);
	background: #212121;
}

/* 丸いボタン型のリンク(template-parts/components/button.php) */
.c-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-md);
	min-inline-size: 276px;
	min-block-size: 56px; /* 枠線を含めて56px */
	padding: 13px var(--space-lg);
	border: 1px solid var(--color-brand);
	border-radius: var(--radius-pill);
	font-size: 1rem;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.2s;

	&:hover {
		opacity: 0.8;
	}
}

.c-button--primary {
	background: var(--color-brand);
	color: var(--color-text-inverse);
}

.c-button--outline {
	background: var(--color-bg);
	color: var(--color-brand);
}

/* 青い背景の上に置く白いボタン */
.c-button--white {
	border-color: var(--color-bg);
	background: var(--color-bg);
	color: var(--color-brand);
}

.c-button--wide {
	min-inline-size: 336px;
}

.c-button__icon {
	flex-shrink: 0;
}

/* SP はボタンの幅を文言に合わせる(Figma「採用情報｜Mobile 375」)。幅を揃えたい箇所は置く側で指定する */
@media (width < 770px) {
	.c-button,
	.c-button--wide {
		gap: var(--space-sm);
		min-inline-size: 0;
		max-inline-size: 100%;
		padding-inline: 20px;
	}
}

/* セクション見出し(template-parts/components/section-heading.php) */
.c-section-heading {
	display: grid;
	gap: 10px;
	text-align: center;
}

.c-section-heading__en {
	margin: 0;
	color: var(--color-brand);
	font-family: var(--font-family-en);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 26px;

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

.c-section-heading__title {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.5;

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

/* ヘッダー・フッター用の小さいボタン */
.c-button--small {
	gap: 8px;
	min-inline-size: 148px;
	min-block-size: 44px; /* 枠線を含めて44px */
	padding: 9px var(--space-sm);
	font-size: 0.875rem;
	line-height: 24px;
}

/* 応募CTA(template-parts/components/join-cta.php) */
.c-join {
	padding-block: var(--space-section);

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

.c-join__banner {
	display: grid;
	grid-template-columns: 480fr 720fr;
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--color-brand);
	color: var(--color-text-inverse);

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

.c-join__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	aspect-ratio: 436 / 324;
	object-fit: cover;

	@media (width < 960px) {
		aspect-ratio: 335 / 241;
	}
}

.c-join__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-lg);
	padding: 56px;

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

.c-join__en {
	margin: 0;
	font-family: var(--font-family-en);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 26px;

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

.c-join__title {
	margin: 0;
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 52px;

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

.c-join__button {
	gap: 6px;
	min-inline-size: 356px;

	@media (width < 770px) {
		gap: 6px;
		min-inline-size: 0;
	}
}

.c-join__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm) var(--space-lg);
	margin: 0;
	padding: 0;
	list-style: none;

	@media (width < 770px) {
		flex-direction: column;
		gap: var(--space-lg);
	}

	& a {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		color: inherit;
		font-size: 0.875rem;
		font-weight: 700;
		line-height: 28px;
		text-decoration: none;

		@media (width < 770px) {
			line-height: 1.8;
		}

		&:hover {
			text-decoration: underline;
		}
	}
}

/* 最後の応募CTAとフッターの間はデザインどおり詰める(フッターの上の余白を消す) */
.l-main:has(.c-join:last-child) + .l-footer-business--recruit {
	margin-top: 0;
}

/* Join Our Team・修正版のデザイン(template-parts/components/join-team.php) */
.c-join-team {
	padding: 40px 20px;
	background: #fff;
}

.c-join-team__banner {
	max-width: 1120px;
	margin-inline: auto;
	overflow: clip; /* hidden だと、採用TOPで付けている写真のスクロール連動の動きが止まる(スクロールコンテナになるため) */
	border-radius: 8px;
	background: linear-gradient(158deg, #fff 34%, #e8f3fc 63%);
}

.c-join-team__photo {
	display: block;
	width: 100%;
	min-height: 320px;
	aspect-ratio: 1120 / 467;
	object-fit: cover;
}

.c-join-team__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	padding: 56px;

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

.c-join-team__en {
	margin: 0;
	color: #14427a;
	font-family: var(--font-family-en);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 23.4px;
	letter-spacing: 0.12em;
}

.c-join-team__title {
	margin: 0;
	color: #14427a;
	font-size: 2.25rem;
	font-weight: 900;
	line-height: 54px;
	letter-spacing: 0.08em;

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

/* SPだけ「仲間と、」の後で改行する */
.c-join-team__sp-br {
	@media (width >= 770px) {
		display: none;
	}
}

/* 濃いピンクの丸いボタン。右の白い丸に矢印 */
.c-join-team__button {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding: 0 16px 0 36px;
	border-radius: var(--radius-pill);
	background: #c2185b;
	color: #fff;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 30.6px;
	letter-spacing: 0.04em;
	text-decoration: none;

	&:hover {
		opacity: 0.85;
	}
}

.c-join-team__button-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;

	& img {
		display: block;
	}
}

.c-join-team__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;

	& a {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		color: #212121;
		font-size: 0.875rem;
		font-weight: 700;
		line-height: 24px;
		letter-spacing: 0;
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}
}

/* 下の余白はデザインどおり40pxにするため、フッターの上の余白を消す */
.l-main:has(.c-join-team:last-child) + .l-footer-business--recruit {
	margin-top: 0;
}

/* 下層ページの見出し(template-parts/components/page-heading.php) */
.c-page-heading {
	padding-block: 56px 64px;
	background: var(--color-bg-tint);

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

.c-page-heading__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px var(--space-lg);

	/* SP はパンくずを英字の小見出しより上に置く(Figma「会社・仕事を知る｜SP」) */
	@media (width < 770px) {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 28px;
	}
}

.c-page-heading__en {
	margin: 0;
	color: var(--color-brand);
	font-weight: 700;
	line-height: 28px;

	@media (width < 770px) {
		line-height: 1.8;
	}
}

/* 青地の帯は文字の幅に合わせる */
.c-page-heading__title {
	display: inline-block;
	margin: var(--space-md) 0 0;
	padding: 4px var(--space-md);
	background: var(--color-brand);
	color: var(--color-text-inverse);
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.5;

	@media (width < 770px) {
		margin-top: 8px;
		padding: 6px 12px;
		font-size: 1.5rem;
	}
}

/* パンくず(template-parts/components/breadcrumb.php)。右寄せで置く */
.c-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px 8px;
	margin: 0 0 0 auto;
	padding: 0;
	color: var(--color-text-breadcrumb);
	line-height: 28px;
	list-style: none;

	@media (width < 770px) {
		justify-content: flex-start;
		gap: 4px;
		margin: 0;
		font-size: 0.75rem;
		line-height: 18px;
	}
}

.c-breadcrumb__item {
	display: flex;
	align-items: center;
	gap: 8px;

	@media (width < 770px) {
		gap: 4px;
	}

	& a {
		color: inherit;

		&:hover {
			text-decoration: none;
		}
	}
}

/*
 * 採用サイトの下層ページの見出し・修正版のデザイン(template-parts/components/page-hero.php)。
 * キャリア・働く環境を知る / お問い合わせ で使う。もとはキャリアページの CSS(pages/career.css)にあったもの。
 * 追従するヘッダー(上の余白16px + 枠72px)の下まで地を敷く。余白は会社・仕事を知るページと同じ
 */
.c-page-hero {
	--page-hero-color-ink: #262628;
	--page-hero-color-sub: #55555c;
	--page-hero-color-navy: #14427a;
	--page-hero-color-deco: #1a6fbf;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: -88px;
	padding-block: 112px 74px; /* 上はヘッダーの88pxを含む */
	background: linear-gradient(157deg, #fff 0%, #e8f3fc 55%);
	color: var(--page-hero-color-ink);

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

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

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

/* 飾りの菱形。正方形を45度回したもの。位置は Figma の座標(1440px幅)から、菱形の中心が同じ位置に来るように決めた */
.c-page-hero__deco {
	position: absolute;
	z-index: -1;
	width: var(--size);
	height: var(--size);
	background: var(--page-hero-color-deco);
	opacity: var(--opacity);
	rotate: 45deg;
	pointer-events: none;

	&:nth-of-type(1) {
		--size: 220px;
		--opacity: 0.12;
		top: -40px;
		right: 120px;
	}

	&:nth-of-type(2) {
		--size: 90px;
		--opacity: 0.14;
		top: 120px;
		right: 300px;
	}

	&:nth-of-type(3) {
		--size: 60px;
		--opacity: 0.2;
		top: 170px;
		right: 40px;
	}

	@media (width < 770px) {
		&:nth-of-type(1) {
			right: -80px;
		}

		&:nth-of-type(2) {
			right: 80px;
		}

		&:nth-of-type(3) {
			right: 10px;
		}
	}
}

.c-page-hero__breadcrumb {
	margin-bottom: 54px;
	color: var(--page-hero-color-sub);
	font-size: 0.75rem;
	line-height: 21.6px;
	letter-spacing: 0.05em;

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

	& ol {
		display: flex;
		flex-wrap: wrap;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	/* 区切りはデザインどおり全角の「＞」を前後に全角スペースを空けて置く */
	& li + li::before {
		content: "\3000＞\3000";
	}

	& a {
		color: inherit;
		text-decoration: underline;
		text-decoration-thickness: 1px;

		&:hover {
			text-decoration: none;
		}
	}
}

.c-page-hero__en {
	margin: 0 0 18px;
	color: var(--page-hero-color-navy);
	font-family: var(--font-family-en);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 23.4px;
	letter-spacing: 0.16em;
}

.c-page-hero__title {
	margin: 0;
	font-size: 3rem;
	font-weight: 900;
	line-height: 62.4px;
	letter-spacing: 0.08em;

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

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

/* =========================================================================
 * 動き(共通)
 *
 * トップページ・採用TOPで使う。assets/js/motion.js が、動かす要素に is-reveal / is-reveal--{種類} を付け、
 * 画面に入ったら is-inview を付ける。同時に入った要素は --reveal-delay で順に遅らせる。
 * 子要素を順に動かすもの(children / left)は、子要素に --i(0, 1, 2…)が付く。
 *
 * - up       : 下からふわっと出る
 * - fade     : その場で浮かび上がる
 * - children : 子要素が順に下から出る
 * - left     : 子要素が順に左から出る
 * ページ固有の動き(図・写真など)は、各ページの CSS に書く。
 *
 * - is-reveal は JS が動かすときだけ付くため、JS が無い・「視差効果を減らす」の設定では最初から表示される
 * - 動きは控えめにする(移動は 16px 以内・拡大は 6% 以内・弾む動きは使わない。2026-11-20 ユーザー指示)
 * - animation-fill-mode は backwards にする。終わったあとは元のスタイルに戻るため、ホバーの transition とぶつからない
 * ====================================================================== */
:root {
	--motion-ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* 速く動き出し、ゆっくり止まる */
}

@keyframes c-motion-up {
	from {
		opacity: 0;
		translate: 0 16px;
	}
}

@keyframes c-motion-left {
	from {
		opacity: 0;
		translate: -12px 0;
	}
}

@keyframes c-motion-fade {
	from {
		opacity: 0;
	}
}

/* 切り抜きを広げる(棒グラフ・線・面など)。向きごとに用意する */
@keyframes c-motion-wipe-right {
	from {
		clip-path: inset(0 100% 0 0);
	}

	to {
		clip-path: inset(0);
	}
}

@keyframes c-motion-wipe-left {
	from {
		clip-path: inset(0 0 0 100%);
	}

	to {
		clip-path: inset(0);
	}
}

@keyframes c-motion-wipe-down {
	from {
		clip-path: inset(0 0 100% 0);
	}

	to {
		clip-path: inset(0);
	}
}

@keyframes c-motion-wipe-up {
	from {
		clip-path: inset(100% 0 0 0);
	}

	to {
		clip-path: inset(0);
	}
}

/* 写真が少しだけ寄った状態から引いていく */
@keyframes c-motion-zoom-out {
	from {
		scale: 1.06;
	}
}

.is-reveal--up:not(.is-inview),
.is-reveal--fade:not(.is-inview),
.is-reveal--children:not(.is-inview) > *,
.is-reveal--left:not(.is-inview) > * {
	opacity: 0;
}

.is-reveal.is-inview {
	--reveal-at: var(--reveal-delay, 0ms);
}

.is-reveal--up.is-inview {
	animation: c-motion-up 0.9s var(--motion-ease-out) var(--reveal-at) backwards;
}

.is-reveal--fade.is-inview {
	animation: c-motion-fade 1.2s ease-out var(--reveal-at) backwards;
}

.is-reveal--children.is-inview > * {
	animation: c-motion-up 0.9s var(--motion-ease-out) backwards;
	animation-delay: calc(var(--reveal-at) + var(--i, 0) * 80ms);
}

.is-reveal--left.is-inview > * {
	animation: c-motion-left 0.8s var(--motion-ease-out) backwards;
	animation-delay: calc(var(--reveal-at) + 100ms + var(--i, 0) * 70ms);
}

/* 飾りの菱形(ページ見出しの背景)。少し小さい状態から浮かび上がる。回転は rotate で付いているため scale だけ動かす */
@keyframes c-motion-deco {
	from {
		opacity: 0;
		scale: 0.85;
	}
}

/*
 * 控えめな動き(会社・仕事を知る・キャリア。2026-11-20 ユーザー指示)。
 * motion.js の PAGES で calm: true にしたページで、<html> に is-motion-calm が付く。
 * 下から出る動きの移動を 8px・0.7秒に短くし、浮かび上がる動きも短くする
 */
@keyframes c-motion-up-calm {
	from {
		opacity: 0;
		translate: 0 8px;
	}
}

.is-motion-calm {
	& .is-reveal--up.is-inview {
		animation: c-motion-up-calm 0.7s var(--motion-ease-out) var(--reveal-at) backwards;
	}

	& .is-reveal--fade.is-inview {
		animation-duration: 0.8s;
	}
}

/*
 * ページ見出し(c-page-hero)の読み込み時の動き。文字だけが、その場で浮かび上がる。菱形は動かさない。
 * 使っているのはキャリア(控えめな動きのページ)だけのため、控えめな動きに合わせている。
 * 読み込み直後に動くため、JS が付ける is-motion-calm ではなく is-motion(inc/enqueue.php が <head> で付ける)で動かす
 */
.is-motion {
	& .c-page-hero__breadcrumb,
	& .c-page-hero__en,
	& .c-page-hero__title {
		animation: c-motion-fade 0.8s ease-out 0.1s backwards;
	}
}

/* Join Our Team のボタンの矢印を、ホバーで進む向きに少しずらす(動きを付けるページだけ) */
@media (hover: hover) {
	.is-motion .c-join-team__button-icon {
		transition: translate 0.3s var(--motion-ease-out);
	}

	.is-motion .c-join-team__button:hover .c-join-team__button-icon {
		translate: 3px 0;
	}
}

/* Join Our Team の写真を、文字より少し遅く動かして奥行きを出す。拡大しておき、動かしても端が見えないようにする */
@keyframes c-motion-photo-parallax {
	from {
		transform: translateY(-4%) scale(1.1);
	}

	to {
		transform: translateY(4%) scale(1.1);
	}
}

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.is-motion .c-join-team__photo {
			animation: c-motion-photo-parallax linear both;
			animation-timeline: view();
			animation-range: cover;
		}
	}
}
