/* ============================================================================
 * home-future.css
 * KIコーポレーション HOME 未来型デザイン（2026-09-26）
 * ----------------------------------------------------------------------------
 * 世界観：「AIシステムの内部」。ロゴを AI CORE とし、各セクションを
 * コアにつながった「モジュール」として見せる。
 *
 * 【読み込み】functions.php の ki_corp_home_future_assets() が HOME のときだけ
 *   読み込む。KI_HOME_FUTURE を false にすると従来の home-style-v1.css に戻る。
 * 【前提】WordPress本文・URL・ロゴ画像・PHPテンプレートは一切変更しない。
 *   本文の各セクションを CSS のセレクタで特定して見た目を変える。
 * 【JSとの関係】このCSSだけで、暗い背景・ガラスのパネル・カード・文字・余白は
 *   成立する（JSが動かなくても通常のHOMEとして読める）。
 *   背景のAIネットワーク（Canvas）、データの背骨、HUDラベル、チップのフレーム、
 *   動きは home-future.js が追加する「上乗せ」。
 *   「スクロールで出現する要素を最初に隠す」ルールは、<html> に .kf-motion が
 *   付いているとき（＝JSが動いていて、動きを減らす設定でないとき）だけ有効。
 *
 * 【モジュールと本文の対応】
 *   SYS.00 AI CORE      … .entry-content > .ki-logo-stage（ロゴ画像）
 *   MOD.01 OPERATIONS   … .ki-hero-light（EC・SNS業務代行センター）
 *   MOD.02 AI MODULE    … .ki-utility-hero（AI・ITよろず相談）
 *   MOD.03 DIAGNOSTICS  … .ki-utility-hero + .ki-section（お悩み）
 *   MOD.04 SERVICES     … #work（業務カード5枚）
 *   MOD.05 CAPABILITIES … #work + .ki-section（サービスの特徴）
 *   MOD.06 PIPELINE     … #work + .ki-section + .ki-section（利用の流れ）
 *   MOD.07 STACK        … .ki-section:has(> .wp-block-columns)（支える技術）
 *   MOD.08 CONNECT      … .ki-cta-dark（CTA）
 * ============================================================================ */

/* ============================================================================
 * 0. カラーパレット・基本値
 * ============================================================================ */
body.home {
	--kf-void: #05070E;
	--kf-deep: #0A1020;
	--kf-panel: rgba(17, 26, 48, 0.58);
	--kf-panel-edge: rgba(130, 170, 255, 0.16);
	--kf-line: rgba(130, 170, 255, 0.14);
	--kf-text: #E9EEF9;
	--kf-text-2: #A9B5CD;
	--kf-text-3: #6E7C99;
	--kf-cyan: #3EE3F2;
	--kf-blue: #4F7BFF;
	--kf-violet: #8C6BFF;
	--kf-gold: #D8C189;
	--kf-amber: #F2B866;
	--kf-f-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
	--kf-f-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	--kf-f-label: "Space Grotesk", "Noto Sans JP", sans-serif;
	--kf-f-mono: "IBM Plex Mono", ui-monospace, monospace;
	--kf-gutter: clamp(16px, 5vw, 64px);
	--kf-gap: clamp(72px, 9vw, 128px);           /* モジュール間（データの背骨の区間） */
	--kf-hud-gap: clamp(18px, 2.4vw, 28px);      /* HUDラベルと中身の間 */
	--kf-hud-space: calc(22px + 11px + var(--kf-hud-gap));   /* 中央そろえのHUDラベル用に確保する高さ */
	--kf-ease: cubic-bezier(0.16, 0.84, 0.3, 1);

	color: var(--kf-text-2);
	font-family: var(--kf-f-body);
	font-size: clamp(15px, 0.9rem + 0.15vw, 16px);
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
	/* JSが動かない場合の背景（JSが動くと .kf-bg が上に重なる） */
	background-color: var(--kf-void);
	background-image:
		radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79, 123, 255, 0.10), transparent 70%),
		linear-gradient(rgba(130, 170, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(130, 170, 255, 0.035) 1px, transparent 1px);
	background-size: 100% 100%, 64px 64px, 64px 64px;
	background-attachment: fixed;
}
html:has(body.home) {
	background: #05070E;
}
@media (max-width: 767px) {
	body.home {
		--kf-hud-space: calc(11px + var(--kf-hud-gap));
	}
}

/* Kadence の白い背景・枠を透明にして、ページ全体を一つの空間にする */
body.home #wrapper {
	position: relative;
	z-index: 1;
	background: transparent;
}
body.home #inner-wrap {
	overflow-x: clip;
	background: transparent;
}
body.home .site,
body.home .content-area,
body.home .content-container,
body.home .content-bg,
body.home .entry-content-wrap {
	background: transparent !important;
	box-shadow: none !important;
}
body.home .entry-hero {
	display: none;
}
body.home .content-area {
	margin-top: 0;
	margin-bottom: 0;
}
body.home .content-bg > .entry-content-wrap {
	padding-top: 0;
	padding-bottom: 0;
}
@media (max-width: 767px) {
	body.home .content-bg > .entry-content-wrap {
		padding-left: 8px;
		padding-right: 8px;
	}
}
body.home .entry-content {
	position: relative;
}

/* 文字の基本 */
body.home .entry-content :is(h1, h2, h3) {
	font-family: var(--kf-f-head);
	color: var(--kf-text);
	font-weight: 700;
	font-feature-settings: "palt";
	letter-spacing: 0.03em;
	margin: 0;
}
body.home .entry-content p {
	margin: 0;
}
body.home .entry-content a {
	color: inherit;
	text-decoration: none;
}

/* ============================================================================
 * 1. 背景レイヤー（JSが .kf-bg を body の先頭に追加する）
 *    L1 背景（光だまり）→ L2 グリッド → L3 AIネットワーク（Canvas）
 * ============================================================================ */
