@charset "UTF-8";
/* ==========================================================================
   トップページ ファーストビュー
   「電気工事会社をお探しの方へ」バナー
   ※4つのボタン（ul）の直下に配置。幅はボタン2列分に合わせています。
   ========================================================================== */

.bnr_contractor {
	--bnr-green: #009045;
	--bnr-green-dark: #007a3a;
	--bnr-orange: #eb6124;

	width: 100%;
	max-width: 585px;
	margin-top: 25px;
}

.bnr_contractor a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 96px;
	padding: 14px 22px 14px 18px;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(80, 30, 0, 0.28);
	color: #222;
	text-decoration: none;
	box-sizing: border-box;
	transition: transform 0.3s, box-shadow 0.3s;
}

/* 左端のアクセントライン */
.bnr_contractor a::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 6px;
	background: var(--bnr-green);
}

/* 光が走るエフェクト（目を引くための控えめなアニメーション） */
.bnr_contractor a::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
	transform: skewX(-20deg);
	animation: bnrContractorShine 4.5s ease-in-out 1.2s infinite;
	pointer-events: none;
}

@keyframes bnrContractorShine {
	0% { left: -60%; }
	35% { left: 130%; }
	100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
	.bnr_contractor a::after {
		animation: none;
		display: none;
	}
}

/* アイコン */
.bnr_contractor__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-left: 6px;
	border-radius: 50%;
	background: var(--bnr-green);
}

.bnr_contractor__icon svg {
	display: block;
	width: 34px;
	height: 34px;
}

/* テキスト */
.bnr_contractor__txt {
	flex: 1;
	min-width: 0;
}

.bnr_contractor__label {
	display: inline-block;
	margin: 0 0 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--bnr-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.08em;
}

.bnr_contractor__ttl {
	display: block;
	color: var(--bnr-green);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
}

.bnr_contractor__sub {
	display: block;
	margin-top: 3px;
	color: #555;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.05em;
}

/* 文節ごとに改行（狭い画面で1文字だけ折り返すのを防ぐ） */
.bnr_contractor__ttl > span,
.bnr_contractor__sub > span {
	display: inline-block;
}

/* 右端の矢印 */
.bnr_contractor__arrow {
	position: relative;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bnr-green);
	transition: transform 0.3s, background 0.3s;
}

.bnr_contractor__arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: translate(-70%, -50%) rotate(45deg);
}

/* ホバー */
@media (hover: hover) {
	.bnr_contractor a:hover {
		transform: translateY(-3px);
		box-shadow: 0 14px 34px rgba(80, 30, 0, 0.34);
	}

	.bnr_contractor a:hover .bnr_contractor__arrow {
		transform: translateX(4px);
		background: var(--bnr-green-dark);
	}
}

.bnr_contractor a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* ==========================================================================
   スマートフォン
   ========================================================================== */
@media screen and (max-width: 767px) {
	.bnr_contractor {
		max-width: none;
		margin-top: 15px;
	}

	.bnr_contractor a {
		gap: 12px;
		min-height: 76px;
		padding: 12px 14px 12px 12px;
		border-radius: 5px;
	}

	.bnr_contractor a::before {
		width: 5px;
	}

	.bnr_contractor__icon {
		width: 46px;
		height: 46px;
		margin-left: 4px;
	}

	.bnr_contractor__icon svg {
		width: 25px;
		height: 25px;
	}

	.bnr_contractor__label {
		margin-bottom: 4px;
		padding: 1px 8px;
		font-size: 10px;
	}

	.bnr_contractor__ttl {
		font-size: 16px;
		line-height: 1.35;
		letter-spacing: 0.04em;
	}

	.bnr_contractor__sub {
		font-size: 11px;
		letter-spacing: 0.02em;
	}

	.bnr_contractor__arrow {
		width: 30px;
		height: 30px;
	}

	.bnr_contractor__arrow::before {
		width: 7px;
		height: 7px;
	}
}
