/* ============================================
   共通設定
============================================ */

.fs-floating,
.fs-floating *,
.fs-floating *::before,
.fs-floating *::after,
.fs-floating-spacer {
	box-sizing: border-box;
}


/* ============================================
   固定バナー用スペーサー
============================================ */

.fs-floating-spacer {
	display: block;
	width: 100%;
	height: 108px;
	margin: 0;
	padding: 0;
	background-color: transparent;
}


/* ============================================
   フローティングバナー本体
============================================ */

.fs-floating {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9998;

	width: 100%;
	height: 108px;
	margin: 0;
	padding: 0;

	background-color: #333333;

	box-shadow:
		0 -2px 10px rgba(0, 0, 0, 0.08);
}


/* ============================================
   PC インナー
============================================ */

.fs-floating__inner {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: flex-start;

	width: 100%;
	max-width: 1000px;
	height: 100%;

	margin: 0 auto;
	padding: 0 20px 0 300px;
}


/* ============================================
   PC 人物
============================================ */

.fs-floating__person {
	position: absolute;
	right: auto;
	bottom: 0;
	left: 55px;
	z-index: 10;

	width: 150px;
	height: 142px;

	margin: 0;
	padding: 0;
}

.fs-floating__person-image {
	position: absolute;
	right: 0;
	bottom: 0;

	display: block;

	width: 150px;
	max-width: none;
	height: auto;

	margin: 0;
	padding: 0;
}


/* ============================================
   PC 吹き出し
============================================ */

.fs-floating__balloon {
	position: absolute;
	top: 15px;
	left: 190px;
	z-index: 2;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 140px;
	min-height: 64px;

	margin: 0;
	padding: 10px 14px;

	border-radius: 10px;

	background-color: #ffffff;
}


/* 吹き出し三角 */

.fs-floating__balloon::before {
	position: absolute;
	top: 28px;
	left: -12px;

	width: 0;
	height: 0;

	content: "";

	border-top: 10px solid transparent;
	border-right: 14px solid #ffffff;
	border-bottom: 10px solid transparent;
}


/* 吹き出し文字 */

.fs-floating__balloon-text {
	margin: 0;
	padding: 0;

	color: #222222;

	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.02em;

	text-align: center;
}


/* ============================================
   CTAエリア
============================================ */

.fs-floating__content {
	position: relative;
	z-index: 20;

	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	width: 100%;
	max-width: 620px;

	margin: 0;
	padding: 0;
}


/* ============================================
   上部説明文
============================================ */

.fs-floating__lead {
	width: 100%;

	margin: 0 0 7px;
	padding: 0;

	color: #ffffff;

	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.02em;

	text-align: center;
	white-space: nowrap;
}

.fs-floating__lead-decoration {
	display: inline-block;

	margin: 0 7px;

	color: #ffffff;

	font-weight: 400;
}


/* ============================================
   CTAボタン
============================================ */

