/*
 * Abira — 紹介ページ（/themes/abira）
 *
 * 旧 abira.369theme.com の LP を、369theme.com の中に置くために書き直したもの。
 *
 * 旧 LP は Tailwind の CDN（ブラウザの中で動く Tailwind）で組まれていた。
 * 369theme.com の中で CDN を読み込むと、サイト本体の Tailwind と二重になり、
 * ヘッダーやフッターの見た目まで書き換わる。なので、見た目は旧 LP の Tailwind の値のまま、
 * 普通の CSS に置き換えた。数値は Tailwind の既定値（1 = 0.25rem）に合わせている。
 *
 * - クラスはすべて lp- で始め、.lp の中だけに効かせる
 * - ヘッダー・フッターはサイトのものを使うので、LP 側のものは持たない
 * - 書体は旧 LP と同じシステムフォント
 * - 文字は 12px（0.75rem）未満にしない
 *
 * public/ に置いて直接読み込むので、npm run build は要らない。
 */

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

.lp {
	--base: #ffffff;
	--contrast: #111111;
	--accent: #5f7e64;
	--subtle: #f5f5f5;
	--muted: #707070;

	--sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mono: "Courier New", Courier, monospace;

	--wrap: 64rem;

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

	background: var(--base);
	color: var(--contrast);
	font-family: var(--sans);
	line-height: 1.5;
}

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

.lp h1,
.lp h2,
.lp h3 {
	margin: 0;
	color: var(--contrast);
}

.lp p {
	margin: 0;
}

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

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

.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;
}

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

.lp-subnav {
	position: sticky;
	top: var(--site-header-h);
	z-index: 40;
	border-bottom: 1px solid var(--subtle);
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
}

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

.lp-subnav__name {
	flex-shrink: 0;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--contrast);
	text-decoration: none;
}

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

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

.lp-subnav__links a {
	padding-block: 0.5rem;
	font-size: 0.875rem;
	color: var(--muted);
	text-decoration: none;
}

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

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

.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--accent);
	border-radius: 0.25rem;
	background: var(--accent);
	color: #fff;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.lp .lp-btn {
	color: #fff;
}

.lp .lp-btn:hover {
	background: var(--contrast);
	border-color: var(--contrast);
	color: #fff;
}

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

.lp .lp-btn--outline:hover {
	background: var(--subtle);
	border-color: var(--contrast);
	color: var(--contrast);
}

/* 暗い帯の上の大きなボタン */
.lp-btn--lg {
	padding: 1rem 2rem;
}

.lp .lp-btn--on-dark:hover {
	background: #fff;
	border-color: #fff;
	color: var(--contrast);
}

/* 白地の上で控えめに置く、枠線だけのボタン */
.lp .lp-btn--quiet {
	background: transparent;
	border-color: rgba(112, 112, 112, 0.3);
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 400;
	padding: 0.625rem 1.5rem;
}

.lp .lp-btn--quiet:hover {
	background: transparent;
	border-color: var(--contrast);
	color: var(--contrast);
}

.lp-btn__heart {
	width: 1rem;
	height: 1rem;
	color: #f472b6;
}

.lp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2.5rem;
}

/* --- sections ----------------------------------------------------------- */

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

/* 薄いグレーの帯 */
.lp-band {
	border-block: 1px solid var(--subtle);
	background: rgba(245, 245, 245, 0.4);
}

