/*
 * TIMEGRAPH MATCH-01 — 公開側の診断の見た目。
 * すべて .tg-match の中だけに当てる（テーマ・ほかのプラグインの要素には当てない）。
 * 部品にはクラスを付け、.tg-match と2つ重ねた指定にして、テーマの「h2 {}」「.entry-content a {}」などより先に効くようにする。
 * 幅は、ページではなく診断を置いた欄の幅で決める（コンテナークエリ）。
 * 色・書体・角はカスタムプロパティで変えられる（テーマのアダプター・子テーマから）。
 */

.tg-match {
	--tg-match-ink: #24231f;
	--tg-match-ink-soft: #55534b;
	--tg-match-dark: #262521;
	--tg-match-on-dark: #f8f5ee;
	--tg-match-paper: #f5f0e6;
	--tg-match-card: #ffffff;
	--tg-match-line: #d9d2c2;
	--tg-match-accent: #f4c51c;
	--tg-match-accent-soft: #fdf2c2;
	--tg-match-accent-ink: #1f1e1b;
	--tg-match-coral: #d9583e;
	--tg-match-focus: #1f6feb;
	--tg-match-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
	--tg-match-radius: 8px;
	container-type: inline-size;
	container-name: tg-match;
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.5em;
	padding: 0;
	overflow: hidden;
	border-radius: var(--tg-match-radius);
	background: var(--tg-match-paper);
	color: var(--tg-match-ink);
	font-family: var(--tg-match-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: 0.02em;
	text-align: left;
	text-transform: none;
}

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

/* テーマが要素（div・p・label・button など）へ直接当てた指定を、診断の中では打ち消す（:where で詳しさを上げすぎない。部品のクラスの指定が勝つ） */
.tg-match :where(div, p, span, label, li, dt, dd, legend, fieldset, a, button, input, select, textarea, ol, ul, dl, section, article, h2, h3, h4, small, strong, em, code) {
	width: auto;
	min-width: 0;
	max-width: none;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-style: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-align: inherit;
	text-decoration: none;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	float: none;
	transform: none;
}

.tg-match :where(ol, ul) {
	list-style: none;
}

.tg-match :where(a) {
	text-decoration: underline;
}

.tg-match [hidden] {
	display: none !important;
}

.tg-match .tg-match__title,
.tg-match .tg-match__lead,
.tg-match .tg-match__result-title,
.tg-match .tg-match__sub,
.tg-match .tg-match__top-name,
.tg-match p,
.tg-match ol,
.tg-match ul,
.tg-match dl,
.tg-match dd,
.tg-match fieldset,
.tg-match legend {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: inherit;
	letter-spacing: inherit;
	text-transform: none;
	background: none;
	color: inherit;
}

.tg-match .tg-match__svg {
	display: inline-block;
	flex: 0 0 auto;
	width: 1.2em;
	max-width: none;
	height: 1.2em;
	margin: 0;
	vertical-align: -0.22em;
}

.tg-match :focus-visible {
	outline: 3px solid var(--tg-match-focus);
	outline-offset: 2px;
}

/* ---------- 上の帯・はじめの説明 ---------- */

.tg-match .tg-match__strip {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	padding: 8px 20px;
	background: var(--tg-match-dark);
	color: var(--tg-match-on-dark);
	font-size: 13px;
	line-height: 1.6;
}

.tg-match .tg-match__strip-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tg-match .tg-match__strip .tg-match__svg {
	color: var(--tg-match-accent);
}

.tg-match .tg-match__intro {
	padding: clamp(24px, 6cqi, 48px) clamp(20px, 5cqi, 48px);
	background: var(--tg-match-dark);
	color: var(--tg-match-on-dark);
}

.tg-match .tg-match__title {
	font-size: clamp(26px, 6cqi, 44px);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.tg-match .tg-match__lead {
	max-width: 40em;
	margin-top: 14px;
	font-size: 15px;
	line-height: 1.85;
	opacity: 0.92;
}

.tg-match .tg-match__start-wrap {
	margin-top: 22px;
}

/* ---------- ボタン ---------- */

.tg-match .tg-match__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 44px;
	min-height: 48px;
	margin: 0;
	padding: 10px 22px;
	border: 2px solid transparent;
	border-radius: var(--tg-match-radius);
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	appearance: none;
}

.tg-match .tg-match__button--primary {
	background: var(--tg-match-accent);
	color: var(--tg-match-accent-ink);
}

.tg-match .tg-match__button--primary:hover {
	background: #e8b70c;
	color: var(--tg-match-accent-ink);
}

.tg-match .tg-match__button--ghost {
	border-color: var(--tg-match-ink);
	background: var(--tg-match-card);
	color: var(--tg-match-ink);
}

.tg-match .tg-match__button--ghost:hover {
	background: var(--tg-match-paper);
}

.tg-match .tg-match__button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.tg-match .tg-match__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--tg-match-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

/* ---------- 質問 ---------- */

.tg-match .tg-match__form {
	display: grid;
	gap: 24px;
	margin: 0;
	padding: clamp(20px, 5cqi, 40px);
	background: var(--tg-match-card);
}

.tg-match .tg-match__progress-text {
	font-size: 17px;
	font-weight: 800;
}

.tg-match .tg-match__progress-bar {
	height: 8px;
	margin-top: 8px;
	overflow: hidden;
	border-radius: 4px;
	background: #e7e2d6;
}

.tg-match .tg-match__progress-bar span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--tg-match-accent);
	transition: width 0.3s ease;
}

