/*
 * FMH Store — page content and blog.
 *
 * Building blocks used in the block-editor content of the store pages
 * (ショップについて, 配送・返品について, よくあるご質問, お問い合わせ, legal pages)
 * and the blog templates (home.html, archive.html, single.html, parts/post-card.html).
 * Every rule hangs off a className set in the editor ("fmh-…"), so plain
 * blocks added by the owner keep the theme defaults.
 */

/* ==========================================================================
   Page heads and text
   ========================================================================== */

.fmh-page-head__inner h1,
.fmh-page-head__inner .wp-block-query-title {
	margin: 0.5rem 0 0;
}

/* Eyebrow under the breadcrumbs (shop, category and search heads). */
.fmh-page-head .wc-block-breadcrumbs + .fmh-eyebrow {
	margin-top: 1.25rem;
}

.fmh-page-head__lead,
.fmh-page-head__inner .wp-block-term-description {
	margin-top: 0.75rem !important;
	max-width: 46em;
}

.fmh-page-head__inner .wp-block-term-description p {
	margin: 0;
}

.fmh-lead {
	font-size: clamp(1rem, 1.5vw, 1.0625rem);
	line-height: 2;
}

.fmh-entry h2[id],
.fmh-entry h3[id] {
	scroll-margin-top: 2rem;
}

/* Section headings inside page content keep the home-page style. */
.fmh-entry .fmh-section-head h2,
.fmh-entry h2.fmh-heading-plain {
	margin: 0.35rem 0 0;
	padding: 0;
	border: 0;
	font-size: var(--wp--preset--font-size--large);
}

.fmh-entry h2.fmh-heading-plain.has-x-large-font-size {
	font-size: var(--wp--preset--font-size--x-large);
}

.fmh-entry > .fmh-block {
	margin-block-start: var(--wp--preset--spacing--x-large);
}

.fmh-entry h3 {
	margin-top: 2em;
	margin-bottom: 0.5em;
}

.fmh-entry ul.wp-block-list:not([class*="fmh-"]),
.fmh-entry ol.wp-block-list {
	padding-left: 1.4em;
}

.fmh-entry li + li {
	margin-top: 0.35em;
}

/* ==========================================================================
   Anchor chips at the top of long pages
   ========================================================================== */

.fmh-anchor-nav {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.fmh-entry .fmh-anchor-nav li {
	margin: 0;
}

.fmh-anchor-nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--main);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	text-decoration: none;
	transition: border-color var(--wp--custom--transition);
}

/* In-page jump links: a small arrow (not a dropdown chevron). */
.fmh-anchor-nav a::after {
	content: "↓";
	font-size: 0.85em;
	line-height: 1;
	color: var(--wp--preset--color--secondary);
}

.fmh-anchor-nav a:hover {
	border-color: var(--wp--preset--color--main);
	color: var(--wp--preset--color--main);
}

/* ==========================================================================
   Tables (shop information, delivery, legal pages, comparisons)
   ========================================================================== */

.wp-block-table.fmh-table {
	margin-left: 0;
	margin-right: 0;
}

.wp-block-table.fmh-table table {
	width: 100%;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border-light);
	border-radius: 0;
	border-collapse: collapse;
	background: transparent;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.8;
}

.wp-block-table.fmh-table th,
.wp-block-table.fmh-table td {
	padding: 0.95rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border-light);
	text-align: left;
	vertical-align: top;
}

.wp-block-table.fmh-table tbody th {
	width: 30%;
	min-width: 7.5em;
	font-weight: 500;
	color: var(--wp--preset--color--main);
	background: var(--wp--preset--color--tertiary);
}

.wp-block-table.fmh-table--compare thead th {
	background: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--main);
	border-bottom: 1px solid var(--wp--preset--color--border-light);
	font-weight: 500;
	white-space: nowrap;
}

.wp-block-table.fmh-table--compare tbody td:first-child {
	font-weight: 500;
}

@media (min-width: 600px) {
	.wp-block-table.fmh-table--compare tbody td:first-child {
		white-space: nowrap;
	}
}

