@charset "utf-8";

/* HP+ top page (2026 renewal). Loaded after hp.plus.css, which brings the fonts, reset.css,
   the design tokens (site.css) and the header, navigation and footer, like on every other page.
   Like the other pages, the top page has no classes of its own: each section is picked by its id
   (#price, #included, #security, #migration, #plan, #seo, #pages, #works, #flow, #contact)
   and the parts inside it by element. Only two small shared helpers have classes: .wbr and .visually-hidden. */

/* ---------------------------------------------------------------- buttons */
/* The links in the hero and the price band, and the form's submit button */
#price > div > p:last-child a,
#plan a,
#contact [type="submit"] {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 48px;
	padding: var(--space-3) var(--space-6);
	background: var(--brand);
	color: var(--on-brand);
	border: 1px solid var(--brand);
	border-radius: var(--radius);
	font-size: 2rem;
	font-weight: 700;
	font-family: var(--font-round);
	line-height: 1.0em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .5s, color .5s, border-color .5s;
}
#price > div > p:last-child a::after,
#plan a::after {
	content: "\25B6";
	font-size: 0.7em;
}
#price > div > p:last-child a:is(:hover, :focus-visible),
#plan a:is(:hover, :focus-visible),
#contact [type="submit"]:is(:hover, :focus-visible) {
	background: var(--surface);
	color: var(--brand);
}
/* 制作の流れを見る: white with an orange frame */
#price > div > p:last-child a + a {
	background: var(--surface);
	color: var(--brand);
}
#price > div > p:last-child a + a:is(:hover, :focus-visible) {
	background: var(--brand);
	color: var(--on-brand);
}
/* お申し込み on the orange band: white */
#plan a {
	background: var(--surface);
	color: var(--brand);
	border-color: var(--surface);
}
#plan a:is(:hover, :focus-visible) {
	background: var(--brand);
	color: var(--on-brand);
	border-color: var(--on-brand);
}

/* ---------------------------------------------------------------- layout */
/* site.css leaves 50px under <main> on every page; here the contact section's own padding does that */
main {
	margin-bottom: 0;
}
/* Every section except the hero and the price band (they have their own frames) */
main > section:where(:not(#price, #plan)) {
	max-width: calc(var(--width-wide) + var(--gutter) * 2);
	margin: 0 auto;
	padding: var(--section) var(--gutter) 0;
}
main h2 {
	font-size: clamp(2.2rem, 1.6vw + 1.4rem, 3.2rem);
	font-weight: 700;
	font-family: var(--font-round);
	line-height: 1.5;
	text-align: center;
}
#security h2,
#seo h2 {
	font-size: clamp(2.4rem, 2.2vw + 1.4rem, 4rem);
}
#works h2 {
	text-align: left;
	font-weight: 400;
	color: var(--ink-muted);
}
/* Lead text under a section title (the お引越し box has its own style) */
:where(hgroup:not(#migration hgroup)) > h2 + p {
	max-width: 46em;
	margin: var(--space-3) auto 0;
	font-size: clamp(1.5rem, 0.4vw + 1.3rem, 1.8rem);
	text-align: center;
}
/* Small label above a section title */
hgroup > p:first-child {
	display: inline-block;
	margin-bottom: var(--space-2);
	padding: 2px 12px;
	border-radius: var(--radius);
	background: var(--brand);
	color: var(--on-brand);
	font-size: 1.5rem;
	font-weight: 700;
	font-family: var(--font-text);
	letter-spacing: 0.05em;
}
:is(#migration, #seo) hgroup > p:first-child {
	background: var(--surface);
	color: var(--brand);
}

/* ---------------------------------------------------------------- hero */
#price {
	display: grid;
	grid-template-columns: 1fr;
	justify-items: center;
	padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
	text-align: center;
	overflow: hidden;
}
#price > div {
	max-width: 960px;
}
#price h1 {
	font-size: clamp(2.2rem, 2.4vw + 1.2rem, 4.2rem);
	font-weight: 800;
	font-family: var(--font-round);
	line-height: 1.5;
	letter-spacing: 0.08em;
}

/* Price "月々 3,980 円（税抜）" (hero and price band): the paragraph whose figure is a direct <strong> */
:is(#price, #plan) p:has(> strong) {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: var(--space-3);
	color: var(--brand);
	font-weight: 800;
	font-family: var(--font-round);
	line-height: 1;
}
:is(#price, #plan) p > strong {
	font-size: clamp(7.6rem, 12vw, 17.2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0.08em;
}
:is(#price, #plan) p:has(> strong) > span {
	font-size: clamp(2rem, 2.4vw, 3.8rem);
}
#plan p:has(> strong) {
	color: var(--on-brand);
	justify-content: flex-start;
	margin-top: 0;
}
#plan p > strong {
	font-size: clamp(6.4rem, 8vw, 12rem);
}

/* Option "オプション 英語ページ対応：月々5,980円（税抜）": the paragraph that starts with the <b> tag */
:is(#price, #plan) p:has(> b) {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: var(--space-3);
	color: var(--brand);
	font-size: clamp(1.6rem, 1.4vw + 1rem, 2.8rem);
	font-weight: 700;
	font-family: var(--font-round);
	line-height: 1.3;
}
:is(#price, #plan) p:has(> b) strong {
	font-size: 1.3em;
	font-weight: 800;
	font-family: var(--font-round);
}
/* Windows: text of 16px or less uses BIZ UDPGothic (see --font-text in site.css).
   The tag is 0.75em, so it reaches 16px below 809px; the line itself only on small phones */
@media (max-width: 809px) {
	:is(#price, #plan) p > b {
		font-family: var(--font-text);
	}
}
@media (max-width: 363px), (min-width: 421px) and (max-width: 428px) {
	:is(#price, #plan) p:has(> b) {
		font-family: var(--font-text);
	}
}
:is(#price, #plan) p > b {
	background: var(--brand);
	color: var(--on-brand);
	padding: 4px 12px;
	font-weight: 700; /* <b> would be one step bolder than the line */
	border-radius: var(--radius-sm);
	font-size: 0.75em;
}
#plan p:has(> b) {
	color: var(--on-brand);
	justify-content: flex-start;
}
#plan p > b {
	background: var(--surface);
	color: var(--brand);
}

/* Three points: medal badges with ribbon tails. The tails are pseudo-elements behind the medal
   (z-index: -1 inside the isolated list), so the list keeps room below for them.
   --size holds the medal width; padding uses it too, because a % padding would follow the list width. */
#price h1 + ul {
	isolation: isolate;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px 28px;
	max-width: 860px;
	margin: var(--space-5) auto 0;
	padding-bottom: 76px;
}
#price h1 + ul > li {
	--size: min(210px, 28vw);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: var(--size);
	aspect-ratio: 1;
	padding: calc(var(--size) * 0.1);
	border-radius: 50%;
	background: var(--brand);
	box-shadow: inset 0 0 0 6px var(--brand), inset 0 0 0 8px var(--on-brand), 0 6px 0 var(--brand-deep);
	color: var(--on-brand);
	line-height: 1.3;
}
/* ribbon tails */
#price h1 + ul > li::before,
#price h1 + ul > li::after {
	content: "";
	position: absolute;
	z-index: -1;
	bottom: -26%;
	width: 24%;
	height: 50%;
	background: var(--brand-deep);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