.tg-match .tg-match__q {
	min-width: 0;
	scroll-margin-top: 24px;
}

.tg-match .tg-match__q:focus {
	outline: none;
}

.tg-match .tg-match__q:focus-visible {
	outline: 3px solid var(--tg-match-focus);
	outline-offset: 6px;
}

.tg-match .tg-match__legend {
	display: block;
	width: 100%;
	float: none;
}

.tg-match .tg-match__qnum {
	display: block;
	color: var(--tg-match-ink-soft);
	font-size: 14px;
	font-weight: 700;
}

.tg-match.tg-match--js.tg-match--step .tg-match__qnum {
	display: none;
}

.tg-match .tg-match__qtext {
	display: block;
	margin-top: 2px;
	font-size: clamp(19px, 3.4cqi, 24px);
	font-weight: 800;
	line-height: 1.5;
}

.tg-match .tg-match__help,
.tg-match .tg-match__hint,
.tg-match .tg-match__cond {
	margin-top: 6px;
	color: var(--tg-match-ink-soft);
	font-size: 14px;
	line-height: 1.7;
}

.tg-match .tg-match__cond {
	padding: 6px 10px;
	border-left: 3px solid var(--tg-match-accent);
	background: var(--tg-match-paper);
}

.tg-match .tg-match__choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
	gap: 12px;
	margin-top: 14px;
}

.tg-match .tg-match__choice {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 112px;
	margin: 0;
	padding: 16px 14px 16px 44px;
	border: 2px solid var(--tg-match-line);
	border-radius: var(--tg-match-radius);
	background: var(--tg-match-card);
	color: var(--tg-match-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tg-match .tg-match__choice:hover {
	border-color: var(--tg-match-ink-soft);
}

.tg-match .tg-match__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	appearance: none;
}

.tg-match .tg-match__mark {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 22px;
	height: 22px;
	border: 2px solid var(--tg-match-ink-soft);
	border-radius: 50%;
	background: var(--tg-match-card);
	transform: translateY(-50%);
}

.tg-match .tg-match__q[data-type="multi"] .tg-match__mark {
	border-radius: 4px;
}

.tg-match .tg-match__choice:has(.tg-match__input:checked) {
	border-color: #d9a900;
	background: var(--tg-match-accent-soft);
}

.tg-match .tg-match__choice:has(.tg-match__input:checked) .tg-match__mark {
	border-color: var(--tg-match-accent-ink);
	background: var(--tg-match-accent-ink);
	box-shadow: inset 0 0 0 4px var(--tg-match-accent-soft);
}

.tg-match .tg-match__q[data-type="multi"] .tg-match__choice:has(.tg-match__input:checked) .tg-match__mark {
	box-shadow: inset 0 0 0 3px var(--tg-match-accent-soft);
}

.tg-match .tg-match__choice:has(.tg-match__input:focus-visible) {
	outline: 3px solid var(--tg-match-focus);
	outline-offset: 2px;
}

.tg-match .tg-match__icon {
	display: block;
	color: var(--tg-match-ink);
	font-size: 34px;
	line-height: 1;
}

.tg-match .tg-match__label {
	display: block;
}

.tg-match .tg-match__error {
	margin-top: 10px;
	color: var(--tg-match-coral);
	font-size: 15px;
	font-weight: 700;
}

.tg-match .tg-match__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}

