/*
 * PointLink NEXT DX — main.css
 * 数値は docs/01_home/specification.md「レイアウト数値」「ヘッダーとH01の配置」。
 * 配色は UI 用の提案値（docs/01_home/header-hero-design.md）。正式なロゴ色の指定ではない。
 * ブレークポイント：24.375em = 390px、48em = 768px、64em = 1024px（H01・カード列）、75em = 1200px（ヘッダーナビ）。
 */

:root {
	--color-text: #202124;
	--color-text-muted: #52525b;
	--color-bg: #ffffff;
	--color-surface: #f6f6f4;
	--color-accent: #b4232c;
	--color-accent-hover: #8f1c23;
	--color-on-accent: #ffffff;
	--color-border: #8a8a8a;
	--color-focus: #202124;
	--color-review-bg: #fff4cc;
	--color-review-border: #7a5c00;
	--color-review-text: #3d2e00;

	--font-body: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;

	--container-max: 1200px;
	--gutter: 20px;
	--section-space: 56px;
	--card-gap: 24px;
	--control-min: 44px;
}

@media (min-width: 48em) {
	:root {
		--gutter: 32px;
	}
}

@media (min-width: 64em) {
	:root {
		--section-space: 88px;
	}
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.8;
	overflow-wrap: anywhere;
	line-break: strict;
}

@media (min-width: 64em) {
	body {
		font-size: 1.0625rem;
	}
}