#price h1 + ul > li::before {
	left: 26%;
	transform: rotate(18deg);
}
#price h1 + ul > li::after {
	right: 26%;
	transform: rotate(-18deg);
}
/* "POINT 1" */
#price h1 + ul > li > span:first-child {
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--on-brand);
	color: var(--brand);
	font-family: var(--font-text);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
}
#price h1 + ul b {
	margin-left: 4px;
	font-size: 1.4rem;
}
#price h1 + ul > li > span:last-child {
	font-family: var(--font-round);
	font-size: 2.1rem;
	font-weight: 800;
}
#price h1 + ul > li:nth-child(3) > span:last-child {
	font-size: 1.8rem;
}

/* Badges: SSL / 保守管理費用込み */
#price > div > ul:nth-of-type(2) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	max-width: 600px;
	margin: clamp(30px, 4vw, 48px) auto 0;
}
#price > div > ul:nth-of-type(2) > li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: var(--border-frame) solid var(--brand);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: 1.6rem;
	font-weight: 700;
	font-family: var(--font-text);
	line-height: 1.5;
	text-align: left;
}
/* round icon */
#price > div > ul:nth-of-type(2) > li > span:first-child {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--brand);
}
#price > div > ul:nth-of-type(2) svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: var(--on-brand);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
/* Buttons row */
#price > div > p:last-child {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-3);
	margin-top: var(--space-4);
}

#price > figure {
	width: min(640px, 100%);
	margin-top: clamp(40px, 5vw, 64px);
}
#price > figure img {
	display: block;
	width: 100%;
	height: auto;
}

/* Grey band under the illustration: the lead, then the note */
#price > p {
	width: 100%;
	background: var(--surface-muted);
}
#price > p:nth-of-type(1) {
	padding: var(--space-4) var(--gutter);
	font-size: clamp(1.7rem, 1vw + 1.2rem, 2.6rem);
	line-height: 1.7;
}
#price > p:nth-of-type(2) {
	padding: 0 var(--gutter) var(--space-4);
	font-size: 1.6rem;
	line-height: 1.8;
}

/* Phones: one medal on the first row, two on the second.
   In the grid, % values follow the grid cell, so a medal in one column is 100%
   and the first one (spanning both columns) is half the row minus the gap. */
@media (max-width: 767px) {
	#price h1 + ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 170px));
		justify-content: center;
		gap: 44px 16px;
		padding-bottom: 64px;
	}
	#price h1 + ul > li {
		--size: 100%;
		gap: 6px;
		padding: calc(var(--size) * 0.08);
	}
	#price h1 + ul > li:first-child {
		--size: calc((100% - 16px) / 2);
		grid-column: 1 / -1;
		justify-self: center;
	}
	#price h1 + ul > li > span:last-child {
		font-size: 1.8rem;
	}
	/* "WordPress / からの / お引越しOK" on three lines */
	#price h1 + ul > li:nth-child(3) > span:last-child {
		font-size: 1.7rem;
	}
	#price > div > ul:nth-of-type(2) {
		grid-template-columns: 1fr;
		max-width: 360px;
		gap: var(--space-2);
	}
	#price > div > ul:nth-of-type(2) br {
		display: none;
	}
	#price > div > p:last-child a {
		width: 100%;
		max-width: 360px;
	}
}

/* ---------------------------------------------------------------- included */
#included > div {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-3);
}
/* The card itself is painted orange (under its border too), and only the white parts sit on top.
   That way no sub-pixel seam between the border and the 込み block can show at odd widths. */
#included article {
	display: flex;
	flex-direction: column;
	border: var(--border-heavy) solid var(--brand);
	border-radius: var(--radius);
	background: var(--brand);
}
#included h3 {
	display: flex;
	align-items: stretch;
	gap: var(--border-heavy);
	font-size: clamp(2rem, 1vw + 1.2rem, 2.6rem);
	font-weight: 800;
	font-family: var(--font-round);
	line-height: 1.3;
}
/* 初期制作費用 etc. */
#included h3 > span:first-child {
	flex: 1;
	padding: 14px 16px;
	background: var(--surface);
	color: var(--brand);
}
/* 込み */
#included h3 > span:last-child {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 3.2em;
	padding: 0 0.5em 0 0.3em;
	color: var(--on-brand);
	font-size: 1.2em;
	letter-spacing: 0.05em;
}
/* Give 込み more room wherever the cards are wide enough: wide PC (3 columns) and tablet/phone (1 column) */
@media (min-width: 1200px) {
	#included h3 > span:last-child {
		min-width: 4.6em;
	}
}
@media (max-width: 960px) {
	#included h3 > span:last-child {
		min-width: 5.6em;
	}
}
@media (max-width: 400px) {
	#included h3 > span:last-child {
		min-width: 4.6em;
	}
}
/* Small phones: a narrower, slightly smaller 込み leaves room for 初期制作費用 on one line */
@media (max-width: 350px) {
	#included h3 > span:first-child {
		white-space: nowrap;
	}
	#included h3 > span:last-child {
		min-width: 3.2em;
		font-size: 1.1em;
	}
}
#included article > div {
	flex: 1;
	margin-top: var(--border-heavy);
	padding: var(--space-3);
	background: var(--surface);
	font-size: 1.6rem;
	line-height: 1.8;
}
#included article ul {
	margin-top: var(--space-3);
}
#included article li {
	position: relative;
	padding-left: 1.1em;
}
#included article li::before {
	content: "・";
	position: absolute;
	left: 0;
	color: var(--brand);
	font-weight: 700;
	font-family: var(--font-round);
}

/* Notes ＊1〜＊4 */
#included > ol {
	margin-top: var(--space-4);
	font-size: 1.4rem;
	line-height: 1.7;
	counter-reset: note;
}
#included > ol > li {
	padding-left: 2.6em;
	counter-increment: note;
}
#included > ol > li::before {
	content: "\FF0A" counter(note) "\3000";
	margin-left: -2.6em;
	white-space: nowrap;
}

@media (max-width: 960px) {
	#included > div {
		grid-template-columns: 1fr;
		max-width: 560px;
		margin: 0 auto;
	}
}

/* ---------------------------------------------------------------- security */
#security hgroup {
	text-align: center;
}
#security hgroup + div {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-3);
	margin-top: var(--space-5);
}
/* Point cards (also used in #seo) */
:is(#security, #seo) article {
	padding: var(--space-4) var(--space-3) var(--space-3);
	border-top: var(--border-heavy) solid var(--brand);
	background: var(--brand-tint);
	border-radius: var(--radius);
	text-align: center;
}
:is(#security, #seo) article > span {
	display: grid;
	place-items: center;
	margin: 0 auto var(--space-2);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--surface);
	border: var(--border-frame) solid var(--brand);
}
:is(#security, #seo) article svg {
	width: 40px;
	height: 40px;
	fill: none;
	stroke: var(--brand);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
:is(#security, #seo) article h3 {
	margin-bottom: var(--space-2);
	color: var(--brand);
	font-size: clamp(1.9rem, 0.6vw + 1.5rem, 2.2rem);
	font-weight: 800;
	font-family: var(--font-round);
	line-height: 1.5;
}
:is(#security, #seo) article p {
	text-align: left;
	font-size: 1.5rem;
}

/* Comparison table. The wrapper scrolls sideways on tablets. */
#security > div:last-child {
	margin-top: var(--space-5);
	overflow-x: auto;
}
#security table {
	--fw: 4px; /* HP+ frame width */
	width: 100%;
	min-width: 560px;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 1.6rem;
	line-height: 1.5;
}
#security caption {
	margin-bottom: var(--space-2);
	font-size: 1.8rem;
	font-weight: 700;
	font-family: var(--font-round);
	text-align: left;
}
#security th,
#security td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--surface-muted);
	text-align: center;
	vertical-align: middle;
}
#security thead th {
	background: var(--surface-muted);
	font-weight: 700;
	font-family: var(--font-text);
}
#security tbody th {
	text-align: left;
	font-weight: 700;
	font-family: var(--font-text);
	white-space: nowrap;
}
#security td {
	color: var(--ink-muted);
}
/* HP+ column (the last one): no table borders at all. Each cell paints its own background and its frame
   as inset shadows, so the fill and the frame always come from the same box: no gaps, no sideways drift. */
