/*
 * Movaone — 紹介ページ（/themes/movaone）
 *
 * 旧 movaone.369theme.com の LP を、369theme.com の中に置くために書き直したもの。
 *
 * 旧 LP は Tailwind の CDN（ブラウザの中で動く Tailwind）で組まれていた。
 * 369theme.com の中で CDN を読み込むと、サイト本体の Tailwind と二重になり、
 * ヘッダーやフッターの見た目まで書き換わる。なので、見た目は旧 LP の Tailwind の値のまま、
 * 普通の CSS に置き換えた。色は Tailwind の neutral と、旧 LP で足していた forest。
 *
 * - クラスはすべて lp- で始め、.lp の中だけに効かせる
 * - ヘッダー・フッターはサイトのものを使うので、LP 側のものは持たない
 * - 書体は Noto Serif JP（見出し）と Noto Sans JP（本文）。どちらもサイトが読み込み済み
 * - 旧 LP の薄いグレーの小さな文字（neutral-400 #a3a3a3、白地で約2.5:1）は WCAG AA に届かないので、
 *   neutral-500（#737373、約4.7:1）に上げた。黒い帯の上の文字も同じ理由で明るくした
 * - 文字は 12px（0.75rem）未満にしない
 *
 * public/ に置いて直接読み込むので、npm run build は要らない。
 */

/* --- tokens ------------------------------------------------------------- */

.lp {
	--n-50: #fafafa;
	--n-100: #f5f5f5;
	--n-200: #e5e5e5;
	--n-300: #d4d4d4;
	--n-400: #a3a3a3;
	--n-500: #737373;
	--n-600: #525252;
	--n-700: #404040;
	--n-800: #262626;
	--n-900: #171717;
	--forest-500: #3d7a50;
	--forest-600: #2d6040;

	--serif: "Noto Serif JP", Georgia, serif;
	--sans: "Noto Sans JP", system-ui, sans-serif;

	--wrap: 72rem;

	/* サイトのヘッダー（h-16）の高さ。ページ内メニューをこの下に貼り付ける */
	--site-header-h: 4rem;
	--subnav-h: 3rem;

	background: var(--n-50);
	color: var(--n-800);
	font-family: var(--sans);
	font-feature-settings: "palt";
	line-height: 1.5;
}

/* --- base --------------------------------------------------------------- */

.lp h1,
.lp h2,
.lp h3 {
	margin: 0;
}

.lp p,
.lp ul,
.lp figure {
	margin: 0;
}

.lp img {
	display: block;
	max-width: 100%;
	height: auto;
}

.lp a:focus-visible,
.lp button:focus-visible {
	outline: 2px solid var(--forest-500);
	outline-offset: 3px;
	border-radius: 2px;
}

.lp [id] {
	scroll-margin-top: calc(var(--site-header-h) + var(--subnav-h) + 1rem);
}

.lp-wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.lp-wrap--narrow {
	max-width: 56rem;
}

/* --- page nav ------------------------------------------------------------
   旧LPのヘッダーにあったページ内メニュー。サイトのヘッダーの下に細い帯で貼り付ける。 */

.lp-subnav {
	position: sticky;
	top: var(--site-header-h);
	z-index: 40;
	border-bottom: 1px solid var(--n-200);
	background: rgba(250, 250, 250, 0.95);
	backdrop-filter: blur(4px);
}

.lp-subnav__inner {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	min-height: var(--subnav-h);
}

.lp .lp-subnav__name {
	flex-shrink: 0;
	color: var(--n-900);
	font-family: var(--serif);
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: 0.025em;
	text-decoration: none;
}

.lp-subnav__links {
	display: flex;
	gap: 1.75rem;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}

.lp-subnav__links::-webkit-scrollbar {
	display: none;
}

.lp .lp-subnav__links a {
	position: relative;
	padding-block: 0.5rem;
	color: var(--n-500);
	font-size: 0.875rem;
	text-decoration: none;
	transition: color 0.15s;
}

.lp .lp-subnav__links a:hover {
	color: var(--n-900);
}

/* 下線が左から伸びる、旧 LP と同じホバー */
.lp-subnav__links a::after {
	content: "";
	position: absolute;
	bottom: 0.375rem;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--forest-500);
	transition: width 0.3s;
}

.lp-subnav__links a:hover::after {
	width: 100%;
}

.lp-subnav .lp-btn {
	flex-shrink: 0;
	margin-left: auto;
	padding: 0.5rem 1.25rem;
}

/* 狭い画面では、名前とボタンを隠してメニューだけにする */
@media (width < 640px) {

	.lp .lp-subnav__name,
	.lp-subnav .lp-btn {
		display: none;
	}
}

/* --- buttons ------------------------------------------------------------ */

.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 2rem;
	border: 1px solid var(--n-900);
	border-radius: 0.25rem;
	background: var(--n-900);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.lp .lp-btn {
	color: var(--n-50);
}

