/*
 * Genva Carpenter — 紹介ページ（/themes/genva-carpenter）
 *
 * 旧 genva.369theme.com/carpenter/ の style.css を、369theme.com の中に置くために書き直したもの。
 * 作りは genva-interior.css と同じ。
 *
 * - サイト本体の CSS（.card / .chip / .site-header など）と名前がぶつからないよう、
 *   クラスはすべて lp- で始め、.lp の中だけに効かせる
 * - ヘッダー・フッターはサイトのものを使うので、LP 側のものは持たない
 * - サイト本体が明るい配色だけなので、ダークモードは持たない
 * - 書体は Noto Serif JP（見出し）と Noto Sans JP（本文）。どちらもサイトが読み込み済み
 * - 配色はテーマの theme.json と同じ値。ここで新しい色は作らない
 * - 文字は 12px（0.75rem）未満にしない
 *
 * public/ に置いて直接読み込むので、npm run build は要らない。
 */

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

.lp {
	--walnut: #2c1d11;
	--oak: #8a5f2a;
	--vermilion: #b03e26;
	--ecru: #faf7f2;
	--panel: #f4efe6;
	--sumi: #1a1715;
	--muted: #4a443f;

	--bg: var(--ecru);
	--bg-alt: var(--panel);
	--text: var(--sumi);
	--text-muted: var(--muted);
	--heading: var(--walnut);
	--accent: var(--vermilion);
	--on-accent: #faf7f2;
	--label: var(--oak);
	--line: rgba(44, 29, 17, 0.16);
	--wood: #2c1d11;
	--wood-deep: #241a12;
	--on-wood: #f4efe6;
	--on-wood-muted: #c9bfb6;
	--on-wood-label: #c28e52;

	--serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

	--wrap: 72rem;
	--gutter: 1.25rem;

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

	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.9;
	letter-spacing: 0.02em;
}

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

.lp h1,
.lp h2,
.lp h3 {
	margin: 0;
	color: var(--heading);
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.5;
	word-break: auto-phrase;
	line-break: strict;
}

.lp p {
	margin: 0;
}

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

.lp a {
	color: inherit;
}

.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 {
	width: min(100% - var(--gutter) * 2, var(--wrap));
	margin-inline: auto;
}

/* --- page nav ------------------------------------------------------------
   旧LPのヘッダーにあったページ内メニュー。サイトのヘッダーの下に細い帯で貼り付ける。
   上の木目の線は、旧LPのヘッダーと同じ印。 */

.lp-subnav {
	position: sticky;
	top: var(--site-header-h);
	z-index: 40;
	border-top: 3px solid var(--oak);
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

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

.lp-subnav__name {
	flex-shrink: 0;
	font-family: var(--serif);
	font-size: 1.0625rem;
	color: var(--heading);
	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(--text-muted);
	text-decoration: none;
}

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

.lp-subnav .lp-btn {
	flex-shrink: 0;
	min-height: 2.25rem;
	margin-left: auto;
	padding: 0.375rem 1rem;
	font-size: 0.8125rem;
}

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

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

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

.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.75rem 1.75rem;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.08em;
	text-decoration: none;
	white-space: nowrap;
	transition: filter 0.2s;
}

.lp .lp-btn {
	color: var(--on-accent);
}

.lp-btn:hover {
	filter: brightness(1.08);
}

.lp .lp-btn--line {
	background: transparent;
	color: var(--heading);
	border-color: var(--line);
}

.lp-btn--line:hover {
	border-color: var(--accent);
	filter: none;
}

.lp .lp-btn--on-wood {
	color: var(--on-wood);
	border-color: rgba(244, 239, 230, 0.4);
}

/* --- section frame ------------------------------------------------------ */

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

.lp-section--alt {
	background: var(--bg-alt);
}

.lp-section--wood {
	background: var(--wood);
	color: var(--on-wood);
}

.lp .lp-section--wood h2,
.lp .lp-section--wood h3 {
	color: var(--on-wood);
}

.lp-eyebrow {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	color: var(--label);
	font-size: 0.8125rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

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

.lp-eyebrow::before {
	content: "";
	width: 2.5rem;
	height: 1px;
	background: currentColor;
}

.lp-section--wood .lp-eyebrow {
	color: var(--on-wood-label);
}

.lp .lp-section__title {
	font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem);
}

.lp-section__lead {
	max-width: 42rem;
	color: var(--text-muted);
}

.lp .lp-section__lead {
	margin-top: 1.25rem;
}

.lp-section--wood .lp-section__lead {
	color: var(--on-wood-muted);
}

.lp-section__head {
	margin-bottom: 3rem;
}