@media (max-width: 599px) {
	.wp-block-table.fmh-table:not(.fmh-table--compare) tr,
	.wp-block-table.fmh-table:not(.fmh-table--compare) th,
	.wp-block-table.fmh-table:not(.fmh-table--compare) td {
		display: block;
		width: auto;
	}

	.wp-block-table.fmh-table:not(.fmh-table--compare) tbody th {
		padding: 0.6rem 0.9rem;
		border-bottom: 0;
	}

	.wp-block-table.fmh-table:not(.fmh-table--compare) td {
		padding: 0.75rem 0.9rem 1rem;
	}

	.wp-block-table.fmh-table--compare th,
	.wp-block-table.fmh-table--compare td {
		padding: 0.75rem;
	}

	/* .fmh-table--stack: each row becomes a small card on phones. */
	.wp-block-table.fmh-table--stack thead {
		display: none;
	}

	.wp-block-table.fmh-table--stack table {
		border-top: 0;
	}

	.wp-block-table.fmh-table--stack tr,
	.wp-block-table.fmh-table--stack td {
		display: block;
		width: auto;
	}

	.wp-block-table.fmh-table--stack tr {
		padding: 0.9rem 0;
		border-bottom: 1px solid var(--wp--preset--color--border-light);
	}

	.wp-block-table.fmh-table--stack tr:first-child {
		border-top: 1px solid var(--wp--preset--color--border-light);
	}

	.wp-block-table.fmh-table--stack td {
		padding: 0;
		border: 0;
	}

	.wp-block-table.fmh-table--stack td:first-child {
		margin-bottom: 0.2rem;
		font-size: var(--wp--preset--font-size--base);
		font-weight: 700;
	}

	.wp-block-table.fmh-table--stack td:last-child {
		margin-top: 0.2rem;
		color: var(--wp--preset--color--secondary);
	}

	.wp-block-table.fmh-table--stack td:last-child::before {
		content: "→ ";
	}
}

/* ==========================================================================
   FAQ (core/details inside a .fmh-faq group)
   ========================================================================== */

.fmh-faq > .wp-block-details {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--border-light);
}

.fmh-faq > .wp-block-details > summary {
	list-style: none;
	position: relative;
	padding: 1.15rem 2.75rem 1.15rem 2.25rem;
	font-weight: 500;
	line-height: 1.7;
	cursor: pointer;
	transition: color var(--wp--custom--transition);
}

.fmh-faq > .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.fmh-faq > .wp-block-details > summary::before,
.fmh-faq > .wp-block-details > summary + *::before {
	position: absolute;
	left: 0.2rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
}

.fmh-faq > .wp-block-details > summary::before {
	content: "Q";
	top: 1.15rem;
	line-height: 1.7;
	color: var(--wp--preset--color--main);
}

.fmh-faq > .wp-block-details > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0.6rem;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform var(--wp--custom--transition);
}

.fmh-faq > .wp-block-details[open] > summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.fmh-faq > .wp-block-details > summary:hover {
	color: var(--wp--preset--color--primary);
}

.fmh-faq > .wp-block-details > :not(summary) {
	position: relative;
	margin: 0 0 1.25rem;
	padding-left: 2.25rem;
	padding-right: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.9;
}

.fmh-faq > .wp-block-details > summary + *::before {
	content: "A";
	top: 0;
	line-height: 1.75;
	color: var(--wp--preset--color--secondary);
}

/* ==========================================================================
   Notes and call-to-action box
   ========================================================================== */

.fmh-note {
	padding: 1rem 1.25rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--tertiary);
}

.fmh-note > * {
	margin: 0;
}

.fmh-note > * + * {
	margin-top: 0.5rem;
}

/* Placeholder / draft notices (【要確認】). */
.fmh-note--todo {
	background: var(--wp--preset--color--primary-accent);
	border-left: 3px solid var(--wp--preset--color--primary);
}

.fmh-note--todo strong {
	color: var(--wp--preset--color--primary);
}

.fmh-entry > .fmh-cta-box {
	margin-block-start: var(--wp--preset--spacing--x-large);
}

.fmh-cta-box {
	padding: var(--wp--preset--spacing--large) var(--wp--preset--spacing--medium);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--tertiary);
	text-align: center;
}

.fmh-cta-box > * {
	margin: 0;
}

.fmh-cta-box__title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--heading);
}

.fmh-cta-box > p + p {
	margin-top: 0.5rem;
}