.tg-match.tg-match--js.tg-match--step .tg-match__nav {
	justify-content: space-between;
}

.tg-match .tg-match__nav [data-tg-match-next],
.tg-match .tg-match__nav [data-tg-match-submit] {
	margin-left: auto;
	min-width: 180px;
}

.tg-match .tg-match__save {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	padding-top: 14px;
	border-top: 1px solid var(--tg-match-line);
	font-size: 14px;
}

.tg-match .tg-match__save-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	cursor: pointer;
}

.tg-match .tg-match__save-label input {
	width: 20px;
	height: 20px;
	margin: 0;
}

/* ---------- 結果 ---------- */

.tg-match .tg-match__result {
	display: grid;
	gap: 0;
	padding: clamp(20px, 5cqi, 40px);
	background: var(--tg-match-paper);
	scroll-margin-top: 24px;
}

.tg-match .tg-match__result:focus {
	outline: none;
}

.tg-match .tg-match__result-inner {
	display: grid;
	gap: 22px;
}

.tg-match .tg-match__result-title {
	font-size: clamp(22px, 4.4cqi, 30px);
	font-weight: 800;
	line-height: 1.4;
}

.tg-match .tg-match__notice {
	padding: 10px 14px;
	border-left: 4px solid var(--tg-match-coral);
	background: var(--tg-match-card);
	font-size: 15px;
}

.tg-match .tg-match__notice a {
	color: inherit;
	font-weight: 700;
}

.tg-match .tg-match__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	padding: clamp(18px, 4cqi, 28px);
	border: 2px solid var(--tg-match-line);
	border-radius: var(--tg-match-radius);
	background: var(--tg-match-card);
}

.tg-match .tg-match__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 12px;
	border-radius: 4px;
	background: var(--tg-match-coral);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.tg-match .tg-match__top-name {
	font-size: clamp(24px, 5cqi, 32px);
	font-weight: 800;
	line-height: 1.3;
}

.tg-match .tg-match__top-summary {
	margin-top: 8px;
	font-size: 16px;
}

.tg-match .tg-match__tie {
	margin-top: 8px;
	color: var(--tg-match-ink-soft);
	font-size: 14px;
}

.tg-match .tg-match__facts {
	display: grid;
	gap: 0;
}

.tg-match .tg-match__fact {
	display: grid;
	grid-template-columns: 9em minmax(0, 1fr);
	gap: 4px 16px;
	padding: 12px 0;
	border-top: 1px solid var(--tg-match-line);
}

.tg-match .tg-match__fact dt {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 800;
}

.tg-match .tg-match__fact dd {
	display: grid;
	gap: 6px;
	font-size: 15px;
}

.tg-match .tg-match__why {
	display: grid;
	gap: 2px;
	padding-left: 1.2em;
	list-style: disc;
	color: var(--tg-match-ink-soft);
	font-size: 14px;
}

.tg-match .tg-match__sub {
	font-size: 20px;
	font-weight: 800;
}

.tg-match .tg-match__compare {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	gap: 12px;
	list-style: none;
}

