/*
 * cleart-design.com の見た目（v2：Ink & Signal）。
 * 方針は docs/design/cleart-design-system.md（D-068）。色は theme.json のパレット。
 */

/* ---------- フォント（使う文字だけ。wordpress/bin/build-fonts で作る） ---------- */
@font-face {
	font-family: "CD Noto Sans JP";
	src: url("../fonts/noto-sans-jp.woff2") format("woff2");
	font-weight: 600 900;
	font-display: swap;
}

@font-face {
	font-family: "Inter Tight";
	src: url("../fonts/inter-tight.woff2") format("woff2");
	font-weight: 500 700;
	font-display: swap;
}

@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
	font-style: italic;
	font-weight: 400;
	font-display: swap;
}

:root {
	--c-base: var(--wp--preset--color--base);
	--c-surface: var(--wp--preset--color--surface);
	--c-raised: var(--wp--preset--color--raised);
	--c-ink: var(--wp--preset--color--ink);
	--c-graphite: var(--wp--preset--color--graphite);
	--c-muted: var(--wp--preset--color--muted);
	--c-line: var(--wp--preset--color--line);
	--c-accent: var(--wp--preset--color--accent);
	--c-on-dark-muted: #b9bbb3;
	--c-line-dark: rgb(255 255 255 / 0.12);
	--f-display: var(--wp--preset--font-family--display);
	--f-serif: var(--wp--preset--font-family--serif);
	--r-l: 28px;
	--r-m: 18px;
	--inner: 1200px;
	--pad: clamp(1.25rem, 4.5vw, 2.5rem);
	--gap: clamp(0.875rem, 2vw, 1.25rem);
	--section: clamp(5rem, 11vw, 9rem);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

body {
	-webkit-font-smoothing: antialiased;
}

.wp-site-blocks {
	padding-left: 0;
	padding-right: 0;
}

.wp-site-blocks > * + *,
main.wp-block-group > * + * {
	margin-block-start: 0;
}

::selection {
	background: var(--c-accent);
	color: var(--c-ink);
}

:where(a, button, input, select, textarea, summary, label, [tabindex]):focus-visible {
	outline: 2px solid var(--c-ink);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--c-accent);
	border-radius: 8px;
}

.cd-inner,
.cd-header__inner,
.cd-footer__inner,
.cd-section__inner,
.cd-hero__inner,
.cd-cta__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--inner);
	margin-inline: auto;
	padding-inline: var(--pad);
}

/* ---------- 文字の部品 ---------- */
.cd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0;
	color: var(--c-muted);
	font-family: var(--f-display);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cd-eyebrow::before {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: var(--c-accent);
	box-shadow: 0 0 0 3px rgb(251 210 28 / 0.25);
}

.cd-serif {
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
}

.cd-section__title,
.cd-page-head__title,
.cd-hero__title,
.cd-cta__title {
	font-family: var(--f-display);
	font-feature-settings: "palt" 1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* ---------- ボタン ---------- */
.cd-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.25rem;
}

.cd-buttons--center {
	justify-content: center;
}

.cd-button {
	--bg: var(--c-ink);
	--fg: var(--c-base);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 3.25rem;
	padding: 0.5rem 0.5rem 0.5rem 1.5rem;
	border: 1px solid var(--bg);
	border-radius: 999px;
	background: var(--bg);
	color: var(--fg);
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s;
}

.cd-button::after {
	content: "→";
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--c-accent);
	color: var(--c-ink);
	font-family: var(--f-display);
	transition: transform 0.3s var(--ease);
}

.cd-button:hover {
	transform: translateY(-2px);
}

.cd-button:hover::after {
	transform: translateX(3px);
}

.cd-button--accent {
	--bg: var(--c-accent);
	--fg: var(--c-ink);
}

.cd-button--accent::after {
	background: var(--c-ink);
	color: var(--c-accent);
}

.cd-button--ghost {
	--bg: transparent;
	--fg: var(--c-ink);
	border-color: var(--c-line);
	padding-right: 1.5rem;
}

.cd-button--ghost::after {
	display: none;
}

.cd-button--ghost:hover {
	border-color: var(--c-ink);
}

.cd-more {
	margin: 1.5rem 0 0;
	font-weight: 700;
}

.cd-more a {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding-bottom: 2px;
	border-bottom: 1px solid currentColor;
	color: inherit;
	text-decoration: none;
}

.cd-more a::after {
	content: "→";
	font-family: var(--f-display);
	transition: transform 0.3s var(--ease);
}

.cd-more a:hover::after {
	transform: translateX(3px);
}

/* ---------- ヘッダー ---------- */
.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 50;
}

.cd-header {
	background: rgb(246 245 241 / 0.8);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid rgb(14 15 12 / 0.08);
}

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

.cd-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: inherit;
	text-decoration: none;
}

.cd-brand__logo {
	width: 34px;
	height: 34px;
	flex: none;
}

.cd-brand__text {
	display: grid;
	line-height: 1.2;
}

.cd-brand__name {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
}

.cd-brand__tagline {
	color: var(--c-muted);
	font-size: 0.75rem;
}

.cd-nav ul {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0.3rem;
	border: 1px solid rgb(14 15 12 / 0.08);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.6);
	list-style: none;
}

