:root {
	--reason-hero-radius: var(--radius-md);
}

.sec-hero__img--commitment {
	border-radius: var(--radius-md);
	border: 4px solid var(--color-primary);
}

/* ========================================
   スプラッシュスクリーン
======================================== */
.splash {
	position: fixed;
	inset: 0;
	z-index: 10000; /* header(1300)、page-transition(99998)の間 */
	background: #0f3d6e;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	transition:
		opacity 0.6s ease,
		visibility 0.6s ease;
}

.splash.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* ――― 照明イラスト（蔵字入り電球） ――― */
.splash__light {
	position: relative;
	width: clamp(160px, 40vw, 260px);
	height: auto;
}

.splash__light-svg {
	width: 100%;
	height: auto;
	display: block;
	overflow: visible;
	/* PNGが現れるタイミングでSVGをフェードアウト */
	animation: splashSvgHide 0.3s ease 1.8s forwards;
}

/* light.svg描画完了後にフェードインするPNG */
.splash__light-png {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	opacity: 0;
	animation: splashPngIn 0.5s ease 1.8s forwards;
}

@keyframes splashPngIn {
	to {
		opacity: 1;
	}
}

/* 描画アニメーション共通 */
.splash-draw {
	fill: none;
	stroke: rgba(255, 255, 255, 0.9);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
}

/* 1. 外円：同時スタート */
.splash-draw--circle {
	animation: splashPathDraw 1s ease 0.3s forwards;
}

/* 2. 蔵字・電球内部：同時スタート */
.splash-draw--char {
	animation: splashPathDraw 1.5s ease 0.3s forwards;
}

/* 3. ソケット：同時スタート */
.splash-draw--socket {
	animation: splashPathDraw 1s ease 0.3s forwards;
}

@keyframes splashPathDraw {
	to {
		stroke-dashoffset: 0;
	}
}

/* ――― 会社名ロゴ（電球と同時に描画 → 完了後にカラーPNG） ――― */
.splash__logo {
	position: relative;
	width: clamp(200px, 52vw, 340px);
	height: auto;
}

.splash__logo-svg {
	width: 100%;
	height: auto;
	display: block;
	/* PNGが現れるタイミングでSVGをフェードアウト */
	animation: splashSvgHide 0.3s ease 1.8s forwards;
}

.splash__logo-svg path,
.splash__logo-svg rect,
.splash__logo-svg line {
	fill: none;
	stroke: rgba(255, 255, 255, 0.85);
	stroke-width: 1.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 2000;
	stroke-dashoffset: 2000;
	animation: splashLogoDraw 1.5s ease 0.3s forwards;
}

@keyframes splashLogoDraw {
	to {
		stroke-dashoffset: 0;
	}
}

/* logo SVG描画完了後にフェードインするPNG */
.splash__logo-png {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	opacity: 0;
	animation: splashPngIn 0.5s ease 1.8s forwards;
}

/* splash-activeのときbodyスクロール禁止（html要素も含めiOS対応） */
html:has(body.splash-active) {
	overflow: hidden;
}

body.splash-active {
	overflow: hidden !important;
	touch-action: none;
}

.splash__icon-wrap {
	position: relative;
	width: clamp(180px, 55vw, 300px);
	/* viewBox 0 0 320 320 でコンテンツはy=100-215付近のみ
	   下の空白（105/320 ≈ 33%分）をmargin-bottomで相殺 */
	margin-bottom: calc(-0.30 * clamp(180px, 55vw, 300px));
}

.splash__icon-svg {
	width: 100%;
	height: auto;
	display: block;
	/* PNGが現れるタイミングでSVGをフェードアウト */
	animation: splashSvgHide 0.3s ease 0.85s forwards;
}

/* 描画完了後に重ねるカラーPNG */
.splash__icon-png {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	animation: splashFadeIn 0.5s ease 0.85s forwards;
}

/* stroke-dashoffset 描画アニメーション共通（全パス同時開始） */
.sp {
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	stroke-linecap: round;
	stroke-linejoin: round;
	animation: splashDraw 0.7s ease 0.1s forwards;
}
.sp--w { stroke: rgba(255, 255, 255, 0.85); }
.sp--y { stroke: rgba(254, 209, 2, 0.85); }
/* 全パス同じ遅延—delayクラスは不要になるが CSS属性側で上書きしないよう残す */
.sp--d0,
.sp--d1,
.sp--d2,
.sp--d3,
.sp--d4 { animation-delay: 0.1s; }

@keyframes splashDraw {
	to { stroke-dashoffset: 0; }
}

.splash__bar-wrap {
	width: clamp(120px, 35vw, 200px);
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 9999px;
	overflow: hidden;
	margin: 0 auto;
	opacity: 0;
	animation: splashFadeIn 0.3s ease 1.4s forwards;
}

.splash__bar {
	height: 100%;
	background: #fed102;
	border-radius: 9999px;
	width: 0%;
	animation: splashBarFill 2.0s ease 1.4s forwards;
}

@keyframes splashSvgHide {
	to { opacity: 0; }
}

@keyframes splashFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes splashBarFill {
	0%   { width: 0%; }
	100% { width: 100%; }
}

/* ========================================
   会社概要セクション - 親要素
======================================== */
.about-section-wrapper {
	background: #fff3c4;
	padding: 4rem 0;
	position: relative;
}

@media (min-width: 768px) {
	.about-section-wrapper {
		padding: 6rem 0;
	}
}