.kf-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.kf-bg-base {
	position: absolute;
	inset: -10%;
	background:
		radial-gradient(ellipse 45% 38% at 8% 12%, rgba(62, 227, 242, 0.09), transparent 70%),
		radial-gradient(ellipse 40% 45% at 94% 70%, rgba(140, 107, 255, 0.08), transparent 70%),
		radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79, 123, 255, 0.10), transparent 70%),
		linear-gradient(180deg, #0A1020 0%, #05070E 55%, #070A14 100%);
	translate: calc(var(--kf-mx, 0) * 3%) calc(var(--kf-my, 0) * 3%);
	transition: translate 1.2s ease-out;
}
.kf-bg-grid {
	position: absolute;
	left: 0;
	right: 0;
	top: -256px;
	bottom: -256px;
	background-image:
		linear-gradient(rgba(130, 170, 255, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(130, 170, 255, 0.07) 1px, transparent 1px),
		linear-gradient(rgba(130, 170, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(130, 170, 255, 0.035) 1px, transparent 1px);
	background-size: 256px 256px, 256px 256px, 64px 64px, 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 0, 0, 0.35) 0%, #000 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 0, 0, 0.35) 0%, #000 75%);
	transform: translate3d(calc(var(--kf-mx, 0) * 3px), calc(var(--kf-grid-y, 0px) + var(--kf-my, 0) * 3px), 0);
}
.kf-bg canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ============================================================================
 * 2. ヘッダー・フッター（HOMEのみ、世界観に合わせる）
 * ============================================================================ */
body.home #masthead {
	position: relative;
	z-index: 5;
	background: rgba(5, 7, 14, 0.72) !important;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(130, 170, 255, 0.10) !important;
}
body.home #masthead :is(.site-header-wrap, .site-header-inner-wrap, .site-header-upper-wrap, .site-header-upper-inner-wrap, .site-main-header-wrap, .site-header-row-container-inner, .site-header-row) {
	background: transparent !important;
	border: 0 !important;
}
body.home #masthead .site-main-header-inner-wrap {
	min-height: 64px !important;
}
body.home .site-branding .site-title {
	font-family: var(--kf-f-head) !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.02em;
	color: var(--kf-text) !important;
}
body.home #primary-menu > li > a {
	position: relative;
	font-family: var(--kf-f-label);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kf-text-2) !important;
}
body.home #primary-menu > li > a:hover {
	color: var(--kf-text) !important;
}
body.home #primary-menu > li.current-menu-item > a {
	color: var(--kf-text) !important;
}
body.home #primary-menu > li.current-menu-item > a::after {
	content: "";
	position: absolute;
	left: 1.2em;
	right: 1.2em;
	bottom: 0.9em;
	height: 1px;
	background: linear-gradient(90deg, var(--kf-cyan), var(--kf-blue));
}
body.home #mobile-header .site-main-header-inner-wrap {
	min-height: 56px !important;
}
body.home #mobile-header .site-title {
	font-size: 15px !important;
}
body.home .mobile-toggle-open-container .menu-toggle-open {
	color: var(--kf-text-2) !important;
}
body.home #mobile-drawer .drawer-inner {
	background: rgba(5, 7, 14, 0.96) !important;
}
body.home #mobile-drawer .drawer-inner a {
	color: var(--kf-text) !important;
	font-family: var(--kf-f-label);
	letter-spacing: 0.12em;
}
body.home #colophon {
	position: relative;
	margin-top: var(--kf-gap);
	background: rgba(5, 7, 14, 0.6) !important;
	border-top: 1px solid var(--kf-line);
	color: var(--kf-text-3) !important;
}
body.home #colophon :is(.site-footer-wrap, .site-footer-row-container-inner, .site-bottom-footer-wrap, .site-footer-row-container) {
	background: transparent !important;
	border: 0 !important;
}
body.home #colophon a {
	color: var(--kf-text-2) !important;
}

/* ============================================================================
 * 3. モジュール共通（間隔・ガラスパネル・HUDラベル・データの背骨）
 * ============================================================================ */
body.home .ki-home {
	margin-top: 0;
}
body.home .ki-home > .ki-hero,
body.home .ki-home > .ki-utility-hero,
body.home .ki-home > .ki-section {
	position: relative;
	z-index: 1;
	margin-top: var(--kf-gap) !important;
	margin-bottom: 0 !important;
}
body.home .ki-home > .ki-hero {
	background: none !important;
	padding: 0;
}
body.home .ki-home > .ki-section:not(.ki-cta-dark) {
	padding: var(--kf-hud-space) 0 0 !important;
	background: none !important;
	border: 0;
}
body.home .ki-hero-blobs,
body.home .ki-blob {
	display: none !important;
}
/* ガラスパネル（AI MODULE・お悩み・カード・特徴・流れ・技術・CTA） */
body.home :is(.ki-utility-hero, .ki-utility-hero + .ki-section > ul, #work + .ki-section .ki-card, #work + .ki-section + .ki-section .ki-card, .ki-section:has(> .wp-block-columns) .wp-block-column, .ki-cta-dark) {
	position: relative;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%), var(--kf-panel) !important;
	border: 1px solid var(--kf-panel-edge) !important;
	border-radius: 16px !important;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px rgba(0, 0, 0, 0.35) !important;
}
@media (max-width: 767px) {
	body.home :is(.ki-utility-hero, .ki-utility-hero + .ki-section > ul, #work + .ki-section .ki-card, #work + .ki-section + .ki-section .ki-card, .ki-section:has(> .wp-block-columns) .wp-block-column, .ki-cta-dark) {
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}
}

/* ガラスパネルの上辺の光の縁 */
body.home :is(.ki-utility-hero + .ki-section > ul, #work + .ki-section .ki-card, #work + .ki-section + .ki-section .ki-card, .ki-cta-dark)::before {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	top: -1px;
	height: 1px;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(62, 227, 242, 0.55), transparent);
}

/* 見出し・リード文 */
body.home .ki-home > .ki-section > h2,
body.home #work > h2 {
	font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem);
	line-height: 1.45;
	text-align: center !important;
	text-wrap: balance;
}
body.home #work > p {
	max-width: 44em;
	margin: clamp(12px, 1.6vw, 18px) auto 0;
	color: var(--kf-text-2);
	text-align: center !important;
	text-wrap: pretty;
}
@media (max-width: 767px) {
	body.home .ki-home > .ki-section:not(.ki-cta-dark) > h2,
	body.home #work > p {
		text-align: left !important;
		padding-left: 26px;
		margin-left: 0;
	}
}

/* HUDラベル（JSが追加する装飾。読み上げ対象外） */
.kf-hud {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	font: 500 11px/1 var(--kf-f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--kf-text-3);
	pointer-events: none;
}
.kf-hud b {
	color: var(--kf-cyan);
	font-weight: 500;
}
.kf-hud::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--kf-line), transparent);
	transform-origin: left;
}
.kf-hud .kf-st {
	order: 3;
	margin-left: auto;
}
.kf-hud .kf-st::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 8px;
	vertical-align: 1px;
	border-radius: 50%;
	background: var(--kf-cyan);
	box-shadow: 0 0 8px var(--kf-cyan);
}
.kf-hud--out {
	top: calc(-11px - var(--kf-hud-gap));
}
/* style.css の「.ki-hero-light > *」「.ki-cta-dark > *」（position: relative）より優先させる */
body.home .kf-mod > .kf-hud {
	position: absolute;
	z-index: 2;
}
@media (min-width: 768px) {
	.kf-hud--in {
		top: 22px;
	}
	.kf-hud--center {
		justify-content: center;
	}
	.kf-hud--center::before {
		content: "";
		width: 48px;
		height: 1px;
		background: linear-gradient(90deg, transparent, var(--kf-line));
	}
	.kf-hud--center::after,
	.kf-hud--center .kf-st {
		display: none;
	}
}
@media (max-width: 767px) {
	.kf-hud {
		padding-left: 26px;
	}
	.kf-hud .kf-st {
		display: none;
	}
}

