/* TATATA Contact Form - front */
.tcf {
	--tcf-accent: #000000;       /* ボタン・ステップバーなどのメインカラー（管理画面で変更可） */
	--tcf-text: #000000;
	--tcf-muted: #6b6b6b;
	--tcf-line: #c4c1bf;         /* サイト背景(#e1dfde)上の罫線 */
	--tcf-field-bg: #ffffff;
	--tcf-placeholder: #aaaaaa;
	--tcf-error: #c0392b;
	--tcf-radius: 4px;

	max-width: 600px;
	margin: 0 auto;
	color: var(--tcf-text);
	font-size: 16px;
	line-height: 1.6;
	scroll-margin-top: 100px;
}

.tcf *,
.tcf *::before,
.tcf *::after {
	box-sizing: border-box;
}

.tcf [hidden] {
	display: none !important;
}

.tcf a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tcf a:hover {
	opacity: 0.7;
}

/* ---------- ステップバー ---------- */
.tcf .tcf-steps {
	display: flex;
	justify-content: center;
	margin: 0 0 48px;
	padding: 0;
	list-style: none;
}

.tcf .tcf-steps__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 1 140px;
	margin: 0;
	padding: 0;
	color: var(--tcf-muted);
	font-size: 13px;
	letter-spacing: 0.05em;
	list-style: none;
}

.tcf .tcf-steps__item::before {
	content: none;
}

.tcf .tcf-steps__item + .tcf-steps__item::after {
	content: "";
	position: absolute;
	top: 15px;
	left: calc(-50% + 22px);
	right: calc(50% + 22px);
	height: 1px;
	background: var(--tcf-line);
}

.tcf .tcf-steps__item.is-current::after,
.tcf .tcf-steps__item.is-done::after {
	background: var(--tcf-accent);
}

.tcf .tcf-steps__num {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-bottom: 6px;
	border: 1px solid var(--tcf-line);
	border-radius: 50%;
	background: transparent;
	font-family: "Oswald", sans-serif;
	font-weight: 300;
	font-size: 15px;
	line-height: 1;
}

.tcf .tcf-steps__item.is-current,
.tcf .tcf-steps__item.is-done {
	color: var(--tcf-text);
}

.tcf .tcf-steps__item.is-current .tcf-steps__num {
	border-color: var(--tcf-accent);
	background: var(--tcf-accent);
	color: #fff;
}

.tcf .tcf-steps__item.is-done .tcf-steps__num {
	border-color: var(--tcf-accent);
	color: var(--tcf-accent);
}

.tcf .tcf-steps__item.is-current .tcf-steps__label {
	font-weight: 700;
}

/* ---------- メッセージ ---------- */
.tcf .tcf-intro {
	margin: 0 0 40px;
	font-size: 15px;
	line-height: 1.8;
}

.tcf .tcf-intro p {
	margin: 0 0 0.5em;
}

.tcf .tcf-intro p:last-child {
	margin-bottom: 0;
}

.tcf .tcf-alert {
	margin: 0 0 32px;
	padding: 14px 16px;
	border-left: 3px solid var(--tcf-error);
	border-radius: var(--tcf-radius);
	background: var(--tcf-field-bg);
	color: var(--tcf-error);
	font-size: 15px;
	font-weight: 500;
}

/* ---------- 項目 ---------- */
.tcf .tcf-field {
	margin: 0 0 28px;
}

