/*
Theme Name: NEOCITY DEVELOPMENT(制作サンプル)
Theme URI: https://tribal-works.com/sample/
Author: TRIBAL WORKS
Description: 都市開発デベロッパー向けの制作サンプル。3Dのワイヤーフレームの街(Canvas)をメインビジュアルにした、没入型のコーポレートサイト。※社名・内容はすべて架空です。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: neocity
*/

:root {
	--bg: #05070d; --ink: #e8efff; --muted: #8a97b5; --line: rgba(150, 190, 255, .16); --line-strong: rgba(150, 190, 255, .32);
	--accent: #4d8bff; --accent2: #9cc0ff; --panel: rgba(8, 14, 30, .72); --on-accent: #fff;
	--f-display: "Space Grotesk", "Noto Sans JP", sans-serif;
	--f-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, monospace;
	--gut: clamp(18px, 4vw, 64px);
	--header-bg: rgba(5, 7, 13, .6); --menu-bg: rgba(5, 7, 13, .97); --footer-bg: rgba(5, 7, 13, .86);
	--intro-bg: #05070d;
}
body.theme-neocity { background: #05070d; }
.m-btn--lg { padding: 22px 46px; font-size: .9rem; }
.m-btn { border-radius: 4px; }
.m-btn::before { border-radius: 2px; }
.m-btn--fill:hover { color: #fff; }

/* ---------- 街(画面全体に固定) ---------- */
.n-city { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; background: #05070d; }
.n-fog { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 7, 13, .0), rgba(5, 7, 13, .0) 30%, rgba(5, 7, 13, .6)); opacity: calc(.15 + var(--sp, 0) * 1.6); }
.m-main, .m-footer { position: relative; z-index: 2; }
.m-pagehead { background: rgba(5, 7, 13, .7); }
body:not(.home) .m-main { background: #05070d; }

/* ---------- ヒーロー ---------- */
.n-hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: end; padding: 120px var(--gut) clamp(90px, 10vw, 130px); position: relative; }
.n-hero__inner { max-width: 1560px; width: 100%; margin-inline: auto; }
.n-hero__label { margin-bottom: clamp(16px, 2.4vw, 30px); }
.n-hero__title { font-family: var(--f-display); font-weight: 700; line-height: .92; letter-spacing: -.035em; text-transform: uppercase; display: grid; }
.n-hero__l { font-size: clamp(2.6rem, 10.5vw, 11.5rem); }
.n-hero__l--em { color: var(--accent2); -webkit-text-stroke: 0; text-shadow: 0 0 60px rgba(77, 139, 255, .5); }
.n-hero__row { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 64px); align-items: end; margin-top: clamp(24px, 3.6vw, 48px); }
.n-hero__ja { font-weight: 900; font-size: clamp(1.1rem, 2.2vw, 2rem); letter-spacing: .12em; border-left: 3px solid var(--accent); padding-left: 16px; }
.n-hero__lead { color: var(--muted); max-width: 560px; font-size: clamp(.84rem, 1.1vw, .98rem); }
.n-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1000px) { .n-hero__row { grid-template-columns: 1fr; align-items: start; } }
.n-hud { position: absolute; right: var(--gut); top: 110px; display: grid; gap: 10px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; color: var(--muted); text-align: right; }
.n-hud li { display: grid; }
.n-hud span { font-size: .56rem; letter-spacing: .3em; opacity: .7; }
.n-hud b { font-weight: 500; font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.n-scroll { position: absolute; left: var(--gut); bottom: 30px; display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .3em; color: var(--muted); }
.n-scroll i { display: block; width: 44px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); transform-origin: 0 50%; animation: n-slide 2.2s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes n-slide { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1) translateX(20px); opacity: 0; } }
@media (max-width: 899px) { .n-hud { display: none; } .n-scroll { display: none; } }

/* ---------- ビジョン ---------- */
.n-vision { padding-block: clamp(100px, 16vw, 240px); }
.n-vision__text { font-size: clamp(1.4rem, 3.4vw, 3rem); line-height: 1.75; font-weight: 700; margin-top: 26px; max-width: 1280px; }
.n-vision__text .ws.on { text-shadow: 0 0 24px rgba(77, 139, 255, .45); }

/* ---------- 見出し ---------- */
.n-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(28px, 5vw, 64px); }
.n-h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 5vw, 4.4rem); line-height: 1.2; margin-top: 16px; letter-spacing: -.01em; }

