/*
 * フロントページ・ヒーロー専用CSS。
 * /Users/threek-system/Desktop/スリーケシステムHP/index.html L55-420 + media query から抽出。
 * Lightning の他箇所に影響しないよう .site-header / .hero / .mobile-nav 配下にスコープしている。
 */

:root {
	--dark: #0d0d1a;
	--dark-mid: #141428;
	--dark-surface: #1a1a32;
	--dark-border: rgba(255,255,255,0.08);
	--white: #ffffff;
	--off-white: #f5f5f7;
	--light-bg: #fafafa;
	--accent: #0055cc;
	--accent-light: #3388ee;
	--accent-glow: rgba(0,85,204,0.15);
	--text-primary: #111111;
	--text-secondary: #555555;
	--text-tertiary: #999999;
	--text-on-dark: #ffffff;
	--text-on-dark-sub: rgba(255,255,255,0.6);
	--border: rgba(0,0,0,0.08);
	--header-h: 88px;
}

/* スコープ内のリセット（参照HTMLの * リセットをLightningに波及させないため限定適用） */
.site-header, .site-header *,
.hero, .hero *,
.mobile-nav, .mobile-nav *,
.mobile-overlay {
	box-sizing: border-box;
}

.site-header, .site-header *,
.hero, .hero *,
.mobile-nav, .mobile-nav * {
	margin: 0;
	padding: 0;
}

.site-header *::selection,
.hero *::selection,
.mobile-nav *::selection { background: var(--accent); color: var(--white); }

/* フロントページのみ <body> 直後の余白を消し、ヒーローを画面上端に張り付ける */
body.home,
body.front-page,
body.page-template-default.home {
	overflow-x: hidden;
}

/* ===== HEADER ===== */
/* ===== Cybozu風 クリーンな白ヘッダー ===== */
.site-header {
	position: fixed;
	top: 0; left: 0; width: 100%;
	z-index: 1000;
	background: #ffffff;
	border-bottom: 1px solid var(--border);
	transition: box-shadow 0.4s;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}
.site-header.scrolled {
	box-shadow: 0 4px 18px rgba(15,30,70,0.07);
}

.site-header .header-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 clamp(24px, 4vw, 60px);
	height: var(--header-h);
}

.site-header .header-logo {
	font-family: "Outfit", sans-serif;
	font-weight: 700;
	font-size: clamp(1.7rem, 2.4vw, 2.2rem);
	color: var(--text-primary);
	letter-spacing: 0.04em;
	white-space: nowrap;
	text-decoration: none;
}
.site-header .header-logo .logo-accent { color: var(--accent); }

/* 下段：メインナビ（フラットなテキストリンク） */
.site-header .nav-main {
	display: flex;
	align-items: center;
	gap: clamp(10px, 2vw, 34px);
	list-style: none;
	padding: 0;
	margin: 0;
}
.site-header .nav-main a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 8px 2px;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	font-size: clamp(1.1rem, 1.25vw, 1.25rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--text-primary);
	text-decoration: none;
	transition: color 0.25s ease;
}
.site-header .nav-main a:hover { color: var(--accent); }
.site-header .nav-main a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--accent);
	border-radius: 2px;
	transition: width 0.3s ease;
}
.site-header .nav-main a:hover::after { width: 100%; }

/* ===== ナビ（右側・1列） ===== */
.site-header .header-nav-stack {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: clamp(18px, 2.4vw, 40px);
}
/* 主要ナビを左、ユーティリティを右に並べる */
.site-header .header-nav-stack > nav { order: 1; }
.site-header .header-nav-stack > .nav-util { order: 2; }

/* ユーティリティナビ（細身・淡色のテキストリンク） */
.site-header .nav-util {
	display: flex;
	align-items: center;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0 0 0 clamp(18px, 2.4vw, 36px);
	border-left: 1px solid var(--border);
}
.site-header .nav-util > li {
	display: flex;
	align-items: center;
}
/* 区切り線（電話の手前以外） */
.site-header .nav-util > li:not(:last-child)::after {
	content: "";
	width: 1px;
	height: 11px;
	margin-left: 14px;
	background: rgba(0,0,0,0.14);
}
.site-header .nav-util a {
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.25s ease;
}
.site-header .nav-util a:hover { color: var(--accent); }