img,
svg {
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3 {
	margin: 0;
	font-weight: 700;
}

p,
ul,
ol,
figure {
	margin: 0;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
}

.site-main:focus {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.container {
	width: 100%;
	max-width: calc(var(--container-max) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--color-bg);
	color: var(--color-text);
	border: 2px solid var(--color-text);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* ---------- Buttons / links ---------- */

.cta-group {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	margin-top: 32px;
}

@media (min-width: 48em) {
	.cta-group {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--control-min);
	padding: 10px 24px;
	border: 2px solid transparent;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
}

/* 主CTA：赤地＋白文字。副CTA：白地＋濃色枠線。hover は色に加えて下線で示す。 */
.button--primary {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-on-accent);
}

.button--primary:hover {
	background: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
	text-decoration: underline;
}

.button--secondary {
	background: var(--color-bg);
	border-color: var(--color-text);
	color: var(--color-text);
}

.button--secondary:hover {
	background: var(--color-surface);
	text-decoration: underline;
}

.link-text {
	display: inline-flex;
	align-items: center;
	min-height: var(--control-min);
	font-weight: 700;
	text-decoration: underline;
}

.link-text:hover {
	text-decoration-thickness: 2px;
}

/* ---------- Review-only (非公開検証) ---------- */

.review-banner {
	padding: 8px 0;
	background: var(--color-review-bg);
	color: var(--color-review-text);
	border-bottom: 2px dashed var(--color-review-border);
	font-size: 0.875rem;
}

.review-note {
	margin-bottom: 24px;
	padding: 12px 16px;
	background: var(--color-review-bg);
	color: var(--color-review-text);
	border: 2px dashed var(--color-review-border);
	font-size: 0.875rem;
}

.review-note__label {
	display: inline-block;
	margin-right: 8px;
	font-weight: 700;
}

/* 未公開リンクの保留表示：承認済みラベル＋小さな「未公開」。クリックできない。 */
.link-pending {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	min-height: var(--control-min);
	color: var(--color-text);
	font-weight: 700;
}

.link-pending__badge {
	display: inline-block;
	padding: 0 6px;
	background: var(--color-review-bg);
	color: var(--color-review-text);
	border: 1px dashed var(--color-review-border);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
}

.link-pending--primary,
.link-pending--secondary {
	justify-content: center;
	padding: 8px 20px;
	border: 2px dashed var(--color-review-border);
	background: var(--color-bg);
	line-height: 1.5;
	text-align: center;
}

.is-review {
	outline: 2px dashed var(--color-review-border);
	outline-offset: -2px;
}

.review-panel {
	padding-block: 32px;
	background: var(--color-review-bg);
	color: var(--color-review-text);
	border-top: 2px dashed var(--color-review-border);
	font-size: 0.875rem;
}

.review-panel__title {
	font-size: 1rem;
}

.review-panel__text {
	margin-top: 8px;
}

.review-panel__list {
	margin-top: 8px;
	padding-left: 1.5em;
}

/* ---------- Header / navigation ---------- */

.site-header {
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 8px;
	padding-block: 10px;
}

.site-header__logo {
	display: inline-flex;
	align-items: center;
	min-height: var(--control-min);
}

/* ロゴは派生PNG（274×48 / 548×96、2026-11-22 新ロゴ）を高さ指定で縮小し、縦横比を保つ。 */
.site-header__logo img {
	display: block;
	width: auto;
	height: 32px;
}

@media (min-width: 24.375em) {
	.site-header__logo img {
		height: 36px;
	}
}

/*
 * ハンバーガーメニュー（header-hero-design.md「追加指示」）。
 * 480px未満：アイコンの上・ラベルの下に縦配置し、320pxでもロゴと同じ行に収める。
 *   開閉でボタンの高さが変わらないよう、ラベル2行分の高さを確保する。
 * 480px以上：アイコンとラベルを横並び。
 */
.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	flex-shrink: 0;
	width: 72px;
	min-height: 64px;
	padding: 4px;
	background: var(--color-bg);
	color: var(--color-text);
	border: 2px solid var(--color-text);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}

.nav-toggle[hidden] {
	display: none;
}

.nav-toggle:hover {
	background: var(--color-surface);
}

.nav-toggle:hover .nav-toggle__label {
	text-decoration: underline;
}

.nav-toggle__icon {
	display: block;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

@media (min-width: 30em) {
	.nav-toggle__icon {
		width: 22px;
		height: 22px;
	}
}

.nav-toggle__icon line {
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
}

.nav-toggle__cross {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__cross {
	display: inline;
}

.nav-toggle__label {
	text-align: center;
	word-break: auto-phrase;
}

@media (min-width: 30em) {
	.nav-toggle {
		flex-direction: row;
		gap: 8px;
		width: auto;
		min-width: var(--control-min);
		min-height: var(--control-min);
		padding: 8px 14px 8px 12px;
		font-size: 0.9375rem;
		line-height: 1.5;
	}

	.nav-toggle__label {
		white-space: nowrap;
	}
}

.site-nav {
	flex-basis: 100%;
}

.site-nav__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--color-border);
}

.site-nav__list li {
	border-bottom: 1px solid var(--color-border);
}

.link-nav {
	display: flex;
	align-items: center;
	min-height: var(--control-min);
	padding-block: 8px;
	font-weight: 700;
	text-decoration: none;
}

.link-nav:hover {
	text-decoration: underline;
}

.site-nav__cta {
	margin-top: 16px;
	margin-bottom: 8px;
}

/* JS有効かつ閉じているときだけ隠す。JS無効ならナビは常時表示。 */
.js .site-nav[hidden] {
	display: none;
}

/*
 * 横並びナビは 75em（1200px）以上（specification.md「ヘッダーとH01の配置」）。
 * navigation.js の matchMedia と一致させる。H01 の列切替（64em）とは独立。
 */
@media (min-width: 75em) {
	.site-header__inner {
		flex-wrap: nowrap;
		gap: 24px;
	}

	.site-header__logo {
		flex-shrink: 0;
	}

	.site-header__logo img {
		height: 44px;
	}

	.nav-toggle {
		display: none;
	}

	.js .site-nav[hidden],
	.site-nav {
		display: flex;
		flex-basis: auto;
		align-items: center;
		gap: 24px;
	}

	.site-nav__list {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 20px;
		border-top: 0;
	}

	.site-nav__list li {
		border-bottom: 0;
	}

	.link-nav,
	.site-nav .link-pending {
		font-size: 0.9375rem;
		white-space: nowrap;
	}

	/* レビュー表示：バッジをラベルの下に置き、実リンクと同じ横幅に収める。 */
	.site-nav .link-pending {
		flex-direction: column;
		flex-wrap: nowrap;
		justify-content: center;
		gap: 0;
		line-height: 1.4;
	}

	.site-nav .link-pending__badge {
		padding: 0 4px;
		font-size: 0.625rem;
		line-height: 1.4;
	}

	.site-nav .link-pending--primary {
		padding: 4px 20px;
	}

	.site-nav__cta {
		margin: 0;
		flex-shrink: 0;
	}
}

/* ---------- Sections ---------- */

.section {
	padding-block: var(--section-space);
}

.section--muted {
	background: var(--color-surface);
}

.section__title {
	font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
	line-height: 1.5;
}

.section__lead,
.section__closing {
	max-width: 40em;
	margin-top: 20px;
}

.section__closing {
	margin-top: 32px;
}

.prose {
	max-width: 40em;
	margin-top: 20px;
}

.prose > * + * {
	margin-top: 1em;
}

/* ---------- H01 Hero ---------- */

.hero__body {
	max-width: 44em;
}

.hero__eyebrow {
	margin-bottom: 12px;
	color: var(--color-text-muted);
	font-weight: 700;
}

/* H1：320〜767px 32〜36px、768〜1023px 40px、1024px以上 44〜48px。日本語は文節で折り返す。 */
.hero__title {
	font-size: clamp(2rem, 1.6rem + 1.6vw, 2.25rem);
	line-height: 1.4;
	word-break: auto-phrase;
	text-wrap: pretty;
}

@media (min-width: 48em) {
	.hero__title {
		font-size: 2.5rem;
	}
}

@media (min-width: 64em) {
	.hero__title {
		font-size: clamp(2.75rem, 2.136rem + 0.96vw, 3rem);
	}
}

.hero__lead {
	max-width: 40em;
	margin-top: 24px;
}

.hero__lead > * + * {
	margin-top: 0.75em;
}

@media (max-width: 47.9375em) {
	.hero__cta .button,
	.hero__cta .link-pending {
		width: 100%;
	}
}

/* 装飾図：文字・情報を持たない。狭幅 160px、広幅 300px。 */
.hero__figure {
	height: 160px;
	margin-top: 40px;
	padding: 12px;
	background: var(--color-surface);
	border-radius: 8px;
}

.hero__svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hero__lines line {
	stroke: var(--color-text-muted);
	stroke-width: 2;
	stroke-linecap: round;
}

.hero__dots circle {
	fill: var(--color-text);
}

.hero__dots .is-accent {
	fill: var(--color-accent);
}

@media (min-width: 64em) {
	.hero--has-figure .hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 40px;
		align-items: center;
	}

	.hero--has-figure .hero__body {
		max-width: none;
	}

	.hero__figure {
		height: 300px;
		margin-top: 0;
	}
}