#security :is(th, td):last-child {
	border-bottom: 0;
	background: var(--brand-tint);
	color: var(--ink);
	box-shadow: inset var(--fw) 0 var(--brand), inset calc(-1 * var(--fw)) 0 var(--brand), inset 0 -1px #f6d5cb;
}
#security thead th:last-child {
	background: var(--brand);
	color: var(--on-brand);
	font-size: 1.9rem;
	box-shadow: none;
	border-radius: var(--radius) var(--radius) 0 0;
	font-family: var(--font-round);
}
#security tbody tr:last-child td:last-child {
	box-shadow: inset var(--fw) 0 var(--brand), inset calc(-1 * var(--fw)) 0 var(--brand), inset 0 calc(-1 * var(--fw)) var(--brand);
}
#security td:last-child strong {
	color: var(--brand);
	font-size: 1.9rem;
}

/* Phones: the table fits the screen instead of scrolling sideways */
@media (max-width: 600px) {
	#security > div:last-child {
		overflow: visible;
	}
	#security table {
		--fw: 3px;
		min-width: 0;
		table-layout: fixed;
		font-size: 1.3rem;
	}
	#security th,
	#security td {
		padding: 10px 6px;
	}
	#security tbody th {
		width: 30%;
		white-space: normal;
		font-size: 1.3rem;
	}
	#security thead th:last-child,
	#security td:last-child strong {
		font-size: 1.4rem;
		font-family: var(--font-text);
	}
	#security table br {
		display: none;
	}
}
@media (max-width: 960px) {
	#security hgroup + div {
		grid-template-columns: 1fr;
		max-width: 560px;
		margin-inline: auto;
	}
}

/* ---------------------------------------------------------------- migration */
/* Orange box: text on the left, the 今のサイト → お引越し後 diagram on the right */
#migration > div {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: var(--space-4);
	align-items: center;
	padding: clamp(28px, 4vw, 56px);
	background: var(--brand);
	color: var(--on-brand);
	border-radius: var(--radius);
}
#migration h2 {
	margin-bottom: var(--space-3);
	font-size: clamp(2.4rem, 1.8vw + 1.4rem, 3.8rem);
	font-weight: 800;
	font-family: var(--font-round);
	line-height: 1.4;
	text-align: left;
}
#migration hgroup > h2 + p {
	font-size: 1.7rem;
	font-weight: 700;
	font-family: var(--font-round);
}
#migration figure {
	width: min(260px, 70%);
	margin: var(--space-4) 0 0;
	padding: 16px;
	background: var(--surface);
	border-radius: 50%;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
}
#migration figure img {
	width: 100%;
	height: auto;
}
#migration > div > div:last-child {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 12px;
	align-items: center;
}
/* 今のサイト (dashed) and お引越し後 (white) */
#migration > div > div:last-child > div {
	padding: var(--space-3);
	border-radius: var(--radius);
	text-align: center;
}
#migration > div > div:last-child > div:first-child {
	background: rgba(255, 255, 255, 0.16);
	border: 2px dashed rgba(255, 255, 255, 0.85);
}
#migration > div > div:last-child > div:last-child {
	background: var(--surface);
	color: var(--ink);
}
#migration > div > div:last-child > div > p:first-child {
	font-size: 1.4rem;
	font-weight: 700;
	font-family: var(--font-text);
}
#migration > div > div:last-child > div > p:nth-child(2) {
	margin: 4px 0 12px;
	font-size: 2.2rem;
	font-weight: 800;
	font-family: var(--font-round);
	line-height: 1.3;
}
#migration > div > div:last-child > div:last-child > p:nth-child(2) {
	color: var(--brand);
}
#migration > div > div:last-child small {
	font-size: 1.3rem;
	font-weight: 700;
	font-family: var(--font-text);
}
#migration > div > div:last-child li {
	padding: 6px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.5);
	font-size: 1.5rem;
	font-weight: 700;
	font-family: var(--font-text);
}
#migration > div > div:last-child > div:first-child li {
	text-decoration: line-through;
	text-decoration-thickness: 2px;
}
#migration > div > div:last-child > div:last-child li {
	border-top-color: var(--surface-muted);
	white-space: nowrap; /* keeps "HTML＋CSS＋JS" on one line */
}
/* 変換: one chevron-shaped block (a single clipped box, so there are no joins).
   Points right on wide screens and down on phones; the text never rotates. */
#migration > div > div:last-child > p {
	display: grid;
	place-items: center;
	width: 84px;
	height: 56px;
	padding: 0 14px 0 8px;
	background: var(--surface);
	color: var(--brand);
	clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%, 16% 50%);
	font-size: 1.5rem;
	font-weight: 800;
	font-family: var(--font-text);
	letter-spacing: 0.1em;
}
/* 961px-1100px: the three columns are at their narrowest, so the boxes' side padding
   and the arrow shrink to leave room for "HTML＋CSS＋JS" */
@media (min-width: 961px) and (max-width: 1100px) {
	#migration > div > div:last-child > div {
		padding-inline: var(--space-2);
	}
	#migration > div > div:last-child > p {
		width: 64px;
		padding: 0 10px 0 4px;
	}
}
/* Three steps under the box */
#migration > ol {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-3);
	margin-top: var(--space-4);
	counter-reset: mig;
}
#migration > ol > li {
	position: relative;
	padding: var(--space-3) var(--space-3) var(--space-3) 72px;
	border: var(--border-frame) solid var(--brand);
	border-radius: var(--radius);
	font-size: 1.5rem;
	line-height: 1.7;
	counter-increment: mig;
}
#migration > ol > li::before {
	content: counter(mig);
	position: absolute;
	left: var(--space-3);
	top: var(--space-3);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: var(--border-frame) solid var(--brand);
	border-radius: var(--radius);
	color: var(--brand);
	font-size: 2rem;
	font-weight: 800;
	font-family: var(--font-round);
	line-height: 1;
}
#migration > ol strong {
	display: block;
	margin-bottom: 4px;
	font-size: 1.8rem;
}
#migration > p {
	margin-top: var(--space-3);
	padding-left: 2em;
	font-size: 1.4rem;
	color: var(--ink-muted);
}
/* Hanging indent like the notes: wrapped lines start under the text, not under the mark */
#migration > p::before {
	content: "\203B\3000";
	margin-left: -2em;
}

@media (max-width: 960px) {
	#migration > div {
		grid-template-columns: minmax(0, 1fr);
	}
	#migration figure {
		margin-inline: auto;
	}
	#migration > ol {
		grid-template-columns: 1fr;
	}
}
/* 560px and below: 今のサイト and お引越し後 stack, with the 変換 arrow pointing down between them */
@media (max-width: 560px) {
	#migration > div > div:last-child {
		grid-template-columns: 1fr;
	}
	#migration > div > div:last-child > p {
		margin: 0 auto;
		width: 120px;
		height: 64px;
		padding: 4px 0 14px;
		clip-path: polygon(0 0, 50% 18%, 100% 0, 100% 64%, 50% 100%, 0 64%);
	}
}