/* 導入相談ダイアル（電話CTA） */
.site-header .nav-util .nav-util-tel {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 18px;
	border: 1px solid rgba(0,85,204,0.25);
	border-radius: 999px;
	background: rgba(0,85,204,0.05);
	color: var(--accent);
	transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header .nav-util .nav-util-tel:hover {
	color: var(--accent);
	background: rgba(0,85,204,0.1);
	border-color: rgba(0,85,204,0.45);
}
.site-header .nav-util .nav-util-tel i { font-size: 0.95rem; color: var(--accent); }
.site-header .nav-util .nav-util-tel-label { font-size: 0.82rem; letter-spacing: 0.06em; opacity: 0.9; }
.site-header .nav-util .nav-util-tel-num {
	font-family: "Outfit", sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Hamburger */
.site-header .hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 44px; height: 44px;
	background: none; border: none;
	cursor: pointer;
	gap: 6px;
	z-index: 1001;
}
.site-header .hamburger span {
	display: block;
	width: 22px; height: 2px;
	background: var(--text-primary);
	transition: all 0.3s;
}
.site-header .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(3px, 5.5px); }
.site-header .hamburger.active span:nth-child(2) { opacity: 0; }
.site-header .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(3px, -5.5px); }

/* Mobile nav */
.mobile-nav {
	display: none;
	position: fixed;
	top: 0; right: -100%;
	width: 320px;
	max-width: 85vw;
	height: 100vh;
	background: var(--dark);
	z-index: 999;
	transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	padding: 100px 40px 40px;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
	display: block;
	padding: 16px 0;
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-on-dark);
	border-bottom: 1px solid var(--dark-border);
	transition: color 0.3s, padding-left 0.3s;
	text-decoration: none;
}
.mobile-nav a:hover { color: var(--accent-light); padding-left: 8px; }
.mobile-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.4s;
}
.mobile-overlay.open { opacity: 1; }

/* ===== HERO ===== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--dark);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

.hero .hero-canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hero .hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(180deg, rgba(8,8,24,0.3) 0%, rgba(8,8,24,0.1) 40%, rgba(8,8,24,0.5) 100%),
		radial-gradient(ellipse 80% 60% at 30% 60%, rgba(0,60,180,0.08) 0%, transparent 60%);
	pointer-events: none;
}

.hero .hero-content {
	position: relative;
	z-index: 10;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 clamp(24px, 4vw, 60px);
	padding-top: var(--header-h);
	padding-right: 30%;
	width: 100%;
}

.hero .hero-headline {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	font-weight: 700;
	color: var(--white);
	line-height: 1.3;
	letter-spacing: 0.02em;
	margin-bottom: 24px;
	min-height: 1.3em;
}

.hero .hero-headline .char {
	display: inline-block;
	opacity: 0;
	transform: translateY(8px);
	animation: hero-charIn 0.5s ease forwards;
}

.hero .hero-headline .char.out {
	animation: hero-charOut 0.3s ease forwards;
}

/* アクセント文字（ONE STEP など）— 白文字と毛色を変える */
.hero .hero-headline .char--accent {
	font-family: "Outfit", sans-serif;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #5cc8ec;
	filter: drop-shadow(0 0 18px rgba(92, 200, 236, 0.45));
}

@keyframes hero-charIn {
	to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-charOut {
	to { opacity: 0; transform: translateY(-6px); }
}

/* Background floating words */
.hero .hero-bg-words {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
}

.hero .hero-bg-word {
	position: absolute;
	font-family: 'Outfit', sans-serif;
	font-weight: 200;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255,255,255,0);
	white-space: nowrap;
	opacity: 0;
}