.tg-match .tg-match__card {
	display: grid;
	align-content: start;
	gap: 6px;
	margin: 0;
	padding: 16px;
	border: 2px solid var(--tg-match-line);
	border-radius: var(--tg-match-radius);
	background: var(--tg-match-card);
}

.tg-match .tg-match__card.is-top {
	border-color: #d9a900;
	background: var(--tg-match-accent-soft);
}

.tg-match .tg-match__card-rank {
	font-size: 13px;
	font-weight: 700;
	color: var(--tg-match-ink-soft);
}

.tg-match .tg-match__card-name {
	font-size: 18px;
	font-weight: 800;
}

.tg-match .tg-match__card-text,
.tg-match .tg-match__card-fit {
	font-size: 14px;
	line-height: 1.7;
}

.tg-match .tg-match__card-fit span {
	display: block;
	font-weight: 700;
}

/* ---------- RESULT PASS ---------- */

.tg-match .tg-match__pass {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	padding: clamp(16px, 4cqi, 24px);
	border-radius: var(--tg-match-radius);
	background: var(--tg-match-dark);
	color: var(--tg-match-on-dark);
}

.tg-match .tg-match__pass-card {
	display: grid;
	gap: 6px;
	padding: 18px;
	border: 2px dashed #c9bfa8;
	border-radius: var(--tg-match-radius);
	background: var(--tg-match-paper);
	color: var(--tg-match-ink);
}

