/* OVERRISE サイト：ダーク×ネオン。外部読み込みなし（フォントは端末のもの） */

:root {
	--bg: #05060a;
	--bg2: #0a0c14;
	--line: rgba(255, 255, 255, .08);
	--text: #e8ecf5;
	--mute: #8a93a8;
	--cyan: #22d3ee;
	--violet: #8b5cf6;
	--pink: #e879f9;
	--grad: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 50%, var(--pink) 100%);
	--radius: 20px;
	--font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	line-height: 1.8;
	letter-spacing: .02em;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(139, 92, 246, .5); color: #fff; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 粒状のノイズとマウス追従の光 */
.noise {
	position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
	position: fixed; z-index: 0; pointer-events: none; width: 600px; height: 600px; border-radius: 50%;
	left: 0; top: 0; transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(139, 92, 246, .14) 0%, rgba(34, 211, 238, .06) 35%, transparent 70%);
	transition: opacity .4s; opacity: 0;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ナビ */
.nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px clamp(20px, 5vw, 56px);
	transition: background .3s, padding .3s, border-color .3s;
	border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
	background: rgba(5, 6, 10, .65); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
	border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .22em; font-size: 15px; }
.nav__logo { width: 26px; height: 26px; }
.nav__links { display: flex; gap: clamp(14px, 3vw, 34px); align-items: center; font-size: 14px; color: var(--mute); }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a:not(.nav__cta)::after {
	content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
	background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta { color: var(--text) !important; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); transition: border-color .2s, box-shadow .2s; }
.nav__cta:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(34, 211, 238, .35); }

/* ヒーロー */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before {
	content: ""; position: absolute; inset: -20%; z-index: -2;
	background:
		radial-gradient(40% 40% at 20% 30%, rgba(34, 211, 238, .18), transparent 70%),
		radial-gradient(35% 35% at 80% 20%, rgba(232, 121, 249, .16), transparent 70%),
		radial-gradient(50% 50% at 60% 80%, rgba(139, 92, 246, .18), transparent 70%);
	filter: blur(30px); animation: aurora 18s ease-in-out infinite alternate;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
@keyframes aurora {
	0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
	50% { transform: translate3d(3%, -2%, 0) rotate(8deg) scale(1.08); }
	100% { transform: translate3d(-3%, 2%, 0) rotate(-6deg) scale(1.02); }
}
.hero__inner { position: relative; text-align: center; padding: 100px 24px 140px; max-width: 1100px; }
.hero__inner::before { content: ""; position: absolute; inset: 10% -10%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(5, 6, 10, .75), transparent 75%); }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute);
	padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); backdrop-filter: blur(6px);
	animation: rise 1s .1s both cubic-bezier(.2, .8, .2, 1);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero__title {
	position: relative; margin: 28px 0 8px; font-size: clamp(56px, 13vw, 180px); font-weight: 900; line-height: .95; letter-spacing: .04em;
	background: linear-gradient(100deg, #fff 0%, #fff 30%, var(--cyan) 45%, var(--pink) 60%, #fff 75%, #fff 100%);
	background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
	animation: rise 1.1s .2s both cubic-bezier(.2, .8, .2, 1), shine 7s 1.4s linear infinite;
	filter: drop-shadow(0 0 40px rgba(139, 92, 246, .35));
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero__title::before, .hero__title::after {
	content: attr(data-text); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; opacity: 0;
}
.hero__title.glitch::before { opacity: .8; color: var(--cyan); -webkit-text-fill-color: var(--cyan); transform: translate(-4px, 0); clip-path: inset(10% 0 55% 0); }
.hero__title.glitch::after { opacity: .8; color: var(--pink); -webkit-text-fill-color: var(--pink); transform: translate(4px, 0); clip-path: inset(60% 0 8% 0); }
.hero__tagline { font-size: clamp(18px, 2.6vw, 30px); font-weight: 300; letter-spacing: .12em; color: #cfd5e6; animation: rise 1.1s .35s both cubic-bezier(.2, .8, .2, 1); }
.hero__tagline em { font-style: normal; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 26px; color: var(--mute); font-size: clamp(14px, 1.5vw, 17px); animation: rise 1.1s .5s both cubic-bezier(.2, .8, .2, 1); }
.hero__actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: rise 1.1s .65s both cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .06em; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s; }
.btn span { transition: transform .25s; }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--grad); color: #05060a; box-shadow: 0 10px 40px -10px rgba(139, 92, 246, .8); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(34, 211, 238, .8); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--pink); box-shadow: 0 0 30px rgba(232, 121, 249, .3); transform: translateY(-2px); }

.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* 流れる帯 */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; letter-spacing: .08em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); white-space: nowrap; transition: color .3s; }
.marquee__track span:nth-child(3n+1) { -webkit-text-stroke-color: rgba(34, 211, 238, .55); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* セクション共通 */
.section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: clamp(90px, 14vw, 160px) clamp(20px, 5vw, 56px); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__num { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.section__title { font-size: clamp(30px, 5vw, 60px); font-weight: 800; line-height: 1.3; letter-spacing: .02em; }
.ph { display: inline-block; }		/* 日本語の見出しを言葉の区切りでだけ折り返す */
.about .section__title { font-size: clamp(28px, 4vw, 52px); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: end; }
.about__body p { color: #b8c0d4; font-size: clamp(15px, 1.4vw, 17px); }
.about__body p + p { margin-top: 1.2em; }
.about__body strong { color: var(--text); font-weight: 600; background: linear-gradient(transparent 62%, rgba(139, 92, 246, .45) 62%); }

/* Services カード */
/* 5枚：上段3枚・下段2枚（6分割の格子で幅を割り当てる） */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { grid-column: span 2; }
.card:nth-child(n+4) { grid-column: span 3; }
.card {
	--x: 50%; --y: 50%;
	position: relative; padding: 34px 30px 36px; border-radius: var(--radius); overflow: hidden;
	background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
	border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s;
}
.card::before {
	content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none;
	background: radial-gradient(400px circle at var(--x) var(--y), rgba(139, 92, 246, .22), rgba(34, 211, 238, .08) 40%, transparent 70%);
}
.card::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .35s; pointer-events: none;
	background: radial-gradient(260px circle at var(--x) var(--y), var(--cyan), var(--pink) 50%, transparent 80%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-6px); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 26px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .25); box-shadow: 0 0 24px rgba(34, 211, 238, .15) inset; }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .6)); }