/* ---------------------------------------------------------------- price band */
#plan {
	max-width: calc(var(--width-wide) + var(--gutter) * 2);
	margin: var(--section) auto 0;
	padding: 0 var(--gutter);
}
/* Decoration: the brand "+" mark as a faint pattern on the right, a large outlined "+" behind,
   and a slightly darker diagonal panel, so the band is not one flat orange. */
#plan > div {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--space-3);
	padding: clamp(32px, 4vw, 56px) clamp(24px, 6vw, 96px);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='%23ffffff' opacity='.14'%3E%3Crect x='19' y='14' width='6' height='16' rx='1.6'/%3E%3Crect x='14' y='19' width='16' height='6' rx='1.6'/%3E%3C/g%3E%3C/svg%3E") right top / 44px 44px, linear-gradient(115deg, var(--brand) 0 55%, #e2441a 55% 100%);
	border-radius: var(--radius);
}
#plan > div::before {
	/* mask the pattern on the left so the text stays clean */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(115deg, var(--brand) 0 55%, transparent 55%);
}
#plan > div::after {
	/* big outlined plus */
	content: "";
	position: absolute;
	z-index: -1;
	right: clamp(-60px, -3vw, -20px);
	bottom: -70px;
	width: 260px;
	height: 260px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M40.5 8H59.5A2.5 2.5 0 0 1 62 10.5V36.5A1.5 1.5 0 0 0 63.5 38H89.5A2.5 2.5 0 0 1 92 40.5V59.5A2.5 2.5 0 0 1 89.5 62H63.5A1.5 1.5 0 0 0 62 63.5V89.5A2.5 2.5 0 0 1 59.5 92H40.5A2.5 2.5 0 0 1 38 89.5V63.5A1.5 1.5 0 0 0 36.5 62H10.5A2.5 2.5 0 0 1 8 59.5V40.5A2.5 2.5 0 0 1 10.5 38H36.5A1.5 1.5 0 0 0 38 36.5V10.5A2.5 2.5 0 0 1 40.5 8Z' fill='none' stroke='%23ffffff' stroke-opacity='.35' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 初期制作・ドメイン・サーバー・保守管理すべて込み */
#plan p:first-child {
	display: inline-block;
	margin-bottom: var(--space-2);
	padding: 4px 14px;
	border: 2px solid var(--on-brand);
	border-radius: 999px;
	color: var(--on-brand);
	font-size: clamp(1.3rem, 0.4vw + 1.1rem, 1.6rem);
	font-weight: 700;
	font-family: var(--font-text);
	line-height: 1.5;
}
#plan a {
	box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}
@media (max-width: 767px) {
	#plan > div {
		justify-content: center;
		text-align: center;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='%23ffffff' opacity='.10'%3E%3Crect x='19' y='14' width='6' height='16' rx='1.6'/%3E%3Crect x='14' y='19' width='16' height='6' rx='1.6'/%3E%3C/g%3E%3C/svg%3E") center / 44px 44px, var(--brand);
	}
	#plan > div::before,
	#plan > div::after {
		display: none;
	}
	#plan p:has(> strong),
	#plan p:has(> b) {
		justify-content: center;
	}
	#plan a {
		width: 100%;
	}
}

/* ---------------------------------------------------------------- grey sections */
#pages,
#works {
	background: var(--surface-muted);
	max-width: none;
	padding-bottom: var(--section);
}
#pages > *,
#works > * {
	max-width: var(--width-wide);
	margin-inline: auto;
}
#pages {
	margin-top: var(--section);
}
#works {
	padding-top: 0;
}

/* ---------------------------------------------------------------- SEO / AIO */
/* Emphasised over the page-structure example: an orange header with white cards on a tinted panel */
#seo > div {
	border: var(--border-frame) solid var(--brand);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--brand-tint);
}
#seo hgroup {
	position: relative;
	overflow: hidden;
	/* Extra bottom room so the outlined lettering sits under the text, not behind it */
	padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px) clamp(60px, 9vw, 120px);
	background: var(--brand);
	color: var(--on-brand);
	text-align: center;
}
#seo hgroup > * {
	position: relative;
	z-index: 1;
}
/* Big outlined "SEO × AIO" behind the heading */
#seo hgroup::after {
	content: "SEO \D7  AIO";
	position: absolute;
	right: -0.05em;
	bottom: -0.28em;
	font-size: clamp(6.4rem, 12vw, 16rem);
	font-weight: 800;
	font-family: var(--font-round);
	line-height: 1;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 2px rgba(255, 255, 255, 0.25);
	pointer-events: none;
}
#seo hgroup > h2 + p {
	color: var(--on-brand);
}
#seo hgroup + div {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-3);
	padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px);
}
#seo article {
	background: var(--surface);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
#seo > p {
	margin-top: var(--space-3);
	padding-left: 2em;
	font-size: 1.4rem;
	color: var(--ink-muted);
}
#seo > p::before {
	content: "\203B\3000";
	margin-left: -2em;
}
@media (max-width: 960px) {
	#seo hgroup + div {
		grid-template-columns: 1fr;
	}
	#seo article {
		width: 100%;
		max-width: 560px;
		margin-inline: auto;
	}
}

/* ---------------------------------------------------------------- page structure */
#pages hgroup {
	text-align: center;
}
/* Sitemap: a top box and four page cards under it.
   Every connector is a 2px bar centred on its x, so the joins line up exactly */
#pages hgroup + div {
	--lw: 2px;
	--gap: var(--space-3);
	--drop: var(--space-4);
	margin-top: var(--space-5);
}
#pages hgroup + div > div {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-3);
	width: min(560px, 100%);
	margin: 0 auto;
	padding: var(--space-3);
	background: var(--surface);
	border: var(--border-frame) solid var(--brand);
	border-radius: var(--radius);
}
#pages hgroup + div > div::after {
	/* trunk: from the box's bottom edge to the branch line */
	content: "";
	position: absolute;
	left: calc(50% - var(--lw) / 2);
	top: 100%;
	width: var(--lw);
	height: calc(var(--drop) + var(--border-frame));
	background: var(--brand);
}
#pages hgroup + div > div h3 {
	color: var(--brand);
	font-size: 2.2rem;
	font-weight: 800;
	font-family: var(--font-text);
	line-height: 1.4;
}
#pages hgroup + div > div p {
	font-size: 1.5rem;
	line-height: 1.7;
}
#pages hgroup + div > div > span {
	width: 120px;
	flex-shrink: 0;
}
#pages hgroup + div > ul {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--gap);
	margin-top: var(--drop);
	padding-top: var(--drop);
}
#pages hgroup + div > ul::before {
	/* branch line from the first card's centre to the last card's centre */
	content: "";
	position: absolute;
	top: 0;
	height: var(--lw);
	background: var(--brand);
	left: calc((100% - 3 * var(--gap)) / 8 - var(--lw) / 2);
	right: calc((100% - 3 * var(--gap)) / 8 - var(--lw) / 2);
}
#pages hgroup + div li {
	position: relative;
	padding: var(--space-3) 16px;
	background: var(--surface);
	border: var(--border-frame) solid transparent;
	border-radius: var(--radius);
	text-align: center;
	transition: border-color .3s ease, box-shadow .3s ease;
}
#pages hgroup + div li::before {
	/* drop from the branch line to the card */
	content: "";
	position: absolute;
	left: calc(50% - var(--lw) / 2);
	bottom: 100%;
	width: var(--lw);
	height: calc(var(--drop) + var(--border-frame));
	background: var(--brand);
}
/* Hover changes colour only, so the connectors never move */
#pages hgroup + div li:hover {
	border-color: var(--brand);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