@media (width >= 768px) {

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

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

.lp-hero {
	position: relative;
	overflow: hidden;
	padding-block: 4rem 5rem;
}

/* 組子の菱目。テーマのナビゲーション帯と同じ模様を背景に敷く */
.lp-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(45deg, var(--line) 1px, transparent 1px),
		linear-gradient(-45deg, var(--line) 1px, transparent 1px);
	background-size: 2.5rem 2.5rem;
	opacity: 0.5;
	mask-image: linear-gradient(to bottom, #000, transparent 70%);
	pointer-events: none;
}

.lp-hero__grid {
	position: relative;
	display: grid;
	gap: 3rem;
	align-items: center;
}

.lp-hero__kicker {
	display: inline-block;
	margin-bottom: 1.5rem;
	padding: 0.25rem 0.875rem;
	border: 1px solid var(--label);
	color: var(--label);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	word-break: auto-phrase;
}

.lp .lp-hero__title {
	font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.lp .lp-hero__lead {
	margin-top: 1.5rem;
	color: var(--text-muted);
}

.lp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.lp .lp-hero__price {
	margin-top: 1.25rem;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.lp-hero__price strong {
	font-family: var(--serif);
	font-size: 1.375rem;
	color: var(--heading);
	margin-right: 0.25rem;
}

.lp-hero__price s {
	margin-right: 0.5rem;
}

@media (width >= 960px) {

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

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

/* --- screenshot frame --------------------------------------------------- */

.lp-shot {
	margin: 0;
	border: 1px solid var(--line);
	background: var(--bg);
	box-shadow: 0 1.5rem 3rem -1.5rem rgba(44, 29, 17, 0.35);
}

.lp-shot__bar {
	display: flex;
	gap: 0.375rem;
	padding: 0.625rem 0.75rem;
	border-bottom: 1px solid var(--line);
	background: var(--bg-alt);
}

.lp-shot__bar span {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background: var(--line);
}

/* --- zoom / lightbox ---------------------------------------------------
   縦に長いスクリーンショットは、幅1200 × 高さ900 と同じ比率の枠で上から
   見せ、クリックで全体を開く。 */

.lp-zoom {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.lp-zoom img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: top;
}

.lp-zoom__hint {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	padding: 0.375rem 0.875rem;
	background: var(--wood);
	color: var(--on-wood);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	transition: background-color 0.2s;
}

.lp-zoom:hover .lp-zoom__hint,
.lp-zoom:focus-visible .lp-zoom__hint {
	background: var(--accent);
	color: var(--on-accent);
}

.lp .lp-zoom:focus-visible {
	outline-offset: -3px;
}

.lp-sections-shot {
	margin-top: 2.5rem;
}

.lp-lightbox {
	width: min(100vw, 1200px);
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0 auto;
	padding: 0;
	border: 0;
	background: var(--bg);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lp-lightbox::backdrop {
	background: rgba(20, 17, 15, 0.85);
}

.lp-lightbox__img {
	width: 100%;
}

.lp-lightbox__close {
	position: sticky;
	top: 0.75rem;
	z-index: 1;
	float: right;
	margin: 0.75rem 0.75rem -3.25rem 0;
	min-height: 2.5rem;
	padding: 0.5rem 1.25rem;
	border: 0;
	background: var(--wood);
	color: var(--on-wood);
	font: inherit;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	cursor: pointer;
}

/* --- problem ------------------------------------------------------------ */

.lp-problem-list {
	display: grid;
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--line);
	border: 1px solid var(--line);
}

.lp-problem-list li {
	padding: 2rem 1.75rem;
	background: var(--bg);
}

.lp-problem-list__num {
	display: block;
	margin-bottom: 0.75rem;
	font-family: var(--serif);
	font-size: 1.75rem;
	color: var(--label);
}

.lp .lp-problem-list h3 {
	font-size: 1.1875rem;
	margin-bottom: 0.75rem;
}

.lp-problem-list p {
	color: var(--text-muted);
	font-size: 0.9375rem;
}

@media (width >= 768px) {

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

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

.lp-feature-grid {
	display: grid;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lp-feature {
	position: relative;
	padding: 2rem 1.75rem;
	border: 1px solid rgba(244, 239, 230, 0.14);
	background: var(--wood-deep);
	overflow: hidden;
}

/* 角の組子紋。テーマの対応業務カードと同じ飾り */
.lp-feature::after {
	content: "";
	position: absolute;
	right: -1.5rem;
	bottom: -1.5rem;
	width: 6rem;
	height: 6rem;
	border: 1px solid rgba(194, 142, 82, 0.25);
	transform: rotate(45deg);
	pointer-events: none;
}

.lp-feature__label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--on-wood-label);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
}

.lp .lp-feature h3 {
	font-size: 1.1875rem;
	margin-bottom: 0.75rem;
}

.lp-feature p {
	color: var(--on-wood-muted);
	font-size: 0.9375rem;
}

@media (width >= 640px) {

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

@media (width >= 1024px) {

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

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

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

@media (width >= 960px) {

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

.lp-section-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: sec;
	border-top: 1px solid var(--line);
}

.lp-section-list li {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: 0.25rem 1rem;
	padding-block: 1rem;
	border-bottom: 1px solid var(--line);
	counter-increment: sec;
}

.lp-section-list li::before {
	content: counter(sec, decimal-leading-zero);
	grid-row: span 2;
	font-family: var(--serif);
	font-size: 1.25rem;
	color: var(--label);
}

.lp-section-list strong {
	font-weight: 700;
	color: var(--heading);
}

.lp-section-list span {
	font-size: 0.875rem;
	color: var(--text-muted);
}

/* --- showcase (mobile / dark) ------------------------------------------- */

.lp-showcase {
	display: grid;
	gap: 2rem;
}

.lp .lp-showcase__text h3 {
	font-size: 1.375rem;
	margin-bottom: 1rem;
}

.lp .lp-showcase__text p + p {
	margin-top: 1rem;
}

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

.lp-showcase__phone {
	max-width: 18rem;
	margin-inline: auto;
}

@media (width >= 768px) {

	.lp-showcase {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 4rem;
	}

	.lp-showcase + .lp-showcase {
		margin-top: 5rem;
	}

	.lp-showcase--reverse .lp-showcase__media {
		order: -1;
	}
}

@media (width < 768px) {

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

/* --- steps -------------------------------------------------------------- */

.lp-steps {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.lp-steps li {
	position: relative;
	padding: 1.5rem 1.5rem 1.5rem 4.5rem;
	border: 1px solid var(--line);
	background: var(--bg);
	counter-increment: step;
}

.lp-steps li::before {
	content: counter(step);
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--label);
	border-radius: 50%;
	color: var(--label);
	font-family: var(--serif);
	font-size: 0.9375rem;
}

.lp .lp-steps h3 {
	font-size: 1.0625rem;
	margin-bottom: 0.25rem;
}

.lp-steps p {
	font-size: 0.9375rem;
	color: var(--text-muted);
}

@media (width >= 768px) {

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

.lp .lp-note {
	margin-top: 2rem;
	font-size: 0.875rem;
	color: var(--text-muted);
}

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

/* --- spec --------------------------------------------------------------- */

.lp-spec {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.lp-spec th,
.lp-spec td {
	padding: 1rem 0.75rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.lp-spec th {
	width: 38%;
	color: var(--text-muted);
	font-weight: 400;
}

/* --- faq ---------------------------------------------------------------- */

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

.lp-faq details {
	border: 1px solid var(--line);
	background: var(--bg);
}

.lp-faq summary {
	position: relative;
	padding: 1.25rem 3.5rem 1.25rem 1.5rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.lp-faq summary::-webkit-details-marker {
	display: none;
}

.lp-faq summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 1.5rem;
	translate: 0 -50%;
	color: var(--label);
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 400;
}

.lp-faq details[open] summary::after {
	content: "−";
}

.lp .lp-faq details p {
	padding: 0 1.5rem 1.5rem;
	color: var(--text-muted);
	font-size: 0.9375rem;
}

/* --- price -------------------------------------------------------------- */

.lp-price-box {
	max-width: 40rem;
	margin-inline: auto;
	padding: 3rem 1.5rem;
	border: 1px solid rgba(244, 239, 230, 0.2);
	text-align: center;
}

.lp .lp-price-box__name {
	font-family: var(--serif);
	font-size: 1.25rem;
}

.lp .lp-price-box__amount {
	margin-top: 1rem;
	font-family: var(--serif);
	font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	line-height: 1.2;
}

.lp .lp-price-box__regular {
	margin-top: 0.25rem;
	color: var(--on-wood-muted);
	font-size: 0.9375rem;
}

.lp .lp-price-box__sale {
	margin-top: 0.75rem;
	color: var(--on-wood-muted);
	font-size: 0.875rem;
}

.lp-price-box__list {
	display: grid;
	gap: 0.5rem;
	margin: 2rem auto 0;
	padding: 0;
	max-width: 24rem;
	list-style: none;
	text-align: left;
	font-size: 0.9375rem;
	color: var(--on-wood-muted);
}

.lp-price-box__list li {
	padding-left: 1.5rem;
	position: relative;
}

.lp-price-box__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8em;
	width: 0.625rem;
	height: 0.625rem;
	border: 1px solid var(--on-wood-label);
	transform: translateY(-50%) rotate(45deg);
}

.lp-price-box__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2.5rem;
}

/* ダークの木地の上でも朱の明度を保つ */
.lp-section--wood .lp-btn {
	--accent: #e2705a;
	--on-accent: #1a1715;
}

/* --- series ------------------------------------------------------------- */

.lp-series-card {
	display: grid;
	gap: 1.5rem;
	padding: 2rem;
	border: 1px solid var(--line);
	background: var(--bg);
	text-decoration: none;
	transition: border-color 0.2s;
}

.lp-series-card:hover {
	border-color: var(--accent);
}

.lp-series-card__label {
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	color: var(--label);
}

.lp .lp-series-card h3 {
	font-size: 1.375rem;
	margin-block: 0.25rem 0.75rem;
}

.lp-series-card p {
	color: var(--text-muted);
	font-size: 0.9375rem;
}

.lp-series-card__more {
	display: inline-block;
	margin-top: 1rem;
	color: var(--accent);
	font-size: 0.875rem;
	font-weight: 700;
}

@media (width >= 768px) {

	.lp-series-card {
		grid-template-columns: 2fr 3fr;
		align-items: center;
	}
}

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

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