/* データの背骨（JSが .entry-content に SVG を追加する） */
.kf-spine {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	overflow: visible;
}
.kf-spine .kf-sp-base {
	fill: none;
	stroke: rgba(62, 227, 242, 0.18);
	stroke-width: 1;
}
.kf-spine .kf-sp-lit {
	fill: none;
	stroke: rgba(62, 227, 242, 0.75);
	stroke-width: 1.5;
	filter: drop-shadow(0 0 5px rgba(62, 227, 242, 0.7));
}
.kf-spine .kf-sp-pulse {
	fill: none;
	stroke: #BDF7FC;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-dasharray: 26 2000;
	opacity: 0;
	filter: drop-shadow(0 0 6px #3EE3F2) drop-shadow(0 0 14px rgba(79, 123, 255, 0.8));
}
.kf-spine .kf-sp-node {
	fill: #05070E;
	stroke: rgba(62, 227, 242, 0.45);
	stroke-width: 1.5;
	transition: stroke 0.6s ease, filter 0.6s ease;
}
.kf-spine .kf-sp-node.is-on {
	stroke: var(--kf-cyan);
	filter: drop-shadow(0 0 6px rgba(62, 227, 242, 0.9));
}

/* ボタン（style.css の !important 指定を上書き） */
body.home .ki-home .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 14px;
}
body.home .ki-home .wp-block-button__link,
body.home .ki-home .wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	position: relative;
	overflow: hidden;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 30px !important;
	border-radius: 999px !important;
	font-family: var(--kf-f-head);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #041018 !important;
	background: linear-gradient(90deg, var(--kf-cyan), var(--kf-blue)) !important;
	border: 0 !important;
	box-shadow: 0 8px 30px rgba(62, 227, 242, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
	transition: translate 0.25s ease, box-shadow 0.25s ease;
}
body.home .ki-home .wp-block-button__link:hover {
	transform: none;
	translate: 0 -2px;
	box-shadow: 0 12px 38px rgba(62, 227, 242, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}
body.home .ki-home .is-style-outline .wp-block-button__link {
	color: var(--kf-text) !important;
	background: rgba(17, 26, 48, 0.4) !important;
	border: 1px solid rgba(130, 170, 255, 0.35) !important;
	box-shadow: none;
}
body.home .ki-home .is-style-outline .wp-block-button__link:hover {
	border-color: rgba(62, 227, 242, 0.6) !important;
	box-shadow: 0 0 24px rgba(62, 227, 242, 0.15);
}
body.home .ki-home .wp-block-button__link:focus-visible,
body.home .ki-service-card:focus-visible {
	outline: 2px solid var(--kf-cyan);
	outline-offset: 3px;
}
/* クリック時の光の波紋（JSが .kf-ripple を追加） */
.kf-ripple {
	position: absolute;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(62, 227, 242, 0.25) 45%, transparent 70%);
	animation: kf-ripple 0.55s ease-out forwards;
}
@keyframes kf-ripple {
	from { transform: scale(1); opacity: 1; }
	to { transform: scale(22); opacity: 0; }
}

/* ============================================================================
 * 4. SYS.00 AI CORE（ロゴステージ）
 * ============================================================================ */
body.home .entry-content > .ki-logo-stage {
	--kf-core-top: clamp(40px, 6vw, 88px);
	--kf-core-pad: clamp(28px, 4vw, 56px);
	position: relative;
	z-index: 1;
	width: var(--global-vw, 100vw);
	max-width: 100vw;
	margin: 0 calc(50% - var(--global-vw, 100vw) / 2) !important;
	padding: calc(var(--kf-core-top) + 11px + var(--kf-hud-gap) + var(--kf-core-pad)) clamp(24px, 13vw, 200px) calc(var(--kf-core-pad) + 30px);
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	perspective: 1400px;
}
body.home .ki-logo-stage > .kf-hud {
	top: var(--kf-core-top);
	left: 50%;
	right: auto;
	width: min(100% - var(--kf-gutter) * 2, 1180px);
	translate: -50% 0;
	padding-left: 0;
}
/* ロゴ画像の白い面＝AI CORE の表面（画像ファイルは加工しない） */
body.home .ki-logo-stage .wp-block-image {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1060px;
	margin: 0 auto !important;
	background: #fefefe;
	border-radius: 10px;
	overflow: hidden;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.7),
		0 0 0 7px rgba(62, 227, 242, 0.06),
		0 0 0 8px rgba(130, 170, 255, 0.18),
		0 0 50px rgba(62, 227, 242, 0.22),
		0 0 140px rgba(79, 123, 255, 0.22),
		0 30px 80px rgba(0, 0, 0, 0.6);
	transform: rotateX(var(--kf-tx, 0deg)) rotateY(var(--kf-ty, 0deg));
	transition: transform 0.6s ease-out, box-shadow 0.6s ease;
}
body.home .ki-logo-stage .wp-block-image img {
	display: block;
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	/* 画像の上下の白い余白を表示上だけ少し詰める（ロゴの絵柄は切れない） */
	aspect-ratio: 4.3 !important;
	object-fit: cover;
}
/* ガラスの蓋：縁の反射 */
body.home .ki-logo-stage .wp-block-image::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), inset 0 -18px 30px -20px rgba(79, 123, 255, 0.35);
}
/* チップフレーム・端子・回路（JSが描く SVG） */
.kf-chip {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none !important;   /* ステージの「本文幅に収める」レイアウトの対象外にする */
	margin: 0 !important;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	overflow: visible;
	transform: rotateX(var(--kf-tx, 0deg)) rotateY(var(--kf-ty, 0deg));
	transition: transform 0.6s ease-out;
}
.kf-chip .kf-frame { fill: rgba(10, 16, 32, 0.55); stroke: rgba(150, 190, 255, 0.34); stroke-width: 1; }
.kf-chip .kf-frame2 { fill: none; stroke: rgba(62, 227, 242, 0.14); stroke-width: 1; stroke-dasharray: 2 6; }
.kf-chip .kf-pins line { stroke: rgba(216, 193, 137, 0.55); stroke-width: 2; stroke-linecap: round; }
.kf-chip .kf-traces path { fill: none; stroke-width: 1; }
.kf-chip .kf-traces circle { fill: #05070E; stroke: rgba(120, 170, 255, 0.45); stroke-width: 1; }
.kf-chip .kf-traces circle.kf-hot { fill: var(--kf-cyan); stroke: none; filter: drop-shadow(0 0 5px #3EE3F2); }
.kf-chip .kf-pin1 { fill: var(--kf-gold); }
.kf-chip .kf-emit { stroke: var(--kf-cyan); stroke-width: 2; filter: drop-shadow(0 0 6px #3EE3F2); }
.kf-chip .kf-light,
.kf-chip .kf-light-tail { fill: none; stroke-linecap: round; opacity: 0; }
.kf-chip .kf-light { stroke: #C4F7FC; stroke-width: 2; stroke-dasharray: 36 964; stroke-dashoffset: 1000; filter: drop-shadow(0 0 2px #8FEAF2) drop-shadow(0 0 7px rgba(53, 214, 224, 0.9)) drop-shadow(0 0 16px rgba(76, 124, 245, 0.7)); }
.kf-chip .kf-light-tail { stroke: rgba(76, 170, 245, 0.55); stroke-width: 1.5; stroke-dasharray: 150 850; stroke-dashoffset: 1114; filter: drop-shadow(0 0 5px rgba(53, 214, 224, 0.55)); }
/* コアの状態表示（JSが追加） */
.kf-core-meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 56px 1fr;
	font: 500 11px/1 var(--kf-f-mono);
	letter-spacing: 0.16em;
	color: var(--kf-text-3);
	pointer-events: none;
}
.kf-core-meta b { color: var(--kf-text-2); font-weight: 500; }
.kf-core-meta .kf-l { text-align: right; }
.kf-core-meta .kf-l span + span { margin-left: 22px; }
.kf-core-meta .kf-r { grid-column: 3; }
@media (max-width: 767px) {
	body.home .entry-content > .ki-logo-stage {
		padding-left: 20px;
		padding-right: 20px;
		padding-bottom: calc(var(--kf-core-pad) + 44px);
		--kf-core-pad: 22px;
	}
	body.home .ki-logo-stage .wp-block-image { border-radius: 6px; }
	body.home .ki-logo-stage > .kf-hud { padding-left: 0; }
	.kf-core-meta { grid-template-columns: 1fr; gap: 8px; font-size: 10px; padding-left: 42px; bottom: 0; }
	.kf-core-meta .kf-l, .kf-core-meta .kf-r { text-align: left; grid-column: 1; }
}

/* ============================================================================
 * 5. MOD.01 OPERATIONS（EC・SNS業務代行センター）
 * ============================================================================ */
body.home .ki-hero-light {
	position: relative;
	display: block;
	width: auto !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: calc(clamp(36px, 5vw, 64px) + var(--kf-hud-space)) clamp(8px, 4vw, 56px) clamp(36px, 5vw, 64px) !important;
	text-align: center;
	background: none !important;
	overflow: visible !important;
}
body.home .ki-hero-light > .kf-hud {
	top: clamp(36px, 5vw, 64px);
}
@media (min-width: 768px) {
	body.home .ki-hero-light > .kf-hud {
		top: calc(clamp(36px, 5vw, 64px) + 22px);
	}
}
/* HUD風の角枠 */
body.home .ki-hero-light::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	--c: rgba(62, 227, 242, 0.55);
	--l: 22px;
	background:
		linear-gradient(var(--c), var(--c)) top left / var(--l) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) top left / 1px var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) top right / var(--l) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) top right / 1px var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l) no-repeat;
}
body.home .ki-hero-reveal > * {
	animation: none;
}
body.home .ki-hero-light > h1 {
	position: relative;
	font-size: clamp(1.75rem, 1.05rem + 3vw, 3.4rem) !important;
	line-height: 1.38 !important;
	text-align: center !important;
	text-wrap: balance;
	background: linear-gradient(100deg, #FFFFFF 0%, #DDF9FF 45%, #7FEAF5 75%, #7FA2FF 100%) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	color: transparent !important;
}
body.home .ki-hero-light > p:nth-of-type(1) {
	max-width: min(100%, 40em);
	margin: clamp(14px, 0.5rem + 1vw, 24px) auto 0;
	color: #D5DDEE !important;
	font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem) !important;
	font-weight: 500;
	line-height: 1.85;
	text-align: center !important;
	text-wrap: pretty;
}
body.home .ki-hero-light > p:nth-of-type(2) {
	max-width: min(100%, 44em);
	margin: clamp(10px, 0.4rem + 0.8vw, 18px) auto 0;
	color: var(--kf-text-2) !important;
	font-size: clamp(0.875rem, 0.84rem + 0.16vw, 0.95rem) !important;
	line-height: 1.95;
	text-align: center !important;
}
body.home .ki-hero-light .kf-tk {
	border-bottom: 1px solid rgba(62, 227, 242, 0.22);
	border-radius: 2px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
body.home .ki-hero-light > .wp-block-buttons {
	margin: clamp(28px, 1rem + 2vw, 44px) 0 0 !important;
}
/* 読み取り状態の表示（JSが追加） */
.kf-readout {
	display: flex;
	justify-content: center;
	gap: clamp(14px, 3vw, 36px);
	margin-top: 26px;
	font: 500 11px/1 var(--kf-f-mono);
	letter-spacing: 0.14em;
	color: var(--kf-text-3);
}
.kf-readout i {
	display: inline-block;
	width: 26px;
	height: 3px;
	margin-right: 8px;
	vertical-align: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--kf-cyan) 70%, rgba(62, 227, 242, 0.2) 70%);
}
@media (max-width: 767px) {
	body.home .ki-hero-light > p:nth-of-type(1) { max-width: 19.5em; text-wrap: balance; }
	body.home .ki-hero-light > p:nth-of-type(2) { max-width: 22em; text-wrap: balance; }
	body.home .ki-hero-light > .wp-block-buttons { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto !important; margin-right: auto !important; }
	body.home .ki-hero-light .wp-block-button,
	body.home .ki-hero-light .wp-block-button__link { width: 100%; }
	.kf-readout { display: none; }
}

