/* ==========================================================
   Chromatic Corporate — main stylesheet
   Breakpoints: ≤599 phone / 600–899 small tablet / 900–1023 tablet / ≥1024 desktop
   ========================================================== */

:root {
	--ink: #0c1222;
	--ink-2: #3a4256;
	--muted: #5a6275;
	--line: #dfe2e8;
	--line-2: #d6dae2;
	--bg: #ffffff;
	--bg-2: #f4f5f7;
	--bg-3: #eceef2;
	--max: 1360px;
	--gutter: clamp(20px, 5vw, 72px);
	--header-h: 84px;
	--sec: clamp(96px, 14vw, 200px);
	--radius: clamp(20px, 2.4vw, 32px);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--jp: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
	--en: 'Archivo', 'Zen Kaku Gothic New', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--jp);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: .06em;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { opacity: .72; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #3F5FD8; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
/* 日本語の見出しは文節で改行し、行末の1文字落ちを防ぐ */
h1, h2, h3, .vision__text, .hero__lead, .lead, .theme-card__text, .step__text {
	word-break: auto-phrase;
	text-wrap: balance;
}
.lead, .theme-card__text, .step__text { text-wrap: pretty; }

.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 {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Keyframes ---------- */
@keyframes spin { from { transform: rotateX(-14deg) rotateY(0deg); } to { transform: rotateX(-14deg) rotateY(360deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes wheel { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes lineup { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(64px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes parallax { from { transform: translateY(-10%); } to { transform: translateY(10%); } }
@keyframes tiltin { from { opacity: 0; transform: rotateX(38deg) translateY(120px); } to { opacity: 1; transform: rotateX(0) translateY(0); } }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes hscroll { from { transform: translateX(0); } to { transform: translateX(-75%); } }

/* ---------- Color bars ---------- */
.cbars { display: flex; }
.cbars--fill span { flex: 1; }

/* ---------- Typography ---------- */
.eyebrow {
	font-family: var(--en);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .24em;
	line-height: 1.6;
	color: var(--muted);
}
.eyebrow--light { color: #fff; }
.label-rule { padding-top: 16px; border-top: 2px solid var(--ink); color: var(--ink); align-self: start; }

.h-sec { font-size: clamp(34px, 4.8vw, 68px); line-height: 1.4; font-weight: 900; letter-spacing: .05em; }
.h-sec--sm { font-size: clamp(30px, 3.6vw, 48px); }
.h-statement { font-size: clamp(30px, 5.4vw, 80px); line-height: 1.6; font-weight: 900; letter-spacing: .05em; }
.h-statement--md { font-size: clamp(28px, 4.2vw, 62px); }

.lead { font-size: clamp(15px, 1.3vw, 17px); line-height: 2.1; letter-spacing: .08em; color: var(--ink-2); }
.lead--lg { font-size: clamp(16px, 1.4vw, 18px); line-height: 2.2; }

.link-arrow {
	align-self: flex-start;
	display: inline-flex; gap: 12px; align-items: center;
	padding: 8px 0;
	text-decoration: none;
	font-weight: 900; letter-spacing: .1em;
	border-bottom: 2px solid var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 60px; padding: 0 36px;
	border-radius: 999px;
	font-size: 16px; font-weight: 900; letter-spacing: .1em; line-height: 1.2;
	text-decoration: none;
	transition: transform .3s var(--ease), opacity .3s;
}
.btn:hover { opacity: 1; transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.btn--ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn--sm { min-height: 50px; padding: 0 28px; font-size: 15px; }
.btn--lg { min-height: 72px; padding: 0 40px; font-size: 18px; }
.btn--en { font-family: var(--en); font-weight: 800; letter-spacing: .12em; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Scroll progress ---------- */
.progress {
	position: fixed; top: 0; left: 0; right: 0; z-index: 60;
	height: 4px; transform-origin: left; transform: scaleX(0);
	pointer-events: none;
}
@supports (animation-timeline: scroll()) {
	.progress { animation: wipe linear both; animation-timeline: scroll(root); }
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(12, 18, 34, .05); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__mark { gap: 4px; }
.brand__mark span { width: 5px; height: 24px; border-radius: 3px; }
.brand__name { font-family: var(--en); font-stretch: 108%; font-size: 26px; font-weight: 800; letter-spacing: 0; line-height: 1; }
.custom-logo-link img { max-height: 44px; width: auto; }

.gnav { margin-left: auto; }
.gnav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.gnav__list a { display: inline-block; padding: 12px 0; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.gnav__extra { display: none; }

.menu-btn {
	display: none;
	position: relative;
	width: 48px; height: 48px; margin-right: -8px;
	border: 0; background: transparent; cursor: pointer; color: var(--ink);
}
.menu-btn span {
	position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
	background: currentColor; transition: transform .35s var(--ease), opacity .2s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn span:nth-child(3) { top: 30px; }
.is-menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.is-menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
	:root { --header-h: 68px; }
	/* backdrop-filter would trap the fixed overlay menu inside the header */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
	.brand__name { font-size: 22px; }
	.brand__mark span { height: 20px; width: 4px; }
	.header-cta { display: none; }
	.menu-btn { display: inline-block; }
	.gnav {
		position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
		margin: 0; padding: 24px var(--gutter) 40px;
		background: #fff;
		overflow-y: auto; overscroll-behavior: contain;
		display: flex; flex-direction: column; gap: 32px;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
	}
	.is-menu-open .gnav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
	.is-menu-open { overflow: hidden; }
	.gnav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.gnav__list li { border-bottom: 1px solid var(--line); }
	.gnav__list a { display: block; padding: 22px 0; font-size: 20px; font-weight: 900; }
	.gnav__extra { display: flex; flex-direction: column; gap: 16px; }
	.gnav__tel { text-align: center; font-family: var(--en); font-weight: 700; letter-spacing: .12em; text-decoration: none; padding: 12px 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner {
	min-height: min(calc(100svh - var(--header-h) - 8px), 920px);
	display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px;
	padding-block: clamp(48px, 7vw, 104px);
}
.hero__copy { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.hero__eyebrow { animation: fade 1s ease .1s both; }
.hero__title { font-size: clamp(46px, 7.2vw, 108px); line-height: 1.35; font-weight: 900; letter-spacing: .04em; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .ln > span { display: block; animation: lineup 1.1s var(--ease) both; }
.hero__lead { max-width: 560px; font-size: clamp(16px, 1.5vw, 20px); line-height: 2.1; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); animation: rise 1.2s var(--ease) .7s both; }
.hero__actions { animation: rise 1.2s var(--ease) .9s both; }
.hero__visual {
	height: clamp(320px, 44vw, 580px);
	display: flex; align-items: center; justify-content: center;
	perspective: 1400px;
	animation: pop 1.6s var(--ease) .3s both;
}
.prism {
	--z: clamp(110px, 15vw, 220px);
	position: relative;
	width: clamp(50px, 7vw, 100px); height: clamp(180px, 25vw, 330px);
	transform-style: preserve-3d;
	animation: spin 28s linear infinite;
}
.prism span {
	position: absolute; inset: 0; border-radius: 18px;
	opacity: .72; border: 1px solid rgba(255, 255, 255, .6);
	transform: rotateY(var(--deg)) translateZ(var(--z));
}
.hero__stripe { height: 8px; transform-origin: left; animation: wipe 1.8s cubic-bezier(.7, 0, .2, 1) .5s both; }

@media (max-width: 899px) {
	.hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-top: 40px; }
	.hero__visual { height: 300px; order: 2; }
	.prism { --z: 120px; width: 52px; height: 190px; }
}
@media (max-width: 599px) {
	.br-pc { display: none; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__visual { height: 260px; }
	.prism { --z: 100px; width: 44px; height: 160px; }
}

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec); }
.sec--gray { background: var(--bg-2); }
.sec--tight-top { padding-top: 0; }
.sec--gray.sec--tight-top, .page-hero + .sec--tight-top { padding-top: clamp(48px, 6vw, 80px); }

.split { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 40px 64px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head__title { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.sec-head > .lead { max-width: 460px; }

@media (max-width: 899px) {
	.split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Vision ---------- */
.vision { padding-inline: var(--gutter); }
.vision__card {
	position: relative; overflow: hidden;
	max-width: var(--max); margin: 0 auto;
	min-height: clamp(460px, 56vw, 760px);
	border-radius: var(--radius);
	display: flex; align-items: flex-end;
	background: #1c2333; color: #fff;
}
.vision__bg { position: absolute; inset: -12% 0; }
.vision__bg img { width: 100%; height: 100%; object-fit: cover; }
.vision__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 12, 24, .82) 0%, rgba(8, 12, 24, .4) 45%, rgba(8, 12, 24, 0) 75%); }
.vision__body { position: relative; padding: clamp(28px, 6vw, 96px); display: flex; flex-direction: column; gap: 24px; }
.vision__text { font-size: clamp(20px, 3vw, 42px); line-height: 1.85; font-weight: 900; letter-spacing: .06em; }
@media (max-width: 599px) {
	.vision__card { min-height: 520px; }
	.vision__bg img { object-position: 70% center; }
}

/* ---------- Services (slide deck) ---------- */
.svc-deck { padding-top: var(--sec); }
.svc-deck__head { margin-bottom: clamp(32px, 4vw, 48px); }
.svc-deck__view { padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
.svc-deck__track { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.svc-slide__inner {
	height: 100%;
	border-radius: var(--radius);
	background: var(--bg-2);
	overflow: hidden;
	display: flex; flex-direction: column-reverse;
}
.svc-slide__body {
	padding: clamp(28px, 4vw, 56px);
	display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
	border-top: 10px solid var(--c);
}
.svc-slide__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.svc-slide__num { font-family: var(--en); font-size: clamp(64px, 9vw, 140px); line-height: .9; font-weight: 900; color: var(--c-ink); }
.svc-slide__count { font-family: var(--en); font-size: 15px; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.svc-slide__text { display: flex; flex-direction: column; gap: 18px; }
.svc-slide__en { font-family: var(--en); font-size: 15px; font-weight: 800; letter-spacing: .2em; }
.svc-slide__title { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.5; font-weight: 900; letter-spacing: .06em; }
.svc-slide__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); }
.svc-slide__media img { width: 100%; height: 100%; object-fit: cover; animation: kb 14s ease-in-out infinite alternate; }

@media (min-width: 768px) {
	.svc-slide__inner { flex-direction: row; }
	.svc-slide__body { flex: 1 1 44%; }
	.svc-slide__media { flex: 1 1 56%; aspect-ratio: auto; min-height: 380px; }
}

/* Horizontal deck: desktop + scroll-driven support + motion allowed */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.svc-deck { height: 400vh; padding-top: 0; margin-top: var(--sec); view-timeline-name: --deck; }
		.svc-deck__sticky {
			position: sticky; top: var(--header-h);
			height: calc(100vh - var(--header-h));
			overflow: hidden;
			display: flex; flex-direction: column;
		}
		.svc-deck__head { padding-top: clamp(24px, 4vh, 48px); margin-bottom: clamp(20px, 3vh, 40px); }
		.svc-deck__view { flex: 1; min-height: 0; width: 100%; padding-right: 0; padding-bottom: clamp(24px, 4vh, 48px); }
		.svc-deck__track {
			display: flex; gap: 0;
			width: 400%; height: 100%;
			animation: hscroll linear both;
			animation-timeline: --deck;
			animation-range: contain 0% contain 100%;
		}
		.svc-slide { flex: 0 0 25%; height: 100%; padding-right: var(--gutter); }
		.svc-slide__media { min-height: 0; }
		.svc-slide__body { padding: clamp(28px, 4vh, 56px) clamp(28px, 3vw, 56px); gap: clamp(16px, 2.4vh, 28px); }
		.svc-slide__num { font-size: clamp(56px, min(9vw, 13vh), 140px); }
		.svc-slide__title { font-size: clamp(22px, min(2.6vw, 4vh), 38px); }
		.svc-slide__text { gap: clamp(10px, 1.6vh, 18px); }
	}
}

/* ---------- Integrated bars ---------- */
.bars {
	height: clamp(200px, 30vw, 420px);
	display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 16px);
	border-bottom: 2px solid var(--ink);
}
.bars span { flex: 1; height: var(--h); border-radius: 12px 12px 0 0; transform-origin: bottom; }
@media (max-width: 599px) { .bars span { border-radius: 6px 6px 0 0; } }

/* ---------- Solutions ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); perspective: 1400px; }
.sol {
	background: #fff; border-radius: var(--radius);
	padding: clamp(28px, 3vw, 44px);
	display: flex; flex-direction: column; gap: 24px;
	border-top: 8px solid var(--c);
	transform-origin: bottom;
}
.sol__label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 900; letter-spacing: .14em; color: var(--muted); }
.sol__label span { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.sol__problem { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.75; font-weight: 900; letter-spacing: .05em; flex: 1; }
.sol__answer { display: flex; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); font-size: clamp(15px, 1.2vw, 16px); line-height: 2; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; }
.sol__arrow { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--en); font-size: 15px; margin-top: 2px; }
@media (max-width: 1023px) { .solutions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 699px) { .solutions { grid-template-columns: 1fr; } }

/* ---------- One stop flow ---------- */
.flow { position: relative; }
.flow__line { position: absolute; left: 28px; right: calc((100% - 96px) / 5 - 28px); top: 27px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #E5483E, #EF9A2A, #22A37A, #2A86D1, #6D4ED6); }
.flow__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.flow__step { display: flex; flex-direction: column; gap: 14px; }
.flow__dot {
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--c); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--en); font-weight: 900; font-size: 18px; letter-spacing: .02em;
	box-shadow: 0 0 0 8px #fff;
}
.flow__title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 900; letter-spacing: .06em; line-height: 1.5; margin-top: 8px; }
.flow__text { font-size: 15px; line-height: 1.9; letter-spacing: .06em; color: var(--ink-2); }
@media (max-width: 899px) {
	.flow__line { left: 27px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform-origin: top; background: linear-gradient(180deg, #E5483E, #EF9A2A, #22A37A, #2A86D1, #6D4ED6); }
	.flow__list { grid-template-columns: 1fr; gap: 36px; }
	.flow__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 24px; row-gap: 6px; align-items: center; }
	.flow__dot { grid-row: span 2; align-self: start; }
	.flow__title { margin-top: 0; }
	.flow__text { grid-column: 2; }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) { .flow__line { animation-name: grow; } }
	html.no-sda .flow__line { transform: scaleY(0); }
	html.no-sda .flow__line.is-inview { transform: scaleY(1); }
}

.caps { margin-top: clamp(72px, 9vw, 128px); padding-top: clamp(40px, 5vw, 56px); border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 32px 64px; }
.caps__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 36px; }
.caps__list li { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(18px, 1.9vw, 26px); font-weight: 900; letter-spacing: .05em; line-height: 1.5; }
.caps__list li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
@media (max-width: 899px) { .caps { grid-template-columns: 1fr; } .caps__list { gap: 14px 24px; } }

/* ---------- Works ---------- */
.works { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.work {
	position: relative;
	display: grid; grid-template-columns: minmax(220px, 1fr) 2.6fr; gap: 24px 64px;
	padding: clamp(36px, 4.5vw, 56px) 0;
	border-bottom: 1px solid var(--line-2);
}
.work::before { content: ""; position: absolute; left: 0; top: -2px; width: 64px; height: 6px; background: var(--c); }
.work__meta { display: flex; flex-direction: column; gap: 8px; }
.work__num { font-family: var(--en); font-size: clamp(44px, 4.6vw, 72px); line-height: 1; font-weight: 900; color: var(--c); margin-bottom: 8px; }
.work__label { font-family: var(--en); font-size: 14px; font-weight: 800; letter-spacing: .18em; }
.work__period { font-family: var(--en); font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.work__body { display: flex; flex-direction: column; gap: 18px; }
.work__title { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.55; font-weight: 900; letter-spacing: .05em; }
.work__client { font-size: 15px; font-weight: 700; color: var(--muted); }
.work__desc { font-size: clamp(15px, 1.3vw, 17px); line-height: 2.1; letter-spacing: .06em; color: var(--ink-2); }
.work__desc > * + * { margin-top: 1em; }
.work__tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.work__tags li { padding: 8px 18px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.work--has-img { grid-template-columns: minmax(200px, .9fr) 2fr 1.3fr; }
.work__media { position: relative; align-self: start; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) * .7); overflow: hidden; background: var(--bg-3); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .work__media img { transform: scale(1.04); }
.work__media-note { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); }
@media (max-width: 1023px) {
	.work--has-img { grid-template-columns: minmax(180px, 1fr) 2fr; }
	.work--has-img .work__media { grid-column: 1 / -1; max-width: 640px; }
}
.onestop__media { position: relative; overflow: hidden; aspect-ratio: 21 / 9; margin: 0 0 clamp(56px, 7vw, 96px); border-radius: var(--radius); background: var(--bg-3); }
.onestop__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; object-position: center 40%; }
.img-note, .work__media-note { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); }
@media (max-width: 899px) { .onestop__media { aspect-ratio: 4 / 3; } }
.works__note { margin-top: 28px; font-size: 14px; line-height: 2; color: var(--muted); }
.supervision { margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 48px); background: #fff; border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.supervision__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; letter-spacing: .06em; }
@media (max-width: 899px) {
	.work, .work--has-img { grid-template-columns: 1fr; }
	.work--has-img .work__media { order: -1; max-width: none; }
	.work__meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
	.work__num { margin: 0 8px 0 0; }
}

/* ---------- Clients (logo marquee) ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.clients { padding-block: clamp(72px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.clients__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.clients__ja { font-size: 16px; font-weight: 900; letter-spacing: .1em; }
.logos {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__item { flex: 0 0 auto; display: flex; align-items: center; height: 96px; padding-inline: clamp(36px, 5vw, 80px); }
.logos__item img { width: auto; max-width: none; opacity: .72; transition: opacity .3s; }
.logos__item:hover img { opacity: 1; }
@media (max-width: 599px) {
	.logos__track { animation-duration: 26s; }
	.logos__item { height: 72px; padding-inline: 28px; }
	.logos__item img { transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
	.logos { -webkit-mask-image: none; mask-image: none; }
	.logos__track { width: auto; flex-wrap: wrap; justify-content: center; }
	.logos__item.is-dup { display: none; }
}

/* ---------- Approach ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(24px, 3vw, 48px); }
.step { display: flex; flex-direction: column; gap: 20px; }
.step__bar { display: block; height: 6px; border-radius: 3px; background: var(--c); transform-origin: left; }
.step__num { display: block; font-family: var(--en); font-size: clamp(56px, 7vw, 104px); line-height: 1; font-weight: 900; color: var(--c); }
.step__title { font-size: clamp(26px, 2.8vw, 40px); font-weight: 900; letter-spacing: .08em; line-height: 1.4; }
.step__text { font-size: clamp(15px, 1.3vw, 17px); line-height: 2.1; letter-spacing: .08em; color: var(--ink-2); }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Focus themes ---------- */
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); perspective: 1400px; }
.theme-card {
	min-height: 380px;
	padding: clamp(28px, 3vw, 48px);
	background: #fff; border-radius: var(--radius);
	display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
	transform-origin: bottom;
}
.theme-card__dot { width: 64px; height: 64px; border-radius: 50%; }
.theme-card__body { display: flex; flex-direction: column; gap: 18px; }
.theme-card__title { font-size: clamp(22px, 2vw, 28px); line-height: 1.6; font-weight: 900; letter-spacing: .06em; }
.theme-card__text { font-size: 16px; line-height: 2.1; letter-spacing: .08em; color: var(--ink-2); }
@media (max-width: 1023px) { .themes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 699px) {
	.themes { grid-template-columns: 1fr; }
	.theme-card { min-height: 0; gap: 32px; }
	.theme-card__dot { width: 48px; height: 48px; }
}

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(48px, 6vw, 96px); }
.why__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--bg-3); }
.why__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.why__body { display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 899px) {
	.why { grid-template-columns: 1fr; }
	.why__media { aspect-ratio: 4 / 3; }
}

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news-item {
	display: grid; grid-template-columns: 140px 1fr; gap: 8px 48px;
	padding: 28px 0; border-bottom: 1px solid var(--line);
	font-size: clamp(16px, 1.4vw, 18px); line-height: 1.9; letter-spacing: .06em; font-weight: 700;
}
.news-item time { font-family: var(--en); color: var(--muted); }
.news-item a { text-decoration: none; }
.news-item a:hover { text-decoration: underline; opacity: 1; }
@media (max-width: 599px) { .news-item { grid-template-columns: 1fr; padding: 22px 0; } }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 48px; height: 48px; padding: 0 12px;
	border: 2px solid var(--ink); border-radius: 999px;
	font-family: var(--en); font-weight: 800; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); color: #fff; }

/* ---------- Company ---------- */
.company { font-size: clamp(16px, 1.4vw, 18px); line-height: 2.1; letter-spacing: .08em; }
.company__row { display: grid; grid-template-columns: 180px 1fr; gap: 8px 48px; padding: 30px 0; border-top: 1px solid var(--line-2); }
.company__row:first-child { border-top: 2px solid var(--ink); }
.company__row:last-child { border-bottom: 2px solid var(--ink); }
.company dt { font-weight: 900; }
@media (max-width: 599px) { .company__row { grid-template-columns: 1fr; padding: 22px 0; } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding-block: clamp(120px, 16vw, 240px); }
.contact__wheel {
	--size: clamp(300px, 54vw, 860px);
	position: absolute; top: 50%; right: calc(var(--size) * -.36);
	width: var(--size); aspect-ratio: 1; margin-top: calc(var(--size) / -2);
}
.contact__wheel::before {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	background: conic-gradient(#E5483E 0 30deg, #EC6A2E 30deg 60deg, #EF9A2A 60deg 90deg, #E2C12C 90deg 120deg, #A6C43A 120deg 150deg, #4DAF4A 150deg 180deg, #22A37A 180deg 210deg, #1D9FA5 210deg 240deg, #2A86D1 240deg 270deg, #3F5FD8 270deg 300deg, #6D4ED6 300deg 330deg, #B04AC2 330deg 360deg);
	animation: wheel 60s linear infinite;
}
.contact__wheel span { position: absolute; inset: 24%; border-radius: 50%; background: #fff; }
.contact__inner { position: relative; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
@media (max-width: 899px) {
	.contact { padding-top: 260px; }
	.contact__wheel { --size: 300px; top: 0; margin-top: -60px; right: -90px; }
}
@media (max-width: 599px) {
	.contact .btn { flex: 1 1 100%; }
	.contact .btn--lg { min-height: 64px; font-size: 16px; padding: 0 28px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer__stripe { height: 6px; }
.site-footer .container { padding-block: clamp(64px, 8vw, 112px) 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px 40px; padding-bottom: clamp(48px, 7vw, 96px); }
.site-footer .brand { color: #fff; }
.site-footer__brand { display: flex; flex-direction: column; gap: 24px; }
.site-footer__addr { font-size: 15px; line-height: 2; color: #c3c8d4; }
.site-footer__col { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.site-footer__heading { font-weight: 900; margin-bottom: 12px; }
.site-footer__col a { color: #c3c8d4; text-decoration: none; padding: 6px 0; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
	padding-top: 28px; border-top: 1px solid #2c3446;
	font-size: 14px; color: #c3c8d4;
}
.site-footer__legal a { color: #c3c8d4; text-decoration: none; }
.site-footer__copy { font-family: var(--en); letter-spacing: .12em; font-size: 14px; }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 499px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Sub pages ---------- */
.page-hero { position: relative; }
.page-hero .container { padding-block: clamp(64px, 9vw, 128px) clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.page-hero__title { font-size: clamp(34px, 5vw, 72px); line-height: 1.4; font-weight: 900; letter-spacing: .05em; }
.page-hero__title--post { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.6; max-width: 980px; }
.page-hero__stripe { height: 6px; transform-origin: left; animation: wipe 1.4s cubic-bezier(.7, 0, .2, 1) .2s both; }

.entry { max-width: 820px; margin: 0 auto; font-size: clamp(16px, 1.3vw, 17px); line-height: 2.1; letter-spacing: .06em; }
.entry > * + * { margin-top: 1.6em; }
.entry h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.6; font-weight: 900; padding-top: .8em; }
.entry h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.6; font-weight: 900; }
.entry a { text-decoration: underline; text-underline-offset: .2em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry img, .entry__thumb img { border-radius: 16px; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 16px 12px; text-align: left; vertical-align: top; }
.entry__back { margin-top: 64px !important; }
.entry .wp-block-button__link { background: var(--ink); color: #fff; border-radius: 999px; padding: 16px 32px; font-weight: 900; text-decoration: none; }

/* ==========================================================
   Scroll motion
   1) Browsers with scroll-driven animations: pure CSS
   2) Others: JS adds html.no-sda + .is-inview (IntersectionObserver)
   ========================================================== */
.u-line { display: block; overflow: hidden; }
.u-line > span { display: block; }
.u-wipe { transform-origin: left; }

@supports (animation-timeline: view()) {
	.u-rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
	.u-line > span { animation: lineup linear both; animation-timeline: view(); animation-range: entry 15% cover 35%; }
	.u-wipe { animation: wipe linear both; animation-timeline: view(); animation-range: entry var(--s, 10%) cover var(--e, 35%); }
	.u-grow { animation: grow linear both; animation-timeline: view(); animation-range: entry var(--s, 0%) cover var(--e, 30%); }
	.u-tilt { animation: tiltin linear both; animation-timeline: view(); animation-range: entry var(--s, 0%) entry var(--e, 80%); }
	.u-pop { animation: pop linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
	.u-pv-root { view-timeline-name: --pv; }
	.u-parallax { animation: parallax linear both; animation-timeline: --pv; }
}

html.no-sda .u-rise { opacity: 0; transform: translateY(48px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.no-sda .u-line > span { transform: translateY(110%); transition: transform 1s var(--ease); }
html.no-sda .u-wipe { transform: scaleX(0); transition: transform 1.2s var(--ease); }
html.no-sda .u-grow { transform: scaleY(0); transition: transform 1.2s var(--ease) var(--delay, 0s); }
html.no-sda .u-tilt { opacity: 0; transform: rotateX(38deg) translateY(80px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.no-sda .u-pop { opacity: 0; transform: scale(.6); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
html.no-sda .u-rise.is-inview,
html.no-sda .u-tilt.is-inview,
html.no-sda .u-pop.is-inview { opacity: 1; transform: none; }
html.no-sda .u-line.is-inview > span { transform: none; }
html.no-sda .u-wipe.is-inview { transform: scaleX(1); }
html.no-sda .u-grow.is-inview { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.progress { display: none; }
}

/* ---------- Showreel (VR sample) ---------- */
.showreel { background: var(--ink); color: #fff; padding-block: var(--sec); }
.showreel .sec-head__title .h-statement { color: #fff; }
.lead--light { color: #c9cedb; }
.showreel__frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }
.showreel__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.showreel__sound {
	position: absolute; right: 16px; bottom: 16px;
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 48px; padding: 0 20px;
	border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(255, 255, 255, .92); color: var(--ink);
	font-family: var(--jp); font-size: 14px; font-weight: 900; letter-spacing: .08em;
}
.showreel__sound-icon { width: 10px; height: 10px; border-radius: 50%; background: #E5483E; }
.showreel__sound[aria-pressed="true"] .showreel__sound-icon { background: #22A37A; }
.showreel .img-note { top: 16px; bottom: auto; left: 16px; }
@media (max-width: 599px) { .showreel__frame { aspect-ratio: 4 / 3; } .showreel__sound { right: 12px; bottom: 12px; min-height: 44px; padding: 0 16px; font-size: 13px; } }

/* ---------- Samples (workshop content) ---------- */
.samples { background: var(--ink); color: #fff; padding-block: var(--sec); }
.samples .h-statement { color: #fff; }
.sample { margin: 0; }
.sample + .sample { margin-top: clamp(48px, 6vw, 88px); }
.sample__media { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; }
.sample__media--video { aspect-ratio: 16 / 9; }
.sample__media--photo { aspect-ratio: 3 / 2; }
.sample__media--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sample:hover .sample__media--photo img { transform: scale(1.03); }
.sample__tag {
	position: absolute; left: 16px; top: 16px;
	padding: 6px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: var(--ink);
	font-size: 13px; font-weight: 900; letter-spacing: .08em;
}
.sample__body { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; max-width: 760px; }
.sample__en { font-family: var(--en); font-size: 14px; font-weight: 800; letter-spacing: .2em; color: #aeb5c4; }
.sample__title { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.5; font-weight: 900; letter-spacing: .06em; }
.sample__text { font-size: clamp(15px, 1.3vw, 17px); line-height: 2.1; letter-spacing: .06em; color: #c9cedb; }
.sample--split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.sample--split .sample__body { padding-top: 0; }
@media (max-width: 899px) {
	.sample--split { grid-template-columns: 1fr; gap: 0; }
	.sample--split .sample__body { padding-top: 28px; }
}
@media (max-width: 599px) {
	.sample__media--video { aspect-ratio: 16 / 9; }
	.sample__tag { left: 12px; top: 12px; font-size: 12px; padding: 5px 12px; }
}
