/*
 * Genva Carpenter — 紹介ページ
 *
 * 配色はテーマの theme.json と base.css のダーク配色をそのまま使う。
 * ページとテーマの見た目を揃えるため、ここで新しい色は作らない。
 * 文字は 12px（0.75rem）未満にしない。
 */

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

:root {
	--walnut: #2c1d11;
	--oak: #8a5f2a;
	--vermilion: #b03e26;
	--indigo: #1e3a5f;
	--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;

	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {

	:root {
		--bg: #1a1715;
		--bg-alt: #241f1b;
		--text: #f4efe6;
		--text-muted: #c9bfb6;
		--heading: #f4efe6;
		--accent: #e2705a;
		--on-accent: #1a1715;
		--label: #c28e52;
		--line: rgba(244, 239, 230, 0.16);
		--wood: #241f1b;
		--wood-deep: #14110f;
	}
}

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

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.9;
	letter-spacing: 0.02em;
	-webkit-font-smoothing: antialiased;
}

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

p {
	margin: 0;
}

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

a {
	color: inherit;
}

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

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

	html {
		scroll-behavior: auto;
	}

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

.wrap {
	width: min(100% - var(--gutter) * 2, var(--wrap));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--accent);
	color: var(--on-accent);
}

.skip-link:focus {
	top: 1rem;
}

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

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

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

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

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

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

/* --- header ------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-top: 3px solid var(--oak);
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: blur(8px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
}

.brand {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	text-decoration: none;
}

.brand__name {
	font-family: var(--serif);
	font-size: 1.25rem;
	color: var(--heading);
}

.brand__tag {
	display: none;
	font-size: 0.75rem;
	color: var(--text-muted);
	letter-spacing: 0.12em;
}

@media (width >= 640px) {

	.brand__tag {
		display: inline;
	}
}

.site-nav {
	display: none;
}

.site-nav a {
	font-size: 0.875rem;
	color: var(--text-muted);
	text-decoration: none;
}

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

.site-header .btn {
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* 英語版と日本語版を行き来するリンク */
.lang-switch {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--line);
	color: var(--text-muted);
	font-size: 0.8125rem;
	text-decoration: none;
	white-space: nowrap;
}

.lang-switch:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* 幅の狭いスマホでは、屋号・言語切り替え・ボタンを1行に収めるため、
   3つとも少しずつ詰める。屋号は折り返さない。 */
@media (width < 480px) {

	.site-header__inner {
		gap: 0.5rem;
	}

	.brand__name {
		font-size: 1.0625rem;
		white-space: nowrap;
	}

	.site-header__actions {
		gap: 0.375rem;
	}

	.lang-switch {
		padding-inline: 0.5rem;
		font-size: 0.75rem;
	}

	.site-header .btn {
		padding-inline: 0.625rem;
		font-size: 0.75rem;
		letter-spacing: 0.04em;
	}
}

/* 幅320前後の小さな画面では、詰めても1行に収まらないので2行にする */
@media (width < 360px) {

	.site-header__inner {
		flex-wrap: wrap;
		padding-block: 0.5rem;
	}

	.site-header__actions {
		margin-left: auto;
	}
}

@media (width >= 960px) {

	.site-nav {
		display: flex;
		gap: 1.75rem;
	}
}

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

.section {
	padding-block: 5rem;
}

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

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

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

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

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

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

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

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

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

.section__head {
	margin-bottom: 3rem;
}

@media (width >= 768px) {

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

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

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

/* 組子の菱目。テーマのナビゲーション帯と同じ模様を背景に敷く */
.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;
}

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

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

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

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

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

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

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

@media (width >= 960px) {

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

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

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

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

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

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

.shot figcaption {
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--line);
	font-size: 0.8125rem;
	color: var(--text-muted);
}

/* 差し替え待ちの画像枠。画像が届いたら img に置き換える */
.shot__pending {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	padding: 1.5rem;
	background:
		repeating-linear-gradient(45deg, transparent 0 0.75rem, var(--line) 0.75rem calc(0.75rem + 1px)),
		var(--bg-alt);
	color: var(--text-muted);
	font-size: 0.875rem;
	text-align: center;
}

.shot__pending--tall {
	aspect-ratio: 1170 / 2532;
}

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

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

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

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

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

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

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

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

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

.lightbox__img {
	width: 100%;
}

.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 ------------------------------------------------------------ */

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

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

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

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

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

@media (width >= 768px) {

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

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

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

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

/* 角の組子紋。テーマの対応業務カードと同じ飾り */
.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;
}

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

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

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

@media (width >= 640px) {

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

@media (width >= 1024px) {

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

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

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

@media (width >= 960px) {

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

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

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

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

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

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

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

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

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

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

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

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

@media (width >= 768px) {

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

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

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

@media (width < 768px) {

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

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

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

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

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

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

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

@media (width >= 768px) {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.price-box__amount small {
	font-size: 1rem;
	margin-left: 0.25rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (width >= 768px) {

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

/* --- footer ------------------------------------------------------------- */

.site-footer {
	padding-block: 3rem;
	background: var(--wood-deep);
	color: var(--on-wood-muted);
	font-size: 0.8125rem;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	justify-content: space-between;
	align-items: center;
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.site-footer a {
	color: var(--on-wood);
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}