.tcf .tcf-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.tcf .tcf-label {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
	padding: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

.tcf .tcf-badge {
	display: inline-block;
	padding: 0 6px;
	border: 1px solid currentColor;
	border-radius: 2px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.05em;
}

.tcf .tcf-badge--required {
	border-color: var(--tcf-accent);
	background: var(--tcf-accent);
	color: #fff;
}

.tcf .tcf-badge--optional {
	color: var(--tcf-muted);
}

.tcf .tcf-note {
	margin: -4px 0 10px;
	color: var(--tcf-muted);
	font-size: 13px;
}

.tcf .tcf-control {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 16px;
	border: 1px solid transparent;
	border-radius: var(--tcf-radius);
	background: var(--tcf-field-bg);
	box-shadow: none;
	color: var(--tcf-text);
	font: inherit;
	font-size: 16px; /* iOS の自動ズーム防止 */
	line-height: 1.6;
	transition: border-color 0.15s, box-shadow 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.tcf textarea.tcf-control {
	min-height: 200px;
	resize: vertical;
}

.tcf .tcf-control::placeholder {
	color: var(--tcf-placeholder);
	opacity: 1;
}

.tcf .tcf-control:focus {
	border-color: var(--tcf-accent);
	outline: none;
	box-shadow: 0 0 0 1px var(--tcf-accent);
}

.tcf .tcf-select {
	position: relative;
}

.tcf .tcf-select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 7px;
	height: 7px;
	border-right: 1px solid var(--tcf-text);
	border-bottom: 1px solid var(--tcf-text);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.tcf .tcf-select .tcf-control {
	padding-right: 44px;
}

/* ラジオ・チェックボックス */
.tcf .tcf-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tcf .tcf-choice {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: var(--tcf-radius);
	background: var(--tcf-field-bg);
	cursor: pointer;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
}

.tcf .tcf-choice input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--tcf-accent);
}

.tcf .tcf-choice:has(input:checked) {
	border-color: var(--tcf-accent);
}

.tcf .tcf-choice:has(input:focus-visible) {
	box-shadow: 0 0 0 1px var(--tcf-accent);
}

/* エラー */
.tcf .tcf-error {
	margin: 8px 0 0;
	color: var(--tcf-error);
	font-size: 13px;
	font-weight: 500;
}

.tcf .has-error .tcf-control,
.tcf .has-error .tcf-choice {
	border-color: var(--tcf-error);
}

/* ---------- 個人情報・同意チェック ---------- */
.tcf .tcf-privacy {
	margin: 40px 0 0;
	font-size: 14px;
	line-height: 1.8;
	text-align: center;
}

.tcf .tcf-privacy p {
	margin: 0;
}

.tcf .tcf-field--consent {
	margin: 20px 0 0;
	text-align: center;
}

.tcf .tcf-consent {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 20px;
	border: 1px solid transparent;
	border-radius: var(--tcf-radius);
	background: var(--tcf-field-bg);
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
}

.tcf .tcf-consent__input {
	position: absolute;
	opacity: 0;
	width: 22px;
	height: 22px;
	margin: 0;
	cursor: pointer;
}

.tcf .tcf-consent__box {
	position: relative;
	flex: none;
	width: 22px;
	height: 22px;
	border: 1px solid #8a8786;
	border-radius: 3px;
	background: #fff;
	transition: background-color 0.15s, border-color 0.15s;
}

.tcf .tcf-consent__box::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 7px;
	width: 6px;
	height: 11px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
	opacity: 0;
}

.tcf .tcf-consent__input:checked + .tcf-consent__box {
	border-color: var(--tcf-accent);
	background: var(--tcf-accent);
}

.tcf .tcf-consent__input:checked + .tcf-consent__box::after {
	opacity: 1;
}

.tcf .tcf-consent__input:focus-visible + .tcf-consent__box {
	outline: 2px solid var(--tcf-accent);
	outline-offset: 2px;
}

.tcf .tcf-consent:has(.tcf-consent__input:checked) {
	border-color: var(--tcf-accent);
}

.tcf .has-error .tcf-consent {
	border-color: var(--tcf-error);
}

.tcf .tcf-recaptcha-note {
	margin: 16px 0 0;
	color: var(--tcf-muted);
	font-size: 12px;
	text-align: center;
}

/* ---------- ボタン ---------- */
.tcf .tcf-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 32px 0 0;
}

.tcf .tcf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 14px 24px;
	border: 1px solid var(--tcf-accent);
	border-radius: var(--tcf-radius);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.tcf .tcf-btn--primary {
	background: var(--tcf-accent);
	color: #fff;
}

.tcf .tcf-btn--primary:hover {
	opacity: 0.75;
}

.tcf .tcf-btn--secondary {
	background: transparent;
	color: var(--tcf-accent);
}

.tcf .tcf-btn--secondary:hover {
	background: var(--tcf-field-bg);
}

.tcf .tcf-btn:focus-visible {
	outline: 2px solid var(--tcf-accent);
	outline-offset: 3px;
}