.tg-match .tg-match__pass-eyebrow {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.tg-match .tg-match__pass-title {
	font-size: 14px;
	color: var(--tg-match-ink-soft);
}

.tg-match .tg-match__pass-result {
	font-size: 22px;
	font-weight: 800;
}

.tg-match .tg-match__pass-list {
	display: grid;
	gap: 0;
	margin-top: 6px;
	list-style: none;
	font-size: 14px;
}

.tg-match .tg-match__pass-list li {
	display: grid;
	grid-template-columns: 3em minmax(0, 1fr);
	gap: 8px;
	margin: 0;
	padding: 4px 0;
	border-top: 1px solid var(--tg-match-line);
}

.tg-match .tg-match__pass-q {
	font-weight: 800;
}

.tg-match .tg-match__pass-note,
.tg-match .tg-match__pass-help {
	font-size: 13px;
}

.tg-match .tg-match__pass-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.tg-match .tg-match__pass .tg-match__button--ghost {
	border-color: var(--tg-match-on-dark);
	background: transparent;
	color: var(--tg-match-on-dark);
}

.tg-match .tg-match__share {
	flex: 1 1 100%;
	font-size: 13px;
}

.tg-match .tg-match__share-input {
	display: block;
	width: 100%;
	min-height: 44px;
	margin-top: 6px;
	padding: 8px 10px;
	border: 1px solid var(--tg-match-line);
	border-radius: 4px;
	background: #fff;
	color: var(--tg-match-ink);
	font-family: ui-monospace, Consolas, monospace;
	font-size: 13px;
}

.tg-match .tg-match__again {
	text-align: center;
}

.tg-match .tg-match__empty {
	padding: 20px;
}

/* ---------- 欄の幅が広いとき ---------- */

@container tg-match (min-width: 720px) {
	.tg-match .tg-match__top {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
		align-items: start;
	}

	.tg-match .tg-match__pass {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: center;
	}
}

/* ---------- 欄の幅が狭いとき（スマートフォン・サイドバー） ---------- */

@container tg-match (max-width: 520px) {
	.tg-match .tg-match__choices {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.tg-match .tg-match__choice {
		flex-direction: row;
		justify-content: flex-start;
		min-height: 64px;
		padding: 12px 14px 12px 48px;
		text-align: left;
	}

	.tg-match .tg-match__icon {
		font-size: 26px;
	}

	.tg-match .tg-match__fact {
		grid-template-columns: minmax(0, 1fr);
	}

	.tg-match .tg-match__nav [data-tg-match-next],
	.tg-match .tg-match__nav [data-tg-match-submit] {
		min-width: 0;
		flex: 1 1 auto;
	}

	.tg-match .tg-match__pass-actions .tg-match__button {
		flex: 1 1 100%;
	}
}

/* ---------- テーマに合わせる（設定の「表示」） ---------- */

.tg-match.tg-match--theme {
	--tg-match-dark: transparent;
	--tg-match-on-dark: inherit;
	--tg-match-paper: transparent;
	--tg-match-font: inherit;
	color: inherit;
	font-size: inherit;
	border: 1px solid currentColor;
}

.tg-match.tg-match--theme .tg-match__strip {
	border-bottom: 1px solid var(--tg-match-line);
}

.tg-match.tg-match--theme .tg-match__pass {
	border: 1px solid var(--tg-match-line);
}

.tg-match.tg-match--theme .tg-match__pass .tg-match__button--ghost {
	border-color: currentColor;
	color: inherit;
}

/* ---------- 動きを減らす ---------- */

@media (prefers-reduced-motion: reduce) {
	.tg-match *,
	.tg-match *::before,
	.tg-match *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- 印刷（RESULT PASS だけ）。「印刷・PDF」を押したときだけ、ページのほかの部分を隠す ---------- */

@media print {
	html.tg-match-printing body * {
		visibility: hidden;
	}

	html.tg-match-printing .tg-match--printing .tg-match__pass,
	html.tg-match-printing .tg-match--printing .tg-match__pass * {
		visibility: visible;
	}

	html.tg-match-printing .tg-match--printing .tg-match__pass {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		background: #fff;
		color: #000;
	}

	html.tg-match-printing .tg-match--printing .tg-match__pass-actions {
		display: none;
	}

	.tg-match .tg-match__form,
	.tg-match .tg-match__strip,
	.tg-match .tg-match__pass-actions,
	.tg-match .tg-match__again {
		display: none;
	}
}

/* ---------- 診断の単独ページ（/match/〜/） ---------- */

body.tg-match-page {
	margin: 0;
	background: #ece6d9;
}

.tg-match-page__wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px 32px;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
	color: #24231f;
}

.tg-match-page__head {
	padding: 18px 4px;
}

.tg-match-page__site {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #24231f;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.tg-match-page__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	padding: 16px 0 0;
	font-size: 13px;
}

.tg-match-page__foot a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
}

/* ---------- 診断だけのページの「LP表示」（.tg-match-lp の中だけ） ---------- */

body.tg-match-page--lp {
	background: #f5f0e6;
}

body.tg-match-page--lp .tg-match-page__wrap {
	max-width: none;
	padding: 0;
}

body.tg-match-page--lp .tg-match-page__foot {
	padding: 16px 16px 24px;
	background: #1f1e1b;
	color: #f5f0e6;
}

.tg-match-lp {
	--lp-ink: #1f1e1b;
	--lp-paper: #f5f0e6;
	--lp-white: #ffffff;
	--lp-yellow: #f4c51c;
	--lp-line: #d9d2c2;
	--lp-soft: #55534b;
	color: var(--lp-ink);
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	letter-spacing: 0.02em;
}

.tg-match-lp *,
.tg-match-lp *::before,
.tg-match-lp *::after {
	box-sizing: border-box;
}

.tg-match-lp :where(div, p, span, ul, ol, li, h1, h2, a, button, details, summary, section, header, nav, strong) {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
}

.tg-match-lp :where(ul, ol) {
	list-style: none;
}

.tg-match-lp [hidden] {
	display: none !important;
}

.tg-match-lp .tg-match__svg {
	width: 1.2em;
	height: 1.2em;
	flex: 0 0 auto;
	vertical-align: -0.22em;
}

.tg-match-lp :focus-visible {
	outline: 3px solid #1f6feb;
	outline-offset: 2px;
}

.tg-match-lp .tg-match-lp__strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-around;
	gap: 4px 24px;
	padding: 6px 16px;
	background: var(--lp-ink);
	color: var(--lp-paper);
	font-size: 13px;
}

.tg-match-lp .tg-match-lp__strip > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tg-match-lp .tg-match-lp__calm {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: inherit;
	font-size: 13px;
	cursor: pointer;
}

