/* ==========================================================================
   機電採用サイト PCモーションデモ
   基準幅: 1366px / vw比例リキッド
   ========================================================================== */

:root {
	--mech-design: 1366;
	--mech-navy: #1e2e49;
	--mech-blue: #0088ff;
	--mech-blue-deep: #0066ff;
	--mech-works-bg: #0080ff;
	--mech-mint: #00ffcc;
	--mech-cyan: #7ad7ff;
	--mech-white: #ffffff;
}

body.is-mechanic {
	min-width: 1180px;
	background: var(--mech-white);
	color: var(--mech-navy);
	font-family: "Noto Sans JP", "Inter", sans-serif;
	overflow-x: hidden;
}

body.is-mechanic .over-clip {
	overflow: visible;
}

/* --------------------------------------------------------------------------
   Header（FV上に浮く）
   -------------------------------------------------------------------------- */
.l-mech-hd {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 50;
	pointer-events: none;
}

.l-mech-hd__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: calc(20 / 1366 * 100vw) calc(30 / 1366 * 100vw) 0;
}

.l-mech-hd__logo {
	display: flex;
	align-items: center;
	gap: calc(16 / 1366 * 100vw);
	background: var(--mech-white);
	border-radius: 0 0 calc(16 / 1366 * 100vw) 0;
	padding: calc(18 / 1366 * 100vw) calc(24 / 1366 * 100vw) calc(18 / 1366 * 100vw) calc(20 / 1366 * 100vw);
	pointer-events: auto;
}

.l-mech-hd__logo a {
	display: block;
	line-height: 0;
}

.l-mech-hd__logo img {
	display: block;
	width: calc(180 / 1366 * 100vw);
	height: auto;
}

.l-mech-hd__label {
	font-size: calc(14 / 1366 * 100vw);
	font-weight: 700;
	color: var(--mech-navy);
	white-space: nowrap;
	letter-spacing: 0.04em;
}

.l-mech-hd__entry {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: calc(12 / 1366 * 100vw);
	min-width: calc(196 / 1366 * 100vw);
	height: calc(59 / 1366 * 100vw);
	padding: 0 calc(28 / 1366 * 100vw);
	border-radius: calc(12 / 1366 * 100vw);
	background: var(--mech-blue);
	color: var(--mech-white);
	font-size: calc(16 / 1366 * 100vw);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background 0.25s ease;
}

.l-mech-hd__entry:hover {
	background: var(--mech-blue-deep);
	color: var(--mech-white);
}

.l-mech-hd__entry-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mech-white);
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Common
   -------------------------------------------------------------------------- */
.p-mech {
	position: relative;
	isolation: isolate;
}

.p-mech-ttl {
	position: relative;
	display: inline-block;
	margin: 0;
	font-family: "Inter", "Noto Sans JP", sans-serif;
	font-size: calc(70 / 1366 * 100vw);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: var(--mech-navy);
}

.p-mech-ttl--light {
	color: var(--mech-white);
}

.p-mech-ttl__mark {
	position: absolute;
	width: calc(24 / 1366 * 100vw);
	height: calc(26 / 1366 * 100vw);
	background: var(--mech-blue);
	transform: skewX(-18deg);
}

.p-mech-ttl--light .p-mech-ttl__mark {
	background: rgba(255, 255, 255, 0.85);
}

.p-mech-ttl__mark--tl {
	top: calc(-4 / 1366 * 100vw);
	left: calc(-10 / 1366 * 100vw);
}

.p-mech-ttl__mark--br {
	right: calc(-14 / 1366 * 100vw);
	bottom: calc(-6 / 1366 * 100vw);
}

.p-mech-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: calc(12 / 1366 * 100vw);
	min-width: calc(189 / 1366 * 100vw);
	height: calc(52 / 1366 * 100vw);
	padding: 0 calc(36 / 1366 * 100vw);
	border-radius: 999px;
	font-size: calc(16 / 1366 * 100vw);
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.p-mech-btn:hover {
	opacity: 0.85;
}

.p-mech-btn--light {
	background: var(--mech-white);
	color: var(--mech-navy);
}

.p-mech-btn--primary {
	background: var(--mech-blue);
	color: var(--mech-white);
}

.p-mech-btn__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.js-character-point {
	position: absolute;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   FV
   -------------------------------------------------------------------------- */
.p-mech-fv {
	position: relative;
	width: 100%;
	height: calc(768 / 1366 * 100vw);
	min-height: 560px;
	overflow: hidden;
	isolation: isolate;
}

.p-mech-fv__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.p-mech-fv__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.p-mech-fv__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.22);
	pointer-events: none;
}