.fmh-cta-box .wp-block-buttons {
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* ==========================================================================
   Card rows (link, contact, price, payment, value)
   ========================================================================== */

.fmh-link-card,
.fmh-contact-card,
.fmh-price-card,
.fmh-info-card {
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
}

.fmh-link-card > *,
.fmh-contact-card > *,
.fmh-price-card > *,
.fmh-info-card > *,
.fmh-value-card > * {
	margin: 0;
}

/* Link cards: the whole card is the link. */
.fmh-link-card {
	position: relative;
	padding: 1.25rem 3rem 1.25rem 1.25rem;
	transition: border-color var(--wp--custom--transition);
}

.fmh-link-card:hover {
	border-color: var(--wp--preset--color--main);
}

.fmh-link-card::after {
	content: "→";
	position: absolute;
	top: 50%;
	right: 1.25rem;
	transform: translateY(-50%);
	color: var(--wp--preset--color--secondary);
	transition: transform var(--wp--custom--transition);
}

.fmh-link-card:hover::after {
	transform: translate(3px, -50%);
}

.fmh-link-card__title {
	font-weight: 700;
	line-height: 1.6;
}

.fmh-link-card__title a {
	color: var(--wp--preset--color--main);
	text-decoration: none;
}

.fmh-link-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.fmh-link-card > * + * {
	margin-top: 0.3rem;
	line-height: 1.7;
}

/* Contact cards with line icons */
.fmh-contact-card {
	padding: 1.5rem;
}

.fmh-contact-card__label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--secondary);
}

.fmh-contact-card__label::before {
	content: "";
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	background: var(--wp--preset--color--main);
	-webkit-mask: var(--fmh-icon) center / contain no-repeat;
	mask: var(--fmh-icon) center / contain no-repeat;
}

.fmh-contact-card--mail {
	--fmh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E");
}

.fmh-contact-card--tel {
	--fmh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.5 4.5-2 1.25a11 11 0 0 0 6.25 6.25L15.5 14l4.5 1.5V19a1.5 1.5 0 0 1-1.5 1.5A15.5 15.5 0 0 1 3.5 5.5 1.5 1.5 0 0 1 5 4Z'/%3E%3C/svg%3E");
}

.fmh-contact-card .fmh-contact-card__value {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.5;
}

.fmh-contact-card > p:last-child {
	margin-top: 0.5rem;
	line-height: 1.7;
}

/* Shipping price cards */
.fmh-price-card {
	padding: 1.5rem 1.25rem;
	text-align: center;
}

.fmh-price-card--accent {
	background: var(--wp--preset--color--primary-accent);
	border-color: transparent;
}

.fmh-price-card__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--secondary);
}

.fmh-price-card .fmh-price-card__value {
	margin-top: 0.35rem;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.fmh-price-card__value span {
	margin-left: 0.15em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.fmh-price-card--accent .fmh-price-card__value {
	color: var(--wp--preset--color--primary);
}

/* Payment method cards */
.fmh-info-card {
	padding: 1.5rem;
}

.fmh-entry .fmh-info-card h3 {
	margin: 0 0 0.75rem;
}

.fmh-entry .fmh-info-card ul {
	padding-left: 1.2em;
	line-height: 1.8;
}

/* About: value cards */
.fmh-value-card {
	padding: 1.75rem 1.5rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--tertiary);
}

.fmh-value-card__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--secondary);
}

.fmh-entry .fmh-value-card h3 {
	margin: 0.5rem 0 0.75rem;
}

.fmh-value-card p:last-child {
	line-height: 1.9;
}

/* Lists with check marks */
.fmh-check-list {
	list-style: none;
	padding: 0;
}

.fmh-check-list li {
	position: relative;
	padding-left: 1.75rem;
}

.fmh-check-list li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0.3rem;
	width: 0.7em;
	height: 0.4em;
	border-left: 1.5px solid var(--wp--preset--color--primary);
	border-bottom: 1.5px solid var(--wp--preset--color--primary);
	transform: rotate(-45deg);
}

/* ==========================================================================
   Square images: About intro, home brand story
   ========================================================================== */

.fmh-about-intro .wp-block-image img,
.fmh-story__media .wp-block-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.fmh-story__media .wp-block-image,
.fmh-about-intro .wp-block-image {
	max-width: 480px;
}

@media (min-width: 782px) {
	.fmh-about-intro .wp-block-image {
		margin-left: auto;
	}
}

@media (max-width: 781px) {
	.fmh-about-intro .wp-block-image,
	.fmh-story__media .wp-block-image {
		max-width: 420px;
	}
}

.fmh-story__text h2 {
	margin: 0.35rem 0 0;
}

.fmh-story__text > p:not(.fmh-eyebrow):not(.fmh-more-link) {
	line-height: 2;
}

/* ==========================================================================
   Blog: post cards, archive grid, single post
   ========================================================================== */

.fmh-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.fmh-post-card__media {
	margin: 0 0 1rem;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--tertiary);
}