.card:nth-child(even) .card__icon { background: rgba(232, 121, 249, .08); border-color: rgba(232, 121, 249, .25); box-shadow: 0 0 24px rgba(232, 121, 249, .15) inset; }
.card:nth-child(even) .card__icon svg { stroke: var(--pink); filter: drop-shadow(0 0 6px rgba(232, 121, 249, .6)); }
.card h3 { font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.card__ja { font-size: 13px; color: var(--cyan); margin: 4px 0 16px; letter-spacing: .08em; }
.card:nth-child(even) .card__ja { color: var(--pink); }
.card p:last-child { color: #a5aec4; font-size: 15px; }

/* Approach */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 4%; right: 4%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), var(--pink), transparent); opacity: .5; }
.step { position: relative; padding-top: 74px; }
.step__no {
	position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	font-weight: 800; font-size: 15px; letter-spacing: .05em; background: var(--bg); border: 1px solid rgba(255, 255, 255, .2);
	box-shadow: 0 0 0 6px var(--bg), 0 0 30px rgba(139, 92, 246, .35);
}
.step:hover .step__no { border-color: var(--cyan); box-shadow: 0 0 0 6px var(--bg), 0 0 40px rgba(34, 211, 238, .6); }
.step h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.step p { color: #a5aec4; font-size: 15px; }

/* Contact */
.contact__box {
	position: relative; text-align: center; padding: clamp(56px, 9vw, 110px) clamp(24px, 6vw, 80px); border-radius: 32px; overflow: hidden;
	border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, rgba(139, 92, 246, .22), transparent 60%), var(--bg2);
}
.contact__box::before {
	content: ""; position: absolute; inset: -50%; z-index: -1; opacity: .5;
	background: conic-gradient(from 0deg, transparent, rgba(34, 211, 238, .25), transparent 30%, rgba(232, 121, 249, .25), transparent 60%);
	animation: spin 14s linear infinite;
}
.contact__box { isolation: isolate; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact__title { font-size: clamp(32px, 6vw, 72px); font-weight: 900; line-height: 1.15; letter-spacing: .01em; }
.contact__lead { margin-top: 18px; color: var(--mute); }
.contact__mail { margin-top: 40px; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.contact__addr {
	font-size: clamp(20px, 3.4vw, 36px); font-weight: 700; letter-spacing: .03em; padding: 14px 30px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .18); background: rgba(5, 6, 10, .5); transition: border-color .25s, box-shadow .25s;
}
.contact__addr:hover { border-color: var(--cyan); box-shadow: 0 0 40px rgba(34, 211, 238, .4); }
.contact__copy {
	font: inherit; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); cursor: pointer;
	padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; transition: border-color .25s, color .25s;
}
.contact__copy:hover { border-color: var(--pink); }
.contact__copy.is-done { border-color: var(--cyan); color: var(--cyan); }
.contact__noscript { margin-top: 18px; color: var(--mute); }