/* Speech bubble: どんな会社？ etc. */
#pages hgroup + div li > p:first-child {
	position: relative;
	display: inline-block;
	margin-bottom: var(--space-3);
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--brand-tint);
	color: var(--brand);
	font-size: 1.5rem;
	font-weight: 700;
	font-family: var(--font-text);
	line-height: 1.6;
}
#pages hgroup + div li > p:first-child::after {
	/* speech-bubble tail */
	content: "";
	position: absolute;
	left: 50%;
	bottom: -7px;
	transform: translateX(-50%);
	border: 7px solid transparent;
	border-top-color: var(--brand-tint);
	border-bottom: 0;
}
#pages hgroup + div li > span {
	width: 100%;
	max-width: 160px;
	margin: 0 auto var(--space-2);
}
#pages hgroup + div li h3 {
	font-size: 1.8rem;
	font-weight: 800;
	font-family: var(--font-text);
	line-height: 1.5;
}
#pages hgroup + div li > p:last-child {
	margin-top: 6px;
	color: var(--ink-muted);
	font-size: 1.4rem;
	line-height: 1.7;
	text-align: left;
}
#pages > p {
	margin-top: var(--space-4);
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	font-family: var(--font-text);
	color: var(--ink-muted);
}

/* Mini page wireframes (the empty spans), drawn with CSS only */
#pages hgroup + div span {
	display: block;
	aspect-ratio: 4 / 3;
	border: 2px solid #cfcfcf;
	border-radius: 4px;
	background-color: var(--surface);
	background-repeat: no-repeat;
	--bar: linear-gradient(var(--brand), var(--brand));
	--ln: linear-gradient(#dedede, #dedede);
	--tint: linear-gradient(var(--brand-tint), var(--brand-tint));
}
/* トップページ */
#pages hgroup + div > div > span {
	background-image: var(--bar), var(--tint), var(--ln), var(--ln), var(--ln), var(--ln);
	background-size: 100% 12%, 84% 34%, 26% 22%, 26% 22%, 26% 22%, 60% 5%;
	background-position: 0 0, 50% 26%, 8% 84%, 50% 84%, 92% 84%, 50% 60%;
}
/* 会社概要 */
#pages hgroup + div li:nth-child(1) > span {
	background-image: var(--bar), var(--tint), var(--ln), var(--ln), var(--ln);
	background-size: 100% 12%, 30% 40%, 46% 6%, 46% 6%, 46% 6%;
	background-position: 0 0, 10% 50%, 90% 32%, 90% 50%, 90% 68%;
}
/* 事業・サービス内容 */
#pages hgroup + div li:nth-child(2) > span {
	background-image: var(--bar), var(--tint), var(--tint), var(--ln), var(--ln);
	background-size: 100% 12%, 38% 38%, 38% 38%, 38% 6%, 38% 6%;
	background-position: 0 0, 12% 38%, 88% 38%, 12% 85%, 88% 85%;
}
/* アクセス */
#pages hgroup + div li:nth-child(3) > span {
	background-image: var(--bar), radial-gradient(circle at 50% 45%, var(--brand) 0 7%, transparent 8%), var(--tint), var(--ln);
	background-size: 100% 12%, 84% 56%, 84% 56%, 60% 6%;
	background-position: 0 0, 50% 40%, 50% 40%, 50% 90%;
}
/* お問い合わせ */
#pages hgroup + div li:nth-child(4) > span {
	background-image: var(--bar), var(--ln), var(--ln), var(--ln), var(--bar);
	background-size: 100% 12%, 76% 10%, 76% 10%, 76% 10%, 30% 10%;
	background-position: 0 0, 50% 30%, 50% 50%, 50% 70%, 50% 92%;
}

@media (max-width: 960px) {
	#pages hgroup + div {
		--gap: 12px;
	}
	#pages hgroup + div li {
		padding: 16px 12px;
	}
	#pages hgroup + div li > p:first-child {
		font-size: 1.3rem;
		padding: 3px 10px;
	}
	#pages hgroup + div li h3 {
		font-size: 1.6rem;
	}
}
/* Phones: a vertical tree with the trunk down the left side */
@media (max-width: 767px) {
	#pages hgroup + div {
		--indent: 28px;
		--trunk-x: 12px;
	}
	#pages hgroup + div > div {
		width: 100%;
	}
	#pages hgroup + div > div::after {
		display: none;
	}
	#pages hgroup + div > ul {
		grid-template-columns: 1fr;
		padding: 0 0 0 var(--indent);
	}
	#pages hgroup + div > ul::before {
		display: none;
	}
	#pages hgroup + div li {
		display: grid;
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 4px 14px;
		align-items: center;
		text-align: left;
		padding: 14px;
	}
	/* vertical segment: from the gap above down through this card */
	#pages hgroup + div li::before {
		left: calc(var(--trunk-x) - var(--indent) - var(--border-frame) - var(--lw) / 2);
		bottom: calc(-1 * var(--gap) - var(--border-frame));
		top: calc(-1 * var(--gap) - var(--border-frame));
		height: auto;
	}
	#pages hgroup + div li:first-child::before {
		top: calc(-1 * var(--drop) - var(--border-frame));
	}
	#pages hgroup + div li:last-child::before {
		bottom: 50%;
	}
	/* horizontal tick from the trunk to the card */
	#pages hgroup + div li::after {
		content: "";
		position: absolute;
		top: calc(50% - var(--lw) / 2);
		height: var(--lw);
		background: var(--brand);
		left: calc(var(--trunk-x) - var(--indent) - var(--border-frame));
		width: calc(var(--indent) - var(--trunk-x));
	}
	#pages hgroup + div li > span {
		grid-row: 1 / span 3;
		grid-column: 1;
		margin: 0;
	}
	#pages hgroup + div li > p:first-child {
		justify-self: start;
		margin-bottom: 4px;
	}
	#pages hgroup + div li > p:first-child::after {
		display: none;
	}
	#pages hgroup + div li > p:last-child {
		margin-top: 0;
	}
	/* the trunk starts under the top box, at the same x */
	#pages hgroup + div > div::before {
		content: "";
		position: absolute;
		top: 100%;
		left: calc(var(--trunk-x) - var(--border-frame) - var(--lw) / 2);
		width: var(--lw);
		height: var(--border-frame);
		background: var(--brand);
	}
}
@media (max-width: 480px) {
	#pages hgroup + div > div {
		flex-direction: column;
		text-align: center;
	}
	#pages hgroup + div li {
		grid-template-columns: 72px minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------- works */
/* Title on the left, ‹ › buttons on the right */
#works > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}
#works > div > div {
	display: flex;
	gap: var(--space-2);
}
#works button {
	width: 48px;
	height: 48px;
	padding: 0;
	background: var(--surface);
	color: var(--brand);
	border: var(--border-frame) solid var(--brand);
	border-radius: var(--radius);
	font-size: 2.8rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color .5s, color .5s;
}
#works button:is(:hover, :focus-visible) {
	background: var(--brand);
	color: var(--on-brand);
}
#works button:disabled {
	opacity: 0.35;
	cursor: default;
	background: var(--surface);
	color: var(--brand);
}
/* The carousel */
#works > ul {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: max(260px, calc((100% - 40px) / 2.4));
	gap: var(--space-3);
	margin-top: var(--space-4);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--space-2);
}
/* position: relative keeps the card's absolutely positioned screen-reader text inside the scrolling list;
   without it, that text in an off-screen card widens the whole page on phones */