/* ============================================================================
 * 6. MOD.02 AI MODULE（AI・ITよろず相談）
 * ============================================================================ */
body.home .ki-utility-hero {
	display: block !important;
	width: auto !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: clamp(36px, 5vw, 64px) clamp(20px, 6vw, 96px) !important;
	text-align: center;
	overflow: visible !important;
	border-color: rgba(140, 107, 255, 0.30) !important;
	background:
		radial-gradient(260px circle at var(--kf-gx, 50%) var(--kf-gy, 50%), rgba(140, 107, 255, calc(0.10 * var(--kf-glow, 0))), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%),
		var(--kf-panel) !important;
	transform: rotateX(var(--kf-tx, 0deg)) rotateY(var(--kf-ty, 0deg));
	transition: transform 0.6s ease-out, border-color 0.6s ease;
	animation: none !important;
	opacity: 1;
	translate: none;
}
body.home .ki-utility-hero::before {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	top: -1px;
	height: 1px;
	inset-block-start: -1px;
	background: linear-gradient(90deg, transparent, rgba(140, 107, 255, 0.8), rgba(62, 227, 242, 0.8), transparent);
	animation: none !important;
	transform: none !important;
}
body.home .ki-utility-hero::after {
	display: none !important;
}
body.home .ki-utility-hero.kf-signal {
	border-color: rgba(62, 227, 242, 0.7) !important;
}
body.home .ki-utility-hero > h2 {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
	line-height: 1.45;
	text-wrap: balance;
	background: linear-gradient(100deg, var(--kf-cyan), #9FB8FF 55%, var(--kf-violet)) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	color: transparent !important;
	-webkit-text-fill-color: transparent;
	text-shadow: none !important;
	animation: none;
}
body.home .ki-utility-hero > .ki-utility-desc {
	max-width: 40em;
	margin: 18px auto 0;
	color: var(--kf-text-2) !important;
	font-size: inherit;
	line-height: 1.9;
}
/* 相談例：AIへの入力欄のように表示（斜体はやめる） */
body.home .ki-utility-hero > .ki-utility-friendly {
	display: inline-flex;
	flex-direction: column;
	gap: 8px;
	max-width: none;
	margin: 26px 0 0;
	text-align: left;
	font-style: normal;
	opacity: 1;
	color: #CFD8EC !important;
}
body.home .ki-utility-friendly br {
	display: none;
}
body.home .ki-utility-hero .ki-utility-line {
	position: relative;
	display: block;
	padding: 8px 16px 8px 36px;
	font-size: 0.95em;
	font-style: normal;
	line-height: 1.7;
	color: #CFD8EC;
	border: 1px solid rgba(140, 107, 255, 0.22);
	border-radius: 10px;
	background: rgba(140, 107, 255, 0.06);
	animation: none;
}
body.home .ki-utility-hero .ki-utility-line::before {
	content: "›";
	position: absolute;
	left: 14px;
	top: 50%;
	translate: 0 -54%;
	font: 500 18px/1 var(--kf-f-mono);
	color: var(--kf-violet);
}
body.home .ki-utility-hero .ki-utility-line:last-child {
	padding-left: 16px;
	border: 0;
	background: none;
	color: var(--kf-text-2);
}
body.home .ki-utility-hero .ki-utility-line:last-child::before {
	display: none;
}
/* 左右のニューラルネットワーク（JSが追加） */
.kf-neural {
	position: absolute;
	pointer-events: none;
	overflow: visible;
}
body.home .ki-utility-hero > .kf-neural {
	top: 50%;
	width: 200px;
	height: 209px;
	translate: 0 -50%;
}
body.home .ki-utility-hero > .kf-neural.kf-l { left: -118px; }
body.home .ki-utility-hero > .kf-neural.kf-r { right: -118px; transform: scaleX(-1); }
.kf-neural line { stroke: rgba(140, 107, 255, 0.35); stroke-width: 1; }
.kf-neural circle { fill: #0B1020; stroke: rgba(170, 150, 255, 0.8); stroke-width: 1; transition: fill 0.4s ease, filter 0.4s ease; }
.kf-neural circle.kf-hot { fill: var(--kf-cyan); stroke: none; filter: drop-shadow(0 0 5px #3EE3F2); }
.kf-neural .kf-link { stroke: rgba(62, 227, 242, 0.7); stroke-width: 1.5; filter: drop-shadow(0 0 4px #3EE3F2); }
@media (max-width: 1100px) {
	body.home .ki-utility-hero > .kf-neural { display: none; }
}
@media (max-width: 767px) {
	body.home .ki-utility-hero { text-align: left; }
	body.home .ki-utility-hero > h2 { text-align: left !important; }
	body.home .ki-utility-hero > .ki-utility-desc { margin-left: 0; }
	body.home .ki-utility-hero > .ki-utility-friendly { display: flex; }
}

/* ============================================================================
 * 7. MOD.03 DIAGNOSTICS（お悩み：システムのログ）
 * ============================================================================ */
body.home .ki-utility-hero + .ki-section > ul {
	list-style: none;
	max-width: 760px;
	margin: clamp(22px, 3vw, 34px) auto 0 !important;
	padding: 10px 0 !important;
	counter-reset: kf-log;
}
body.home .ki-utility-hero + .ki-section > ul > li {
	counter-increment: kf-log;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px clamp(16px, 3vw, 28px);
	color: #CFD8EC;
	line-height: 1.7;
	border-top: 1px dashed rgba(130, 170, 255, 0.12);
}
body.home .ki-utility-hero + .ki-section > ul > li:first-child {
	border-top: 0;
}
body.home .ki-utility-hero + .ki-section > ul > li::before {
	content: counter(kf-log, decimal-leading-zero);
	flex: none;
	font: 500 11px/1 var(--kf-f-mono);
	letter-spacing: 0.1em;
	color: var(--kf-text-3);
}
body.home .ki-utility-hero + .ki-section > ul > li::after {
	content: "";
	order: -1;
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--kf-amber);
	box-shadow: 0 0 8px rgba(242, 184, 102, 0.8);
}
body.home .ki-utility-hero + .ki-section > ul > li:last-child::after {
	background: var(--kf-cyan);
	box-shadow: 0 0 8px var(--kf-cyan);
}

/* ============================================================================
 * 8. MOD.04 SERVICES（業務カード5枚）
 * ============================================================================ */
body.home #work {
	background: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
body.home #work .ki-service-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
	margin-top: clamp(28px, 4vw, 48px);
}
@property --kf-spot {
	syntax: '<number>';
	inherits: false;
	initial-value: 0;
}
body.home #work .ki-service-card {
	--kf-spot: 0;
	position: relative;
	flex: 0 1 calc((100% - 44px) / 3);
	display: flex;
	flex-direction: column;
	padding: 26px 26px 22px;
	border-radius: 14px;
	border: 1px solid transparent;
	overflow: hidden;
	color: var(--kf-text-2);
	text-align: left;
	background:
		radial-gradient(260px circle at var(--kf-cx, 50%) var(--kf-cy, 0%), rgba(62, 227, 242, calc(0.10 * var(--kf-spot))), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 35%),
		rgba(14, 22, 42, 0.62);
	background-clip: padding-box;
	box-shadow: none;
	transform: none;
	transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, --kf-spot 0.35s ease;
}
/* 上から下へ薄れる発光ボーダー */
body.home #work .ki-service-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(62, 227, 242, 0.55), rgba(79, 123, 255, 0.18) 45%, rgba(130, 170, 255, 0.08));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	transition: opacity 0.35s ease;
}
/* スキャン光（通常は非表示。出現時・ホバー時に1回だけ上から下へ通過） */
body.home #work .ki-service-card::before {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	width: auto;
	height: 100%;
	border-radius: 0;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 0, transparent calc(100% - 60px), rgba(62, 227, 242, 0.06) calc(100% - 24px), rgba(143, 240, 250, 0.85) calc(100% - 1px), transparent 100%);
	transform: translateY(-100%);
	opacity: 0;
	transition: none;
}
body.home #work .ki-service-card .ki-service-number {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font: 500 12px/1 var(--kf-f-mono) !important;
	letter-spacing: 0.16em;
	color: var(--kf-gold) !important;
	background: none !important;
	-webkit-text-fill-color: currentColor;
	opacity: 1;
	transition: text-shadow 0.35s ease;
}
body.home #work .ki-service-card .ki-service-number::before {
	content: "";
	order: 1;
	width: 44px;
	height: 3px;
	border-radius: 2px;
	background: repeating-linear-gradient(90deg, rgba(62, 227, 242, 0.85) 0 6px, transparent 6px 9px);
	opacity: 0.7;
}
body.home #work .ki-service-card .ki-service-number::after {
	content: attr(data-unit);
	order: 2;
	margin-left: auto;
	font-size: 10px;
	color: var(--kf-text-3);
}
body.home #work .ki-service-card h3 {
	margin: 18px 0 0;
	font-size: 1.12rem;
	line-height: 1.5;
	color: var(--kf-text);
}
body.home #work .ki-service-card p:not(.ki-service-number) {
	margin: 10px 0 0;
	font-size: 0.9rem;
	line-height: 1.85;
	color: var(--kf-text-2);
}
body.home #work .ki-service-card .ki-service-arrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 20px;
	font: 700 13px/1 var(--kf-f-head);
	letter-spacing: 0.06em;
	color: #8FB0FF;
	transform: none;
	transition: transform 0.35s var(--kf-ease);
}
body.home #work .ki-service-card .ki-service-arrow::after {
	content: "";
	flex: 0 0 28px;
	height: 1px;
	background: linear-gradient(90deg, var(--kf-blue), transparent);
	transition: flex-basis 0.4s var(--kf-ease);
}
/* 05 AI活用：バイオレット系のAIカード（JSが .kf-ai を付ける） */
body.home #work .ki-service-card.kf-ai {
	background:
		radial-gradient(260px circle at var(--kf-cx, 50%) var(--kf-cy, 0%), rgba(140, 107, 255, calc(0.12 * var(--kf-spot))), transparent 70%),
		radial-gradient(ellipse 60% 50% at 85% 10%, rgba(140, 107, 255, 0.18), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 35%),
		rgba(18, 18, 46, 0.66);
	background-clip: padding-box;
}
body.home #work .ki-service-card.kf-ai::after {
	background: linear-gradient(160deg, rgba(140, 107, 255, 0.9), rgba(62, 227, 242, 0.55) 60%, rgba(140, 107, 255, 0.2));
}
body.home #work .ki-service-card.kf-ai .ki-service-number { color: #C9B8FF !important; }
body.home #work .ki-service-card.kf-ai .ki-service-number::before { background: repeating-linear-gradient(90deg, rgba(140, 107, 255, 0.9) 0 6px, transparent 6px 9px); }
body.home #work .ki-service-card.kf-ai > .kf-neural { top: 16px; right: 16px; width: 110px; height: 78px; opacity: 0.8; }
/* ホバー（PCのみ）：浮く・発光・番号の発光・情報の展開（線が伸びる）・内部の光・スキャン */
@media (hover: hover) and (pointer: fine) {
	body.home #work .ki-service-card:hover {
		--kf-spot: 1;
		box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(62, 227, 242, 0.12);
	}
	body.home #work .ki-service-card:hover::after {
		background: linear-gradient(180deg, rgba(62, 227, 242, 0.95), rgba(79, 123, 255, 0.5) 50%, rgba(62, 227, 242, 0.4));
	}
	body.home #work .ki-service-card.kf-ai:hover::after {
		background: linear-gradient(160deg, rgba(160, 130, 255, 1), rgba(62, 227, 242, 0.8) 60%, rgba(140, 107, 255, 0.5));
	}
	body.home #work .ki-service-card:hover .ki-service-number { text-shadow: 0 0 10px rgba(216, 193, 137, 0.7); }
	body.home #work .ki-service-card.kf-ai:hover .ki-service-number { text-shadow: 0 0 10px rgba(160, 130, 255, 0.9); }
	body.home #work .ki-service-card:hover .ki-service-arrow { transform: translateX(4px); }
	body.home #work .ki-service-card:hover .ki-service-arrow::after { flex-basis: 64px; }
	body.home #work .ki-service-card.kf-ai:hover > .kf-neural circle { fill: var(--kf-violet); filter: drop-shadow(0 0 5px #8C6BFF); }
	body.home #work .ki-service-card.kf-ai:hover > .kf-neural circle.kf-hot { fill: var(--kf-cyan); }
}
@media (max-width: 900px) {
	body.home #work .ki-service-card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 600px) {
	body.home #work .ki-service-grid { gap: 14px; }
	body.home #work .ki-service-card { flex-basis: 100%; padding: 22px 20px 20px; }
}