.tg-match-lp .tg-match-lp__switch {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 20px;
	border-radius: 10px;
	background: #6b6860;
}

.tg-match-lp .tg-match-lp__switch::after {
	content: "";
	position: absolute;
	left: 2px;
	top: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: left 0.2s ease;
}

.tg-match-lp .tg-match-lp__calm[aria-pressed="true"] .tg-match-lp__switch {
	background: var(--lp-yellow);
}

.tg-match-lp .tg-match-lp__calm[aria-pressed="true"] .tg-match-lp__switch::after {
	left: 20px;
}

.tg-match-lp .tg-match-lp__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	padding: 10px clamp(16px, 4vw, 40px);
	background: var(--lp-paper);
	border-bottom: 1px solid var(--lp-line);
}

.tg-match-lp .tg-match-lp__brand {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-right: auto;
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 800;
	letter-spacing: 0.04em;
}

.tg-match-lp .tg-match-lp__nav ul {
	display: flex;
	flex-wrap: wrap;
}

.tg-match-lp .tg-match-lp__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-left: 1px solid var(--lp-line);
	font-size: 14px;
	font-weight: 700;
}

.tg-match-lp .tg-match-lp__nav li:first-child a {
	border-left: 0;
}

.tg-match-lp .tg-match-lp__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 10px 32px;
	border-radius: 999px;
	background: var(--lp-yellow);
	color: var(--lp-ink);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.tg-match-lp .tg-match-lp__button--small {
	min-height: 44px;
	padding: 6px 20px;
	border-radius: 8px;
	font-size: 15px;
}

.tg-match-lp .tg-match-lp__button--dark {
	background: var(--lp-ink);
	color: var(--lp-paper);
}

.tg-match-lp .tg-match-lp__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 32px;
	padding: clamp(32px, 5vw, 56px) clamp(16px, 5vw, 56px);
	background:
		linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(244, 197, 28, 0.12) 60%, rgba(255, 255, 255, 0) 75%),
		var(--lp-ink);
	color: var(--lp-white);
}

.tg-match-lp .tg-match-lp__title {
	font-size: clamp(36px, 6vw, 64px);
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.tg-match-lp .tg-match-lp__accent {
	color: var(--lp-yellow);
}

.tg-match-lp .tg-match-lp__lead {
	margin-top: 16px;
	font-size: 15px;
	line-height: 1.9;
}

.tg-match-lp .tg-match-lp__hero .tg-match-lp__button {
	margin-top: 22px;
	min-width: 260px;
}

.tg-match-lp .tg-match-lp__note {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: 13px;
}

.tg-match-lp .tg-match-lp__cards {
	position: relative;
	height: 300px;
}

.tg-match-lp .tg-match-lp__card {
	position: absolute;
	width: 40%;
	padding: 16px;
	border-radius: 12px;
	background: #f3efe7;
	color: var(--lp-ink);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.tg-match-lp .tg-match-lp__card--1 {
	left: 0;
	top: 30px;
	transform: rotate(-8deg) scale(0.88);
	opacity: 0.92;
}

.tg-match-lp .tg-match-lp__card--2 {
	left: 30%;
	top: 0;
	z-index: 2;
}

.tg-match-lp .tg-match-lp__card--3 {
	right: 0;
	top: 30px;
	transform: rotate(8deg) scale(0.88);
	opacity: 0.92;
}

.tg-match-lp .tg-match-lp__card-num {
	font-size: 14px;
	font-weight: 800;
}

.tg-match-lp .tg-match-lp__card-bar {
	height: 6px;
	margin: 6px 0 12px;
	border-radius: 3px;
	background: #ddd6c7;
	overflow: hidden;
}

.tg-match-lp .tg-match-lp__card-bar span {
	display: block;
	width: 40%;
	height: 100%;
	background: var(--lp-yellow);
}

.tg-match-lp .tg-match-lp__card-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.tg-match-lp .tg-match-lp__card-cell {
	display: grid;
	place-items: center;
	height: 64px;
	border: 1.5px solid #cfc7b6;
	border-radius: 8px;
	background: #fff;
	font-size: 28px;
}

.tg-match-lp .tg-match-lp__card-cell.is-on {
	border-color: #d9a900;
	background: var(--lp-yellow);
}

.tg-match-lp .tg-match-lp__trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 0;
	padding: 18px clamp(16px, 4vw, 40px);
	background: var(--lp-white);
	border-bottom: 1px solid var(--lp-line);
}

.tg-match-lp .tg-match-lp__trust li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 10px 18px;
	border-left: 1px solid var(--lp-line);
	font-size: 13px;
}

