/* ==========================================================================
   M.A.Space Theme — main.css
   ========================================================================== */

/* ========== 1. CSS Variables ========== */
:root {
	/* Base */
	--bg: #0a0a0a;
	--bg-soft: #141414;
	--bg-elev: #1a1a1a;
	--fg: #ffffff;
	--fg-dim: #cfcfcf;
	--fg-muted: #8a8a8a;
	--fg-faint: #555;
	--line: rgba(255, 255, 255, 0.12);
	--line-strong: rgba(255, 255, 255, 0.25);

	/* Logo brand palette — equalizer spectrum */
	--brand-1: #ec4899;  /* pink */
	--brand-2: #a855f7;  /* purple */
	--brand-3: #6366f1;  /* indigo */
	--brand-4: #14b8a6;  /* teal */
	--brand-5: #10b981;  /* emerald */

	/* Accent (primary) */
	--accent: #a855f7;
	--accent-bright: #c084fc;
	--accent-dark: #7c3aed;
	--accent-soft: rgba(168, 85, 247, 0.15);

	/* Brand gradient */
	--brand-gradient: linear-gradient(90deg,
		#ec4899 0%,
		#a855f7 25%,
		#6366f1 50%,
		#14b8a6 75%,
		#10b981 100%);
	--brand-gradient-soft: linear-gradient(90deg,
		rgba(236, 72, 153, 0.18) 0%,
		rgba(168, 85, 247, 0.18) 25%,
		rgba(99, 102, 241, 0.18) 50%,
		rgba(20, 184, 166, 0.18) 75%,
		rgba(16, 185, 129, 0.18) 100%);

	/* Light section */
	--light-bg: #f6f5f1;
	--light-bg-soft: #eeede7;
	--light-fg: #0a0a0a;
	--light-fg-muted: #6b6b6b;
	--light-line: rgba(10, 10, 10, 0.12);

	/* Fonts */
	--ff-display: 'Inter', 'SF Mono', Menlo, sans-serif;
	--ff-mincho: 'Shippori Mincho B1', serif;
	--ff-sans: 'Inter', 'Noto Sans JP', -apple-system, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
	--ff-mono: 'Inter', 'SF Mono', Menlo, monospace;

	/* Layout */
	--container-max: 1320px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 4px;

	/* Motion */
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur-fast: 0.3s;
	--dur: 0.6s;
	--dur-slow: 1.1s;

	/* Header */
	--header-h: 80px;
}

@media (max-width: 768px) {
	:root {
		--header-h: 64px;
	}
}

/* ========== 2. Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--ff-sans);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: 0.04em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--accent-bright); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, dl, dt, dd { margin: 0; }

::selection { background: var(--accent); color: #000; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; width: auto; height: auto;
	clip: auto; padding: 8px 16px; background: var(--accent); color: #000;
	z-index: 10000; font-weight: 600;
}

/* ========== 3. Layout utilities ========== */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.section {
	position: relative;
	padding-block: clamp(80px, 12vw, 160px);
}
.section--dark {
	background: #050505;
	color: var(--fg);
}

/* Noise overlay (stage grain effect) */
.noise-overlay {
	position: fixed; inset: 0;
	pointer-events: none;
	z-index: 9;
	opacity: 0.035;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Stage lights — follow scroll + continuous pulse (brand gradient) */
.stage-lights {
	position: fixed;
	inset: -15vh 0;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}
.stage-light {
	position: absolute;
	display: block;
	width: 70vw;
	height: 70vw;
	max-width: 900px;
	max-height: 900px;
	border-radius: 50%;
	mix-blend-mode: screen;
	filter: blur(110px);
	opacity: 0.15;
	will-change: transform, opacity;
	animation: lightPulse 9s ease-in-out infinite alternate;
}
.stage-light--1 {
	top: -20%; left: -15%;
	background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0.35) 40%, transparent 72%);
	animation-duration: 8s;
	animation-delay: 0s;
}
.stage-light--2 {
	top: 10%; right: -20%;
	background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0.35) 40%, transparent 72%);
	animation-duration: 10s;
	animation-delay: -2.5s;
}
.stage-light--3 {
	top: 45%; left: -10%;
	background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0.35) 40%, transparent 72%);
	animation-duration: 12s;
	animation-delay: -5s;
}
.stage-light--4 {
	top: 55%; right: -10%;
	background: radial-gradient(circle, #14b8a6 0%, rgba(20, 184, 166, 0.35) 40%, transparent 72%);
	animation-duration: 9.5s;
	animation-delay: -7s;
}
.stage-light--5 {
	top: 80%; left: 20%;
	background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0.3) 40%, transparent 72%);
	animation-duration: 11s;
	animation-delay: -3.5s;
	opacity: 0.12;
}
@keyframes lightPulse {
	0%   { opacity: 0.08; }
	50%  { opacity: 0.20; }
	100% { opacity: 0.10; }
}
@media (prefers-reduced-motion: reduce) {
	.stage-light { animation: none; opacity: 0.22; }
}
@media (max-width: 768px) {
	.stage-lights { display: none; }
}

/* Chasing spotlight — follows cursor + scroll with spring ease */
.spotlight-follow {
	position: fixed;
	top: -360px;
	left: -360px;
	width: 720px;
	height: 720px;
	pointer-events: none;
	z-index: 3;
	border-radius: 50%;
	filter: blur(55px);
	mix-blend-mode: screen;
	opacity: 0;
	will-change: transform, opacity;
	transition: opacity 0.8s var(--ease-out);
	background:
		radial-gradient(circle at center,
			rgba(236, 72, 153, 0.14) 0%,
			rgba(168, 85, 247, 0.12) 20%,
			rgba(99, 102, 241, 0.08) 40%,
			rgba(20, 184, 166, 0.04) 60%,
			transparent 72%);
	animation: spotlightFollowPulse 5s ease-in-out infinite alternate;
}
.spotlight-follow.is-active { opacity: 0.7; }
@keyframes spotlightFollowPulse {
	0%   { filter: blur(50px) hue-rotate(0deg); }
	100% { filter: blur(40px) hue-rotate(35deg); }
}
@media (max-width: 900px) {
	.spotlight-follow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.spotlight-follow { display: none; }
}

/* Keep page backgrounds above the lights so overlapping images still show through subtly */
.hero, .section, .site-header, .site-footer, .preloader, .noise-overlay { position: relative; z-index: auto; }
.site-main { position: relative; z-index: 2; }
.site-header { z-index: 1000; }
.preloader { z-index: 10000; }