/* ============================================================================
 * 9. MOD.05 CAPABILITIES（特徴） / MOD.06 PIPELINE（流れ）
 * ============================================================================ */
body.home #work + .ki-section .ki-services {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
	margin-top: clamp(28px, 4vw, 44px);
}
body.home #work + .ki-section .ki-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 20px;
	align-items: start;
	margin: 0 !important;
	padding: 26px 28px !important;
	text-align: left;
}
body.home #work + .ki-section .ki-card-number {
	grid-row: span 2;
	margin: 0;
	padding-top: 2px;
	font: 500 30px/1 var(--kf-f-label) !important;
	letter-spacing: 0.02em;
	color: transparent !important;
	background: none !important;
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: 1px rgba(216, 193, 137, 0.75);
}
body.home #work + .ki-section .ki-card h3 {
	font-size: 1.05rem;
	line-height: 1.55;
}
body.home #work + .ki-section .ki-card p:not(.ki-card-number) {
	font-size: 0.9rem;
	line-height: 1.85;
	color: var(--kf-text-2);
}
@media (max-width: 767px) {
	body.home #work + .ki-section .ki-services { grid-template-columns: 1fr; gap: 12px; }
	body.home #work + .ki-section .ki-card { padding: 20px !important; }
	body.home #work + .ki-section .ki-card-number { font-size: 24px !important; }
}