/* ========================================
   会社概要セクション - 画像
======================================== */
.section-block--about {
	position: relative;
	padding-top: 22.5%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

@media (min-width: 768px) {
	.section-block--about::before,
	.section-block--about::after {
		display: none;
	}
}

.about-images {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	z-index: 1;
}

.about-images__wrapper {
	position: relative;
	aspect-ratio: 16 / 6;
	width: 100%;
}

@media (min-width: 768px) {
	.about-images__wrapper {
		aspect-ratio: 16 / 5;
	}
}

.about-images__left,
.about-images__right {
	position: absolute;
	top: 0;
	width: 49%;
	height: 100%;
	object-fit: cover;
}

.about-images__left {
	left: 0;
	border-top: 4px solid #ffffff;
	border-right: 4px solid #ffffff;
	border-bottom: 4px solid #ffffff;
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-images__right {
	right: 0;
	border-top: 4px solid #ffffff;
	border-left: 4px solid #ffffff;
	border-bottom: 4px solid #ffffff;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* ========================================
   アイコンスライダー
======================================== */
.icon-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 3rem 0;
	background: transparent;
}

.icon-slider__track {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.icon-slider__inner {
	display: flex;
	align-items: center;
	gap: 3rem;
	width: max-content;
	animation: iconSliderScroll 100s linear infinite;
}

@keyframes iconSliderScroll {
	from {
		transform: translateX(-50%);
	}

	to {
		transform: translateX(0);
	}
}

.icon-slider__item {
	flex-shrink: 0;
	width: 96px;
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.3);
	border: 2px dashed rgba(232, 180, 0, 0.3);
	border-radius: var(--radius-md);
	position: relative;
}

@media (min-width: 576px) {
	.icon-slider__item {
		width: 104px;
		height: 104px;
	}
}

@media (min-width: 768px) {
	.icon-slider__item {
		width: 112px;
		height: 112px;
	}
}

.icon-slider__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* セパレーターテキスト */
.icon-slider__sep {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	font-family: var(--font-en);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-primary);
	opacity: 0.5;
	white-space: nowrap;
	padding: 0 0.5rem;
}

@media (max-width: 767px) {
	.icon-slider__sep {
		font-size: 1.5rem;
	}
}

/* アニメーション無効化 */
@media (prefers-reduced-motion: reduce) {
	.icon-slider__inner {
		animation: none;
	}
}

/* ========================================
   アイコンスライダー SVG描画アニメーション
======================================== */
.icon-slider__svg {
	width: 100%;
	height: 100%;
}

.draw-path {
	fill: none;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	opacity: 1;
	visibility: hidden;
	transition:
		stroke-dashoffset 0.8s ease,
		visibility 0s;
}

.draw-path--yellow {
	stroke: #fed102;
}

.draw-path--blue {
	stroke: #0a4a7a;
}

/* リセット中（transitionを即座に無効化） */
.js-icon-draw.is-resetting .draw-path {
	transition: none !important;
	stroke-dashoffset: 100 !important;
	visibility: hidden !important;
}

/* アイコン描画アニメーション: 画面内に入ったら描画 */
.js-icon-draw.is-drawn .draw-path {
	stroke-dashoffset: 0;
	opacity: 1;
	visibility: visible;
}

/* ========================================
   コンセント区切りアニメーション
======================================== */
.outlet-divider {
	width: 100%;
	overflow: hidden;
	background: linear-gradient(to bottom, #fff3c4 50%, #ffffff 50%);
	height: 56px;
	display: flex;
	justify-content: center;
	align-items: center;
}

@media (min-width: 768px) {
	.outlet-divider {
		height: 72px;
	}
}

.outlet-divider__plug {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-right: -20px;
	transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateX(-100vw);
}

@media (min-width: 768px) {
	.outlet-divider__plug {
		margin-right: -32px;
	}

	.outlet-divider__socket {
		margin-left: -32px;
	}
}

.outlet-divider__plug::before {
	content: '';
	display: block;
	width: 100vw;
	height: 4px;
	background: #0a4a7a;
	flex-shrink: 0;
}

.outlet-divider__socket {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: -20px;
	transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateX(100vw);
}

.outlet-divider__socket::after {
	content: '';
	display: block;
	width: 100vw;
	height: 4px;
	background: #0a4a7a;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.outlet-divider__plug::before,
	.outlet-divider__socket::after {
		height: 6px;
	}
}

.outlet-divider__shape {
	height: 56px;
	width: auto;
	display: block;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.outlet-divider__shape {
		height: 72px;
	}
}

.outlet-divider--white {
	background: linear-gradient(to bottom, #fff3c4 50%, #0a4a7a 50%);
}

.outlet-divider--white .outlet-divider__plug::before,
.outlet-divider--white .outlet-divider__socket::after {
	background: #e8b400;
}

.outlet-divider.is-active .outlet-divider__plug,
.outlet-divider.is-active .outlet-divider__socket {
	transform: translateX(0);
}

.outlet-divider.is-active.is-disconnected .outlet-divider__plug {
	transform: translateX(-60px);
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.outlet-divider.is-active.is-disconnected .outlet-divider__socket {
	transform: translateX(60px);
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
	.outlet-divider.is-active.is-disconnected .outlet-divider__plug {
		transform: translateX(-80px);
	}

	.outlet-divider.is-active.is-disconnected .outlet-divider__socket {
		transform: translateX(80px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.outlet-divider__plug,
	.outlet-divider__socket {
		transition: none;
		transform: translateX(0);
	}
}

/* ========================================
   ニュース・お知らせ（トップ）
======================================== */
.news-bar {
	background: var(--color-dark);
	padding: 0.875rem 0;
}

.news-bar__inner {
	max-width: var(--container-max-pc);
	margin: 0 auto;
	padding: 0 1.25rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

@media (min-width: 768px) {
	.news-bar__inner {
		padding: 0 2rem;
		flex-wrap: nowrap;
	}
}

.news-bar__label {
	font-family: var(--font-en);
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	background: var(--color-primary);
	color: var(--color-dark);
	padding: 0.25rem 0.625rem;
	border-radius: 2px;
	white-space: nowrap;
	flex-shrink: 0;
}

.news-bar__text {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.75);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ========================================
   会社概要セクション - 親要素
======================================== */
.section-block--about {
	position: relative;
	padding-top: 22.5%;
}

/* ========================================
   会社概要イントロ
   bg: 白（#FFFFFF）
======================================== */
.about-intro {
	position: relative;
	background: #ffffff;
	border-radius: 9999px;
	max-width: 720px;
	margin: 0 auto;
	padding: 5rem 2.5rem;
	z-index: 2;
	overflow: visible;
}

@media (min-width: 1024px) {
	.about-intro::before,
	.about-intro::after {
		content: 'kurayoshidenkou';
		position: absolute;
		top: 50%;
		font-family: var(--font-en);
		font-size: clamp(2rem, 3vw, 2.75rem);
		font-weight: 700;
		letter-spacing: 0.25em;
		text-transform: uppercase;
		color: #e8b400;
		opacity: 0.3;
		writing-mode: vertical-rl;
		pointer-events: none;
	}

	.about-intro::before {
		left: calc((720px - 100vw) / 4);
		transform: translateX(-50%) translateY(-50%);
	}

	.about-intro::after {
		right: calc((720px - 100vw) / 4);
		transform: translateX(50%) translateY(-50%) rotate(180deg);
	}
}

@media (min-width: 576px) {
	.about-intro {
		padding: 5rem 4.5rem;
	}
}

@media (min-width: 768px) {
	.about-intro {
		padding: 6rem 5rem;
	}
}

.about-intro .section-container {
	display: block;
}

.about-intro__body .about-intro__keyword {
	border-bottom: 2px dashed var(--color-primary);
	padding-bottom: 1px;
	font-weight: 600;
}

/* ロゴ画像 */
.about-intro__logo {
	display: block;
	width: 120px;
	height: auto;
	margin: 0 auto 2rem;
}

@media (min-width: 768px) {
	.about-intro__logo {
		width: 160px;
	}
}

/* テキストエリア */
.about-intro__text {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.about-intro__en {
	display: block;
	font-family: var(--font-en);
	font-size: var(--title-en-sp);
	color: var(--color-primary);
	/* ラベルサイズなのでしっかり見える色に */
	line-height: 1;
	letter-spacing: var(--title-en-tracking);
	font-weight: 700;
	margin-bottom: 0.375rem;
	/* ゴースト重ね用の負値を廃止 */
	text-align: center;
}

@media (min-width: 768px) {
	.about-intro__en {
		font-size: var(--title-en-pc);
	}
}

.about-intro__title {
	font-size: var(--title-ja-sp);
	font-weight: 700;
	color: var(--color-text);
	letter-spacing: 0.06em;
	margin-bottom: 1.5rem;
	line-height: 1.4;
	text-align: center;
}

@media (min-width: 768px) {
	.about-intro__title {
		font-size: var(--title-ja-pc);
	}
}

.about-intro__body {
	font-size: var(--body-font-size-sp);
	color: var(--color-text);
	line-height: var(--body-line-height-sp);
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.about-intro__body {
		font-size: var(--body-font-size-pc);
		line-height: var(--body-line-height-pc);
	}
}

/* ========================================
   事業内容イントロ
   bg: 薄黄（#FFF3C4）→ 黒背景なし
======================================== */
.service-intro {
	background: var(--color-primary-light);
	position: relative;
	overflow: hidden;
	--pt: clamp(10rem, 28vw, 16rem);
	padding-top: var(--pt);
	padding-bottom: 4rem;
}

@media (min-width: 576px) {
	.service-intro {
		padding-bottom: 4.5rem;
	}
}

@media (min-width: 768px) {
	.service-intro {
		padding-bottom: 6rem;
	}
}

@media (min-width: 1024px) {
	.service-intro {
		padding-bottom: 6.5rem;
	}
}

.service-intro .section-container {
	position: relative;
	z-index: 1;
}

/* service装飾: section-containerを親要素としてpadding-top/2の位置に配置 */
@media (min-width: 768px) {
	.service-intro {
		--pt: 8rem;
	}
	.service-intro .section-container::before {
		content: 'service';
		position: absolute;
		top: calc(var(--pt) / -2);
		right: 0;
		transform: translateY(-150%);
		font-family: var(--font-en);
		font-size: clamp(2.5rem, 4vw, 4rem);
		font-weight: 700;
		letter-spacing: 0.15em;
		text-transform: uppercase;
		color: var(--color-primary);
		opacity: 0.3;
		pointer-events: none;
		line-height: 1;
	}
}

@media (min-width: 1024px) {
	.service-intro {
		--pt: 8.5rem;
	}
}

@media (min-width: 1200px) {
	.service-intro {
		--pt: 9rem;
	}
}

@media (min-width: 1440px) {
	.service-intro .section-container::before {
		transform: translateY(-75%);
	}
}

.service-intro__header {
	margin-bottom: var(--spacing-xl);
}

.service-intro__en {
	display: block;
	font-family: var(--font-en);
	font-size: var(--title-en-sp);
	color: var(--color-primary);
	line-height: 1;
	letter-spacing: var(--title-en-tracking);
	font-weight: 700;
}

@media (min-width: 768px) {
	.service-intro__en {
		font-size: var(--title-en-pc);
	}
}

.service-intro__title {
	font-size: var(--title-ja-sp);
	font-weight: 700;
	color: var(--color-text);
	/* 薄黄背景なので暗色 */
	letter-spacing: 0.06em;
	margin-top: 0.25rem;
}

@media (min-width: 768px) {
	.service-intro__title {
		font-size: var(--title-ja-pc);
	}
}

/* カードグリッド */
.service-intro__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	background: transparent;
}

@media (min-width: 1024px) {
	.service-intro__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

.service-card {
	background: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2.5rem 3rem;
	border-radius: 9999px;
	max-width: 420px;
	margin: 0 auto;
	transition:
		background-color 0.3s ease,
		transform 0.3s ease;
	cursor: pointer;
	overflow: hidden;
}

@media (min-width: 576px) {
	.service-card {
		max-width: 100%;
	}
}

@media (max-width: 575px) {
	.service-card {
		overflow: hidden;
		max-width: 320px;
	}
}

@media (min-width: 768px) {
	.service-card {
		padding: 3rem 2.5rem;
	}
}

/* 576px-1024px: 横並びレイアウト(左画像・右コンテンツ) */
@media (min-width: 576px) and (max-width: 1023px) {
	/* カード全体：横並び（左：円形画像 / 右：コンテンツ） */
	.service-card {
		flex-direction: row;
		text-align: left;
		padding: 2rem;
		align-items: center;
	}

	.service-card__image {
		margin-right: 1.5rem;
		margin-bottom: 0;
		align-self: center;
		flex-shrink: 0;
	}

	/* コンテンツエリア：flex縦並び
	   行1: タイトル行（アイコン左 + en/title右に縦積み）
	   行2: 説明文 */
	.service-card__content {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		align-items: flex-start;
		text-align: left;
		flex: 1;
		min-width: 0;
	}

	/* タイトル行：アイコン左 + en/titleグループ右に横並び */
	.service-card__content-text {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 0.75rem;
		width: 100%;
	}

	/* アイコン：content-textの先頭（左）に配置 */
	.service-card__icon {
		order: -1;
		flex-shrink: 0;
		font-size: 4rem;
		color: var(--color-primary);
		line-height: 1;
	}

	/* en と title を縦に積むラッパーとして機能させるため
	   content-text 内でアイコン以外の要素をまとめる */
	.service-card__en {
		display: block;
		margin-bottom: 0.1rem;
	}

	.service-card__title {
		display: block;
		line-height: 1.3;
	}

	/* en と title を縦積みにするためのラッパーをCSSで疑似的に作る:
	   content-text は flex row（アイコン | テキスト群）
	   テキスト群（en + title）は flex column で縦積み */
	.service-card__en,
	.service-card__title {
		flex-shrink: 1;
	}

	/* 説明文：content の直下・タイトル行の下 */
	.service-card__text {
		width: 100%;
		margin-top: 0;
	}
}

.service-card:hover {
	background: var(--color-bg-warm);
	transform: translateY(-8px);
}

/* 画像エリア - 円形 */
.service-card__image {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--color-border);
	margin-bottom: 1.5rem;
	/* 575px以下：縦並びなので必要 */
	flex-shrink: 0;
	border: 3px solid #0a4a7a;
}

@media (min-width: 576px) and (max-width: 1023px) {
	.service-card__image {
		margin-bottom: 0;
	}
}

@media (min-width: 768px) {
	.service-card__image {
		width: 220px;
		height: 220px;
	}
}

@media (min-width: 1024px) {
	.service-card__image {
		margin-bottom: 2rem;
	}
}

.service-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

/* 外灯照明カード（3枚目）: 左上に焦点 */
.service-intro__grid .service-card:nth-child(3) .service-card__image img {
	object-position: left top;
}

.service-card:hover .service-card__image img {
	transform: scale(1.1);
}

/* コンテンツエリア - 中央揃え */
.service-card__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
}

/* テキストラッパー（576未満・1024以上はcontentと同じフロー） */
.service-card__content-text {
	display: contents;
}

/* アイコン：全ブレークポイントで上に配置 */
.service-card__icon {
	font-size: 2rem;
	color: var(--color-primary);
	line-height: 1;
	order: -1;
}

.service-card__icon-img {
	width: 3rem;
	height: 3rem;
	object-fit: contain;
	display: block;
}

.service-card__icon-img--02 {
	scale: 1.05;
}

.service-card__en {
	font-family: var(--font-en);
	font-size: 0.6875rem;
	color: var(--color-text-light);
	/* 薄黄背景用 */
	letter-spacing: 0.12em;
}

.service-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--color-text);
	letter-spacing: 0.04em;
}

@media (min-width: 768px) {
	.service-card__title {
		font-size: 1.125rem;
	}
}

.service-card__text {
	font-size: 0.95rem;
	color: var(--color-text-mid);
	line-height: 1.7;
}

.service-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-primary);
	letter-spacing: 0.06em;
	margin-top: 0.5rem;
}

.service-card__more i {
	transition: transform 0.3s ease;
}

.service-card:hover .service-card__more i {
	transform: rotate(45deg) translate(2px, -2px);
}

.service-intro__footer {
	margin-top: var(--spacing-lg);
	text-align: center;
}

/* ========================================
   施工事例イントロ
   bg: 青（#0a4a7a）
======================================== */
.section-block--works {
	background: #0a4a7a;
	padding: 4rem 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media (min-width: 576px) {
	.section-block--works {
		padding: 4.5rem 0;
	}
}

@media (min-width: 768px) {
	.section-block--works {
		padding: 6rem 0;
		gap: 2.5rem;
	}
}

@media (min-width: 1024px) {
	.section-block--works {
		padding: 6.5rem 0;
	}
}

/* タイトルカード（上部・中央） */
.works-intro__header {
	border: 4px solid #0a4a7a;
	padding: 0 1.5rem;
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.works-intro__header {
		padding: 0 2rem;
	}
}

.works-intro__en {
	display: block;
	font-family: var(--font-en);
	font-size: var(--title-en-sp);
	color: var(--color-white);
	line-height: 1;
	letter-spacing: var(--title-en-tracking);
	font-weight: 700;
	margin-bottom: 0.375rem;
}

.works-intro__en::first-letter {
	color: var(--color-primary);
}

@media (min-width: 768px) {
	.works-intro__en {
		font-size: var(--title-en-pc);
	}
}

.works-intro__title {
	font-size: var(--title-ja-sp);
	font-weight: 700;
	color: var(--color-white);
	letter-spacing: 0.06em;
	margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
	.works-intro__title {
		font-size: var(--title-ja-pc);
	}
}

.works-intro__text {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.6;
	margin: 0;
}

@media (min-width: 768px) {
	.works-intro__text {
		font-size: 1rem;
	}
}

/* グリッド */
.works-intro__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 576px) {
	.works-intro__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.works-intro__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.works-card {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-bg);
	box-shadow: var(--shadow-sm);
	aspect-ratio: 4 / 3;
	display: block;
	text-decoration: none;
}

.works-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
	transition: opacity 0.3s ease;
}

.works-card:hover::after {
	opacity: 0.8;
}

.works-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
	background: var(--color-border);
}