/* ========== 4. Section head ========== */
.section-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: clamp(48px, 6vw, 80px);
}
.section-num {
	font-family: var(--ff-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.3em;
	color: var(--accent);
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.section-num::before {
	content: "";
	display: inline-block;
	width: 28px; height: 1px;
	background: currentColor;
}
/* Section-specific accent colors (equalizer spectrum) */
#about .section-num,
#about .section-title__en { color: var(--brand-1); }
#service .section-num,
#service .section-title__en { color: var(--brand-2); }
#works .section-num,
#works .section-title__en { color: var(--brand-3); }
#flow .section-num,
#flow .section-title__en { color: var(--brand-4); }
#company .section-num,
#company .section-title__en { color: var(--brand-5); }
#contact .section-num { color: var(--brand-1); }
#contact .section-title__en {
	background: var(--brand-gradient);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: gradientShift 6s ease-in-out infinite alternate;
}
.section-title__en { color: inherit; }
.section-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: clamp(12px, 2vw, 24px);
	font-weight: 400;
	line-height: 1;
}
.section-title__en {
	font-family: var(--ff-display);
	font-size: clamp(44px, 7vw, 96px);
	font-weight: 800;
	letter-spacing: -0.03em;
	font-style: italic;
	line-height: 0.95;
}
.section-title__jp {
	font-family: var(--ff-mincho);
	font-size: clamp(13px, 1.2vw, 16px);
	letter-spacing: 0.3em;
	color: var(--fg-muted);
	writing-mode: horizontal-tb;
}
.section-lead {
	font-family: var(--ff-mincho);
	font-size: clamp(16px, 1.4vw, 20px);
	color: var(--fg-dim);
	letter-spacing: 0.1em;
	margin-top: 8px;
}

.section-lead__note {
	font-size: clamp(11px, 1vw, 13px);
	color: var(--fg-dim);
	opacity: 0.7;
	letter-spacing: 0.08em;
	margin-top: 6px;
}

/* ========== 5. Buttons ========== */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 28px;
	font-family: var(--ff-sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1em;
	border: 1px solid currentColor;
	border-radius: 999px;
	cursor: pointer;
	transition:
		color var(--dur-fast) var(--ease-out),
		background-color var(--dur-fast) var(--ease-out),
		transform var(--dur-fast) var(--ease-out),
		border-color var(--dur-fast) var(--ease-out);
	overflow: hidden;
	isolation: isolate;
}
.btn::before {
	content: "";
	position: absolute; inset: 0;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--ease-out);
	z-index: -1;
	border-radius: inherit;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: scaleX(1); }
.btn__label { position: relative; }
.btn__arrow {
	display: inline-block;
	transition: transform var(--dur-fast) var(--ease-out);
	position: relative;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { color: var(--fg); }
.btn--primary:hover { color: var(--bg); }
.btn--ghost { color: var(--fg-muted); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--bg); }
.btn--accent {
	color: #fff;
	background: var(--brand-gradient);
	background-size: 200% 100%;
	border-color: transparent;
	animation: gradientShift 6s ease-in-out infinite alternate;
	transition: opacity 0.35s var(--ease-out),
		transform var(--dur-fast) var(--ease-out);
}
.btn--accent::before { display: none; }
.btn--accent:hover {
	color: #fff;
	opacity: 0.78;
	border-color: transparent;
}

.btn--lg { padding: 18px 36px; font-size: 15px; }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }

/* ========== 6. Preloader ========== */
.preloader {
	position: fixed; inset: 0;
	z-index: 10000;
	background: var(--bg);
	pointer-events: none;
}
.preloader__inner {
	position: relative;
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	flex-direction: column;
	gap: 32px;
}
.preloader__curtain {
	position: absolute; top: 0; bottom: 0;
	width: 50%;
	background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
	z-index: -1;
	transition: transform 1s var(--ease-in-out);
}
.preloader__curtain--left { left: 0; transform-origin: left; }
.preloader__curtain--right { right: 0; transform-origin: right; }

.preloader__logo {
	display: flex;
	align-items: baseline;
	gap: 2px;
	font-family: var(--ff-display);
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 800;
	letter-spacing: -0.02em;
	opacity: 0;
	animation: logoFade 0.8s var(--ease-out) 0.2s forwards;
}
.preloader__logo-dot:nth-of-type(1) { color: var(--brand-1); }
.preloader__logo-dot:nth-of-type(2) { color: var(--brand-4); }
.preloader__logo-word {
	font-family: var(--ff-sans);
	font-weight: 300;
	font-size: 0.5em;
	letter-spacing: 0.3em;
	margin-left: 8px;
}
.preloader__bar {
	width: 160px;
	height: 1px;
	background: var(--line);
	overflow: hidden;
	opacity: 0;
	animation: logoFade 0.6s var(--ease-out) 0.5s forwards;
}
.preloader__bar-fill {
	display: block;
	width: 100%; height: 100%;
	background: var(--brand-gradient);
	transform: scaleX(0);
	transform-origin: left;
	animation: barFill 1.3s var(--ease-in-out) 0.8s forwards;
}
@keyframes logoFade { to { opacity: 1; } }
@keyframes barFill { to { transform: scaleX(1); } }

.preloader.is-done { transition: opacity 0.5s var(--ease-out) 0.3s; opacity: 0; }
.preloader.is-done .preloader__curtain--left { transform: translateX(-100%); }
.preloader.is-done .preloader__curtain--right { transform: translateX(100%); }
.preloader.is-hidden { display: none; }

/* ========== 7. Header / Navigation ========== */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	padding: 20px var(--gutter);
	transition: background-color var(--dur-fast) var(--ease-out), padding var(--dur-fast) var(--ease-out), backdrop-filter var(--dur-fast) var(--ease-out);
}
.site-header.is-scrolled {
	background: rgba(10, 10, 10, 0.8);
	backdrop-filter: blur(12px) saturate(1.2);
	-webkit-backdrop-filter: blur(12px) saturate(1.2);
	padding-block: 14px;
	border-bottom: 1px solid var(--line);
}
/* SP menu open: drop backdrop-filter so nav's position:fixed resolves to viewport (not header) */
body.is-locked .site-header,
body.is-locked .site-header.is-scrolled {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	background: transparent;
	border-bottom: none;
}
.site-header__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--fg);
	z-index: 2;
}
.site-header__logo-img {
	display: block;
	height: 36px;
	width: auto;
}
@media (max-width: 768px) {
	.site-header__logo-img { height: 28px; }
}
.logo-text {
	display: inline-flex;
	align-items: baseline;
	font-family: var(--ff-display);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1;
}
.logo-text__mark { color: var(--fg); }
.logo-text__name {
	font-family: var(--ff-sans);
	font-weight: 300;
	font-size: 14px;
	letter-spacing: 0.4em;
	margin-left: 4px;
}

.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav__inner { display: contents; }
.site-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
}
.site-nav__list li a {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 8px 14px;
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--fg-dim);
	font-weight: 500;
}
.nav-num {
	font-family: var(--ff-mono);
	font-size: 10px;
	color: var(--accent);
	font-weight: 400;
}
.nav-label { font-family: var(--ff-display); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.site-nav__list li a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 2px;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s var(--ease-out);
}
.site-nav__list li a:hover::after,
.site-nav__list li a.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-nav__list li a:hover { color: var(--fg); }