/* パイプライン：ステップをつなぐ光の線（スクロールで伸びる） */
body.home #work + .ki-section + .ki-section .ki-services {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: clamp(34px, 4.5vw, 56px);
}
body.home #work + .ki-section + .ki-section .ki-services::before {
	content: "";
	position: absolute;
	left: 12.5%;
	right: 12.5%;
	top: 21px;
	height: 2px;
	background: linear-gradient(90deg, var(--kf-cyan), var(--kf-blue) 60%, rgba(79, 123, 255, 0.4));
	box-shadow: 0 0 10px rgba(62, 227, 242, 0.4);
	transform-origin: left;
}
body.home #work + .ki-section + .ki-section .ki-card {
	margin: 62px 0 0 !important;
	padding: 20px 18px !important;
	text-align: center;
	overflow: visible;
}
body.home #work + .ki-section + .ki-section .ki-card-number {
	position: absolute;
	left: 50%;
	top: -62px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	translate: -50% 0;
	border-radius: 50%;
	font: 500 13px/1 var(--kf-f-mono) !important;
	color: var(--kf-text) !important;
	background: var(--kf-void) !important;
	-webkit-text-fill-color: currentColor;
	border: 1.5px solid var(--kf-cyan);
	box-shadow: 0 0 0 6px rgba(62, 227, 242, 0.06), 0 0 18px rgba(62, 227, 242, 0.45);
	transition: border-color 0.5s ease, box-shadow 0.5s ease, color 0.5s ease;
}
body.home #work + .ki-section + .ki-section .ki-card h3 {
	font-size: 1rem;
	line-height: 1.55;
}
body.home #work + .ki-section + .ki-section .ki-card p:not(.ki-card-number) {
	margin-top: 8px;
	font-size: 0.86rem;
	line-height: 1.8;
	color: var(--kf-text-2);
}
@media (max-width: 767px) {
	body.home #work + .ki-section + .ki-section .ki-services { grid-template-columns: 1fr; gap: 14px; padding-left: 22px; }
	body.home #work + .ki-section + .ki-section .ki-services::before {
		left: 43px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto;
		background: linear-gradient(180deg, var(--kf-cyan), var(--kf-blue) 60%, rgba(79, 123, 255, 0.4));
		transform-origin: top;
	}
	body.home #work + .ki-section + .ki-section .ki-card { margin: 0 0 0 58px !important; padding: 16px !important; text-align: left; }
	body.home #work + .ki-section + .ki-section .ki-card-number { left: -58px; top: 0; translate: 0 0; }
}

/* ============================================================================
 * 10. MOD.07 STACK（支える技術）
 * ============================================================================ */
