/* ============================================
   TKDistrict — Front Page Styles
   ============================================ */

:root {
	--bg: #161618;
	--bg-alt: #1d1d21;
	--surface: #212127;
	--border: rgba(255, 255, 255, 0.08);
	--text: #e8e8ec;
	--text-muted: #9a9aa3;
	--accent: #5eead4;
	--accent-2: #818cf8;
	--gradient: linear-gradient(120deg, #5eead4, #818cf8);
	--nav-height: 68px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--nav-height);
}

body {
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.8;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent);
	text-decoration: none;
}

/* WordPress admin bar 対応 */
body.admin-bar .navbar {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .navbar {
		top: 46px;
	}
}

/* ---------- Glowing Orbs ---------- */
.glow-orb {
	position: fixed;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.22;
	pointer-events: none;
	z-index: 0;
}

.glow-orb:nth-of-type(1) {
	width: 420px;
	height: 420px;
	background: #5eead4;
	top: -120px;
	left: -100px;
	animation: orbDrift 18s ease-in-out infinite alternate;
}

.glow-orb:nth-of-type(2) {
	width: 360px;
	height: 360px;
	background: #818cf8;
	top: 40%;
	right: -140px;
	animation: orbDrift 22s ease-in-out infinite alternate-reverse;
}

.glow-orb:nth-of-type(3) {
	width: 300px;
	height: 300px;
	background: #38bdf8;
	bottom: -100px;
	left: 30%;
	animation: orbDrift 26s ease-in-out infinite alternate;
}

@keyframes orbDrift {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(60px, 40px) scale(1.15); }
}