/* Per-section nav colors (match section accent) */
.site-nav__list li:nth-child(1) .nav-num { color: var(--brand-1); }
.site-nav__list li:nth-child(2) .nav-num { color: var(--brand-2); }
.site-nav__list li:nth-child(3) .nav-num { color: var(--brand-3); }
.site-nav__list li:nth-child(4) .nav-num { color: var(--brand-4); }
.site-nav__list li:nth-child(5) .nav-num { color: var(--brand-5); }
.site-nav__list li:nth-child(6) .nav-num {
	background: var(--brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.site-nav__list li:nth-child(1) a::after { background: var(--brand-1); }
.site-nav__list li:nth-child(2) a::after { background: var(--brand-2); }
.site-nav__list li:nth-child(3) a::after { background: var(--brand-3); }
.site-nav__list li:nth-child(4) a::after { background: var(--brand-4); }
.site-nav__list li:nth-child(5) a::after { background: var(--brand-5); }
.site-nav__list li:nth-child(6) a::after { background: var(--brand-gradient); }
.site-nav__list li:nth-child(1) a:hover .nav-label,
.site-nav__list li:nth-child(1) a.is-active .nav-label { color: var(--brand-1); }
.site-nav__list li:nth-child(2) a:hover .nav-label,
.site-nav__list li:nth-child(2) a.is-active .nav-label { color: var(--brand-2); }
.site-nav__list li:nth-child(3) a:hover .nav-label,
.site-nav__list li:nth-child(3) a.is-active .nav-label { color: var(--brand-3); }
.site-nav__list li:nth-child(4) a:hover .nav-label,
.site-nav__list li:nth-child(4) a.is-active .nav-label { color: var(--brand-4); }
.site-nav__list li:nth-child(5) a:hover .nav-label,
.site-nav__list li:nth-child(5) a.is-active .nav-label { color: var(--brand-5); }
.site-nav__list li:nth-child(6) a:hover .nav-label,
.site-nav__list li:nth-child(6) a.is-active .nav-label {
	background: var(--brand-gradient);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.site-nav__list li a .nav-label { transition: color 0.3s var(--ease-out); }

.site-nav__cta { display: flex; align-items: center; gap: 20px; }
.nav-tel { display: none; }
@media (min-width: 1200px) {
	.nav-tel { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1.1; color: var(--fg); }
	.nav-tel__icon { display: inline-flex; align-items: center; justify-content: center; color: var(--fg-dim); transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
	.nav-tel:hover .nav-tel__icon { color: var(--accent); transform: rotate(-12deg); }
	.nav-tel__num { font-family: var(--ff-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--fg); }
}

.menu-toggle { display: none; }

@media (max-width: 1023px) {
	.site-nav {
		position: fixed;
		inset: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: calc(var(--header-h) + 16px) 24px 24px;
		background: #0a0a0a;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
		overflow-y: auto;
		overflow-x: hidden;
		z-index: 999;
	}
	.site-nav.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: opacity 0.35s var(--ease-out), visibility 0s linear 0s;
	}
	.site-nav__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 18px;
		width: 100%;
		max-width: 320px;
	}
	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}
	.site-nav__list li { border: none; text-align: center; }
	.site-nav__list li + li { margin-top: 2px; }
	.site-nav__list li a {
		padding: 8px 0;
		font-size: 20px;
		justify-content: center;
		gap: 12px;
	}
	.site-nav__list li a::after { display: none; }
	.nav-num {
		font-size: 12px;
		min-width: 24px;
		font-family: var(--ff-display);
		font-style: italic;
		font-weight: 800;
		letter-spacing: -0.02em;
	}
	.nav-label {
		font-size: 22px;
		font-family: var(--ff-display);
		font-style: italic;
		font-weight: 800;
		letter-spacing: -0.02em;
		color: var(--fg);
	}
	.site-nav__cta {
		flex-direction: column;
		align-items: center;
		gap: 12px;
		margin-top: 8px;
		width: 100%;
	}
	.site-nav__cta .btn {
		justify-content: center;
		width: 100%;
	}
	.site-nav__cta .nav-tel {
		justify-content: center;
		font-size: 14px;
		color: var(--fg);
	}

	.menu-toggle {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		z-index: 1001;
		width: 52px;
		height: 52px;
		padding: 0;
		background: transparent;
		border: none;
		border-radius: 0;
	}
	.menu-toggle__line {
		display: block;
		width: 26px;
		height: 2px;
		background: var(--brand-gradient);
		background-size: 200% 100%;
		border-radius: 2px;
		animation: gradientShift 6s ease-in-out infinite alternate;
		transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
	}
	.menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child { transform: translateY(8px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) { opacity: 0; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.menu-toggle__text { display: none; }
}

/* ========== 8. HERO ========== */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: var(--header-h);
	overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg-layer {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.5s var(--ease-out);
}
.hero__bg-layer--1 {
	background-image: url("../images/hero-01.jpg");
}
.hero__bg-layer--2 {
	background-image: url("../images/hero-02.jpg");
}
.hero__bg-layer--3 {
	background-image: url("../images/hero-03.jpg");
}
.hero__bg-layer.is-active { opacity: 0.35; }
.hero__bg::after {
	content: "";
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.5) 40%, rgba(10,10,10,0.95) 100%),
		radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.10), transparent 40%),
		radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.10), transparent 40%);
}