body.home .ki-home > .ki-section:has(> .wp-block-columns) > p:empty {
	display: none;
}
body.home .ki-home > .ki-section:has(> .wp-block-columns) > p {
	font: 500 12px/1.6 var(--kf-f-head) !important;
	letter-spacing: 0.12em;
	color: var(--kf-text-3) !important;
	text-align: center !important;
}
body.home .ki-section:has(> .wp-block-columns) > .wp-block-columns {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 18px !important;
	margin: clamp(24px, 3.5vw, 40px) 0 0 !important;
}
body.home .ki-section:has(> .wp-block-columns) .wp-block-column {
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 8px 18px;
	align-content: start;
	margin: 0 !important;
	padding: 28px;
}
body.home .ki-section:has(> .wp-block-columns) .wp-block-column::before {
	content: "";
	grid-row: span 2;
	width: 46px;
	height: 46px;
	background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'><rect x='11' y='11' width='24' height='24' rx='4' fill='none' stroke='%233EE3F2' stroke-width='1.4'/><rect x='17' y='17' width='12' height='12' rx='2' fill='rgba(62,227,242,.18)' stroke='%233EE3F2' stroke-width='1'/><path d='M16 11V5M23 11V5M30 11V5M16 41v-6M23 41v-6M30 41v-6M11 16H5M11 23H5M11 30H5M41 16h-6M41 23h-6M41 30h-6' stroke='%23D8C189' stroke-width='1.4' stroke-linecap='round'/></svg>");
}
body.home .ki-section:has(> .wp-block-columns) .wp-block-column:nth-child(2)::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'><rect x='5' y='9' width='36' height='26' rx='4' fill='none' stroke='%234F7BFF' stroke-width='1.4'/><path d='M5 15h36' stroke='%234F7BFF' stroke-width='1.2'/><circle cx='9.5' cy='12' r='1.2' fill='%233EE3F2'/><path d='M18 22l-4 4 4 4M28 22l4 4-4 4M25 20l-4 12' stroke='%233EE3F2' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/><path d='M17 40h12' stroke='%23D8C189' stroke-width='1.4' stroke-linecap='round'/></svg>");
}
body.home .ki-section:has(> .wp-block-columns) .wp-block-column :is(h3, p) {
	text-align: left !important;
}
body.home .ki-section:has(> .wp-block-columns) .wp-block-column h3 {
	font-size: 1.05rem;
}
body.home .ki-section:has(> .wp-block-columns) .wp-block-column p {
	font-size: 0.9rem;
	color: var(--kf-text-2);
}
@media (max-width: 767px) {
	body.home .ki-section:has(> .wp-block-columns) > .wp-block-columns { grid-template-columns: 1fr; gap: 12px !important; }
	body.home .ki-section:has(> .wp-block-columns) .wp-block-column { padding: 20px; }
	body.home .ki-home > .ki-section:has(> .wp-block-columns) > p { text-align: left !important; padding-left: 26px; }
}

/* ============================================================================
 * 11. MOD.08 CONNECT（CTA）
 * ============================================================================ */