.tg-match-lp .tg-match-lp__trust li:first-child {
	border-left: 0;
}

.tg-match-lp .tg-match-lp__trust .tg-match__svg {
	width: 36px;
	height: 36px;
}

.tg-match-lp .tg-match-lp__trust strong {
	display: block;
	font-size: 16px;
	font-weight: 800;
}

.tg-match-lp .tg-match-lp__band {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	border-bottom: 1px solid var(--lp-line);
	scroll-margin-top: 16px;
}

.tg-match-lp .tg-match-lp__side {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 16px;
	background: var(--lp-ink);
	color: var(--lp-white);
	clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.tg-match-lp .tg-match-lp__num {
	font-size: 44px;
	font-style: italic;
	font-weight: 900;
	line-height: 1;
}

.tg-match-lp .tg-match-lp__side-label {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
}

.tg-match-lp .tg-match-lp__side-sub {
	font-size: 11px;
}

.tg-match-lp .tg-match-lp__body {
	min-width: 0;
	padding: clamp(16px, 3vw, 28px) clamp(16px, 3vw, 32px);
}

.tg-match-lp .tg-match-lp__quiz .tg-match {
	margin: 0;
}

.tg-match-lp .tg-match-lp__h2 {
	font-size: clamp(19px, 2.4vw, 24px);
	font-weight: 800;
	line-height: 1.5;
}

.tg-match-lp .tg-match-lp__p {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.9;
}

.tg-match-lp .tg-match-lp__flow,
.tg-match-lp .tg-match-lp__admin {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 24px;
}

.tg-match-lp .tg-match-lp__flow-example {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tg-match-lp .tg-match-lp__box {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--lp-line);
	border-radius: 8px;
	background: var(--lp-white);
	font-size: 13px;
	font-weight: 700;
}

.tg-match-lp .tg-match-lp__box .tg-match__svg {
	width: 28px;
	height: 28px;
}

.tg-match-lp .tg-match-lp__box--next {
	border-color: #d9a900;
	background: #fdf2c2;
}

.tg-match-lp .tg-match-lp__guide {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 12px;
	margin-top: 12px;
}

.tg-match-lp .tg-match-lp__guide-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 4px 10px;
	padding: 14px;
	border: 1.5px solid var(--lp-line);
	border-radius: 8px;
	background: var(--lp-white);
}

.tg-match-lp .tg-match-lp__guide-title {
	font-weight: 800;
}

.tg-match-lp .tg-match-lp__guide-text {
	grid-column: 1 / -1;
	font-size: 13px;
	color: var(--lp-soft);
}

.tg-match-lp .tg-match-lp__rows {
	display: grid;
	gap: 8px;
	padding: 14px;
	border: 1.5px solid var(--lp-line);
	border-radius: 8px;
	background: var(--lp-white);
}

.tg-match-lp .tg-match-lp__rows li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	border: 1px solid var(--lp-line);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
}

.tg-match-lp .tg-match-lp__faq {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 16px;
	padding: 20px clamp(16px, 3vw, 32px);
	background: var(--lp-white);
	scroll-margin-top: 16px;
}

.tg-match-lp .tg-match-lp__faq-title {
	font-size: 18px;
	font-weight: 800;
}

.tg-match-lp .tg-match-lp__faq-list {
	display: grid;
	gap: 6px;
}