.p-mech-fv__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.p-mech-fv__contents {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: flex-end;
	padding: 0 0 calc(90 / 1366 * 100vw) calc(89 / 1366 * 100vw);
	pointer-events: none;
}

.p-mech-fv__catch {
	color: var(--mech-white);
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.p-mech-fv__catch-main {
	display: flex;
	align-items: center;
	gap: calc(18 / 1366 * 100vw);
	margin: 0 0 calc(8 / 1366 * 100vw);
	font-weight: 900;
	line-height: 1;
}

.p-mech-fv__catch-kin {
	font-size: calc(88 / 1366 * 100vw);
	letter-spacing: 0.02em;
}

.p-mech-fv__catch-x {
	display: inline-flex;
	width: calc(52 / 1366 * 100vw);
	height: calc(52 / 1366 * 100vw);
}

.p-mech-fv__catch-x svg {
	width: 100%;
	height: 100%;
}

.p-mech-fv__catch-en {
	font-family: "Inter", sans-serif;
	font-size: calc(80 / 1366 * 100vw);
	letter-spacing: -0.02em;
}

.p-mech-fv__catch-sub {
	margin: 0;
	font-size: calc(48 / 1366 * 100vw);
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: 0.04em;
}

.p-mech-fv__infra {
	position: relative;
	display: inline-block;
	color: #fff;
	text-shadow: none;
}

/* スクリーンリーダー用。見た目は grain 側のテクスチャ塗り */
.p-mech-fv__infra-base {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Canvas ノイズを background-clip で文字塗り（字形は崩さない） */
.p-mech-fv__infra-grain {
	position: relative;
	display: inline-block;
	pointer-events: none;
	color: transparent;
	-webkit-text-fill-color: transparent;
	background-color: #fff;
	background-repeat: repeat;
	background-size: 48px 48px;
	-webkit-background-clip: text;
	background-clip: text;
}

.p-mech-fv .js-character-point[data-point="fv"] {
	right: calc(180 / 1366 * 100vw);
	bottom: calc(120 / 1366 * 100vw);
}

/* --------------------------------------------------------------------------
   MESSAGE
   -------------------------------------------------------------------------- */
.p-mech-message {
	position: relative;
	min-height: calc(900 / 1366 * 100vw);
	padding: calc(96 / 1366 * 100vw) calc(89 / 1366 * 100vw) calc(80 / 1366 * 100vw);
	overflow: visible;
	isolation: isolate;
}

.p-mech-message__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(90deg, rgba(0, 136, 255, 0.03) 0 1px, transparent 1px) 0 0 / calc(308 / 1366 * 100vw) 100%,
		#fff;
	pointer-events: none;
}

.p-mech-message__stage {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 58%;
	z-index: 3;
	pointer-events: none;
}

.p-mech-message__canvas {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	pointer-events: none;
}

.p-mech-message__contents {
	position: relative;
	z-index: 2;
	max-width: calc(594 / 1366 * 100vw);
}

.p-mech-message__lead {
	margin: calc(40 / 1366 * 100vw) 0 0;
	font-size: calc(40 / 1366 * 100vw);
	font-weight: 900;
	line-height: 1.45;
	letter-spacing: 0.04em;
	color: #111;
}

.p-mech-message__body {
	margin-top: calc(36 / 1366 * 100vw);
	font-size: calc(16 / 1366 * 100vw);
	line-height: 2;
	color: #333;
}

.p-mech-message__body p {
	margin: 0 0 0.4em;
}

.p-mech-message .js-character-point[data-point="message"] {
	right: calc(120 / 1366 * 100vw);
	top: 58%;
	bottom: auto;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.p-mech-gallery {
	position: relative;
	z-index: 2;
	padding: 0 0 calc(40 / 1366 * 100vw);
	margin-top: calc(-40 / 1366 * 100vw);
	overflow: hidden;
}

.p-mech-gallery__track {
	display: flex;
	gap: calc(40 / 1366 * 100vw);
	width: max-content;
	padding-left: calc(40 / 1366 * 100vw);
	transform: translateX(calc(-48 / 1366 * 100vw));
}

.p-mech-gallery__item {
	position: relative;
	margin: 0;
	width: calc(375 / 1366 * 100vw);
	height: calc(250 / 1366 * 100vw);
	border-radius: calc(15 / 1366 * 100vw);
	overflow: hidden;
	flex-shrink: 0;
}

.p-mech-gallery__item--2,
.p-mech-gallery__item--4 {
	margin-top: calc(40 / 1366 * 100vw);
}

.p-mech-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.p-mech-gallery__item--1 img { object-position: 12% 40%; }
.p-mech-gallery__item--2 img { object-position: 45% 55%; }
.p-mech-gallery__item--3 img { object-position: 78% 30%; }
.p-mech-gallery__item--4 img { object-position: 95% 70%; }

/* --------------------------------------------------------------------------
   WORKS
   -------------------------------------------------------------------------- */
.p-mech-works {
	position: relative;
	/* 初期は白。JSのScrollTriggerで青へ */
	background-color: #ffffff;
	padding: calc(100 / 1366 * 100vw) calc(117 / 1366 * 100vw) calc(120 / 1366 * 100vw);
	color: var(--mech-navy);
	overflow: hidden;
	isolation: isolate;
	transition: color 0.15s linear;
}

.p-mech-works.is-works-blue {
	color: var(--mech-white);
}

.p-mech-works .p-mech-ttl--light {
	color: inherit;
}

.p-mech-works .p-mech-ttl__mark {
	background: var(--mech-blue);
}

.p-mech-works.is-works-blue .p-mech-ttl__mark {
	background: rgba(255, 255, 255, 0.85);
}

.p-mech-works .p-mech-btn--light {
	background: var(--mech-blue);
	color: var(--mech-white);
}

.p-mech-works.is-works-blue .p-mech-btn--light {
	background: var(--mech-white);
	color: var(--mech-navy);
}

/* 旧ウォッシュは使わない（残っていても干渉しないよう無効化） */
.p-mech-works__wash {
	display: none !important;
}

.p-mech-works__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: calc(56 / 1366 * 100vw);
}

.p-mech-works__media {
	position: relative;
	margin: 0;
	width: calc(566 / 1366 * 100vw);
	flex-shrink: 0;
}

.p-mech-works__media img {
	display: block;
	width: 100%;
	height: calc(350 / 1366 * 100vw);
	object-fit: cover;
	border-radius: calc(20 / 1366 * 100vw);
}

.p-mech-works .js-character-point[data-point="works"] {
	left: calc(-10 / 1366 * 100vw);
	top: calc(40 / 1366 * 100vw);
}

.p-mech-works__text {
	padding-top: calc(8 / 1366 * 100vw);
	flex: 1;
}

.p-mech-works__lead {
	margin: calc(36 / 1366 * 100vw) 0 0;
	font-size: calc(28 / 1366 * 100vw);
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: 0.04em;
}

.p-mech-works__list {
	margin: calc(28 / 1366 * 100vw) 0 calc(40 / 1366 * 100vw);
	padding: 0;
	list-style: none;
	font-size: calc(16 / 1366 * 100vw);
	line-height: 2.2;
}

.p-mech-works__list li::before {
	content: "・";
}

/* --------------------------------------------------------------------------
   STORY（静的）
   -------------------------------------------------------------------------- */
.p-mech-story {
	position: relative;
	padding: calc(120 / 1366 * 100vw) calc(93 / 1366 * 100vw) calc(80 / 1366 * 100vw);
	overflow: hidden;
	background: #fff;
}

.p-mech-story__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: calc(40 / 1366 * 100vw);
	position: relative;
	z-index: 2;
}