/* ---------- プロジェクト ---------- */
.n-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 32px); }
.n-card:nth-child(even) { margin-top: clamp(30px, 6vw, 90px); }
.n-card a { display: block; padding: clamp(18px, 2vw, 28px); border: 1px solid var(--line); background: var(--panel); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 6px; transition: transform .35s ease-out, border-color .4s; will-change: transform; }
.n-card a:hover { border-color: var(--accent); }
.n-card__art { position: relative; aspect-ratio: 2 / 1; color: var(--accent2); background: linear-gradient(180deg, rgba(77, 139, 255, .06), rgba(77, 139, 255, .0)), repeating-linear-gradient(0deg, transparent 0 23px, rgba(150, 190, 255, .07) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, rgba(150, 190, 255, .07) 23px 24px); border: 1px solid var(--line); border-radius: 3px; padding: 10px; margin-bottom: 20px; }
.n-card__art svg { width: 100%; height: 100%; }
.n-card__art path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: n-draw 2.4s cubic-bezier(.65, 0, .35, 1) forwards; }
.n-card.is-in .n-card__art path { animation-play-state: running; }
.n-card:not(.is-in) .n-card__art path { animation-play-state: paused; }
@keyframes n-draw { to { stroke-dashoffset: 0; } }
.n-card__no { position: absolute; left: 12px; top: 8px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .26em; color: var(--muted); }
.n-card__type { position: absolute; right: 12px; top: 8px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; padding: 2px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent2); }
.n-card__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.7rem); line-height: 1.4; margin-bottom: 14px; }
.n-card__spec { display: grid; border-top: 1px solid var(--line); }
.n-card__spec div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.n-card__spec dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; color: var(--muted); padding-top: 3px; }
@media (max-width: 800px) { .n-grid { grid-template-columns: 1fr; } .n-card:nth-child(even) { margin-top: 0; } }

/* ---------- タイムライン(固定して、年が進む) ---------- */
.n-timeline { height: 420vh; position: relative; }
.n-timeline__stick { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; }
.n-timeline__inner { position: relative; }
.n-timeline__year { font-family: var(--f-display); font-weight: 700; font-size: clamp(6rem, 24vw, 26rem); line-height: .85; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.4px rgba(156, 192, 255, .75); margin: 10px 0 0 -.04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 80px rgba(77, 139, 255, .25); }
.n-timeline__steps { position: relative; min-height: 190px; max-width: 640px; margin-top: 20px; background: rgba(5, 7, 13, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 20px 24px; border-left: 3px solid var(--accent); }
.n-step { position: absolute; left: 24px; right: 24px; top: 20px; opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .8s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.n-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.n-step h3 { font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 1.6rem); margin-bottom: 8px; }
.n-step p { color: var(--muted); font-size: .92rem; }
.n-timeline__bar { margin-top: 30px; height: 2px; background: var(--line); max-width: 640px; }
.n-timeline__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 14px var(--accent); }
@media (max-width: 700px) { .n-timeline { height: 360vh; } .n-timeline__steps { min-height: 230px; } }

/* ---------- 数字 ---------- */
.n-numbers { background: linear-gradient(180deg, rgba(5, 7, 13, .0), rgba(5, 7, 13, .78) 20%, rgba(5, 7, 13, .78)); }
.n-nums { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; border-top: 1px solid var(--line-strong); }
.n-nums li { padding: 36px 20px 36px 24px; border-right: 1px solid var(--line); }
.n-nums li:first-child { padding-left: 0; } .n-nums li:last-child { border-right: 0; }
.n-nums b { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 7vw, 7rem); line-height: 1; letter-spacing: -.04em; color: #fff; text-shadow: 0 0 40px rgba(77, 139, 255, .45); }
.n-nums span { font-family: var(--f-mono); font-size: .9rem; margin-left: 6px; color: var(--accent2); }
.n-nums p { margin-top: 12px; color: var(--muted); font-size: .84rem; }
@media (max-width: 820px) { .n-nums { grid-template-columns: 1fr 1fr; } .n-nums li { border-bottom: 1px solid var(--line); padding-left: 0 !important; } }

/* ---------- お知らせ / CTA ---------- */
.n-news { background: rgba(5, 7, 13, .78); }
.n-cta { padding-block: clamp(100px, 16vw, 240px); text-align: center; background: linear-gradient(180deg, rgba(5, 7, 13, .78), rgba(5, 7, 13, .3)); }
.n-cta .m-label::before { display: none; }
.n-cta__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 11vw, 12rem); line-height: .94; letter-spacing: -.04em; margin: 26px 0; text-shadow: 0 0 80px rgba(77, 139, 255, .4); }
.n-cta__lead { max-width: 560px; margin: 0 auto 40px; color: var(--muted); }
