/**
 * みつピタジョブ Core
 * 職業分析機能 共通デザイン
 */

/* =====================================================
 * 診断全体
 * ===================================================== */

.mj-ca {
	--mj-ca-green: #176247;
	--mj-ca-green-dark: #0f4935;
	--mj-ca-green-light: #eaf5f0;
	--mj-ca-green-pale: #f4faf7;
	--mj-ca-beige: #f7f2e8;
	--mj-ca-gold: #c8a96b;
	--mj-ca-text: #26352f;
	--mj-ca-text-light: #5f6e68;
	--mj-ca-border: #dce8e2;
	--mj-ca-white: #ffffff;
	--mj-ca-error: #b84a4a;
	--mj-ca-shadow:
		0 18px 48px rgba(38, 53, 47, 0.1);

	width: 100%;
	margin: 0 auto;
	padding: 0;
	color: var(--mj-ca-text);
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Hiragino Kaku Gothic ProN",
		"Hiragino Sans",
		"Yu Gothic",
		Meiryo,
		sans-serif;
	line-height: 1.75;
	box-sizing: border-box;
}

.mj-ca *,
.mj-ca *::before,
.mj-ca *::after {
	box-sizing: border-box;
}

.mj-ca img {
	display: block;
	max-width: 100%;
	height: auto;
}

.mj-ca button,
.mj-ca input,
.mj-ca select,
.mj-ca textarea {
	font: inherit;
}

.mj-ca button,
.mj-ca a {
	-webkit-tap-highlight-color: transparent;
}

.mj-ca [hidden] {
	display: none !important;
}

/* =====================================================
 * 診断本体
 * ===================================================== */

.mj-ca__inner {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 48px 0 72px;
}

.mj-ca__panel {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: var(--mj-ca-white);
	border: 1px solid var(--mj-ca-border);
	border-radius: 28px;
	box-shadow: var(--mj-ca-shadow);
}

.mj-ca__screen {
	width: 100%;
}

.mj-ca__screen.is-active {
	animation: mj-ca-fade-in 0.35s ease both;
}

@keyframes mj-ca-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =====================================================
 * 共通ボタン
 * ===================================================== */

.mj-ca-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 56px;
	padding: 14px 26px;
	border: 0;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.mj-ca-button:hover {
	transform: translateY(-2px);
}

.mj-ca-button:focus-visible {
	outline: 3px solid rgba(23, 98, 71, 0.24);
	outline-offset: 4px;
}

.mj-ca-button:disabled,
.mj-ca-button[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.mj-ca-button--primary {
	color: var(--mj-ca-white);
	background: var(--mj-ca-green);
	box-shadow:
		0 10px 24px rgba(23, 98, 71, 0.2);
}

.mj-ca-button--primary:hover {
	color: var(--mj-ca-white);
	background: var(--mj-ca-green-dark);
	box-shadow:
		0 14px 30px rgba(23, 98, 71, 0.25);
}

.mj-ca-button--secondary {
	color: var(--mj-ca-green);
	background: var(--mj-ca-white);
	border: 1px solid var(--mj-ca-green);
}

.mj-ca-button--secondary:hover {
	color: var(--mj-ca-green-dark);
	background: var(--mj-ca-green-pale);
	border-color: var(--mj-ca-green-dark);
}

.mj-ca-button--line {
	color: var(--mj-ca-white);
	background: #06c755;
	box-shadow:
		0 10px 24px rgba(6, 199, 85, 0.2);
}

.mj-ca-button--line:hover {
	color: var(--mj-ca-white);
	background: #05ad49;
}

.mj-ca-button__label {
	display: inline-block;
}

.mj-ca-button__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.mj-ca-button:hover .mj-ca-button__arrow {
	transform: translateX(3px);
}

.mj-ca-button--secondary:hover .mj-ca-button__arrow {
	transform: rotate(-18deg);
}

.mj-ca-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 28px;
	padding: 0 8px;
	color: #06c755;
	background: var(--mj-ca-white);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

/* =====================================================
 * 共通見出し
 * ===================================================== */

.mj-ca-section-heading {
	margin: 0 0 28px;
}

.mj-ca-section-heading__eyebrow,
.mj-ca-start__eyebrow,
.mj-ca-result__eyebrow,
.mj-ca-result__section-kicker,
.mj-ca-line__eyebrow {
	margin: 0 0 8px;
	color: var(--mj-ca-green);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.mj-ca-section-heading__title {
	margin: 0;
	color: var(--mj-ca-text);
	font-size: clamp(26px, 4vw, 42px);
	line-height: 1.35;
}

.mj-ca-section-heading__description {
	margin: 14px 0 0;
	color: var(--mj-ca-text-light);
	font-size: 16px;
}

/* =====================================================
 * スタート画面
 * ===================================================== */

.mj-ca-start {
	width: 100%;
}

.mj-ca-start__content {
	display: grid;
	grid-template-columns:
		minmax(0, 1.05fr)
		minmax(360px, 0.95fr);
	align-items: center;
	gap: 48px;
	min-height: 560px;
	padding: 56px;
	background:
		linear-gradient(
			135deg,
			#ffffff 0%,
			#ffffff 55%,
			#f2faf6 100%
		);
}

.mj-ca-start__copy {
	position: relative;
	z-index: 2;
}

.mj-ca-start__title {
	margin: 0;
	color: var(--mj-ca-text);
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.02em;
}

.mj-ca-start__description {
	max-width: 680px;
	margin: 18px 0 0;
	color: var(--mj-ca-text-light);
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.9;
}

.mj-ca-start__additional {
	margin: 20px 0 0;
	color: var(--mj-ca-text-light);
}

.mj-ca-start__additional > :first-child {
	margin-top: 0;
}

.mj-ca-start__additional > :last-child {
	margin-bottom: 0;
}

.mj-ca-start__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.mj-ca-start__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	padding: 7px 13px;
	color: var(--mj-ca-green-dark);
	background: var(--mj-ca-green-light);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
}

.mj-ca-start__meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: var(--mj-ca-white);
	background: var(--mj-ca-green);
	border-radius: 50%;
	font-size: 11px;
	font-weight: 800;
}