.lp .lp-h2 {
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.lp-lead {
	max-width: 42rem;
	margin-bottom: 3.5rem;
	color: var(--muted);
	line-height: 1.625;
}

.lp .lp-lead {
	margin-top: 1rem;
}

.lp-text {
	color: var(--muted);
	line-height: 1.625;
}

.lp-kicker {
	margin-bottom: 1.5rem;
	color: var(--accent);
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.lp .lp-kicker {
	margin-bottom: 1.5rem;
}

.lp-frame {
	border: 1px solid var(--subtle);
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

@media (width >= 768px) {

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

	.lp .lp-h2 {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}
}

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

.lp-hero {
	padding-block: 6rem 5rem;
}

.lp .lp-hero__title {
	max-width: 48rem;
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.lp .lp-hero__lead {
	max-width: 42rem;
	margin-top: 2rem;
	color: var(--muted);
	font-size: 1.125rem;
	line-height: 1.625;
}

.lp-screenshot {
	padding-bottom: 5rem;
}

@media (width >= 768px) {

	.lp-hero {
		padding-block: 8rem 7rem;
	}

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

	.lp .lp-hero__lead {
		font-size: 1.25rem;
	}

	.lp-screenshot {
		padding-bottom: 7rem;
	}
}

/* --- why ---------------------------------------------------------------- */

.lp .lp-why__title {
	max-width: 42rem;
}

.lp-two {
	display: grid;
	gap: 2.5rem;
	margin-top: 2.5rem;
}

@media (width >= 768px) {

	.lp-two {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

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

.lp .lp-features__title {
	margin-bottom: 3.5rem;
}

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

.lp .lp-feature h3 {
	margin-bottom: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
}

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

.lp .lp-feature__img {
	width: 100%;
	max-width: 20rem;
	margin-top: 1rem;
	border: 1px solid var(--subtle);
	border-radius: 0.25rem;
}

@media (width >= 640px) {

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

@media (width >= 1024px) {

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

/* --- showcase ----------------------------------------------------------- */

.lp-shot + .lp-shot {
	margin-top: 4rem;
}

.lp .lp-shot__label {
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
}

/* --- demo (dark band) --------------------------------------------------- */

.lp-dark {
	border-block: 1px solid var(--subtle);
	background: var(--contrast);
	color: #fff;
	text-align: center;
}

.lp .lp-dark h2 {
	color: #fff;
}

.lp .lp-dark__lead {
	max-width: 36rem;
	margin: 1.5rem auto 0;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.625;
}

.lp-dark__action {
	margin-top: 2.5rem;
}

@media (width >= 768px) {

	.lp .lp-dark__lead {
		font-size: 1.125rem;
	}
}

/* --- get ---------------------------------------------------------------- */

.lp-get {
	display: grid;
	gap: 3rem;
	align-items: start;
}

.lp .lp-get__text {
	margin-top: 1.5rem;
}

.lp-get .lp-frame {
	margin-top: 2rem;
}

.lp-get .lp-actions {
	margin-top: 2rem;
}

.lp-quick {
	padding: 1.5rem;
	border: 1px solid var(--subtle);
	border-radius: 0.5rem;
	background: rgba(245, 245, 245, 0.5);
	color: rgba(17, 17, 17, 0.8);
	font-family: var(--mono);
	font-size: 0.875rem;
	line-height: 1.625;
}

.lp .lp-quick__head {
	margin-bottom: 0.75rem;
	color: var(--muted);
}

@media (width >= 768px) {

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

/* --- sister theme ------------------------------------------------------- */

.lp-sister {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.lp-sister .lp-actions {
	gap: 0.75rem;
	margin-top: 2rem;
}

.lp .lp-sister .lp-btn--outline {
	border-color: rgba(17, 17, 17, 0.25);
}

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

@media (width >= 768px) {

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

/* --- sponsor ------------------------------------------------------------ */

.lp-sponsor {
	padding-block: 6rem;
	border-top: 1px solid var(--subtle);
}

.lp-sponsor__inner {
	max-width: 42rem;
	margin-inline: auto;
	padding-inline: 1.5rem;
	text-align: center;
}

.lp .lp-sponsor .lp-h2 {
	margin-bottom: 1.5rem;
}

.lp .lp-sponsor__note {
	margin-bottom: 2.5rem;
	color: rgba(112, 112, 112, 0.7);
	font-size: 0.875rem;
}

.lp .lp-sponsor__review {
	padding: 1rem 2.5rem;
	font-size: 1rem;
}

.lp .lp-sponsor__more {
	margin: 3.5rem 0 1rem;
	color: var(--muted);
	font-size: 0.875rem;
}

.lp-sponsor__links {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
}

@media (width >= 640px) {

	.lp-sponsor__links {
		flex-direction: row;
	}
}

@media (width >= 768px) {

	.lp-sponsor {
		padding-block: 8rem;
	}
}

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

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

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

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

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

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