.hero__spotlight {
	position: absolute;
	top: -20%; left: 50%;
	width: 140vmin; height: 140vmin;
	transform: translateX(-50%);
	background:
		radial-gradient(circle at 30% 40%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
		radial-gradient(circle at 60% 50%, rgba(168, 85, 247, 0.18) 0%, transparent 45%),
		radial-gradient(circle at 75% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
		radial-gradient(circle at 45% 60%, rgba(20, 184, 166, 0.12) 0%, transparent 45%);
	filter: blur(24px);
	animation: spotlightSway 10s ease-in-out infinite alternate;
	pointer-events: none;
	mix-blend-mode: screen;
}
@keyframes spotlightSway {
	0%   { transform: translate(-60%, -5%) scale(1); opacity: 0.7; }
	100% { transform: translate(-40%, 5%) scale(1.1); opacity: 1; }
}

.hero__grid-overlay {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
	background-size: 80px 80px;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter);
	min-height: calc(100vh - var(--header-h));
	min-height: calc(100svh - var(--header-h));
	display: grid;
	grid-template-columns: 60px 1fr;
	align-items: center;
	gap: clamp(24px, 4vw, 60px);
}
@media (max-width: 768px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__side--left { display: none; }
}

.hero__side { position: relative; height: 100%; display: flex; align-items: flex-end; }
.hero__side--right { align-items: flex-start; }
.vertical-text {
	display: inline-block;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.4em;
	color: var(--fg-muted);
	padding-bottom: 40px;
}

.hero__counter {
	display: flex; flex-direction: column; gap: 8px;
	padding-top: 40px;
	text-align: right;
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.3em;
	color: var(--fg-muted);
	line-height: 1.2;
}
.hero__counter-year {
	font-family: var(--ff-display);
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.03em;
	background: var(--brand-gradient);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: gradientShift 6s ease-in-out infinite alternate;
	letter-spacing: 0;
	font-style: italic;
}

/* ==== Equalizer bars (logo motif) ==== */
.eq-bars {
	display: inline-flex;
	align-items: flex-end;
	gap: 3px;
	height: 18px;
	vertical-align: middle;
}
.eq-bars__bar {
	display: block;
	width: 3px;
	border-radius: 2px;
	transform-origin: bottom;
	animation: eqBar 1.2s var(--ease-in-out) infinite alternate;
	box-shadow: 0 0 8px currentColor;
}
.eq-bars__bar:nth-child(1) { height: 40%; background: var(--brand-1); color: var(--brand-1); animation-delay: 0s; }
.eq-bars__bar:nth-child(2) { height: 70%; background: var(--brand-2); color: var(--brand-2); animation-delay: 0.12s; }
.eq-bars__bar:nth-child(3) { height: 100%; background: var(--brand-3); color: var(--brand-3); animation-delay: 0.24s; }
.eq-bars__bar:nth-child(4) { height: 70%; background: var(--brand-4); color: var(--brand-4); animation-delay: 0.36s; }
.eq-bars__bar:nth-child(5) { height: 40%; background: var(--brand-5); color: var(--brand-5); animation-delay: 0.48s; }
@keyframes eqBar {
	0%   { transform: scaleY(0.25); }
	100% { transform: scaleY(1); }
}
.eq-bars--lg { height: 32px; gap: 5px; }
.eq-bars--lg .eq-bars__bar { width: 5px; }

.hero__content {
	padding-top: clamp(20px, 7vw, 80px);
	padding-bottom: clamp(40px, 10vw, 120px);
}
.hero__label {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--ff-mono);
	font-size: 12px;
	letter-spacing: 0.3em;
	color: var(--accent);
	text-transform: uppercase;
	margin-bottom: 24px;
}
.label-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--brand-1);
	box-shadow: 0 0 12px var(--brand-1);
	animation: pulseColor 6s ease-in-out infinite;
}
@keyframes pulseColor {
	0%   { background: var(--brand-1); box-shadow: 0 0 14px var(--brand-1); transform: scale(1); }
	20%  { background: var(--brand-2); box-shadow: 0 0 14px var(--brand-2); transform: scale(0.75); }
	40%  { background: var(--brand-3); box-shadow: 0 0 14px var(--brand-3); transform: scale(1); }
	60%  { background: var(--brand-4); box-shadow: 0 0 14px var(--brand-4); transform: scale(0.75); }
	80%  { background: var(--brand-5); box-shadow: 0 0 14px var(--brand-5); transform: scale(1); }
	100% { background: var(--brand-1); box-shadow: 0 0 14px var(--brand-1); transform: scale(1); }
}

.hero__title {
	font-family: var(--ff-mincho);
	font-weight: 600;
	font-size: clamp(30px, 5vw, 68px);
	line-height: 1.25;
	letter-spacing: 0.02em;
	margin-bottom: clamp(16px, 2vw, 24px);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title em {
	font-style: normal;
	position: relative;
	display: inline-block;
	background: var(--brand-gradient);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: gradientShift 6s ease-in-out infinite alternate;
}
.hero__title em::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0.08em;
	height: 0.12em;
	background: var(--brand-gradient);
	background-size: 200% 100%;
	transform: scaleX(0);
	transform-origin: left;
	animation: underline 1s var(--ease-out) 1.8s forwards, gradientShift 6s ease-in-out 1.8s infinite alternate;
}
@keyframes gradientShift {
	0%   { background-position: 0% 50%; }
	100% { background-position: 100% 50%; }
}
@keyframes underline { to { transform: scaleX(1); } }

.hero__title-en {
	font-family: var(--ff-display);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(18px, 2.2vw, 30px);
	letter-spacing: -0.01em;
	line-height: 1.3;
	background: var(--brand-gradient);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: gradientShift 6s ease-in-out infinite alternate;
	margin-top: -8px;
	margin-bottom: clamp(24px, 3vw, 36px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 640px) {
	.hero__title-en {
		white-space: nowrap;
		line-height: 1.4;
		font-size: 16px;
		letter-spacing: -0.02em;
	}
	.hero__title { line-height: 1.5; font-size: 32px; }
	.hero__sub { line-height: 2.2; }
	br.pc-only { display: none; }
}

.hero__sub {
	font-family: var(--ff-mincho);
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 2;
	letter-spacing: 0.08em;
	color: var(--fg-dim);
	margin-bottom: clamp(32px, 4vw, 56px);
	max-width: 640px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

/* Show/hide per device */
.hero__actions-pc,
.circle-btn.hero__actions-pc { display: none; }
.hero__actions-mobile { display: inline-flex; }
@media (min-width: 900px) {
	.circle-btn.hero__actions-pc {
		display: inline-flex;
		position: absolute;
		right: clamp(16px, 1.5vw, 32px);
		top: 50%;
		transform: translateY(-50%);
		z-index: 3;
	}
	.circle-btn.hero__actions-pc:hover { transform: translateY(-50%) scale(1.04); }
	.hero__actions-mobile { display: none; }
	.hero__side--left { display: none; }
	.hero__inner { grid-template-columns: 1fr; }
}

/* Circular rotating text button */
.circle-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	color: var(--fg);
	text-decoration: none;
	isolation: isolate;
	transition: transform 0.5s var(--ease-out);
}
.circle-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	z-index: -1;
	transition: border-color 0.4s var(--ease-out);
}
.circle-btn:hover::before { border-color: transparent; }

.circle-btn__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	animation: circleBtnSpin 18s linear infinite;
	transform-origin: center;
}
.circle-btn:hover .circle-btn__svg { animation-duration: 7s; }
.circle-btn__svg text {
	font-family: var(--ff-display);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	fill: var(--fg);
	text-transform: uppercase;
}
@keyframes circleBtnSpin {
	to { transform: rotate(360deg); }
}

.circle-btn__center {
	position: relative;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--line-strong);
	color: var(--fg);
	transition:
		background 0.4s var(--ease-out),
		border-color 0.4s var(--ease-out),
		transform 0.4s var(--ease-out),
		color 0.4s var(--ease-out);
}
.circle-btn:hover .circle-btn__center {
	background: var(--brand-gradient);
	border-color: transparent;
	color: #fff;
	transform: scale(1.08);
	box-shadow: 0 10px 30px -8px rgba(168, 85, 247, 0.5);
}
.circle-btn__arrow {
	transition: transform 0.5s var(--ease-out);
}
.circle-btn:hover .circle-btn__arrow { transform: translateY(4px); }