.fs-floating__button {
	position: relative;
	z-index: 30;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	max-width: 510px;
	min-height: 58px;

	margin: 0;
	padding: 12px 24px;

	border: 0;
	border-radius: 999px;

	color: #ffffff;
	background-color: #ff1200;

	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.01em;

	text-align: center;
	text-decoration: none;
	white-space: nowrap;

	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.fs-floating__button:hover,
.fs-floating__button:focus-visible {
	color: #ffffff;
	opacity: 0.85;
	text-decoration: none;
}

.fs-floating__button:active {
	transform: translateY(1px);
}


/* ============================================
   ボタン内余白リセット
============================================ */

.fs-floating__button span,
.fs-floating__button-text {
	margin: 0;
	padding: 0;
}


/* ============================================
   SWELLとの干渉対策
============================================ */

body.fs-has-floating-banner .fs-footer {
	margin-bottom: 0 !important;
}

body.fs-has-floating-banner .fs-footer__bottom {
	padding-bottom: 0 !important;
}


/* ============================================
   1100px以下
============================================ */

@media (max-width: 1100px) {

	.fs-floating__inner {
		max-width: 920px;

		padding:
			0
			18px
			0
			270px;
	}

	.fs-floating__person {
		left: 45px;
		width: 145px;
	}

	.fs-floating__person-image {
		width: 145px;
	}

	.fs-floating__balloon {
		left: 170px;
		width: 125px;
	}

	.fs-floating__balloon-text {
		font-size: 13px;
	}

	.fs-floating__content {
		max-width: 590px;
	}

	.fs-floating__lead {
		font-size: 13px;
	}

	.fs-floating__button {
		max-width: 480px;
		font-size: 18px;
	}

}


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

@media (max-width: 767px) {

	/* ========================================
	   スペーサー
	======================================== */

	.fs-floating-spacer {
		height: 70px;
	}


	/* ========================================
	   バナー本体
	======================================== */

	.fs-floating {
		height: 70px;
	}


	/* ========================================
	   インナー
	======================================== */

	.fs-floating__inner {
		position: relative;

		display: block;

		width: 100%;
		max-width: none;
		height: 100%;

		margin: 0;
		padding: 0;
	}


	/* ========================================
	   人物
	======================================== */

	.fs-floating__person {
		position: absolute;
		right: auto;
		bottom: 0;
		left: -4px;
		z-index: 10;

		width: 82px;
		height: 70px;

		margin: 0;
		padding: 0;
	}

	.fs-floating__person-image {
		position: absolute;
		right: auto;
		bottom: 0;
		left: 0;

		display: block;

		width: 82px;
		max-width: none;
		height: auto;

		margin: 0;
		padding: 0;
	}


	/* ========================================
	   スマホでは吹き出し非表示
	======================================== */

	.fs-floating__balloon {
		display: none;
	}


	/* ========================================
	   CTAコンテンツ
	   デザインに合わせて下寄せ
	======================================== */

	.fs-floating__content {
		position: absolute;
		right: 10px;
		bottom: 8px;
		left: 65px;
		z-index: 20;

		display: block;

		width: auto;
		max-width: none;
		height: auto;

		margin: 0;
		padding: 0;
	}


	/* ========================================
	   上部説明文
	======================================== */

	.fs-floating__lead {
		display: block;

		width: 100%;

		margin: 0 0 4px;
		padding: 0;

		color: #ffffff;

		font-size: 8px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: -0.02em;

		text-align: center;

		white-space: nowrap;
		word-break: keep-all;
		overflow-wrap: normal;
	}

	.fs-floating__lead-decoration {
		display: inline-block;

		margin: 0 4px;

		color: #ffffff;

		font-size: 10px;
		font-weight: 400;
		line-height: 1;
	}


	/* ========================================
	   CTAボタン
	======================================== */

	.fs-floating__button {
		position: relative;
		z-index: 30;

		display: flex;
		align-items: center;
		justify-content: center;

		width: 100%;
		max-width: none;

		height: 41px;
		min-height: 41px;

		margin: 0;
		padding: 0 2px;

		border: 0;
		border-radius: 999px;

		color: #ffffff;
		background-color: #ff1200;

		font-size: 15px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: 0;

		text-align: center;
		text-decoration: none;
		white-space: nowrap;
	}


	.fs-floating__button span,
	.fs-floating__button-text {
		margin: 0;
		padding: 0;
	}

}


/* ============================================
   414px以下
============================================ */

@media (max-width: 414px) {

	.fs-floating-spacer {
		height: 70px;
	}

	.fs-floating {
		height: 70px;
	}

	.fs-floating__person {
		left: -5px;
		width: 80px;
		height: 80px;
	}

	.fs-floating__person-image {
		width: 80px;
	}

	.fs-floating__content {
		right: 7px;
		bottom: 9px;
		left: 76px;
	}

	.fs-floating__lead {
		margin-bottom: 4px;
		font-size: 8px;
	}

	.fs-floating__lead-decoration {
		margin: 0 4px;
		font-size: 10px;
	}

	.fs-floating__button {
		height: 40px;
		min-height: 40px;

		padding: 0 2px;

		font-size: 16px;
	}

}


/* ============================================
   390px以下
============================================ */

@media (max-width: 390px) {

	.fs-floating-spacer {
		height: 78px;
	}

	.fs-floating {
		height: 78px;
	}

	.fs-floating__person {
		left: 2px;
		width: 78px;
		height: 78px;
	}

	.fs-floating__person-image {
		width: 78px;
	}

	.fs-floating__content {
		right: 6px;
		bottom: 5px;
		left: 74px;
	}

	.fs-floating__lead {
		margin-bottom: 4px;

		font-size: 7.6px;
		letter-spacing: -0.025em;
	}

	.fs-floating__lead-decoration {
		margin: 0 3px;
		font-size: 9px;
	}

	.fs-floating__button {
		height: 39px;
		min-height: 39px;

		padding: 0 1px;

		font-size: 13.5px;
	}

}


/* ============================================
   375px以下
============================================ */

@media (max-width: 375px) {

	.fs-floating-spacer {
		height: 70px;
	}

	.fs-floating {
		height: 70px;
	}

	.fs-floating__person {
		left: -3px;
		width: 80px;
		height: 80px;
	}

	.fs-floating__person-image {
		width: 80px;
	}

	.fs-floating__content {
		right: 6px;
		bottom: 9px;
		left: 65px;
	}

	.fs-floating__lead {
		margin-bottom: 4px;

		font-size: 9px;
		line-height: 1;
		letter-spacing: -0.03em;
	}

	.fs-floating__lead-decoration {
		margin: 0 3px;
		font-size: 9px;
	}

	.fs-floating__button {
		height: 38px;
		min-height: 38px;

		padding: 0 1px;

		font-size: 15px;
	}

}


/* ============================================
   360px以下
============================================ */

@media (max-width: 360px) {

	.fs-floating-spacer {
		height: 70px;
	}

	.fs-floating {
		height: 70px;
	}

	.fs-floating__person {
		left: -5px;
		width: 74px;
		height: 76px;
	}

	.fs-floating__person-image {
		width: 74px;
	}

	.fs-floating__content {
		right: 5px;
		bottom: 9px;
		left: 50px;
	}

	.fs-floating__lead {
		margin-bottom: 5px;

		font-size: 9px;
		line-height: 1;
		letter-spacing: -0.035em;
	}

	.fs-floating__lead-decoration {
		margin: 0 2px;
		font-size: 8px;
	}

	.fs-floating__button {
		height: 38px;
		min-height: 38px;

		padding: 0 1px;

		font-size: 13px;
	}

}




/* ============================================
   SWELL 固定ボタン
   フローティングバナー表示ページのみ位置調整
============================================ */

/* PC */
@media (min-width: 768px) {

	body:has(.fs-floating) .p-fixBtnWrap {
		position: fixed !important;
		right: 24px !important;
		bottom: 128px !important;
		z-index: 10050 !important;
	}

}


/* ============================================
   SP
============================================ */

@media (max-width: 767px) {

	body:has(.fs-floating) .p-fixBtnWrap {
		position: fixed !important;
		right: 12px !important;
		bottom: 86px !important;
		z-index: 10050 !important;
	}

}


/* 390px以下：バナー高さ78px */
@media (max-width: 390px) {

	body:has(.fs-floating) .p-fixBtnWrap {
		bottom: 94px !important;
	}

}


/* 375px以下：バナー高さ70px */
@media (max-width: 375px) {

	body:has(.fs-floating) .p-fixBtnWrap {
		bottom: 86px !important;
	}

}

/* ============================================
   SWELL ページトップボタン
   FLAGSHIPカラー 完全上書き
============================================ */

#pagetop,
#pagetop.c-fixBtn {
	border: 1px solid #ff1200 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #ff1200 !important;
	box-shadow: none !important;
}