#works li {
	position: relative;
	scroll-snap-align: start;
	background: var(--surface);
	border-radius: var(--radius);
	overflow: hidden;
}
/* The whole card is the link to the real site (opens in a new tab) */
#works li > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--ink);
	text-decoration: none;
	user-select: none;
}
/* The screenshot sits in a small browser window (title bar + shadow), so a white site
   does not run into the white text area below. Title bar with three dots, the first one in the brand colour: */
#works li > a::before {
	content: "";
	flex-shrink: 0;
	height: 22px;
	margin: 14px 14px 0;
	border-radius: var(--radius) var(--radius) 0 0;
	background:
		radial-gradient(circle at 14px 50%, var(--brand) 4px, transparent 4.5px),
		radial-gradient(circle at 28px 50%, rgba(0, 0, 0, 0.2) 4px, transparent 4.5px),
		radial-gradient(circle at 42px 50%, rgba(0, 0, 0, 0.2) 4px, transparent 4.5px),
		var(--surface-muted);
}
#works figure {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	margin: 0 14px;
	background: #dcdcdc;
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
#works figure::before {
	content: "スクリーンショット準備中";
	color: var(--ink-muted);
	font-size: 1.4rem;
	transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}
#works figure img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}
/* top.js hides an image that failed to load, so the placeholder text shows */
#works figure img[hidden] {
	display: none;
}
/* Category */
#works a > p:first-of-type {
	padding: var(--space-3) var(--space-3) 0;
	color: var(--ink);
	font-size: 1.4rem;
	font-weight: 700;
	font-family: var(--font-text);
}
/* Site name */
#works h3 {
	padding: 0 var(--space-3);
	font-size: 1.8rem;
	font-weight: 700;
	font-family: var(--font-text);
	line-height: 1.5;
}
/* サイトを見る */
#works a > p:last-child {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding: var(--space-2) var(--space-3) var(--space-3);
	color: var(--brand);
	font-size: 1.4rem;
	font-weight: 700;
	font-family: var(--font-text);
}
#works a > p:last-child::after {
	/* "opens elsewhere" arrow */
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f04e22' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Hover: the screenshot (or the "coming soon" text) zooms in inside its frame */
#works a:is(:hover, :focus-visible) figure img,
#works a:is(:hover, :focus-visible) figure::before {
	transform: scale(1.1);
}
@media (prefers-reduced-motion: reduce) {
	#works figure img,
	#works figure::before {
		transition: none;
	}
	#works a:is(:hover, :focus-visible) figure img,
	#works a:is(:hover, :focus-visible) figure::before {
		transform: none;
	}
}
/* until the real URL is filled in */
#works a[href="#"] {
	pointer-events: none;
}
#works a[href="#"] > p:last-child {
	visibility: hidden;
}

/* ---------------------------------------------------------------- flow */
#flow {
	max-width: none;
	background: var(--brand-tint);
	padding-bottom: var(--section);
}
#flow > * {
	max-width: var(--width-wide);
	margin-inline: auto;
}
#flow > ol {
	margin-top: var(--space-5);
	display: grid;
	gap: var(--space-4);
}
/* Each STEP card: number, text, illustration, and an extra row (STEP3 timeline, STEP4 lanes) */
#flow > ol > li {
	--pad: clamp(24px, 3vw, 40px);
	position: relative;
	display: grid;
	gap: var(--space-3) var(--space-4);
	align-items: center;
	grid-template-columns: 120px minmax(0, 1fr) minmax(200px, 28%);
	grid-template-areas: "num body art" "extra extra extra";
	padding: var(--pad);
	background: var(--surface);
	border-radius: var(--radius);
}
#flow > ol > li > p + div {
	grid-area: body;
}
/* --art-h: each illustration gets a height that gives it about the same visual area as the wide STEP2 art,
   so tall and square pictures don't look smaller next to it. */
#flow > ol > li > figure {
	grid-area: art;
	--art-h: 130px;
}
#flow > ol > li > figure + div {
	grid-area: extra;
	min-width: 0;
}
#flow > ol > li > figure img {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin-inline: auto;
}
#flow > ol > li > figure img[src*="question"] {
	--art-h: 180px;
}
#flow > ol > li > figure img[src*="payment"],
#flow > ol > li > figure img[src*="idea"] {
	--art-h: 165px;
}
/* PC: the art sits in a 130px box centred on the row and may spill into the card padding,
   so the card height still follows the text (STEP5 keeps its corner banner). */
@media (min-width: 961px) {
	#flow > ol > li:not(:last-child) > figure {
		position: relative;
		align-self: center;
		height: 130px;
	}
	#flow > ol > li:not(:last-child) > figure img {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		width: auto;
		height: var(--art-h);
		max-width: 100%;
		max-height: calc(100% + 2 * var(--pad) - 8px);
		object-fit: contain;
	}
}
/* STEP5: the balloon art has a sky shape meant to bleed off the card's top-right corner */
#flow > ol > li:last-child > figure {
	align-self: start;
	margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0 0;
	overflow: hidden;
}
#flow > ol > li:last-child > figure img {
	max-width: none;
}
#flow > ol > li:not(:last-child)::after {
	/* arrow to the next step, under the number */
	content: "";
	position: absolute;
	left: calc(var(--pad) + 60px - 14px);
	bottom: -24px;
	border: 14px solid transparent;
	border-top-color: var(--brand);
	border-bottom: 0;
}
/* "STEP 1" circle */
#flow > ol > li > p {
	grid-area: num;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	align-self: start;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--brand);
	color: var(--on-brand);
	font-size: 1.5rem;
	font-weight: 800;
	font-family: var(--font-text);
	letter-spacing: 0.1em;
	line-height: 1;
}
#flow > ol > li > p strong {
	font-size: 4.6rem;
	font-weight: 800;
	font-family: var(--font-round);
	letter-spacing: 0;
	margin-top: 4px;
}
#flow > ol > li h3 {
	margin-bottom: var(--space-2);
	color: var(--brand);
	font-size: clamp(2.2rem, 1.4vw + 1.4rem, 3.2rem);
	font-weight: 800;
	font-family: var(--font-round);
	line-height: 1.4;
}
#flow > ol > li > p + div > p {
	font-size: 1.6rem;
}
/* STEP5 (goal) */
#flow > ol > li:last-child {
	border: var(--border-heavy) solid var(--brand);
}

/* STEP3: payment timeline (horizontal on wide screens, vertical on phones) */
#flow > ol > li:nth-child(3) > figure + div {
	position: relative;
}
#flow > ol > li:nth-child(3) > figure + div > ol {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr 0;
	padding: 30px 40px 0;
	border-top: 1px solid var(--surface-muted);
}
/* The axis (line + 3 ticks) is drawn with borders: the browser always paints a border at a whole
   number of pixels, so all three ticks and the line come out exactly 3px at any width. */