.hero__scroll {
	position: absolute;
	left: 50%; bottom: 24px;
	transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	font-family: var(--ff-mono);
	font-size: 10px;
	letter-spacing: 0.4em;
	color: var(--fg-muted);
	z-index: 3;
}
.hero__scroll-line {
	position: relative;
	width: 1px; height: 64px;
	background: var(--line);
	overflow: hidden;
}
.hero__scroll-line::after {
	content: "";
	position: absolute; top: -100%; left: 0;
	width: 1px; height: 100%;
	background: var(--accent);
	animation: scrollLine 2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
	0%   { top: -100%; }
	100% { top: 100%; }
}

.hero__ticker {
	position: absolute;
	left: 0; right: 0;
	bottom: 100px;
	overflow: hidden;
	opacity: 0.25;
	z-index: 1;
	padding-block: 20px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	pointer-events: none;
}
@media (max-width: 768px) {
	.hero { min-height: 88svh; }
	.hero__ticker { bottom: 0; }
	.hero__scroll { display: none; }
	.hero__actions { justify-content: center; margin-bottom: 80px; }
	.btn--lg.hero__actions-mobile { padding: 14px 28px; font-size: 13px; }
}

/* ========== 9. Marquee ========== */
.marquee-track {
	display: inline-flex;
	align-items: center;
	gap: 32px;
	white-space: nowrap;
	font-family: var(--ff-display);
	font-style: italic;
	font-size: clamp(32px, 5vw, 72px);
	font-weight: 800;
	letter-spacing: -0.02em;
	animation: marquee 40s linear infinite;
}
.marquee-track .dot { color: var(--accent); font-family: var(--ff-sans); font-size: 0.4em; }
.marquee-track--slow { animation-duration: 60s; font-size: clamp(20px, 3vw, 32px); }
@keyframes marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ========== 10. ABOUT ========== */
.about { background: var(--bg); }
.about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}
@media (max-width: 900px) {
	.about__grid { grid-template-columns: 1fr; }
}

.about__visual { position: relative; }
.about__visual-frame {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--radius);
}
.about__visual-frame img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease-out);
	filter: grayscale(0.1) contrast(1.05);
}
.about__visual:hover .about__visual-frame img { transform: scale(1.04); }
.about__visual-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
}
.about__visual::before {
	content: "";
	position: absolute;
	top: -20px; left: -20px;
	width: 60%; height: 60%;
	border: 1px solid var(--accent);
	z-index: -1;
	transition: transform 0.8s var(--ease-out);
}
.about__visual:hover::before { transform: translate(10px, 10px); }
.about__visual-caption {
	position: absolute;
	bottom: 20px; left: 20px;
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.3em;
	color: var(--fg);
	display: flex; gap: 10px;
}
.about__visual-caption .dot { color: var(--accent); }

.about__catch {
	font-family: var(--ff-mincho);
	font-size: clamp(28px, 3.5vw, 48px);
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 32px;
}
.about__catch .line { display: block; overflow: hidden; }

.about__body p {
	font-family: var(--ff-sans);
	line-height: 2;
	color: var(--fg-dim);
	margin-bottom: 20px;
	font-size: 15px;
}
.about__body em {
	font-style: normal;
	color: var(--brand-1);
	font-weight: 500;
}

.about__stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num {
	font-family: var(--ff-display);
	font-size: clamp(32px, 3.5vw, 48px);
	font-weight: 800;
	color: var(--fg);
	line-height: 1;
	letter-spacing: -0.03em;
}
.stat__label {
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.3em;
	color: var(--fg-muted);
}

/* ========== 11. SERVICE ========== */
.service { position: relative; overflow: hidden; }
.service__bg {
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.08), transparent 55%),
		radial-gradient(ellipse at 10% 80%, rgba(20, 184, 166, 0.06), transparent 55%);
	pointer-events: none;
}
.service__tabs { display: none; }

/* Section footer CTA (SERVICE / WORKS / FLOW) — default SP only, --all shows on PC too */
.sp-contact-cta { display: none; }
.sp-contact-cta--all {
	display: flex;
	justify-content: center;
	margin-top: clamp(48px, 6vw, 80px);
}
.sp-contact-cta--all .sp-contact-cta__btn {
	padding: 18px 44px;
	font-size: 15px;
	min-width: 280px;
	justify-content: center;
}
.sp-contact-cta--all .sp-contact-cta__btn::before {
	background: var(--brand-gradient);
	background-size: 200% 100%;
}
@media (hover: hover) {
	.sp-contact-cta--all .sp-contact-cta__btn:hover {
		color: #fff;
		border-color: transparent;
	}
	.sp-contact-cta--all .sp-contact-cta__btn:hover::before {
		animation: gradientShift 6s ease-in-out infinite alternate;
	}
}
@media (max-width: 768px) {
	.sp-contact-cta {
		display: flex;
		justify-content: center;
		margin-top: 40px;
	}
	.sp-contact-cta__btn,
	.sp-contact-cta--all .sp-contact-cta__btn {
		padding: 14px 28px;
		font-size: 13px;
		min-width: 240px;
		justify-content: center;
	}
}

.service__list { display: flex; flex-direction: column; gap: 0; }
.service-card {
	position: relative;
	display: grid;
	grid-template-columns: 180px 1fr 320px;
	gap: clamp(24px, 4vw, 48px);
	padding: clamp(40px, 5vw, 64px) 0;
	border-top: 1px solid var(--line);
	transition: background-color 0.6s var(--ease-out);
}
.service-card:last-child { border-bottom: 1px solid var(--line); }
.service-card:hover { background: rgba(168, 85, 247, 0.03); }
@media (max-width: 900px) {
	.service-card { grid-template-columns: 1fr; gap: 20px; }
}

/* SP: tabs + horizontal carousel */
@media (max-width: 768px) {
	.service__tabs {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		margin: 24px -16px 28px;
		padding: 4px 16px 12px;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.service__tabs::-webkit-scrollbar { display: none; }
	.service__tab {
		flex: 0 0 auto;
		padding: 10px 18px;
		font-family: var(--ff-mincho);
		font-size: 13px;
		font-weight: 600;
		letter-spacing: 0.06em;
		color: var(--fg-dim);
		background: rgba(255, 255, 255, 0.04);
		border: 1px solid var(--line);
		border-radius: 999px;
		white-space: nowrap;
		cursor: pointer;
		transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
	}
	.service__tab.is-active {
		color: #fff;
		background: var(--brand-gradient);
		background-size: 200% 100%;
		animation: gradientShift 6s ease-in-out infinite alternate;
		border-color: transparent;
	}

	.service__list {
		display: flex;
		flex-direction: row;
		gap: 16px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		padding: 4px 16px 20px;
		margin: 0 -16px;
		-webkit-overflow-scrolling: touch;
	}
	.service__list::-webkit-scrollbar { display: none; }
	.service-card {
		flex: 0 0 calc(100vw - 64px);
		scroll-snap-align: center;
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 24px;
		border: 1px solid var(--line);
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.02);
	}
	.service-card:last-child { border-bottom: 1px solid var(--line); }
	.service-card:hover { background: rgba(255, 255, 255, 0.02); }
}