.fmh-post-card__media img {
	transition: transform 0.5s ease;
}

.fmh-post-card:hover .fmh-post-card__media img {
	transform: scale(1.03);
}

.fmh-post-card__meta {
	gap: 0.35rem 0.75rem;
	align-items: center;
	margin-bottom: 0.5rem;
}

.fmh-post-card__meta .wp-block-post-date {
	color: var(--wp--preset--color--secondary);
	letter-spacing: 0.06em;
}

.fmh-post-card__meta .wp-block-post-date a {
	color: inherit;
	text-decoration: none;
}

.fmh-post-card__cat a {
	display: inline-block;
	padding: 0.05rem 0.65rem;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--main);
	letter-spacing: 0.04em;
	text-decoration: none;
	line-height: 1.7;
}

.fmh-post-card__cat a:hover {
	border-color: var(--wp--preset--color--main);
	color: var(--wp--preset--color--main);
}

.fmh-post-card__cat .wp-block-post-terms__separator {
	display: none;
}

.fmh-post-card__title {
	margin: 0;
	line-height: 1.65;
	font-weight: 700;
}

.fmh-post-card__excerpt {
	margin-top: 0.5rem;
}

.fmh-post-card__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
	line-height: 1.8;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fmh-post-card__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.fmh-post-grid .wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--x-large);
}

.fmh-empty {
	padding: var(--wp--preset--spacing--large) 0;
	text-align: center;
	color: var(--wp--preset--color--secondary);
}

@media (max-width: 781px) {
	.fmh-post-grid .wp-block-post-template.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Home and "最新の記事": compact rows (thumbnail + title) on phones. */
	.fmh-journal .fmh-post-card {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 0 1rem;
		align-items: start;
	}

	.fmh-journal .fmh-post-card__media {
		margin: 0;
	}

	.fmh-journal .fmh-post-card__media,
	.fmh-journal .fmh-post-card__media a,
	.fmh-journal .fmh-post-card__media img {
		aspect-ratio: 1 !important;
		height: auto !important;
	}

	.fmh-journal .fmh-post-card__meta {
		margin-bottom: 0.25rem;
	}

	.fmh-journal .fmh-post-card__title {
		font-size: var(--wp--preset--font-size--small) !important;
		line-height: 1.6;
	}

	.fmh-journal .fmh-post-card__excerpt {
		display: none;
	}
}

/* Single post */
.fmh-article__title {
	margin: 0;
	line-height: 1.5;
}

.fmh-article__image img {
	border-radius: var(--wp--custom--radius--card);
}

.fmh-article .fmh-entry > .wp-block-woocommerce-product-collection {
	margin-block-start: 1.5rem;
}

.fmh-article__foot {
	margin-top: var(--wp--preset--spacing--large) !important;
	padding-top: var(--wp--preset--spacing--medium);
	border-top: 1px solid var(--wp--preset--color--border-light);
	gap: 1rem 1.5rem;
	align-items: center;
}

.fmh-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.fmh-tag-list .wp-block-post-terms__separator {
	display: none;
}

.fmh-tag-list a {
	display: inline-block;
	padding: 0.2rem 0.75rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--main);
	text-decoration: none;
	letter-spacing: 0.04em;
}

.fmh-tag-list a::before {
	content: "#";
	margin-right: 0.15em;
	color: var(--wp--preset--color--secondary);
}

.fmh-tag-list a:hover {
	background: var(--wp--preset--color--border-light);
	color: var(--wp--preset--color--main);
}

/* ==========================================================================
   お問い合わせフォーム ([fmh_contact_form], inc/contact-form.php)
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fmh-contact {
	scroll-margin-top: 1.5rem;
}

.fmh-contact__form {
	padding: clamp(1.25rem, 4vw, 2.25rem);
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
}

.fmh-contact__form > * {
	margin: 0;
}

.fmh-contact__form > * + * {
	margin-top: 1.75rem;
}

.fmh-contact__intro {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
}

.fmh-contact__intro .fmh-field__req {
	margin: 0 0.15em 0 0;
}

/* No "margin" shorthand here: the form's "> * + *" rule sets the gap between fields. */
.fmh-field {
	margin-inline: 0;
	margin-bottom: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.fmh-field__label {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.5rem;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.6;
}

.fmh-field__req,
.fmh-field__opt {
	display: inline-block;
	padding: 0.1rem 0.45rem;
	border-radius: 3px;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.5;
	vertical-align: 0.1em;
}

.fmh-field__req {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.fmh-field__opt {
	background: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--secondary);
}

.fmh-field__hint {
	margin: -0.15rem 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.7;
	color: var(--wp--preset--color--secondary);
}

.fmh-field__input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.875rem;
	color: var(--wp--preset--color--main);
	line-height: 1.6;
	font-family: inherit;
}