/* フッター */
.footer { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 56px) 50px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.footer__brand { font-weight: 800; letter-spacing: .3em; color: var(--text); }
.footer__top:hover { color: var(--cyan); }

/* スクロールで現れる */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1), filter 1s; }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* 画面幅 */
@media (max-width: 960px) {
	.about { grid-template-columns: 1fr; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.card, .card:nth-child(n+4) { grid-column: span 1; }
	.card:last-child { grid-column: span 2; }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
	.steps::before { display: none; }
}
@media (max-width: 640px) {
	.nav__links a:not(.nav__cta) { display: none; }
	.cards, .steps { grid-template-columns: 1fr; }
	.card, .card:nth-child(n+4), .card:last-child { grid-column: auto; }
	.cursor-glow { display: none; }
}

/* 動きを減らす設定の人には止める */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; filter: none; }
}

/* ===== Works（トップの作品欄） ===== */
.works__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.work {
	--x: 50%; --y: 50%;
	position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
	border: 1px solid var(--line); background: var(--bg2); transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .4s, box-shadow .4s;
}
.work:hover { transform: translateY(-8px); border-color: rgba(34, 211, 238, .4); box-shadow: 0 30px 80px -30px rgba(139, 92, 246, .6); }
.work::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
	background: radial-gradient(500px circle at var(--x) var(--y), rgba(34, 211, 238, .12), transparent 60%);
}
.work:hover::after { opacity: 1; }
.work__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.work__media img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .6s; filter: saturate(1.1) contrast(1.05); }
.work__media--doko img { object-fit: contain; image-rendering: auto; background: #1a0f08; }
.work:hover .work__media img { transform: scale(1.08); }
.work__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 12, 20, .95)); }
.work__body { position: relative; padding: 8px 32px 34px; margin-top: -40px; z-index: 1; }
.work__tag { display: inline-block; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--cyan); padding: 5px 12px; border: 1px solid rgba(34, 211, 238, .35); border-radius: 999px; background: rgba(5, 6, 10, .6); }
.work:nth-child(even) .work__tag { color: var(--pink); border-color: rgba(232, 121, 249, .35); }
.work__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; letter-spacing: .04em; margin: 14px 0 10px; }
.work__body p:not(.work__tag) { color: #a5aec4; font-size: 15px; }
.work__more { display: inline-flex; gap: 8px; margin-top: 18px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.work__more span { transition: transform .3s; }
.work:hover .work__more span { transform: translateX(5px); }

/* ===== 作品ページ（works/*.html） ===== */
.sub-hero { position: relative; min-height: 78vh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.sub-hero__bg { position: absolute; inset: 0; z-index: -2; }
.sub-hero__bg img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: saturate(1.15) brightness(.55); transform: scale(1.05); animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.15) translate(-2%, -1%); } }
.sub-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 6, 10, .3) 0%, rgba(5, 6, 10, .2) 40%, var(--bg) 100%), radial-gradient(60% 60% at 20% 80%, rgba(139, 92, 246, .35), transparent 70%); }
.sub-hero__inner { max-width: 1200px; width: 100%; margin: 0 auto; padding: 140px clamp(20px, 5vw, 56px) 70px; }
.sub-hero__back { display: inline-flex; gap: 8px; font-size: 13px; letter-spacing: .15em; color: var(--mute); margin-bottom: 28px; transition: color .2s; }
.sub-hero__back:hover { color: var(--cyan); }
.sub-hero__title {
	position: relative; font-size: clamp(56px, 11vw, 150px); font-weight: 900; line-height: 1; letter-spacing: .06em;
	background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--cyan) 55%, var(--pink) 70%, #fff 85%); background-size: 250% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; filter: drop-shadow(0 0 30px rgba(139, 92, 246, .5));
}
.sub-hero__title--ja { font-size: clamp(40px, 7vw, 96px); letter-spacing: .04em; }
.sub-hero__title::before, .sub-hero__title::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; }
.sub-hero__title.glitch::before { opacity: .8; -webkit-text-fill-color: var(--cyan); transform: translate(-4px, 0); clip-path: inset(10% 0 55% 0); }
.sub-hero__title.glitch::after { opacity: .8; -webkit-text-fill-color: var(--pink); transform: translate(4px, 0); clip-path: inset(60% 0 8% 0); }
.sub-hero__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.chip { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(5, 6, 10, .5); backdrop-filter: blur(6px); }
.chip--c { color: var(--cyan); border-color: rgba(34, 211, 238, .4); }
.chip--p { color: var(--pink); border-color: rgba(232, 121, 249, .4); }