.service-card__head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 8px;
}
.service-card__num {
	font-family: var(--ff-mono);
	font-size: 12px;
	letter-spacing: 0.3em;
	color: var(--accent);
}
.service-card:nth-child(1) .service-card__num { color: var(--brand-1); }
.service-card:nth-child(2) .service-card__num { color: var(--brand-2); }
.service-card:nth-child(3) .service-card__num { color: var(--brand-3); }
.service-card:nth-child(4) .service-card__num { color: var(--brand-4); }
.service-card:nth-child(1) .service-card__title::after { background: var(--brand-1); }
.service-card:nth-child(2) .service-card__title::after { background: var(--brand-2); }
.service-card:nth-child(3) .service-card__title::after { background: var(--brand-3); }
.service-card:nth-child(4) .service-card__title::after { background: var(--brand-4); }
.service-card:nth-child(1):hover .service-card__tags li { border-color: var(--brand-1); color: var(--brand-1); }
.service-card:nth-child(2):hover .service-card__tags li { border-color: var(--brand-2); color: var(--brand-2); }
.service-card:nth-child(3):hover .service-card__tags li { border-color: var(--brand-3); color: var(--brand-3); }
.service-card:nth-child(4):hover .service-card__tags li { border-color: var(--brand-4); color: var(--brand-4); }
.service-card__en {
	font-family: var(--ff-display);
	font-style: italic;
	font-weight: 500;
	font-size: 18px;
	letter-spacing: -0.01em;
	color: var(--fg-muted);
}

.service-card__body {
	max-width: 640px;
}
.service-card__title {
	font-family: var(--ff-mincho);
	font-size: clamp(28px, 3vw, 44px);
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 20px;
	position: relative;
	display: inline-block;
}
.service-card__title::after {
	content: "";
	position: absolute;
	left: 0; bottom: -8px;
	width: 40px; height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease-out) 0.1s;
}
.service-card.is-visible .service-card__title::after { transform: scaleX(1); }

.service-card__desc {
	font-family: var(--ff-sans);
	font-size: 15px;
	line-height: 2;
	color: var(--fg-dim);
	margin-bottom: 24px;
}
.service-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.service-card__tags li {
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.2em;
	padding: 6px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--fg-dim);
	transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.service-card:hover .service-card__tags li { border-color: var(--accent); color: var(--accent); }

.service-card__visual {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
}
.service-card__visual img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: grayscale(0.4);
	transition: filter 0.8s var(--ease-out), transform 1s var(--ease-out);
}
.service-card:hover .service-card__visual img {
	filter: grayscale(0);
	transform: scale(1.06);
}
.service-card__visual::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(20, 184, 166, 0.1) 50%, transparent 70%);
	opacity: 0;
	transition: opacity 0.6s var(--ease-out);
}
.service-card:hover .service-card__visual::after { opacity: 1; }

/* ========== 12. WORKS — horizontal slider ========== */
.works__head-container {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
}
.works__head-container .section-head { margin-bottom: 0; flex: 1 1 auto; }

.works__nav {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}
.slider-btn {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	color: var(--fg-dim);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.35s var(--ease-out), border-color 0.35s, color 0.35s, transform 0.35s;
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	transform: translateY(-2px);
}
.slider-btn:disabled { opacity: 0.35; cursor: default; transform: none; background: transparent; border-color: var(--line); color: var(--fg-muted); }

.works-slider {
	position: relative;
	margin-top: clamp(40px, 5vw, 64px);
	margin-bottom: clamp(24px, 3vw, 40px);
}
.works-slider__track {
	display: flex;
	gap: clamp(16px, 2vw, 28px);
	overflow-x: auto;
	scroll-snap-type: none;
	padding: 4px max(var(--gutter), calc((100vw - var(--container-max)) / 2)) 28px;
	scrollbar-width: none;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
}
.works-slider__track::-webkit-scrollbar { display: none; }
.works-slider__track.is-dragging { cursor: grabbing; }
.works-slider__track.is-dragging .case-card { pointer-events: none; }

