/* けいこばん SaaS LP — Snow Monkey child front page */

.keikoban-lp {
	--kb-ink: #0a241c;
	--kb-forest: #0d3b2e;
	--kb-leaf: #1f6b52;
	--kb-mint: #b8e6d0;
	--kb-foam: #e8f5ef;
	--kb-sand: #f3eee4;
	--kb-amber: #d97706;
	--kb-text: #14241e;
	--kb-muted: #4a6b5c;
	--kb-line: rgba(13, 59, 46, 0.14);
	--kb-radius: 1.25rem;
	--kb-font: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
	--kb-display: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
	font-family: var(--kb-font);
	color: var(--kb-text);
	background: var(--kb-sand);
}

.keikoban-lp .l-contents,
.keikoban-lp .l-contents__container,
.keikoban-lp .c-container,
.keikoban-lp .c-fluid-container,
.keikoban-lp .c-entry {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}

.keikoban-lp .l-contents__inner,
.keikoban-lp .l-contents__main,
.keikoban-lp .c-entry__body,
.keikoban-lp .c-entry__content {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

.keikoban-lp .c-entry__header,
.keikoban-lp .c-entry-title,
.keikoban-lp .p-page-header,
.keikoban-lp .l-contents__sidebar,
.keikoban-lp .p-section-front-page-widget-area {
	display: none !important;
}

.keikoban-lp .kb-lp {
	width: 100%;
}

.kb-lp {
	overflow-x: clip;
}

.kb-wrap {
	width: min(1120px, calc(100% - 2.5rem));
	margin-inline: auto;
}

.kb-section {
	padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.kb-section__title {
	font-family: var(--kb-display);
	font-weight: 700;
	font-size: clamp(1.55rem, 3.4vw, 2.35rem);
	line-height: 1.35;
	letter-spacing: 0.01em;
	margin: 0 0 0.75rem;
	color: var(--kb-ink);
}

.kb-section__lead {
	margin: 0 0 2.25rem;
	max-width: 36rem;
	color: var(--kb-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

/* Hero */

.kb-hero {
	position: relative;
	isolation: isolate;
	min-height: min(100svh, 56rem);
	display: grid;
	align-items: center;
	padding: clamp(5rem, 12vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
	color: #f7fff9;
	background: var(--kb-forest);
}

.kb-hero__atmosphere {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 70% 55% at 78% 28%, rgba(184, 230, 208, 0.28), transparent 55%),
		radial-gradient(ellipse 50% 40% at 12% 80%, rgba(217, 119, 6, 0.18), transparent 50%),
		linear-gradient(160deg, #06241b 0%, #0d3b2e 42%, #154f3d 100%);
}

.kb-hero__atmosphere::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image:
		repeating-linear-gradient(
			-18deg,
			transparent 0,
			transparent 14px,
			rgba(255, 255, 255, 0.03) 14px,
			rgba(255, 255, 255, 0.03) 15px
		);
}

.kb-hero__inner {
	width: min(1180px, calc(100% - 2.5rem));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.kb-hero__brand {
	font-family: var(--kb-display);
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0 0 1rem;
	line-height: 1.05;
	color: #fff;
	animation: kb-brand-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kb-hero__title {
	font-family: var(--kb-display);
	font-size: clamp(1.35rem, 2.8vw, 1.9rem);
	font-weight: 500;
	line-height: 1.45;
	margin: 0 0 1rem;
	color: var(--kb-mint);
	animation: kb-rise 0.8s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kb-hero__lead {
	margin: 0 0 1.75rem;
	max-width: 32rem;
	color: rgba(247, 255, 249, 0.82);
	font-size: 1.02rem;
	line-height: 1.75;
	animation: kb-rise 0.8s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kb-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	animation: kb-rise 0.8s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 1.35rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.98rem;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kb-btn:hover {
	transform: translateY(-2px);
}

.kb-btn--primary {
	background: #fff;
	color: var(--kb-forest);
}

.kb-btn--primary:hover {
	background: var(--kb-mint);
	color: var(--kb-ink);
}

.kb-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
}

.kb-btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.kb-pricing .kb-btn--ghost,
.kb-pain .kb-btn--ghost {
	color: var(--kb-forest);
	border-color: var(--kb-line);
}

.kb-pricing .kb-btn--ghost:hover {
	border-color: var(--kb-forest);
	background: var(--kb-foam);
}

/* Product mock */

.kb-hero__visual {
	animation: kb-rise 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kb-mock {
	background: rgba(255, 255, 255, 0.96);
	color: var(--kb-text);
	border-radius: calc(var(--kb-radius) + 0.15rem);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.4) inset,
		0 28px 60px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
	transform-origin: left center;
}

.kb-mock__bar {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.85rem 1rem;
	background: var(--kb-ink);
	color: #fff;
	font-size: 0.85rem;
}

.kb-mock__bar span {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: #5c7a6e;
}

.kb-mock__bar span:nth-child(1) { background: #e07a5f; }
.kb-mock__bar span:nth-child(2) { background: #f2cc8f; }
.kb-mock__bar span:nth-child(3) { background: #81b29a; }

.kb-mock__bar strong {
	margin-left: 0.5rem;
	font-weight: 700;
}

.kb-mock__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.15rem 0.65rem;
	font-weight: 700;
}

.kb-mock__row em {
	font-style: normal;
	font-size: 0.85rem;
	color: var(--kb-leaf);
	background: var(--kb-foam);
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
}

.kb-mock__list {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0 0.85rem;
}

.kb-mock__list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 1.15rem;
	border-top: 1px solid var(--kb-line);
	font-size: 0.95rem;
}

.kb-mock__list b {
	display: inline-flex;
	min-width: 2.8rem;
	justify-content: center;
	font-size: 0.72rem;
	padding: 0.2rem 0.45rem;
	border-radius: 0.4rem;
	font-weight: 700;
}

.kb-mock__list .is-in b { background: #d8f3e4; color: #0d3b2e; }
.kb-mock__list .is-late b { background: #fff1d6; color: #9a6700; }
.kb-mock__list .is-out b { background: #fde2e2; color: #9b1c1c; }
.kb-mock__list .is-part b { background: #e4eefc; color: #1e3a8a; }
.kb-mock__list .is-wait b { background: #ececec; color: #555; }

/* Pain */

.kb-pain {
	background:
		linear-gradient(180deg, #efe8db 0%, var(--kb-sand) 100%);
}

.kb-pain__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.kb-pain__item {
	padding: 0;
	border-top: 2px solid var(--kb-forest);
	padding-top: 1.1rem;
}

.kb-pain__item strong {
	display: block;
	font-family: var(--kb-display);
	font-size: 1.15rem;
	margin-bottom: 0.45rem;
	color: var(--kb-ink);
}

.kb-pain__item span {
	color: var(--kb-muted);
	line-height: 1.65;
	font-size: 0.98rem;
}

/* Solve */

.kb-solve {
	background: #fff;
}

.kb-solve__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
}

.kb-solve__list li {
	padding-top: 1rem;
	border-top: 2px solid var(--kb-mint);
}

.kb-solve__list strong {
	display: block;
	font-family: var(--kb-display);
	font-size: 1.15rem;
	margin-bottom: 0.4rem;
	color: var(--kb-forest);
}

.kb-solve__list span {
	color: var(--kb-muted);
	line-height: 1.65;
	font-size: 0.98rem;
}

/* How */

.kb-how {
	background:
		radial-gradient(ellipse 60% 50% at 100% 0%, rgba(184, 230, 208, 0.45), transparent 55%),
		var(--kb-foam);
}

.kb-how__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.35rem;
	max-width: 40rem;
}

.kb-how__steps li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
}

.kb-how__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--kb-forest);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
}

.kb-how__steps strong {
	display: block;
	font-family: var(--kb-display);
	font-size: 1.15rem;
	margin-bottom: 0.3rem;
	color: var(--kb-ink);
}

.kb-how__steps p {
	margin: 0;
	color: var(--kb-muted);
	line-height: 1.65;
	font-size: 0.98rem;
}

.kb-how__steps code {
	font-size: 0.9em;
	background: rgba(255, 255, 255, 0.7);
	padding: 0.1em 0.35em;
	border-radius: 0.3em;
}

/* Genres */

.kb-genres {
	background: var(--kb-sand);
}

.kb-genres__labels {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1rem;
	margin: 0;
	color: var(--kb-forest);
	font-family: var(--kb-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
}

.kb-genres__labels span {
	position: relative;
	padding-right: 1rem;
}

.kb-genres__labels span:not(:last-child)::after {
	content: "·";
	position: absolute;
	right: 0;
	color: var(--kb-muted);
	font-weight: 400;
}

/* Demo CTA */

.kb-demo {
	background: var(--kb-sand);
	padding-top: 2rem;
}

.kb-demo__panel {
	padding: clamp(2.5rem, 5vw, 3.5rem);
	border-radius: calc(var(--kb-radius) + 0.35rem);
	background:
		linear-gradient(135deg, var(--kb-forest), #1a5c47 55%, #0a2e24);
	color: #fff;
	text-align: center;
}

.kb-demo__panel .kb-section__title,
.kb-demo__panel .kb-section__lead {
	color: #fff;
	margin-inline: auto;
}

.kb-demo__panel .kb-section__lead {
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: 1.5rem;
}

.kb-demo__panel .kb-btn--primary {
	background: #fff;
	color: var(--kb-forest);
}

/* Pricing */

.kb-pricing {
	background: #fff;
}

.kb-pricing__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	align-items: stretch;
}

.kb-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem 1.25rem 1.35rem;
	border: 1px solid var(--kb-line);
	border-radius: var(--kb-radius);
	background: var(--kb-sand);
}

.kb-plan h3 {
	margin: 0;
	font-family: var(--kb-display);
	font-size: 1.25rem;
	color: var(--kb-ink);
}

.kb-plan__price {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
}

.kb-plan__price span {
	font-size: 1.85rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--kb-forest);
}

.kb-plan__price small {
	color: var(--kb-muted);
	font-size: 0.9rem;
}

.kb-plan ul {
	margin: 0 0 0.5rem;
	padding: 0;
	list-style: none;
	flex: 1;
}

.kb-plan li {
	position: relative;
	padding: 0.35rem 0 0.35rem 1.1rem;
	color: var(--kb-muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

.kb-plan li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.75rem;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--kb-leaf);
}

.kb-plan .kb-btn {
	width: 100%;
}

.kb-plan--featured {
	background: var(--kb-forest);
	border-color: var(--kb-forest);
	color: #fff;
	transform: translateY(-0.35rem);
	box-shadow: 0 18px 40px rgba(13, 59, 46, 0.22);
}

.kb-plan--featured h3,
.kb-plan--featured .kb-plan__price span,
.kb-plan--featured li {
	color: #fff;
}

.kb-plan--featured .kb-plan__price small {
	color: rgba(255, 255, 255, 0.7);
}

.kb-plan--featured li::before {
	background: var(--kb-mint);
}

.kb-plan__badge {
	position: absolute;
	top: -0.7rem;
	left: 1.1rem;
	margin: 0;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: var(--kb-amber);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Footer CTA */

.kb-footer-cta {
	background:
		linear-gradient(180deg, #0a2e24 0%, #06241b 100%);
	color: #fff;
	text-align: center;
	padding-bottom: clamp(4.5rem, 9vw, 7rem);
}

.kb-footer-cta__brand {
	font-family: var(--kb-display);
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0 0 0.75rem;
}

.kb-footer-cta h2 {
	font-family: var(--kb-display);
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 500;
	margin: 0 0 0.65rem;
	color: var(--kb-mint);
}

.kb-footer-cta p {
	margin: 0 0 1.5rem;
	color: rgba(255, 255, 255, 0.78);
}

.kb-footer-cta .kb-hero__cta {
	justify-content: center;
	animation: none;
}

/* Reveal motion */

[data-kb-reveal] {
	opacity: 0;
	transform: translateY(1.25rem);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-kb-reveal].is-in {
	opacity: 1;
	transform: none;
}

@keyframes kb-brand-in {
	from {
		opacity: 0;
		transform: translateY(1.5rem) scale(0.98);
		filter: blur(4px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

@keyframes kb-rise {
	from {
		opacity: 0;
		transform: translateY(1.1rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kb-hero__brand,
	.kb-hero__title,
	.kb-hero__lead,
	.kb-hero__cta,
	.kb-hero__visual,
	[data-kb-reveal] {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		transition: none !important;
	}
}

/* Responsive */

@media (max-width: 960px) {
	.kb-hero__inner,
	.kb-pain__grid,
	.kb-solve__list,
	.kb-pricing__grid {
		grid-template-columns: 1fr 1fr;
	}

	.kb-mock {
		transform: none;
	}

	.kb-plan--featured {
		transform: none;
	}
}

@media (max-width: 640px) {
	.kb-hero {
		min-height: auto;
		padding-top: 4.5rem;
	}

	.kb-hero__inner,
	.kb-pain__grid,
	.kb-solve__list,
	.kb-pricing__grid {
		grid-template-columns: 1fr;
	}

	.kb-hero__cta,
	.kb-footer-cta .kb-hero__cta {
		flex-direction: column;
	}

	.kb-btn {
		width: 100%;
	}
}