.p-mech-story__text {
	width: calc(489 / 1366 * 100vw);
	flex-shrink: 0;
}

.p-mech-story__lead {
	margin: calc(36 / 1366 * 100vw) 0 0;
	font-size: calc(28 / 1366 * 100vw);
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: #111;
}

.p-mech-story__sub {
	margin: calc(20 / 1366 * 100vw) 0 calc(36 / 1366 * 100vw);
	font-size: calc(16 / 1366 * 100vw);
	line-height: 2;
	color: #444;
}

.p-mech-story__media {
	margin: 0;
	width: calc(683 / 1366 * 100vw);
	flex-shrink: 0;
}

.p-mech-story__media img {
	display: block;
	width: 100%;
	height: calc(483 / 1366 * 100vw);
	object-fit: cover;
	object-position: 70% 40%;
	border-radius: calc(20 / 1366 * 100vw);
}

.p-mech-story__map {
	position: relative;
	margin-top: calc(-80 / 1366 * 100vw);
	z-index: 1;
	pointer-events: none;
}

.p-mech-story__map img {
	display: block;
	width: calc(1100 / 1366 * 100vw);
	max-width: none;
	margin: 0 auto;
	opacity: 0.85;
}

.p-mech-story .js-character-point[data-point="story"] {
	left: 54%;
	top: 38%;
}

/* --------------------------------------------------------------------------
   Character（fixed + ScrollTriggerで移動）
   -------------------------------------------------------------------------- */
.p-mech-character {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 40;
	width: calc(140 / 1366 * 100vw);
	height: auto;
	pointer-events: none;
	opacity: 0; /* JS準備後に表示 */
	will-change: transform;
}

.p-mech-character__svg {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 8px 16px rgba(0, 80, 160, 0.25));
}