.case-card {
	position: relative;
	flex: 0 0 clamp(260px, 40vw, 560px);
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	flex-direction: column;
	user-select: none;
}
.case-card__img {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	margin-bottom: 18px;
}
.case-card__img img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: grayscale(0.2);
	transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease-out);
}
.case-card:hover .case-card__img img { transform: scale(1.05); filter: grayscale(0); }
.case-card__img::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
	pointer-events: none;
}
.case-card__info { padding: 0 4px; }
.case-card__cat {
	display: inline-block;
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.3em;
	color: var(--accent);
	margin-bottom: 10px;
}
.case-card:nth-child(6n+1) .case-card__cat { color: var(--brand-1); }
.case-card:nth-child(6n+2) .case-card__cat { color: var(--brand-2); }
.case-card:nth-child(6n+3) .case-card__cat { color: var(--brand-3); }
.case-card:nth-child(6n+4) .case-card__cat { color: var(--brand-4); }
.case-card:nth-child(6n+5) .case-card__cat { color: var(--brand-5); }
.case-card:nth-child(6n+6) .case-card__cat {
	background: var(--brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.case-card__title {
	font-family: var(--ff-mincho);
	font-size: clamp(18px, 1.8vw, 24px);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.5;
	margin-bottom: 6px;
}
.case-card__sub {
	font-family: var(--ff-sans);
	font-size: 13px;
	color: var(--fg-muted);
	letter-spacing: 0.06em;
	line-height: 1.6;
}

.works-slider__progress {
	position: relative;
	height: 2px;
	background: var(--line);
	max-width: var(--container-max);
	margin: 0 auto;
	margin-inline: max(var(--gutter), calc((100vw - var(--container-max)) / 2));
	overflow: hidden;
}
.works-slider__progress-bar {
	position: absolute;
	left: 0; top: 0;
	height: 100%;
	width: 25%;
	background: var(--brand-gradient);
	transition: width 0.4s var(--ease-out), transform 0.4s var(--ease-out);
	transform-origin: left;
}

.works__note {
	margin-top: clamp(32px, 4vw, 56px);
	font-size: 13px;
	color: var(--fg-muted);
	text-align: center;
	letter-spacing: 0.15em;
}

@media (max-width: 640px) {
	.works__head-container { align-items: flex-start; }
	.works__nav { margin-top: 16px; }
	.slider-btn { width: 44px; height: 44px; }
}

/* ========== 13. FLOW ========== */
.flow__list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	counter-reset: flow;
}
.flow__list::before {
	content: "";
	position: absolute;
	left: 30px;
	top: 0; bottom: 0;
	width: 2px;
	background: linear-gradient(180deg,
		var(--brand-1) 0%,
		var(--brand-2) 20%,
		var(--brand-3) 40%,
		var(--brand-4) 60%,
		var(--brand-5) 80%,
		var(--brand-1) 100%);
	opacity: 0.7;
	transform-origin: top;
	animation: flowLineGrow 2s var(--ease-out) forwards;
	animation-timeline: view();
	animation-range: entry 0% entry 80%;
}
@supports not (animation-timeline: view()) {
	.flow__list::before { transform: scaleY(1); }
}
@media (min-width: 900px) { .flow__list::before { left: 60px; } }

.flow-step {
	position: relative;
	padding: 28px 0 28px 80px;
	border-top: 1px solid var(--line);
	transition: background-color 0.4s var(--ease-out);
}
.flow-step:last-child { border-bottom: 1px solid var(--line); }
.flow-step::before {
	content: "";
	position: absolute;
	left: 24px;
	top: 38px;
	width: 13px; height: 13px;
	background: var(--accent);
	border-radius: 50%;
	box-shadow: 0 0 0 4px #050505, 0 0 0 5px var(--accent);
	transform: scale(0.6);
	opacity: 0.6;
	transition: transform 0.4s var(--ease-out), opacity 0.4s;
}
.flow-step:nth-child(1)::before { background: var(--brand-1); box-shadow: 0 0 0 4px #050505, 0 0 0 5px var(--brand-1); }
.flow-step:nth-child(2)::before { background: var(--brand-2); box-shadow: 0 0 0 4px #050505, 0 0 0 5px var(--brand-2); }
.flow-step:nth-child(3)::before { background: var(--brand-3); box-shadow: 0 0 0 4px #050505, 0 0 0 5px var(--brand-3); }
.flow-step:nth-child(4)::before { background: var(--brand-4); box-shadow: 0 0 0 4px #050505, 0 0 0 5px var(--brand-4); }
.flow-step:nth-child(5)::before { background: var(--brand-5); box-shadow: 0 0 0 4px #050505, 0 0 0 5px var(--brand-5); }
.flow-step:nth-child(6)::before { background: var(--brand-1); box-shadow: 0 0 0 4px #050505, 0 0 0 5px var(--brand-1); }
.flow-step:nth-child(7)::before { background: var(--brand-3); box-shadow: 0 0 0 4px #050505, 0 0 0 5px var(--brand-3); }
.flow-step:nth-child(8)::before {
	background: conic-gradient(var(--brand-1), var(--brand-2), var(--brand-3), var(--brand-4), var(--brand-5), var(--brand-1));
	box-shadow: 0 0 0 4px #050505;
}
.flow-step:nth-child(1) .flow-step__num { color: var(--brand-1); }
.flow-step:nth-child(2) .flow-step__num { color: var(--brand-2); }
.flow-step:nth-child(3) .flow-step__num { color: var(--brand-3); }
.flow-step:nth-child(4) .flow-step__num { color: var(--brand-4); }
.flow-step:nth-child(5) .flow-step__num { color: var(--brand-5); }
.flow-step:nth-child(6) .flow-step__num { color: var(--brand-1); }
.flow-step:nth-child(7) .flow-step__num { color: var(--brand-3); }
.flow-step:nth-child(8) .flow-step__num {
	background: var(--brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.flow-step.is-visible::before { transform: scale(1); opacity: 1; }
@media (min-width: 900px) {
	.flow-step { padding-left: 140px; }
	.flow-step::before { left: 54px; }
}

.flow-step__num {
	display: block;
	font-family: var(--ff-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.15em;
	color: var(--accent);
	margin-bottom: 6px;
}
.flow-step__title {
	font-family: var(--ff-display);
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin-bottom: 12px;
}
.flow-step__desc {
	font-size: 14px;
	line-height: 1.9;
	color: var(--fg-dim);
	max-width: 700px;
}

/* ========== 14. COMPANY ========== */
.company__grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}
@media (max-width: 900px) { .company__grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
	#company .section-head { margin-bottom: 24px; }
	.company__visual { display: none; }
}

.company__visual { position: relative; position: sticky; top: 120px; }
.company__visual-frame {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--radius);
}
.company__visual-frame img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: grayscale(0.2);
}
.company__visual-deco {
	position: absolute;
	bottom: -20px; right: -20px;
	font-family: var(--ff-display);
	font-style: italic;
	font-size: clamp(36px, 5vw, 72px);
	font-weight: 800;
	letter-spacing: -0.03em;
	background: var(--brand-gradient);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: gradientShift 6s ease-in-out infinite alternate;
	line-height: 1;
	text-align: right;
}

.company__table {
	display: flex; flex-direction: column;
}
.company__row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 24px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
}
.company__row:last-child { border-bottom: 1px solid var(--line); }
.company__row dt {
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.3em;
	color: var(--fg);
	padding-top: 4px;
}
.company__row dd {
	font-family: var(--ff-mincho);
	font-size: 15px;
	line-height: 1.9;
	color: var(--fg-dim);
}
.company__biz { display: flex; flex-direction: column; gap: 6px; }
.company__biz li {
	padding-left: 16px;
	position: relative;
	font-size: 14px;
}
.company__biz li::before {
	content: "—";
	position: absolute;
	left: 0; color: var(--fg);
}
@media (max-width: 640px) {
	.company__row { grid-template-columns: 1fr; gap: 6px; }
}

/* ========== 15. CONTACT ========== */
.contact { position: relative; overflow: hidden; }
.contact__bg {
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 20% 80%, rgba(236, 72, 153, 0.09), transparent 55%),
		radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.09), transparent 55%),
		radial-gradient(ellipse at 50% 50%, rgba(20, 184, 166, 0.05), transparent 60%);
	pointer-events: none;
}
.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: clamp(40px, 5vw, 72px);
	align-items: start;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__catch {
	font-family: var(--ff-mincho);
	font-size: clamp(20px, 2vw, 24px);
	line-height: 1.9;
	letter-spacing: 0.05em;
	font-weight: 500;
	margin-bottom: 20px;
}
.contact__note {
	font-size: 14px;
	color: var(--fg-dim);
	line-height: 2;
	margin-bottom: 40px;
}
.contact__direct {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255,255,255,0.02);
	display: flex;
	flex-direction: column;
	gap: 0;
}
.contact__phone {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--fg);
	padding-block: 14px;
	transition: color 0.3s var(--ease-out);
}
.contact__phone + .contact__phone {
	border-top: 1px solid var(--line);
}
.contact__phone:hover { color: var(--accent-bright); }
.contact__phone-label {
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.3em;
	color: var(--fg);
}
.contact__phone-num {
	font-family: var(--ff-display);
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.contact__phone-num--email {
	font-size: clamp(16px, 2vw, 24px);
	word-break: break-all;
	letter-spacing: 0;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.3em;
	color: var(--fg-dim);
	display: flex; align-items: center; gap: 10px;
}
.required {
	font-family: var(--ff-sans);
	font-size: 10px;
	letter-spacing: 0.2em;
	background: var(--brand-1);
	color: #fff;
	padding: 2px 8px;
	border-radius: 2px;
}
.field input,
.field textarea {
	padding: 14px 16px;
	background: rgba(255,255,255,0.03);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--fg);
	font-family: var(--ff-sans);
	font-size: 15px;
	line-height: 1.6;
	transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
	width: 100%;
}
.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: rgba(255,255,255,0.06);
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}
.field textarea { resize: vertical; min-height: 140px; }
.field--submit { margin-top: 12px; }

.contact-form__status {
	min-height: 24px;
	font-size: 14px;
	font-family: var(--ff-sans);
	letter-spacing: 0.05em;
	padding: 12px 16px;
	border-radius: var(--radius);
	display: none;
}
.contact-form__status.is-success {
	display: block;
	background: rgba(16, 185, 129, 0.1);
	color: #6ee7b7;
	border: 1px solid rgba(16, 185, 129, 0.5);
}
.contact-form__status.is-error {
	display: block;
	background: rgba(220,50,50,0.1);
	color: #ff9aa0;
	border: 1px solid rgba(220,50,50,0.4);
}

/* ========== 16. Footer ========== */
.site-footer { background: var(--bg); color: var(--fg); position: relative; }
.site-footer__marquee {
	padding-block: 24px;
	overflow: hidden;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: #050505;
}
.site-footer__body { padding-block: 64px 32px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr; gap: 40px; } }

