/* TC-Lab ブロックパターン用スタイル
   白基調 + ブルー・グリーンで、親しみと信頼感のある見た目にしています。
   このファイルの色コードを変更すれば、サイト全体の配色を調整できます。
*/

:root {
	--tclab-blue: #2f80ed;
	--tclab-blue-dark: #1c64d1;
	--tclab-green: #16a34a;
	--tclab-bg: #ffffff;
	--tclab-border: #e2e8f0;
	--tclab-yes-bg: #f0fdf4;
	--tclab-no-bg: #fef2f2;
	--tclab-no-color: #dc2626;
}

/* ---------- 商品比較表 ---------- */
.tclab-compare-table table {
	border-collapse: collapse;
	width: 100%;
}

.tclab-compare-table th {
	background-color: var(--tclab-blue);
	color: #ffffff;
	padding: 12px;
	text-align: left;
}

.tclab-compare-table td {
	padding: 12px;
	border-bottom: 1px solid var(--tclab-border);
	vertical-align: top;
}

.tclab-compare-table a {
	color: var(--tclab-blue);
	font-weight: bold;
	text-decoration: none;
}

.tclab-compare-table a:hover {
	color: var(--tclab-blue-dark);
	text-decoration: underline;
}

/* スマホでは表を横スクロールできるようにする */
@media (max-width: 600px) {
	.tclab-compare-table {
		overflow-x: auto;
		display: block;
	}
}

/* ---------- 商品紹介ボックス ---------- */
.tclab-product-card {
	background-color: var(--tclab-bg);
	border: 1px solid var(--tclab-border);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 32px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tclab-product-image img {
	border-radius: 8px;
	width: 100%;
	height: auto;
}

.tclab-price {
	color: var(--tclab-green);
	font-size: 1.1em;
}

.tclab-btn .wp-block-button__link {
	background-color: var(--tclab-blue);
	border-radius: 6px;
}

.tclab-btn .wp-block-button__link:hover {
	background-color: var(--tclab-blue-dark);
}

@media (max-width: 600px) {
	.tclab-product-card {
		padding: 16px;
	}
	.tclab-product-card .wp-block-columns {
		flex-wrap: wrap;
	}
	.tclab-product-image-col {
		flex-basis: 100% !important;
		margin-bottom: 12px;
	}
}

/* ---------- 向く人・向かない人ボックス ---------- */
.tclab-fit-yes,
.tclab-fit-no {
	padding: 16px 20px;
	border-radius: 8px;
}

.tclab-fit-yes {
	background-color: var(--tclab-yes-bg);
	border-left: 4px solid var(--tclab-green);
}

.tclab-fit-no {
	background-color: var(--tclab-no-bg);
	border-left: 4px solid var(--tclab-no-color);
}