/* ---------- Cards ---------- */

.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--card-gap);
	margin-top: 32px;
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.card {
	display: flex;
	flex-direction: column;
	padding: 24px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
}

.section:not(.section--muted) .card {
	background: var(--color-surface);
	border-color: transparent;
}

.card__title {
	font-size: 1.125rem;
	line-height: 1.6;
}

.card__body {
	margin-top: 12px;
}

.card__link {
	margin-top: auto;
	padding-top: 16px;
}

/* ---------- H03 Flow ---------- */

.flow {
	margin-top: 40px;
	padding: 24px;
	border: 1px solid var(--color-border);
}

.flow__title {
	font-size: 1.125rem;
	line-height: 1.6;
}

.flow__list {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 20px;
	padding: 0;
	list-style: none;
	counter-reset: flow;
}

.flow__item {
	position: relative;
	padding: 10px 16px;
	border: 2px solid var(--color-text);
	font-weight: 700;
	text-align: center;
	counter-increment: flow;
}

.flow__item::before {
	content: counter(flow) ". ";
	font-weight: 400;
	color: var(--color-text-muted);
}

/* 装飾の矢印（下向き）。読み上げ対象のテキストは持たない。 */
.flow__item:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -21px;
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--color-text);
	border-bottom: 2px solid var(--color-text);
	transform: translateX(-50%) rotate(45deg);
}

.flow__note {
	margin-top: 20px;
	font-size: 0.9375rem;
	color: var(--color-text-muted);
}

@media (min-width: 64em) {
	.flow__list {
		flex-direction: row;
		gap: 28px;
	}

	.flow__item {
		flex: 1 1 0;
	}

	/* 右向き矢印 */
	.flow__item:not(:last-child)::after {
		left: auto;
		right: -21px;
		bottom: auto;
		top: 50%;
		transform: translateY(-50%) rotate(-45deg);
	}
}

/* ---------- H05 Editorial ---------- */

@media (min-width: 64em) {
	.editorial {
		display: grid;
		grid-template-columns: 5fr 7fr;
		gap: 48px;
		align-items: start;
	}

	.editorial__body {
		margin-top: 0;
	}
}

