/*
Theme Name: 対馬地鶏 ブランド
Theme URI: https://tsushimajidori.example/
Author: 対馬地鶏
Description: 対馬地鶏ブランド向けブロックテーマ。サイドナビ・縦書きヒーローなど、ファームサイトとは異なるレイアウト構成。
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsushima-jidori
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, featured-images, translation-ready
*/

.wp-block-post-terms.tj-tags a {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border: 1px solid var(--wp--preset--color--brand, #b33a3a);
	color: var(--wp--preset--color--brand, #b33a3a) !important;
	font-size: 0.75rem !important;
	line-height: 1.4;
	text-decoration: none;
	border-radius: 999px;
}

.wp-block-post-terms.tj-tags a:hover {
	background: color-mix(in srgb, var(--wp--preset--color--brand, #b33a3a) 12%, transparent);
}

.tj-form {
	max-width: 40rem;
	margin-inline: auto;
}

.tj-form__row {
	display: grid;
	gap: 1rem 1.5rem;
	margin-bottom: 1.25rem;
}

.tj-form__row--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
	.tj-form__row--2 {
		grid-template-columns: 1fr;
	}
}

.tj-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.tj-form input[type="text"],
.tj-form input[type="email"],
.tj-form input[type="tel"],
.tj-form input[type="url"],
.tj-form select,
.tj-form textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--body, #3d342b) 18%, transparent);
	border-radius: 0.5rem;
	background: #fff;
	font: inherit;
}

.tj-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.tj-form .wpcf7-not-valid-tip {
	font-size: 0.8125rem;
	color: #b33a3a;
	margin-top: 0.35rem;
}

.tj-form .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.85rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
}

.tj-form__field {
	margin-bottom: 0;
}

.tj-form__field--full {
	margin-bottom: 1.25rem;
}

.tj-form__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.tj-form__badge {
	margin-inline-start: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--tj-brand);
}

.tj-form__hint {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.65;
	color: color-mix(in srgb, var(--tj-ink) 55%, transparent);
}

.tj-form__notice {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.65;
}

.tj-form__notice--success {
	background: color-mix(in srgb, var(--tj-brand) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--tj-brand) 28%, transparent);
	color: var(--tj-wine);
}

.tj-form__notice--error {
	background: color-mix(in srgb, #c62828 8%, #fff);
	border: 1px solid color-mix(in srgb, #c62828 24%, transparent);
	color: #5c1010;
}

.tj-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tj-form__field--check {
	margin-bottom: 0.25rem;
}

.tj-form__check {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.875rem;
	line-height: 1.55;
	cursor: pointer;
}

.tj-form__check__row {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.tj-form__check__row input[type="checkbox"] {
	margin-top: 0.2em;
	flex-shrink: 0;
}

.tj-form__actions {
	margin-top: 0.5rem;
}

.tj-form__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	padding: 0.85rem 1.75rem;
	border: none;
	border-radius: 999px;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #fff;
	background: var(--tj-brand);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.tj-form__btn:hover {
	background: color-mix(in srgb, var(--tj-brand) 88%, #000);
	transform: translateY(-1px);
}