/* ============================================
   アイコン本体
============================================ */

#pagetop *,
#pagetop .c-fixBtn__icon,
#pagetop .icon-chevron-up {
	color: #ff1200 !important;
	fill: #ff1200 !important;
	stroke: #ff1200 !important;
}


/* ============================================
   SWELL側の疑似要素対策
============================================ */

#pagetop::before,
#pagetop::after,
#pagetop .c-fixBtn__icon::before,
#pagetop .c-fixBtn__icon::after,
#pagetop .icon-chevron-up::before,
#pagetop .icon-chevron-up::after {
	color: #ff1200 !important;
	border-color: #ff1200 !important;
	background-color: transparent !important;
}


/* ============================================
   hover / focus
============================================ */

#pagetop:hover,
#pagetop:focus,
#pagetop:focus-visible,
#pagetop.c-fixBtn:hover,
#pagetop.c-fixBtn:focus-visible {
	border-color: #ff1200 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #ff1200 !important;
}


/* hover時のアイコン */
#pagetop:hover *,
#pagetop:focus-visible *,
#pagetop.c-fixBtn:hover .c-fixBtn__icon,
#pagetop.c-fixBtn:focus-visible .c-fixBtn__icon {
	color: #ff1200 !important;
	fill: #ff1200 !important;
	stroke: #ff1200 !important;
}

/* ============================================
   採用情報・会社概要
   ページトップボタン上書き
============================================ */

body.page-recruit #pagetop,
body.page-company #pagetop,
body.page-recruit #pagetop.c-fixBtn,
body.page-company #pagetop.c-fixBtn {
	border: 1px solid #ff1200 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #ff1200 !important;
	box-shadow: none !important;
}


/* 矢印 */
body.page-recruit #pagetop *,
body.page-company #pagetop *,
body.page-recruit #pagetop .c-fixBtn__icon,
body.page-company #pagetop .c-fixBtn__icon,
body.page-recruit #pagetop .icon-chevron-up,
body.page-company #pagetop .icon-chevron-up {
	color: #ff1200 !important;
	fill: #ff1200 !important;
	stroke: #ff1200 !important;
}


/* hover */
body.page-recruit #pagetop:hover,
body.page-company #pagetop:hover,
body.page-recruit #pagetop:focus-visible,
body.page-company #pagetop:focus-visible {
	border-color: #ff1200 !important;
	background: #ffffff !important;
	color: #ff1200 !important;
}