#flow > ol > li:nth-child(3) > figure + div > div {
	position: absolute;
	left: 40px;
	right: 40px;
	top: calc(1px + 30px + 26px);
	height: 24px;
	pointer-events: none;
}
#flow > ol > li:nth-child(3) > figure + div > div::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 10px;
	border-top: 3px solid var(--brand);
}
#flow > ol > li:nth-child(3) > figure + div > div > span {
	position: absolute;
	top: 0;
	height: 24px;
	margin-left: -1px;
	border-left: 3px solid var(--brand);
}
#flow > ol > li:nth-child(3) > figure + div > div > span:nth-child(1) {
	left: 0;
}
#flow > ol > li:nth-child(3) > figure + div > div > span:nth-child(2) {
	left: 50%;
}
#flow > ol > li:nth-child(3) > figure + div > div > span:nth-child(3) {
	left: 100%;
}
#flow > ol > li:nth-child(3) > figure + div > ol::before,
#flow > ol > li:nth-child(3) > figure + div > ol > li::before {
	content: "";
	display: none;
}
#flow > ol > li:nth-child(3) > figure + div > ol > li {
	position: relative;
	padding: 50px 16px 0;
	text-align: center;
}
#flow > ol > li:nth-child(3) > figure + div > ol > li:last-child {
	padding: 0;
}
/* 申込日 / 30日後 */
#flow > ol > li:nth-child(3) > figure + div li > span {
	position: absolute;
	top: 0;
	left: 0;
	transform: translateX(-50%);
	padding: 1px 10px;
	border-radius: 999px;
	background: var(--brand-tint);
	color: var(--brand);
	font-size: 1.4rem;
	font-weight: 700;
	font-family: var(--font-text);
	white-space: nowrap;
}
/* 無料期間 / お支払い開始 */
#flow > ol > li:nth-child(3) > figure + div li > p {
	color: var(--brand);
	font-size: 1.6rem;
	font-weight: 800;
	font-family: var(--font-text);
}

/* STEP4: "who does what".
   Wide screens: a 1-5 progress track on top, then two lanes (お客様 / HP+). Each task card sits in
   the lane of whoever does it (data-who); shared tasks span both lanes. Narrow screens: a numbered
   vertical list where each card carries a small "who" tag instead of lanes. */
#flow > ol > li:nth-child(4) > figure + div {
	--gap: 14px;
	--dot: 34px;
	--label: 76px;
	display: grid;
	grid-template-columns: var(--label) repeat(5, minmax(0, 1fr));
	grid-template-rows: var(--dot) auto auto;
	gap: var(--gap);
	padding-top: var(--space-4);
	border-top: 1px solid var(--surface-muted);
}
/* Lane bands across the whole row, with their names on the left: お客様, then HP+ */
#flow > ol > li:nth-child(4) > figure + div > p {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	margin: 0 calc(-1 * var(--gap) / 2);
	padding: 0 12px;
	border-radius: var(--radius);
	font-size: 1.4rem;
	font-weight: 800;
	font-family: var(--font-text);
	line-height: 1.3;
}
#flow > ol > li:nth-child(4) > figure + div > p:first-child {
	grid-row: 2;
	background: var(--surface-muted);
	color: var(--ink);
}
#flow > ol > li:nth-child(4) > figure + div > p:nth-child(2) {
	grid-row: 3;
	background: var(--brand-tint);
	color: var(--brand);
}
#flow > ol > li:nth-child(4) > figure + div > ol {
	grid-column: 2 / -1;
	grid-row: 1 / -1;
	display: grid;
	grid-template-columns: subgrid;
	grid-template-rows: subgrid;
	position: relative;
	counter-reset: task;
}
#flow > ol > li:nth-child(4) > figure + div > ol::before {
	/* progress track through the numbers */
	content: "";
	position: absolute;
	top: calc(var(--dot) / 2 - 1.5px);
	height: 3px;
	background: var(--brand);
	left: calc((100% - 4 * var(--gap)) / 10);
	right: calc((100% - 4 * var(--gap)) / 10);
}
#flow > ol > li:nth-child(4) > figure + div > ol > li {
	counter-increment: task;
	position: relative;
	grid-row: 1 / -1;
	display: grid;
	grid-template-rows: subgrid;
}
#flow > ol > li:nth-child(4) > figure + div > ol > li::before {
	/* number on the track */
	content: counter(task);
	grid-row: 1;
	justify-self: center;
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: var(--dot);
	height: var(--dot);
	border-radius: 50%;
	background: var(--brand);
	color: var(--on-brand);
	box-shadow: 0 0 0 4px var(--surface);
	font-size: 1.6rem;
	font-weight: 800;
	font-family: var(--font-round);
	line-height: 1;
}
#flow > ol > li:nth-child(4) > figure + div > ol > li:not(:last-child)::after {
	/* arrow tip on the track, half way to the next number */
	content: "";
	position: absolute;
	top: calc(var(--dot) / 2 - 7px);
	right: calc(-1 * var(--gap) / 2 - 5px);
	border: 7px solid transparent;
	border-left: 10px solid var(--brand);
	border-right: 0;
}
/* Task card */
#flow > ol > li:nth-child(4) > figure + div > ol > li > div {
	margin: 10px 4px;
	padding: 14px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 2px solid var(--brand);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
	font-size: 1.4rem;
	line-height: 1.7;
}
#flow > ol > li:nth-child(4) > figure + div > ol > li[data-who="customer"] > div {
	grid-row: 2;
	border-color: #9a9a9a;
}
#flow > ol > li:nth-child(4) > figure + div > ol > li[data-who="hp"] > div {
	grid-row: 3;
}
#flow > ol > li:nth-child(4) > figure + div > ol > li[data-who="both"] > div {
	grid-row: 2 / 4;
	border-style: dashed;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
/* "who" tag: only on narrow screens, where there are no lanes */
#flow > ol > li:nth-child(4) > figure + div > ol > li > div > p:first-child {
	display: none;
}
#flow > ol > li:nth-child(4) h4 {
	margin-bottom: 6px;
	font-size: 1.6rem;
	font-weight: 800;
	font-family: var(--font-text);
	line-height: 1.45;
}
/* 約2～4週間: the paragraph between the title and the description */
#flow > ol > li:nth-child(4) h4 + p:not(:last-child) {
	display: inline-block;
	margin-bottom: 6px;
	padding: 0 8px;
	border-radius: var(--radius-sm);
	background: var(--brand);
	color: var(--on-brand);
	font-size: 1.2rem;
	font-weight: 700;
	font-family: var(--font-text);
	line-height: 22px;
}