.cd-nav a {
	display: block;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	color: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.cd-nav a:hover {
	background: var(--c-surface);
}

.cd-nav a[aria-current="page"] {
	background: var(--c-ink);
	color: var(--c-base);
}

.cd-header__cta {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0 1.1rem;
	border-radius: 999px;
	background: var(--c-ink);
	color: var(--c-base);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.cd-header__cta:hover {
	background: var(--c-accent);
	color: var(--c-ink);
}

/* 狭い画面：ナビは下の段に置き、横にスクロールできる */
@media (max-width: 899px) {
	.cd-header__inner {
		flex-wrap: wrap;
		padding-block: 0.6rem;
		row-gap: 0.5rem;
	}

	.cd-nav {
		order: 3;
		width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.cd-nav ul {
		width: max-content;
	}

	.cd-brand__tagline {
		display: none;
	}
}

/* ---------- Hero ---------- */
.cd-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-bottom: 1px solid var(--c-line);
}

/* 方眼の線と、黄の光 */
.cd-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(to right, rgb(14 15 12 / 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(14 15 12 / 0.05) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

.cd-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -10%;
	top: -20%;
	width: min(70vw, 760px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(251 210 28 / 0.42), rgb(251 210 28 / 0) 65%);
}

.cd-hero__inner {
	display: grid;
	gap: clamp(3rem, 6vw, 4rem);
	padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 9vw, 7rem);
}

@media (min-width: 1024px) {
	.cd-hero__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		align-items: center;
	}
}

.cd-hero__title {
	margin: 1.5rem 0 0;
	font-size: clamp(2.375rem, 4.4vw + 0.6rem, 4.5rem);
	font-weight: 800;
	line-height: 1.14;
}

.cd-phrase {
	display: inline-block;
}

.cd-hl {
	position: relative;
	z-index: 0;
	white-space: nowrap;
}

.cd-hl::after {
	content: "";
	position: absolute;
	left: -0.04em;
	right: -0.04em;
	bottom: 0.06em;
	z-index: -1;
	height: 0.32em;
	border-radius: 0.1em;
	background: var(--c-accent);
}

.cd-hero__en {
	display: block;
	margin-top: 1.25rem;
	color: var(--c-muted);
	font-family: var(--f-serif);
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	font-style: italic;
	line-height: 1.2;
}

.cd-hero__lead {
	max-width: 32em;
	margin: 1.5rem 0 0;
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	line-height: 1.95;
}

.cd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.cd-chips li {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.65);
	font-size: 0.8125rem;
	font-weight: 600;
}

.cd-chips li::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #2fa35a;
}

/* Hero の見本（CSS で描いたブラウザ。飾りなので読み上げない） */
.cd-mock {
	position: relative;
	margin: 0;
	padding: 0 0.5rem 4.5rem;
}

.cd-mock__window {
	overflow: hidden;
	border: 1px solid rgb(14 15 12 / 0.12);
	border-radius: 22px;
	background: var(--c-raised);
	box-shadow: 0 40px 80px -40px rgb(14 15 12 / 0.35), 0 2px 6px rgb(14 15 12 / 0.06);
	transform: rotate(-1.2deg);
}

.cd-mock__bar {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--c-line);
	background: var(--c-base);
}

.cd-mock__bar i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-line);
}

.cd-mock__url {
	margin-left: 0.75rem;
	padding: 0.2rem 0.8rem;
	border-radius: 999px;
	background: var(--c-raised);
	color: var(--c-muted);
	font-family: var(--f-display);
	font-size: 0.75rem;
}

.cd-mock__body {
	display: grid;
	gap: 0.9rem;
	padding: 1.25rem;
}

.cd-mock__hero {
	display: grid;
	align-content: end;
	gap: 0.5rem;
	min-height: 150px;
	padding: 1.25rem;
	border-radius: 14px;
	background:
		radial-gradient(circle at 85% 25%, rgb(251 210 28 / 0.95) 0 16%, transparent 17%),
		linear-gradient(135deg, #2a2c27, #0e0f0c);
	color: #fff;
}

.cd-mock__shop {
	font-size: 1.125rem;
	font-weight: 700;
}

.cd-mock__line {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: currentColor;
	opacity: 0.22;
}

.cd-mock__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.6rem;
}

.cd-mock__card {
	display: grid;
	gap: 0.4rem;
	padding: 0.75rem;
	border-radius: 10px;
	background: var(--c-base);
}

.cd-mock__card b {
	font-size: 0.75rem;
}

.cd-mock__btns {
	display: flex;
	gap: 0.5rem;
}

.cd-mock__btns span {
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: #06c755;
	color: var(--c-ink);
	font-size: 0.75rem;
	font-weight: 700;
}

.cd-mock__btns span + span {
	background: var(--c-ink);
	color: #fff;
}

.cd-mock__tag {
	position: absolute;
	display: grid;
	gap: 0.1rem;
	padding: 0.9rem 1.1rem;
	border-radius: 18px;
	background: var(--c-ink);
	color: var(--c-base);
	box-shadow: 0 20px 40px -20px rgb(14 15 12 / 0.6);
}

.cd-mock__tag small {
	color: var(--c-on-dark-muted);
	font-size: 0.75rem;
}