.story { font-size: clamp(18px, 2.2vw, 26px); line-height: 2.1; font-weight: 500; color: #d6dcec; max-width: 900px; }
.story em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

.worlds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.world { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000; grid-column: span 2; aspect-ratio: 4 / 3; }
.world:nth-child(n+4) { grid-column: span 3; aspect-ratio: 16 / 9; }
.world img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform 1s cubic-bezier(.2, .8, .2, 1), filter .5s; filter: brightness(.75) saturate(1.1); }
.world:hover img { transform: scale(1.08); filter: brightness(.95) saturate(1.2); }
.world__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 20px; background: linear-gradient(transparent, rgba(5, 6, 10, .92)); }
.world__en { font-size: 11px; letter-spacing: .3em; color: var(--cyan); }
.world:nth-child(even) .world__en { color: var(--pink); }
.world__name { font-size: 22px; font-weight: 800; margin: 2px 0 4px; }
.world__desc { font-size: 13px; color: #b0b8cc; line-height: 1.7; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); }
.feature__no { font-size: 13px; font-weight: 800; letter-spacing: .2em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature h3 { font-size: 21px; font-weight: 800; margin: 10px 0 10px; }
.feature p { color: #a5aec4; font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; image-rendering: pixelated; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.gallery figure:hover img { transform: scale(1.06); }
.mapfig { margin-top: 14px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #f3f3f3; }
.mapfig img { display: block; width: 100%; max-width: 900px; margin: 0 auto; filter: invert(1) hue-rotate(180deg) contrast(1.1); mix-blend-mode: normal; }
.mapfig { background: #0b0b0b; }
.mapfig figcaption { padding: 14px 20px; font-size: 13px; color: var(--mute); border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split__media { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(232, 121, 249, .5); background: #1a0f08; }
.split__media img { display: block; width: 100%; }
.split__body p { color: #b8c0d4; }
.split__body p + p { margin-top: 1.1em; }
.split__chara { width: 120px; float: right; margin: 0 0 10px 16px; filter: drop-shadow(0 0 20px rgba(232, 121, 249, .4)); }

.cta-band { text-align: center; padding: clamp(50px, 8vw, 90px) 24px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, rgba(34, 211, 238, .18), transparent 60%), var(--bg2); }
.cta-band h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 900; margin-bottom: 14px; }
.cta-band p { color: var(--mute); margin-bottom: 30px; }

@media (max-width: 960px) {
	.works__grid, .split { grid-template-columns: 1fr; }
	.worlds { grid-template-columns: 1fr 1fr; }
	.world, .world:nth-child(n+4) { grid-column: span 1; aspect-ratio: 4 / 3; }
	.world:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
	.features { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.worlds { grid-template-columns: 1fr; }
	.world, .world:nth-child(n+4), .world:last-child { grid-column: auto; aspect-ratio: 4 / 3; }
	.work__body { padding: 8px 22px 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.sub-hero__bg img { animation: none; }
}

/* 手描きの開発資料：反転して黒地に光る線で見せる */
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.notes figure { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.notes img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: invert(1) sepia(1) saturate(4) hue-rotate(140deg) brightness(.95) contrast(1.2); transition: filter .5s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.notes figure:nth-child(even) img { filter: invert(1) sepia(1) saturate(4) hue-rotate(250deg) brightness(.95) contrast(1.2); }
.notes figure:hover img { transform: scale(1.06); filter: invert(1) brightness(1.1) contrast(1.2); }
.notes figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 11px; letter-spacing: .25em; color: var(--text); text-shadow: 0 0 10px #000; }
@media (max-width: 960px) { .notes { grid-template-columns: 1fr 1fr; } }
.sub-hero__bg--soft img { image-rendering: auto; filter: blur(6px) saturate(1.2) brightness(.4); }