/* Narrow: vertical numbered list, the lane shown as a tag on each card */
@media (max-width: 1199px) {
	#flow > ol > li:nth-child(4) > figure + div {
		display: block;
	}
	#flow > ol > li:nth-child(4) > figure + div > p {
		display: none;
	}
	#flow > ol > li:nth-child(4) > figure + div > ol {
		display: block;
	}
	#flow > ol > li:nth-child(4) > figure + div > ol::before {
		display: none;
	}
	#flow > ol > li:nth-child(4) > figure + div > ol > li {
		display: grid;
		grid-template-columns: var(--dot) minmax(0, 1fr);
		column-gap: 14px;
		padding-bottom: 18px;
	}
	#flow > ol > li:nth-child(4) > figure + div > ol > li:last-child {
		padding-bottom: 0;
	}
	#flow > ol > li:nth-child(4) > figure + div > ol > li::before {
		grid-row: 1;
		grid-column: 1;
		align-self: start;
		margin-top: 12px;
		box-shadow: none;
	}
	#flow > ol > li:nth-child(4) > figure + div > ol > li:not(:last-child)::after {
		/* connector down to the next number */
		top: calc(12px + var(--dot));
		bottom: 0;
		right: auto;
		left: calc(var(--dot) / 2 - 1.5px);
		width: 3px;
		border: 0;
		background: var(--brand);
	}
	#flow > ol > li:nth-child(4) > figure + div > ol > li[data-who] > div {
		grid-row: 1;
		grid-column: 2;
		margin: 0;
	}
	#flow > ol > li:nth-child(4) > figure + div > ol > li > div > p:first-child {
		display: inline-block;
		align-self: flex-start;
		margin-bottom: 4px;
		padding: 0 8px;
		border-radius: 999px;
		font-size: 1.2rem;
		font-weight: 700;
		font-family: var(--font-text);
		line-height: 22px;
		background: var(--brand-tint);
		color: var(--brand);
	}
	#flow > ol > li:nth-child(4) > figure + div > ol > li[data-who="customer"] > div > p:first-child {
		background: var(--surface-muted);
		color: var(--ink);
	}
	#flow > ol > li:nth-child(4) h4 {
		display: inline;
		margin-left: 6px;
	}
	#flow > ol > li:nth-child(4) h4 + p,
	#flow > ol > li:nth-child(4) h4 + p + p {
		margin-top: 4px;
	}
	#flow > ol > li:nth-child(4) h4 + p:not(:last-child) {
		margin: 4px 0 0;
		display: table;
	}
}
@media (max-width: 480px) {
	#flow > ol > li:nth-child(4) > figure + div {
		--dot: 30px;
	}
	#flow > ol > li:nth-child(4) h4 {
		display: block;
		margin: 2px 0 0;
	}
}
@media (max-width: 960px) {
	/* Tablet/phone: art in the top-right corner, number + title beside it on the left,
	   description and extras full width below, so text never runs under the picture. */
	#flow > ol > li {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "num art" "title art" "desc desc" "extra extra";
		grid-template-rows: auto 1fr auto auto;
		gap: 12px;
	}
	#flow > ol > li > p + div {
		display: contents;
	}
	#flow > ol > li h3 {
		grid-area: title;
		margin-bottom: 0;
		align-self: start;
	}
	#flow > ol > li > p + div > p {
		grid-area: desc;
	}
	#flow > ol > li > figure {
		justify-self: end;
		align-self: start;
	}
	/* size every illustration by height (see --art-h), so they all look about as big as STEP2 */
	#flow > ol > li > figure img {
		width: auto;
		max-width: min(40vw, 260px);
		height: calc(var(--art-h) * 0.95);
		object-fit: contain;
		object-position: right top;
	}
	/* STEP5 keeps its corner banner, top-right like on PC (margin and overflow come from the base rule) */
	#flow > ol > li:last-child > figure {
		width: min(300px, 44vw);
	}
	#flow > ol > li:last-child > figure img {
		width: 100%;
		height: auto;
	}
	#flow > ol > li > p {
		flex-direction: row;
		gap: 8px;
		aspect-ratio: auto;
		border-radius: var(--radius);
		padding: 8px 16px;
		justify-self: start;
	}
	#flow > ol > li > p strong {
		font-size: 2.8rem;
		margin: 0;
	}
	#flow > ol > li:not(:last-child)::after {
		left: 50%;
		transform: translateX(-50%);
	}
}
@media (max-width: 600px) {
	/* Phones: vertical timeline (line on the left, a ring per point) */
	#flow > ol > li:nth-child(3) > figure + div > div {
		display: none;
	}
	#flow > ol > li:nth-child(3) > figure + div > ol {
		grid-template-columns: 1fr;
		padding: var(--space-3) 0 0 28px;
	}
	#flow > ol > li:nth-child(3) > figure + div > ol::before {
		display: block;
		position: absolute;
		left: 8px;
		top: calc(var(--space-3) + 12px);
		bottom: 12px;
		width: 3px;
		background: var(--brand);
	}
	#flow > ol > li:nth-child(3) > figure + div > ol > li {
		padding: 0 0 var(--space-3);
		text-align: left;
	}
	#flow > ol > li:nth-child(3) > figure + div > ol > li::before {
		display: block;
		position: absolute;
		left: -26px;
		top: 6px;
		width: 15px;
		height: 15px;
		border-radius: 50%;
		border: 3px solid var(--brand);
		background: var(--surface);
	}
	#flow > ol > li:nth-child(3) > figure + div li > span {
		position: static;
		transform: none;
		display: inline-block;
		margin-bottom: 4px;
	}
}

/* ---------------------------------------------------------------- contact */
#contact {
	padding-bottom: var(--section);
}
#contact > figure {
	width: min(200px, 50%);
	margin: var(--space-4) auto 0;
}
#contact > figure img {
	display: block;
	width: 100%;
	height: auto;
}
#contact form {
	max-width: 960px;
	margin: var(--space-4) auto 0;
}
/* One row per field: label on the left, input on the right */
#contact li {
	display: flex;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
	font-size: 1.7rem;
}
#contact li > label {
	flex: 0 0 30%;
	max-width: 280px;
	padding-top: 10px;
	line-height: 1.6;
	font-weight: 700;
	font-family: var(--font-text);
}
#contact li > label small {
	color: var(--danger);
	font-size: 0.8em;
}
#contact li > :is(input, textarea) {
	flex: 1;
	min-width: 0;
	padding: 12px;
	background: var(--surface-muted);
	color: var(--ink);
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-size: 1.7rem;
	line-height: 1.6;
}
#contact li > :is(input, textarea):focus {
	border-color: var(--brand);
	outline: none;
	background: var(--surface);
}
/* reCAPTCHA and the submit button, lined up with the inputs */
#contact form > div {
	padding-left: calc(min(30%, 280px) + var(--space-3));
}
#contact form > div p {
	padding-top: var(--space-3);
}
@media (max-width: 767px) {
	#contact li {
		flex-direction: column;
		gap: 6px;
	}
	#contact li > label {
		flex-basis: auto;
		max-width: none;
		padding-top: 0;
	}
	#contact form > div {
		padding-left: 0;
		text-align: center;
	}
	#contact [type="submit"] {
		width: 100%;
	}
}

/* ---------------------------------------------------------------- small phones */
/* 420px and below. Kept last so these win over the rules above. */
@media (max-width: 420px) {
	/* 14-character lines must fit on one row down to 320px */
	#price h1 {
		font-size: 5.3vw;
		letter-spacing: 0.02em;
	}
	:is(#price, #plan) p:has(> b) {
		font-size: 4.4vw;
	}
	#price p > strong {
		font-size: 16vw;
	}
	#migration h2 {
		font-size: 5.6vw;
	}
	#flow > ol > li:last-child > figure {
		width: 38vw;
	}
	#migration > div {
		padding-inline: 20px;
	}
	/* Buttons: keep each label on one line (narrower side padding makes room) */
	#price > div > p:last-child a,
#plan a,
	#contact [type="submit"] {
		white-space: nowrap;
		padding-inline: var(--space-3);
		font-size: 1.8rem;
	}
	#price > div > ul:nth-of-type(2) > li {
		font-size: 1.5rem;
	}
	#seo h2 {
		font-size: 5.4vw;
	}
	#security thead small {
		display: block;
		font-size: 1rem;
	}
	#flow > ol > li > p {
		white-space: nowrap;
	}
	#flow > ol > li h3 {
		font-size: 5.8vw;
	}
}