.cd-mock__tag strong {
	font-family: var(--f-display);
	font-size: 1.75rem;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.cd-mock__tag strong span {
	font-size: 0.875rem;
	letter-spacing: 0;
}

.cd-mock__tag--price {
	left: -0.5rem;
	bottom: 0.5rem;
	rotate: -3deg;
}

.cd-mock__tag--days {
	right: 0;
	top: 32%;
	background: var(--c-accent);
	color: var(--c-ink);
	rotate: 4deg;
}

.cd-mock__tag--days small {
	color: rgb(14 15 12 / 0.72);
}

/* ---------- 流れる帯 ---------- */
.cd-marquee {
	position: relative;
	overflow: hidden;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--c-line);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.cd-marquee__track {
	display: flex;
	gap: 3rem;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cd-marquee__track li {
	display: inline-flex;
	align-items: center;
	gap: 3rem;
	color: var(--c-muted);
	font-family: var(--f-display);
	font-size: 1.125rem;
	font-weight: 600;
	white-space: nowrap;
}

.cd-marquee__track li::after {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c-accent);
}

@media (prefers-reduced-motion: no-preference) {
	.cd-marquee__track {
		animation: cd-marquee 40s linear infinite;
	}

	.cd-marquee:hover .cd-marquee__track,
	.cd-marquee:has(.cd-marquee__pause input:checked) .cd-marquee__track {
		animation-play-state: paused;
	}
}

.cd-marquee__pause {
	position: absolute;
	right: var(--pad);
	top: 50%;
	z-index: 1;
	translate: 0 -50%;
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-base);
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
}

.cd-marquee__pause input {
	position: absolute;
	opacity: 0;
}

.cd-marquee__pause:has(input:focus-visible) {
	outline: 2px solid var(--c-ink);
	outline-offset: 2px;
}

.cd-marquee__pause .is-play,
.cd-marquee__pause:has(input:checked) .is-pause {
	display: none;
}

.cd-marquee__pause:has(input:checked) .is-play {
	display: inline;
}

@media (prefers-reduced-motion: reduce) {
	.cd-marquee__pause {
		display: none;
	}
}

@keyframes cd-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* ---------- セクション ---------- */
.cd-section {
	padding-block: var(--section);
}

.cd-section--surface {
	background: var(--c-surface);
}

.cd-section--dark {
	background: var(--c-ink);
	color: var(--c-base);
}

.cd-section--dark .cd-eyebrow,
.cd-section--dark .cd-section__lead,
.cd-section--dark .cd-note {
	color: var(--c-on-dark-muted);
}

.cd-section--dark a {
	color: inherit;
}

.cd-section--tight {
	padding-block: 0 var(--section);
}

.cd-section__head {
	display: grid;
	gap: 1rem 3rem;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 900px) {
	.cd-section__head--split {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
		align-items: end;
	}
}

.cd-section__title {
	margin: 0.75rem 0 0;
	font-size: clamp(1.9rem, 4.2vw, 3.25rem);
	font-weight: 800;
	line-height: 1.2;
}

.cd-section__title .cd-serif {
	font-size: 1.08em;
}

.cd-section__lead {
	max-width: 34em;
	margin: 0;
	color: var(--c-muted);
	font-size: 1.0625rem;
}

.cd-note {
	margin: 1.75rem 0 0;
	color: var(--c-muted);
	font-size: 0.9375rem;
}

.cd-subtitle {
	margin: 3.5rem 0 1.25rem;
	font-family: var(--f-display);
	font-size: 1.375rem;
	letter-spacing: -0.01em;
}

/* スクロールで、ふわっと出す（対応しているブラウザだけ） */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.cd-reveal {
			animation: cd-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}
}

/* 薄くはしない（途中で止まっても文字が読めるように）。位置だけを動かす。 */
@keyframes cd-reveal {
	from {
		translate: 0 36px;
	}
}

/* ---------- ベントー ---------- */
.cd-bento {
	display: grid;
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 760px) {
	.cd-bento {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.cd-bento__item {
		grid-column: span 3;
	}

	.cd-bento__item--lg {
		grid-column: span 6;
	}
}

@media (min-width: 1100px) {
	.cd-bento__item {
		grid-column: span 2;
	}

	.cd-bento__item--lg {
		grid-column: span 4;
		grid-row: span 2;
	}

	.cd-bento__item--md {
		grid-column: span 3;
	}
}

.cd-bento__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 15rem;
	padding: clamp(1.5rem, 3vw, 2rem);
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--r-l);
	background: var(--c-raised);
	transition: transform 0.4s var(--ease), border-color 0.3s;
}

.cd-bento__item:hover {
	transform: translateY(-4px);
	border-color: rgb(14 15 12 / 0.25);
}

.cd-bento__item--dark {
	border-color: transparent;
	background: var(--c-ink);
	color: var(--c-base);
}

.cd-bento__item.cd-bento__item--dark p {
	color: var(--c-on-dark-muted);
}

.cd-bento__item--accent {
	border-color: transparent;
	background: var(--c-accent);
}

.cd-bento__item.cd-bento__item--accent p {
	color: rgb(14 15 12 / 0.78);
}