.site-footer__logo { display: inline-block; }
.site-footer__logo-img {
	display: block;
	height: 100px;
	width: auto;
}
@media (max-width: 768px) {
	.site-footer__logo-img { height: 80px; }
}

.site-footer__tagline {
	font-family: var(--ff-mincho);
	font-size: 16px;
	line-height: 2;
	letter-spacing: 0.08em;
	color: var(--fg-dim);
	margin-top: 20px;
}
.site-footer__name {
	font-family: var(--ff-mincho);
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 12px;
}
.site-footer__address {
	font-size: 13px;
	line-height: 1.9;
	color: var(--fg-dim);
	margin-bottom: 16px;
}
.site-footer__tel {
	display: flex; gap: 16px;
	font-family: var(--ff-display);
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 6px;
	letter-spacing: -0.01em;
}
.site-footer__tel--email a { word-break: break-all; font-size: 14px; }
.site-footer__tel .label {
	font-family: var(--ff-mono);
	font-size: 10px;
	letter-spacing: 0.3em;
	color: var(--fg-muted);
	padding-top: 4px;
	min-width: 40px;
}
.site-footer__tel a { color: var(--fg); }

.site-footer__nav ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 24px;
}
.site-footer__nav a {
	font-family: var(--ff-display);
	font-style: italic;
	font-size: 16px;
	font-weight: 500;
	color: var(--fg-dim);
	transition: color 0.3s, transform 0.3s;
	display: inline-block;
	letter-spacing: -0.01em;
}
.site-footer__nav a:hover { color: var(--accent); transform: translateX(4px); }

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-block: 24px;
	border-top: 1px solid var(--line);
	margin-top: 40px;
	font-family: var(--ff-mono);
	font-size: 11px;
	letter-spacing: 0.2em;
	color: var(--fg-muted);
	flex-wrap: wrap; gap: 16px;
}

.page-top {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--fg-dim);
	transition: color 0.3s;
}
.page-top:hover { color: var(--accent); }
.page-top__arrow {
	width: 32px; height: 32px;
	border: 1px solid currentColor;
	border-radius: 50%;
	position: relative;
	transition: transform 0.4s var(--ease-out);
}
.page-top__arrow::before {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 8px; height: 8px;
	border-top: 1px solid currentColor;
	border-left: 1px solid currentColor;
	transform: translate(-50%, -30%) rotate(45deg);
}
.page-top:hover .page-top__arrow { transform: translateY(-3px); }

/* Floating "back to top" button — fixed bottom-right, shows after first view */
.floating-top {
	position: fixed;
	right: clamp(16px, 2vw, 32px);
	bottom: clamp(20px, 2.5vw, 40px);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(10, 10, 10, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--line);
	color: var(--fg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 60;
	opacity: 0;
	pointer-events: none;
	transform: translateY(20px) scale(0.9);
	transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
	cursor: pointer;
}
.floating-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}
@media (hover: hover) {
	.floating-top:hover {
		background: var(--brand-gradient);
		background-size: 200% 100%;
		animation: gradientShift 6s ease-in-out infinite alternate;
		border-color: transparent;
	}
	.floating-top:hover svg { transform: translateY(-2px); }
}
.floating-top svg { transition: transform 0.3s var(--ease-out); }
@media (max-width: 640px) {
	.floating-top { width: 46px; height: 46px; }
	.floating-top svg { width: 18px; height: 18px; }
}

/* ========== 17. Scroll reveal animations ========== */
[data-reveal] {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
	will-change: opacity, transform;
}
[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

[data-reveal-split] .line {
	display: block;
	overflow: hidden;
	position: relative;
}
[data-reveal-split] .line > * { display: block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
[data-reveal-split] .line::after {
	content: attr(data-text);
	display: block;
	transform: translateY(110%);
	transition: transform 1.1s var(--ease-out);
}
[data-reveal-split].is-visible .line::after { transform: translateY(0); }

/* Fallback for lines without pseudo — use single span translate */
.hero__title .line,
.about__catch .line { transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.hero__title.is-visible .line,
.about__catch.is-visible .line { transform: translateY(0); }
.hero__title .line:nth-child(2),
.about__catch .line:nth-child(2) { transition-delay: 0.15s; }

[data-reveal-img] { opacity: 1; transform: none; position: relative; }
[data-reveal-img]::after {
	content: "";
	position: absolute; inset: 0;
	background: var(--bg);
	transform-origin: right;
	transition: transform 1.2s var(--ease-in-out);
	pointer-events: none;
	z-index: 2;
}
[data-reveal-img].is-visible::after { transform: scaleX(0); }

/* Lighter reveal on SP — shorter duration & smaller translate */
@media (max-width: 768px) {
	[data-reveal] {
		transform: translateY(16px);
		transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
	}
	[data-reveal-split] .line > * { transition-duration: 0.55s; }
	[data-reveal-split] .line::after { transition-duration: 0.6s; }
	.hero__title .line, .about__catch .line { transition-duration: 0.6s; }
	.hero__title .line:nth-child(2),
	.about__catch .line:nth-child(2) { transition-delay: 0.08s; }
	[data-reveal-img]::after { transition-duration: 0.7s; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	[data-reveal] { opacity: 1; transform: none; }
	.hero__title .line, .about__catch .line { transform: none; }
	[data-reveal-img]::after { display: none; }
}