.editorial__subtitle {
	margin-top: 2em;
	font-size: 1.25rem;
	line-height: 1.6;
}

/* ---------- H08 Contact ---------- */

.section--contact {
	border-top: 1px solid var(--color-border);
}

@media (min-width: 64em) {
	.contact {
		display: grid;
		grid-template-columns: 7fr 5fr;
		gap: 48px;
		align-items: center;
	}

	.contact__cta {
		margin-top: 0;
		justify-content: flex-end;
	}
}

/* ---------- Footer ---------- */

.site-footer {
	padding-block: 40px;
	background: var(--color-surface);
	border-top: 1px solid var(--color-border);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.site-footer__company {
	font-weight: 700;
}

.site-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list--sub .link-text,
.site-footer__list--sub .link-pending {
	font-weight: 400;
	font-size: 0.9375rem;
}

/* ---------- Generic entry (index.php) ---------- */

.entry + .entry {
	margin-top: 48px;
}

.entry__content {
	max-width: 40em;
	margin-top: 20px;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
	padding-block: 12px;
	border-bottom: 1px solid var(--color-border);
	font-size: 0.875rem;
}

.breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb__item {
	display: inline-flex;
	align-items: center;
}

/* 区切りは装飾。読み上げ対象のテキストを持たない。 */
.breadcrumb__item + .breadcrumb__item::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-inline: 12px;
	border-top: 1.5px solid var(--color-text-muted);
	border-right: 1.5px solid var(--color-text-muted);
	transform: rotate(45deg);
}

.breadcrumb a {
	display: inline-flex;
	align-items: center;
	min-height: var(--control-min);
	text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
	color: var(--color-text-muted);
}

/* ---------- Contact page ---------- */

/* 本文はパンくず・ヘッダーと同じ左端にそろえ、読みやすい幅に制限する。 */
.contact-page > * {
	max-width: 48em;
}

.contact-page__title {
	font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
	line-height: 1.4;
}

.contact-page__intro {
	margin-top: 16px;
}

.contact-guidance {
	margin-top: 32px;
	padding: 16px 20px;
	background: var(--color-surface);
	border-left: 4px solid var(--color-text);
	font-weight: 700;
}

.contact-notice {
	margin-top: 16px;
	padding: 12px 16px;
	border: 2px solid var(--color-text);
	font-weight: 700;
}

.contact-notice--alert {
	margin-top: 0;
}

.contact-status {
	margin-top: 24px;
}

.contact-status:empty {
	display: none;
}

.contact-status:focus {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
}

.contact-status > .review-note {
	margin-bottom: 0;
}

.error-summary {
	padding: 16px 20px;
	border: 3px solid var(--color-accent);
	background: var(--color-bg);
}

.error-summary__title {
	font-size: 1.125rem;
	line-height: 1.6;
}

.error-summary__list {
	margin-top: 8px;
	padding-left: 1.25em;
}

.error-summary__list a {
	color: var(--color-accent);
	font-weight: 700;
	text-decoration: underline;
}

.contact-form {
	margin-top: 32px;
}

.form-field + .form-field,
.form-field + .form-check,
.form-check + .form-check {
	margin-top: 28px;
}

.form-field__label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-weight: 700;
}

/* 必須・任意は文字で示し、色だけに依存しない。 */
.form-badge {
	display: inline-block;
	padding: 0 8px;
	border: 1px solid var(--color-text-muted);
	color: var(--color-text-muted);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.7;
}

.form-badge--required {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-on-accent);
}

/* 入力文字は16px以上（iOSの自動拡大も避ける）。 */
.form-input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 8px;
	padding: 10px 12px;
	background: var(--color-bg);
	color: var(--color-text);
	border: 2px solid var(--color-border);
	border-radius: 0;
	font: inherit;
	font-size: max(1rem, 16px);
	line-height: 1.6;
}

.form-input--textarea {
	min-height: 12em;
	resize: vertical;
}

.form-input:focus-visible,
.form-check__input:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}

/* エラーは文字の説明・太い枠・項目の左線で示す（色だけにしない）。 */
.has-error {
	padding-left: 12px;
	border-left: 4px solid var(--color-accent);
}

.has-error .form-input {
	border-color: var(--color-accent);
	border-width: 3px;
}

.form-field__error {
	margin-top: 4px;
	color: var(--color-accent);
	font-weight: 700;
}

.form-field__error::before {
	content: "エラー：";
}