.hero .hero-bg-word.show {
	animation: hero-bgWordIn 4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero .hero-bg-word--1 {
	top: 8%;
	right: 6%;
	font-size: clamp(2.5rem, 7vw, 5.5rem);
}
.hero .hero-bg-word--2 {
	bottom: 22%;
	right: 8%;
	font-size: clamp(2rem, 6vw, 4.5rem);
}
.hero .hero-bg-word--3 {
	top: 14%;
	left: 5%;
	font-size: clamp(1.8rem, 5vw, 4rem);
}

@keyframes hero-bgWordIn {
	0%   { opacity: 0; color: rgba(255,255,255,0); filter: blur(8px); }
	25%  { opacity: 1; color: rgba(255,255,255,0.08); filter: blur(0px); }
	55%  { opacity: 1; color: rgba(255,255,255,0.10); filter: blur(0px); }
	85%  { opacity: 1; color: rgba(255,255,255,0.04); filter: blur(2px); }
	100% { opacity: 0; color: rgba(255,255,255,0); filter: blur(6px); }
}

.hero .hero-sub {
	font-size: clamp(0.9rem, 1.5vw, 1.1rem);
	color: rgba(255,255,255,0.7);
	line-height: 2;
	max-width: 540px;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero .hero-sub.visible {
	opacity: 1;
	transform: translateY(0);
}

.hero .hero-sub strong {
	display: block;
	color: rgba(255,255,255,0.9);
	font-weight: 500;
	margin-bottom: 4px;
}

@keyframes hero-fadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Hero info bar */
.hero .hero-info-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 10;
	background: linear-gradient(135deg, #1a2a4a 0%, #1e3455 100%);
	border-top: 1px solid rgba(255,255,255,0.1);
}

.hero .info-bar-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 22px clamp(24px, 4vw, 60px);
	display: flex;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.hero .info-bar-label {
	font-family: "Outfit", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--accent-light);
	white-space: nowrap;
	padding-right: 32px;
	border-right: 1px solid rgba(255,255,255,0.18);
}

.hero .info-bar-text {
	font-size: 1.1rem;
	color: rgba(255,255,255,0.85);
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.hero .info-bar-date {
	font-family: "Outfit", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	color: rgba(255,255,255,0.7);
	white-space: nowrap;
}

.hero .info-bar-message { font-size: 1.1rem; }

.hero .info-bar-tel {
	color: #ffffff;
	font-family: "Outfit", sans-serif;
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-left: 4px;
}

.hero .info-bar-download {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 26px;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #ffffff;
	text-decoration: none;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
	border-radius: 999px;
	box-shadow: 0 8px 22px rgba(0,85,204,0.4), inset 0 1px 0 rgba(255,255,255,0.18);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	white-space: nowrap;
}
.hero .info-bar-download i {
	font-size: 1.2rem;
	line-height: 1;
}
.hero .info-bar-download:hover {
	color: #ffffff;
	background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
	box-shadow: 0 12px 30px rgba(0,85,204,0.55);
	transform: translateY(-2px);
}
.hero .info-bar-download:focus-visible {
	outline: 2px solid var(--accent-light);
	outline-offset: 3px;
}

/* Scroll indicator */
.hero .scroll-indicator {
	position: absolute;
	bottom: 100px;
	right: clamp(24px, 4vw, 60px);
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	opacity: 0;
	animation: hero-fadeUp 0.8s 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero .scroll-indicator span {
	font-family: "Outfit", sans-serif;
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.4);
	writing-mode: vertical-rl;
}

.hero .scroll-line {
	width: 1px;
	height: 60px;
	background: rgba(255,255,255,0.2);
	position: relative;
	overflow: hidden;
}
.hero .scroll-line::after {
	content: '';
	position: absolute;
	top: -100%;
	width: 100%;
	height: 100%;
	background: var(--accent-light);
	animation: hero-scrollDown 2s ease-in-out infinite;
}

@keyframes hero-scrollDown {
	0% { top: -100%; }
	100% { top: 100%; }
}

/* フロントページのみ Lightning / VK の独自モバイル UI を抑止（ヒーロー側のハンバーガーと重複するため） */
body.home #vk-mobile-nav-menu-btn,
body.home #vk-mobile-nav,
body.home .vk-mobile-nav-menu-btn,
body.home .vk-mobile-nav { display: none !important; }

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

	.site-header .header-nav-stack { display: none; }
	.site-header .hamburger { display: flex; }
	.mobile-nav { display: block; }

	.hero .hero-headline { font-size: clamp(1.8rem, 7vw, 2.8rem); }
	.hero .hero-content { padding-right: clamp(24px, 4vw, 60px); }

	.hero .info-bar-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
	.hero .info-bar-label { border-right: none; padding-right: 0; }
	.hero .info-bar-text { font-size: 1rem; gap: 12px; }
	.hero .info-bar-tel { font-size: 1.4rem; }
	.hero .info-bar-download {
		margin-left: 0;
		width: 100%;
		justify-content: center;
		padding: 14px 22px;
	}

	.hero .scroll-indicator { display: none; }
}
