@charset "UTF-8";

/* MV */
.mv {
	background: var(--white) url('https://www.finese.co.jp/careers/wp-content/themes/Finese/assets/img/message/mv_img.svg') no-repeat right bottom 22.93% / 17.63%;
}

.mv-tag {
	background: var(--brandTeal);
}

@media (max-width: 768px) {
	.mv {
		background: var(--white) url('https://www.finese.co.jp/careers/wp-content/themes/Finese/assets/img/message/mv_img.svg') no-repeat right bottom 22.93% / 17.63%;
	}
}

/* Scroll */
.message__scroll {
	position: relative;
	overflow: hidden;
	height: 100vh;
	height: 100svh;
}

.message__track {
	display: flex;
	height: 100%;
	will-change: transform;
}

.message__item {
	flex: 0 0 auto;
	width: 100vw;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-block: clamp(1rem, 4vh, 3rem);
}

.message-item__image {
	width: clamp(var(--img-min, 220px), 35vh, var(--img-max, 380px));
	height: auto;
}

.message-item__type01 {
	background: #67b9c7;
}

.message-item__type01 .message-item__content {
	display: flex;
	flex-direction: column;
	gap: 33.3%;
	margin-right: 10px;
	padding-top: 14.5%;
}

.message-item__type01 .message-item__image {
	--img-min: 220px;
	--img-max: 380px;
}

.message-item__type01 .message-item__text {
	padding-top: 37.5%;
}

.message-item__type02 {
	background: #4cb162;
}

.message-item__type02 .message-item__content {
	display: block;
	margin-right: 10px;
	padding-top: 7.5%;
}

.message-item__type02 .message-item__image {
	--img-min: 250px;
	--img-max: 431px;
}

.message-item__type02 .message-item__text {
	padding-top: 47.5%;
}

.message-item__type03 {
	background: #97c6da;
}

.message-item__type03 .message-item__content {
	margin-right: 10px;
	padding-top: 7.5%;
}

.message-item__type03 .message-item__image {
	--img-min: 250px;
	--img-max: 433px;
}

.message-item__type03 .message-item__text {
	padding-top: 50%;
}

.message-item__type04 {
	background: #f4f4f4;
}

.message-item__type04 .message-item__content {
	margin-right: 10px;
	padding-top: 14.5%;
	padding-bottom: 200px;
}

.message-item__type04 .message-item__image {
	--img-min: 195px;
	--img-max: 338px;
	margin: -2em 0 0 4em;
}

.message-item__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.message-item__title {
	font-size: max(1.625rem, 19px);
	line-height: 2;
	letter-spacing: 0.05em;
}

.message-item__text .c-text {
	font-size: var(--font-basic);
}

.message__back {
	position: absolute;
	bottom: 20px;
}

.message__back-link {
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 8.0625rem;
	width: fit-content;
	color: var(--black);
	font-size: max(0.875rem, 14px);
	font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
	.message__back-link:hover .message__back-icon {
		border: none;
		background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
		color: var(--white);
	}
}


.message__back-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	border: 1px solid var(--black);
	border-radius: 1.7px;
	overflow: hidden;
}

.message__back-icon svg {
	display: block;
	color: var(--black);
	transition: transform .2s ease;
}

.message-item__profile {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: 60%;
}

.message-item__profile-image {
	max-width: clamp(234px, 40vh, 406px);
	width: 100%;
	height: auto;
	display: block;
}

.message-item__profile-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 15%;
}

.message-item__profile-role {
	font-size: max(0.875rem, 14px);
	line-height: 1.8;
}

.message-item__profile-name {
	font-size: max(1.25rem, 17px);
	line-height: 1.8;
}

@media (max-width: 1200px) {
	.message-item__profile {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.message-item__profile-info {
		margin-top: 0;
		margin-left: auto;
	}
}

@media (max-width: 768px) {
	#hScroll {
		height: auto;
	}

	.message__scroll {
		height: auto;
		overflow: visible;
	}

	.message__track {
		display: flex;
		flex-direction: column;
		height: auto;
		transform: none !important;
	}

	.message__item {
		width: 100%;
		height: auto;
		display: block;
		padding-block: 80px;
	}

	.message-item__type01 .message-item__content,
	.message-item__type02 .message-item__content,
	.message-item__type03 .message-item__content,
	.message-item__type04 .message-item__content {

		gap: 20px;
		margin-right: 0;
		padding-top: 0!important;
	}

	.message-item__inner {
		grid-template-columns: 1fr;
		gap: 100px;
	}

	.message-item__image {
		width: 100%;
		max-width: 100%;
		height: auto;
		margin: 0;
	}

	.message-item__text {
		padding-top: 0 !important;
	}

	.message-item__title {
		font-size: 1.25rem;
	}

	.message-item__type04 .message-item__heading {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.message-item__type02 {
		padding-block: 40px;
	}

	.message-item__type02 .message-item__image {

		margin-bottom: 100px;
	}

	.message-item__type04 .message-item__image {
		max-width: 338px;
		width: 100%;
		height: auto;
		margin: 0 auto;
	}

	.message-item__profile {
		padding-top: 0!important;
	}

	.message-item__profile-role {
		font-size: 0.875rem;
	}

	.message-item__profile-image {
		max-width: 100%;
	}

	.message-item__profile-name {
		font-size: 1rem;
	}
}

@media (max-height: 830px) {
	.message-item__type02 .message-item__image {
		transform: translateY(80px);
	}

	.message-item__type01 .message-item__text {
		transform: translateY(-70px);
	}

	.message-item__type02 .message-item__text {
		transform: translateY(-80px);
	}

	.message-item__text .c-text {
		font-size: 0.875rem;
	}
}