.form-check__link {
	margin: 0 0 4px;
}

.form-check__row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 4px;
}

.form-check__input {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin: 10px 0 0;
	accent-color: var(--color-text);
}

.form-check__label {
	display: block;
	min-height: var(--control-min);
	padding-block: 8px;
	cursor: pointer;
}

.form-check__label .form-badge {
	margin-left: 4px;
	vertical-align: 0.1em;
}

.form-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	margin-top: 40px;
}

@media (min-width: 48em) {
	.form-actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
}

.form-actions .button {
	min-height: 52px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* 送信停止中：無効表示。理由は直前の案内文で示す（色だけにしない）。 */
.form-actions__submit:disabled {
	background: var(--color-surface);
	border: 2px dashed var(--color-text-muted);
	color: var(--color-text-muted);
	cursor: not-allowed;
	text-decoration: none;
}

.button--review {
	background: var(--color-review-bg);
	border: 2px dashed var(--color-review-border);
	color: var(--color-review-text);
}

.button--review:hover {
	text-decoration: underline;
}

.form-actions .button[aria-disabled="true"] {
	cursor: progress;
}

/* ---------- CF7（Local メール捕捉検証画面のみ。CF7 の CSS は読み込まない） ---------- */

.wpcf7 .hidden-fields-container {
	margin: 0;
	padding: 0;
	border: 0;
}

/*
 * CF7 の読み上げ用領域（role="status"）。通常は読み上げ専用で画面に出さず、
 * 入力エラー時だけ第一段階と同じ見た目のエラー概要として表示する（各欄へのリンク付き）。
 */
.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wpcf7:has(form.invalid) .screen-reader-response {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip-path: none;
	white-space: normal;
	margin-top: 24px;
	padding: 16px 20px;
	border: 3px solid var(--color-accent);
}

.wpcf7 .screen-reader-response:focus {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
}

.wpcf7 .screen-reader-response p {
	font-size: 1.125rem;
	font-weight: 700;
}

.wpcf7 .screen-reader-response ul {
	margin-top: 8px;
	padding-left: 1.25em;
}

.wpcf7 .screen-reader-response ul:empty {
	display: none;
}

.wpcf7 .screen-reader-response a {
	color: var(--color-accent);
	font-weight: 700;
	text-decoration: underline;
}

.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-not-valid.form-input {
	border-color: var(--color-accent);
	border-width: 3px;
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 4px;
	color: var(--color-accent);
	font-weight: 700;
}

.wpcf7-not-valid-tip::before {
	content: "エラー：";
}

.form-field:has(.wpcf7-not-valid),
.form-check:has(.wpcf7-not-valid-tip) {
	padding-left: 12px;
	border-left: 4px solid var(--color-accent);
}

.wpcf7-acceptance .wpcf7-list-item {
	display: block;
	margin: 0;
}

.wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: var(--control-min);
	padding-block: 8px;
	cursor: pointer;
}

.wpcf7-acceptance .form-check__input {
	margin-top: 4px;
}

.wpcf7-acceptance .form-badge {
	margin-left: 4px;
	vertical-align: 0.1em;
}

.wpcf7-response-output {
	margin-top: 24px;
	padding: 12px 16px;
	border: 2px solid var(--color-text);
	font-weight: 700;
}

.wpcf7-response-output:empty {
	display: none;
}

.wpcf7-form.sent .wpcf7-response-output {
	border-style: dashed;
	border-color: var(--color-review-border);
	background: var(--color-review-bg);
	color: var(--color-review-text);
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
	border-color: var(--color-accent);
}

.wpcf7-spinner {
	display: none;
}

/* Return to this page top; native anchor also works without JavaScript. */
html{scroll-behavior:smooth}.back-to-top{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:64px;min-height:64px;padding:10px;background:#202124;color:#fff!important;border:1px solid #fff;text-decoration:none;font-size:12px;font-weight:600;line-height:1.4;box-shadow:0 2px 12px #0002}.back-to-top:hover{background:#b4232c}.back-to-top:focus-visible{outline:3px solid #b4232c;outline-offset:3px}.back-to-top__arrow{font-size:22px;line-height:1}.site-footer{padding-bottom:110px}
@media(max-width:767px){.back-to-top{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));min-width:52px;min-height:52px;padding:7px;font-size:11px}.site-footer{padding-bottom:90px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