.tg-match-lp .tg-match-lp__qa {
	border: 1px solid var(--lp-line);
	border-radius: 6px;
}

.tg-match-lp .tg-match-lp__qa summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 14px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.tg-match-lp .tg-match-lp__qa p {
	padding: 0 14px 12px 38px;
	font-size: 14px;
}

.tg-match-lp .tg-match-lp__q {
	font-weight: 800;
}

.tg-match-lp .tg-match-lp__cta {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: center;
	gap: 20px 32px;
	padding: clamp(24px, 4vw, 40px) clamp(16px, 5vw, 56px);
	background: var(--lp-yellow);
}

.tg-match-lp .tg-match-lp__cta-title {
	font-size: clamp(24px, 3.6vw, 36px);
	font-weight: 900;
	line-height: 1.3;
}

.tg-match-lp .tg-match-lp__dock {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 30;
	display: grid;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--lp-ink);
	color: var(--lp-paper);
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tg-match-lp .tg-match-lp__dock-bar {
	display: block;
	height: 6px;
	border-radius: 3px;
	background: #55534b;
	overflow: hidden;
}

.tg-match-lp .tg-match-lp__dock-bar span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--lp-yellow);
}

html.tg-match-calm .tg-match-lp *,
html.tg-match-calm .tg-match * {
	transition: none !important;
	animation: none !important;
	scroll-behavior: auto !important;
}

@media (max-width: 820px) {
	.tg-match-lp .tg-match-lp__hero,
	.tg-match-lp .tg-match-lp__flow,
	.tg-match-lp .tg-match-lp__admin,
	.tg-match-lp .tg-match-lp__cta {
		grid-template-columns: minmax(0, 1fr);
	}

	.tg-match-lp .tg-match-lp__cards {
		height: 220px;
		max-width: 420px;
	}

	.tg-match-lp .tg-match-lp__card-cell {
		height: 44px;
		font-size: 22px;
	}

	.tg-match-lp .tg-match-lp__band,
	.tg-match-lp .tg-match-lp__faq {
		grid-template-columns: minmax(0, 1fr);
	}

	.tg-match-lp .tg-match-lp__side {
		flex-direction: row;
		align-items: baseline;
		gap: 12px;
		padding: 10px 16px;
		clip-path: none;
	}

	.tg-match-lp .tg-match-lp__num {
		font-size: 30px;
	}

	.tg-match-lp .tg-match-lp__trust li {
		border-left: 0;
		border-top: 1px solid var(--lp-line);
	}

	.tg-match-lp .tg-match-lp__trust li:first-child {
		border-top: 0;
	}

	.tg-match-lp .tg-match-lp__nav {
		order: 3;
		width: 100%;
		overflow-x: auto;
	}

	.tg-match-lp .tg-match-lp__nav ul {
		flex-wrap: nowrap;
	}

	.tg-match-lp .tg-match-lp__nav a {
		white-space: nowrap;
	}

	.tg-match-lp .tg-match-lp__hero .tg-match-lp__button {
		min-width: 0;
		width: 100%;
	}

	.tg-match-lp .tg-match-lp__flow-example {
		flex-direction: column;
		align-items: stretch;
	}

	.tg-match-lp .tg-match-lp__arrow {
		align-self: center;
		transform: rotate(90deg);
	}
}

@media (min-width: 821px) {
	.tg-match-lp .tg-match-lp__dock {
		display: none !important;
	}
}

@media print {
	.tg-match-lp .tg-match-lp__dock,
	.tg-match-lp .tg-match-lp__strip,
	.tg-match-lp .tg-match-lp__head,
	.tg-match-lp .tg-match-lp__hero,
	.tg-match-lp .tg-match-lp__trust,
	.tg-match-lp .tg-match-lp__band--flow,
	.tg-match-lp .tg-match-lp__band--guide,
	.tg-match-lp .tg-match-lp__band--admin,
	.tg-match-lp .tg-match-lp__faq,
	.tg-match-lp .tg-match-lp__cta {
		display: none !important;
	}
}