.fmh-field__input--short {
	max-width: 14rem;
}

textarea.fmh-field__input {
	min-height: 11rem;
	resize: vertical;
}

.fmh-field__input[aria-invalid="true"] {
	border-color: var(--wp--preset--color--primary);
	background-color: #FFFBFA;
}

.fmh-field__error {
	display: flex;
	gap: 0.4rem;
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	line-height: 1.6;
	color: var(--wp--preset--color--primary);
}

.fmh-field__error::before {
	content: "!";
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.15rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
}

/* Radio "chips" and the consent checkbox */
.fmh-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.fmh-choice {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 3rem;
	padding: 0.6rem 0.875rem;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--wp--custom--radius--control);
	background: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	cursor: pointer;
	transition: border-color var(--wp--custom--transition), background-color var(--wp--custom--transition);
}

.fmh-choice:hover {
	border-color: var(--wp--preset--color--main-accent);
}

.fmh-choice:has(input:checked) {
	border-color: var(--wp--preset--color--main);
	background: var(--wp--preset--color--tertiary);
	font-weight: 500;
}

.fmh-choice:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--main);
	outline-offset: 2px;
}

.fmh-choice input {
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	accent-color: var(--wp--preset--color--main);
}

.fmh-choice input:focus-visible {
	outline: none;
}

.fmh-field--choices[aria-describedby] .fmh-choice {
	border-color: var(--wp--preset--color--primary);
}

.fmh-field--consent {
	padding: 1rem 1.125rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--tertiary);
}

.fmh-field--consent .fmh-field__hint {
	margin: 0 0 0.75rem;
}

.fmh-choice--consent {
	border-color: var(--wp--preset--color--border-light);
}

.fmh-choice--consent .fmh-field__req {
	margin-left: 0.5rem;
	white-space: nowrap;
}

.fmh-choice--consent:has(input[aria-invalid="true"]) {
	border-color: var(--wp--preset--color--primary);
}

/* Honeypot: never visible, never focusable. */
.fmh-hp {
	position: absolute !important;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fmh-contact__submit {
	text-align: center;
}

.fmh-contact__submit .fmh-field__hint {
	margin: 0.75rem 0 0;
}

.fmh-contact__button {
	min-width: min(100%, 16rem);
	min-height: 3.25rem;
	cursor: pointer;
	font-size: var(--wp--preset--font-size--base);
	font-family: inherit;
}

/* Result boxes (error summary / success) */
.fmh-contact__result {
	margin: 0 0 1.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--wp--custom--radius--card);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.8;
}

/* Focused by script (tabindex=-1) so screen readers announce it; the box
   itself is the visual cue, so no extra focus ring. */
.fmh-contact__result:focus {
	outline: none;
}

.fmh-contact__result > * {
	margin: 0;
}

.fmh-contact__result > * + * {
	margin-top: 0.5rem;
}

.fmh-contact__result-title {
	font-size: var(--wp--preset--font-size--base);
	font-weight: 700;
}

.fmh-contact__result.is-error {
	border-left: 3px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary-accent);
}

.fmh-contact__result.is-error .fmh-contact__result-title {
	color: var(--wp--preset--color--primary);
}

.fmh-contact__result.is-error ul {
	padding-left: 1.25rem;
}

.fmh-contact__result.is-error a {
	color: var(--wp--preset--color--main);
}

.fmh-contact__result.is-success {
	padding: 2rem 1.5rem;
	border: 1px solid #CFE3D6;
	background: #F2F8F4;
	text-align: center;
}

.fmh-contact__result.is-success .fmh-contact__result-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--wp--preset--font-size--medium);
}

.fmh-contact__result.is-success .fmh-contact__result-title::before {
	content: "";
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: #2E6B4A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 60% no-repeat;
}

.fmh-contact__again {
	padding-top: 0.5rem;
}

@media (max-width: 600px) {
	.fmh-choices {
		grid-template-columns: 1fr;
	}

	.fmh-field__input--short {
		max-width: none;
	}

	.fmh-contact__button {
		width: 100%;
	}
}

/* マイアカウント: the guest/registration note is for visitors only. */
.logged-in .fmh-account-note {
	display: none;
}