.works-card:hover .works-card__img {
	transform: scale(1.05);
}

.works-card__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem;
	z-index: 1;
	transform: translateY(4px);
	transition: transform 0.3s ease;
}

.works-card:hover .works-card__caption {
	transform: translateY(0);
}

.works-card__cat {
	font-family: var(--font-en);
	font-size: 0.625rem;
	color: var(--color-primary);
	letter-spacing: 0.12em;
	display: block;
	margin-bottom: 0.25rem;
}

.works-card__title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--color-white);
	letter-spacing: 0.04em;
}

/* placeholder（画像未設定時） */
.works-card--placeholder {
	background: var(--color-border);
}

.works-intro__footer {
	margin-top: var(--spacing-lg);
	text-align: center;
}

@media (min-width: 768px) {
	.works-intro__footer {
		text-align: right;
	}
}

/* ========================================
   当社のこだわりイントロ
   bg: 明るい薄黄（#FFFADC）
======================================== */
.sec--reason {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

@media (min-width: 576px) {
	.sec--reason {
		padding-top: 4.5rem;
		padding-bottom: 4.5rem;
	}
}

@media (min-width: 768px) {
	.sec--reason {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
}

@media (min-width: 1024px) {
	.sec--reason {
		padding-top: 6.5rem;
		padding-bottom: 6.5rem;
	}
}

.reason-intro {
	background: var(--color-bg-yellow);
}

/* .reason-intro__inner → .section-container で共通化 */

.reason-intro__header {
	margin-bottom: var(--spacing-md);
}

.reason-intro__en {
	display: block;
	font-family: var(--font-en);
	font-size: var(--title-en-sp);
	color: var(--color-primary);
	/* ラベルサイズなのでしっかり見える色に */
	line-height: 1;
	letter-spacing: var(--title-en-tracking);
	font-weight: 700;
	margin-bottom: 0.375rem;
}

@media (min-width: 768px) {
	.reason-intro__en {
		font-size: var(--title-en-pc);
	}
}

.reason-intro__title {
	font-size: var(--title-ja-sp);
	font-weight: 700;
	color: var(--color-text);
	letter-spacing: 0.06em;
}

@media (min-width: 768px) {
	.reason-intro__title {
		font-size: var(--title-ja-pc);
	}
}

/* こだわりリスト（常に縦並び） */
.reason-intro__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media (min-width: 768px) {
	.reason-intro__list {
		gap: 2.5rem;
	}
}

.reason-card {
	display: flex;
	flex-direction: row;
	gap: 1.5rem;
	align-items: center;
	border: none;
	border-radius: var(--radius-md);
	padding: 1.5rem;
	transition: transform 0.3s ease;
	position: relative;
	background-color: transparent;
}

/* 四隅のコーナーボーダー（span要素） */
.reason-card__corner {
	position: absolute;
	width: 64px;
	height: 64px;
	transition:
		width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
		height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 左上 (top-left) */
.reason-card__corner--tl {
	top: 0;
	left: 0;
	border-top-left-radius: 8px;
	/* 角丸 */
	border-top: 3px solid var(--color-primary);
	border-left: 3px solid var(--color-primary);
}

@media (min-width: 1024px) {
	.reason-card__corner--tl {
		border-top: 4px solid var(--color-primary);
		border-left: 4px solid var(--color-primary);
	}
}

/* 右上 (top-right) */
.reason-card__corner--tr {
	top: 0;
	right: 0;
	border-top-right-radius: 8px;
	/* 角丸 */
	border-top: 3px solid var(--color-primary);
	border-right: 3px solid var(--color-primary);
}

@media (min-width: 1024px) {
	.reason-card__corner--tr {
		border-top: 4px solid var(--color-primary);
		border-right: 4px solid var(--color-primary);
	}
}

/* 左下 (bottom-left) */
.reason-card__corner--bl {
	bottom: 0;
	left: 0;
	border-bottom-left-radius: 8px;
	/* 角丸 */
	border-bottom: 3px solid var(--color-primary);
	border-left: 3px solid var(--color-primary);
}

@media (min-width: 1024px) {
	.reason-card__corner--bl {
		border-bottom: 4px solid var(--color-primary);
		border-left: 4px solid var(--color-primary);
	}
}

/* 右下 (bottom-right) */
.reason-card__corner--br {
	bottom: 0;
	right: 0;
	border-bottom-right-radius: 8px;
	/* 角丸 */
	border-bottom: 3px solid var(--color-primary);
	border-right: 3px solid var(--color-primary);
}

@media (min-width: 1024px) {
	.reason-card__corner--br {
		border-bottom: 4px solid var(--color-primary);
		border-right: 4px solid var(--color-primary);
	}
}

/* アニメーション完了時: L字が伸びて四辺が繋がる */
.reason-card.is-connected .reason-card__corner {
	width: 50%;
	height: 50%;
}

@media (min-width: 768px) {
	.reason-card {
		padding: 2rem;
		gap: 2rem;
	}
}

/* 左側：テキストエリア */
.reason-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	position: relative;
}

/* 右上アイコン */
.reason-card__content-icon {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

/* 右側：画像エリア */
.reason-card__image {
	flex-shrink: 0;
	width: 35%;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--color-border);
}

@media (min-width: 768px) {
	.reason-card__image {
		width: 40%;
	}
}

.reason-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ========================================
   こだわりカード：768px未満は縦並び（content上 / image下）
======================================== */
@media (max-width: 767px) {
	.reason-card {
		flex-direction: column;
		align-items: stretch;
	}

	.reason-card__image {
		width: 100%;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 575px) {
	.reason-card__image {
		aspect-ratio: 16 / 10;
	}
}

/* 番号 */
.reason-card__num {
	font-family: var(--font-en);
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1;
	opacity: 0.6;
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 0;
}

.reason-card__num-point {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	line-height: 1;
}

.reason-card__title {
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 700;
	color: var(--color-text);
	letter-spacing: 0.04em;
}

.reason-card__text {
	font-size: clamp(0.95rem, 1.5vw, 1.05rem);
	color: var(--color-text-light);
	line-height: var(--body-line-height-sp);
}

@media (min-width: 768px) {
	.reason-card__text {
		line-height: var(--body-line-height-pc);
	}
}

.reason-intro__footer {
	margin-top: var(--spacing-lg);
	text-align: center;
}

/* ========================================
   お悩み導入 / 施工事例共通ラッパー
======================================== */
.section-block--trouble,
.section-block--works {
	position: relative;
	overflow: visible;
}

.section-block--trouble {
	background: var(--color-bg-yellow);
}

.trouble-intro__lead {
	text-align: center;
	margin-bottom: var(--spacing-md);
}

.trouble-intro__lead-sub {
	display: block;
	font-size: 0.75rem;
	color: var(--color-text-light);
	letter-spacing: 0.1em;
	margin-bottom: 0.375rem;
}

.trouble-intro__lead-main {
	font-size: var(--title-ja-sp);
	font-weight: 700;
	color: var(--color-dark);
	letter-spacing: 0.06em;
	margin: 0;
}

@media (min-width: 768px) {
	.trouble-intro__lead-main {
		font-size: var(--title-ja-pc);
	}
}

/* カードグリッド */
.trouble-intro__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
	margin-bottom: var(--spacing-lg);
}

@media (min-width: 576px) {
	.trouble-intro__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* お悩みカード */
.trouble-card {
	background: var(--color-white);
	border: 2px solid #0a4a7a;
	border-radius: var(--radius-md);
	padding: 0.875rem 0.875rem;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.trouble-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.trouble-card__icon {
	width: 2rem;
	height: 2rem;
	background: var(--color-primary-light);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9375rem;
	color: var(--color-primary);
	flex-shrink: 0;
}

.trouble-card__check {
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid #0a4a7a;
	border-radius: 3px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0a4a7a;
	font-size: 0.75rem;
	transform: translateY(2px);
}

.trouble-card__divider {
	height: 1px;
	background: #d0e2ef;
	border: none;
	margin: 0;
}

.trouble-card__text {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.55;
	margin: 0;
}

/* CTAバー */
.trouble-intro__cta {
	background: #0a4a7a;
	border: 2px solid #0a4a7a;
	border-radius: var(--radius-md);
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.875rem;
	max-width: 720px;
	margin: 0 auto;
	justify-content: space-between;
}

.trouble-intro__cta-arrow {
	font-size: 1rem;
	color: var(--color-white);
	flex-shrink: 0;
	transition: 0.3s ease;
}

.trouble-intro__cta:hover .trouble-intro__cta-arrow {
	color: var(--color-primary);
	transform: translateX(4px);
}

.trouble-intro__cta-body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.trouble-intro__cta-label {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 0.08em;
}

.trouble-intro__cta-main {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--color-white);
	letter-spacing: 0.04em;
}

@media (min-width: 576px) {
	.trouble-intro__cta-main {
		font-size: 1.05rem;
	}
}

.trouble-intro__cta-main em {
	font-style: normal;
	color: var(--color-primary);
}

/* ========================================
   374px未満：スプラッシュ（position:fixed）の補正
======================================== */
@media (max-width: 374px) {
	.splash {
		width: 375px;
		height: 150dvh;
	}
}

/* ========================================
   セクションヒーロー（画像 + オーバーラップカード）
   共通コンポーネント
======================================== */
.sec-hero {
	position: relative;
	z-index: 5;
}

.sec-hero__img-wrap {
	border-top: 4px solid #0a4a7a;
	border-bottom: 4px solid #0a4a7a;
	overflow: hidden;
	width: 100%;
	position: relative;
	/* position:absolute の親要素として必要 */
	aspect-ratio: 16 / 7;
	min-height: 280px;
}

@media (min-width: 768px) {
	.sec-hero__img-wrap {
		aspect-ratio: 2 / 1;
	}
}

@media (min-width: 1024px) {
	.sec-hero__img-wrap {
		aspect-ratio: 16 / 6;
	}
}

@media (min-width: 1200px) {
	.sec-hero__img-wrap {
		aspect-ratio: 16 / 5;
	}
}

@media (min-width: 1440px) {
	.sec-hero__img-wrap {
		aspect-ratio: 20 / 6;
	}
}

.sec-hero__img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-color: #1a3a5c;
	display: block;
}

/* カード共通 */
.sec-hero__card {
	position: absolute;
	top: 85%;
	background: var(--color-white);
	border: 4px solid #0a4a7a;
	padding: 1.25rem 1.5rem;
	width: 90%;
	box-shadow: none;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

@media (min-width: 768px) {
	.sec-hero__card {
		top: 75%;
		width: 40%;
	}
}

/* カード内ボタン */
.sec-hero__card-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	align-self: flex-end;
	margin-top: auto;
	padding-top: 0.625rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #0a4a7a;
	letter-spacing: 0.06em;
	text-decoration: none;
	border-top: 1px solid rgba(10, 74, 122, 0.2);
	width: 100%;
	justify-content: flex-end;
	transition: gap 0.2s ease;
}

.sec-hero__card-btn:hover {
	gap: 0.625rem;
}

/* 右配置（右端が直角） */
.sec-hero__card--right {
	right: 0;
	border-radius: var(--radius-lg) 0 0 var(--radius-lg);
	border-right: none;
	border-width: 4px;
}

/* 左配置（左端が直角） */
.sec-hero__card--left {
	left: 0;
	border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
	border-left: none;
	border-width: 4px;
}

/* 中央配置（全角丸） */
.sec-hero__card--center {
	left: 50%;
	transform: translateX(-50%);
	border-radius: var(--radius-lg);
	text-align: center;
	white-space: nowrap;
}

.sec-hero__card-en {
	display: block;
	font-family: var(--font-en);
	font-size: var(--title-en-sp);
	color: var(--color-primary);
	letter-spacing: var(--title-en-tracking);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
	.sec-hero__card-en {
		font-size: var(--title-en-pc);
	}
}

.sec-hero__card-en::first-letter {
	color: #378add;
}

.sec-hero__card-title {
	font-size: var(--title-ja-sp);
	font-weight: 700;
	color: #0a4a7a;
	letter-spacing: 0.06em;
	line-height: 1.3;
	margin-bottom: 0.25rem;
	margin-top: 0;
}

@media (min-width: 768px) {
	.sec-hero__card-title {
		font-size: var(--title-ja-pc);
	}
}

.sec-hero__card-keyword {
	border-bottom: 2px dashed var(--color-primary);
	padding-bottom: 1px;
	font-weight: 600;
}

.sec-hero__card-text {
	font-size: 0.95rem;
	color: var(--color-text-mid);
	margin: 0;
}

@media (min-width: 768px) {
	.sec-hero__card-text {
		font-size: 1.05rem;
	}
}

/* 各ヒーロー画像バック */
.trouble-intro__hero-img {
	background-image: url('../images/sp-fv-image01.webp');
}

/* ========================================
   お悩みヒーロー 左右分割
======================================== */
.trouble-hero-split {
	position: absolute;
	/* 親要素いっぱいに広がる */
	inset: 0;
	display: flex;
	width: 100%;
	height: 100%;
}

.trouble-hero-split__half {
	position: relative;
	flex: 1;
	overflow: hidden;
}

/* ========================================
   事業内容ヒーロー 左右分割（troubleと同じ構造）
======================================== */
.service-hero-split {
	position: absolute;
	inset: 0;
	display: flex;
	width: 100%;
	height: 100%;
}

.service-hero-split__half {
	position: relative;
	flex: 1;
	overflow: hidden;
}

/* 中央に仕切り線（上下ボーダーと同じ太さ・色） */
.trouble-hero-split__half--left {
	border-right: 4px solid #0a4a7a;
}

.trouble-hero-split__img {
	position: absolute;
	inset: 0;
	/* 上下左右すべてを親に合わせる */
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center top;
}

.trouble-hero-split__img--l1 {
	background-image: url('../images/trouble-left01.webp');
	opacity: 1;
	animation: none;
}

.trouble-hero-split__img--l2 {
	background-image: url('../images/trouble-left02.webp');
	opacity: 0;
	animation: none;
}

/* right:作業員(左と同じタイミング) */
.trouble-hero-split__img--r1 {
	background-image: url('../images/trouble-right01.webp');
	opacity: 1;
	animation: none;
}

.trouble-hero-split__img--r2 {
	background-image: url('../images/trouble-right02.webp');
	opacity: 0;
	animation: none;
}

/* ボルトアニメ完了後に画像アニメ開始 */
.sec-hero.is-images-active .trouble-hero-split__img--l1 {
	animation: troubleFade 8s ease-in-out -1s infinite;
}

.sec-hero.is-images-active .trouble-hero-split__img--l2 {
	animation: troubleFade 8s ease-in-out 3s infinite;
}

.sec-hero.is-images-active .trouble-hero-split__img--r1 {
	animation: troubleFade 8s ease-in-out -1s infinite;
}

.sec-hero.is-images-active .trouble-hero-split__img--r2 {
	animation: troubleFade 8s ease-in-out 3s infinite;
}

/* service-hero-split の画像（troubleと同じ構造） */
.service-hero-split__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center top;
}

.service-hero-split__img--l1 {
	background-image: url('../images/service-left01.webp');
	opacity: 1;
	animation: none;
}

.service-hero-split__img--l2 {
	background-image: url('../images/service-left02.webp');
	opacity: 0;
	animation: none;
}

.service-hero-split__img--r1 {
	background-image: url('../images/service-right01.webp');
	opacity: 1;
	animation: none;
}

.service-hero-split__img--r2 {
	background-image: url('../images/service-right02.webp');
	opacity: 0;
	animation: none;
}

/* ボルトアニメ完了後に画像アニメ開始 */
.sec-hero.is-images-active .service-hero-split__img--l1 {
	animation: serviceFade 8s ease-in-out -1s infinite;
}

.sec-hero.is-images-active .service-hero-split__img--l2 {
	animation: serviceFade 8s ease-in-out 3s infinite;
}

.sec-hero.is-images-active .service-hero-split__img--r1 {
	animation: serviceFade 8s ease-in-out -1s infinite;
}

.sec-hero.is-images-active .service-hero-split__img--r2 {
	animation: serviceFade 8s ease-in-out 3s infinite;
}

@keyframes troubleFade {
	0% {
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	50% {
		opacity: 1;
	}

	70% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

/* アクセシビリティ:アニメーション無効化 */
@media (prefers-reduced-motion: reduce) {
	.trouble-hero-split__img--l2,
	.trouble-hero-split__img--r2 {
		display: none;
	}

	.trouble-hero-split__img--l1,
	.trouble-hero-split__img--r1 {
		animation: none;
		opacity: 1;
	}
}

/* ========================================
   事業内容ヒーロー 左右分割
======================================== */
.service-hero-split {
	display: flex;
	width: 100%;
	height: 100%;
}

.service-hero-split__half {
	position: relative;
	flex: 1;
	overflow: hidden;
}

/* 中央に仕切り線（上下ボーダーと同じ太さ・色） */
.service-hero-split__half--left {
	border-right: 4px solid #0a4a7a;
}

.service-hero-split__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center top;
}

/* 左:サービス現場（is-images-active 付与後にアニメ開始） */
.service-hero-split__img--l1 {
	background-image: url('../images/service-left01.webp');
	opacity: 1;
	animation: none;
}

.service-hero-split__img--l2 {
	background-image: url('../images/service-left02.webp');
	opacity: 0;
	animation: none;
}

/* 右:サービス現場（is-images-active 付与後にアニメ開始） */
.service-hero-split__img--r1 {
	background-image: url('../images/service-right01.webp');
	opacity: 1;
	animation: none;
}

.service-hero-split__img--r2 {
	background-image: url('../images/service-right02.webp');
	opacity: 0;
	animation: none;
}

@keyframes serviceFade {
	0% {
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	50% {
		opacity: 1;
	}

	70% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

/* アクセシビリティ:アニメーション無効化 */
@media (prefers-reduced-motion: reduce) {
	.service-hero-split__img--l2,
	.service-hero-split__img--r2 {
		display: none;
	}

	.service-hero-split__img--l1,
	.service-hero-split__img--r1 {
		animation: none;
		opacity: 1;
	}
}

.service-intro__hero-img {
	background-image: url('../images/sp-fv-image01.webp');
	filter: brightness(0.85) hue-rotate(10deg);
}

.works-intro__hero-img {
	background-image: url('../images/works-01.webp');
}

/* sec--trouble: .secのpaddingを上書き */
.sec--trouble {
	--pt: clamp(10rem, 28vw, 16rem);
	padding-top: var(--pt);
	padding-bottom: 4rem;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* needs装飾: section-containerを親要素としてpadding-top/2の位置に配置 */
.sec--trouble .section-container {
	position: relative;
}

@media (min-width: 768px) {
	.sec--trouble {
		--pt: 8rem;
	}
	.sec--trouble .section-container::before {
		content: 'needs';
		position: absolute;
		top: calc(var(--pt) / -2);
		left: 0;
		transform: translateY(-150%);
		font-family: var(--font-en);
		font-size: clamp(2.5rem, 4vw, 4rem);
		font-weight: 700;
		letter-spacing: 0.15em;
		text-transform: uppercase;
		color: var(--color-primary);
		opacity: 0.3;
		pointer-events: none;
		line-height: 1;
	}
}

@media (min-width: 1024px) {
	.sec--trouble {
		--pt: 8.5rem;
	}
}

@media (min-width: 1200px) {
	.sec--trouble {
		--pt: 9rem;
	}
}

@media (min-width: 1440px) {
	.sec--trouble .section-container::before {
		transform: translateY(-75%);
	}
}

@media (min-width: 576px) {
	.sec--trouble {
		padding-bottom: 4.5rem;
	}
}

@media (min-width: 768px) {
	.sec--trouble {
		padding-top: 8rem;
		padding-bottom: 6rem;
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

@media (min-width: 1024px) {
	.sec--trouble {
		padding-top: 8.5rem;
		padding-bottom: 6.5rem;
	}
}

@media (min-width: 1200px) {
	.sec--trouble {
		padding-top: 9rem;
	}
}

/* service-intro / works-intro: sec-hero の下マージンをスーパー上段paddingで吸収 */
.service-intro .sec-hero {
	margin-bottom: 0;
}

/* スライダーラッパー（画面幅いっぱい + sec-heroと同じアスペクト比） */
.works-intro__slider {
	width: 100%;
	margin: 0;
	border-top: 4px solid rgba(255, 255, 255, 0.3);
	border-bottom: 4px solid rgba(255, 255, 255, 0.3);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	min-height: 280px;
}

@media (min-width: 576px) {
	.works-intro__slider {
		aspect-ratio: 2 / 1;
	}
}

@media (min-width: 1024px) {
	.works-intro__slider {
		aspect-ratio: 2 / 1;
	}
}

@media (min-width: 1200px) {
	.works-intro__slider {
		aspect-ratio: 3 / 1;
	}
}

/* ナビゲーション */
.works-intro__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

@media (min-width: 768px) {
	.works-intro__nav {
		padding: 0 2rem;
		gap: 1.5rem;
	}
}

/* ナビゲーションボタン（共通btnクラスを使用） */
.works-nav-btn {
	border: none;
	background: none;
	padding: 0;
}

.works-nav-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.works-nav-btn:disabled:hover {
	transform: none;
}

/* works-intro__footer */
.works-intro__footer {
	background: var(--color-bg-warm);
	padding: var(--spacing-md) 1.25rem;
	text-align: right;
}

@media (min-width: 768px) {
	.works-intro__footer {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* ========================================
   施工事例 デュオグリッド（sec-hero内 2枚並べ）
======================================== */
.works-duo-grid {
	display: grid;
	grid-template-columns: 1fr;
	width: 100%;
	height: 100%;
}

@media (min-width: 576px) {
	.works-duo-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.works-duo-grid__item {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100%;
}

/* 576px未満は2枚目を非表示 */
.works-duo-grid__item + .works-duo-grid__item {
	display: none;
}

@media (min-width: 576px) {
	.works-duo-grid__item + .works-duo-grid__item {
		display: block;
		border-left: 2px solid rgba(255, 255, 255, 0.2);
	}
}

.works-duo-grid__item .works-slider__item-link {
	display: block;
	width: 100%;
	height: 100%;
}

.works-duo-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.works-duo-grid__item:hover img {
	transform: scale(1.04);
}

.works-duo-grid__item--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1a3a5c;
}

/* ========================================
   施工事例スライダーラッパー（画面幅いっぱい + sec-heroと同じアスペクト比）
======================================== */
.works-intro__slider {
	width: 100%;
	margin: 0;
	border-top: 4px solid rgba(255, 255, 255, 0.3);
	border-bottom: 4px solid rgba(255, 255, 255, 0.3);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	min-height: 280px;
	position: relative;
}

@media (min-width: 576px) {
	.works-intro__slider {
		aspect-ratio: 2 / 1;
	}
}

@media (min-width: 1024px) {
	.works-intro__slider {
		aspect-ratio: 2 / 1;
	}
}

@media (min-width: 1200px) {
	.works-intro__slider {
		aspect-ratio: 3 / 1;
	}
}

/* ========================================
   施工事例 自動スライダー（sec-hero内、脇ほる）
======================================== */
.works-auto-slider {
	position: absolute;
	/* 親要素いっぱいに広がる */
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: #1a3a5c;
}

.works-auto-slider__track {
	display: flex;
	height: 100%;
	will-change: transform;
}

/* 各アイテム：SPは全幅（1枚表示）、576以上は50％（2枚表示）、1200以上は33.333%（3枚表示） */
.works-auto-slider__item {
	flex: 0 0 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

@media (min-width: 576px) {
	.works-auto-slider__item {
		flex: 0 0 50%;
	}

	/* 2枚表示時の境界線 */
	.works-auto-slider__item + .works-auto-slider__item {
		border-left: 4px solid rgba(255, 255, 255, 0.3);
	}
}

@media (min-width: 1200px) {
	.works-auto-slider__item {
		flex: 0 0 33.333%;
	}

	/* 3枚表示時の境界線 */
	.works-auto-slider__item + .works-auto-slider__item {
		border-left: 4px solid rgba(255, 255, 255, 0.3);
	}
}

.works-auto-slider__item .works-slider__item-link {
	display: block;
	width: 100%;
	height: 100%;
}

.works-auto-slider__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.4s ease;
}

/* グラデーションオーバーレイ（施工事例ページと同じ調） */
.works-auto-slider__item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(232, 180, 0, 0.1) 0%,
		rgba(232, 180, 0, 0.03) 40%,
		transparent 70%
	);
	z-index: 1;
	pointer-events: none;
}

.works-auto-slider__item:hover img {
	transform: scale(1.04);
}

/* 空状態 */
.works-auto-slider__item--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1a3a5c;
}

/* ========================================
   施工事例スライダー
======================================== */
.works-slider {
	position: relative;
	overflow: hidden;
	margin-bottom: var(--spacing-lg);
}

.works-slider__track {
	display: flex;
	gap: 1rem;
	will-change: transform;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SP: 1枚 */
.works-slider__track .works-slider__item {
	flex: 0 0 100%;
}

/* 576px～: 2枚 */
@media (min-width: 576px) {
	.works-slider__track .works-slider__item {
		flex: 0 0 calc(50% - 0.5rem);
	}
}

/* 1024px～: 3枚 */
@media (min-width: 1024px) {
	.works-slider__track {
		gap: 1.25rem;
	}

	.works-slider__track .works-slider__item {
		flex: 0 0 calc(33.333% - 0.875rem);
	}
}

.works-slider__item {
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background-color: var(--color-border);
	position: relative;
	border: 2px solid #0a4a7a;
	border-radius: var(--radius-md);
}

@media (min-width: 768px) {
	.works-slider__item {
		aspect-ratio: 4 / 3;
	}
}

.works-slider__item-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	color: inherit;
}

.works-slider__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.works-slider__item:hover img {
	transform: scale(1.04);
}

.works-slider__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0.625rem 1rem;
	background: rgba(10, 74, 122, 0.8);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	transition: background 0.3s ease;
	z-index: 2;
}

.works-slider__caption-title {
	font-size: 0.875rem;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.04em;
	line-height: 1.4;
	flex: 1;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.works-slider__caption-arrow {
	color: var(--color-primary);
	flex-shrink: 0;
	font-size: 0.75rem;
	transition: transform 0.3s ease;
}

.works-slider__item-link:hover .works-slider__caption {
	background: rgba(10, 74, 122, 0.95);
}

.works-slider__item-link:hover .works-slider__caption-arrow {
	transform: rotate(45deg) translate(2px, -2px);
}

/* ドットインジケーター */
.works-slider__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.works-slider__dot {
	width: 28px;
	height: 8px;
	border-radius: 4px;
	background: rgba(10, 74, 122, 0.2);
	border: none;
	cursor: pointer;
	padding: 0;
	transition:
		background 0.3s ease,
		width 0.3s ease;
}

.works-slider__dot.is-active {
	background: #0a4a7a;
	width: 40px;
}

/* ========================================
   施工事例 空状態
======================================== */
.works-slider__item--empty {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.works-empty {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.works-empty__msg {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	text-align: center;
	color: #0a4a7a;
	font-size: 0.975rem;
	font-weight: 700;
}

@media (min-width: 768px) {
	.works-empty__msg {
		font-size: 1rem;
	}
}

.works-empty__icon {
	color: var(--color-primary);
	flex-shrink: 0;
}

/* ========================================
   sec-hero 電流ワイプオーバーレイ
======================================== */

/* オーバーレイ全体：画像の上に重ねる */
.sec-hero__bolt-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
}

/* オーバーレイ本体は常に表示（青背景で画像を隠す）
   SVGラインはHTML側の visibility:hidden で制御 */

/* 青背景 */
.sec-hero__bolt-bg {
	position: absolute;
	inset: 0;
	background: #0a4a7a;
	transition: none;
}

/* 電流が走り終わった後に青背景をフェードアウト */
.sec-hero__bolt-overlay.is-done .sec-hero__bolt-bg {
	transition: opacity 0.4s ease 0.1s;
	opacity: 0;
}

/* SVG電流ライン */
.sec-hero__bolt-svg {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 100%;
	height: 76px;
	z-index: 2;
	opacity: 0.75;
}

/* ltr: 左から右へ */
.sec-hero__bolt-overlay[data-direction='ltr'] .sec-hero__bolt-svg {
	transform-origin: left center;
}

/* rtl: 右から左へ（パスはJS側で逆順生成） */

/* ワイプレイヤー：青背景の上に重ね、右から左に縮まり画像を露出する */
.sec-hero__bolt-wipe {
	position: absolute;
	inset: 0;
	background: #0a4a7a;
	transform-origin: right center;
	z-index: 1;
}

/* rtlのワイプは逆方向 */
.sec-hero__bolt-overlay[data-direction='rtl'] .sec-hero__bolt-wipe {
	transform-origin: left center;
}

/* ========================================
   アニメーション履歴
クラス is-ready が付いたら履歴開始
======================================== */

/* 「1」ライン描画：JSの stroke-dashoffset transition で制御 */
.sec-hero__bolt-line {
	stroke-linejoin: round;
	stroke-linecap: round;
}

.sec-hero__bolt-overlay.is-ready .sec-hero__bolt-svg {
	opacity: 1;
}

/* 「2」 is-ready クラス付与後（描画完了済み）にワイプ開始 */
.sec-hero__bolt-overlay.is-ready .sec-hero__bolt-wipe {
	animation: boltWipe 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.55s forwards;
}

@keyframes boltWipe {
	from {
		transform: scaleX(1);
	}

	to {
		transform: scaleX(0);
	}
}

/* rtlのワイプは反対方向 */
.sec-hero__bolt-overlay[data-direction='rtl'].is-ready .sec-hero__bolt-wipe {
	animation: boltWipeRtl 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.55s forwards;
}

@keyframes boltWipeRtl {
	from {
		transform: scaleX(1);
	}

	to {
		transform: scaleX(0);
	}
}

/* 「3」アニメ完了後に電流SVGをフェードアウト */
.sec-hero__bolt-overlay.is-done .sec-hero__bolt-svg {
	transition: opacity 0.3s ease;
	opacity: 0;
}

/* accessibility: アニメーション無効化 */
@media (prefers-reduced-motion: reduce) {
	.sec-hero__bolt-overlay {
		display: none;
	}
}