.lp .lp-btn:hover {
	background: var(--n-700);
	border-color: var(--n-700);
}

.lp .lp-btn--outline {
	background: transparent;
	border-color: var(--n-300);
	color: var(--n-600);
}

.lp .lp-btn--outline:hover {
	background: transparent;
	border-color: var(--n-500);
}

/* 黒い帯の上の緑のボタン */
.lp .lp-btn--forest {
	padding: 1rem 2.5rem;
	background: var(--forest-500);
	border-color: var(--forest-500);
	color: #fff;
}

.lp .lp-btn--forest:hover {
	background: var(--forest-600);
	border-color: var(--forest-600);
}

/* 黒い帯の上の枠線ボタン */
.lp .lp-btn--on-dark {
	padding: 1rem 2.5rem;
	background: transparent;
	border-color: var(--n-600);
	color: var(--n-300);
}

.lp .lp-btn--on-dark:hover {
	background: transparent;
	border-color: var(--n-400);
	color: var(--n-100);
}

.lp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* --- shared ------------------------------------------------------------- */

.lp-section {
	padding-block: 6rem;
}

.lp-section--white {
	background: #fff;
}

.lp-section--gray {
	background: var(--n-100);
}

.lp-eyebrow {
	color: var(--forest-500);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.lp .lp-eyebrow {
	margin-bottom: 0.75rem;
}

.lp .lp-h2 {
	color: var(--n-900);
	font-family: var(--serif);
	font-size: 2.25rem;
	font-weight: 400;
	line-height: 1.25;
}

.lp-head {
	margin-bottom: 4rem;
	text-align: center;
}

/* すぐ下に注記が続く見出し。余白は注記の側で取る */
.lp-head--tight {
	margin-bottom: 0;
}

/* 画像の枠 */
.lp-frame {
	overflow: hidden;
	border: 1px solid var(--n-200);
	border-radius: 0.75rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.lp-frame img {
	width: 100%;
}

.lp-frame figcaption {
	padding-block: 0.625rem;
	border-top: 1px solid var(--n-100);
	background: var(--n-50);
	color: var(--n-500);
	font-size: 0.75rem;
	text-align: center;
}

/* スマホの画面写真は幅を絞る */
.lp-frame--phone {
	max-width: 20rem;
}

@media (width >= 1024px) {

	.lp .lp-h2 {
		font-size: 3rem;
	}
}

/* --- hero --------------------------------------------------------------- */

.lp-hero {
	display: flex;
	align-items: center;
	min-height: calc(100vh - var(--site-header-h) - var(--subnav-h));
	background: var(--n-50);
}

.lp-hero__grid {
	display: grid;
	align-items: center;
	gap: 4rem;
	padding-block: 6rem;
}

.lp .lp-hero__eyebrow {
	margin-bottom: 1.25rem;
}

.lp .lp-hero__title {
	margin-bottom: 1.75rem;
	color: var(--n-900);
	font-family: var(--serif);
	font-size: 3rem;
	font-weight: 400;
	line-height: 1.25;
}

.lp-hero__title em {
	color: var(--forest-500);
	font-style: normal;
}

.lp .lp-hero__lead {
	max-width: 28rem;
	margin-bottom: 2.5rem;
	color: var(--n-500);
	font-size: 15px;
	line-height: 1.625;
}

.lp .lp-hero__note {
	margin-top: 1.25rem;
	color: var(--n-500);
	font-size: 0.75rem;
}

.lp-hero__figure {
	overflow: hidden;
	border: 1px solid var(--n-200);
	border-radius: 0.75rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.lp .lp-hero__caption {
	margin-top: 0.75rem;
	color: var(--n-500);
	font-size: 0.75rem;
	text-align: center;
}

@media (width >= 1024px) {

	.lp-hero__grid {
		grid-template-columns: 1fr 1fr;
	}

	.lp .lp-hero__title {
		font-size: 3.75rem;
	}
}

/* ヒーローは、読み込み時に下からふわっと出す（旧 LP と同じ動き）。
   CSS だけの動きなので、JS が動かない環境でも最後は必ず表示される */
.lp-hero-anim {
	opacity: 0;
	animation: lp-hero-up 0.8s ease forwards;
}

.lp-delay-1 {
	animation-delay: 0.05s;
}

.lp-delay-2 {
	animation-delay: 0.18s;
}

.lp-delay-3 {
	animation-delay: 0.28s;
}

.lp-delay-4 {
	animation-delay: 0.32s;
}

.lp-delay-5 {
	animation-delay: 0.45s;
}

.lp-delay-6 {
	animation-delay: 0.55s;
}

@keyframes lp-hero-up {

	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* --- features ----------------------------------------------------------- */

.lp-features {
	display: grid;
	gap: 1.75rem;
}

.lp-feature {
	padding: 1.5rem;
	border: 1px solid var(--n-200);
	border-radius: 0.75rem;
	transition: transform 0.3s, box-shadow 0.3s;
}

.lp-feature:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.lp-feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 1.25rem;
	border-radius: 0.5rem;
	background: var(--forest-500);
}

.lp .lp-feature h3 {
	margin-bottom: 0.5rem;
	color: var(--n-900);
	font-family: var(--serif);
	font-size: 1.25rem;
	font-weight: 500;
}

.lp-feature p {
	color: var(--n-500);
	font-size: 0.875rem;
	line-height: 1.625;
}

@media (width >= 768px) {

	.lp-features {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (width >= 1024px) {

	.lp-features {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* --- layout ------------------------------------------------------------- */

.lp-split {
	display: grid;
	align-items: center;
	gap: 4rem;
}

.lp .lp-layout__title {
	margin-bottom: 2rem;
}

.lp-points {
	display: grid;
	gap: 1.75rem;
	padding: 0;
	list-style: none;
}

.lp-point {
	display: flex;
	gap: 1.25rem;
}

.lp-point__num {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--forest-500);
	border-radius: 9999px;
	color: var(--forest-600);
	font-size: 0.875rem;
	font-weight: 500;
}

.lp .lp-point h3 {
	margin-bottom: 0.25rem;
	color: var(--n-800);
	font-size: 1rem;
	font-weight: 500;
}

.lp-point p {
	color: var(--n-500);
	font-size: 0.875rem;
	line-height: 1.625;
}

.lp-point code {
	padding-inline: 0.25rem;
	border-radius: 0.25rem;
	background: var(--n-200);
	font-size: 0.75rem;
}

.lp .lp-layout__figure figcaption {
	border-top: 0;
	background: #fff;
}

@media (width >= 1024px) {

	.lp-split {
		grid-template-columns: 1fr 1fr;
	}
}

/* --- preview ------------------------------------------------------------ */

.lp .lp-preview__note {
	margin: 1rem 0 3.5rem;
	color: var(--n-500);
	font-size: 0.875rem;
	text-align: center;
}

.lp-preview__rows {
	display: grid;
	gap: 3.5rem;
}

.lp .lp-preview__label {
	margin-bottom: 1.25rem;
	color: var(--n-500);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.lp-preview__pair {
	display: grid;
	align-items: start;
	gap: 1.5rem;
}

@media (width >= 1024px) {

	.lp-preview__pair {
		grid-template-columns: 1fr 1fr;
	}
}

/* --- checklist ---------------------------------------------------------- */

.lp .lp-checklist__title {
	font-size: 2.25rem;
}

.lp-checklist {
	display: grid;
	gap: 0.75rem 3.5rem;
}

.lp-checklist ul {
	display: grid;
	gap: 0.75rem;
	padding: 0;
	list-style: none;
}

.lp-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--n-600);
	font-size: 0.875rem;
}

.lp-checklist li::before {
	content: "✓";
	flex-shrink: 0;
	color: var(--forest-500);
}

@media (width >= 768px) {

	.lp-checklist {
		grid-template-columns: 1fr 1fr;
	}
}

/* --- cta ---------------------------------------------------------------- */

.lp-cta {
	padding-block: 7rem;
	background: var(--n-900);
	color: var(--n-50);
	text-align: center;
}

.lp-cta__inner {
	max-width: 42rem;
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.lp .lp-cta h2 {
	margin-bottom: 1.5rem;
	color: var(--n-50);
}

.lp .lp-cta__lead {
	margin-bottom: 2.5rem;
	color: var(--n-300);
	font-size: 15px;
	line-height: 1.625;
}

.lp-cta .lp-actions {
	justify-content: center;
	gap: 1rem;
}

.lp .lp-cta__note {
	margin-top: 2rem;
	color: var(--n-400);
	font-size: 0.75rem;
}

/* --- reveal --------------------------------------------------------------
   スクロールで、ふわっと表示する演出（旧 LP と同じ動き）。
   JS が .lp に lp-reveal-ready を付けてから隠すので、JS が動かない環境では最初から全部見える。 */

.lp-reveal-ready .lp-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.lp-reveal-ready .lp-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* カードの表示を少しずつずらす（旧 LP では style="transition-delay:…" と直書きしていた） */
.lp-reveal-ready .lp-reveal.lp-stagger-1 {
	transition-delay: 0.1s;
}

.lp-reveal-ready .lp-reveal.lp-stagger-2 {
	transition-delay: 0.2s;
}

.lp-reveal-ready .lp-reveal.lp-stagger-15 {
	transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {

	.lp-hero-anim,
	.lp-reveal-ready .lp-reveal {
		opacity: 1;
		transform: none;
		animation: none;
	}

	.lp *,
	.lp *::before,
	.lp *::after {
		transition-duration: 0.01ms !important;
	}
}