.cd-bento__title {
	margin: 0;
	font-family: var(--f-display);
	font-size: 1.375rem;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.cd-bento__item p {
	margin: 0;
	color: var(--c-muted);
}

.cd-bento__visual {
	margin-top: auto;
}

/* ベントーの中の絵 */
.cd-bignum {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2em;
	margin: auto 0 0;
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.05em;
}

.cd-bignum strong {
	color: var(--c-accent);
	font-size: clamp(6rem, 16vw, 12rem);
}

.cd-bignum span {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	letter-spacing: 0;
}

.cd-bignum small {
	display: block;
	margin-left: 0.75rem;
	color: var(--c-on-dark-muted);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.5;
}

.cd-chat {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cd-chat li {
	max-width: 85%;
	padding: 0.55rem 0.9rem;
	border-radius: 16px 16px 16px 4px;
	background: var(--c-surface);
	font-size: 0.875rem;
}

.cd-chat li:nth-child(even) {
	justify-self: end;
	border-radius: 16px 16px 4px 16px;
	background: #06c755;
	color: var(--c-ink);
	font-weight: 600;
}

.cd-langs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cd-langs li {
	padding: 0.35rem 0.75rem;
	border: 1px solid rgb(14 15 12 / 0.3);
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
}

.cd-checks {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.cd-checks li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.75rem;
	border-radius: 12px;
	background: var(--c-surface);
}

.cd-checks li::before {
	content: "✓";
	display: grid;
	flex: none;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: var(--c-ink);
	color: var(--c-accent);
	font-size: 0.75rem;
	font-weight: 700;
}

/* ---------- 料金のカード ---------- */
.cd-billing {
	display: grid;
	gap: 2rem;
}

.cd-switch {
	display: inline-flex;
	justify-self: start;
	gap: 0.25rem;
	margin: 0;
	padding: 0.3rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-raised);
}

.cd-section--dark .cd-switch {
	border-color: var(--c-line-dark);
	background: var(--c-graphite);
}

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

.cd-switch label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
}

.cd-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cd-switch label:has(input:checked) {
	background: var(--c-accent);
	color: var(--c-ink);
}

.cd-switch label:has(input:focus-visible) {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.cd-switch__save {
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: rgb(47 163 90 / 0.18);
	color: #1a6b38;
	font-size: 0.75rem;
}

.cd-section--dark .cd-switch__save {
	color: #8fe3ac;
}

.cd-switch label:has(input:checked) .cd-switch__save {
	background: rgb(14 15 12 / 0.12);
	color: var(--c-ink);
}

.cd-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cd-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--c-line);
	border-radius: var(--r-l);
	background: var(--c-raised);
	color: var(--c-ink);
}

.cd-section--dark .cd-plan {
	border-color: var(--c-line-dark);
	background: var(--c-graphite);
	color: var(--c-base);
}

.cd-plan--featured,
.cd-section--dark .cd-plan--featured {
	border: 2px solid var(--c-accent);
	background: var(--c-ink);
	color: var(--c-base);
}

.cd-section--dark .cd-plan--featured {
	background: #000;
}

.cd-plan__badge {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: var(--c-accent);
	color: var(--c-ink);
	font-size: 0.75rem;
	font-weight: 700;
}

.cd-plan__name {
	margin: 0;
	font-family: var(--f-display);
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

.cd-plan__summary {
	margin: 0.35rem 0 0;
	color: var(--c-muted);
	font-size: 0.9375rem;
}

.cd-plan--featured .cd-plan__summary,
.cd-section--dark .cd-plan__summary,
.cd-plan--featured .cd-plan__yearly,
.cd-section--dark .cd-plan__yearly {
	color: var(--c-on-dark-muted);
}

.cd-plan__price {
	display: flex;
	align-items: baseline;
	gap: 0.2rem;
	margin: 1.75rem 0 0;
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1;
}

.cd-plan__unit,
.cd-plan__yen {
	font-size: 1rem;
}

.cd-plan__amount {
	font-size: clamp(2.75rem, 5vw, 3.5rem);
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.cd-plan__yearly {
	margin: 0.6rem 0 0;
	color: var(--c-muted);
	font-size: 0.875rem;
}

/* 月払い・年払いの切り替え（JavaScript なし） */
.cd-price--yearly {
	display: none;
}

.cd-billing:has(input[value="yearly"]:checked) .cd-price--monthly {
	display: none;
}

.cd-billing:has(input[value="yearly"]:checked) .cd-price--yearly {
	display: block;
}

.cd-billing:has(input[value="yearly"]:checked) .cd-plan__price.cd-price--yearly {
	display: flex;
}

.cd-plan__points {
	display: grid;
	gap: 0.6rem;
	margin: 1.75rem 0 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--c-line);
	list-style: none;
}

.cd-plan--featured .cd-plan__points,
.cd-section--dark .cd-plan__points {
	border-top-color: var(--c-line-dark);
}

.cd-plan__points li,
.cd-list--check li {
	position: relative;
	padding-left: 1.75rem;
}

.cd-plan__points li::before,
.cd-list--check li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0.25em;
	display: grid;
	place-items: center;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--c-accent);
	color: var(--c-ink);
	font-size: 0.7rem;
	font-weight: 700;
}

/* ---------- 流れ（タイムライン） ---------- */
.cd-steps {
	counter-reset: cd-step;
	display: grid;
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 700px) {
	.cd-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.cd-steps--5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.cd-steps--6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.cd-step {
	counter-increment: cd-step;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.5rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-m);
	background: var(--c-raised);
}

.cd-section--dark .cd-step {
	border-color: var(--c-line-dark);
	background: var(--c-graphite);
}

.cd-step::before {
	content: counter(cd-step, decimal-leading-zero);
	color: var(--c-muted);
	font-family: var(--f-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.cd-section--dark .cd-step::before {
	color: var(--c-accent);
}

.cd-steps .cd-step:last-child {
	border-color: transparent;
	background: var(--c-accent);
	color: var(--c-ink);
}

.cd-steps .cd-step:last-child::before,
.cd-steps .cd-step:last-child p {
	color: rgb(14 15 12 / 0.78);
}

.cd-step__title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.5;
}

.cd-step p {
	margin: 0;
	color: var(--c-muted);
	font-size: 0.9375rem;
}

.cd-section--dark .cd-step p {
	color: var(--c-on-dark-muted);
}

/* ---------- 特長の一覧（ほかのページ） ---------- */
.cd-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cd-feature {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--c-line);
	border-radius: var(--r-l);
	background: var(--c-raised);
	transition: transform 0.4s var(--ease), border-color 0.3s;
}