/* ---------- Particles ---------- */
.particles {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.particle {
	position: absolute;
	bottom: -10px;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	animation: particleRise 8s linear infinite;
}

@keyframes particleRise {
	0%   { transform: translateY(0); opacity: 0; }
	10%  { opacity: 0.7; }
	90%  { opacity: 0.2; }
	100% { transform: translateY(-105vh); opacity: 0; }
}

/* ---------- Navbar ---------- */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--nav-height);
	background: transparent;
	transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar.scrolled {
	background: rgba(22, 22, 24, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
	max-width: 1100px;
	margin: 0 auto;
	height: 100%;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
}

.nav-links a {
	color: var(--text);
	font-size: 0.92rem;
	font-weight: 500;
	transition: color 0.25s;
}

.nav-links a:hover {
	color: var(--accent);
}

.nav-links a.nav-cta {
	padding: 9px 22px;
	border-radius: 999px;
	background: var(--gradient);
	color: #101014;
	font-weight: 700;
	transition: opacity 0.25s, transform 0.25s;
}

.nav-links a.nav-cta:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Sections (共通 + スクロールリビール) ---------- */
.section {
	position: relative;
	z-index: 1;
	padding: 110px 0;
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
	opacity: 1;
	transform: translateY(0);
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

.section-header {
	text-align: center;
	margin-bottom: 56px;
}

.section-label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	color: var(--accent);
	margin-bottom: 12px;
}

.section-title {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.section-desc {
	margin-top: 14px;
	color: var(--text-muted);
	font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 14px 34px;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: transform 0.25s, opacity 0.25s, background 0.25s, box-shadow 0.25s;
}

.btn-primary {
	background: var(--gradient);
	color: #101014;
	box-shadow: 0 8px 24px rgba(94, 234, 212, 0.18);
}

.btn-primary:hover {
	transform: translateY(-2px);
	opacity: 0.9;
	box-shadow: 0 12px 30px rgba(94, 234, 212, 0.28);
}

.btn-ghost {
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--text);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero-section {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 140px 24px 80px;
}

.hero-title {
	font-size: clamp(2.8rem, 9vw, 5.5rem);
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.15;
	background: linear-gradient(120deg, #ffffff 20%, #5eead4 60%, #818cf8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.hero-sub {
	margin-top: 26px;
	font-size: clamp(1rem, 2.4vw, 1.2rem);
	color: var(--text-muted);
	line-height: 2;
}

.hero-actions {
	margin-top: 44px;
	display: flex;
	gap: 18px;
	justify-content: center;
	flex-wrap: wrap;
}

.hero-scroll-hint {
	position: absolute;
	bottom: 34px;
	left: 50%;
	transform: translateX(-50%);
	width: 24px;
	height: 40px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 14px;
}

.hero-scroll-hint span {
	position: absolute;
	top: 7px;
	left: 50%;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--accent);
	animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
	0%   { transform: translateY(0); opacity: 1; }
	70%  { transform: translateY(14px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Services ---------- */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.service-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 36px 28px;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s, box-shadow 0.3s;
}

.service-card.visible {
	opacity: 1;
	transform: translateY(0);
}

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }

.service-card:hover {
	border-color: rgba(94, 234, 212, 0.4);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.service-icon {
	width: 52px;
	height: 52px;
	margin-bottom: 22px;
	padding: 12px;
	border-radius: 14px;
	background: rgba(94, 234, 212, 0.1);
	color: var(--accent);
}

.service-icon svg {
	width: 100%;
	height: 100%;
}

.service-card h3 {
	font-size: 1.12rem;
	margin-bottom: 12px;
}

.service-card p {
	font-size: 0.9rem;
	color: var(--text-muted);
}

.price-note {
	margin-top: 64px;
	text-align: center;
	padding: 44px 28px;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 18px;
}

.price-note p {
	color: var(--text-muted);
	margin-bottom: 24px;
}

/* ---------- About ---------- */
.about-section {
	background: var(--bg-alt);
}

.about-content {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 56px;
	align-items: start;
}

.about-text p + p {
	margin-top: 18px;
}

.about-text p {
	color: var(--text-muted);
}

.about-text p:first-child {
	color: var(--text);
	font-weight: 600;
	font-size: 1.05rem;
}

.about-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.skill-tag {
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid rgba(94, 234, 212, 0.3);
	background: rgba(94, 234, 212, 0.06);
	font-size: 0.85rem;
	color: var(--text);
	transition: background 0.25s, transform 0.25s;
}

.skill-tag:hover {
	background: rgba(94, 234, 212, 0.14);
	transform: translateY(-2px);
}

/* ---------- Flow ---------- */
.flow-steps {
	display: flex;
	align-items: stretch;
	gap: 12px;
}

.flow-step {
	flex: 1;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 32px 22px;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.flow-step.visible {
	opacity: 1;
	transform: translateY(0);
}

.flow-step:nth-child(3) { transition-delay: 0.1s; }
.flow-step:nth-child(5) { transition-delay: 0.2s; }
.flow-step:nth-child(7) { transition-delay: 0.3s; }

.step-num {
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 16px;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.flow-step h3 {
	font-size: 1.02rem;
	margin-bottom: 10px;
}

.flow-step p {
	font-size: 0.85rem;
	color: var(--text-muted);
}

.flow-arrow {
	align-self: center;
	color: var(--accent);
	font-size: 1.4rem;
	flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-box {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
	padding: 52px 32px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
}

.contact-box p {
	color: var(--text-muted);
	margin-bottom: 28px;
}

.contact-box-btn {
	font-size: clamp(1rem, 3vw, 1.15rem);
	padding: 16px 44px;
}

.contact-box p.contact-box-alt {
	margin-top: 22px;
	margin-bottom: 0;
	font-size: 0.85rem;
	color: var(--text-muted);
}

.contact-box-alt a {
	color: var(--accent);
	border-bottom: 1px solid rgba(94, 234, 212, 0.35);
	transition: border-color 0.25s;
}

.contact-box-alt a:hover {
	border-color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--border);
	background: var(--bg-alt);
	padding: 56px 0 32px;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.footer-logo {
	font-size: 1.2rem;
	font-weight: 700;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.footer-tagline {
	margin-top: 6px;
	font-size: 0.85rem;
	color: var(--text-muted);
}

.footer-nav {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
}

.footer-nav a {
	color: var(--text-muted);
	font-size: 0.88rem;
	transition: color 0.25s;
}

.footer-nav a:hover {
	color: var(--accent);
}

.footer-copy {
	text-align: center;
	font-size: 0.8rem;
	color: var(--text-muted);
}

/* ---------- Contact Page ---------- */
.contact-page {
	min-height: 80vh;
	padding-top: calc(var(--nav-height) + 72px);
}

.contact-layout {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 32px;
	align-items: start;
	max-width: 980px;
	margin: 0 auto;
}

/* グラデーションボーダーのフォームカード(トップのCTAと同じ血統) */
.contact-form-card {
	position: relative;
	background: var(--surface);
	border-radius: 20px;
	padding: 40px 36px;
	background-clip: padding-box;
	border: 1px solid transparent;
}

.contact-form-card::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: 21px;
	background: linear-gradient(150deg, rgba(94, 234, 212, 0.55), rgba(255, 255, 255, 0.06) 38%, rgba(129, 140, 248, 0.45));
}

.contact-aside {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.contact-aside-item {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 26px 24px;
}

.contact-aside-item h2 {
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--text);
}

.contact-aside-item p {
	font-size: 0.85rem;
	color: var(--text-muted);
}

.contact-aside-mail {
	display: inline-block;
	margin-top: 12px;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--accent);
	border-bottom: 1px solid rgba(94, 234, 212, 0.35);
	transition: border-color 0.25s;
}

.contact-aside-mail:hover {
	border-color: var(--accent);
}

.contact-aside-link {
	display: inline-block;
	margin-top: 12px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--accent);
}

.contact-aside-link:hover {
	text-decoration: underline;
}

/* ---------- Contact Form 7 ---------- */
.wpcf7 form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.wpcf7 form > p {
	margin: 0;
}

.wpcf7 label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text);
	letter-spacing: 0.02em;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 8px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
	width: 100%;
	padding: 13px 16px;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--text);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	border-radius: 12px;
	outline: none;
	transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.wpcf7 textarea {
	min-height: 160px;
	resize: vertical;
}

.wpcf7 input:hover,
.wpcf7 textarea:hover {
	border-color: rgba(255, 255, 255, 0.18);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	border-color: var(--accent);
	background: rgba(94, 234, 212, 0.04);
	box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: rgba(154, 154, 163, 0.6);
}

.wpcf7 .wpcf7-submit {
	display: inline-block;
	width: 100%;
	padding: 15px 34px;
	border: none;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.04em;
	cursor: pointer;
	background: var(--gradient);
	color: #101014;
	box-shadow: 0 8px 24px rgba(94, 234, 212, 0.18);
	transition: transform 0.25s, opacity 0.25s, box-shadow 0.25s;
}

.wpcf7 .wpcf7-submit:hover {
	transform: translateY(-2px);
	opacity: 0.9;
	box-shadow: 0 12px 30px rgba(94, 234, 212, 0.28);
}

.wpcf7 .wpcf7-submit:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.wpcf7 .wpcf7-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.wpcf7 .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

/* バリデーション・送信結果 */
.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 7px;
	font-size: 0.8rem;
	font-weight: 500;
	color: #f8a5a5;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
	border-color: rgba(248, 113, 113, 0.6);
}

.wpcf7 .wpcf7-response-output {
	margin: 4px 0 0;
	padding: 14px 18px;
	font-size: 0.88rem;
	border-radius: 12px;
	border: 1px solid rgba(248, 113, 113, 0.4) !important;
	background: rgba(248, 113, 113, 0.08);
	color: var(--text);
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: rgba(94, 234, 212, 0.45) !important;
	background: rgba(94, 234, 212, 0.08);
}

/* ---------- 下層ページ ---------- */
.inner-page {
	min-height: 70vh;
	padding-top: calc(var(--nav-height) + 60px);
}

.inner-page .entry-content {
	margin-top: 28px;
	color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.flow-steps {
		flex-direction: column;
	}

	.flow-arrow {
		transform: rotate(90deg);
		text-align: center;
	}

	.about-content {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.contact-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.contact-form-card {
		padding: 30px 22px;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 80px 0;
	}

	.nav-toggle {
		display: flex;
	}

	.nav-links {
		position: absolute;
		top: var(--nav-height);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: rgba(22, 22, 24, 0.97);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-bottom: 1px solid var(--border);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
	}

	.nav-links.open {
		max-height: 320px;
	}

	.nav-links li {
		text-align: center;
	}

	.nav-links a {
		display: block;
		padding: 16px;
	}

	.nav-links a.nav-cta {
		margin: 12px 24px 20px;
		border-radius: 999px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.section,
	.service-card,
	.flow-step {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.particle,
	.glow-orb,
	.hero-scroll-hint span {
		animation: none;
	}
}