.mj-ca-start__actions {
	margin: 34px 0 0;
}

.mj-ca-start__button {
	min-width: 240px;
}

.mj-ca-start__note {
	margin: 16px 0 0;
	color: var(--mj-ca-text-light);
	font-size: 13px;
}

.mj-ca-start__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.mj-ca-start__visual::before {
	content: "";
	position: absolute;
	inset: 8% 4%;
	background:
		radial-gradient(
			circle,
			rgba(200, 169, 107, 0.16) 0%,
			rgba(234, 245, 240, 0.46) 46%,
			rgba(255, 255, 255, 0) 72%
		);
	border-radius: 50%;
}

.mj-ca-start__image {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: 480px;
	object-fit: contain;
	filter:
		drop-shadow(
			0 18px 24px rgba(38, 53, 47, 0.1)
		);
}

.mj-ca-start__placeholder {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(420px, 100%);
	aspect-ratio: 1 / 1;
}

.mj-ca-start__hexagon {
	position: relative;
	width: 270px;
	height: 270px;
	background: var(--mj-ca-green-light);
	clip-path:
		polygon(
			25% 6.7%,
			75% 6.7%,
			100% 50%,
			75% 93.3%,
			25% 93.3%,
			0% 50%
		);
}

.mj-ca-start__hex-label {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 62px;
	min-height: 34px;
	padding: 6px 10px;
	color: var(--mj-ca-green-dark);
	background: rgba(255, 255, 255, 0.92);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	box-shadow:
		0 8px 18px rgba(38, 53, 47, 0.1);
}

.mj-ca-start__hex-label--office {
	top: 8%;
	left: 50%;
	transform: translateX(-50%);
}

.mj-ca-start__hex-label--support {
	top: 29%;
	right: 2%;
}

.mj-ca-start__hex-label--sales {
	right: 5%;
	bottom: 24%;
}

.mj-ca-start__hex-label--technical {
	bottom: 7%;
	left: 50%;
	transform: translateX(-50%);
}

.mj-ca-start__hex-label--field {
	bottom: 24%;
	left: 5%;
}

.mj-ca-start__hex-label--creative {
	top: 29%;
	left: 2%;
}

/* =====================================================
 * 画面共通余白
 * ===================================================== */

.mj-ca-question,
.mj-ca-result {
	padding: 48px 56px 56px;
}

/* =====================================================
 * アクセシビリティ
 * ===================================================== */

.mj-ca-sr-only {
	position: absolute !important;
	overflow: hidden !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

/* =====================================================
 * エラー表示
 * ===================================================== */

.mj-ca-error,
[data-mj-ca-answer-error] {
	margin: 16px 0 0;
	padding: 12px 16px;
	color: #7d2929;
	background: #fff1f1;
	border: 1px solid #efcaca;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
}

/* =====================================================
 * フォーカス
 * ===================================================== */

.mj-ca :focus-visible {
	outline: 3px solid rgba(23, 98, 71, 0.22);
	outline-offset: 3px;
}

/* =====================================================
 * タブレット
 * ===================================================== */

@media (max-width: 960px) {

	.mj-ca__inner {
		width: min(100% - 24px, 1180px);
		padding: 32px 0 56px;
	}

	.mj-ca-start__content {
		grid-template-columns: 1fr;
		gap: 32px;
		min-height: auto;
		padding: 44px 36px;
	}

	.mj-ca-start__copy {
		text-align: center;
	}

	.mj-ca-start__description,
	.mj-ca-start__additional {
		margin-right: auto;
		margin-left: auto;
	}

	.mj-ca-start__meta {
		justify-content: center;
	}

	.mj-ca-start__visual {
		order: -1;
	}

	.mj-ca-start__image {
		max-width: 460px;
		max-height: 360px;
	}

	.mj-ca-question,
	.mj-ca-result {
		padding: 40px 36px 48px;
	}
}

/* =====================================================
 * スマートフォン
 * ===================================================== */

@media (max-width: 640px) {

	.mj-ca__inner {
		width: min(100% - 16px, 1180px);
		padding: 20px 0 40px;
	}

	.mj-ca__panel {
		border-radius: 20px;
	}

	.mj-ca-start__content {
		gap: 24px;
		padding: 28px 20px 34px;
	}

	.mj-ca-start__title {
		font-size: 30px;
	}

	.mj-ca-start__description {
		margin-top: 14px;
		font-size: 15px;
		line-height: 1.8;
	}

	.mj-ca-start__meta {
		gap: 8px;
		margin-top: 22px;
	}

	.mj-ca-start__meta-item {
		min-height: 32px;
		padding: 6px 10px;
		font-size: 12px;
	}

	.mj-ca-start__actions {
		margin-top: 26px;
	}

	.mj-ca-start__button {
		width: 100%;
		min-width: 0;
	}

	.mj-ca-start__image {
		max-height: 280px;
	}

	.mj-ca-question,
	.mj-ca-result {
		padding: 30px 18px 38px;
	}

	.mj-ca-button {
		width: 100%;
		min-height: 52px;
		padding: 13px 20px;
		font-size: 15px;
	}
}

/* =====================================================
 * 動きを減らす設定
 * ===================================================== */

@media (prefers-reduced-motion: reduce) {

	.mj-ca *,
	.mj-ca *::before,
	.mj-ca *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.mj-ca-button:hover {
		transform: none;
	}
}