.cd-feature:hover {
	transform: translateY(-3px);
	border-color: rgb(14 15 12 / 0.25);
}

.cd-feature__num {
	color: var(--c-muted);
	font-family: var(--f-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.cd-feature__title {
	margin: 0;
	font-family: var(--f-display);
	font-size: 1.1875rem;
	line-height: 1.45;
}

.cd-feature__title a {
	color: inherit;
	text-decoration: none;
}

.cd-feature__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--r-l);
}

.cd-feature p {
	margin: 0;
	color: var(--c-muted);
}

.cd-feature .cd-more {
	margin-top: auto;
	padding-top: 0.5rem;
}

/* ---------- 締めの呼びかけ ---------- */
.cd-cta {
	padding-block: var(--section);
}

.cd-cta__box {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
	border-radius: clamp(24px, 4vw, 40px);
	background: var(--c-ink);
	color: var(--c-base);
}

/* 本物のロゴ（assets/images/logo.svg）を、右下に大きく敷く */
.cd-cta__box::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: clamp(-6rem, -5vw, -2rem);
	bottom: clamp(-8rem, -7vw, -3rem);
	width: clamp(20rem, 42vw, 34rem);
	aspect-ratio: 1;
	background: url("../images/logo.svg") center / contain no-repeat;
}

.cd-cta__title {
	max-width: 13em;
	margin: 0.75rem 0 0;
	color: inherit;
	font-size: clamp(2rem, 5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.15;
}

.cd-cta__box p {
	max-width: 30em;
	margin: 1.25rem 0 0;
	color: var(--c-on-dark-muted);
}

.cd-cta__box .cd-eyebrow {
	color: var(--c-on-dark-muted);
}

.cd-cta .cd-button {
	--bg: var(--c-accent);
	--fg: var(--c-ink);
}

.cd-cta .cd-button::after {
	background: var(--c-ink);
	color: var(--c-accent);
}

.cd-cta .cd-button--ghost {
	--bg: transparent;
	--fg: var(--c-base);
	border-color: var(--c-line-dark);
}

.cd-cta .cd-button--ghost:hover {
	border-color: var(--c-base);
}

@media (max-width: 799px) {
	.cd-cta__box::before {
		opacity: 0.3;
	}
}

/* ---------- ページの見出し（ほかのページ） ---------- */
.cd-page-head {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.cd-page-head::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(to right, rgb(14 15 12 / 0.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(14 15 12 / 0.045) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
	mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.cd-page-head::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -6rem;
	top: -12rem;
	width: 30rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(251 210 28 / 0.38), transparent 65%);
}

.cd-page-head__title {
	margin: 0.9rem 0 0;
	font-size: clamp(2.4rem, 6vw, 4.25rem);
	font-weight: 800;
	line-height: 1.15;
}

.cd-page-head__lead {
	max-width: 36em;
	margin: 1.25rem 0 0;
	color: var(--c-muted);
	font-size: 1.0625rem;
}

.cd-toc ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.cd-toc a {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-raised);
	color: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.cd-toc a:hover {
	border-color: var(--c-ink);
}

/* ---------- 3つの質問（その場で答えが出る。JavaScript なし） ---------- */
.cd-finder {
	display: grid;
	gap: var(--gap);
}

@media (min-width: 1000px) {
	.cd-finder {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		align-items: start;
	}
}

.cd-finder__questions {
	display: grid;
	gap: var(--gap);
}

.cd-q {
	margin: 0;
	padding: 1.5rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-m);
	background: var(--c-raised);
	transition: opacity 0.3s;
}

.cd-q legend {
	float: left;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
	font-size: 1.0625rem;
	font-weight: 700;
}

.cd-q legend span {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--c-muted);
	font-family: var(--f-display);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
}

.cd-q__options {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cd-q label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
}

.cd-q label:hover {
	border-color: var(--c-ink);
}

.cd-q input {
	accent-color: var(--c-accent);
}

.cd-q label:has(input:checked) {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: var(--c-base);
}