.tcf .tcf-btn:disabled {
	opacity: 0.5;
	cursor: wait;
}

.tcf .tcf-btn.is-loading::before {
	content: "";
	width: 14px;
	height: 14px;
	margin-right: 10px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: tcf-spin 0.7s linear infinite;
}

@keyframes tcf-spin {
	to {
		transform: rotate(360deg);
	}
}

/* 確認画面：戻る・送信を横並び */
.tcf .tcf-actions--confirm {
	flex-wrap: nowrap;
}

.tcf .tcf-actions--confirm .tcf-btn--secondary {
	flex: 0 0 34%;
}

.tcf .tcf-actions--confirm .tcf-btn--primary {
	flex: 1 1 auto;
	width: auto;
}

/* JS の有無で切り替え */
.tcf .tcf-js-only {
	display: none;
}

.tcf.is-js .tcf-js-only {
	display: inline-flex;
}

.tcf.is-js .tcf-nojs-only {
	display: none;
}

/* ハニーポット */
.tcf .tcf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- 確認画面 ---------- */
.tcf .tcf-confirm-title {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.tcf .tcf-confirm-title::before,
.tcf .tcf-confirm-title::after {
	content: none;
}

.tcf .tcf-confirm-title:focus {
	outline: none;
}

.tcf .tcf-view--confirm .tcf-intro {
	margin-bottom: 24px;
	text-align: center;
}

.tcf .tcf-confirm-list {
	margin: 0;
	padding: 8px 24px;
	border-radius: var(--tcf-radius);
	background: var(--tcf-field-bg);
}

.tcf .tcf-confirm-list dt {
	margin: 0;
	padding: 18px 0 4px;
	color: var(--tcf-muted);
	font-size: 13px;
	font-weight: 500;
}

.tcf .tcf-confirm-list dd {
	margin: 0;
	padding: 0 0 18px;
	border-bottom: 1px solid #e6e4e3;
	white-space: pre-wrap;
	word-break: break-word;
}

.tcf .tcf-confirm-list dd:last-child {
	border-bottom: 0;
}

.tcf .tcf-confirm-list dd.is-empty {
	color: var(--tcf-muted);
}

/* ---------- 完了画面 ---------- */
.tcf .tcf-complete {
	padding: 48px 24px;
	border-radius: var(--tcf-radius);
	background: var(--tcf-field-bg);
	font-size: 15px;
	line-height: 1.9;
	text-align: center;
}

.tcf .tcf-complete:focus {
	outline: none;
}

.tcf .tcf-complete__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--tcf-accent) no-repeat center / 26px
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.tcf .tcf-complete p {
	margin: 0 0 1em;
}

.tcf .tcf-complete p:last-child {
	margin-bottom: 0;
}

/* ---------- PC ---------- */
@media (min-width: 768px) {
	.tcf .tcf-confirm-list {
		display: grid;
		grid-template-columns: 160px 1fr;
		padding: 8px 32px;
	}

	.tcf .tcf-confirm-list dt,
	.tcf .tcf-confirm-list dd {
		padding: 18px 0;
		border-bottom: 1px solid #e6e4e3;
	}

	.tcf .tcf-confirm-list dt {
		padding-right: 16px;
	}

	.tcf .tcf-confirm-list dt:nth-last-child(2) {
		border-bottom: 0;
	}
}

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
	.tcf .tcf-steps {
		margin-bottom: 32px;
	}

	.tcf .tcf-actions--confirm {
		flex-direction: column-reverse;
	}

	.tcf .tcf-actions--confirm .tcf-btn--secondary,
	.tcf .tcf-actions--confirm .tcf-btn--primary {
		flex: none;
		width: 100%;
	}

	.tcf .tcf-choice {
		flex: 1 1 100%;
	}

	.tcf .tcf-consent {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcf * {
		transition: none !important;
		animation: none !important;
	}
}

/* 送信完了画面のボタン */
.tcf .tcf-actions--complete {
	margin-top: 36px;
}

.tcf .tcf-actions--complete .tcf-btn {
	width: auto;
	min-width: 260px;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 600px) {
	.tcf .tcf-actions--complete .tcf-btn {
		width: 100%;
		min-width: 0;
	}
}
