:root {
	color-scheme: light;
	--paper: #fffdf5;
	--paper-deep: #f5f1e3;
	--ink: #111a3a;
	--ink-soft: #4a5170;
	--line: #d9d4c0;
	--accent: #b5452c;
	--page-a: #d9694f;
	--page-b: #8fa3d6;
	--measure: 68ch;
	--font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
	--font-display: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
	--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
	--icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	line-height: 1.85;
	overflow-wrap: anywhere;
}

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

a {
	color: var(--ink);
	text-underline-offset: 0.2em;
}

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

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

/* 外部リンク（別タブで開く） */
a[target="_blank"]::after {
	content: "";
	content: "" / "（新しいタブで開く）";
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	margin-left: 0.25em;
	vertical-align: -0.05em;
	background: currentColor;
	-webkit-mask: var(--icon-external) center / contain no-repeat;
	mask: var(--icon-external) center / contain no-repeat;
}

/* メールリンク（メールソフトを開く） */
a[href^="mailto:"]::after {
	content: "";
	content: "" / "（メールを作成）";
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-left: 0.25em;
	vertical-align: -0.1em;
	background: currentColor;
	-webkit-mask: var(--icon-mail) center / contain no-repeat;
	mask: var(--icon-mail) center / contain no-repeat;
}

code {
	padding: 0.1em 0.35em;
	border-radius: 4px;
	background: var(--paper-deep);
	font-family: var(--font-mono);
	font-size: 0.9em;
}

.wrap {
	width: min(1040px, 100% - 2rem);
	margin-inline: auto;
}

/* ヘッダー */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 1.5rem;
	padding-block: 0.6rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	text-decoration: none;
}

.brand img {
	width: 36px;
	height: 36px;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.1rem 1.25rem;
	font-size: 0.9rem;
}

.site-nav a {
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	text-decoration: underline;
}

/* 共通セクション */
section {
	padding-block: 4.5rem;
	border-bottom: 1px solid var(--line);
}

h1,
h2 {
	font-family: var(--font-display);
	line-height: 1.4;
}

h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
	margin: 0 0 0.4rem;
	font-size: 1.1rem;
	line-height: 1.5;
}

.lead {
	max-width: var(--measure);
	margin: 0 0 2.5rem;
	color: var(--ink-soft);
}

/* ボタン */
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block: 1.75rem;
}

.btn {
	display: inline-block;
	padding: 0.6rem 1.4rem;
	border: 2px solid var(--ink);
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none;
}

.btn-primary {
	background: var(--ink);
	color: var(--paper);
}

.btn-primary:hover {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--paper);
}

.btn:not(.btn-primary):hover {
	border-color: var(--accent);
}

/* ヒーロー */
.hero .wrap {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 3rem;
	align-items: center;
}

.hero h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(1.45rem, 3.4vw, 2.25rem);
}

.nowrap {
	display: inline-block;
}

.hero .lead {
	margin-bottom: 0;
	color: var(--ink);
}

.eyebrow {
	margin: 0 0 0.75rem;
	color: var(--accent);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.check-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.92rem;
}

.check-list li {
	padding-left: 1.4em;
	text-indent: -1.4em;
}

.check-list li::before {
	content: "✓";
	display: inline-block;
	width: 1.4em;
	text-indent: 0;
	color: var(--accent);
	font-weight: 700;
}

/* 比較図 */
.compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin: 0;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--paper-deep);
}

.shot {
	display: flex;
	flex-direction: column;
	height: 300px;
	border: 2px solid var(--ink);
	background: var(--paper);
}

.shot-first {
	display: grid;
	place-items: center;
	flex: 0 0 34%;
	background: var(--page-a);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 700;
}

.shot-rest {
	flex: 1;
	background: repeating-linear-gradient(
		var(--page-b) 0 8px,
		#a9b9df 8px 22px
	);
}

.shot-stretched .shot-first {
	flex: 1;
}

.shot-stretched .shot-rest {
	display: none;
}

.compare h3 {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
}

.compare figcaption {
	grid-column: 1 / -1;
	color: var(--ink-soft);
	font-size: 0.82rem;
	line-height: 1.6;
}

/* ステップ */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.step-label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 700;
}

.steps p,
.features p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

/* 機能 */
.features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem 3.5rem;
}

/* データ */
.band {
	background: var(--ink);
	color: var(--paper);
}

.band a {
	color: var(--paper);
}

.band a:hover {
	color: #f3b6a6;
}

.band .check-list {
	margin-bottom: 1.5rem;
	font-size: 1rem;
}

.band .check-list li::before {
	color: #f3b6a6;
}

/* 導入前に */
.fit {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5rem;
}

.fit ul {
	margin: 0;
	padding-left: 1.2em;
}

/* CTA */
.cta {
	text-align: center;
}

.cta .actions {
	justify-content: center;
	margin-bottom: 0;
}

.cta p {
	margin: 0;
	color: var(--ink-soft);
}

/* 文書ページ */
.doc {
	display: grid;
	grid-template-columns: 180px minmax(0, var(--measure));
	gap: 3.5rem;
	padding-block: 3.5rem;
}

.doc h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 5vw, 2.4rem);
}

.doc h2 {
	margin: 3rem 0 0.75rem;
	padding-bottom: 0.3rem;
	border-bottom: 1px solid var(--line);
	font-size: 1.35rem;
}

.doc h3 {
	margin-top: 1.75rem;
}

.doc li {
	margin-bottom: 0.4rem;
}

.doc-meta {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.9rem;
}

.toc {
	position: sticky;
	top: 5.5rem;
	align-self: start;
	font-size: 0.88rem;
}

.toc p {
	margin: 0 0 0.5rem;
	font-weight: 700;
}

.toc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.toc a {
	display: block;
	padding-block: 0.2rem;
	text-decoration: none;
}

.toc a:hover {
	text-decoration: underline;
}

pre {
	overflow-x: auto;
	padding: 0.9rem 1rem;
	border-radius: 4px;
	background: var(--paper-deep);
	font-family: var(--font-mono);
	font-size: 0.88rem;
	line-height: 1.6;
}

pre code {
	padding: 0;
	background: none;
}

dt {
	margin-top: 1.5rem;
	font-weight: 700;
}

dd {
	margin: 0.25rem 0 0;
	color: var(--ink-soft);
}

.table-wrap {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.93rem;
}

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

th {
	white-space: nowrap;
}

/* フッター */
.site-footer {
	padding-block: 2rem;
	color: var(--ink-soft);
	font-size: 0.88rem;
}

.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0 0 0.5rem;
	padding: 0;
	list-style: none;
}

.site-footer p {
	margin: 0;
}

@media (max-width: 800px) {
	section {
		padding-block: 3rem;
	}

	.hero .wrap,
	.steps,
	.features,
	.fit,
	.doc {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	.site-header {
		position: static;
	}

	.toc {
		position: static;
		padding: 0.9rem 1rem;
		background: var(--paper-deep);
	}

	.shot {
		height: 220px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