/* 前の答えで決まったら、あとの質問は薄くする */
.cd-finder:has(#q1-yes:checked) .cd-q--2,
.cd-finder:has(#q1-yes:checked) .cd-q--3,
.cd-finder:has(#q2-yes:checked) .cd-q--3 {
	opacity: 0.4;
}

.cd-finder__result {
	padding: 2rem;
	border-radius: var(--r-l);
	background: var(--c-ink);
	color: var(--c-base);
}

@media (min-width: 1000px) {
	.cd-finder__result {
		position: sticky;
		top: 6.5rem;
	}
}

.cd-finder__label {
	margin: 0;
	color: var(--c-on-dark-muted);
	font-size: 0.875rem;
}

.cd-answer {
	display: none;
}

.cd-answer--none {
	display: block;
}

.cd-answer__title {
	margin: 0.5rem 0 0;
	font-family: var(--f-display);
	font-size: 1.75rem;
	letter-spacing: -0.01em;
}

.cd-answer p {
	margin: 0.75rem 0 0;
	color: var(--c-on-dark-muted);
}

.cd-answer .cd-more a {
	color: var(--c-accent);
}

.cd-finder:has(#q1-yes:checked) .cd-answer--onetime,
.cd-finder:has(#q1-no:checked):has(#q2-yes:checked) .cd-answer--card,
.cd-finder:has(#q1-no:checked):has(#q2-no:checked):has(#q3-yes:checked) .cd-answer--reserve,
.cd-finder:has(#q1-no:checked):has(#q2-no:checked):has(#q3-no:checked) .cd-answer--standard {
	display: block;
}

.cd-finder:has(#q1-yes:checked) .cd-answer--none,
.cd-finder:has(#q1-no:checked):has(#q2-yes:checked) .cd-answer--none,
.cd-finder:has(#q1-no:checked):has(#q2-no:checked):has(#q3-yes:checked) .cd-answer--none,
.cd-finder:has(#q1-no:checked):has(#q2-no:checked):has(#q3-no:checked) .cd-answer--none {
	display: none;
}

/* ---------- 箱・一覧 ---------- */
.cd-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	gap: var(--gap);
	margin-top: var(--gap);
}

.cd-box {
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--c-line);
	border-radius: var(--r-l);
	background: var(--c-raised);
}

.cd-box__title {
	margin: 0 0 1.25rem;
	font-family: var(--f-display);
	font-size: 1.1875rem;
}

.cd-list {
	margin: 0;
	padding-left: 1.25em;
}

.cd-list li + li {
	margin-top: 0.55rem;
}

.cd-list--check {
	padding-left: 0;
	list-style: none;
}

/* ---------- 表 ---------- */
.cd-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--c-line);
	border-radius: var(--r-l);
	background: var(--c-raised);
}

.cd-table {
	width: 100%;
	border-collapse: collapse;
}

.cd-table th,
.cd-table td {
	padding: 1.15rem clamp(1rem, 3vw, 1.75rem);
	border-bottom: 1px solid var(--c-line);
	text-align: left;
	vertical-align: top;
}

.cd-table tbody tr:last-child > * {
	border-bottom: 0;
}

.cd-table tbody tr {
	transition: background-color 0.2s;
}

.cd-table tbody tr:hover {
	background: var(--c-base);
}

.cd-table thead th {
	color: var(--c-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.cd-table td {
	font-family: var(--f-display);
	font-size: 1.0625rem;
	font-weight: 700;
	white-space: nowrap;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.cd-table thead th:last-child {
	text-align: right;
}

.cd-table__note {
	display: block;
	margin-top: 0.3rem;
	color: var(--c-muted);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0;
}

.cd-table--compare {
	min-width: 32rem;
	table-layout: fixed;
}

.cd-table--compare th:first-child {
	width: 11rem;
}

.cd-table--compare td {
	text-align: center;
	font-size: 0.9375rem;
}

.cd-table--compare thead th:not(:first-child) {
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: 1.0625rem;
	text-align: center;
	letter-spacing: 0;
}

.cd-table--compare thead .cd-table__note {
	white-space: nowrap;
}

.cd-table--info th {
	width: 30%;
	min-width: 8rem;
	color: var(--c-muted);
	font-size: 0.9375rem;
}

.cd-table--info td {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	font-weight: 400;
	text-align: left;
	white-space: normal;
}

/* ---------- よくある質問 ---------- */
.cd-faq-layout {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 960px) {
	.cd-faq-layout {
		grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.6fr);
		gap: 4rem;
		align-items: start;
	}

	.cd-faq-nav {
		position: sticky;
		top: 6.5rem;
	}
}

.cd-faq-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 960px) {
	.cd-faq-nav ul {
		flex-direction: column;
	}
}

.cd-faq-nav a {
	display: block;
	padding: 0.55rem 1rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-raised);
	color: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.cd-faq-nav a:hover {
	border-color: var(--c-ink);
}

.cd-faq-group + .cd-faq-group {
	margin-top: 3.5rem;
}

.cd-faq-group__title {
	margin: 0;
	font-family: var(--f-display);
	font-size: 1.5rem;
	letter-spacing: -0.01em;
}

.cd-faq {
	margin-top: 1.25rem;
	border-top: 1px solid var(--c-line);
}

.cd-faq__item {
	border-bottom: 1px solid var(--c-line);
}

.cd-section--dark .cd-faq,
.cd-section--dark .cd-faq__item {
	border-color: var(--c-line-dark);
}

.cd-faq__q {
	position: relative;
	padding: 1.4rem 3.5rem 1.4rem 0;
	font-size: 1.0625rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.cd-faq__q::-webkit-details-marker {
	display: none;
}

.cd-faq__q::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 2.25rem;
	height: 2.25rem;
	translate: 0 -50%;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background:
		linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
	transition: transform 0.3s var(--ease), background-color 0.2s;
}

.cd-faq__item[open] > .cd-faq__q::after {
	transform: rotate(45deg);
	border-color: var(--c-accent);
	background-color: var(--c-accent);
	color: var(--c-ink);
}

.cd-faq__a {
	overflow: hidden;
}

.cd-faq__a > p {
	padding: 0 3.5rem 1.5rem 0;
}

/* 閉じる途中は、アイコンを先に「＋」に戻す */
.cd-faq__item.is-closing > .cd-faq__q::after {
	transform: none;
	border-color: var(--c-line);
	background-color: transparent;
	color: inherit;
}

.cd-faq__a p {
	margin: 0;
	color: var(--c-muted);
}

.cd-section--dark .cd-faq__a p {
	color: var(--c-on-dark-muted);
}

/* ---------- 運営者 ---------- */
.cd-team {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cd-profile {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--c-line);
	border-radius: var(--r-l);
	background: var(--c-raised);
}

.cd-profile__photo {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px var(--c-raised), 0 0 0 6px var(--c-accent);
}

.cd-profile__name {
	margin: 0;
	font-family: var(--f-display);
	font-size: 1.625rem;
	letter-spacing: -0.02em;
}

.cd-profile__role {
	display: block;
	margin-top: 0.25rem;
	color: var(--c-muted);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
}

.cd-profile__body p {
	margin: 1rem 0 0;
}

/* ---------- 連絡先 ---------- */
.cd-dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: var(--gap);
	margin: 0;
}

.cd-dl > div {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-m);
	background: var(--c-raised);
}

.cd-dl dt {
	color: var(--c-muted);
	font-size: 0.875rem;
	font-weight: 700;
}

.cd-dl dd {
	margin: 0;
	font-family: var(--f-display);
	font-size: 1.25rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.cd-dl dd a {
	color: inherit;
}

/* ---------- 長い文章（規約など） ---------- */
.cd-prose {
	max-width: calc(760px + 2 * var(--pad));
}

.cd-prose h2 {
	margin: 3rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-line);
	font-family: var(--f-display);
	font-size: 1.25rem;
	line-height: 1.5;
}

.cd-prose h2:first-of-type {
	margin-top: 0;
}

.cd-prose p,
.cd-prose ol,
.cd-prose ul {
	margin: 0.9rem 0 0;
}

.cd-prose li + li {
	margin-top: 0.45rem;
}

/* 【要確認】の印。公開の前にすべて埋める。 */
.cd-todo {
	padding: 0.1em 0.35em;
	border-radius: 4px;
	background: #ffe3e0;
	color: #8a1f11;
	font-weight: 700;
}

.cd-draft {
	margin: 0 0 2rem;
}

/* ---------- フッター ---------- */
.cd-footer {
	overflow: hidden;
	padding-top: clamp(4rem, 8vw, 6rem);
	background: var(--c-ink);
	color: var(--c-base);
	font-size: 0.9375rem;
}

.cd-footer__top {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 900px) {
	.cd-footer__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	}
}

.cd-footer__lead {
	max-width: 20em;
	margin: 0;
	font-family: var(--f-display);
	font-size: clamp(1.375rem, 2.6vw, 1.875rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.cd-footer__note {
	margin: 1rem 0 0;
	color: var(--c-on-dark-muted);
}

.cd-footer__links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	gap: 0.85rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cd-footer__links a {
	color: var(--c-base);
	text-decoration: none;
}

.cd-footer__links a:hover {
	color: var(--c-accent);
}

.cd-footer__mark {
	margin: clamp(3rem, 7vw, 5rem) 0 0;
	font-family: var(--f-display);
	font-size: clamp(3.25rem, 14.5vw, 12.5rem);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.06em;
	white-space: nowrap;
}

.cd-footer__mark span {
	color: var(--c-accent);
}

.cd-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-top: 1.5rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--c-line-dark);
	color: var(--c-on-dark-muted);
	font-size: 0.8125rem;
}

.cd-footer__bottom p {
	margin: 0;
}

.cd-footer__bottom a {
	color: inherit;
}

.cd-answer p.cd-answer__price {
	color: var(--c-accent);
	font-family: var(--f-display);
	font-size: 1.25rem;
	font-weight: 700;
}

/* 見出しのまとまりなしで H2 を置いたときの、下の余白 */
.cd-section__inner > .cd-section__title {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

/*
 * 表・カードの並びの直後に置いたもの（注意書き・リンクなど）には、必ず余白をとる。
 * （.cd-list などの margin: 0 より後に書いて、こちらを優先する）
 */
:is(.cd-table-wrap, .cd-plans, .cd-billing, .cd-columns, .cd-features, .cd-steps, .cd-bento, .cd-dl, .cd-team, .cd-finder) + * {
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.cd-finder__label + .cd-answer {
	margin-top: 0.25rem;
}

/* ---------- フォーム（パートナーの申込：D-074） ---------- */
.cd-form-layout {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 1000px) {
	.cd-form-layout {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		align-items: start;
	}

	/* 見出しは、フォームを読み進めるあいだ画面に残す */
	.cd-form-layout__head {
		position: sticky;
		top: 7rem;
	}
}

.cd-form-card {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--c-line);
	border-radius: var(--r-l);
	background: var(--c-raised);
}

.cd-form {
	display: grid;
	gap: 1.75rem;
}

.cd-form__grid {
	display: grid;
	gap: 1.75rem 1.25rem;
	align-items: start;
}

@media (min-width: 640px) {
	.cd-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ボットよけの見えない欄。自動入力が入らないよう、描画しない（display:none） */
.cd-form__hp {
	display: none !important;
}

.cd-field {
	display: grid;
	align-content: start;
	gap: 0.5rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.cd-field__label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	font-weight: 700;
	line-height: 1.5;
}

/* fieldset の legend は grid の gap が効かないので、下の余白を足す */
legend.cd-field__label {
	margin-bottom: 0.75rem;
}

.cd-field__req,
.cd-field__opt {
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
}

.cd-field__req {
	background: var(--c-ink);
	color: var(--c-base);
}

.cd-field__opt {
	background: var(--c-surface);
	color: var(--c-muted);
}

.cd-field__hint {
	margin: 0;
	color: var(--c-muted);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.5;
}

.cd-field__label .cd-field__hint {
	font-size: 0.875rem;
}

.cd-field input[type="text"],
.cd-field input[type="email"],
.cd-field input[type="url"],
.cd-field textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	border: 1px solid #b9b7ae;
	border-radius: 12px;
	background: var(--c-base);
	color: var(--c-ink);
	font: inherit;
	transition: border-color 0.2s, background-color 0.2s;
}

.cd-field textarea {
	resize: vertical;
}

.cd-field input:hover,
.cd-field textarea:hover {
	border-color: var(--c-ink);
}

.cd-field input:focus-visible,
.cd-field textarea:focus-visible {
	border-color: var(--c-ink);
	background: var(--c-raised);
}

.cd-field.is-invalid input,
.cd-field.is-invalid textarea {
	border-color: #b42318;
	background: #fff6f5;
}

.cd-field__error {
	margin: 0;
	color: #b42318;
	font-size: 0.875rem;
	font-weight: 700;
}

.cd-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

/* 選択肢は横幅を分け合う（折り返したときも、行の幅いっぱいにそろう） */
.cd-choices .cd-choice {
	flex: 1 1 auto;
	white-space: nowrap;
}

.cd-choice {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0.6rem 0.9rem;
	border: 1px solid #b9b7ae;
	border-radius: 12px;
	background: var(--c-base);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.cd-choice:hover {
	border-color: var(--c-ink);
}

.cd-choice input {
	flex: none;
}

.cd-choice input {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	accent-color: var(--c-ink);
}

.cd-choice:has(input:checked) {
	border-color: var(--c-ink);
	background: var(--c-surface);
}

.cd-choice--consent {
	min-height: 0;
	border: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	font-size: 1rem;
}

.cd-choice--consent:has(input:checked) {
	background: transparent;
}

/* 同意の文は、ふつうの文として折り返す（リンクと「に同意します」が離れないように） */
.cd-choice--consent {
	align-items: flex-start;
}

.cd-choice--consent input {
	margin-top: 0.2rem;
}

.cd-choice--consent > span {
	display: block;
	line-height: 1.6;
}

.cd-choice--consent .cd-field__req {
	margin-left: 0.5rem;
	vertical-align: 0.1em;
	white-space: nowrap;
}

.cd-field--choices.is-invalid .cd-choice {
	border-color: #b42318;
}

.cd-form__actions {
	display: grid;
	gap: 1rem;
	justify-items: start;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-line);
}

.cd-form__actions .cd-button {
	cursor: pointer;
	font: inherit;
	font-weight: 700;
}

.cd-form__secure {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	color: var(--c-muted);
	font-size: 0.8125rem;
	line-height: 1.6;
}

.cd-form__secure svg {
	flex: none;
	margin-top: 0.1rem;
	color: var(--c-ink);
}

.cd-form__secure a {
	color: inherit;
}

/* Cloudflare Turnstile：ふだんは表示しない（interaction-only）。
   人の操作が必要なときだけ、turnstile-loader.js が is-visible を付け、入力欄と同じ枠で出す */
.cd-turnstile:not(.is-visible) {
	display: none;
}

.cd-turnstile {
	padding: 0.75rem;
	border: 1px solid #b9b7ae;
	border-radius: 12px;
	background: var(--c-base);
}

.cd-turnstile .cf-turnstile {
	display: flex;
	justify-content: flex-start;
}

.cd-form-errors {
	margin-bottom: 1.5rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid #f0b4ad;
	border-radius: var(--r-m);
	background: #fff6f5;
	color: #7a1a10;
}

.cd-form-errors__title {
	margin: 0;
	font-weight: 700;
}

.cd-form-errors ul {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
}

.cd-form-errors a {
	color: inherit;
}

.cd-form-done {
	padding: 1.5rem;
	border-radius: var(--r-m);
	background: var(--c-accent);
	color: var(--c-ink);
}

.cd-form-done__title {
	margin: 0;
	font-family: var(--f-display);
	font-size: 1.25rem;
	font-weight: 700;
}

.cd-form-done p + p {
	margin: 0.5rem 0 0;
}

/* ---------- LINE 公式アカウントの案内（QR コード） ---------- */
.cd-contact-ways {
	display: grid;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	align-items: start;
}

@media (min-width: 900px) {
	.cd-contact-ways {
		grid-template-columns: minmax(0, 1fr) minmax(0, 29rem);
	}
}

.cd-line-card {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: 2rem;
	padding: 1.25rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-l);
	background: var(--c-raised);
}

.cd-contact-ways .cd-line-card {
	margin-top: 0;
}

.cd-line-card__qr {
	flex: none;
	width: 140px;
	height: 140px;
	padding: 10px;
	border-radius: 12px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--c-line);
}

.cd-line-card__body {
	display: grid;
	gap: 0.35rem;
	min-width: 0;
}

.cd-line-card__label {
	margin: 0;
	font-weight: 700;
}

.cd-line-card__lead {
	margin: 0;
	color: var(--c-muted);
	font-size: 0.875rem;
	line-height: 1.6;
}

.cd-line-card__id {
	margin: 0;
	font-size: 0.9375rem;
}

.cd-line-card__button {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin-top: 0.35rem;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	background: var(--c-ink);
	color: var(--c-base);
	font-size: 0.9375rem;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.cd-line-card__button:hover,
.cd-line-card__button:focus-visible {
	background: #2a2b27;
	color: var(--c-base);
}

/* スマホでは QR を小さくする（その端末では読み取れないため、ボタンが主役） */
@media (max-width: 599px) {
	.cd-line-card {
		align-items: flex-start;
	}

	.cd-line-card__qr {
		width: 96px;
		height: 96px;
		padding: 6px;
	}
}