body.home .ki-cta-dark {
	width: auto !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: clamp(44px, 6vw, 80px) clamp(20px, 6vw, 80px) !important;
	text-align: center;
	overflow: visible !important;
	animation: none !important;
	background:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 400' preserveAspectRatio='none'><g fill='none' stroke-width='1'><path d='M0 60 C 300 60, 380 300, 500 330' stroke='rgba(62,227,242,.22)'/><path d='M0 200 C 280 200, 400 320, 500 330' stroke='rgba(79,123,255,.2)'/><path d='M1000 90 C 700 90, 620 300, 500 330' stroke='rgba(62,227,242,.22)'/><path d='M1000 250 C 720 250, 600 320, 500 330' stroke='rgba(140,107,255,.2)'/></g></svg>") center / 100% 100% no-repeat,
		radial-gradient(ellipse 60% 80% at 50% 120%, rgba(62, 227, 242, 0.20), transparent 70%),
		radial-gradient(ellipse 50% 60% at 50% -20%, rgba(79, 123, 255, 0.18), transparent 70%),
		var(--kf-panel) !important;
}
body.home .ki-cta-dark > h2 {
	font-size: clamp(1.35rem, 1rem + 1.5vw, 2.2rem) !important;
	line-height: 1.5;
	color: var(--kf-text) !important;
	text-wrap: balance;
}
body.home .ki-cta-dark > p {
	max-width: 40em;
	margin: 16px auto 0;
	color: var(--kf-text-2) !important;
}
body.home .ki-cta-dark > .wp-block-buttons {
	margin-top: clamp(28px, 1rem + 2vw, 44px);
}
body.home .ki-cta-dark .wp-block-button__link {
	min-height: 58px;
	padding: 0 40px !important;
	box-shadow: 0 10px 40px rgba(62, 227, 242, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 0 8px rgba(62, 227, 242, 0.06);
}
@media (max-width: 767px) {
	body.home .ki-cta-dark { text-align: left; }
	body.home .ki-cta-dark > h2 { text-align: left !important; }
	body.home .ki-cta-dark > p { margin-left: 0; }
}

/* ============================================================================
 * 12. モーション（html.kf-motion のときだけ有効）
 * ----------------------------------------------------------------------------
 * - 対象要素は最初に隠しておき、JSが .kf-in を付けたら起動する
 *   （--kf-d：モジュール内での順番による時間差。JSが設定）
 * - 出現後は通常のスタイルに戻るため、ホバーの動きと干渉しない
 * ============================================================================ */
@keyframes kf-boot {
	from { opacity: 0; translate: 0 14px; filter: blur(6px); }
	to { opacity: 1; translate: 0 0; filter: blur(0); }
}
@keyframes kf-gen {   /* カードの生成：上から面が満たされる */
	from { opacity: 0; clip-path: inset(0 0 100% 0 round 14px); filter: blur(4px); }
	to { opacity: 1; clip-path: inset(0 0 0 0 round 14px); filter: blur(0); }
}
@keyframes kf-log {   /* ログの出力：左から1行ずつ */
	from { opacity: 0; clip-path: inset(0 100% 0 0); }
	to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes kf-scan {
	0% { transform: translateY(-100%); opacity: 0; }
	12% { opacity: 1; }
	80% { opacity: 1; }
	100% { transform: translateY(0); opacity: 0; }
}
@keyframes kf-scan-hover {
	0% { transform: translateY(-100%); opacity: 0; }
	12% { opacity: 1; }
	80% { opacity: 1; }
	100% { transform: translateY(0); opacity: 0; }
}
@keyframes kf-hud-line {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}
html.kf-motion body.home :is(
	.ki-hero-light > h1, .ki-hero-light > p, .ki-hero-light > .wp-block-buttons, .kf-readout,
	.ki-utility-hero, .ki-utility-hero > h2, .ki-utility-hero > p:not(.ki-utility-friendly), .ki-utility-line,
	.ki-home > .ki-section > h2, #work > p, .ki-utility-hero + .ki-section > ul, .ki-utility-hero + .ki-section > ul > li,
	#work .ki-service-card, .ki-home .ki-card, .ki-section:has(> .wp-block-columns) > p, .ki-home .wp-block-column,
	.ki-cta-dark > p, .ki-cta-dark > .wp-block-buttons, .kf-hud
):not(.kf-in) {
	opacity: 0;
	animation: none !important;
}
html.kf-motion body.home :is(
	.ki-hero-light > h1, .ki-hero-light > p, .ki-hero-light > .wp-block-buttons, .kf-readout,
	.ki-utility-hero, .ki-utility-hero > h2, .ki-utility-hero > p:not(.ki-utility-friendly), .ki-utility-line,
	.ki-home > .ki-section > h2, #work > p, .ki-utility-hero + .ki-section > ul,
	.ki-home .ki-card, .ki-section:has(> .wp-block-columns) > p, .ki-home .wp-block-column,
	.ki-cta-dark > p, .ki-cta-dark > .wp-block-buttons
).kf-in {
	opacity: 1;
	animation: kf-boot 0.9s var(--kf-ease) var(--kf-d, 0s) backwards !important;
}
html.kf-motion body.home .kf-hud.kf-in {
	opacity: 1;
	animation: kf-boot 0.7s var(--kf-ease) var(--kf-d, 0s) backwards !important;
}
html.kf-motion body.home .kf-hud.kf-in::after {
	animation: kf-hud-line 1s var(--kf-ease) calc(var(--kf-d, 0s) + 0.2s) backwards;
}
html.kf-motion body.home .ki-utility-hero + .ki-section > ul > li.kf-in {
	opacity: 1;
	animation: kf-log 0.6s cubic-bezier(0.3, 0.6, 0.2, 1) var(--kf-d, 0s) backwards !important;
}
html.kf-motion body.home #work .ki-service-card.kf-in {
	opacity: 1;
	animation: kf-gen 0.9s var(--kf-ease) var(--kf-d, 0s) backwards !important;
}
/* カード生成後、スキャン光が1回通過し、番号が一瞬光る */
html.kf-motion body.home #work .ki-service-card.kf-in::before {
	animation: kf-scan 1.2s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--kf-d, 0s) + 0.55s) both;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	body.home #work .ki-service-card:hover {
		translate: 0 -3px;
	}
}
@media (hover: hover) and (pointer: fine) {
	/* 出現時と同じ名前だと再生し直されないため、ホバー用に別名のアニメーションを使う */
	html.kf-motion body.home #work .ki-service-card.kf-in:hover::before {
		animation: kf-scan-hover 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
	}
}
/* EC・SNS：見出しのスキャンライン（1回）／業務内容が1つずつ読み込まれる */
body.home .ki-hero-light > h1::after {
	content: "";
	position: absolute;
	left: -8%;
	right: -8%;
	top: -12%;
	bottom: -12%;
	pointer-events: none;
	opacity: 0;
	background: linear-gradient(180deg, transparent 0, rgba(79, 123, 255, 0.08) 70%, rgba(143, 234, 242, 0.9) 97%, transparent 100%) 0 -48px / 100% 48px no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
html.kf-motion body.home .ki-hero-light > h1.kf-in::after {
	animation: kf-h1-scan 1.3s cubic-bezier(0.45, 0.05, 0.3, 1) calc(var(--kf-d, 0s) + 0.35s) both;
}
@keyframes kf-h1-scan {
	0% { background-position: 0 -48px; opacity: 0; }
	12% { opacity: 1; }
	85% { opacity: 1; }
	100% { background-position: 0 100%; opacity: 0; }
}
html.kf-motion body.home .ki-hero-light > p.kf-in .kf-tk {
	animation: kf-token 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--kf-d, 0s) + 0.3s + var(--kf-j, 0) * 90ms) backwards;
}
@keyframes kf-token {
	0% { opacity: 0.12; filter: blur(2.5px); background-color: rgba(62, 227, 242, 0); }
	45% { opacity: 1; filter: blur(0); background-color: rgba(62, 227, 242, 0.18); }
	100% { opacity: 1; background-color: rgba(62, 227, 242, 0); }
}
/* パイプライン：線が伸び、各ステップの接続点が順に点灯 */
html.kf-motion body.home #work + .ki-section + .ki-section:not(.kf-on) .ki-services::before {
	transform: scaleX(0);
}
html.kf-motion body.home #work + .ki-section + .ki-section .ki-services::before {
	transition: transform 1.6s cubic-bezier(0.45, 0.05, 0.3, 1) 0.3s;
}
@media (max-width: 767px) {
	html.kf-motion body.home #work + .ki-section + .ki-section:not(.kf-on) .ki-services::before {
		transform: scaleY(0);
	}
}
html.kf-motion body.home #work + .ki-section + .ki-section .ki-card:not(.kf-in) .ki-card-number {
	border-color: rgba(79, 123, 255, 0.35);
	box-shadow: none;
	color: var(--kf-text-3) !important;
}
/* AI MODULE：ホバーでニューラルネットワークに信号が流れる */
@keyframes kf-neuro {
	0%, 100% { fill: #0B1020; filter: none; }
	40% { fill: var(--kf-cyan); filter: drop-shadow(0 0 6px #3EE3F2); }
}
@media (hover: hover) and (pointer: fine) {
	html.kf-motion body.home .ki-utility-hero:hover > .kf-neural circle:not(.kf-hot) {
		animation: kf-neuro 1.2s ease calc(var(--kf-k, 0) * 70ms) 1;
	}
}
/* 05カード：ホバーで枠を光が1周 */
@property --kf-ring {
	syntax: '<angle>';
	inherits: false;
	initial-value: 0deg;
}
body.home #work .ki-service-card.kf-ai > .kf-ring {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.5px;
	pointer-events: none;
	opacity: 0;
	background: conic-gradient(from var(--kf-ring), transparent 0deg 240deg, rgba(140, 107, 255, 0.35) 290deg, rgba(180, 160, 255, 0.95) 335deg, rgba(120, 230, 245, 0.95) 352deg, transparent 360deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}
@keyframes kf-ring {
	0% { --kf-ring: 0deg; opacity: 0; }
	12% { opacity: 1; }
	85% { opacity: 1; }
	100% { --kf-ring: 360deg; opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
	html.kf-motion body.home #work .ki-service-card.kf-ai:hover > .kf-ring {
		animation: kf-ring 1.6s cubic-bezier(0.45, 0.05, 0.35, 1) both;
	}
}
/* AI CORE：ページを開いたときの登場（0〜0.8秒：フレーム／1.2〜2.4秒：ロゴ） */
html.kf-motion body.home .ki-logo-stage .wp-block-image {
	animation: kf-die-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
}
html.kf-motion body.home .ki-logo-stage .wp-block-image img {
	-webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
	mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
	-webkit-mask-size: 240% 100%;
	mask-size: 240% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	animation: kf-logo-reveal 1.2s cubic-bezier(0.45, 0.05, 0.25, 1) 1.2s both;
}
@keyframes kf-die-in {
	from { opacity: 0; scale: 0.985; }
	to { opacity: 1; scale: 1; }
}
@keyframes kf-logo-reveal {
	from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
	to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
html.kf-motion .kf-chip.kf-intro .kf-frame { stroke-dasharray: 1000; animation: kf-draw 0.8s ease-out both; }
html.kf-motion .kf-chip.kf-intro :is(.kf-pins, .kf-pin1, .kf-frame2) { animation: kf-fade 0.55s ease-out 0.25s both; }
html.kf-motion .kf-chip.kf-intro .kf-traces { animation: kf-fade 0.7s ease-out 0.35s both; }
@keyframes kf-draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes kf-fade { from { opacity: 0; } to { opacity: 1; } }

/* 動きを減らす設定：念のためCSS側でも停止（JSは .kf-motion を付けない） */
@media (prefers-reduced-motion: reduce) {
	.kf-bg-base { transition: none; }
	body.home .ki-logo-stage .wp-block-image,
	.kf-chip,
	body.home .ki-utility-hero { transform: none !important; transition: none !important; }
	.kf-ripple { display: none; }
}
/* === home-future.css ここまで === */
